We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c3487d commit 5e7d9afCopy full SHA for 5e7d9af
1 file changed
pyrogram/api/errors/error.py
@@ -24,6 +24,9 @@
24
25
26
class Error(Exception):
27
+ """This is the base exception class for all Telegram API related errors.
28
+ For a finer grained control, see the specific errors below.
29
+ """
30
ID = None
31
CODE = None
32
NAME = None
@@ -65,6 +68,10 @@ def raise_it(rpc_error: RpcError, query_type: type):
65
68
66
69
67
70
class UnknownError(Error):
71
+ """This object represents an Unknown Error, that is, an error which
72
+ Pyrogram does not know anything about, yet.
73
74
CODE = 520
75
+ """:obj:`int`: Error code"""
76
NAME = "Unknown error"
77
MESSAGE = "{x}"
0 commit comments