538f1e3972
- Pyrogram core is now fully asynchronous - Ditched Python 3.5, welcome 3.6 as minimum version. - Moved all types to pyrogram.types - Turned the Filters class into a module (filters) - Moved all filters to pyrogram.filters - Moved all handlers to pyrogram.handlers - Moved all emoji to pyrogram.emoji - Renamed pyrogram.api to pyrogram.raw - Clock is now synced with server's time - Telegram schema updated to Layer 117 - Greatly improved the TL compiler (proper type-constructor hierarchy) - Added "do not edit" warning in generated files - Crypto parts are executed in a thread pool to avoid blocking the event loop - idle() is now a separate function (it doesn't deal with Client instances) - Async storage, async filters and async progress callback (optional, can be sync too) - Added getpass back, for hidden password inputs
8.4 KiB
8.4 KiB
1 | id | message |
---|---|---|
2 | FIRSTNAME_INVALID | The first name is invalid |
3 | LASTNAME_INVALID | The last name is invalid |
4 | PHONE_NUMBER_INVALID | The phone number is invalid |
5 | PHONE_CODE_HASH_EMPTY | phone_code_hash is missing |
6 | PHONE_CODE_EMPTY | phone_code is missing |
7 | PHONE_CODE_EXPIRED | The confirmation code has expired |
8 | PHONE_CODE_INVALID | The confirmation code is invalid |
9 | API_ID_INVALID | The api_id/api_hash combination is invalid |
10 | PHONE_NUMBER_OCCUPIED | The phone number is already in use |
11 | PHONE_NUMBER_UNOCCUPIED | The phone number is not yet being used |
12 | USERS_TOO_FEW | Not enough users (to create a chat, for example) |
13 | USERS_TOO_MUCH | The maximum number of users has been exceeded (to create a chat, for example) |
14 | TYPE_CONSTRUCTOR_INVALID | The type constructor is invalid |
15 | FILE_PART_INVALID | The file part number is invalid. The value is not between 0 and 3999 |
16 | FILE_PARTS_INVALID | Invalid number of parts. The value is not between 1 and 4000 |
17 | FILE_PART_X_MISSING | Part {x} of the file is missing from storage |
18 | MD5_CHECKSUM_INVALID | The file's checksum did not match the md5_checksum parameter |
19 | PHOTO_INVALID_DIMENSIONS | The photo dimensions are invalid |
20 | FIELD_NAME_INVALID | The field with the name FIELD_NAME is invalid |
21 | FIELD_NAME_EMPTY | The field with the name FIELD_NAME is missing |
22 | MSG_WAIT_FAILED | A waiting call returned an error |
23 | PEER_ID_INVALID | The id/access_hash combination is invalid |
24 | MESSAGE_EMPTY | The message sent is empty |
25 | ENCRYPTED_MESSAGE_INVALID | The special binding message (bind_auth_key_inner) contains invalid data |
26 | INPUT_METHOD_INVALID | The method called is invalid |
27 | PASSWORD_HASH_INVALID | Two-step verification password is invalid |
28 | USERNAME_NOT_OCCUPIED | The username is not occupied by anyone |
29 | USERNAME_INVALID | The username is invalid |
30 | MESSAGE_ID_INVALID | The message id is invalid |
31 | MESSAGE_NOT_MODIFIED | The message was not modified because you tried to edit it using the same content |
32 | ENTITY_MENTION_USER_INVALID | The mentioned entity is not an user |
33 | MESSAGE_TOO_LONG | The message text is over 4096 characters |
34 | ACCESS_TOKEN_EXPIRED | The bot token is invalid |
35 | BOT_METHOD_INVALID | The method can't be used by bots |
36 | QUERY_TOO_SHORT | The query is too short |
37 | SEARCH_QUERY_EMPTY | The query is empty |
38 | CHAT_ID_INVALID | The chat id is invalid |
39 | DATE_EMPTY | The date argument is empty |
40 | PERSISTENT_TIMESTAMP_EMPTY | The pts is empty |
41 | CDN_METHOD_INVALID | The method can't be used on CDN DCs |
42 | VOLUME_LOC_NOT_FOUND | The volume location can't be found |
43 | FILE_ID_INVALID | The file id is invalid |
44 | LOCATION_INVALID | The file address is invalid |
45 | CHAT_ADMIN_REQUIRED | The method requires chat admin privileges |
46 | PHONE_NUMBER_BANNED | The phone number is banned |
47 | ABOUT_TOO_LONG | The about text is too long |
48 | MULTI_MEDIA_TOO_LONG | The album contains more than 10 items |
49 | USERNAME_OCCUPIED | The username is already in use |
50 | BOT_INLINE_DISABLED | The inline feature of the bot is disabled |
51 | INLINE_RESULT_EXPIRED | The inline bot query expired |
52 | INVITE_HASH_INVALID | The invite link hash is invalid |
53 | USER_ALREADY_PARTICIPANT | The user is already a participant of this chat |
54 | TTL_MEDIA_INVALID | The media does not support self-destruction |
55 | MAX_ID_INVALID | The max_id parameter is invalid |
56 | CHANNEL_INVALID | The channel parameter is invalid |
57 | DC_ID_INVALID | The dc_id parameter is invalid |
58 | LIMIT_INVALID | The limit parameter is invalid |
59 | OFFSET_INVALID | The offset parameter is invalid |
60 | EMAIL_INVALID | The email provided is invalid |
61 | USER_IS_BOT | A bot cannot send messages to other bots or to itself |
62 | WEBPAGE_CURL_FAILED | Telegram server could not fetch the provided URL |
63 | STICKERSET_INVALID | The requested sticker set is invalid |
64 | PEER_FLOOD | The method can't be used because your account is limited |
65 | MEDIA_CAPTION_TOO_LONG | The media caption is longer than 1024 characters |
66 | USER_NOT_MUTUAL_CONTACT | The user is not a mutual contact |
67 | USER_CHANNELS_TOO_MUCH | The user is already in too many channels or supergroups |
68 | API_ID_PUBLISHED_FLOOD | You are using an API key that is limited on the server side |
69 | USER_NOT_PARTICIPANT | The user is not a member of this chat |
70 | CHANNEL_PRIVATE | The channel/supergroup is not accessible |
71 | MESSAGE_IDS_EMPTY | The requested message doesn't exist |
72 | WEBPAGE_MEDIA_EMPTY | The URL doesn't contain any valid media |
73 | QUERY_ID_INVALID | The callback query id is invalid |
74 | MEDIA_EMPTY | The media is invalid |
75 | USER_IS_BLOCKED | The user blocked you |
76 | YOU_BLOCKED_USER | You blocked this user |
77 | ADMINS_TOO_MUCH | The chat has too many administrators |
78 | BOTS_TOO_MUCH | The chat has too many bots |
79 | USER_ADMIN_INVALID | The action requires admin privileges |
80 | INPUT_USER_DEACTIVATED | The target user has been deactivated |
81 | PASSWORD_RECOVERY_NA | The password recovery e-mail is not available |
82 | PASSWORD_EMPTY | The password entered is empty |
83 | PHONE_NUMBER_FLOOD | This number has tried to login too many times |
84 | TAKEOUT_INVALID | The takeout id is invalid |
85 | TAKEOUT_REQUIRED | The method must be invoked inside a takeout session |
86 | MESSAGE_POLL_CLOSED | You can't interact with a closed poll |
87 | MEDIA_INVALID | The media is invalid |
88 | BOT_SCORE_NOT_MODIFIED | The bot score was not modified |
89 | USER_BOT_REQUIRED | The method can be used by bots only |
90 | IMAGE_PROCESS_FAILED | The server failed to process your image |
91 | USERNAME_NOT_MODIFIED | The username was not modified |
92 | CALL_ALREADY_ACCEPTED | The call is already accepted |
93 | CALL_ALREADY_DECLINED | The call is already declined |
94 | PHOTO_EXT_INVALID | The photo extension is invalid |
95 | EXTERNAL_URL_INVALID | The external media URL is invalid |
96 | CHAT_NOT_MODIFIED | The chat settings were not modified |
97 | RESULTS_TOO_MUCH | The result contains too many items |
98 | RESULT_ID_DUPLICATE | The result contains items with duplicated identifiers |
99 | ACCESS_TOKEN_INVALID | The bot access token is invalid |
100 | INVITE_HASH_EXPIRED | The chat invite link is no longer valid |
101 | USER_BANNED_IN_CHANNEL | You are limited, check @SpamBot for details |
102 | MESSAGE_EDIT_TIME_EXPIRED | You can no longer edit this message |
103 | FOLDER_ID_INVALID | The folder id is invalid |
104 | MEGAGROUP_PREHISTORY_HIDDEN | The action failed because the supergroup has the pre-history hidden |
105 | CHAT_LINK_EXISTS | The action failed because the supergroup is linked to a channel |
106 | LINK_NOT_MODIFIED | The chat link was not modified because you tried to link to the same target |
107 | BROADCAST_ID_INVALID | The channel is invalid |
108 | MEGAGROUP_ID_INVALID | The supergroup is invalid |
109 | BUTTON_DATA_INVALID | The button callback data contains invalid data or exceeds 64 bytes |
110 | START_PARAM_INVALID | The start parameter is invalid |
111 | ARTICLE_TITLE_EMPTY | The article title is empty |
112 | FILE_PART_TOO_BIG | The size limit (512 KB) for the content of the file part has been exceeded |
113 | FILE_PART_EMPTY | The file part sent is empty |
114 | FILE_PART_SIZE_INVALID | 512 KB cannot be evenly divided by part_size |
115 | FILE_PART_SIZE_CHANGED | The part size is different from the size of one of the previous parts in the same file |
116 | FILE_MIGRATE_X | The file is in Data Center No. {x} |
117 | RESULT_TYPE_INVALID | The result type is invalid |
118 | PHOTO_THUMB_URL_EMPTY | The photo thumb URL is empty |
119 | PHOTO_THUMB_URL_INVALID | The photo thumb URL is invalid |
120 | PHOTO_CONTENT_URL_EMPTY | The photo content URL is empty |
121 | PHOTO_CONTENT_TYPE_INVALID | The photo content type is invalid |
122 | WEBDOCUMENT_INVALID | The web document is invalid |
123 | WEBDOCUMENT_URL_EMPTY | The web document URL is empty |
124 | WEBDOCUMENT_URL_INVALID | The web document URL is invalid |
125 | WEBDOCUMENT_MIME_INVALID | The web document mime type is invalid |
126 | BUTTON_URL_INVALID | The button url is invalid |
127 | AUTH_BYTES_INVALID | The authorization bytes are invalid |
128 | USER_ID_INVALID | The user ID is invalid |
129 | CHANNELS_TOO_MUCH | You have joined too many channels or supergroups |
130 | ADMIN_RANK_INVALID | The custom administrator title is invalid or is longer than 16 characters |
131 | ADMIN_RANK_EMOJI_NOT_ALLOWED | Emojis are not allowed in custom administrator titles |
132 | FILE_REFERENCE_EMPTY | The file reference is empty |
133 | FILE_REFERENCE_INVALID | The file reference is invalid |
134 | REPLY_MARKUP_TOO_LONG | The reply markup is too long |
135 | SECONDS_INVALID | The seconds interval is invalid, for slow mode try with 0 (off), 10, 30, 60 (1m), 300 (5m), 900 (15m) or 3600 (1h) |
136 | QUIZ_MULTIPLE_INVALID | A quiz can't have multiple answers |
137 | QUIZ_CORRECT_ANSWERS_EMPTY | The correct answers of the quiz are empty |
138 | QUIZ_CORRECT_ANSWER_INVALID | The correct answers of the quiz are invalid |
139 | QUIZ_CORRECT_ANSWERS_TOO_MUCH | The quiz contains too many correct answers |
140 | OPTIONS_TOO_MUCH | The poll options are too many |
141 | POLL_ANSWERS_INVALID | The poll answers are invalid |
142 | POLL_QUESTION_INVALID | The poll question is invalid |
143 | FRESH_CHANGE_ADMINS_FORBIDDEN | Recently logged-in users cannot change admins |
144 | BROADCAST_PUBLIC_VOTERS_FORBIDDEN | Polls with public voters cannot be sent in channels |
145 | INPUT_FILTER_INVALID | The filter is invalid for this query |
146 | EMOTICON_EMPTY | The emoticon parameter is empty |
147 | EMOTICON_INVALID | The emoticon parameter is invalid |
148 | VIDEO_FILE_INVALID | The video file is invalid |
149 | PRIVACY_TOO_LONG | Your privacy exception list has exceeded the maximum capacity |