WPyrogram 2.0.150__py3-none-any.whl → 2.0.151__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {WPyrogram-2.0.150.dist-info → WPyrogram-2.0.151.dist-info}/METADATA +1 -1
- {WPyrogram-2.0.150.dist-info → WPyrogram-2.0.151.dist-info}/RECORD +14 -14
- pyrogram/__init__.py +1 -1
- pyrogram/errors/exceptions/all.py +55 -1
- pyrogram/errors/exceptions/bad_request_400.py +336 -0
- pyrogram/errors/exceptions/flood_420.py +7 -0
- pyrogram/errors/exceptions/forbidden_403.py +21 -0
- pyrogram/errors/exceptions/not_acceptable_406.py +14 -0
- pyrogram/methods/chats/get_forum_topics_by_id.py +1 -1
- {WPyrogram-2.0.150.dist-info → WPyrogram-2.0.151.dist-info}/COPYING +0 -0
- {WPyrogram-2.0.150.dist-info → WPyrogram-2.0.151.dist-info}/COPYING.lesser +0 -0
- {WPyrogram-2.0.150.dist-info → WPyrogram-2.0.151.dist-info}/NOTICE +0 -0
- {WPyrogram-2.0.150.dist-info → WPyrogram-2.0.151.dist-info}/WHEEL +0 -0
- {WPyrogram-2.0.150.dist-info → WPyrogram-2.0.151.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: WPyrogram
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.151
|
|
4
4
|
Summary: Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots - Woto's experimental fork
|
|
5
5
|
Home-page: https://github.com/ALiwoto/WPyrogram
|
|
6
6
|
Download-URL: https://github.com/ALiwoto/WPyrogram
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
pyrogram/__init__.py,sha256=
|
|
1
|
+
pyrogram/__init__.py,sha256=BJBfFqukQLDR0zicgiJk09jdtXGOO4gYsccHWtZLBDI,1401
|
|
2
2
|
pyrogram/client.py,sha256=Tgtlw85sYEjgzI8cVPL7FwhiCvUNow7FsQcbn5Gx4nY,50088
|
|
3
3
|
pyrogram/dispatcher.py,sha256=cJV2tUDAfgNAh0aSjRHqiWNUBQ7ipGzBNTyJHunxLxc,13947
|
|
4
4
|
pyrogram/emoji.py,sha256=ixb3OXR1XpLf3BQpw8kWIpmbQRowRIaFedjdnuzljac,208021
|
|
@@ -51,12 +51,12 @@ pyrogram/enums/user_status.py,sha256=0WEpJJmjfGsJ3CVEhItO3Zc1VP9CBjgZBpxWUOzoFFg
|
|
|
51
51
|
pyrogram/errors/__init__.py,sha256=Td5_TRqn2Ht6R3ZTxrLJaL_HoaugITxNCsiYEfueqCw,2605
|
|
52
52
|
pyrogram/errors/rpc_error.py,sha256=18YbiYLQ-wKBZJ389SfPpl0pwQMHn4Xzh0leuZ-vuNU,3315
|
|
53
53
|
pyrogram/errors/exceptions/__init__.py,sha256=z2D3DvbIArXHMWt1--qogk5t7V0uQkhejs8mxqyEQf0,1066
|
|
54
|
-
pyrogram/errors/exceptions/all.py,sha256=
|
|
55
|
-
pyrogram/errors/exceptions/bad_request_400.py,sha256=
|
|
56
|
-
pyrogram/errors/exceptions/flood_420.py,sha256=
|
|
57
|
-
pyrogram/errors/exceptions/forbidden_403.py,sha256=
|
|
54
|
+
pyrogram/errors/exceptions/all.py,sha256=J6JhFMErFJbrxnNgoUy8e2EcDKCJR5l_pGJ58us7-IE,40114
|
|
55
|
+
pyrogram/errors/exceptions/bad_request_400.py,sha256=FSvaHcBq5SGRIE7M1ndzgvqiTYqtTJHfspLS30mFmrM,106605
|
|
56
|
+
pyrogram/errors/exceptions/flood_420.py,sha256=0G9dgyuvbmc0dW0dWLFM_EJTH1qNFEVaqUeCKMqWHUc,2641
|
|
57
|
+
pyrogram/errors/exceptions/forbidden_403.py,sha256=Vp-KW1WQjz312sGExePrMPqfTBxx_0jAwVlgZ4GJ-UQ,10671
|
|
58
58
|
pyrogram/errors/exceptions/internal_server_error_500.py,sha256=I2pr1HS-F81uI4ZRP8oE5RoP4-quIZZJaguZvrQFiKg,12166
|
|
59
|
-
pyrogram/errors/exceptions/not_acceptable_406.py,sha256=
|
|
59
|
+
pyrogram/errors/exceptions/not_acceptable_406.py,sha256=OLIqzk4wcuty2vCN20Rb4D5ahaLCOE6ZyJzHlqJaYBs,7638
|
|
60
60
|
pyrogram/errors/exceptions/see_other_303.py,sha256=_-P2lSLpLky-e5L17DLWneEponf5uw2sUGY2FabD-KI,1952
|
|
61
61
|
pyrogram/errors/exceptions/service_unavailable_503.py,sha256=nGlK_dCJKwW3adMSWp2dV8cfo5b7SytlNlAyNBYYtp8,1535
|
|
62
62
|
pyrogram/errors/exceptions/unauthorized_401.py,sha256=-b6fglrqn1EZ_lQP56dcuK7pfhH5wPeT9nh8cyMOjZQ,2672
|
|
@@ -169,7 +169,7 @@ pyrogram/methods/chats/get_dialogs.py,sha256=SXRoCp0BoPXR9Qf9LeaL0rA5mmI-nOOhtcv
|
|
|
169
169
|
pyrogram/methods/chats/get_dialogs_count.py,sha256=jKZyseU8sTYDhhflyw9paalsdXyXkqorQ63_ljxn8vE,2491
|
|
170
170
|
pyrogram/methods/chats/get_folders.py,sha256=YGMNvjrbqipEUJuSpVFDi5GsUv-ucBgEe5adXH2Nokw,3603
|
|
171
171
|
pyrogram/methods/chats/get_forum_topics.py,sha256=AjY3EzZohPtm2ollJVXEn7VGQc-3oICsjdXoDBuTrHY,3284
|
|
172
|
-
pyrogram/methods/chats/get_forum_topics_by_id.py,sha256=
|
|
172
|
+
pyrogram/methods/chats/get_forum_topics_by_id.py,sha256=m8R_YuUAK3sbKVgJ8UE1vWqKz5AZYuFoJUURaDttE2A,3813
|
|
173
173
|
pyrogram/methods/chats/get_nearby_chats.py,sha256=sOoNjQ9qHKzD4UYoVusMM5G65KnqzqpzzwLwByJf6tc,2401
|
|
174
174
|
pyrogram/methods/chats/get_personal_channels.py,sha256=_2PqL64zXjR9DgzajeStIWkrgyS7lEdJjQwoLSvySUk,1653
|
|
175
175
|
pyrogram/methods/chats/get_send_as_chats.py,sha256=bY6VQnm3J6nezq5lhaBtPxu5-Co-Ti2sZki2XW5Q8JI,2151
|
|
@@ -3316,10 +3316,10 @@ pyrogram/types/user_and_chats/video_chat_ended.py,sha256=J5xTIAMSGDz8_z-EGrKwkoJ
|
|
|
3316
3316
|
pyrogram/types/user_and_chats/video_chat_members_invited.py,sha256=9QhonApJd1XjOeJu9fqx2_u6nIOTZhfXZw_tX9XXxd8,1610
|
|
3317
3317
|
pyrogram/types/user_and_chats/video_chat_scheduled.py,sha256=rUvDXF8r-2MfsAZKAcaWb_UZt5VoHebPjeJXWRDHGSo,1531
|
|
3318
3318
|
pyrogram/types/user_and_chats/video_chat_started.py,sha256=WOAuM_CnkRA-W_Iedx0fIHB9RJ-AsvJIiSF05HzLRdA,1043
|
|
3319
|
-
WPyrogram-2.0.
|
|
3320
|
-
WPyrogram-2.0.
|
|
3321
|
-
WPyrogram-2.0.
|
|
3322
|
-
WPyrogram-2.0.
|
|
3323
|
-
WPyrogram-2.0.
|
|
3324
|
-
WPyrogram-2.0.
|
|
3325
|
-
WPyrogram-2.0.
|
|
3319
|
+
WPyrogram-2.0.151.dist-info/COPYING,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
|
|
3320
|
+
WPyrogram-2.0.151.dist-info/COPYING.lesser,sha256=pWgb-bBdsU2Gd2kwAXxketnm5W_2u8_fIeWEgojfrxs,7651
|
|
3321
|
+
WPyrogram-2.0.151.dist-info/METADATA,sha256=cO3ivKchXGiMFDNBWChjgJFxNjeGHIBLOtqCNSExl38,4922
|
|
3322
|
+
WPyrogram-2.0.151.dist-info/NOTICE,sha256=QL3iJdeVh_ZqRZZchyruQic5bYUWdx3yl0OkSUC2PQc,774
|
|
3323
|
+
WPyrogram-2.0.151.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
3324
|
+
WPyrogram-2.0.151.dist-info/top_level.txt,sha256=vS2-tKX7dJ1uKjistE5CoOVbv4yqglA95SK0KFEDwl0,9
|
|
3325
|
+
WPyrogram-2.0.151.dist-info/RECORD,,
|
pyrogram/__init__.py
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
# You should have received a copy of the GNU Lesser General Public License
|
|
17
17
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
|
18
18
|
|
|
19
|
-
__version__ = "2.0.
|
|
19
|
+
__version__ = "2.0.151"
|
|
20
20
|
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
|
|
21
21
|
__copyright__ = "Copyright (C) 2017-present Dan <https://github.com/delivrance>"
|
|
22
22
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
# You should have received a copy of the GNU Lesser General Public License
|
|
17
17
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
|
18
18
|
|
|
19
|
-
count =
|
|
19
|
+
count = 736
|
|
20
20
|
|
|
21
21
|
exceptions = {
|
|
22
22
|
400: {
|
|
@@ -30,6 +30,7 @@ exceptions = {
|
|
|
30
30
|
"ADMIN_RANK_EMOJI_NOT_ALLOWED": "AdminRankEmojiNotAllowed",
|
|
31
31
|
"ADMIN_RANK_INVALID": "AdminRankInvalid",
|
|
32
32
|
"ADMIN_RIGHTS_EMPTY": "AdminRightsEmpty",
|
|
33
|
+
"AD_EXPIRED": "AdExpired",
|
|
33
34
|
"ALBUM_PHOTOS_TOO_MANY": "AlbumPhotosTooMany",
|
|
34
35
|
"API_ID_INVALID": "ApiIdInvalid",
|
|
35
36
|
"API_ID_PUBLISHED_FLOOD": "ApiIdPublishedFlood",
|
|
@@ -54,8 +55,11 @@ exceptions = {
|
|
|
54
55
|
"BOOST_NOT_MODIFIED": "BoostNotModified",
|
|
55
56
|
"BOOST_PEER_INVALID": "BoostPeerInvalid",
|
|
56
57
|
"BOTS_TOO_MUCH": "BotsTooMuch",
|
|
58
|
+
"BOT_ALREADY_DISABLED": "BotAlreadyDisabled",
|
|
59
|
+
"BOT_APP_BOT_INVALID": "BotAppBotInvalid",
|
|
57
60
|
"BOT_APP_INVALID": "BotAppInvalid",
|
|
58
61
|
"BOT_APP_SHORTNAME_INVALID": "BotAppShortnameInvalid",
|
|
62
|
+
"BOT_BUSINESS_MISSING": "BotBusinessMissing",
|
|
59
63
|
"BOT_CHANNELS_NA": "BotChannelsNa",
|
|
60
64
|
"BOT_COMMAND_DESCRIPTION_INVALID": "BotCommandDescriptionInvalid",
|
|
61
65
|
"BOT_COMMAND_INVALID": "BotCommandInvalid",
|
|
@@ -66,6 +70,7 @@ exceptions = {
|
|
|
66
70
|
"BOT_INVALID": "BotInvalid",
|
|
67
71
|
"BOT_METHOD_INVALID": "BotMethodInvalid",
|
|
68
72
|
"BOT_MISSING": "BotMissing",
|
|
73
|
+
"BOT_NOT_CONNECTED_YET": "BotNotConnectedYet",
|
|
69
74
|
"BOT_ONESIDE_NOT_AVAIL": "BotOnesideNotAvail",
|
|
70
75
|
"BOT_PAYMENTS_DISABLED": "BotPaymentsDisabled",
|
|
71
76
|
"BOT_POLLS_DISABLED": "BotPollsDisabled",
|
|
@@ -76,8 +81,14 @@ exceptions = {
|
|
|
76
81
|
"BROADCAST_ID_INVALID": "BroadcastIdInvalid",
|
|
77
82
|
"BROADCAST_PUBLIC_VOTERS_FORBIDDEN": "BroadcastPublicVotersForbidden",
|
|
78
83
|
"BROADCAST_REQUIRED": "BroadcastRequired",
|
|
84
|
+
"BUSINESS_PEER_INVALID": "BusinessPeerInvalid",
|
|
85
|
+
"BUSINESS_RECIPIENTS_EMPTY": "BusinessRecipientsEmpty",
|
|
86
|
+
"BUSINESS_WORK_HOURS_EMPTY": "BusinessWorkHoursEmpty",
|
|
87
|
+
"BUSINESS_WORK_HOURS_PERIOD_INVALID": "BusinessWorkHoursPeriodInvalid",
|
|
88
|
+
"BUTTON_COPY_TEXT_INVALID": "ButtonCopyTextInvalid",
|
|
79
89
|
"BUTTON_DATA_INVALID": "ButtonDataInvalid",
|
|
80
90
|
"BUTTON_ID_INVALID": "ButtonIdInvalid",
|
|
91
|
+
"BUTTON_POS_INVALID": "ButtonPosInvalid",
|
|
81
92
|
"BUTTON_TEXT_INVALID": "ButtonTextInvalid",
|
|
82
93
|
"BUTTON_TYPE_INVALID": "ButtonTypeInvalid",
|
|
83
94
|
"BUTTON_URL_INVALID": "ButtonUrlInvalid",
|
|
@@ -103,6 +114,9 @@ exceptions = {
|
|
|
103
114
|
"CHANNEL_TOO_LARGE": "ChannelTooLarge",
|
|
104
115
|
"CHARGE_ALREADY_REFUNDED": "ChargeAlreadyRefunded",
|
|
105
116
|
"CHARGE_NOT_FOUND": "ChargeNotFound",
|
|
117
|
+
"CHATLINKS_TOO_MUCH": "ChatlinksTooMuch",
|
|
118
|
+
"CHATLINK_SLUG_EMPTY": "ChatlinkSlugEmpty",
|
|
119
|
+
"CHATLINK_SLUG_EXPIRED": "ChatlinkSlugExpired",
|
|
106
120
|
"CHATLISTS_TOO_MUCH": "ChatlistsTooMuch",
|
|
107
121
|
"CHATLIST_EXCLUDE_INVALID": "ChatlistExcludeInvalid",
|
|
108
122
|
"CHAT_ABOUT_NOT_MODIFIED": "ChatAboutNotModified",
|
|
@@ -125,10 +139,13 @@ exceptions = {
|
|
|
125
139
|
"CODE_EMPTY": "CodeEmpty",
|
|
126
140
|
"CODE_HASH_INVALID": "CodeHashInvalid",
|
|
127
141
|
"CODE_INVALID": "CodeInvalid",
|
|
142
|
+
"COLLECTIBLE_INVALID": "CollectibleInvalid",
|
|
143
|
+
"COLLECTIBLE_NOT_FOUND": "CollectibleNotFound",
|
|
128
144
|
"COLOR_INVALID": "ColorInvalid",
|
|
129
145
|
"CONNECTION_API_ID_INVALID": "ConnectionApiIdInvalid",
|
|
130
146
|
"CONNECTION_APP_VERSION_EMPTY": "ConnectionAppVersionEmpty",
|
|
131
147
|
"CONNECTION_DEVICE_MODEL_EMPTY": "ConnectionDeviceModelEmpty",
|
|
148
|
+
"CONNECTION_ID_INVALID": "ConnectionIdInvalid",
|
|
132
149
|
"CONNECTION_LANG_PACK_INVALID": "ConnectionLangPackInvalid",
|
|
133
150
|
"CONNECTION_LAYER_INVALID": "ConnectionLayerInvalid",
|
|
134
151
|
"CONNECTION_NOT_INITED": "ConnectionNotInited",
|
|
@@ -196,6 +213,8 @@ exceptions = {
|
|
|
196
213
|
"FILE_REFERENCE_EMPTY": "FileReferenceEmpty",
|
|
197
214
|
"FILE_REFERENCE_EXPIRED": "FileReferenceExpired",
|
|
198
215
|
"FILE_REFERENCE_INVALID": "FileReferenceInvalid",
|
|
216
|
+
"FILE_REFERENCE_X_EXPIRED": "FileReferenceExpired",
|
|
217
|
+
"FILE_REFERENCE_X_INVALID": "FileReferenceInvalid",
|
|
199
218
|
"FILE_TITLE_EMPTY": "FileTitleEmpty",
|
|
200
219
|
"FILE_TOKEN_INVALID": "FileTokenInvalid",
|
|
201
220
|
"FILTER_ID_INVALID": "FilterIdInvalid",
|
|
@@ -203,8 +222,10 @@ exceptions = {
|
|
|
203
222
|
"FILTER_NOT_SUPPORTED": "FilterNotSupported",
|
|
204
223
|
"FILTER_TITLE_EMPTY": "FilterTitleEmpty",
|
|
205
224
|
"FIRSTNAME_INVALID": "FirstnameInvalid",
|
|
225
|
+
"FLOODSKIP_NOT_ALLOWED": "FloodskipNotAllowed",
|
|
206
226
|
"FOLDER_ID_EMPTY": "FolderIdEmpty",
|
|
207
227
|
"FOLDER_ID_INVALID": "FolderIdInvalid",
|
|
228
|
+
"FORM_EXPIRED": "FormExpired",
|
|
208
229
|
"FORM_ID_EXPIRED": "FormIdExpired",
|
|
209
230
|
"FORUM_ENABLED": "ForumEnabled",
|
|
210
231
|
"FRESH_CHANGE_ADMINS_FORBIDDEN": "FreshChangeAdminsForbidden",
|
|
@@ -228,10 +249,12 @@ exceptions = {
|
|
|
228
249
|
"GROUPCALL_SSRC_DUPLICATE_MUCH": "GroupcallSsrcDuplicateMuch",
|
|
229
250
|
"GROUPED_MEDIA_INVALID": "GroupedMediaInvalid",
|
|
230
251
|
"GROUP_CALL_INVALID": "GroupCallInvalid",
|
|
252
|
+
"HASHTAG_INVALID": "HashtagInvalid",
|
|
231
253
|
"HASH_INVALID": "HashInvalid",
|
|
232
254
|
"HIDE_REQUESTER_MISSING": "HideRequesterMissing",
|
|
233
255
|
"IMAGE_PROCESS_FAILED": "ImageProcessFailed",
|
|
234
256
|
"IMPORT_FILE_INVALID": "ImportFileInvalid",
|
|
257
|
+
"IMPORT_FORMAT_DATE_INVALID": "ImportFormatDateInvalid",
|
|
235
258
|
"IMPORT_FORMAT_UNRECOGNIZED": "ImportFormatUnrecognized",
|
|
236
259
|
"IMPORT_ID_INVALID": "ImportIdInvalid",
|
|
237
260
|
"IMPORT_TOKEN_INVALID": "ImportTokenInvalid",
|
|
@@ -240,6 +263,7 @@ exceptions = {
|
|
|
240
263
|
"INPUT_CONSTRUCTOR_INVALID": "InputConstructorInvalid",
|
|
241
264
|
"INPUT_FETCH_ERROR": "InputFetchError",
|
|
242
265
|
"INPUT_FETCH_FAIL": "InputFetchFail",
|
|
266
|
+
"INPUT_FILE_INVALID": "InputFileInvalid",
|
|
243
267
|
"INPUT_FILTER_INVALID": "InputFilterInvalid",
|
|
244
268
|
"INPUT_LAYER_INVALID": "InputLayerInvalid",
|
|
245
269
|
"INPUT_METHOD_INVALID": "InputMethodInvalid",
|
|
@@ -258,6 +282,7 @@ exceptions = {
|
|
|
258
282
|
"INVITE_SLUG_EXPIRED": "InviteSlugExpired",
|
|
259
283
|
"INVOICE_PAYLOAD_INVALID": "InvoicePayloadInvalid",
|
|
260
284
|
"JOIN_AS_PEER_INVALID": "JoinAsPeerInvalid",
|
|
285
|
+
"LANGUAGE_INVALID": "LanguageInvalid",
|
|
261
286
|
"LANG_CODE_INVALID": "LangCodeInvalid",
|
|
262
287
|
"LANG_CODE_NOT_SUPPORTED": "LangCodeNotSupported",
|
|
263
288
|
"LANG_PACK_INVALID": "LangPackInvalid",
|
|
@@ -269,6 +294,7 @@ exceptions = {
|
|
|
269
294
|
"MAX_ID_INVALID": "MaxIdInvalid",
|
|
270
295
|
"MAX_QTS_INVALID": "MaxQtsInvalid",
|
|
271
296
|
"MD5_CHECKSUM_INVALID": "Md5ChecksumInvalid",
|
|
297
|
+
"MEDIA_ALREADY_PAID": "MediaAlreadyPaid",
|
|
272
298
|
"MEDIA_CAPTION_TOO_LONG": "MediaCaptionTooLong",
|
|
273
299
|
"MEDIA_EMPTY": "MediaEmpty",
|
|
274
300
|
"MEDIA_FILE_INVALID": "MediaFileInvalid",
|
|
@@ -288,8 +314,10 @@ exceptions = {
|
|
|
288
314
|
"MESSAGE_IDS_EMPTY": "MessageIdsEmpty",
|
|
289
315
|
"MESSAGE_ID_INVALID": "MessageIdInvalid",
|
|
290
316
|
"MESSAGE_NOT_MODIFIED": "MessageNotModified",
|
|
317
|
+
"MESSAGE_NOT_READ_YET": "MessageNotReadYet",
|
|
291
318
|
"MESSAGE_POLL_CLOSED": "MessagePollClosed",
|
|
292
319
|
"MESSAGE_TOO_LONG": "MessageTooLong",
|
|
320
|
+
"MESSAGE_TOO_OLD": "MessageTooOld",
|
|
293
321
|
"METHOD_INVALID": "MethodInvalid",
|
|
294
322
|
"MIN_DATE_INVALID": "MinDateInvalid",
|
|
295
323
|
"MSG_ID_INVALID": "MsgIdInvalid",
|
|
@@ -302,6 +330,8 @@ exceptions = {
|
|
|
302
330
|
"NEW_SETTINGS_INVALID": "NewSettingsInvalid",
|
|
303
331
|
"NEXT_OFFSET_INVALID": "NextOffsetInvalid",
|
|
304
332
|
"NOGENERAL_HIDE_FORBIDDEN": "NogeneralHideForbidden",
|
|
333
|
+
"NOT_ELIGIBLE": "NotEligible",
|
|
334
|
+
"NOT_JOINED": "NotJoined",
|
|
305
335
|
"OFFSET_INVALID": "OffsetInvalid",
|
|
306
336
|
"OFFSET_PEER_ID_INVALID": "OffsetPeerIdInvalid",
|
|
307
337
|
"OPTIONS_TOO_MUCH": "OptionsTooMuch",
|
|
@@ -355,6 +385,7 @@ exceptions = {
|
|
|
355
385
|
"PHOTO_THUMB_URL_EMPTY": "PhotoThumbUrlEmpty",
|
|
356
386
|
"PHOTO_THUMB_URL_INVALID": "PhotoThumbUrlInvalid",
|
|
357
387
|
"PINNED_DIALOGS_TOO_MUCH": "PinnedDialogsTooMuch",
|
|
388
|
+
"PINNED_TOPIC_NOT_MODIFIED": "PinnedTopicNotModified",
|
|
358
389
|
"PIN_RESTRICTED": "PinRestricted",
|
|
359
390
|
"PLATFORM_INVALID": "PlatformInvalid",
|
|
360
391
|
"POLL_ANSWERS_INVALID": "PollAnswersInvalid",
|
|
@@ -374,27 +405,33 @@ exceptions = {
|
|
|
374
405
|
"QUERY_ID_EMPTY": "QueryIdEmpty",
|
|
375
406
|
"QUERY_ID_INVALID": "QueryIdInvalid",
|
|
376
407
|
"QUERY_TOO_SHORT": "QueryTooShort",
|
|
408
|
+
"QUICK_REPLIES_TOO_MUCH": "QuickRepliesTooMuch",
|
|
377
409
|
"QUIZ_ANSWER_MISSING": "QuizAnswerMissing",
|
|
378
410
|
"QUIZ_CORRECT_ANSWERS_EMPTY": "QuizCorrectAnswersEmpty",
|
|
379
411
|
"QUIZ_CORRECT_ANSWERS_TOO_MUCH": "QuizCorrectAnswersTooMuch",
|
|
380
412
|
"QUIZ_CORRECT_ANSWER_INVALID": "QuizCorrectAnswerInvalid",
|
|
381
413
|
"QUIZ_MULTIPLE_INVALID": "QuizMultipleInvalid",
|
|
382
414
|
"QUOTE_TEXT_INVALID": "QuoteTextInvalid",
|
|
415
|
+
"RAISE_HAND_FORBIDDEN": "RaiseHandForbidden",
|
|
383
416
|
"RANDOM_ID_EMPTY": "RandomIdEmpty",
|
|
384
417
|
"RANDOM_ID_INVALID": "RandomIdInvalid",
|
|
385
418
|
"RANDOM_LENGTH_INVALID": "RandomLengthInvalid",
|
|
386
419
|
"RANGES_INVALID": "RangesInvalid",
|
|
420
|
+
"REACTIONS_COUNT_INVALID": "ReactionsCountInvalid",
|
|
387
421
|
"REACTIONS_TOO_MANY": "ReactionsTooMany",
|
|
388
422
|
"REACTION_EMPTY": "ReactionEmpty",
|
|
389
423
|
"REACTION_INVALID": "ReactionInvalid",
|
|
424
|
+
"RECEIPT_EMPTY": "ReceiptEmpty",
|
|
390
425
|
"REFLECTOR_NOT_AVAILABLE": "ReflectorNotAvailable",
|
|
391
426
|
"REPLY_MARKUP_BUY_EMPTY": "ReplyMarkupBuyEmpty",
|
|
392
427
|
"REPLY_MARKUP_GAME_EMPTY": "ReplyMarkupGameEmpty",
|
|
393
428
|
"REPLY_MARKUP_INVALID": "ReplyMarkupInvalid",
|
|
394
429
|
"REPLY_MARKUP_TOO_LONG": "ReplyMarkupTooLong",
|
|
430
|
+
"REPLY_MESSAGES_TOO_MUCH": "ReplyMessagesTooMuch",
|
|
395
431
|
"REPLY_MESSAGE_ID_INVALID": "ReplyMessageIdInvalid",
|
|
396
432
|
"REPLY_TO_INVALID": "ReplyToInvalid",
|
|
397
433
|
"REPLY_TO_USER_INVALID": "ReplyToUserInvalid",
|
|
434
|
+
"REQUEST_TOKEN_INVALID": "RequestTokenInvalid",
|
|
398
435
|
"RESET_REQUEST_MISSING": "ResetRequestMissing",
|
|
399
436
|
"RESULTS_TOO_MUCH": "ResultsTooMuch",
|
|
400
437
|
"RESULT_ID_DUPLICATE": "ResultIdDuplicate",
|
|
@@ -403,6 +440,8 @@ exceptions = {
|
|
|
403
440
|
"RESULT_TYPE_INVALID": "ResultTypeInvalid",
|
|
404
441
|
"REVOTE_NOT_ALLOWED": "RevoteNotAllowed",
|
|
405
442
|
"RIGHTS_NOT_MODIFIED": "RightsNotModified",
|
|
443
|
+
"RINGTONE_INVALID": "RingtoneInvalid",
|
|
444
|
+
"RINGTONE_MIME_INVALID": "RingtoneMimeInvalid",
|
|
406
445
|
"RSA_DECRYPT_FAILED": "RsaDecryptFailed",
|
|
407
446
|
"SAVED_DIALOGS_UNSUPPORTED": "SavedDialogsUnsupported",
|
|
408
447
|
"SCHEDULE_BOT_NOT_ALLOWED": "ScheduleBotNotAllowed",
|
|
@@ -414,21 +453,25 @@ exceptions = {
|
|
|
414
453
|
"SEARCH_QUERY_EMPTY": "SearchQueryEmpty",
|
|
415
454
|
"SEARCH_WITH_LINK_NOT_SUPPORTED": "SearchWithLinkNotSupported",
|
|
416
455
|
"SECONDS_INVALID": "SecondsInvalid",
|
|
456
|
+
"SECURE_SECRET_REQUIRED": "SecureSecretRequired",
|
|
417
457
|
"SEND_AS_PEER_INVALID": "SendAsPeerInvalid",
|
|
418
458
|
"SEND_MESSAGE_MEDIA_INVALID": "SendMessageMediaInvalid",
|
|
419
459
|
"SEND_MESSAGE_TYPE_INVALID": "SendMessageTypeInvalid",
|
|
420
460
|
"SESSION_TOO_FRESH_X": "SessionTooFresh",
|
|
421
461
|
"SETTINGS_INVALID": "SettingsInvalid",
|
|
422
462
|
"SHA256_HASH_INVALID": "Sha256HashInvalid",
|
|
463
|
+
"SHORTCUT_INVALID": "ShortcutInvalid",
|
|
423
464
|
"SHORTNAME_OCCUPY_FAILED": "ShortnameOccupyFailed",
|
|
424
465
|
"SHORT_NAME_INVALID": "ShortNameInvalid",
|
|
425
466
|
"SHORT_NAME_OCCUPIED": "ShortNameOccupied",
|
|
426
467
|
"SLOTS_EMPTY": "SlotsEmpty",
|
|
427
468
|
"SLOWMODE_MULTI_MSGS_DISABLED": "SlowmodeMultiMsgsDisabled",
|
|
428
469
|
"SLUG_INVALID": "SlugInvalid",
|
|
470
|
+
"SMSJOB_ID_INVALID": "SmsjobIdInvalid",
|
|
429
471
|
"SMS_CODE_CREATE_FAILED": "SmsCodeCreateFailed",
|
|
430
472
|
"SRP_ID_INVALID": "SrpIdInvalid",
|
|
431
473
|
"SRP_PASSWORD_CHANGED": "SrpPasswordChanged",
|
|
474
|
+
"STARGIFT_ALREADY_CONVERTED": "StargiftAlreadyConverted",
|
|
432
475
|
"START_PARAM_EMPTY": "StartParamEmpty",
|
|
433
476
|
"START_PARAM_INVALID": "StartParamInvalid",
|
|
434
477
|
"START_PARAM_TOO_LONG": "StartParamTooLong",
|
|
@@ -463,6 +506,7 @@ exceptions = {
|
|
|
463
506
|
"STORY_SEND_FLOOD_MONTHLY_X": "StorySendFloodMonthly",
|
|
464
507
|
"STORY_SEND_FLOOD_WEEKLY_X": "StorySendFloodWeekly",
|
|
465
508
|
"SWITCH_PM_TEXT_EMPTY": "SwitchPmTextEmpty",
|
|
509
|
+
"SWITCH_WEBVIEW_URL_INVALID": "SwitchWebviewUrlInvalid",
|
|
466
510
|
"TAKEOUT_INVALID": "TakeoutInvalid",
|
|
467
511
|
"TAKEOUT_REQUIRED": "TakeoutRequired",
|
|
468
512
|
"TASK_ALREADY_EXISTS": "TaskAlreadyExists",
|
|
@@ -473,6 +517,7 @@ exceptions = {
|
|
|
473
517
|
"THEME_INVALID": "ThemeInvalid",
|
|
474
518
|
"THEME_MIME_INVALID": "ThemeMimeInvalid",
|
|
475
519
|
"THEME_TITLE_INVALID": "ThemeTitleInvalid",
|
|
520
|
+
"TIMEZONE_INVALID": "TimezoneInvalid",
|
|
476
521
|
"TITLE_INVALID": "TitleInvalid",
|
|
477
522
|
"TMP_PASSWORD_DISABLED": "TmpPasswordDisabled",
|
|
478
523
|
"TMP_PASSWORD_INVALID": "TmpPasswordInvalid",
|
|
@@ -490,6 +535,7 @@ exceptions = {
|
|
|
490
535
|
"TOPIC_TITLE_EMPTY": "TopicTitleEmpty",
|
|
491
536
|
"TO_LANG_INVALID": "ToLangInvalid",
|
|
492
537
|
"TRANSCRIPTION_FAILED": "TranscriptionFailed",
|
|
538
|
+
"TRANSLATE_REQ_QUOTA_EXCEEDED": "TranslateReqQuotaExceeded",
|
|
493
539
|
"TTL_DAYS_INVALID": "TtlDaysInvalid",
|
|
494
540
|
"TTL_MEDIA_INVALID": "TtlMediaInvalid",
|
|
495
541
|
"TTL_PERIOD_INVALID": "TtlPeriodInvalid",
|
|
@@ -530,6 +576,8 @@ exceptions = {
|
|
|
530
576
|
"VENUE_ID_INVALID": "VenueIdInvalid",
|
|
531
577
|
"VIDEO_CONTENT_TYPE_INVALID": "VideoContentTypeInvalid",
|
|
532
578
|
"VIDEO_FILE_INVALID": "VideoFileInvalid",
|
|
579
|
+
"VIDEO_PAUSE_FORBIDDEN": "VideoPauseForbidden",
|
|
580
|
+
"VIDEO_STOP_FORBIDDEN": "VideoStopForbidden",
|
|
533
581
|
"VIDEO_TITLE_EMPTY": "VideoTitleEmpty",
|
|
534
582
|
"VOICE_MESSAGES_FORBIDDEN": "VoiceMessagesForbidden",
|
|
535
583
|
"VOLUME_LOC_NOT_FOUND": "VolumeLocNotFound",
|
|
@@ -557,6 +605,7 @@ exceptions = {
|
|
|
557
605
|
"AUTH_KEY_DUPLICATED": "AuthKeyDuplicated",
|
|
558
606
|
"BANNED_RIGHTS_INVALID": "BannedRightsInvalid",
|
|
559
607
|
"BOT_PRECHECKOUT_FAILED": "BotPrecheckoutFailed",
|
|
608
|
+
"BUSINESS_ADDRESS_ACTIVE": "BusinessAddressActive",
|
|
560
609
|
"CALL_PROTOCOL_COMPAT_LAYER_INVALID": "CallProtocolCompatLayerInvalid",
|
|
561
610
|
"CHANNEL_PRIVATE": "ChannelPrivate",
|
|
562
611
|
"CHANNEL_TOO_LARGE": "ChannelTooLarge",
|
|
@@ -574,6 +623,7 @@ exceptions = {
|
|
|
574
623
|
"PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN": "PreviousChatImportActiveWaitMin",
|
|
575
624
|
"PRIVACY_PREMIUM_REQUIRED": "PrivacyPremiumRequired",
|
|
576
625
|
"SEND_CODE_UNAVAILABLE": "SendCodeUnavailable",
|
|
626
|
+
"STARGIFT_USAGE_LIMITED": "StargiftUsageLimited",
|
|
577
627
|
"STICKERSET_INVALID": "StickersetInvalid",
|
|
578
628
|
"STICKERSET_OWNER_ANONYMOUS": "StickersetOwnerAnonymous",
|
|
579
629
|
"TOPIC_CLOSED": "TopicClosed",
|
|
@@ -594,6 +644,7 @@ exceptions = {
|
|
|
594
644
|
420: {
|
|
595
645
|
"_": "Flood",
|
|
596
646
|
"2FA_CONFIRM_WAIT_X": "TwoFaConfirmWait",
|
|
647
|
+
"ADDRESS_INVALID": "AddressInvalid",
|
|
597
648
|
"FLOOD_PREMIUM_WAIT_X": "FloodPremiumWait",
|
|
598
649
|
"FLOOD_TEST_PHONE_WAIT_X": "FloodTestPhoneWait",
|
|
599
650
|
"FLOOD_WAIT_X": "FloodWait",
|
|
@@ -674,6 +725,7 @@ exceptions = {
|
|
|
674
725
|
"ANONYMOUS_REACTIONS_DISABLED": "AnonymousReactionsDisabled",
|
|
675
726
|
"BROADCAST_FORBIDDEN": "BroadcastForbidden",
|
|
676
727
|
"CHANNEL_PUBLIC_GROUP_NA": "ChannelPublicGroupNa",
|
|
728
|
+
"CHAT_ACTION_FORBIDDEN": "ChatActionForbidden",
|
|
677
729
|
"CHAT_ADMIN_INVITE_REQUIRED": "ChatAdminInviteRequired",
|
|
678
730
|
"CHAT_ADMIN_REQUIRED": "ChatAdminRequired",
|
|
679
731
|
"CHAT_FORBIDDEN": "ChatForbidden",
|
|
@@ -715,9 +767,11 @@ exceptions = {
|
|
|
715
767
|
"USER_INVALID": "UserInvalid",
|
|
716
768
|
"USER_IS_BLOCKED": "UserIsBlocked",
|
|
717
769
|
"USER_NOT_MUTUAL_CONTACT": "UserNotMutualContact",
|
|
770
|
+
"USER_NOT_PARTICIPANT": "UserNotParticipant",
|
|
718
771
|
"USER_PRIVACY_RESTRICTED": "UserPrivacyRestricted",
|
|
719
772
|
"USER_RESTRICTED": "UserRestricted",
|
|
720
773
|
"VOICE_MESSAGES_FORBIDDEN": "VoiceMessagesForbidden",
|
|
774
|
+
"YOUR_PRIVACY_RESTRICTED": "YourPrivacyRestricted",
|
|
721
775
|
},
|
|
722
776
|
503: {
|
|
723
777
|
"_": "ServiceUnavailable",
|
|
@@ -89,6 +89,13 @@ class AdminRightsEmpty(BadRequest):
|
|
|
89
89
|
MESSAGE = __doc__
|
|
90
90
|
|
|
91
91
|
|
|
92
|
+
class AdExpired(BadRequest):
|
|
93
|
+
"""The ad has expired (too old or not found)."""
|
|
94
|
+
ID = "AD_EXPIRED"
|
|
95
|
+
"""``str``: RPC Error ID"""
|
|
96
|
+
MESSAGE = __doc__
|
|
97
|
+
|
|
98
|
+
|
|
92
99
|
class AlbumPhotosTooMany(BadRequest):
|
|
93
100
|
"""Too many photos were included in the album"""
|
|
94
101
|
ID = "ALBUM_PHOTOS_TOO_MANY"
|
|
@@ -257,6 +264,20 @@ class BotsTooMuch(BadRequest):
|
|
|
257
264
|
MESSAGE = __doc__
|
|
258
265
|
|
|
259
266
|
|
|
267
|
+
class BotAlreadyDisabled(BadRequest):
|
|
268
|
+
"""The connected business bot was already disabled for the specified peer."""
|
|
269
|
+
ID = "BOT_ALREADY_DISABLED"
|
|
270
|
+
"""``str``: RPC Error ID"""
|
|
271
|
+
MESSAGE = __doc__
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
class BotAppBotInvalid(BadRequest):
|
|
275
|
+
"""The bot_id passed in the inputBotAppShortName constructor is invalid."""
|
|
276
|
+
ID = "BOT_APP_BOT_INVALID"
|
|
277
|
+
"""``str``: RPC Error ID"""
|
|
278
|
+
MESSAGE = __doc__
|
|
279
|
+
|
|
280
|
+
|
|
260
281
|
class BotAppInvalid(BadRequest):
|
|
261
282
|
"""The specified bot app is invalid."""
|
|
262
283
|
ID = "BOT_APP_INVALID"
|
|
@@ -271,6 +292,13 @@ class BotAppShortnameInvalid(BadRequest):
|
|
|
271
292
|
MESSAGE = __doc__
|
|
272
293
|
|
|
273
294
|
|
|
295
|
+
class BotBusinessMissing(BadRequest):
|
|
296
|
+
"""The specified bot is not a business bot (the [user](https://core.telegram.org/constructor/user).`bot_business` flag is not set)."""
|
|
297
|
+
ID = "BOT_BUSINESS_MISSING"
|
|
298
|
+
"""``str``: RPC Error ID"""
|
|
299
|
+
MESSAGE = __doc__
|
|
300
|
+
|
|
301
|
+
|
|
274
302
|
class BotChannelsNa(BadRequest):
|
|
275
303
|
"""Bots can't edit admin privileges"""
|
|
276
304
|
ID = "BOT_CHANNELS_NA"
|
|
@@ -341,6 +369,13 @@ class BotMissing(BadRequest):
|
|
|
341
369
|
MESSAGE = __doc__
|
|
342
370
|
|
|
343
371
|
|
|
372
|
+
class BotNotConnectedYet(BadRequest):
|
|
373
|
+
"""No [business bot](https://core.telegram.org/api/business#connected-bots) is connected to the currently logged in user."""
|
|
374
|
+
ID = "BOT_NOT_CONNECTED_YET"
|
|
375
|
+
"""``str``: RPC Error ID"""
|
|
376
|
+
MESSAGE = __doc__
|
|
377
|
+
|
|
378
|
+
|
|
344
379
|
class BotOnesideNotAvail(BadRequest):
|
|
345
380
|
"""Bots can't pin messages for one side only in private chats"""
|
|
346
381
|
ID = "BOT_ONESIDE_NOT_AVAIL"
|
|
@@ -411,6 +446,41 @@ class BroadcastRequired(BadRequest):
|
|
|
411
446
|
MESSAGE = __doc__
|
|
412
447
|
|
|
413
448
|
|
|
449
|
+
class BusinessPeerInvalid(BadRequest):
|
|
450
|
+
"""Messages can't be set to the specified peer through the current [business connection](https://core.telegram.org/api/business#connected-bots)."""
|
|
451
|
+
ID = "BUSINESS_PEER_INVALID"
|
|
452
|
+
"""``str``: RPC Error ID"""
|
|
453
|
+
MESSAGE = __doc__
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
class BusinessRecipientsEmpty(BadRequest):
|
|
457
|
+
"""You didn't set any flag in inputBusinessBotRecipients, thus the bot cannot work with *any* peer."""
|
|
458
|
+
ID = "BUSINESS_RECIPIENTS_EMPTY"
|
|
459
|
+
"""``str``: RPC Error ID"""
|
|
460
|
+
MESSAGE = __doc__
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
class BusinessWorkHoursEmpty(BadRequest):
|
|
464
|
+
"""No work hours were specified."""
|
|
465
|
+
ID = "BUSINESS_WORK_HOURS_EMPTY"
|
|
466
|
+
"""``str``: RPC Error ID"""
|
|
467
|
+
MESSAGE = __doc__
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
class BusinessWorkHoursPeriodInvalid(BadRequest):
|
|
471
|
+
"""The specified work hours are invalid, see [here »](https://core.telegram.org/api/business#opening-hours) for the exact requirements."""
|
|
472
|
+
ID = "BUSINESS_WORK_HOURS_PERIOD_INVALID"
|
|
473
|
+
"""``str``: RPC Error ID"""
|
|
474
|
+
MESSAGE = __doc__
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
class ButtonCopyTextInvalid(BadRequest):
|
|
478
|
+
"""The `copy_text` of one or more of the buttons you provided is invalid."""
|
|
479
|
+
ID = "BUTTON_COPY_TEXT_INVALID"
|
|
480
|
+
"""``str``: RPC Error ID"""
|
|
481
|
+
MESSAGE = __doc__
|
|
482
|
+
|
|
483
|
+
|
|
414
484
|
class ButtonDataInvalid(BadRequest):
|
|
415
485
|
"""The button callback data is invalid or too large"""
|
|
416
486
|
ID = "BUTTON_DATA_INVALID"
|
|
@@ -425,6 +495,13 @@ class ButtonIdInvalid(BadRequest):
|
|
|
425
495
|
MESSAGE = __doc__
|
|
426
496
|
|
|
427
497
|
|
|
498
|
+
class ButtonPosInvalid(BadRequest):
|
|
499
|
+
"""The position of one of the keyboard buttons is invalid (i.e. a Game or Pay button not in the first position, and so on...)."""
|
|
500
|
+
ID = "BUTTON_POS_INVALID"
|
|
501
|
+
"""``str``: RPC Error ID"""
|
|
502
|
+
MESSAGE = __doc__
|
|
503
|
+
|
|
504
|
+
|
|
428
505
|
class ButtonTextInvalid(BadRequest):
|
|
429
506
|
"""The specified button text is invalid"""
|
|
430
507
|
ID = "BUTTON_TEXT_INVALID"
|
|
@@ -600,6 +677,27 @@ class ChargeNotFound(BadRequest):
|
|
|
600
677
|
MESSAGE = __doc__
|
|
601
678
|
|
|
602
679
|
|
|
680
|
+
class ChatlinksTooMuch(BadRequest):
|
|
681
|
+
"""Too many [business chat links](https://core.telegram.org/api/business#business-chat-links) were created, please delete some older links."""
|
|
682
|
+
ID = "CHATLINKS_TOO_MUCH"
|
|
683
|
+
"""``str``: RPC Error ID"""
|
|
684
|
+
MESSAGE = __doc__
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
class ChatlinkSlugEmpty(BadRequest):
|
|
688
|
+
"""The specified slug is empty."""
|
|
689
|
+
ID = "CHATLINK_SLUG_EMPTY"
|
|
690
|
+
"""``str``: RPC Error ID"""
|
|
691
|
+
MESSAGE = __doc__
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
class ChatlinkSlugExpired(BadRequest):
|
|
695
|
+
"""The specified [business chat link](https://core.telegram.org/api/business#business-chat-links) has expired."""
|
|
696
|
+
ID = "CHATLINK_SLUG_EXPIRED"
|
|
697
|
+
"""``str``: RPC Error ID"""
|
|
698
|
+
MESSAGE = __doc__
|
|
699
|
+
|
|
700
|
+
|
|
603
701
|
class ChatlistsTooMuch(BadRequest):
|
|
604
702
|
"""You have too much chatlists on your account"""
|
|
605
703
|
ID = "CHATLISTS_TOO_MUCH"
|
|
@@ -754,6 +852,20 @@ class CodeInvalid(BadRequest):
|
|
|
754
852
|
MESSAGE = __doc__
|
|
755
853
|
|
|
756
854
|
|
|
855
|
+
class CollectibleInvalid(BadRequest):
|
|
856
|
+
"""The specified collectible is invalid."""
|
|
857
|
+
ID = "COLLECTIBLE_INVALID"
|
|
858
|
+
"""``str``: RPC Error ID"""
|
|
859
|
+
MESSAGE = __doc__
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
class CollectibleNotFound(BadRequest):
|
|
863
|
+
"""The specified collectible could not be found."""
|
|
864
|
+
ID = "COLLECTIBLE_NOT_FOUND"
|
|
865
|
+
"""``str``: RPC Error ID"""
|
|
866
|
+
MESSAGE = __doc__
|
|
867
|
+
|
|
868
|
+
|
|
757
869
|
class ColorInvalid(BadRequest):
|
|
758
870
|
"""The provided color is invalid"""
|
|
759
871
|
ID = "COLOR_INVALID"
|
|
@@ -782,6 +894,13 @@ class ConnectionDeviceModelEmpty(BadRequest):
|
|
|
782
894
|
MESSAGE = __doc__
|
|
783
895
|
|
|
784
896
|
|
|
897
|
+
class ConnectionIdInvalid(BadRequest):
|
|
898
|
+
"""The specified connection ID is invalid."""
|
|
899
|
+
ID = "CONNECTION_ID_INVALID"
|
|
900
|
+
"""``str``: RPC Error ID"""
|
|
901
|
+
MESSAGE = __doc__
|
|
902
|
+
|
|
903
|
+
|
|
785
904
|
class ConnectionLangPackInvalid(BadRequest):
|
|
786
905
|
"""The specified language pack is not valid"""
|
|
787
906
|
ID = "CONNECTION_LANG_PACK_INVALID"
|
|
@@ -1251,6 +1370,20 @@ class FileReferenceInvalid(BadRequest):
|
|
|
1251
1370
|
MESSAGE = __doc__
|
|
1252
1371
|
|
|
1253
1372
|
|
|
1373
|
+
class FileReferenceExpired(BadRequest):
|
|
1374
|
+
"""The file reference of the media file at index {value} in the passed media array expired, it [must be refreshed](https://core.telegram.org/api/file_reference)."""
|
|
1375
|
+
ID = "FILE_REFERENCE_X_EXPIRED"
|
|
1376
|
+
"""``str``: RPC Error ID"""
|
|
1377
|
+
MESSAGE = __doc__
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
class FileReferenceInvalid(BadRequest):
|
|
1381
|
+
"""The file reference of the media file at index {value} in the passed media array is invalid."""
|
|
1382
|
+
ID = "FILE_REFERENCE_X_INVALID"
|
|
1383
|
+
"""``str``: RPC Error ID"""
|
|
1384
|
+
MESSAGE = __doc__
|
|
1385
|
+
|
|
1386
|
+
|
|
1254
1387
|
class FileTitleEmpty(BadRequest):
|
|
1255
1388
|
"""An empty file title was specified"""
|
|
1256
1389
|
ID = "FILE_TITLE_EMPTY"
|
|
@@ -1300,6 +1433,13 @@ class FirstnameInvalid(BadRequest):
|
|
|
1300
1433
|
MESSAGE = __doc__
|
|
1301
1434
|
|
|
1302
1435
|
|
|
1436
|
+
class FloodskipNotAllowed(BadRequest):
|
|
1437
|
+
"""You can't execute the specified action because in order to enable this feature [the following conditions](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) must be satisfied."""
|
|
1438
|
+
ID = "FLOODSKIP_NOT_ALLOWED"
|
|
1439
|
+
"""``str``: RPC Error ID"""
|
|
1440
|
+
MESSAGE = __doc__
|
|
1441
|
+
|
|
1442
|
+
|
|
1303
1443
|
class FolderIdEmpty(BadRequest):
|
|
1304
1444
|
"""The folder you tried to delete was already empty"""
|
|
1305
1445
|
ID = "FOLDER_ID_EMPTY"
|
|
@@ -1314,6 +1454,13 @@ class FolderIdInvalid(BadRequest):
|
|
|
1314
1454
|
MESSAGE = __doc__
|
|
1315
1455
|
|
|
1316
1456
|
|
|
1457
|
+
class FormExpired(BadRequest):
|
|
1458
|
+
"""The form was generated more than 10 minutes ago and has expired, please re-generate it using [payments.getPaymentForm](https://core.telegram.org/method/payments.getPaymentForm) and pass the new `form_id`."""
|
|
1459
|
+
ID = "FORM_EXPIRED"
|
|
1460
|
+
"""``str``: RPC Error ID"""
|
|
1461
|
+
MESSAGE = __doc__
|
|
1462
|
+
|
|
1463
|
+
|
|
1317
1464
|
class FormIdExpired(BadRequest):
|
|
1318
1465
|
"""The specified id has expired."""
|
|
1319
1466
|
ID = "FORM_ID_EXPIRED"
|
|
@@ -1475,6 +1622,13 @@ class GroupCallInvalid(BadRequest):
|
|
|
1475
1622
|
MESSAGE = __doc__
|
|
1476
1623
|
|
|
1477
1624
|
|
|
1625
|
+
class HashtagInvalid(BadRequest):
|
|
1626
|
+
"""The specified hashtag is invalid."""
|
|
1627
|
+
ID = "HASHTAG_INVALID"
|
|
1628
|
+
"""``str``: RPC Error ID"""
|
|
1629
|
+
MESSAGE = __doc__
|
|
1630
|
+
|
|
1631
|
+
|
|
1478
1632
|
class HashInvalid(BadRequest):
|
|
1479
1633
|
"""The provided hash is invalid"""
|
|
1480
1634
|
ID = "HASH_INVALID"
|
|
@@ -1503,6 +1657,13 @@ class ImportFileInvalid(BadRequest):
|
|
|
1503
1657
|
MESSAGE = __doc__
|
|
1504
1658
|
|
|
1505
1659
|
|
|
1660
|
+
class ImportFormatDateInvalid(BadRequest):
|
|
1661
|
+
"""The date specified in the import file is invalid."""
|
|
1662
|
+
ID = "IMPORT_FORMAT_DATE_INVALID"
|
|
1663
|
+
"""``str``: RPC Error ID"""
|
|
1664
|
+
MESSAGE = __doc__
|
|
1665
|
+
|
|
1666
|
+
|
|
1506
1667
|
class ImportFormatUnrecognized(BadRequest):
|
|
1507
1668
|
"""The imported format is unrecognized"""
|
|
1508
1669
|
ID = "IMPORT_FORMAT_UNRECOGNIZED"
|
|
@@ -1559,6 +1720,13 @@ class InputFetchFail(BadRequest):
|
|
|
1559
1720
|
MESSAGE = __doc__
|
|
1560
1721
|
|
|
1561
1722
|
|
|
1723
|
+
class InputFileInvalid(BadRequest):
|
|
1724
|
+
"""The specified [InputFile](https://core.telegram.org/type/InputFile) is invalid."""
|
|
1725
|
+
ID = "INPUT_FILE_INVALID"
|
|
1726
|
+
"""``str``: RPC Error ID"""
|
|
1727
|
+
MESSAGE = __doc__
|
|
1728
|
+
|
|
1729
|
+
|
|
1562
1730
|
class InputFilterInvalid(BadRequest):
|
|
1563
1731
|
"""The filter is invalid for this query"""
|
|
1564
1732
|
ID = "INPUT_FILTER_INVALID"
|
|
@@ -1685,6 +1853,13 @@ class JoinAsPeerInvalid(BadRequest):
|
|
|
1685
1853
|
MESSAGE = __doc__
|
|
1686
1854
|
|
|
1687
1855
|
|
|
1856
|
+
class LanguageInvalid(BadRequest):
|
|
1857
|
+
"""The specified lang_code is invalid."""
|
|
1858
|
+
ID = "LANGUAGE_INVALID"
|
|
1859
|
+
"""``str``: RPC Error ID"""
|
|
1860
|
+
MESSAGE = __doc__
|
|
1861
|
+
|
|
1862
|
+
|
|
1688
1863
|
class LangCodeInvalid(BadRequest):
|
|
1689
1864
|
"""The specified language code is invalid"""
|
|
1690
1865
|
ID = "LANG_CODE_INVALID"
|
|
@@ -1762,6 +1937,13 @@ class Md5ChecksumInvalid(BadRequest):
|
|
|
1762
1937
|
MESSAGE = __doc__
|
|
1763
1938
|
|
|
1764
1939
|
|
|
1940
|
+
class MediaAlreadyPaid(BadRequest):
|
|
1941
|
+
"""The specified paid media is already paid."""
|
|
1942
|
+
ID = "MEDIA_ALREADY_PAID"
|
|
1943
|
+
"""``str``: RPC Error ID"""
|
|
1944
|
+
MESSAGE = __doc__
|
|
1945
|
+
|
|
1946
|
+
|
|
1765
1947
|
class MediaCaptionTooLong(BadRequest):
|
|
1766
1948
|
"""The media caption is too long"""
|
|
1767
1949
|
ID = "MEDIA_CAPTION_TOO_LONG"
|
|
@@ -1895,6 +2077,13 @@ class MessageNotModified(BadRequest):
|
|
|
1895
2077
|
MESSAGE = __doc__
|
|
1896
2078
|
|
|
1897
2079
|
|
|
2080
|
+
class MessageNotReadYet(BadRequest):
|
|
2081
|
+
"""The specified message wasn't read yet."""
|
|
2082
|
+
ID = "MESSAGE_NOT_READ_YET"
|
|
2083
|
+
"""``str``: RPC Error ID"""
|
|
2084
|
+
MESSAGE = __doc__
|
|
2085
|
+
|
|
2086
|
+
|
|
1898
2087
|
class MessagePollClosed(BadRequest):
|
|
1899
2088
|
"""You can't interact with a closed poll"""
|
|
1900
2089
|
ID = "MESSAGE_POLL_CLOSED"
|
|
@@ -1909,6 +2098,13 @@ class MessageTooLong(BadRequest):
|
|
|
1909
2098
|
MESSAGE = __doc__
|
|
1910
2099
|
|
|
1911
2100
|
|
|
2101
|
+
class MessageTooOld(BadRequest):
|
|
2102
|
+
"""The message is too old, the requested information is not available."""
|
|
2103
|
+
ID = "MESSAGE_TOO_OLD"
|
|
2104
|
+
"""``str``: RPC Error ID"""
|
|
2105
|
+
MESSAGE = __doc__
|
|
2106
|
+
|
|
2107
|
+
|
|
1912
2108
|
class MethodInvalid(BadRequest):
|
|
1913
2109
|
"""The API method is invalid and cannot be used"""
|
|
1914
2110
|
ID = "METHOD_INVALID"
|
|
@@ -1993,6 +2189,20 @@ class NogeneralHideForbidden(BadRequest):
|
|
|
1993
2189
|
MESSAGE = __doc__
|
|
1994
2190
|
|
|
1995
2191
|
|
|
2192
|
+
class NotEligible(BadRequest):
|
|
2193
|
+
"""The current user is not eligible to join the Peer-to-Peer Login Program."""
|
|
2194
|
+
ID = "NOT_ELIGIBLE"
|
|
2195
|
+
"""``str``: RPC Error ID"""
|
|
2196
|
+
MESSAGE = __doc__
|
|
2197
|
+
|
|
2198
|
+
|
|
2199
|
+
class NotJoined(BadRequest):
|
|
2200
|
+
"""The current user hasn't joined the Peer-to-Peer Login Program."""
|
|
2201
|
+
ID = "NOT_JOINED"
|
|
2202
|
+
"""``str``: RPC Error ID"""
|
|
2203
|
+
MESSAGE = __doc__
|
|
2204
|
+
|
|
2205
|
+
|
|
1996
2206
|
class OffsetInvalid(BadRequest):
|
|
1997
2207
|
"""The offset parameter is invalid"""
|
|
1998
2208
|
ID = "OFFSET_INVALID"
|
|
@@ -2364,6 +2574,13 @@ class PinnedDialogsTooMuch(BadRequest):
|
|
|
2364
2574
|
MESSAGE = __doc__
|
|
2365
2575
|
|
|
2366
2576
|
|
|
2577
|
+
class PinnedTopicNotModified(BadRequest):
|
|
2578
|
+
"""The pinned topic was not modified."""
|
|
2579
|
+
ID = "PINNED_TOPIC_NOT_MODIFIED"
|
|
2580
|
+
"""``str``: RPC Error ID"""
|
|
2581
|
+
MESSAGE = __doc__
|
|
2582
|
+
|
|
2583
|
+
|
|
2367
2584
|
class PinRestricted(BadRequest):
|
|
2368
2585
|
"""You can't pin messages in private chats with other people"""
|
|
2369
2586
|
ID = "PIN_RESTRICTED"
|
|
@@ -2497,6 +2714,13 @@ class QueryTooShort(BadRequest):
|
|
|
2497
2714
|
MESSAGE = __doc__
|
|
2498
2715
|
|
|
2499
2716
|
|
|
2717
|
+
class QuickRepliesTooMuch(BadRequest):
|
|
2718
|
+
"""A maximum of [appConfig.`quick_replies_limit`](https://core.telegram.org/api/config#quick-replies-limit) shortcuts may be created, the limit was reached."""
|
|
2719
|
+
ID = "QUICK_REPLIES_TOO_MUCH"
|
|
2720
|
+
"""``str``: RPC Error ID"""
|
|
2721
|
+
MESSAGE = __doc__
|
|
2722
|
+
|
|
2723
|
+
|
|
2500
2724
|
class QuizAnswerMissing(BadRequest):
|
|
2501
2725
|
"""You can forward a quiz while hiding the original author only after choosing an option in the quiz"""
|
|
2502
2726
|
ID = "QUIZ_ANSWER_MISSING"
|
|
@@ -2539,6 +2763,13 @@ class QuoteTextInvalid(BadRequest):
|
|
|
2539
2763
|
MESSAGE = __doc__
|
|
2540
2764
|
|
|
2541
2765
|
|
|
2766
|
+
class RaiseHandForbidden(BadRequest):
|
|
2767
|
+
"""You cannot raise your hand."""
|
|
2768
|
+
ID = "RAISE_HAND_FORBIDDEN"
|
|
2769
|
+
"""``str``: RPC Error ID"""
|
|
2770
|
+
MESSAGE = __doc__
|
|
2771
|
+
|
|
2772
|
+
|
|
2542
2773
|
class RandomIdEmpty(BadRequest):
|
|
2543
2774
|
"""The random ID is empty"""
|
|
2544
2775
|
ID = "RANDOM_ID_EMPTY"
|
|
@@ -2567,6 +2798,13 @@ class RangesInvalid(BadRequest):
|
|
|
2567
2798
|
MESSAGE = __doc__
|
|
2568
2799
|
|
|
2569
2800
|
|
|
2801
|
+
class ReactionsCountInvalid(BadRequest):
|
|
2802
|
+
"""The count of the reactions should be less than `stars_paid_reaction_amount_max` stars, you can't react with more number of stars, see [the docs for more info](https://core.telegram.org/api/config#client-configuration)."""
|
|
2803
|
+
ID = "REACTIONS_COUNT_INVALID"
|
|
2804
|
+
"""``str``: RPC Error ID"""
|
|
2805
|
+
MESSAGE = __doc__
|
|
2806
|
+
|
|
2807
|
+
|
|
2570
2808
|
class ReactionsTooMany(BadRequest):
|
|
2571
2809
|
"""Non-premium users, can set up only one reaction per message"""
|
|
2572
2810
|
ID = "REACTIONS_TOO_MANY"
|
|
@@ -2588,6 +2826,13 @@ class ReactionInvalid(BadRequest):
|
|
|
2588
2826
|
MESSAGE = __doc__
|
|
2589
2827
|
|
|
2590
2828
|
|
|
2829
|
+
class ReceiptEmpty(BadRequest):
|
|
2830
|
+
"""The specified receipt is empty."""
|
|
2831
|
+
ID = "RECEIPT_EMPTY"
|
|
2832
|
+
"""``str``: RPC Error ID"""
|
|
2833
|
+
MESSAGE = __doc__
|
|
2834
|
+
|
|
2835
|
+
|
|
2591
2836
|
class ReflectorNotAvailable(BadRequest):
|
|
2592
2837
|
"""The call reflector is not available"""
|
|
2593
2838
|
ID = "REFLECTOR_NOT_AVAILABLE"
|
|
@@ -2623,6 +2868,13 @@ class ReplyMarkupTooLong(BadRequest):
|
|
|
2623
2868
|
MESSAGE = __doc__
|
|
2624
2869
|
|
|
2625
2870
|
|
|
2871
|
+
class ReplyMessagesTooMuch(BadRequest):
|
|
2872
|
+
"""Each shortcut can contain a maximum of [appConfig.`quick_reply_messages_limit`](https://core.telegram.org/api/config#quick-reply-messages-limit) messages, the limit was reached."""
|
|
2873
|
+
ID = "REPLY_MESSAGES_TOO_MUCH"
|
|
2874
|
+
"""``str``: RPC Error ID"""
|
|
2875
|
+
MESSAGE = __doc__
|
|
2876
|
+
|
|
2877
|
+
|
|
2626
2878
|
class ReplyMessageIdInvalid(BadRequest):
|
|
2627
2879
|
"""The reply message id is invalid"""
|
|
2628
2880
|
ID = "REPLY_MESSAGE_ID_INVALID"
|
|
@@ -2644,6 +2896,13 @@ class ReplyToUserInvalid(BadRequest):
|
|
|
2644
2896
|
MESSAGE = __doc__
|
|
2645
2897
|
|
|
2646
2898
|
|
|
2899
|
+
class RequestTokenInvalid(BadRequest):
|
|
2900
|
+
"""The master DC did not accept the `request_token` from the CDN DC. Continue downloading the file from the master DC using upload.getFile."""
|
|
2901
|
+
ID = "REQUEST_TOKEN_INVALID"
|
|
2902
|
+
"""``str``: RPC Error ID"""
|
|
2903
|
+
MESSAGE = __doc__
|
|
2904
|
+
|
|
2905
|
+
|
|
2647
2906
|
class ResetRequestMissing(BadRequest):
|
|
2648
2907
|
"""No password reset is in progress"""
|
|
2649
2908
|
ID = "RESET_REQUEST_MISSING"
|
|
@@ -2700,6 +2959,20 @@ class RightsNotModified(BadRequest):
|
|
|
2700
2959
|
MESSAGE = __doc__
|
|
2701
2960
|
|
|
2702
2961
|
|
|
2962
|
+
class RingtoneInvalid(BadRequest):
|
|
2963
|
+
"""The specified ringtone is invalid."""
|
|
2964
|
+
ID = "RINGTONE_INVALID"
|
|
2965
|
+
"""``str``: RPC Error ID"""
|
|
2966
|
+
MESSAGE = __doc__
|
|
2967
|
+
|
|
2968
|
+
|
|
2969
|
+
class RingtoneMimeInvalid(BadRequest):
|
|
2970
|
+
"""The MIME type for the ringtone is invalid."""
|
|
2971
|
+
ID = "RINGTONE_MIME_INVALID"
|
|
2972
|
+
"""``str``: RPC Error ID"""
|
|
2973
|
+
MESSAGE = __doc__
|
|
2974
|
+
|
|
2975
|
+
|
|
2703
2976
|
class RsaDecryptFailed(BadRequest):
|
|
2704
2977
|
"""Internal RSA decryption failed"""
|
|
2705
2978
|
ID = "RSA_DECRYPT_FAILED"
|
|
@@ -2777,6 +3050,13 @@ class SecondsInvalid(BadRequest):
|
|
|
2777
3050
|
MESSAGE = __doc__
|
|
2778
3051
|
|
|
2779
3052
|
|
|
3053
|
+
class SecureSecretRequired(BadRequest):
|
|
3054
|
+
"""A secure secret is required."""
|
|
3055
|
+
ID = "SECURE_SECRET_REQUIRED"
|
|
3056
|
+
"""``str``: RPC Error ID"""
|
|
3057
|
+
MESSAGE = __doc__
|
|
3058
|
+
|
|
3059
|
+
|
|
2780
3060
|
class SendAsPeerInvalid(BadRequest):
|
|
2781
3061
|
"""You can't send messages as the specified peer"""
|
|
2782
3062
|
ID = "SEND_AS_PEER_INVALID"
|
|
@@ -2819,6 +3099,13 @@ class Sha256HashInvalid(BadRequest):
|
|
|
2819
3099
|
MESSAGE = __doc__
|
|
2820
3100
|
|
|
2821
3101
|
|
|
3102
|
+
class ShortcutInvalid(BadRequest):
|
|
3103
|
+
"""The specified shortcut is invalid."""
|
|
3104
|
+
ID = "SHORTCUT_INVALID"
|
|
3105
|
+
"""``str``: RPC Error ID"""
|
|
3106
|
+
MESSAGE = __doc__
|
|
3107
|
+
|
|
3108
|
+
|
|
2822
3109
|
class ShortnameOccupyFailed(BadRequest):
|
|
2823
3110
|
"""An error occurred when trying to register the short-name used for the sticker pack. Try a different name"""
|
|
2824
3111
|
ID = "SHORTNAME_OCCUPY_FAILED"
|
|
@@ -2861,6 +3148,13 @@ class SlugInvalid(BadRequest):
|
|
|
2861
3148
|
MESSAGE = __doc__
|
|
2862
3149
|
|
|
2863
3150
|
|
|
3151
|
+
class SmsjobIdInvalid(BadRequest):
|
|
3152
|
+
"""The specified job ID is invalid."""
|
|
3153
|
+
ID = "SMSJOB_ID_INVALID"
|
|
3154
|
+
"""``str``: RPC Error ID"""
|
|
3155
|
+
MESSAGE = __doc__
|
|
3156
|
+
|
|
3157
|
+
|
|
2864
3158
|
class SmsCodeCreateFailed(BadRequest):
|
|
2865
3159
|
"""An error occurred while creating the SMS code"""
|
|
2866
3160
|
ID = "SMS_CODE_CREATE_FAILED"
|
|
@@ -2882,6 +3176,13 @@ class SrpPasswordChanged(BadRequest):
|
|
|
2882
3176
|
MESSAGE = __doc__
|
|
2883
3177
|
|
|
2884
3178
|
|
|
3179
|
+
class StargiftAlreadyConverted(BadRequest):
|
|
3180
|
+
"""The provided star gift already converted to stars"""
|
|
3181
|
+
ID = "STARGIFT_ALREADY_CONVERTED"
|
|
3182
|
+
"""``str``: RPC Error ID"""
|
|
3183
|
+
MESSAGE = __doc__
|
|
3184
|
+
|
|
3185
|
+
|
|
2885
3186
|
class StartParamEmpty(BadRequest):
|
|
2886
3187
|
"""The start parameter is empty"""
|
|
2887
3188
|
ID = "START_PARAM_EMPTY"
|
|
@@ -3120,6 +3421,13 @@ class SwitchPmTextEmpty(BadRequest):
|
|
|
3120
3421
|
MESSAGE = __doc__
|
|
3121
3422
|
|
|
3122
3423
|
|
|
3424
|
+
class SwitchWebviewUrlInvalid(BadRequest):
|
|
3425
|
+
"""The URL specified in switch_webview.url is invalid!"""
|
|
3426
|
+
ID = "SWITCH_WEBVIEW_URL_INVALID"
|
|
3427
|
+
"""``str``: RPC Error ID"""
|
|
3428
|
+
MESSAGE = __doc__
|
|
3429
|
+
|
|
3430
|
+
|
|
3123
3431
|
class TakeoutInvalid(BadRequest):
|
|
3124
3432
|
"""The takeout id is invalid"""
|
|
3125
3433
|
ID = "TAKEOUT_INVALID"
|
|
@@ -3190,6 +3498,13 @@ class ThemeTitleInvalid(BadRequest):
|
|
|
3190
3498
|
MESSAGE = __doc__
|
|
3191
3499
|
|
|
3192
3500
|
|
|
3501
|
+
class TimezoneInvalid(BadRequest):
|
|
3502
|
+
"""The specified timezone does not exist."""
|
|
3503
|
+
ID = "TIMEZONE_INVALID"
|
|
3504
|
+
"""``str``: RPC Error ID"""
|
|
3505
|
+
MESSAGE = __doc__
|
|
3506
|
+
|
|
3507
|
+
|
|
3193
3508
|
class TitleInvalid(BadRequest):
|
|
3194
3509
|
"""The specified stickerpack title is invalid"""
|
|
3195
3510
|
ID = "TITLE_INVALID"
|
|
@@ -3309,6 +3624,13 @@ class TranscriptionFailed(BadRequest):
|
|
|
3309
3624
|
MESSAGE = __doc__
|
|
3310
3625
|
|
|
3311
3626
|
|
|
3627
|
+
class TranslateReqQuotaExceeded(BadRequest):
|
|
3628
|
+
"""Translation is currently unavailable due to a temporary server-side lack of resources."""
|
|
3629
|
+
ID = "TRANSLATE_REQ_QUOTA_EXCEEDED"
|
|
3630
|
+
"""``str``: RPC Error ID"""
|
|
3631
|
+
MESSAGE = __doc__
|
|
3632
|
+
|
|
3633
|
+
|
|
3312
3634
|
class TtlDaysInvalid(BadRequest):
|
|
3313
3635
|
"""The provided TTL days is invalid"""
|
|
3314
3636
|
ID = "TTL_DAYS_INVALID"
|
|
@@ -3589,6 +3911,20 @@ class VideoFileInvalid(BadRequest):
|
|
|
3589
3911
|
MESSAGE = __doc__
|
|
3590
3912
|
|
|
3591
3913
|
|
|
3914
|
+
class VideoPauseForbidden(BadRequest):
|
|
3915
|
+
"""You cannot pause the video stream."""
|
|
3916
|
+
ID = "VIDEO_PAUSE_FORBIDDEN"
|
|
3917
|
+
"""``str``: RPC Error ID"""
|
|
3918
|
+
MESSAGE = __doc__
|
|
3919
|
+
|
|
3920
|
+
|
|
3921
|
+
class VideoStopForbidden(BadRequest):
|
|
3922
|
+
"""You cannot stop the video stream."""
|
|
3923
|
+
ID = "VIDEO_STOP_FORBIDDEN"
|
|
3924
|
+
"""``str``: RPC Error ID"""
|
|
3925
|
+
MESSAGE = __doc__
|
|
3926
|
+
|
|
3927
|
+
|
|
3592
3928
|
class VideoTitleEmpty(BadRequest):
|
|
3593
3929
|
"""The specified video title is empty"""
|
|
3594
3930
|
ID = "VIDEO_TITLE_EMPTY"
|
|
@@ -33,6 +33,13 @@ class TwoFaConfirmWait(Flood):
|
|
|
33
33
|
MESSAGE = __doc__
|
|
34
34
|
|
|
35
35
|
|
|
36
|
+
class AddressInvalid(Flood):
|
|
37
|
+
"""The specified geopoint address is invalid."""
|
|
38
|
+
ID = "ADDRESS_INVALID"
|
|
39
|
+
"""``str``: RPC Error ID"""
|
|
40
|
+
MESSAGE = __doc__
|
|
41
|
+
|
|
42
|
+
|
|
36
43
|
class FloodPremiumWait(Flood):
|
|
37
44
|
"""A wait of {value} seconds is required"""
|
|
38
45
|
ID = "FLOOD_PREMIUM_WAIT_X"
|
|
@@ -47,6 +47,13 @@ class ChannelPublicGroupNa(Forbidden):
|
|
|
47
47
|
MESSAGE = __doc__
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
class ChatActionForbidden(Forbidden):
|
|
51
|
+
"""You cannot execute this action."""
|
|
52
|
+
ID = "CHAT_ACTION_FORBIDDEN"
|
|
53
|
+
"""``str``: RPC Error ID"""
|
|
54
|
+
MESSAGE = __doc__
|
|
55
|
+
|
|
56
|
+
|
|
50
57
|
class ChatAdminInviteRequired(Forbidden):
|
|
51
58
|
"""You don't have rights to invite other users"""
|
|
52
59
|
ID = "CHAT_ADMIN_INVITE_REQUIRED"
|
|
@@ -334,6 +341,13 @@ class UserNotMutualContact(Forbidden):
|
|
|
334
341
|
MESSAGE = __doc__
|
|
335
342
|
|
|
336
343
|
|
|
344
|
+
class UserNotParticipant(Forbidden):
|
|
345
|
+
"""You're not a member of this supergroup/channel."""
|
|
346
|
+
ID = "USER_NOT_PARTICIPANT"
|
|
347
|
+
"""``str``: RPC Error ID"""
|
|
348
|
+
MESSAGE = __doc__
|
|
349
|
+
|
|
350
|
+
|
|
337
351
|
class UserPrivacyRestricted(Forbidden):
|
|
338
352
|
"""The user's privacy settings is preventing you to perform this action"""
|
|
339
353
|
ID = "USER_PRIVACY_RESTRICTED"
|
|
@@ -355,3 +369,10 @@ class VoiceMessagesForbidden(Forbidden):
|
|
|
355
369
|
MESSAGE = __doc__
|
|
356
370
|
|
|
357
371
|
|
|
372
|
+
class YourPrivacyRestricted(Forbidden):
|
|
373
|
+
"""You cannot fetch the read date of this message because you have disallowed other users to do so for *your* messages; to fix, allow other users to see *your* exact last online date OR purchase a [Telegram Premium](https://core.telegram.org/api/premium) subscription."""
|
|
374
|
+
ID = "YOUR_PRIVACY_RESTRICTED"
|
|
375
|
+
"""``str``: RPC Error ID"""
|
|
376
|
+
MESSAGE = __doc__
|
|
377
|
+
|
|
378
|
+
|
|
@@ -47,6 +47,13 @@ class BotPrecheckoutFailed(NotAcceptable):
|
|
|
47
47
|
MESSAGE = __doc__
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
class BusinessAddressActive(NotAcceptable):
|
|
51
|
+
"""The user is currently advertising a [Business Location](https://core.telegram.org/api/business#location), the location may only be changed (or removed) using [account.updateBusinessLocation »](https://core.telegram.org/method/account.updateBusinessLocation). ."""
|
|
52
|
+
ID = "BUSINESS_ADDRESS_ACTIVE"
|
|
53
|
+
"""``str``: RPC Error ID"""
|
|
54
|
+
MESSAGE = __doc__
|
|
55
|
+
|
|
56
|
+
|
|
50
57
|
class CallProtocolCompatLayerInvalid(NotAcceptable):
|
|
51
58
|
"""The other side of the call does not support any of the VoIP protocols supported by the local client, as specified by the `protocol.layer` and `protocol.library_versions` fields."""
|
|
52
59
|
ID = "CALL_PROTOCOL_COMPAT_LAYER_INVALID"
|
|
@@ -166,6 +173,13 @@ class SendCodeUnavailable(NotAcceptable):
|
|
|
166
173
|
MESSAGE = __doc__
|
|
167
174
|
|
|
168
175
|
|
|
176
|
+
class StargiftUsageLimited(NotAcceptable):
|
|
177
|
+
"""Star gift usage limited"""
|
|
178
|
+
ID = "STARGIFT_USAGE_LIMITED"
|
|
179
|
+
"""``str``: RPC Error ID"""
|
|
180
|
+
MESSAGE = __doc__
|
|
181
|
+
|
|
182
|
+
|
|
169
183
|
class StickersetInvalid(NotAcceptable):
|
|
170
184
|
"""The sticker set is invalid"""
|
|
171
185
|
ID = "STICKERSET_INVALID"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|