@tgsnake/skema 1.13.0 → 2.0.0
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.
- package/LICENSE +1 -1
- package/README.md +124 -15
- package/dist/mod.d.ts +10 -0
- package/dist/mod.js +10 -0
- package/dist/src/Logger.d.ts +20 -0
- package/dist/src/Logger.js +23 -0
- package/dist/src/deps.d.ts +28 -0
- package/dist/src/deps.js +34 -0
- package/dist/src/errors/Base.d.ts +53 -0
- package/dist/src/errors/Base.js +114 -0
- package/dist/src/errors/Client.d.ts +69 -0
- package/dist/src/errors/Client.js +69 -0
- package/dist/src/errors/File.d.ts +89 -0
- package/dist/src/errors/File.js +99 -0
- package/dist/src/errors/RpcError.d.ts +115 -0
- package/dist/src/errors/RpcError.js +226 -0
- package/dist/src/errors/SecretChat.d.ts +78 -0
- package/dist/src/errors/SecretChat.js +88 -0
- package/dist/src/errors/WebSocket.d.ts +70 -0
- package/dist/src/errors/WebSocket.js +80 -0
- package/dist/{errors → src/errors}/exceptions/All.d.ts +14 -0
- package/dist/{errors → src/errors}/exceptions/All.js +15 -5
- package/dist/{errors → src/errors}/exceptions/BadRequest400.d.ts +15 -1
- package/dist/src/errors/exceptions/BadRequest400.js +2683 -0
- package/dist/{errors → src/errors}/exceptions/Flood420.d.ts +15 -1
- package/dist/{errors → src/errors}/exceptions/Flood420.js +25 -24
- package/dist/{errors → src/errors}/exceptions/Forbidden403.d.ts +15 -1
- package/dist/src/errors/exceptions/Forbidden403.js +243 -0
- package/dist/{errors → src/errors}/exceptions/InternalServerError500.d.ts +15 -1
- package/dist/src/errors/exceptions/InternalServerError500.js +255 -0
- package/dist/{errors → src/errors}/exceptions/NotAcceptable406.d.ts +15 -1
- package/dist/{errors → src/errors}/exceptions/NotAcceptable406.js +51 -76
- package/dist/src/errors/exceptions/NotFound404.d.ts +27 -0
- package/dist/src/errors/exceptions/NotFound404.js +27 -0
- package/dist/src/errors/exceptions/SeeOther303.d.ts +39 -0
- package/dist/src/errors/exceptions/SeeOther303.js +39 -0
- package/dist/src/errors/exceptions/ServiceUnavailable503.d.ts +31 -0
- package/dist/src/errors/exceptions/ServiceUnavailable503.js +31 -0
- package/dist/{errors → src/errors}/exceptions/Unauthorized401.d.ts +15 -1
- package/dist/src/errors/exceptions/Unauthorized401.js +55 -0
- package/dist/src/errors/exceptions/index.d.ts +24 -0
- package/dist/src/errors/exceptions/index.js +24 -0
- package/dist/src/errors/index.d.ts +142 -0
- package/dist/src/errors/index.js +178 -0
- package/dist/src/helpers.d.ts +102 -0
- package/dist/src/helpers.js +176 -0
- package/dist/src/index.d.ts +12 -0
- package/dist/src/index.js +12 -0
- package/dist/{raw → src/raw}/All.d.ts +14 -0
- package/dist/{raw → src/raw}/All.js +15 -4
- package/dist/{raw → src/raw}/Raw.d.ts +17205 -3
- package/dist/{raw → src/raw}/Raw.js +44035 -21917
- package/dist/src/raw/UpdateSecretChat.d.ts +186 -0
- package/dist/src/raw/UpdateSecretChat.js +215 -0
- package/dist/src/raw/core/GzipPacked.d.ts +63 -0
- package/dist/src/raw/core/GzipPacked.js +76 -0
- package/dist/src/raw/core/Message.d.ts +68 -0
- package/dist/src/raw/core/Message.js +105 -0
- package/dist/src/raw/core/MsgContainer.d.ts +56 -0
- package/dist/src/raw/core/MsgContainer.js +77 -0
- package/dist/src/raw/core/TLObject.d.ts +108 -0
- package/dist/src/raw/core/TLObject.js +209 -0
- package/dist/src/raw/core/index.d.ts +19 -0
- package/dist/src/raw/core/index.js +19 -0
- package/dist/src/raw/core/primitive/Bool.d.ts +104 -0
- package/dist/src/raw/core/primitive/Bool.js +120 -0
- package/dist/src/raw/core/primitive/Bytes.d.ts +45 -0
- package/dist/src/raw/core/primitive/Bytes.js +76 -0
- package/dist/src/raw/core/primitive/Double.d.ts +37 -0
- package/dist/src/raw/core/primitive/Double.js +51 -0
- package/dist/src/raw/core/primitive/Float.d.ts +37 -0
- package/dist/src/raw/core/primitive/Float.js +51 -0
- package/dist/src/raw/core/primitive/Int.d.ts +144 -0
- package/dist/src/raw/core/primitive/Int.js +237 -0
- package/dist/src/raw/core/primitive/String.d.ts +37 -0
- package/dist/src/raw/core/primitive/String.js +42 -0
- package/dist/src/raw/core/primitive/Vector.d.ts +56 -0
- package/dist/src/raw/core/primitive/Vector.js +93 -0
- package/dist/src/raw/core/primitive/index.d.ts +20 -0
- package/dist/src/raw/core/primitive/index.js +20 -0
- package/dist/src/raw/index.d.ts +17 -0
- package/dist/src/raw/index.js +17 -0
- package/package.json +13 -11
- package/dist/Logger.d.ts +0 -3
- package/dist/Logger.js +0 -9
- package/dist/deps.d.ts +0 -8
- package/dist/deps.js +0 -19
- package/dist/errors/Base.d.ts +0 -9
- package/dist/errors/Base.js +0 -50
- package/dist/errors/Client.d.ts +0 -21
- package/dist/errors/Client.js +0 -29
- package/dist/errors/File.d.ts +0 -13
- package/dist/errors/File.js +0 -30
- package/dist/errors/RpcError.d.ts +0 -22
- package/dist/errors/RpcError.js +0 -120
- package/dist/errors/SecretChat.d.ts +0 -13
- package/dist/errors/SecretChat.js +0 -30
- package/dist/errors/WebSocket.d.ts +0 -13
- package/dist/errors/WebSocket.js +0 -30
- package/dist/errors/exceptions/BadRequest400.js +0 -3352
- package/dist/errors/exceptions/Forbidden403.js +0 -290
- package/dist/errors/exceptions/InternalServerError500.js +0 -305
- package/dist/errors/exceptions/NotFound404.d.ts +0 -13
- package/dist/errors/exceptions/NotFound404.js +0 -19
- package/dist/errors/exceptions/SeeOther303.d.ts +0 -25
- package/dist/errors/exceptions/SeeOther303.js +0 -34
- package/dist/errors/exceptions/ServiceUnavailable503.d.ts +0 -17
- package/dist/errors/exceptions/ServiceUnavailable503.js +0 -24
- package/dist/errors/exceptions/Unauthorized401.js +0 -54
- package/dist/errors/exceptions/index.d.ts +0 -10
- package/dist/errors/exceptions/index.js +0 -48
- package/dist/errors/index.d.ts +0 -31
- package/dist/errors/index.js +0 -111
- package/dist/helpers.d.ts +0 -6
- package/dist/helpers.js +0 -85
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -34
- package/dist/raw/UpdateSecretChat.d.ts +0 -43
- package/dist/raw/UpdateSecretChat.js +0 -91
- package/dist/raw/core/GzipPacked.d.ts +0 -9
- package/dist/raw/core/GzipPacked.js +0 -59
- package/dist/raw/core/Message.d.ts +0 -12
- package/dist/raw/core/Message.js +0 -80
- package/dist/raw/core/MsgContainer.d.ts +0 -10
- package/dist/raw/core/MsgContainer.js +0 -68
- package/dist/raw/core/TLObject.d.ts +0 -18
- package/dist/raw/core/TLObject.js +0 -108
- package/dist/raw/core/index.d.ts +0 -6
- package/dist/raw/core/index.js +0 -46
- package/dist/raw/core/primitive/Bool.d.ts +0 -19
- package/dist/raw/core/primitive/Bool.js +0 -41
- package/dist/raw/core/primitive/Bytes.d.ts +0 -6
- package/dist/raw/core/primitive/Bytes.js +0 -41
- package/dist/raw/core/primitive/Double.d.ts +0 -6
- package/dist/raw/core/primitive/Double.js +0 -24
- package/dist/raw/core/primitive/Float.d.ts +0 -6
- package/dist/raw/core/primitive/Float.js +0 -24
- package/dist/raw/core/primitive/Int.d.ts +0 -22
- package/dist/raw/core/primitive/Int.js +0 -122
- package/dist/raw/core/primitive/String.d.ts +0 -6
- package/dist/raw/core/primitive/String.js +0 -15
- package/dist/raw/core/primitive/Vector.d.ts +0 -8
- package/dist/raw/core/primitive/Vector.js +0 -49
- package/dist/raw/core/primitive/index.d.ts +0 -7
- package/dist/raw/core/primitive/index.js +0 -22
- package/dist/raw/index.d.ts +0 -4
- package/dist/raw/index.js +0 -17
|
@@ -0,0 +1,2683 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tgsnake - Telegram MTProto library for javascript or typescript.
|
|
3
|
+
* Copyright (C) 2026 tgsnake <https://github.com/tgsnake>
|
|
4
|
+
*
|
|
5
|
+
* THIS FILE IS PART OF TGSNAKE
|
|
6
|
+
*
|
|
7
|
+
* tgsnake is a free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the MIT License as published.
|
|
9
|
+
*/
|
|
10
|
+
/***********************************************************
|
|
11
|
+
* Warning!! *
|
|
12
|
+
* This file is auto generate. *
|
|
13
|
+
* All change made in this file will be lost! *
|
|
14
|
+
***********************************************************/
|
|
15
|
+
import { RPCError } from '../RpcError.js';
|
|
16
|
+
export class BadRequest extends RPCError {
|
|
17
|
+
code = 400;
|
|
18
|
+
name = 'BAD_REQUEST';
|
|
19
|
+
}
|
|
20
|
+
export class AboutTooLong extends BadRequest {
|
|
21
|
+
id = 'ABOUT_TOO_LONG';
|
|
22
|
+
message = 'About string too long.';
|
|
23
|
+
}
|
|
24
|
+
export class AccessTokenExpired extends BadRequest {
|
|
25
|
+
id = 'ACCESS_TOKEN_EXPIRED';
|
|
26
|
+
message = 'Access token expired.';
|
|
27
|
+
}
|
|
28
|
+
export class AccessTokenInvalid extends BadRequest {
|
|
29
|
+
id = 'ACCESS_TOKEN_INVALID';
|
|
30
|
+
message = 'Access token invalid.';
|
|
31
|
+
}
|
|
32
|
+
export class AddressInvalid extends BadRequest {
|
|
33
|
+
id = 'ADDRESS_INVALID';
|
|
34
|
+
message = 'The specified geopoint address is invalid.';
|
|
35
|
+
}
|
|
36
|
+
export class AdminsTooMuch extends BadRequest {
|
|
37
|
+
id = 'ADMINS_TOO_MUCH';
|
|
38
|
+
message = 'There are too many admins.';
|
|
39
|
+
}
|
|
40
|
+
export class AdminIdInvalid extends BadRequest {
|
|
41
|
+
id = 'ADMIN_ID_INVALID';
|
|
42
|
+
message = 'The specified admin ID is invalid.';
|
|
43
|
+
}
|
|
44
|
+
export class AdminRankEmojiNotAllowed extends BadRequest {
|
|
45
|
+
id = 'ADMIN_RANK_EMOJI_NOT_ALLOWED';
|
|
46
|
+
message = 'An admin rank cannot contain emojis.';
|
|
47
|
+
}
|
|
48
|
+
export class AdminRankInvalid extends BadRequest {
|
|
49
|
+
id = 'ADMIN_RANK_INVALID';
|
|
50
|
+
message = 'The specified admin rank is invalid.';
|
|
51
|
+
}
|
|
52
|
+
export class AdminRightsEmpty extends BadRequest {
|
|
53
|
+
id = 'ADMIN_RIGHTS_EMPTY';
|
|
54
|
+
message = 'The chatAdminRights constructor passed in keyboardButtonRequestPeer.peer_type.user_admin_rights has no rights set (i.e. flags is 0).';
|
|
55
|
+
}
|
|
56
|
+
export class AdExpired extends BadRequest {
|
|
57
|
+
id = 'AD_EXPIRED';
|
|
58
|
+
message = 'The ad has expired (too old or not found).';
|
|
59
|
+
}
|
|
60
|
+
export class AlbumPhotosTooMany extends BadRequest {
|
|
61
|
+
id = 'ALBUM_PHOTOS_TOO_MANY';
|
|
62
|
+
message = 'You have uploaded too many profile photos, delete some before retrying.';
|
|
63
|
+
}
|
|
64
|
+
export class ApiIdInvalid extends BadRequest {
|
|
65
|
+
id = 'API_ID_INVALID';
|
|
66
|
+
message = 'API ID invalid.';
|
|
67
|
+
}
|
|
68
|
+
export class ApiIdPublishedFlood extends BadRequest {
|
|
69
|
+
id = 'API_ID_PUBLISHED_FLOOD';
|
|
70
|
+
message = "This API id was published somewhere, you can't use it now.";
|
|
71
|
+
}
|
|
72
|
+
export class ArticleTitleEmpty extends BadRequest {
|
|
73
|
+
id = 'ARTICLE_TITLE_EMPTY';
|
|
74
|
+
message = 'The title of the article is empty.';
|
|
75
|
+
}
|
|
76
|
+
export class AudioContentUrlEmpty extends BadRequest {
|
|
77
|
+
id = 'AUDIO_CONTENT_URL_EMPTY';
|
|
78
|
+
message = 'The remote URL specified in the content field is empty.';
|
|
79
|
+
}
|
|
80
|
+
export class AudioTitleEmpty extends BadRequest {
|
|
81
|
+
id = 'AUDIO_TITLE_EMPTY';
|
|
82
|
+
message = 'An empty audio title was provided.';
|
|
83
|
+
}
|
|
84
|
+
export class AuthBytesInvalid extends BadRequest {
|
|
85
|
+
id = 'AUTH_BYTES_INVALID';
|
|
86
|
+
message = 'The provided authorization is invalid.';
|
|
87
|
+
}
|
|
88
|
+
export class AuthTokenAlreadyAccepted extends BadRequest {
|
|
89
|
+
id = 'AUTH_TOKEN_ALREADY_ACCEPTED';
|
|
90
|
+
message = 'The specified auth token was already accepted.';
|
|
91
|
+
}
|
|
92
|
+
export class AuthTokenException extends BadRequest {
|
|
93
|
+
id = 'AUTH_TOKEN_EXCEPTION';
|
|
94
|
+
message = 'An error occurred while importing the auth token.';
|
|
95
|
+
}
|
|
96
|
+
export class AuthTokenExpired extends BadRequest {
|
|
97
|
+
id = 'AUTH_TOKEN_EXPIRED';
|
|
98
|
+
message = 'The authorization token has expired.';
|
|
99
|
+
}
|
|
100
|
+
export class AuthTokenInvalid extends BadRequest {
|
|
101
|
+
id = 'AUTH_TOKEN_INVALID';
|
|
102
|
+
message = 'The specified auth token is invalid.';
|
|
103
|
+
}
|
|
104
|
+
export class AuthTokenInvalidx extends BadRequest {
|
|
105
|
+
id = 'AUTH_TOKEN_INVALIDX';
|
|
106
|
+
message = 'The specified auth token is invalid.';
|
|
107
|
+
}
|
|
108
|
+
export class AutoarchiveNotAvailable extends BadRequest {
|
|
109
|
+
id = 'AUTOARCHIVE_NOT_AVAILABLE';
|
|
110
|
+
message = 'The autoarchive setting is not available at this time: please check the value of the [autoarchive_setting_available field in client config »](https://core.telegram.org/api/config#client-configuration) before calling this method.';
|
|
111
|
+
}
|
|
112
|
+
export class BalanceTooLow extends BadRequest {
|
|
113
|
+
id = 'BALANCE_TOO_LOW';
|
|
114
|
+
message = 'The transaction cannot be completed because the current [Telegram Stars balance](https://core.telegram.org/api/stars) is too low.';
|
|
115
|
+
}
|
|
116
|
+
export class BankCardNumberInvalid extends BadRequest {
|
|
117
|
+
id = 'BANK_CARD_NUMBER_INVALID';
|
|
118
|
+
message = 'The specified card number is invalid.';
|
|
119
|
+
}
|
|
120
|
+
export class BannedRightsInvalid extends BadRequest {
|
|
121
|
+
id = 'BANNED_RIGHTS_INVALID';
|
|
122
|
+
message = 'You provided some invalid flags in the banned rights.';
|
|
123
|
+
}
|
|
124
|
+
export class BasePortLocInvalid extends BadRequest {
|
|
125
|
+
id = 'BASE_PORT_LOC_INVALID';
|
|
126
|
+
message = 'The base port location is invalid';
|
|
127
|
+
}
|
|
128
|
+
export class BirthdayInvalid extends BadRequest {
|
|
129
|
+
id = 'BIRTHDAY_INVALID';
|
|
130
|
+
message = 'An invalid age was specified, must be between 0 and 150 years.';
|
|
131
|
+
}
|
|
132
|
+
export class BoostsEmpty extends BadRequest {
|
|
133
|
+
id = 'BOOSTS_EMPTY';
|
|
134
|
+
message = 'No boost slots were specified.';
|
|
135
|
+
}
|
|
136
|
+
export class BoostsRequired extends BadRequest {
|
|
137
|
+
id = 'BOOSTS_REQUIRED';
|
|
138
|
+
message = 'The specified channel must first be [boosted by its users](https://core.telegram.org/api/boost) in order to perform this action.';
|
|
139
|
+
}
|
|
140
|
+
export class BoostNotModified extends BadRequest {
|
|
141
|
+
id = 'BOOST_NOT_MODIFIED';
|
|
142
|
+
message = "You're already [boosting](https://core.telegram.org/api/boost) the specified channel.";
|
|
143
|
+
}
|
|
144
|
+
export class BoostPeerInvalid extends BadRequest {
|
|
145
|
+
id = 'BOOST_PEER_INVALID';
|
|
146
|
+
message = 'The specified `boost_peer` is invalid.';
|
|
147
|
+
}
|
|
148
|
+
export class BotsTooMuch extends BadRequest {
|
|
149
|
+
id = 'BOTS_TOO_MUCH';
|
|
150
|
+
message = 'There are too many bots in this chat/channel.';
|
|
151
|
+
}
|
|
152
|
+
export class BotAlreadyDisabled extends BadRequest {
|
|
153
|
+
id = 'BOT_ALREADY_DISABLED';
|
|
154
|
+
message = 'The connected business bot was already disabled for the specified peer.';
|
|
155
|
+
}
|
|
156
|
+
export class BotAppBotInvalid extends BadRequest {
|
|
157
|
+
id = 'BOT_APP_BOT_INVALID';
|
|
158
|
+
message = 'The bot_id passed in the inputBotAppShortName constructor is invalid.';
|
|
159
|
+
}
|
|
160
|
+
export class BotAppInvalid extends BadRequest {
|
|
161
|
+
id = 'BOT_APP_INVALID';
|
|
162
|
+
message = 'The specified bot app is invalid.';
|
|
163
|
+
}
|
|
164
|
+
export class BotAppShortnameInvalid extends BadRequest {
|
|
165
|
+
id = 'BOT_APP_SHORTNAME_INVALID';
|
|
166
|
+
message = 'The specified bot app short name is invalid.';
|
|
167
|
+
}
|
|
168
|
+
export class BotBusinessMissing extends BadRequest {
|
|
169
|
+
id = 'BOT_BUSINESS_MISSING';
|
|
170
|
+
message = 'The specified bot is not a business bot (the [user](https://core.telegram.org/constructor/user).`bot_business` flag is not set).';
|
|
171
|
+
}
|
|
172
|
+
export class BotChannelsNa extends BadRequest {
|
|
173
|
+
id = 'BOT_CHANNELS_NA';
|
|
174
|
+
message = "Bots can't edit admin privileges.";
|
|
175
|
+
}
|
|
176
|
+
export class BotCommandDescriptionInvalid extends BadRequest {
|
|
177
|
+
id = 'BOT_COMMAND_DESCRIPTION_INVALID';
|
|
178
|
+
message = 'The specified command description is invalid.';
|
|
179
|
+
}
|
|
180
|
+
export class BotCommandInvalid extends BadRequest {
|
|
181
|
+
id = 'BOT_COMMAND_INVALID';
|
|
182
|
+
message = 'The specified command is invalid.';
|
|
183
|
+
}
|
|
184
|
+
export class BotDomainInvalid extends BadRequest {
|
|
185
|
+
id = 'BOT_DOMAIN_INVALID';
|
|
186
|
+
message = 'Bot domain invalid.';
|
|
187
|
+
}
|
|
188
|
+
export class BotFallbackUnsupported extends BadRequest {
|
|
189
|
+
id = 'BOT_FALLBACK_UNSUPPORTED';
|
|
190
|
+
message = "The fallback flag can't be set for bots.";
|
|
191
|
+
}
|
|
192
|
+
export class BotGamesDisabled extends BadRequest {
|
|
193
|
+
id = 'BOT_GAMES_DISABLED';
|
|
194
|
+
message = "Games can't be sent to channels.";
|
|
195
|
+
}
|
|
196
|
+
export class BotGroupsBlocked extends BadRequest {
|
|
197
|
+
id = 'BOT_GROUPS_BLOCKED';
|
|
198
|
+
message = "This bot can't be added to groups.";
|
|
199
|
+
}
|
|
200
|
+
export class BotInlineDisabled extends BadRequest {
|
|
201
|
+
id = 'BOT_INLINE_DISABLED';
|
|
202
|
+
message = "This bot can't be used in inline mode.";
|
|
203
|
+
}
|
|
204
|
+
export class BotInvalid extends BadRequest {
|
|
205
|
+
id = 'BOT_INVALID';
|
|
206
|
+
message = 'This is not a valid bot.';
|
|
207
|
+
}
|
|
208
|
+
export class BotInvoiceInvalid extends BadRequest {
|
|
209
|
+
id = 'BOT_INVOICE_INVALID';
|
|
210
|
+
message = 'The specified invoice is invalid.';
|
|
211
|
+
}
|
|
212
|
+
export class BotMethodInvalid extends BadRequest {
|
|
213
|
+
id = 'BOT_METHOD_INVALID';
|
|
214
|
+
message = 'The specified method cannot be used by bots.';
|
|
215
|
+
}
|
|
216
|
+
export class BotMissing extends BadRequest {
|
|
217
|
+
id = 'BOT_MISSING';
|
|
218
|
+
message = "Only bots can call this method, please use [@stickers](https://t.me/stickers) if you're a user.";
|
|
219
|
+
}
|
|
220
|
+
export class BotNotConnectedYet extends BadRequest {
|
|
221
|
+
id = 'BOT_NOT_CONNECTED_YET';
|
|
222
|
+
message = 'No [business bot](https://core.telegram.org/api/business#connected-bots) is connected to the currently logged in user.';
|
|
223
|
+
}
|
|
224
|
+
export class BotOnesideNotAvail extends BadRequest {
|
|
225
|
+
id = 'BOT_ONESIDE_NOT_AVAIL';
|
|
226
|
+
message = "Bots can't pin messages in PM just for themselves.";
|
|
227
|
+
}
|
|
228
|
+
export class BotPaymentsDisabled extends BadRequest {
|
|
229
|
+
id = 'BOT_PAYMENTS_DISABLED';
|
|
230
|
+
message = 'Please enable bot payments in botfather before calling this method.';
|
|
231
|
+
}
|
|
232
|
+
export class BotPollsDisabled extends BadRequest {
|
|
233
|
+
id = 'BOT_POLLS_DISABLED';
|
|
234
|
+
message = 'Sending polls by bots has been disabled';
|
|
235
|
+
}
|
|
236
|
+
export class BotResponseTimeout extends BadRequest {
|
|
237
|
+
id = 'BOT_RESPONSE_TIMEOUT';
|
|
238
|
+
message = 'A timeout occurred while fetching data from the bot.';
|
|
239
|
+
}
|
|
240
|
+
export class BotScoreNotModified extends BadRequest {
|
|
241
|
+
id = 'BOT_SCORE_NOT_MODIFIED';
|
|
242
|
+
message = "The score wasn't modified.";
|
|
243
|
+
}
|
|
244
|
+
export class BotWebviewDisabled extends BadRequest {
|
|
245
|
+
id = 'BOT_WEBVIEW_DISABLED';
|
|
246
|
+
message = 'A webview cannot be opened in the specified conditions: emitted for example if `from_bot_menu` or `url` are set and `peer` is not the chat with the bot.';
|
|
247
|
+
}
|
|
248
|
+
export class BroadcastIdInvalid extends BadRequest {
|
|
249
|
+
id = 'BROADCAST_ID_INVALID';
|
|
250
|
+
message = 'Broadcast ID invalid.';
|
|
251
|
+
}
|
|
252
|
+
export class BroadcastPublicVotersForbidden extends BadRequest {
|
|
253
|
+
id = 'BROADCAST_PUBLIC_VOTERS_FORBIDDEN';
|
|
254
|
+
message = "You can't forward polls with public voters.";
|
|
255
|
+
}
|
|
256
|
+
export class BroadcastRequired extends BadRequest {
|
|
257
|
+
id = 'BROADCAST_REQUIRED';
|
|
258
|
+
message = 'This method can only be called on a channel, please use stats.getMegagroupStats for supergroups.';
|
|
259
|
+
}
|
|
260
|
+
export class BusinessConnectionInvalid extends BadRequest {
|
|
261
|
+
id = 'BUSINESS_CONNECTION_INVALID';
|
|
262
|
+
message = 'The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business) call is invalid.';
|
|
263
|
+
}
|
|
264
|
+
export class BusinessConnectionNotAllowed extends BadRequest {
|
|
265
|
+
id = 'BUSINESS_CONNECTION_NOT_ALLOWED';
|
|
266
|
+
message = "This method was invoked over a business connection using [invokeWithBusinessConnection](https://core.telegram.org/api/business#connected-bots), but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.";
|
|
267
|
+
}
|
|
268
|
+
export class BusinessPeerInvalid extends BadRequest {
|
|
269
|
+
id = 'BUSINESS_PEER_INVALID';
|
|
270
|
+
message = "Messages can't be set to the specified peer through the current [business connection](https://core.telegram.org/api/business#connected-bots).";
|
|
271
|
+
}
|
|
272
|
+
export class BusinessPeerUsageMissing extends BadRequest {
|
|
273
|
+
id = 'BUSINESS_PEER_USAGE_MISSING';
|
|
274
|
+
message = "You cannot send a message to a user through a [business connection](https://core.telegram.org/api/business#connected-bots) if the user hasn't recently contacted us.";
|
|
275
|
+
}
|
|
276
|
+
export class BusinessRecipientsEmpty extends BadRequest {
|
|
277
|
+
id = 'BUSINESS_RECIPIENTS_EMPTY';
|
|
278
|
+
message = "You didn't set any flag in inputBusinessBotRecipients, thus the bot cannot work with *any* peer.";
|
|
279
|
+
}
|
|
280
|
+
export class BusinessWorkHoursEmpty extends BadRequest {
|
|
281
|
+
id = 'BUSINESS_WORK_HOURS_EMPTY';
|
|
282
|
+
message = 'No work hours were specified.';
|
|
283
|
+
}
|
|
284
|
+
export class BusinessWorkHoursPeriodInvalid extends BadRequest {
|
|
285
|
+
id = 'BUSINESS_WORK_HOURS_PERIOD_INVALID';
|
|
286
|
+
message = 'The specified work hours are invalid, see [here »](https://core.telegram.org/api/business#opening-hours) for the exact requirements.';
|
|
287
|
+
}
|
|
288
|
+
export class ButtonCopyTextInvalid extends BadRequest {
|
|
289
|
+
id = 'BUTTON_COPY_TEXT_INVALID';
|
|
290
|
+
message = 'The specified [keyboardButtonCopy](https://core.telegram.org/constructor/keyboardButtonCopy).`copy_text` is invalid.';
|
|
291
|
+
}
|
|
292
|
+
export class ButtonDataInvalid extends BadRequest {
|
|
293
|
+
id = 'BUTTON_DATA_INVALID';
|
|
294
|
+
message = 'The data of one or more of the buttons you provided is invalid.';
|
|
295
|
+
}
|
|
296
|
+
export class ButtonIdInvalid extends BadRequest {
|
|
297
|
+
id = 'BUTTON_ID_INVALID';
|
|
298
|
+
message = 'The specified button ID is invalid.';
|
|
299
|
+
}
|
|
300
|
+
export class ButtonInvalid extends BadRequest {
|
|
301
|
+
id = 'BUTTON_INVALID';
|
|
302
|
+
message = 'The specified button is invalid.';
|
|
303
|
+
}
|
|
304
|
+
export class ButtonPosInvalid extends BadRequest {
|
|
305
|
+
id = 'BUTTON_POS_INVALID';
|
|
306
|
+
message = '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...).';
|
|
307
|
+
}
|
|
308
|
+
export class ButtonTextInvalid extends BadRequest {
|
|
309
|
+
id = 'BUTTON_TEXT_INVALID';
|
|
310
|
+
message = 'The specified button text is invalid.';
|
|
311
|
+
}
|
|
312
|
+
export class ButtonTypeInvalid extends BadRequest {
|
|
313
|
+
id = 'BUTTON_TYPE_INVALID';
|
|
314
|
+
message = 'The type of one or more of the buttons you provided is invalid.';
|
|
315
|
+
}
|
|
316
|
+
export class ButtonUrlInvalid extends BadRequest {
|
|
317
|
+
id = 'BUTTON_URL_INVALID';
|
|
318
|
+
message = 'Button URL invalid.';
|
|
319
|
+
}
|
|
320
|
+
export class ButtonUserInvalid extends BadRequest {
|
|
321
|
+
id = 'BUTTON_USER_INVALID';
|
|
322
|
+
message = 'The `user_id` passed to inputKeyboardButtonUserProfile is invalid!';
|
|
323
|
+
}
|
|
324
|
+
export class ButtonUserPrivacyRestricted extends BadRequest {
|
|
325
|
+
id = 'BUTTON_USER_PRIVACY_RESTRICTED';
|
|
326
|
+
message = 'The privacy setting of the user specified in a [inputKeyboardButtonUserProfile](https://core.telegram.org/constructor/inputKeyboardButtonUserProfile) button do not allow creating such a button.';
|
|
327
|
+
}
|
|
328
|
+
export class CallAlreadyAccepted extends BadRequest {
|
|
329
|
+
id = 'CALL_ALREADY_ACCEPTED';
|
|
330
|
+
message = 'The call was already accepted.';
|
|
331
|
+
}
|
|
332
|
+
export class CallAlreadyDeclined extends BadRequest {
|
|
333
|
+
id = 'CALL_ALREADY_DECLINED';
|
|
334
|
+
message = 'The call was already declined.';
|
|
335
|
+
}
|
|
336
|
+
export class CallOccupyFailed extends BadRequest {
|
|
337
|
+
id = 'CALL_OCCUPY_FAILED';
|
|
338
|
+
message = 'The call failed because the user is already making another call.';
|
|
339
|
+
}
|
|
340
|
+
export class CallPeerInvalid extends BadRequest {
|
|
341
|
+
id = 'CALL_PEER_INVALID';
|
|
342
|
+
message = 'The provided call peer object is invalid.';
|
|
343
|
+
}
|
|
344
|
+
export class CallProtocolFlagsInvalid extends BadRequest {
|
|
345
|
+
id = 'CALL_PROTOCOL_FLAGS_INVALID';
|
|
346
|
+
message = 'Call protocol flags invalid.';
|
|
347
|
+
}
|
|
348
|
+
export class CallProtocolLayerInvalid extends BadRequest {
|
|
349
|
+
id = 'CALL_PROTOCOL_LAYER_INVALID';
|
|
350
|
+
message = 'The specified protocol layer version range is invalid.';
|
|
351
|
+
}
|
|
352
|
+
export class CdnMethodInvalid extends BadRequest {
|
|
353
|
+
id = 'CDN_METHOD_INVALID';
|
|
354
|
+
message = "You can't call this method in a CDN DC.";
|
|
355
|
+
}
|
|
356
|
+
export class ChannelsAdminLocatedTooMuch extends BadRequest {
|
|
357
|
+
id = 'CHANNELS_ADMIN_LOCATED_TOO_MUCH';
|
|
358
|
+
message = 'The user has reached the limit of public geogroups.';
|
|
359
|
+
}
|
|
360
|
+
export class ChannelsAdminPublicTooMuch extends BadRequest {
|
|
361
|
+
id = 'CHANNELS_ADMIN_PUBLIC_TOO_MUCH';
|
|
362
|
+
message = "You're admin of too many public channels, make some channels private to change the username of this channel.";
|
|
363
|
+
}
|
|
364
|
+
export class ChannelsTooMuch extends BadRequest {
|
|
365
|
+
id = 'CHANNELS_TOO_MUCH';
|
|
366
|
+
message = 'You have joined too many channels/supergroups.';
|
|
367
|
+
}
|
|
368
|
+
export class ChannelAddInvalid extends BadRequest {
|
|
369
|
+
id = 'CHANNEL_ADD_INVALID';
|
|
370
|
+
message = 'Internal error.';
|
|
371
|
+
}
|
|
372
|
+
export class ChannelBanned extends BadRequest {
|
|
373
|
+
id = 'CHANNEL_BANNED';
|
|
374
|
+
message = 'The channel is banned';
|
|
375
|
+
}
|
|
376
|
+
export class ChannelForumMissing extends BadRequest {
|
|
377
|
+
id = 'CHANNEL_FORUM_MISSING';
|
|
378
|
+
message = 'This supergroup is not a forum.';
|
|
379
|
+
}
|
|
380
|
+
export class ChannelIdInvalid extends BadRequest {
|
|
381
|
+
id = 'CHANNEL_ID_INVALID';
|
|
382
|
+
message = 'The specified supergroup ID is invalid.';
|
|
383
|
+
}
|
|
384
|
+
export class ChannelInvalid extends BadRequest {
|
|
385
|
+
id = 'CHANNEL_INVALID';
|
|
386
|
+
message = 'The provided channel is invalid.';
|
|
387
|
+
}
|
|
388
|
+
export class ChannelMonoforumUnsupported extends BadRequest {
|
|
389
|
+
id = 'CHANNEL_MONOFORUM_UNSUPPORTED';
|
|
390
|
+
message = '[Monoforums](https://core.telegram.org/api/channel#monoforums) do not support this feature.';
|
|
391
|
+
}
|
|
392
|
+
export class ChannelParicipantMissing extends BadRequest {
|
|
393
|
+
id = 'CHANNEL_PARICIPANT_MISSING';
|
|
394
|
+
message = 'The current user is not in the channel.';
|
|
395
|
+
}
|
|
396
|
+
export class ChannelPrivate extends BadRequest {
|
|
397
|
+
id = 'CHANNEL_PRIVATE';
|
|
398
|
+
message = "You haven't joined this channel/supergroup.";
|
|
399
|
+
}
|
|
400
|
+
export class ChannelTooBig extends BadRequest {
|
|
401
|
+
id = 'CHANNEL_TOO_BIG';
|
|
402
|
+
message = 'This channel has too many participants (>1000) to be deleted.';
|
|
403
|
+
}
|
|
404
|
+
export class ChannelTooLarge extends BadRequest {
|
|
405
|
+
id = 'CHANNEL_TOO_LARGE';
|
|
406
|
+
message = 'Channel is too large to be deleted; this error is issued when trying to delete channels with more than 1000 members (subject to change).';
|
|
407
|
+
}
|
|
408
|
+
export class ChargeAlreadyRefunded extends BadRequest {
|
|
409
|
+
id = 'CHARGE_ALREADY_REFUNDED';
|
|
410
|
+
message = 'The transaction was already refunded.';
|
|
411
|
+
}
|
|
412
|
+
export class ChargeIdEmpty extends BadRequest {
|
|
413
|
+
id = 'CHARGE_ID_EMPTY';
|
|
414
|
+
message = 'The specified charge_id is empty.';
|
|
415
|
+
}
|
|
416
|
+
export class ChargeIdInvalid extends BadRequest {
|
|
417
|
+
id = 'CHARGE_ID_INVALID';
|
|
418
|
+
message = 'The specified charge_id is invalid.';
|
|
419
|
+
}
|
|
420
|
+
export class ChatlinksTooMuch extends BadRequest {
|
|
421
|
+
id = 'CHATLINKS_TOO_MUCH';
|
|
422
|
+
message = 'Too many [business chat links](https://core.telegram.org/api/business#business-chat-links) were created, please delete some older links.';
|
|
423
|
+
}
|
|
424
|
+
export class ChatlinkSlugEmpty extends BadRequest {
|
|
425
|
+
id = 'CHATLINK_SLUG_EMPTY';
|
|
426
|
+
message = 'The specified slug is empty.';
|
|
427
|
+
}
|
|
428
|
+
export class ChatlinkSlugExpired extends BadRequest {
|
|
429
|
+
id = 'CHATLINK_SLUG_EXPIRED';
|
|
430
|
+
message = 'The specified [business chat link](https://core.telegram.org/api/business#business-chat-links) has expired.';
|
|
431
|
+
}
|
|
432
|
+
export class ChatlistsTooMuch extends BadRequest {
|
|
433
|
+
id = 'CHATLISTS_TOO_MUCH';
|
|
434
|
+
message = 'You have created too many folder links, hitting the `chatlist_invites_limit_default`/`chatlist_invites_limit_premium` [limits »](https://core.telegram.org/api/config#chatlist-invites-limit-default).';
|
|
435
|
+
}
|
|
436
|
+
export class ChatlistExcludeInvalid extends BadRequest {
|
|
437
|
+
id = 'CHATLIST_EXCLUDE_INVALID';
|
|
438
|
+
message = 'The specified `exclude_peers` are invalid.';
|
|
439
|
+
}
|
|
440
|
+
export class ChatAboutNotModified extends BadRequest {
|
|
441
|
+
id = 'CHAT_ABOUT_NOT_MODIFIED';
|
|
442
|
+
message = 'About text has not changed.';
|
|
443
|
+
}
|
|
444
|
+
export class ChatAboutTooLong extends BadRequest {
|
|
445
|
+
id = 'CHAT_ABOUT_TOO_LONG';
|
|
446
|
+
message = 'Chat about too long.';
|
|
447
|
+
}
|
|
448
|
+
export class ChatAdminRequired extends BadRequest {
|
|
449
|
+
id = 'CHAT_ADMIN_REQUIRED';
|
|
450
|
+
message = 'You must be an admin in this chat to do this.';
|
|
451
|
+
}
|
|
452
|
+
export class ChatDiscussionUnallowed extends BadRequest {
|
|
453
|
+
id = 'CHAT_DISCUSSION_UNALLOWED';
|
|
454
|
+
message = "You can't enable forum topics in a discussion group linked to a channel.";
|
|
455
|
+
}
|
|
456
|
+
export class ChatForwardsRestricted extends BadRequest {
|
|
457
|
+
id = 'CHAT_FORWARDS_RESTRICTED';
|
|
458
|
+
message = "You can't forward messages from a protected chat.";
|
|
459
|
+
}
|
|
460
|
+
export class ChatIdEmpty extends BadRequest {
|
|
461
|
+
id = 'CHAT_ID_EMPTY';
|
|
462
|
+
message = 'The provided chat ID is empty.';
|
|
463
|
+
}
|
|
464
|
+
export class ChatIdInvalid extends BadRequest {
|
|
465
|
+
id = 'CHAT_ID_INVALID';
|
|
466
|
+
message = 'The provided chat id is invalid.';
|
|
467
|
+
}
|
|
468
|
+
export class ChatInvalid extends BadRequest {
|
|
469
|
+
id = 'CHAT_INVALID';
|
|
470
|
+
message = 'Invalid chat.';
|
|
471
|
+
}
|
|
472
|
+
export class ChatInvitePermanent extends BadRequest {
|
|
473
|
+
id = 'CHAT_INVITE_PERMANENT';
|
|
474
|
+
message = "You can't set an expiration date on permanent invite links.";
|
|
475
|
+
}
|
|
476
|
+
export class ChatLinkExists extends BadRequest {
|
|
477
|
+
id = 'CHAT_LINK_EXISTS';
|
|
478
|
+
message = "The chat is public, you can't hide the history to new users.";
|
|
479
|
+
}
|
|
480
|
+
export class ChatMemberAddFailed extends BadRequest {
|
|
481
|
+
id = 'CHAT_MEMBER_ADD_FAILED';
|
|
482
|
+
message = 'Could not add participants.';
|
|
483
|
+
}
|
|
484
|
+
export class ChatNotModified extends BadRequest {
|
|
485
|
+
id = 'CHAT_NOT_MODIFIED';
|
|
486
|
+
message = 'No changes were made to chat information because the new information you passed is identical to the current information.';
|
|
487
|
+
}
|
|
488
|
+
export class ChatPublicRequired extends BadRequest {
|
|
489
|
+
id = 'CHAT_PUBLIC_REQUIRED';
|
|
490
|
+
message = 'You can only enable join requests in public groups.';
|
|
491
|
+
}
|
|
492
|
+
export class ChatRestricted extends BadRequest {
|
|
493
|
+
id = 'CHAT_RESTRICTED';
|
|
494
|
+
message = "You can't send messages in this chat, you were restricted.";
|
|
495
|
+
}
|
|
496
|
+
export class ChatRevokeDateUnsupported extends BadRequest {
|
|
497
|
+
id = 'CHAT_REVOKE_DATE_UNSUPPORTED';
|
|
498
|
+
message = '`min_date` and `max_date` are not available for using with non-user peers.';
|
|
499
|
+
}
|
|
500
|
+
export class ChatSendInlineForbidden extends BadRequest {
|
|
501
|
+
id = 'CHAT_SEND_INLINE_FORBIDDEN';
|
|
502
|
+
message = "You can't send inline messages in this group.";
|
|
503
|
+
}
|
|
504
|
+
export class ChatTitleEmpty extends BadRequest {
|
|
505
|
+
id = 'CHAT_TITLE_EMPTY';
|
|
506
|
+
message = 'No chat title provided.';
|
|
507
|
+
}
|
|
508
|
+
export class ChatTooBig extends BadRequest {
|
|
509
|
+
id = 'CHAT_TOO_BIG';
|
|
510
|
+
message = 'This method is not available for groups with more than `chat_read_mark_size_threshold` members, [see client configuration »](https://core.telegram.org/api/config#client-configuration).';
|
|
511
|
+
}
|
|
512
|
+
export class CodeEmpty extends BadRequest {
|
|
513
|
+
id = 'CODE_EMPTY';
|
|
514
|
+
message = 'The provided code is empty.';
|
|
515
|
+
}
|
|
516
|
+
export class CodeHashInvalid extends BadRequest {
|
|
517
|
+
id = 'CODE_HASH_INVALID';
|
|
518
|
+
message = 'Code hash invalid.';
|
|
519
|
+
}
|
|
520
|
+
export class CodeInvalid extends BadRequest {
|
|
521
|
+
id = 'CODE_INVALID';
|
|
522
|
+
message = 'Code invalid.';
|
|
523
|
+
}
|
|
524
|
+
export class CollectibleInvalid extends BadRequest {
|
|
525
|
+
id = 'COLLECTIBLE_INVALID';
|
|
526
|
+
message = 'The specified collectible is invalid.';
|
|
527
|
+
}
|
|
528
|
+
export class CollectibleNotFound extends BadRequest {
|
|
529
|
+
id = 'COLLECTIBLE_NOT_FOUND';
|
|
530
|
+
message = 'The specified collectible could not be found.';
|
|
531
|
+
}
|
|
532
|
+
export class CollectionIdInvalid extends BadRequest {
|
|
533
|
+
id = 'COLLECTION_ID_INVALID';
|
|
534
|
+
message = '';
|
|
535
|
+
}
|
|
536
|
+
export class ColorInvalid extends BadRequest {
|
|
537
|
+
id = 'COLOR_INVALID';
|
|
538
|
+
message = 'The specified color palette ID was invalid.';
|
|
539
|
+
}
|
|
540
|
+
export class ConnectionApiIdInvalid extends BadRequest {
|
|
541
|
+
id = 'CONNECTION_API_ID_INVALID';
|
|
542
|
+
message = 'The provided API id is invalid.';
|
|
543
|
+
}
|
|
544
|
+
export class ConnectionAppVersionEmpty extends BadRequest {
|
|
545
|
+
id = 'CONNECTION_APP_VERSION_EMPTY';
|
|
546
|
+
message = 'App version is empty.';
|
|
547
|
+
}
|
|
548
|
+
export class ConnectionDeviceModelEmpty extends BadRequest {
|
|
549
|
+
id = 'CONNECTION_DEVICE_MODEL_EMPTY';
|
|
550
|
+
message = 'The specified device model is empty.';
|
|
551
|
+
}
|
|
552
|
+
export class ConnectionIdInvalid extends BadRequest {
|
|
553
|
+
id = 'CONNECTION_ID_INVALID';
|
|
554
|
+
message = 'The specified connection ID is invalid.';
|
|
555
|
+
}
|
|
556
|
+
export class ConnectionLangPackInvalid extends BadRequest {
|
|
557
|
+
id = 'CONNECTION_LANG_PACK_INVALID';
|
|
558
|
+
message = 'The specified language pack is empty.';
|
|
559
|
+
}
|
|
560
|
+
export class ConnectionLayerInvalid extends BadRequest {
|
|
561
|
+
id = 'CONNECTION_LAYER_INVALID';
|
|
562
|
+
message = 'Layer invalid.';
|
|
563
|
+
}
|
|
564
|
+
export class ConnectionNotInited extends BadRequest {
|
|
565
|
+
id = 'CONNECTION_NOT_INITED';
|
|
566
|
+
message = 'Please initialize the connection using initConnection before making queries.';
|
|
567
|
+
}
|
|
568
|
+
export class ConnectionSystemEmpty extends BadRequest {
|
|
569
|
+
id = 'CONNECTION_SYSTEM_EMPTY';
|
|
570
|
+
message = 'The specified system version is empty.';
|
|
571
|
+
}
|
|
572
|
+
export class ConnectionSystemLangCodeEmpty extends BadRequest {
|
|
573
|
+
id = 'CONNECTION_SYSTEM_LANG_CODE_EMPTY';
|
|
574
|
+
message = 'The specified system language code is empty.';
|
|
575
|
+
}
|
|
576
|
+
export class ContactAddMissing extends BadRequest {
|
|
577
|
+
id = 'CONTACT_ADD_MISSING';
|
|
578
|
+
message = 'Contact to add is missing.';
|
|
579
|
+
}
|
|
580
|
+
export class ContactIdInvalid extends BadRequest {
|
|
581
|
+
id = 'CONTACT_ID_INVALID';
|
|
582
|
+
message = 'The provided contact ID is invalid.';
|
|
583
|
+
}
|
|
584
|
+
export class ContactMissing extends BadRequest {
|
|
585
|
+
id = 'CONTACT_MISSING';
|
|
586
|
+
message = 'The specified user is not a contact.';
|
|
587
|
+
}
|
|
588
|
+
export class ContactNameEmpty extends BadRequest {
|
|
589
|
+
id = 'CONTACT_NAME_EMPTY';
|
|
590
|
+
message = 'Contact name empty.';
|
|
591
|
+
}
|
|
592
|
+
export class ContactReqMissing extends BadRequest {
|
|
593
|
+
id = 'CONTACT_REQ_MISSING';
|
|
594
|
+
message = 'Missing contact request.';
|
|
595
|
+
}
|
|
596
|
+
export class CreateCallFailed extends BadRequest {
|
|
597
|
+
id = 'CREATE_CALL_FAILED';
|
|
598
|
+
message = 'An error occurred while creating the call.';
|
|
599
|
+
}
|
|
600
|
+
export class CredentialInvalid extends BadRequest {
|
|
601
|
+
id = 'CREDENTIAL_INVALID';
|
|
602
|
+
message = '';
|
|
603
|
+
}
|
|
604
|
+
export class CurrencyTotalAmountInvalid extends BadRequest {
|
|
605
|
+
id = 'CURRENCY_TOTAL_AMOUNT_INVALID';
|
|
606
|
+
message = 'The total amount of all prices is invalid.';
|
|
607
|
+
}
|
|
608
|
+
export class CustomReactionsTooMany extends BadRequest {
|
|
609
|
+
id = 'CUSTOM_REACTIONS_TOO_MANY';
|
|
610
|
+
message = 'Too many custom reactions were specified.';
|
|
611
|
+
}
|
|
612
|
+
export class DataHashSizeInvalid extends BadRequest {
|
|
613
|
+
id = 'DATA_HASH_SIZE_INVALID';
|
|
614
|
+
message = 'The size of the specified secureValueErrorData.data_hash is invalid.';
|
|
615
|
+
}
|
|
616
|
+
export class DataInvalid extends BadRequest {
|
|
617
|
+
id = 'DATA_INVALID';
|
|
618
|
+
message = 'Encrypted data invalid.';
|
|
619
|
+
}
|
|
620
|
+
export class DataJsonInvalid extends BadRequest {
|
|
621
|
+
id = 'DATA_JSON_INVALID';
|
|
622
|
+
message = 'The provided JSON data is invalid.';
|
|
623
|
+
}
|
|
624
|
+
export class DataTooLong extends BadRequest {
|
|
625
|
+
id = 'DATA_TOO_LONG';
|
|
626
|
+
message = 'Data too long.';
|
|
627
|
+
}
|
|
628
|
+
export class DateEmpty extends BadRequest {
|
|
629
|
+
id = 'DATE_EMPTY';
|
|
630
|
+
message = 'Date empty.';
|
|
631
|
+
}
|
|
632
|
+
export class DcIdInvalid extends BadRequest {
|
|
633
|
+
id = 'DC_ID_INVALID';
|
|
634
|
+
message = 'The provided DC ID is invalid.';
|
|
635
|
+
}
|
|
636
|
+
export class DhGAInvalid extends BadRequest {
|
|
637
|
+
id = 'DH_G_A_INVALID';
|
|
638
|
+
message = 'g_a invalid.';
|
|
639
|
+
}
|
|
640
|
+
export class DocumentInvalid extends BadRequest {
|
|
641
|
+
id = 'DOCUMENT_INVALID';
|
|
642
|
+
message = 'The specified document is invalid.';
|
|
643
|
+
}
|
|
644
|
+
export class EffectChatInvalid extends BadRequest {
|
|
645
|
+
id = 'EFFECT_CHAT_INVALID';
|
|
646
|
+
message = '';
|
|
647
|
+
}
|
|
648
|
+
export class EffectIdInvalid extends BadRequest {
|
|
649
|
+
id = 'EFFECT_ID_INVALID';
|
|
650
|
+
message = 'The specified effect ID is invalid.';
|
|
651
|
+
}
|
|
652
|
+
export class EmailHashExpired extends BadRequest {
|
|
653
|
+
id = 'EMAIL_HASH_EXPIRED';
|
|
654
|
+
message = 'Email hash expired.';
|
|
655
|
+
}
|
|
656
|
+
export class EmailInstallMissing extends BadRequest {
|
|
657
|
+
id = 'EMAIL_INSTALL_MISSING';
|
|
658
|
+
message = '';
|
|
659
|
+
}
|
|
660
|
+
export class EmailInvalid extends BadRequest {
|
|
661
|
+
id = 'EMAIL_INVALID';
|
|
662
|
+
message = 'The specified email is invalid.';
|
|
663
|
+
}
|
|
664
|
+
export class EmailNotAllowed extends BadRequest {
|
|
665
|
+
id = 'EMAIL_NOT_ALLOWED';
|
|
666
|
+
message = 'The specified email cannot be used to complete the operation.';
|
|
667
|
+
}
|
|
668
|
+
export class EmailNotSetup extends BadRequest {
|
|
669
|
+
id = 'EMAIL_NOT_SETUP';
|
|
670
|
+
message = 'In order to change the login email with emailVerifyPurposeLoginChange, an existing login email must already be set using emailVerifyPurposeLoginSetup.';
|
|
671
|
+
}
|
|
672
|
+
export class EmailUnconfirmed extends BadRequest {
|
|
673
|
+
id = 'EMAIL_UNCONFIRMED';
|
|
674
|
+
message = 'Email unconfirmed.';
|
|
675
|
+
}
|
|
676
|
+
export class EmailUnconfirmedX extends BadRequest {
|
|
677
|
+
id = 'EMAIL_UNCONFIRMED_X';
|
|
678
|
+
message = "The provided email isn't confirmed, {value} is the length of the verification code that was just sent to the email: use [account.verifyEmail](https://core.telegram.org/method/account.verifyEmail) to enter the received verification code and enable the recovery email.";
|
|
679
|
+
}
|
|
680
|
+
export class EmailVerifyExpired extends BadRequest {
|
|
681
|
+
id = 'EMAIL_VERIFY_EXPIRED';
|
|
682
|
+
message = 'The verification email has expired.';
|
|
683
|
+
}
|
|
684
|
+
export class EmojiInvalid extends BadRequest {
|
|
685
|
+
id = 'EMOJI_INVALID';
|
|
686
|
+
message = 'The specified theme emoji is valid.';
|
|
687
|
+
}
|
|
688
|
+
export class EmojiMarkupInvalid extends BadRequest {
|
|
689
|
+
id = 'EMOJI_MARKUP_INVALID';
|
|
690
|
+
message = 'The specified `video_emoji_markup` was invalid.';
|
|
691
|
+
}
|
|
692
|
+
export class EmojiNotModified extends BadRequest {
|
|
693
|
+
id = 'EMOJI_NOT_MODIFIED';
|
|
694
|
+
message = "The theme wasn't changed.";
|
|
695
|
+
}
|
|
696
|
+
export class EmoticonEmpty extends BadRequest {
|
|
697
|
+
id = 'EMOTICON_EMPTY';
|
|
698
|
+
message = 'The emoji is empty.';
|
|
699
|
+
}
|
|
700
|
+
export class EmoticonInvalid extends BadRequest {
|
|
701
|
+
id = 'EMOTICON_INVALID';
|
|
702
|
+
message = 'The specified emoji is invalid.';
|
|
703
|
+
}
|
|
704
|
+
export class EmoticonStickerpackMissing extends BadRequest {
|
|
705
|
+
id = 'EMOTICON_STICKERPACK_MISSING';
|
|
706
|
+
message = 'inputStickerSetDice.emoji cannot be empty.';
|
|
707
|
+
}
|
|
708
|
+
export class EncryptedMessageInvalid extends BadRequest {
|
|
709
|
+
id = 'ENCRYPTED_MESSAGE_INVALID';
|
|
710
|
+
message = 'Encrypted message invalid.';
|
|
711
|
+
}
|
|
712
|
+
export class EncryptionAlreadyAccepted extends BadRequest {
|
|
713
|
+
id = 'ENCRYPTION_ALREADY_ACCEPTED';
|
|
714
|
+
message = 'Secret chat already accepted.';
|
|
715
|
+
}
|
|
716
|
+
export class EncryptionAlreadyDeclined extends BadRequest {
|
|
717
|
+
id = 'ENCRYPTION_ALREADY_DECLINED';
|
|
718
|
+
message = 'The secret chat was already declined.';
|
|
719
|
+
}
|
|
720
|
+
export class EncryptionDeclined extends BadRequest {
|
|
721
|
+
id = 'ENCRYPTION_DECLINED';
|
|
722
|
+
message = 'The secret chat was declined.';
|
|
723
|
+
}
|
|
724
|
+
export class EncryptionIdInvalid extends BadRequest {
|
|
725
|
+
id = 'ENCRYPTION_ID_INVALID';
|
|
726
|
+
message = 'The provided secret chat ID is invalid.';
|
|
727
|
+
}
|
|
728
|
+
export class EntitiesTooLong extends BadRequest {
|
|
729
|
+
id = 'ENTITIES_TOO_LONG';
|
|
730
|
+
message = 'You provided too many styled message entities.';
|
|
731
|
+
}
|
|
732
|
+
export class EntityBoundsInvalid extends BadRequest {
|
|
733
|
+
id = 'ENTITY_BOUNDS_INVALID';
|
|
734
|
+
message = 'A specified [entity offset or length](https://core.telegram.org/api/entities#entity-length) is invalid, see [here »](https://core.telegram.org/api/entities#entity-length) for info on how to properly compute the entity offset/length.';
|
|
735
|
+
}
|
|
736
|
+
export class EntityMentionUserInvalid extends BadRequest {
|
|
737
|
+
id = 'ENTITY_MENTION_USER_INVALID';
|
|
738
|
+
message = 'You mentioned an invalid user.';
|
|
739
|
+
}
|
|
740
|
+
export class ErrorTextEmpty extends BadRequest {
|
|
741
|
+
id = 'ERROR_TEXT_EMPTY';
|
|
742
|
+
message = 'The provided error message is empty.';
|
|
743
|
+
}
|
|
744
|
+
export class ExpiresAtInvalid extends BadRequest {
|
|
745
|
+
id = 'EXPIRES_AT_INVALID';
|
|
746
|
+
message = 'The specified `expires_at` timestamp is invalid.';
|
|
747
|
+
}
|
|
748
|
+
export class ExpireDateInvalid extends BadRequest {
|
|
749
|
+
id = 'EXPIRE_DATE_INVALID';
|
|
750
|
+
message = 'The specified expiration date is invalid.';
|
|
751
|
+
}
|
|
752
|
+
export class ExportCardInvalid extends BadRequest {
|
|
753
|
+
id = 'EXPORT_CARD_INVALID';
|
|
754
|
+
message = 'Provided card is invalid.';
|
|
755
|
+
}
|
|
756
|
+
export class ExtendedMediaAmountInvalid extends BadRequest {
|
|
757
|
+
id = 'EXTENDED_MEDIA_AMOUNT_INVALID';
|
|
758
|
+
message = 'The specified `stars_amount` of the passed [inputMediaPaidMedia](https://core.telegram.org/constructor/inputMediaPaidMedia) is invalid.';
|
|
759
|
+
}
|
|
760
|
+
export class ExtendedMediaEmpty extends BadRequest {
|
|
761
|
+
id = 'EXTENDED_MEDIA_EMPTY';
|
|
762
|
+
message = '';
|
|
763
|
+
}
|
|
764
|
+
export class ExtendedMediaInvalid extends BadRequest {
|
|
765
|
+
id = 'EXTENDED_MEDIA_INVALID';
|
|
766
|
+
message = 'The specified paid media is invalid.';
|
|
767
|
+
}
|
|
768
|
+
export class ExternalUrlInvalid extends BadRequest {
|
|
769
|
+
id = 'EXTERNAL_URL_INVALID';
|
|
770
|
+
message = 'External URL invalid.';
|
|
771
|
+
}
|
|
772
|
+
export class FieldNameEmpty extends BadRequest {
|
|
773
|
+
id = 'FIELD_NAME_EMPTY';
|
|
774
|
+
message = 'The field with the name FIELD_NAME is missing';
|
|
775
|
+
}
|
|
776
|
+
export class FieldNameInvalid extends BadRequest {
|
|
777
|
+
id = 'FIELD_NAME_INVALID';
|
|
778
|
+
message = 'The field with the name FIELD_NAME is invalid';
|
|
779
|
+
}
|
|
780
|
+
export class FileContentTypeInvalid extends BadRequest {
|
|
781
|
+
id = 'FILE_CONTENT_TYPE_INVALID';
|
|
782
|
+
message = 'File content-type is invalid.';
|
|
783
|
+
}
|
|
784
|
+
export class FileEmtpy extends BadRequest {
|
|
785
|
+
id = 'FILE_EMTPY';
|
|
786
|
+
message = 'An empty file was provided.';
|
|
787
|
+
}
|
|
788
|
+
export class FileIdInvalid extends BadRequest {
|
|
789
|
+
id = 'FILE_ID_INVALID';
|
|
790
|
+
message = 'The provided file id is invalid.';
|
|
791
|
+
}
|
|
792
|
+
export class FileMigrate extends BadRequest {
|
|
793
|
+
id = 'FILE_MIGRATE_X';
|
|
794
|
+
message = 'The file currently being accessed is stored in DC {value}, please re-send the query to that DC.';
|
|
795
|
+
}
|
|
796
|
+
export class FilePartsInvalid extends BadRequest {
|
|
797
|
+
id = 'FILE_PARTS_INVALID';
|
|
798
|
+
message = 'The number of file parts is invalid.';
|
|
799
|
+
}
|
|
800
|
+
export class FilePartEmpty extends BadRequest {
|
|
801
|
+
id = 'FILE_PART_EMPTY';
|
|
802
|
+
message = 'The provided file part is empty.';
|
|
803
|
+
}
|
|
804
|
+
export class FilePartInvalid extends BadRequest {
|
|
805
|
+
id = 'FILE_PART_INVALID';
|
|
806
|
+
message = 'The file part number is invalid.';
|
|
807
|
+
}
|
|
808
|
+
export class FilePartLengthInvalid extends BadRequest {
|
|
809
|
+
id = 'FILE_PART_LENGTH_INVALID';
|
|
810
|
+
message = 'The length of a file part is invalid.';
|
|
811
|
+
}
|
|
812
|
+
export class FilePartSizeChanged extends BadRequest {
|
|
813
|
+
id = 'FILE_PART_SIZE_CHANGED';
|
|
814
|
+
message = 'Provided file part size has changed.';
|
|
815
|
+
}
|
|
816
|
+
export class FilePartSizeInvalid extends BadRequest {
|
|
817
|
+
id = 'FILE_PART_SIZE_INVALID';
|
|
818
|
+
message = 'The provided file part size is invalid.';
|
|
819
|
+
}
|
|
820
|
+
export class FilePartTooBig extends BadRequest {
|
|
821
|
+
id = 'FILE_PART_TOO_BIG';
|
|
822
|
+
message = 'The uploaded file part is too big.';
|
|
823
|
+
}
|
|
824
|
+
export class FilePartTooSmall extends BadRequest {
|
|
825
|
+
id = 'FILE_PART_TOO_SMALL';
|
|
826
|
+
message = 'The size of the uploaded file part is too small, please see the documentation for the allowed sizes.';
|
|
827
|
+
}
|
|
828
|
+
export class FilePartMissing extends BadRequest {
|
|
829
|
+
id = 'FILE_PART_X_MISSING';
|
|
830
|
+
message = 'Part {value} of the file is missing from storage. Try repeating the method call to resave the part.';
|
|
831
|
+
}
|
|
832
|
+
export class FileReferenceAny extends BadRequest {
|
|
833
|
+
id = 'FILE_REFERENCE_*';
|
|
834
|
+
message = 'The file reference expired, it [must be refreshed](https://core.telegram.org/api/file_reference).';
|
|
835
|
+
}
|
|
836
|
+
export class FileReferenceEmpty extends BadRequest {
|
|
837
|
+
id = 'FILE_REFERENCE_EMPTY';
|
|
838
|
+
message = 'An empty [file reference](https://core.telegram.org/api/file-references) was specified.';
|
|
839
|
+
}
|
|
840
|
+
export class FileReferenceExpired extends BadRequest {
|
|
841
|
+
id = 'FILE_REFERENCE_EXPIRED';
|
|
842
|
+
message = 'File reference expired, it must be refetched as described in [the documentation](https://core.telegram.org/api/file-references).';
|
|
843
|
+
}
|
|
844
|
+
export class FileReferenceInvalid extends BadRequest {
|
|
845
|
+
id = 'FILE_REFERENCE_INVALID';
|
|
846
|
+
message = 'The specified [file reference](https://core.telegram.org/api/file-references) is invalid.';
|
|
847
|
+
}
|
|
848
|
+
export class FileReferenceXEmpty extends BadRequest {
|
|
849
|
+
id = 'FILE_REFERENCE_X_EMPTY';
|
|
850
|
+
message = '';
|
|
851
|
+
}
|
|
852
|
+
export class FileReferenceXExpired extends BadRequest {
|
|
853
|
+
id = 'FILE_REFERENCE_X_EXPIRED';
|
|
854
|
+
message = 'The file reference of the media file at index {value} in the passed media array expired, it [must be refreshed as specified in the documentation](https://core.telegram.org/api/file-references). .';
|
|
855
|
+
}
|
|
856
|
+
export class FileReferenceXInvalid extends BadRequest {
|
|
857
|
+
id = 'FILE_REFERENCE_X_INVALID';
|
|
858
|
+
message = 'The [file reference](https://core.telegram.org/api/file-references) of the media file at index {value} in the passed media array is invalid.';
|
|
859
|
+
}
|
|
860
|
+
export class FileTitleEmpty extends BadRequest {
|
|
861
|
+
id = 'FILE_TITLE_EMPTY';
|
|
862
|
+
message = 'An empty file title was specified.';
|
|
863
|
+
}
|
|
864
|
+
export class FileTokenInvalid extends BadRequest {
|
|
865
|
+
id = 'FILE_TOKEN_INVALID';
|
|
866
|
+
message = 'The master DC did not accept the `file_token` (e.g., the token has expired). Continue downloading the file from the master DC using upload.getFile.';
|
|
867
|
+
}
|
|
868
|
+
export class FilterIdInvalid extends BadRequest {
|
|
869
|
+
id = 'FILTER_ID_INVALID';
|
|
870
|
+
message = 'The specified filter ID is invalid.';
|
|
871
|
+
}
|
|
872
|
+
export class FilterIncludeEmpty extends BadRequest {
|
|
873
|
+
id = 'FILTER_INCLUDE_EMPTY';
|
|
874
|
+
message = 'The include_peers vector of the filter is empty.';
|
|
875
|
+
}
|
|
876
|
+
export class FilterNotSupported extends BadRequest {
|
|
877
|
+
id = 'FILTER_NOT_SUPPORTED';
|
|
878
|
+
message = 'The specified filter cannot be used in this context.';
|
|
879
|
+
}
|
|
880
|
+
export class FilterTitleEmpty extends BadRequest {
|
|
881
|
+
id = 'FILTER_TITLE_EMPTY';
|
|
882
|
+
message = 'The title field of the filter is empty.';
|
|
883
|
+
}
|
|
884
|
+
export class FirstnameInvalid extends BadRequest {
|
|
885
|
+
id = 'FIRSTNAME_INVALID';
|
|
886
|
+
message = 'The first name is invalid.';
|
|
887
|
+
}
|
|
888
|
+
export class FolderIdEmpty extends BadRequest {
|
|
889
|
+
id = 'FOLDER_ID_EMPTY';
|
|
890
|
+
message = 'An empty folder ID was specified.';
|
|
891
|
+
}
|
|
892
|
+
export class FolderIdInvalid extends BadRequest {
|
|
893
|
+
id = 'FOLDER_ID_INVALID';
|
|
894
|
+
message = 'Invalid folder ID.';
|
|
895
|
+
}
|
|
896
|
+
export class FormExpired extends BadRequest {
|
|
897
|
+
id = 'FORM_EXPIRED';
|
|
898
|
+
message = '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`.';
|
|
899
|
+
}
|
|
900
|
+
export class FormIdEmpty extends BadRequest {
|
|
901
|
+
id = 'FORM_ID_EMPTY';
|
|
902
|
+
message = 'The specified form ID is empty.';
|
|
903
|
+
}
|
|
904
|
+
export class FormSubmitDuplicate extends BadRequest {
|
|
905
|
+
id = 'FORM_SUBMIT_DUPLICATE';
|
|
906
|
+
message = 'The same payment form was already submitted. .';
|
|
907
|
+
}
|
|
908
|
+
export class FormUnsupported extends BadRequest {
|
|
909
|
+
id = 'FORM_UNSUPPORTED';
|
|
910
|
+
message = 'Please update your client.';
|
|
911
|
+
}
|
|
912
|
+
export class ForumEnabled extends BadRequest {
|
|
913
|
+
id = 'FORUM_ENABLED';
|
|
914
|
+
message = "You can't execute the specified action because the group is a [forum](https://core.telegram.org/api/forum), disable forum functionality to continue.";
|
|
915
|
+
}
|
|
916
|
+
export class FreshChangeAdminsForbidden extends BadRequest {
|
|
917
|
+
id = 'FRESH_CHANGE_ADMINS_FORBIDDEN';
|
|
918
|
+
message = "You were just elected admin, you can't add or modify other admins yet.";
|
|
919
|
+
}
|
|
920
|
+
export class FromMessageBotDisabled extends BadRequest {
|
|
921
|
+
id = 'FROM_MESSAGE_BOT_DISABLED';
|
|
922
|
+
message = "Bots can't use fromMessage min constructors.";
|
|
923
|
+
}
|
|
924
|
+
export class FromPeerInvalid extends BadRequest {
|
|
925
|
+
id = 'FROM_PEER_INVALID';
|
|
926
|
+
message = 'The specified from_id is invalid.';
|
|
927
|
+
}
|
|
928
|
+
export class FrozenParticipantMissing extends BadRequest {
|
|
929
|
+
id = 'FROZEN_PARTICIPANT_MISSING';
|
|
930
|
+
message = 'The current account is [frozen](https://core.telegram.org/api/auth#frozen-accounts), and cannot access the specified peer.';
|
|
931
|
+
}
|
|
932
|
+
export class GameBotInvalid extends BadRequest {
|
|
933
|
+
id = 'GAME_BOT_INVALID';
|
|
934
|
+
message = "Bots can't send another bot's game.";
|
|
935
|
+
}
|
|
936
|
+
export class GeneralModifyIconForbidden extends BadRequest {
|
|
937
|
+
id = 'GENERAL_MODIFY_ICON_FORBIDDEN';
|
|
938
|
+
message = 'You can\'t modify the icon of the "General" topic.';
|
|
939
|
+
}
|
|
940
|
+
export class GeoPointInvalid extends BadRequest {
|
|
941
|
+
id = 'GEO_POINT_INVALID';
|
|
942
|
+
message = 'Invalid geoposition provided.';
|
|
943
|
+
}
|
|
944
|
+
export class GiftMonthsInvalid extends BadRequest {
|
|
945
|
+
id = 'GIFT_MONTHS_INVALID';
|
|
946
|
+
message = 'The value passed in invoice.inputInvoicePremiumGiftStars.months is invalid.';
|
|
947
|
+
}
|
|
948
|
+
export class GiftSlugExpired extends BadRequest {
|
|
949
|
+
id = 'GIFT_SLUG_EXPIRED';
|
|
950
|
+
message = 'The specified gift slug has expired.';
|
|
951
|
+
}
|
|
952
|
+
export class GiftSlugInvalid extends BadRequest {
|
|
953
|
+
id = 'GIFT_SLUG_INVALID';
|
|
954
|
+
message = 'The specified slug is invalid.';
|
|
955
|
+
}
|
|
956
|
+
export class GiftStarsInvalid extends BadRequest {
|
|
957
|
+
id = 'GIFT_STARS_INVALID';
|
|
958
|
+
message = 'The specified amount of stars is invalid.';
|
|
959
|
+
}
|
|
960
|
+
export class GifContentTypeInvalid extends BadRequest {
|
|
961
|
+
id = 'GIF_CONTENT_TYPE_INVALID';
|
|
962
|
+
message = 'GIF content-type invalid.';
|
|
963
|
+
}
|
|
964
|
+
export class GifIdInvalid extends BadRequest {
|
|
965
|
+
id = 'GIF_ID_INVALID';
|
|
966
|
+
message = 'The provided GIF ID is invalid.';
|
|
967
|
+
}
|
|
968
|
+
export class GraphExpiredReload extends BadRequest {
|
|
969
|
+
id = 'GRAPH_EXPIRED_RELOAD';
|
|
970
|
+
message = 'This graph has expired, please obtain a new graph token.';
|
|
971
|
+
}
|
|
972
|
+
export class GraphInvalidReload extends BadRequest {
|
|
973
|
+
id = 'GRAPH_INVALID_RELOAD';
|
|
974
|
+
message = 'Invalid graph token provided, please reload the stats and provide the updated token.';
|
|
975
|
+
}
|
|
976
|
+
export class GraphOutdatedReload extends BadRequest {
|
|
977
|
+
id = 'GRAPH_OUTDATED_RELOAD';
|
|
978
|
+
message = 'The graph is outdated, please get a new async token using stats.getBroadcastStats.';
|
|
979
|
+
}
|
|
980
|
+
export class GroupcallAlreadyDiscarded extends BadRequest {
|
|
981
|
+
id = 'GROUPCALL_ALREADY_DISCARDED';
|
|
982
|
+
message = 'The group call was already discarded.';
|
|
983
|
+
}
|
|
984
|
+
export class GroupcallForbidden extends BadRequest {
|
|
985
|
+
id = 'GROUPCALL_FORBIDDEN';
|
|
986
|
+
message = 'The group call has already ended.';
|
|
987
|
+
}
|
|
988
|
+
export class GroupcallInvalid extends BadRequest {
|
|
989
|
+
id = 'GROUPCALL_INVALID';
|
|
990
|
+
message = 'The specified group call is invalid.';
|
|
991
|
+
}
|
|
992
|
+
export class GroupcallJoinMissing extends BadRequest {
|
|
993
|
+
id = 'GROUPCALL_JOIN_MISSING';
|
|
994
|
+
message = "You haven't joined this group call.";
|
|
995
|
+
}
|
|
996
|
+
export class GroupcallNotModified extends BadRequest {
|
|
997
|
+
id = 'GROUPCALL_NOT_MODIFIED';
|
|
998
|
+
message = "Group call settings weren't modified.";
|
|
999
|
+
}
|
|
1000
|
+
export class GroupcallSsrcDuplicateMuch extends BadRequest {
|
|
1001
|
+
id = 'GROUPCALL_SSRC_DUPLICATE_MUCH';
|
|
1002
|
+
message = 'The app needs to retry joining the group call with a new SSRC value.';
|
|
1003
|
+
}
|
|
1004
|
+
export class GroupedMediaInvalid extends BadRequest {
|
|
1005
|
+
id = 'GROUPED_MEDIA_INVALID';
|
|
1006
|
+
message = 'Invalid grouped media.';
|
|
1007
|
+
}
|
|
1008
|
+
export class GroupCallInvalid extends BadRequest {
|
|
1009
|
+
id = 'GROUP_CALL_INVALID';
|
|
1010
|
+
message = 'The group call is invalid';
|
|
1011
|
+
}
|
|
1012
|
+
export class HashtagInvalid extends BadRequest {
|
|
1013
|
+
id = 'HASHTAG_INVALID';
|
|
1014
|
+
message = 'The specified hashtag is invalid.';
|
|
1015
|
+
}
|
|
1016
|
+
export class HashInvalid extends BadRequest {
|
|
1017
|
+
id = 'HASH_INVALID';
|
|
1018
|
+
message = 'The provided hash is invalid.';
|
|
1019
|
+
}
|
|
1020
|
+
export class HashSizeInvalid extends BadRequest {
|
|
1021
|
+
id = 'HASH_SIZE_INVALID';
|
|
1022
|
+
message = 'The size of the specified secureValueError.hash is invalid.';
|
|
1023
|
+
}
|
|
1024
|
+
export class HideRequesterMissing extends BadRequest {
|
|
1025
|
+
id = 'HIDE_REQUESTER_MISSING';
|
|
1026
|
+
message = 'The join request was missing or was already handled.';
|
|
1027
|
+
}
|
|
1028
|
+
export class IdExpired extends BadRequest {
|
|
1029
|
+
id = 'ID_EXPIRED';
|
|
1030
|
+
message = 'The passed prepared inline message ID has expired.';
|
|
1031
|
+
}
|
|
1032
|
+
export class IdInvalid extends BadRequest {
|
|
1033
|
+
id = 'ID_INVALID';
|
|
1034
|
+
message = 'The passed ID is invalid.';
|
|
1035
|
+
}
|
|
1036
|
+
export class ImageProcessFailed extends BadRequest {
|
|
1037
|
+
id = 'IMAGE_PROCESS_FAILED';
|
|
1038
|
+
message = 'Failure while processing image.';
|
|
1039
|
+
}
|
|
1040
|
+
export class ImportFileInvalid extends BadRequest {
|
|
1041
|
+
id = 'IMPORT_FILE_INVALID';
|
|
1042
|
+
message = 'The specified chat export file is invalid.';
|
|
1043
|
+
}
|
|
1044
|
+
export class ImportFormatDateInvalid extends BadRequest {
|
|
1045
|
+
id = 'IMPORT_FORMAT_DATE_INVALID';
|
|
1046
|
+
message = 'The date specified in the import file is invalid.';
|
|
1047
|
+
}
|
|
1048
|
+
export class ImportFormatUnrecognized extends BadRequest {
|
|
1049
|
+
id = 'IMPORT_FORMAT_UNRECOGNIZED';
|
|
1050
|
+
message = 'The specified chat export file was exported from an unsupported chat app.';
|
|
1051
|
+
}
|
|
1052
|
+
export class ImportHistoryLogEmpty extends BadRequest {
|
|
1053
|
+
id = 'IMPORT_HISTORY_LOG_EMPTY';
|
|
1054
|
+
message = '';
|
|
1055
|
+
}
|
|
1056
|
+
export class ImportIdInvalid extends BadRequest {
|
|
1057
|
+
id = 'IMPORT_ID_INVALID';
|
|
1058
|
+
message = 'The specified import ID is invalid.';
|
|
1059
|
+
}
|
|
1060
|
+
export class ImportTokenInvalid extends BadRequest {
|
|
1061
|
+
id = 'IMPORT_TOKEN_INVALID';
|
|
1062
|
+
message = 'The specified token is invalid.';
|
|
1063
|
+
}
|
|
1064
|
+
export class InlineResultExpired extends BadRequest {
|
|
1065
|
+
id = 'INLINE_RESULT_EXPIRED';
|
|
1066
|
+
message = 'The inline query expired.';
|
|
1067
|
+
}
|
|
1068
|
+
export class InputChatlistInvalid extends BadRequest {
|
|
1069
|
+
id = 'INPUT_CHATLIST_INVALID';
|
|
1070
|
+
message = 'The specified folder is invalid.';
|
|
1071
|
+
}
|
|
1072
|
+
export class InputConstructorInvalid extends BadRequest {
|
|
1073
|
+
id = 'INPUT_CONSTRUCTOR_INVALID';
|
|
1074
|
+
message = 'The specified TL constructor is invalid.';
|
|
1075
|
+
}
|
|
1076
|
+
export class InputFetchError extends BadRequest {
|
|
1077
|
+
id = 'INPUT_FETCH_ERROR';
|
|
1078
|
+
message = 'An error occurred while parsing the provided TL constructor.';
|
|
1079
|
+
}
|
|
1080
|
+
export class InputFetchFail extends BadRequest {
|
|
1081
|
+
id = 'INPUT_FETCH_FAIL';
|
|
1082
|
+
message = 'An error occurred while parsing the provided TL constructor.';
|
|
1083
|
+
}
|
|
1084
|
+
export class InputFileInvalid extends BadRequest {
|
|
1085
|
+
id = 'INPUT_FILE_INVALID';
|
|
1086
|
+
message = 'The specified [InputFile](https://core.telegram.org/type/InputFile) is invalid.';
|
|
1087
|
+
}
|
|
1088
|
+
export class InputFilterInvalid extends BadRequest {
|
|
1089
|
+
id = 'INPUT_FILTER_INVALID';
|
|
1090
|
+
message = 'The specified filter is invalid.';
|
|
1091
|
+
}
|
|
1092
|
+
export class InputLayerInvalid extends BadRequest {
|
|
1093
|
+
id = 'INPUT_LAYER_INVALID';
|
|
1094
|
+
message = 'The specified layer is invalid.';
|
|
1095
|
+
}
|
|
1096
|
+
export class InputMethodInvalid extends BadRequest {
|
|
1097
|
+
id = 'INPUT_METHOD_INVALID';
|
|
1098
|
+
message = 'The specified method is invalid.';
|
|
1099
|
+
}
|
|
1100
|
+
export class InputPeersEmpty extends BadRequest {
|
|
1101
|
+
id = 'INPUT_PEERS_EMPTY';
|
|
1102
|
+
message = 'The specified peer array is empty.';
|
|
1103
|
+
}
|
|
1104
|
+
export class InputPurposeInvalid extends BadRequest {
|
|
1105
|
+
id = 'INPUT_PURPOSE_INVALID';
|
|
1106
|
+
message = 'The specified payment purpose is invalid.';
|
|
1107
|
+
}
|
|
1108
|
+
export class InputRequestTooLong extends BadRequest {
|
|
1109
|
+
id = 'INPUT_REQUEST_TOO_LONG';
|
|
1110
|
+
message = 'The request payload is too long.';
|
|
1111
|
+
}
|
|
1112
|
+
export class InputStarsAmountInvalid extends BadRequest {
|
|
1113
|
+
id = 'INPUT_STARS_AMOUNT_INVALID';
|
|
1114
|
+
message = '';
|
|
1115
|
+
}
|
|
1116
|
+
export class InputStarsNanosInvalid extends BadRequest {
|
|
1117
|
+
id = 'INPUT_STARS_NANOS_INVALID';
|
|
1118
|
+
message = '';
|
|
1119
|
+
}
|
|
1120
|
+
export class InputTextEmpty extends BadRequest {
|
|
1121
|
+
id = 'INPUT_TEXT_EMPTY';
|
|
1122
|
+
message = 'The specified text is empty.';
|
|
1123
|
+
}
|
|
1124
|
+
export class InputTextTooLong extends BadRequest {
|
|
1125
|
+
id = 'INPUT_TEXT_TOO_LONG';
|
|
1126
|
+
message = 'The specified text is too long.';
|
|
1127
|
+
}
|
|
1128
|
+
export class InputUserDeactivated extends BadRequest {
|
|
1129
|
+
id = 'INPUT_USER_DEACTIVATED';
|
|
1130
|
+
message = 'The specified user was deleted.';
|
|
1131
|
+
}
|
|
1132
|
+
export class InvitesTooMuch extends BadRequest {
|
|
1133
|
+
id = 'INVITES_TOO_MUCH';
|
|
1134
|
+
message = 'The maximum number of per-folder invites specified by the `chatlist_invites_limit_default`/`chatlist_invites_limit_premium` [client configuration parameters »](https://core.telegram.org/api/config#chatlist-invites-limit-default) was reached.';
|
|
1135
|
+
}
|
|
1136
|
+
export class InviteForbiddenWithJoinas extends BadRequest {
|
|
1137
|
+
id = 'INVITE_FORBIDDEN_WITH_JOINAS';
|
|
1138
|
+
message = "If the user has anonymously joined a group call as a channel, they can't invite other users to the group call because that would cause deanonymization, because the invite would be sent using the original user ID, not the anonymized channel ID.";
|
|
1139
|
+
}
|
|
1140
|
+
export class InviteHashEmpty extends BadRequest {
|
|
1141
|
+
id = 'INVITE_HASH_EMPTY';
|
|
1142
|
+
message = 'The invite hash is empty.';
|
|
1143
|
+
}
|
|
1144
|
+
export class InviteHashExpired extends BadRequest {
|
|
1145
|
+
id = 'INVITE_HASH_EXPIRED';
|
|
1146
|
+
message = 'The invite link has expired.';
|
|
1147
|
+
}
|
|
1148
|
+
export class InviteHashInvalid extends BadRequest {
|
|
1149
|
+
id = 'INVITE_HASH_INVALID';
|
|
1150
|
+
message = 'The invite hash is invalid.';
|
|
1151
|
+
}
|
|
1152
|
+
export class InviteRequestSent extends BadRequest {
|
|
1153
|
+
id = 'INVITE_REQUEST_SENT';
|
|
1154
|
+
message = 'You have successfully requested to join this chat or channel.';
|
|
1155
|
+
}
|
|
1156
|
+
export class InviteRevokedMissing extends BadRequest {
|
|
1157
|
+
id = 'INVITE_REVOKED_MISSING';
|
|
1158
|
+
message = 'The specified invite link was already revoked or is invalid.';
|
|
1159
|
+
}
|
|
1160
|
+
export class InviteSlugEmpty extends BadRequest {
|
|
1161
|
+
id = 'INVITE_SLUG_EMPTY';
|
|
1162
|
+
message = 'The specified invite slug is empty.';
|
|
1163
|
+
}
|
|
1164
|
+
export class InviteSlugExpired extends BadRequest {
|
|
1165
|
+
id = 'INVITE_SLUG_EXPIRED';
|
|
1166
|
+
message = 'The specified chat folder link has expired.';
|
|
1167
|
+
}
|
|
1168
|
+
export class InviteSlugInvalid extends BadRequest {
|
|
1169
|
+
id = 'INVITE_SLUG_INVALID';
|
|
1170
|
+
message = 'The specified invitation slug is invalid.';
|
|
1171
|
+
}
|
|
1172
|
+
export class InvoiceInvalid extends BadRequest {
|
|
1173
|
+
id = 'INVOICE_INVALID';
|
|
1174
|
+
message = 'The specified invoice is invalid.';
|
|
1175
|
+
}
|
|
1176
|
+
export class InvoicePayloadInvalid extends BadRequest {
|
|
1177
|
+
id = 'INVOICE_PAYLOAD_INVALID';
|
|
1178
|
+
message = 'The specified invoice payload is invalid.';
|
|
1179
|
+
}
|
|
1180
|
+
export class JoinAsPeerInvalid extends BadRequest {
|
|
1181
|
+
id = 'JOIN_AS_PEER_INVALID';
|
|
1182
|
+
message = 'The specified peer cannot be used to join a group call.';
|
|
1183
|
+
}
|
|
1184
|
+
export class LanguageInvalid extends BadRequest {
|
|
1185
|
+
id = 'LANGUAGE_INVALID';
|
|
1186
|
+
message = 'The specified lang_code is invalid.';
|
|
1187
|
+
}
|
|
1188
|
+
export class LangCodeInvalid extends BadRequest {
|
|
1189
|
+
id = 'LANG_CODE_INVALID';
|
|
1190
|
+
message = 'The specified language code is invalid.';
|
|
1191
|
+
}
|
|
1192
|
+
export class LangCodeNotSupported extends BadRequest {
|
|
1193
|
+
id = 'LANG_CODE_NOT_SUPPORTED';
|
|
1194
|
+
message = 'The specified language code is not supported.';
|
|
1195
|
+
}
|
|
1196
|
+
export class LangPackInvalid extends BadRequest {
|
|
1197
|
+
id = 'LANG_PACK_INVALID';
|
|
1198
|
+
message = 'The provided language pack is invalid.';
|
|
1199
|
+
}
|
|
1200
|
+
export class LastnameInvalid extends BadRequest {
|
|
1201
|
+
id = 'LASTNAME_INVALID';
|
|
1202
|
+
message = 'The last name is invalid.';
|
|
1203
|
+
}
|
|
1204
|
+
export class LimitInvalid extends BadRequest {
|
|
1205
|
+
id = 'LIMIT_INVALID';
|
|
1206
|
+
message = 'The provided limit is invalid.';
|
|
1207
|
+
}
|
|
1208
|
+
export class LinkNotModified extends BadRequest {
|
|
1209
|
+
id = 'LINK_NOT_MODIFIED';
|
|
1210
|
+
message = 'Discussion link not modified.';
|
|
1211
|
+
}
|
|
1212
|
+
export class LocationInvalid extends BadRequest {
|
|
1213
|
+
id = 'LOCATION_INVALID';
|
|
1214
|
+
message = 'The provided location is invalid.';
|
|
1215
|
+
}
|
|
1216
|
+
export class MaxDateInvalid extends BadRequest {
|
|
1217
|
+
id = 'MAX_DATE_INVALID';
|
|
1218
|
+
message = 'The specified maximum date is invalid.';
|
|
1219
|
+
}
|
|
1220
|
+
export class MaxIdInvalid extends BadRequest {
|
|
1221
|
+
id = 'MAX_ID_INVALID';
|
|
1222
|
+
message = 'The provided max ID is invalid.';
|
|
1223
|
+
}
|
|
1224
|
+
export class MaxQtsInvalid extends BadRequest {
|
|
1225
|
+
id = 'MAX_QTS_INVALID';
|
|
1226
|
+
message = 'The specified max_qts is invalid.';
|
|
1227
|
+
}
|
|
1228
|
+
export class Md5ChecksumInvalid extends BadRequest {
|
|
1229
|
+
id = 'MD5_CHECKSUM_INVALID';
|
|
1230
|
+
message = 'The MD5 checksums do not match.';
|
|
1231
|
+
}
|
|
1232
|
+
export class MediaAlreadyPaid extends BadRequest {
|
|
1233
|
+
id = 'MEDIA_ALREADY_PAID';
|
|
1234
|
+
message = 'You already paid for the specified media.';
|
|
1235
|
+
}
|
|
1236
|
+
export class MediaCaptionTooLong extends BadRequest {
|
|
1237
|
+
id = 'MEDIA_CAPTION_TOO_LONG';
|
|
1238
|
+
message = 'The caption is too long.';
|
|
1239
|
+
}
|
|
1240
|
+
export class MediaEmpty extends BadRequest {
|
|
1241
|
+
id = 'MEDIA_EMPTY';
|
|
1242
|
+
message = 'The provided media object is invalid.';
|
|
1243
|
+
}
|
|
1244
|
+
export class MediaFileInvalid extends BadRequest {
|
|
1245
|
+
id = 'MEDIA_FILE_INVALID';
|
|
1246
|
+
message = 'The specified media file is invalid.';
|
|
1247
|
+
}
|
|
1248
|
+
export class MediaGroupedInvalid extends BadRequest {
|
|
1249
|
+
id = 'MEDIA_GROUPED_INVALID';
|
|
1250
|
+
message = 'You tried to send media of different types in an album.';
|
|
1251
|
+
}
|
|
1252
|
+
export class MediaInvalid extends BadRequest {
|
|
1253
|
+
id = 'MEDIA_INVALID';
|
|
1254
|
+
message = 'Media invalid.';
|
|
1255
|
+
}
|
|
1256
|
+
export class MediaNewInvalid extends BadRequest {
|
|
1257
|
+
id = 'MEDIA_NEW_INVALID';
|
|
1258
|
+
message = 'The new media is invalid.';
|
|
1259
|
+
}
|
|
1260
|
+
export class MediaPrevInvalid extends BadRequest {
|
|
1261
|
+
id = 'MEDIA_PREV_INVALID';
|
|
1262
|
+
message = 'Previous media invalid.';
|
|
1263
|
+
}
|
|
1264
|
+
export class MediaTtlInvalid extends BadRequest {
|
|
1265
|
+
id = 'MEDIA_TTL_INVALID';
|
|
1266
|
+
message = 'The specified media TTL is invalid.';
|
|
1267
|
+
}
|
|
1268
|
+
export class MediaTypeInvalid extends BadRequest {
|
|
1269
|
+
id = 'MEDIA_TYPE_INVALID';
|
|
1270
|
+
message = 'The specified media type cannot be used in stories.';
|
|
1271
|
+
}
|
|
1272
|
+
export class MediaVideoStoryMissing extends BadRequest {
|
|
1273
|
+
id = 'MEDIA_VIDEO_STORY_MISSING';
|
|
1274
|
+
message = 'A non-story video cannot be repubblished as a story (emitted when trying to resend a non-story video as a story using inputDocument).';
|
|
1275
|
+
}
|
|
1276
|
+
export class MegagroupGeoRequired extends BadRequest {
|
|
1277
|
+
id = 'MEGAGROUP_GEO_REQUIRED';
|
|
1278
|
+
message = 'This method can only be invoked on a geogroup.';
|
|
1279
|
+
}
|
|
1280
|
+
export class MegagroupIdInvalid extends BadRequest {
|
|
1281
|
+
id = 'MEGAGROUP_ID_INVALID';
|
|
1282
|
+
message = 'Invalid supergroup ID.';
|
|
1283
|
+
}
|
|
1284
|
+
export class MegagroupPrehistoryHidden extends BadRequest {
|
|
1285
|
+
id = 'MEGAGROUP_PREHISTORY_HIDDEN';
|
|
1286
|
+
message = "Group with hidden history for new members can't be set as discussion groups.";
|
|
1287
|
+
}
|
|
1288
|
+
export class MegagroupRequired extends BadRequest {
|
|
1289
|
+
id = 'MEGAGROUP_REQUIRED';
|
|
1290
|
+
message = 'You can only use this method on a supergroup.';
|
|
1291
|
+
}
|
|
1292
|
+
export class MessageEditTimeExpired extends BadRequest {
|
|
1293
|
+
id = 'MESSAGE_EDIT_TIME_EXPIRED';
|
|
1294
|
+
message = "You can't edit this message anymore, too much time has passed since its creation.";
|
|
1295
|
+
}
|
|
1296
|
+
export class MessageEmpty extends BadRequest {
|
|
1297
|
+
id = 'MESSAGE_EMPTY';
|
|
1298
|
+
message = 'The provided message is empty.';
|
|
1299
|
+
}
|
|
1300
|
+
export class MessageIdsEmpty extends BadRequest {
|
|
1301
|
+
id = 'MESSAGE_IDS_EMPTY';
|
|
1302
|
+
message = 'No message ids were provided.';
|
|
1303
|
+
}
|
|
1304
|
+
export class MessageIdInvalid extends BadRequest {
|
|
1305
|
+
id = 'MESSAGE_ID_INVALID';
|
|
1306
|
+
message = 'The provided message id is invalid.';
|
|
1307
|
+
}
|
|
1308
|
+
export class MessageNotModified extends BadRequest {
|
|
1309
|
+
id = 'MESSAGE_NOT_MODIFIED';
|
|
1310
|
+
message = "The provided message data is identical to the previous message data, the message wasn't modified.";
|
|
1311
|
+
}
|
|
1312
|
+
export class MessageNotReadYet extends BadRequest {
|
|
1313
|
+
id = 'MESSAGE_NOT_READ_YET';
|
|
1314
|
+
message = "The specified message wasn't read yet.";
|
|
1315
|
+
}
|
|
1316
|
+
export class MessagePollClosed extends BadRequest {
|
|
1317
|
+
id = 'MESSAGE_POLL_CLOSED';
|
|
1318
|
+
message = 'Poll closed.';
|
|
1319
|
+
}
|
|
1320
|
+
export class MessageRequired extends BadRequest {
|
|
1321
|
+
id = 'MESSAGE_REQUIRED';
|
|
1322
|
+
message = '';
|
|
1323
|
+
}
|
|
1324
|
+
export class MessageTooLong extends BadRequest {
|
|
1325
|
+
id = 'MESSAGE_TOO_LONG';
|
|
1326
|
+
message = 'The provided message is too long.';
|
|
1327
|
+
}
|
|
1328
|
+
export class MessageTooOld extends BadRequest {
|
|
1329
|
+
id = 'MESSAGE_TOO_OLD';
|
|
1330
|
+
message = 'The message is too old, the requested information is not available.';
|
|
1331
|
+
}
|
|
1332
|
+
export class MethodInvalid extends BadRequest {
|
|
1333
|
+
id = 'METHOD_INVALID';
|
|
1334
|
+
message = 'The specified method is invalid.';
|
|
1335
|
+
}
|
|
1336
|
+
export class MinDateInvalid extends BadRequest {
|
|
1337
|
+
id = 'MIN_DATE_INVALID';
|
|
1338
|
+
message = 'The specified minimum date is invalid.';
|
|
1339
|
+
}
|
|
1340
|
+
export class MonthInvalid extends BadRequest {
|
|
1341
|
+
id = 'MONTH_INVALID';
|
|
1342
|
+
message = 'The number of months specified in inputInvoicePremiumGiftStars.months is invalid.';
|
|
1343
|
+
}
|
|
1344
|
+
export class MsgIdInvalid extends BadRequest {
|
|
1345
|
+
id = 'MSG_ID_INVALID';
|
|
1346
|
+
message = 'Invalid message ID provided.';
|
|
1347
|
+
}
|
|
1348
|
+
export class MsgTooOld extends BadRequest {
|
|
1349
|
+
id = 'MSG_TOO_OLD';
|
|
1350
|
+
message = '[`chat_read_mark_expire_period` seconds](https://core.telegram.org/api/config#chat-read-mark-expire-period) have passed since the message was sent, read receipts were deleted.';
|
|
1351
|
+
}
|
|
1352
|
+
export class MsgVoiceMissing extends BadRequest {
|
|
1353
|
+
id = 'MSG_VOICE_MISSING';
|
|
1354
|
+
message = 'The specified message is not a voice message.';
|
|
1355
|
+
}
|
|
1356
|
+
export class MsgWaitFailed extends BadRequest {
|
|
1357
|
+
id = 'MSG_WAIT_FAILED';
|
|
1358
|
+
message = 'A waiting call returned an error.';
|
|
1359
|
+
}
|
|
1360
|
+
export class MultiMediaTooLong extends BadRequest {
|
|
1361
|
+
id = 'MULTI_MEDIA_TOO_LONG';
|
|
1362
|
+
message = 'Too many media files for album.';
|
|
1363
|
+
}
|
|
1364
|
+
export class NeedActionMissing extends BadRequest {
|
|
1365
|
+
id = 'NEED_ACTION_MISSING';
|
|
1366
|
+
message = '';
|
|
1367
|
+
}
|
|
1368
|
+
export class NewSaltInvalid extends BadRequest {
|
|
1369
|
+
id = 'NEW_SALT_INVALID';
|
|
1370
|
+
message = 'The new salt is invalid.';
|
|
1371
|
+
}
|
|
1372
|
+
export class NewSettingsEmpty extends BadRequest {
|
|
1373
|
+
id = 'NEW_SETTINGS_EMPTY';
|
|
1374
|
+
message = 'No password is set on the current account, and no new password was specified in `new_settings`.';
|
|
1375
|
+
}
|
|
1376
|
+
export class NewSettingsInvalid extends BadRequest {
|
|
1377
|
+
id = 'NEW_SETTINGS_INVALID';
|
|
1378
|
+
message = 'The new password settings are invalid.';
|
|
1379
|
+
}
|
|
1380
|
+
export class NextOffsetInvalid extends BadRequest {
|
|
1381
|
+
id = 'NEXT_OFFSET_INVALID';
|
|
1382
|
+
message = 'The specified offset is longer than 64 bytes.';
|
|
1383
|
+
}
|
|
1384
|
+
export class NogeneralHideForbidden extends BadRequest {
|
|
1385
|
+
id = 'NOGENERAL_HIDE_FORBIDDEN';
|
|
1386
|
+
message = 'Only the "General" topic with `id=1` can be hidden.';
|
|
1387
|
+
}
|
|
1388
|
+
export class NotEligible extends BadRequest {
|
|
1389
|
+
id = 'NOT_ELIGIBLE';
|
|
1390
|
+
message = 'The current user is not eligible to join the Peer-to-Peer Login Program.';
|
|
1391
|
+
}
|
|
1392
|
+
export class NotJoined extends BadRequest {
|
|
1393
|
+
id = 'NOT_JOINED';
|
|
1394
|
+
message = "The current user hasn't joined the Peer-to-Peer Login Program.";
|
|
1395
|
+
}
|
|
1396
|
+
export class NoPaymentNeeded extends BadRequest {
|
|
1397
|
+
id = 'NO_PAYMENT_NEEDED';
|
|
1398
|
+
message = 'The upgrade/transfer of the specified gift was already paid for or is free.';
|
|
1399
|
+
}
|
|
1400
|
+
export class OffsetInvalid extends BadRequest {
|
|
1401
|
+
id = 'OFFSET_INVALID';
|
|
1402
|
+
message = 'The provided offset is invalid.';
|
|
1403
|
+
}
|
|
1404
|
+
export class OffsetPeerIdInvalid extends BadRequest {
|
|
1405
|
+
id = 'OFFSET_PEER_ID_INVALID';
|
|
1406
|
+
message = 'The provided offset peer is invalid.';
|
|
1407
|
+
}
|
|
1408
|
+
export class OptionsTooMuch extends BadRequest {
|
|
1409
|
+
id = 'OPTIONS_TOO_MUCH';
|
|
1410
|
+
message = 'Too many options provided.';
|
|
1411
|
+
}
|
|
1412
|
+
export class OptionInvalid extends BadRequest {
|
|
1413
|
+
id = 'OPTION_INVALID';
|
|
1414
|
+
message = 'Invalid option selected.';
|
|
1415
|
+
}
|
|
1416
|
+
export class OrderInvalid extends BadRequest {
|
|
1417
|
+
id = 'ORDER_INVALID';
|
|
1418
|
+
message = 'The specified username order is invalid.';
|
|
1419
|
+
}
|
|
1420
|
+
export class PackShortNameInvalid extends BadRequest {
|
|
1421
|
+
id = 'PACK_SHORT_NAME_INVALID';
|
|
1422
|
+
message = 'Short pack name invalid.';
|
|
1423
|
+
}
|
|
1424
|
+
export class PackShortNameOccupied extends BadRequest {
|
|
1425
|
+
id = 'PACK_SHORT_NAME_OCCUPIED';
|
|
1426
|
+
message = 'A stickerpack with this name already exists.';
|
|
1427
|
+
}
|
|
1428
|
+
export class PackTitleInvalid extends BadRequest {
|
|
1429
|
+
id = 'PACK_TITLE_INVALID';
|
|
1430
|
+
message = 'The stickerpack title is invalid.';
|
|
1431
|
+
}
|
|
1432
|
+
export class PackTypeInvalid extends BadRequest {
|
|
1433
|
+
id = 'PACK_TYPE_INVALID';
|
|
1434
|
+
message = 'The masks and emojis flags are mutually exclusive.';
|
|
1435
|
+
}
|
|
1436
|
+
export class ParentPeerInvalid extends BadRequest {
|
|
1437
|
+
id = 'PARENT_PEER_INVALID';
|
|
1438
|
+
message = 'The specified `parent_peer` is invalid.';
|
|
1439
|
+
}
|
|
1440
|
+
export class ParticipantsTooFew extends BadRequest {
|
|
1441
|
+
id = 'PARTICIPANTS_TOO_FEW';
|
|
1442
|
+
message = 'Not enough participants.';
|
|
1443
|
+
}
|
|
1444
|
+
export class ParticipantIdInvalid extends BadRequest {
|
|
1445
|
+
id = 'PARTICIPANT_ID_INVALID';
|
|
1446
|
+
message = 'The specified participant ID is invalid.';
|
|
1447
|
+
}
|
|
1448
|
+
export class ParticipantJoinMissing extends BadRequest {
|
|
1449
|
+
id = 'PARTICIPANT_JOIN_MISSING';
|
|
1450
|
+
message = "Trying to enable a presentation, when the user hasn't joined the Video Chat with [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall).";
|
|
1451
|
+
}
|
|
1452
|
+
export class ParticipantVersionOutdated extends BadRequest {
|
|
1453
|
+
id = 'PARTICIPANT_VERSION_OUTDATED';
|
|
1454
|
+
message = 'The other participant does not use an up to date telegram client with support for calls.';
|
|
1455
|
+
}
|
|
1456
|
+
export class PasswordEmpty extends BadRequest {
|
|
1457
|
+
id = 'PASSWORD_EMPTY';
|
|
1458
|
+
message = 'The provided password is empty.';
|
|
1459
|
+
}
|
|
1460
|
+
export class PasswordHashInvalid extends BadRequest {
|
|
1461
|
+
id = 'PASSWORD_HASH_INVALID';
|
|
1462
|
+
message = 'The provided password hash is invalid.';
|
|
1463
|
+
}
|
|
1464
|
+
export class PasswordMissing extends BadRequest {
|
|
1465
|
+
id = 'PASSWORD_MISSING';
|
|
1466
|
+
message = 'You must [enable 2FA](https://core.telegram.org/api/srp) before executing this operation.';
|
|
1467
|
+
}
|
|
1468
|
+
export class PasswordRecoveryExpired extends BadRequest {
|
|
1469
|
+
id = 'PASSWORD_RECOVERY_EXPIRED';
|
|
1470
|
+
message = 'The recovery code has expired.';
|
|
1471
|
+
}
|
|
1472
|
+
export class PasswordRecoveryNa extends BadRequest {
|
|
1473
|
+
id = 'PASSWORD_RECOVERY_NA';
|
|
1474
|
+
message = "No email was set, can't recover password via email.";
|
|
1475
|
+
}
|
|
1476
|
+
export class PasswordRequired extends BadRequest {
|
|
1477
|
+
id = 'PASSWORD_REQUIRED';
|
|
1478
|
+
message = 'A [2FA password](https://core.telegram.org/api/srp) must be configured to use Telegram Passport.';
|
|
1479
|
+
}
|
|
1480
|
+
export class PasswordTooFresh extends BadRequest {
|
|
1481
|
+
id = 'PASSWORD_TOO_FRESH_X';
|
|
1482
|
+
message = 'The password was modified less than 24 hours ago, try again in {value} seconds.';
|
|
1483
|
+
}
|
|
1484
|
+
export class PaymentCredentialsInvalid extends BadRequest {
|
|
1485
|
+
id = 'PAYMENT_CREDENTIALS_INVALID';
|
|
1486
|
+
message = 'The specified payment credentials are invalid.';
|
|
1487
|
+
}
|
|
1488
|
+
export class PaymentProviderInvalid extends BadRequest {
|
|
1489
|
+
id = 'PAYMENT_PROVIDER_INVALID';
|
|
1490
|
+
message = 'The specified payment provider is invalid.';
|
|
1491
|
+
}
|
|
1492
|
+
export class PaymentRequired extends BadRequest {
|
|
1493
|
+
id = 'PAYMENT_REQUIRED';
|
|
1494
|
+
message = 'Payment is required for this action, see [here »](https://core.telegram.org/api/gifts) for more info.';
|
|
1495
|
+
}
|
|
1496
|
+
export class PeersListEmpty extends BadRequest {
|
|
1497
|
+
id = 'PEERS_LIST_EMPTY';
|
|
1498
|
+
message = 'The specified list of peers is empty.';
|
|
1499
|
+
}
|
|
1500
|
+
export class PeerFlood extends BadRequest {
|
|
1501
|
+
id = 'PEER_FLOOD';
|
|
1502
|
+
message = 'The current account is spamreported, you cannot execute this action, check @spambot for more info.';
|
|
1503
|
+
}
|
|
1504
|
+
export class PeerHistoryEmpty extends BadRequest {
|
|
1505
|
+
id = 'PEER_HISTORY_EMPTY';
|
|
1506
|
+
message = "You can't pin an empty chat with a user.";
|
|
1507
|
+
}
|
|
1508
|
+
export class PeerIdInvalid extends BadRequest {
|
|
1509
|
+
id = 'PEER_ID_INVALID';
|
|
1510
|
+
message = 'The provided peer id is invalid.';
|
|
1511
|
+
}
|
|
1512
|
+
export class PeerIdNotSupported extends BadRequest {
|
|
1513
|
+
id = 'PEER_ID_NOT_SUPPORTED';
|
|
1514
|
+
message = 'The provided peer ID is not supported.';
|
|
1515
|
+
}
|
|
1516
|
+
export class PeerTypesInvalid extends BadRequest {
|
|
1517
|
+
id = 'PEER_TYPES_INVALID';
|
|
1518
|
+
message = 'The passed [keyboardButtonSwitchInline](https://core.telegram.org/constructor/keyboardButtonSwitchInline).`peer_types` field is invalid.';
|
|
1519
|
+
}
|
|
1520
|
+
export class PersistentTimestampEmpty extends BadRequest {
|
|
1521
|
+
id = 'PERSISTENT_TIMESTAMP_EMPTY';
|
|
1522
|
+
message = 'Persistent timestamp empty.';
|
|
1523
|
+
}
|
|
1524
|
+
export class PersistentTimestampInvalid extends BadRequest {
|
|
1525
|
+
id = 'PERSISTENT_TIMESTAMP_INVALID';
|
|
1526
|
+
message = 'Persistent timestamp invalid.';
|
|
1527
|
+
}
|
|
1528
|
+
export class PhoneCodeEmpty extends BadRequest {
|
|
1529
|
+
id = 'PHONE_CODE_EMPTY';
|
|
1530
|
+
message = 'phone_code is missing.';
|
|
1531
|
+
}
|
|
1532
|
+
export class PhoneCodeExpired extends BadRequest {
|
|
1533
|
+
id = 'PHONE_CODE_EXPIRED';
|
|
1534
|
+
message = 'The phone code you provided has expired.';
|
|
1535
|
+
}
|
|
1536
|
+
export class PhoneCodeHashEmpty extends BadRequest {
|
|
1537
|
+
id = 'PHONE_CODE_HASH_EMPTY';
|
|
1538
|
+
message = 'phone_code_hash is missing.';
|
|
1539
|
+
}
|
|
1540
|
+
export class PhoneCodeInvalid extends BadRequest {
|
|
1541
|
+
id = 'PHONE_CODE_INVALID';
|
|
1542
|
+
message = 'The provided phone code is invalid.';
|
|
1543
|
+
}
|
|
1544
|
+
export class PhoneHashExpired extends BadRequest {
|
|
1545
|
+
id = 'PHONE_HASH_EXPIRED';
|
|
1546
|
+
message = 'An invalid or expired `phone_code_hash` was provided.';
|
|
1547
|
+
}
|
|
1548
|
+
export class PhoneNotOccupied extends BadRequest {
|
|
1549
|
+
id = 'PHONE_NOT_OCCUPIED';
|
|
1550
|
+
message = 'No user is associated to the specified phone number.';
|
|
1551
|
+
}
|
|
1552
|
+
export class PhoneNumberAppSignupForbidden extends BadRequest {
|
|
1553
|
+
id = 'PHONE_NUMBER_APP_SIGNUP_FORBIDDEN';
|
|
1554
|
+
message = "You can't sign up using this app.";
|
|
1555
|
+
}
|
|
1556
|
+
export class PhoneNumberBanned extends BadRequest {
|
|
1557
|
+
id = 'PHONE_NUMBER_BANNED';
|
|
1558
|
+
message = 'The provided phone number is banned from telegram.';
|
|
1559
|
+
}
|
|
1560
|
+
export class PhoneNumberFlood extends BadRequest {
|
|
1561
|
+
id = 'PHONE_NUMBER_FLOOD';
|
|
1562
|
+
message = 'You asked for the code too many times.';
|
|
1563
|
+
}
|
|
1564
|
+
export class PhoneNumberInvalid extends BadRequest {
|
|
1565
|
+
id = 'PHONE_NUMBER_INVALID';
|
|
1566
|
+
message = 'The phone number is invalid.';
|
|
1567
|
+
}
|
|
1568
|
+
export class PhoneNumberOccupied extends BadRequest {
|
|
1569
|
+
id = 'PHONE_NUMBER_OCCUPIED';
|
|
1570
|
+
message = 'The phone number is already in use.';
|
|
1571
|
+
}
|
|
1572
|
+
export class PhoneNumberUnoccupied extends BadRequest {
|
|
1573
|
+
id = 'PHONE_NUMBER_UNOCCUPIED';
|
|
1574
|
+
message = 'The phone number is not yet being used.';
|
|
1575
|
+
}
|
|
1576
|
+
export class PhonePasswordProtected extends BadRequest {
|
|
1577
|
+
id = 'PHONE_PASSWORD_PROTECTED';
|
|
1578
|
+
message = 'This phone is password protected.';
|
|
1579
|
+
}
|
|
1580
|
+
export class PhotoContentTypeInvalid extends BadRequest {
|
|
1581
|
+
id = 'PHOTO_CONTENT_TYPE_INVALID';
|
|
1582
|
+
message = 'Photo mime-type invalid.';
|
|
1583
|
+
}
|
|
1584
|
+
export class PhotoContentUrlEmpty extends BadRequest {
|
|
1585
|
+
id = 'PHOTO_CONTENT_URL_EMPTY';
|
|
1586
|
+
message = 'Photo URL invalid.';
|
|
1587
|
+
}
|
|
1588
|
+
export class PhotoCropFileMissing extends BadRequest {
|
|
1589
|
+
id = 'PHOTO_CROP_FILE_MISSING';
|
|
1590
|
+
message = 'Photo crop file missing.';
|
|
1591
|
+
}
|
|
1592
|
+
export class PhotoCropSizeSmall extends BadRequest {
|
|
1593
|
+
id = 'PHOTO_CROP_SIZE_SMALL';
|
|
1594
|
+
message = 'Photo is too small.';
|
|
1595
|
+
}
|
|
1596
|
+
export class PhotoExtInvalid extends BadRequest {
|
|
1597
|
+
id = 'PHOTO_EXT_INVALID';
|
|
1598
|
+
message = 'The extension of the photo is invalid.';
|
|
1599
|
+
}
|
|
1600
|
+
export class PhotoFileMissing extends BadRequest {
|
|
1601
|
+
id = 'PHOTO_FILE_MISSING';
|
|
1602
|
+
message = 'Profile photo file missing.';
|
|
1603
|
+
}
|
|
1604
|
+
export class PhotoIdInvalid extends BadRequest {
|
|
1605
|
+
id = 'PHOTO_ID_INVALID';
|
|
1606
|
+
message = 'Photo ID invalid.';
|
|
1607
|
+
}
|
|
1608
|
+
export class PhotoInvalid extends BadRequest {
|
|
1609
|
+
id = 'PHOTO_INVALID';
|
|
1610
|
+
message = 'Photo invalid.';
|
|
1611
|
+
}
|
|
1612
|
+
export class PhotoInvalidDimensions extends BadRequest {
|
|
1613
|
+
id = 'PHOTO_INVALID_DIMENSIONS';
|
|
1614
|
+
message = 'The photo dimensions are invalid.';
|
|
1615
|
+
}
|
|
1616
|
+
export class PhotoSaveFileInvalid extends BadRequest {
|
|
1617
|
+
id = 'PHOTO_SAVE_FILE_INVALID';
|
|
1618
|
+
message = 'Internal issues, try again later.';
|
|
1619
|
+
}
|
|
1620
|
+
export class PhotoThumbUrlEmpty extends BadRequest {
|
|
1621
|
+
id = 'PHOTO_THUMB_URL_EMPTY';
|
|
1622
|
+
message = 'Photo thumbnail URL is empty.';
|
|
1623
|
+
}
|
|
1624
|
+
export class PhotoThumbUrlInvalid extends BadRequest {
|
|
1625
|
+
id = 'PHOTO_THUMB_URL_INVALID';
|
|
1626
|
+
message = 'The photo thumb URL is invalid';
|
|
1627
|
+
}
|
|
1628
|
+
export class PinnedDialogsTooMuch extends BadRequest {
|
|
1629
|
+
id = 'PINNED_DIALOGS_TOO_MUCH';
|
|
1630
|
+
message = 'Too many pinned dialogs.';
|
|
1631
|
+
}
|
|
1632
|
+
export class PinnedTooMuch extends BadRequest {
|
|
1633
|
+
id = 'PINNED_TOO_MUCH';
|
|
1634
|
+
message = 'There are too many pinned topics, unpin some first.';
|
|
1635
|
+
}
|
|
1636
|
+
export class PinnedTopicNotModified extends BadRequest {
|
|
1637
|
+
id = 'PINNED_TOPIC_NOT_MODIFIED';
|
|
1638
|
+
message = '';
|
|
1639
|
+
}
|
|
1640
|
+
export class PinRestricted extends BadRequest {
|
|
1641
|
+
id = 'PIN_RESTRICTED';
|
|
1642
|
+
message = "You can't pin messages.";
|
|
1643
|
+
}
|
|
1644
|
+
export class PollAnswersInvalid extends BadRequest {
|
|
1645
|
+
id = 'POLL_ANSWERS_INVALID';
|
|
1646
|
+
message = 'Invalid poll answers were provided.';
|
|
1647
|
+
}
|
|
1648
|
+
export class PollAnswerInvalid extends BadRequest {
|
|
1649
|
+
id = 'POLL_ANSWER_INVALID';
|
|
1650
|
+
message = 'One of the poll answers is not acceptable.';
|
|
1651
|
+
}
|
|
1652
|
+
export class PollOptionDuplicate extends BadRequest {
|
|
1653
|
+
id = 'POLL_OPTION_DUPLICATE';
|
|
1654
|
+
message = 'Duplicate poll options provided.';
|
|
1655
|
+
}
|
|
1656
|
+
export class PollOptionInvalid extends BadRequest {
|
|
1657
|
+
id = 'POLL_OPTION_INVALID';
|
|
1658
|
+
message = 'Invalid poll option provided.';
|
|
1659
|
+
}
|
|
1660
|
+
export class PollQuestionInvalid extends BadRequest {
|
|
1661
|
+
id = 'POLL_QUESTION_INVALID';
|
|
1662
|
+
message = 'One of the poll questions is not acceptable.';
|
|
1663
|
+
}
|
|
1664
|
+
export class PollUnsupported extends BadRequest {
|
|
1665
|
+
id = 'POLL_UNSUPPORTED';
|
|
1666
|
+
message = 'This layer does not support polls in the invoked method';
|
|
1667
|
+
}
|
|
1668
|
+
export class PollVoteRequired extends BadRequest {
|
|
1669
|
+
id = 'POLL_VOTE_REQUIRED';
|
|
1670
|
+
message = 'Cast a vote in the poll before calling this method';
|
|
1671
|
+
}
|
|
1672
|
+
export class PremiumAccountRequired extends BadRequest {
|
|
1673
|
+
id = 'PREMIUM_ACCOUNT_REQUIRED';
|
|
1674
|
+
message = 'A premium account is required to execute this action.';
|
|
1675
|
+
}
|
|
1676
|
+
export class PremiumPurposeInvalid extends BadRequest {
|
|
1677
|
+
id = 'PREMIUM_PURPOSE_INVALID';
|
|
1678
|
+
message = '';
|
|
1679
|
+
}
|
|
1680
|
+
export class PricingChatInvalid extends BadRequest {
|
|
1681
|
+
id = 'PRICING_CHAT_INVALID';
|
|
1682
|
+
message = 'The pricing for the [subscription](https://core.telegram.org/api/subscriptions) is invalid, the maximum price is specified in the [`stars_subscription_amount_max` config key »](https://core.telegram.org/api/config#stars-subscription-amount-max).';
|
|
1683
|
+
}
|
|
1684
|
+
export class PrivacyKeyInvalid extends BadRequest {
|
|
1685
|
+
id = 'PRIVACY_KEY_INVALID';
|
|
1686
|
+
message = 'The privacy key is invalid.';
|
|
1687
|
+
}
|
|
1688
|
+
export class PrivacyTooLong extends BadRequest {
|
|
1689
|
+
id = 'PRIVACY_TOO_LONG';
|
|
1690
|
+
message = 'Too many privacy rules were specified, the current limit is 1000.';
|
|
1691
|
+
}
|
|
1692
|
+
export class PrivacyValueInvalid extends BadRequest {
|
|
1693
|
+
id = 'PRIVACY_VALUE_INVALID';
|
|
1694
|
+
message = 'The specified privacy rule combination is invalid.';
|
|
1695
|
+
}
|
|
1696
|
+
export class PublicKeyRequired extends BadRequest {
|
|
1697
|
+
id = 'PUBLIC_KEY_REQUIRED';
|
|
1698
|
+
message = 'A public key is required.';
|
|
1699
|
+
}
|
|
1700
|
+
export class PurposeInvalid extends BadRequest {
|
|
1701
|
+
id = 'PURPOSE_INVALID';
|
|
1702
|
+
message = 'The specified payment purpose is invalid.';
|
|
1703
|
+
}
|
|
1704
|
+
export class QueryIdEmpty extends BadRequest {
|
|
1705
|
+
id = 'QUERY_ID_EMPTY';
|
|
1706
|
+
message = 'The query ID is empty.';
|
|
1707
|
+
}
|
|
1708
|
+
export class QueryIdInvalid extends BadRequest {
|
|
1709
|
+
id = 'QUERY_ID_INVALID';
|
|
1710
|
+
message = 'The query ID is invalid.';
|
|
1711
|
+
}
|
|
1712
|
+
export class QueryTooShort extends BadRequest {
|
|
1713
|
+
id = 'QUERY_TOO_SHORT';
|
|
1714
|
+
message = 'The query string is too short.';
|
|
1715
|
+
}
|
|
1716
|
+
export class QuickRepliesBotNotAllowed extends BadRequest {
|
|
1717
|
+
id = 'QUICK_REPLIES_BOT_NOT_ALLOWED';
|
|
1718
|
+
message = '[Quick replies](https://core.telegram.org/api/business#quick-reply-shortcuts) cannot be used by bots.';
|
|
1719
|
+
}
|
|
1720
|
+
export class QuickRepliesTooMuch extends BadRequest {
|
|
1721
|
+
id = 'QUICK_REPLIES_TOO_MUCH';
|
|
1722
|
+
message = 'A maximum of [appConfig.`quick_replies_limit`](https://core.telegram.org/api/config#quick-replies-limit) shortcuts may be created, the limit was reached.';
|
|
1723
|
+
}
|
|
1724
|
+
export class QuizAnswerMissing extends BadRequest {
|
|
1725
|
+
id = 'QUIZ_ANSWER_MISSING';
|
|
1726
|
+
message = 'You can forward a quiz while hiding the original author only after choosing an option in the quiz.';
|
|
1727
|
+
}
|
|
1728
|
+
export class QuizCorrectAnswersEmpty extends BadRequest {
|
|
1729
|
+
id = 'QUIZ_CORRECT_ANSWERS_EMPTY';
|
|
1730
|
+
message = 'No correct quiz answer was specified.';
|
|
1731
|
+
}
|
|
1732
|
+
export class QuizCorrectAnswersTooMuch extends BadRequest {
|
|
1733
|
+
id = 'QUIZ_CORRECT_ANSWERS_TOO_MUCH';
|
|
1734
|
+
message = 'You specified too many correct answers in a quiz, quizzes can only have one right answer!';
|
|
1735
|
+
}
|
|
1736
|
+
export class QuizCorrectAnswerInvalid extends BadRequest {
|
|
1737
|
+
id = 'QUIZ_CORRECT_ANSWER_INVALID';
|
|
1738
|
+
message = 'An invalid value was provided to the correct_answers field.';
|
|
1739
|
+
}
|
|
1740
|
+
export class QuizMultipleInvalid extends BadRequest {
|
|
1741
|
+
id = 'QUIZ_MULTIPLE_INVALID';
|
|
1742
|
+
message = "Quizzes can't have the multiple_choice flag set!";
|
|
1743
|
+
}
|
|
1744
|
+
export class QuoteTextInvalid extends BadRequest {
|
|
1745
|
+
id = 'QUOTE_TEXT_INVALID';
|
|
1746
|
+
message = 'The specified `reply_to`.`quote_text` field is invalid.';
|
|
1747
|
+
}
|
|
1748
|
+
export class RaiseHandForbidden extends BadRequest {
|
|
1749
|
+
id = 'RAISE_HAND_FORBIDDEN';
|
|
1750
|
+
message = 'You cannot raise your hand.';
|
|
1751
|
+
}
|
|
1752
|
+
export class RandomIdEmpty extends BadRequest {
|
|
1753
|
+
id = 'RANDOM_ID_EMPTY';
|
|
1754
|
+
message = 'Random ID empty.';
|
|
1755
|
+
}
|
|
1756
|
+
export class RandomIdExpired extends BadRequest {
|
|
1757
|
+
id = 'RANDOM_ID_EXPIRED';
|
|
1758
|
+
message = "The specified `random_id` was expired (most likely it didn't follow the required `uint64_t random_id = (time() << 32) | ((uint64_t)random_uint32_t())` format, or the specified time is too far in the past).";
|
|
1759
|
+
}
|
|
1760
|
+
export class RandomIdInvalid extends BadRequest {
|
|
1761
|
+
id = 'RANDOM_ID_INVALID';
|
|
1762
|
+
message = 'A provided random ID is invalid.';
|
|
1763
|
+
}
|
|
1764
|
+
export class RandomLengthInvalid extends BadRequest {
|
|
1765
|
+
id = 'RANDOM_LENGTH_INVALID';
|
|
1766
|
+
message = 'Random length invalid.';
|
|
1767
|
+
}
|
|
1768
|
+
export class RangesInvalid extends BadRequest {
|
|
1769
|
+
id = 'RANGES_INVALID';
|
|
1770
|
+
message = 'Invalid range provided.';
|
|
1771
|
+
}
|
|
1772
|
+
export class ReactionsCountInvalid extends BadRequest {
|
|
1773
|
+
id = 'REACTIONS_COUNT_INVALID';
|
|
1774
|
+
message = 'The specified number of reactions is invalid.';
|
|
1775
|
+
}
|
|
1776
|
+
export class ReactionsTooMany extends BadRequest {
|
|
1777
|
+
id = 'REACTIONS_TOO_MANY';
|
|
1778
|
+
message = "The message already has exactly `reactions_uniq_max` reaction emojis, you can't react with a new emoji, see [the docs for more info »](https://core.telegram.org/api/config#client-configuration).";
|
|
1779
|
+
}
|
|
1780
|
+
export class ReactionEmpty extends BadRequest {
|
|
1781
|
+
id = 'REACTION_EMPTY';
|
|
1782
|
+
message = 'Empty reaction provided.';
|
|
1783
|
+
}
|
|
1784
|
+
export class ReactionInvalid extends BadRequest {
|
|
1785
|
+
id = 'REACTION_INVALID';
|
|
1786
|
+
message = 'The specified reaction is invalid.';
|
|
1787
|
+
}
|
|
1788
|
+
export class ReceiptEmpty extends BadRequest {
|
|
1789
|
+
id = 'RECEIPT_EMPTY';
|
|
1790
|
+
message = 'The specified receipt is empty.';
|
|
1791
|
+
}
|
|
1792
|
+
export class ReflectorNotAvailable extends BadRequest {
|
|
1793
|
+
id = 'REFLECTOR_NOT_AVAILABLE';
|
|
1794
|
+
message = 'The call reflector is not available';
|
|
1795
|
+
}
|
|
1796
|
+
export class ReplyMarkupBuyEmpty extends BadRequest {
|
|
1797
|
+
id = 'REPLY_MARKUP_BUY_EMPTY';
|
|
1798
|
+
message = 'Reply markup for buy button empty.';
|
|
1799
|
+
}
|
|
1800
|
+
export class ReplyMarkupGameEmpty extends BadRequest {
|
|
1801
|
+
id = 'REPLY_MARKUP_GAME_EMPTY';
|
|
1802
|
+
message = "A game message is being edited, but the newly provided keyboard doesn't have a keyboardButtonGame button.";
|
|
1803
|
+
}
|
|
1804
|
+
export class ReplyMarkupInvalid extends BadRequest {
|
|
1805
|
+
id = 'REPLY_MARKUP_INVALID';
|
|
1806
|
+
message = 'The provided reply markup is invalid.';
|
|
1807
|
+
}
|
|
1808
|
+
export class ReplyMarkupTooLong extends BadRequest {
|
|
1809
|
+
id = 'REPLY_MARKUP_TOO_LONG';
|
|
1810
|
+
message = 'The specified reply_markup is too long.';
|
|
1811
|
+
}
|
|
1812
|
+
export class ReplyMessagesTooMuch extends BadRequest {
|
|
1813
|
+
id = 'REPLY_MESSAGES_TOO_MUCH';
|
|
1814
|
+
message = '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.';
|
|
1815
|
+
}
|
|
1816
|
+
export class ReplyMessageIdInvalid extends BadRequest {
|
|
1817
|
+
id = 'REPLY_MESSAGE_ID_INVALID';
|
|
1818
|
+
message = 'The specified reply-to message ID is invalid.';
|
|
1819
|
+
}
|
|
1820
|
+
export class ReplyToInvalid extends BadRequest {
|
|
1821
|
+
id = 'REPLY_TO_INVALID';
|
|
1822
|
+
message = 'The specified `reply_to` field is invalid.';
|
|
1823
|
+
}
|
|
1824
|
+
export class ReplyToMonoforumPeerInvalid extends BadRequest {
|
|
1825
|
+
id = 'REPLY_TO_MONOFORUM_PEER_INVALID';
|
|
1826
|
+
message = 'The specified inputReplyToMonoForum.monoforum_peer_id is invalid.';
|
|
1827
|
+
}
|
|
1828
|
+
export class ReplyToUserInvalid extends BadRequest {
|
|
1829
|
+
id = 'REPLY_TO_USER_INVALID';
|
|
1830
|
+
message = 'The replied-to user is invalid.';
|
|
1831
|
+
}
|
|
1832
|
+
export class RequestTokenInvalid extends BadRequest {
|
|
1833
|
+
id = 'REQUEST_TOKEN_INVALID';
|
|
1834
|
+
message = 'The master DC did not accept the `request_token` from the CDN DC. Continue downloading the file from the master DC using upload.getFile.';
|
|
1835
|
+
}
|
|
1836
|
+
export class ResellStarsTooFew extends BadRequest {
|
|
1837
|
+
id = 'RESELL_STARS_TOO_FEW';
|
|
1838
|
+
message = '';
|
|
1839
|
+
}
|
|
1840
|
+
export class ResellStarsTooMuch extends BadRequest {
|
|
1841
|
+
id = 'RESELL_STARS_TOO_MUCH';
|
|
1842
|
+
message = '';
|
|
1843
|
+
}
|
|
1844
|
+
export class ResetRequestMissing extends BadRequest {
|
|
1845
|
+
id = 'RESET_REQUEST_MISSING';
|
|
1846
|
+
message = 'No password reset is in progress.';
|
|
1847
|
+
}
|
|
1848
|
+
export class ResultsTooMuch extends BadRequest {
|
|
1849
|
+
id = 'RESULTS_TOO_MUCH';
|
|
1850
|
+
message = 'Too many results were provided.';
|
|
1851
|
+
}
|
|
1852
|
+
export class ResultIdDuplicate extends BadRequest {
|
|
1853
|
+
id = 'RESULT_ID_DUPLICATE';
|
|
1854
|
+
message = 'You provided a duplicate result ID.';
|
|
1855
|
+
}
|
|
1856
|
+
export class ResultIdEmpty extends BadRequest {
|
|
1857
|
+
id = 'RESULT_ID_EMPTY';
|
|
1858
|
+
message = 'Result ID empty.';
|
|
1859
|
+
}
|
|
1860
|
+
export class ResultIdInvalid extends BadRequest {
|
|
1861
|
+
id = 'RESULT_ID_INVALID';
|
|
1862
|
+
message = 'One of the specified result IDs is invalid.';
|
|
1863
|
+
}
|
|
1864
|
+
export class ResultTypeInvalid extends BadRequest {
|
|
1865
|
+
id = 'RESULT_TYPE_INVALID';
|
|
1866
|
+
message = 'Result type invalid.';
|
|
1867
|
+
}
|
|
1868
|
+
export class RevoteNotAllowed extends BadRequest {
|
|
1869
|
+
id = 'REVOTE_NOT_ALLOWED';
|
|
1870
|
+
message = 'You cannot change your vote.';
|
|
1871
|
+
}
|
|
1872
|
+
export class RightsNotModified extends BadRequest {
|
|
1873
|
+
id = 'RIGHTS_NOT_MODIFIED';
|
|
1874
|
+
message = 'The new admin rights are equal to the old rights, no change was made.';
|
|
1875
|
+
}
|
|
1876
|
+
export class RingtoneInvalid extends BadRequest {
|
|
1877
|
+
id = 'RINGTONE_INVALID';
|
|
1878
|
+
message = 'The specified ringtone is invalid.';
|
|
1879
|
+
}
|
|
1880
|
+
export class RingtoneMimeInvalid extends BadRequest {
|
|
1881
|
+
id = 'RINGTONE_MIME_INVALID';
|
|
1882
|
+
message = 'The MIME type for the ringtone is invalid.';
|
|
1883
|
+
}
|
|
1884
|
+
export class RsaDecryptFailed extends BadRequest {
|
|
1885
|
+
id = 'RSA_DECRYPT_FAILED';
|
|
1886
|
+
message = 'Internal RSA decryption failed.';
|
|
1887
|
+
}
|
|
1888
|
+
export class SavedIdEmpty extends BadRequest {
|
|
1889
|
+
id = 'SAVED_ID_EMPTY';
|
|
1890
|
+
message = 'The passed inputSavedStarGiftChat.saved_id is empty.';
|
|
1891
|
+
}
|
|
1892
|
+
export class SavedPeerInvalid extends BadRequest {
|
|
1893
|
+
id = 'SAVED_PEER_INVALID';
|
|
1894
|
+
message = '';
|
|
1895
|
+
}
|
|
1896
|
+
export class ScheduleBotNotAllowed extends BadRequest {
|
|
1897
|
+
id = 'SCHEDULE_BOT_NOT_ALLOWED';
|
|
1898
|
+
message = 'Bots cannot schedule messages.';
|
|
1899
|
+
}
|
|
1900
|
+
export class ScheduleDateInvalid extends BadRequest {
|
|
1901
|
+
id = 'SCHEDULE_DATE_INVALID';
|
|
1902
|
+
message = 'Invalid schedule date provided.';
|
|
1903
|
+
}
|
|
1904
|
+
export class ScheduleDateTooLate extends BadRequest {
|
|
1905
|
+
id = 'SCHEDULE_DATE_TOO_LATE';
|
|
1906
|
+
message = "You can't schedule a message this far in the future.";
|
|
1907
|
+
}
|
|
1908
|
+
export class ScheduleStatusPrivate extends BadRequest {
|
|
1909
|
+
id = 'SCHEDULE_STATUS_PRIVATE';
|
|
1910
|
+
message = "Can't schedule until user is online, if the user's last seen timestamp is hidden by their privacy settings.";
|
|
1911
|
+
}
|
|
1912
|
+
export class ScheduleTooMuch extends BadRequest {
|
|
1913
|
+
id = 'SCHEDULE_TOO_MUCH';
|
|
1914
|
+
message = 'There are too many scheduled messages.';
|
|
1915
|
+
}
|
|
1916
|
+
export class ScoreInvalid extends BadRequest {
|
|
1917
|
+
id = 'SCORE_INVALID';
|
|
1918
|
+
message = 'The specified game score is invalid.';
|
|
1919
|
+
}
|
|
1920
|
+
export class SearchQueryEmpty extends BadRequest {
|
|
1921
|
+
id = 'SEARCH_QUERY_EMPTY';
|
|
1922
|
+
message = 'The search query is empty.';
|
|
1923
|
+
}
|
|
1924
|
+
export class SearchWithLinkNotSupported extends BadRequest {
|
|
1925
|
+
id = 'SEARCH_WITH_LINK_NOT_SUPPORTED';
|
|
1926
|
+
message = 'You cannot provide a search query and an invite link at the same time.';
|
|
1927
|
+
}
|
|
1928
|
+
export class SecondsInvalid extends BadRequest {
|
|
1929
|
+
id = 'SECONDS_INVALID';
|
|
1930
|
+
message = 'Invalid duration provided.';
|
|
1931
|
+
}
|
|
1932
|
+
export class SecureSecretRequired extends BadRequest {
|
|
1933
|
+
id = 'SECURE_SECRET_REQUIRED';
|
|
1934
|
+
message = 'A secure secret is required.';
|
|
1935
|
+
}
|
|
1936
|
+
export class SelfDeleteRestricted extends BadRequest {
|
|
1937
|
+
id = 'SELF_DELETE_RESTRICTED';
|
|
1938
|
+
message = "Business bots can't delete messages just for the user, `revoke` **must** be set.";
|
|
1939
|
+
}
|
|
1940
|
+
export class SendAsPeerInvalid extends BadRequest {
|
|
1941
|
+
id = 'SEND_AS_PEER_INVALID';
|
|
1942
|
+
message = "You can't send messages as the specified peer.";
|
|
1943
|
+
}
|
|
1944
|
+
export class SendMessageGameInvalid extends BadRequest {
|
|
1945
|
+
id = 'SEND_MESSAGE_GAME_INVALID';
|
|
1946
|
+
message = 'An inputBotInlineMessageGame can only be contained in an inputBotInlineResultGame, not in an inputBotInlineResult/inputBotInlineResultPhoto/etc.';
|
|
1947
|
+
}
|
|
1948
|
+
export class SendMessageMediaInvalid extends BadRequest {
|
|
1949
|
+
id = 'SEND_MESSAGE_MEDIA_INVALID';
|
|
1950
|
+
message = 'Invalid media provided.';
|
|
1951
|
+
}
|
|
1952
|
+
export class SendMessageTypeInvalid extends BadRequest {
|
|
1953
|
+
id = 'SEND_MESSAGE_TYPE_INVALID';
|
|
1954
|
+
message = 'The message type is invalid.';
|
|
1955
|
+
}
|
|
1956
|
+
export class SessionTooFresh extends BadRequest {
|
|
1957
|
+
id = 'SESSION_TOO_FRESH_X';
|
|
1958
|
+
message = 'This session was created less than 24 hours ago, try again in {value} seconds.';
|
|
1959
|
+
}
|
|
1960
|
+
export class SettingsInvalid extends BadRequest {
|
|
1961
|
+
id = 'SETTINGS_INVALID';
|
|
1962
|
+
message = 'Invalid settings were provided.';
|
|
1963
|
+
}
|
|
1964
|
+
export class Sha256HashInvalid extends BadRequest {
|
|
1965
|
+
id = 'SHA256_HASH_INVALID';
|
|
1966
|
+
message = 'The provided SHA256 hash is invalid.';
|
|
1967
|
+
}
|
|
1968
|
+
export class ShortcutInvalid extends BadRequest {
|
|
1969
|
+
id = 'SHORTCUT_INVALID';
|
|
1970
|
+
message = 'The specified shortcut is invalid.';
|
|
1971
|
+
}
|
|
1972
|
+
export class ShortnameOccupyFailed extends BadRequest {
|
|
1973
|
+
id = 'SHORTNAME_OCCUPY_FAILED';
|
|
1974
|
+
message = 'An error occurred when trying to register the short-name used for the sticker pack. Try a different name';
|
|
1975
|
+
}
|
|
1976
|
+
export class ShortNameInvalid extends BadRequest {
|
|
1977
|
+
id = 'SHORT_NAME_INVALID';
|
|
1978
|
+
message = 'The specified short name is invalid.';
|
|
1979
|
+
}
|
|
1980
|
+
export class ShortNameOccupied extends BadRequest {
|
|
1981
|
+
id = 'SHORT_NAME_OCCUPIED';
|
|
1982
|
+
message = 'The specified short name is already in use.';
|
|
1983
|
+
}
|
|
1984
|
+
export class SlotsEmpty extends BadRequest {
|
|
1985
|
+
id = 'SLOTS_EMPTY';
|
|
1986
|
+
message = 'The specified slot list is empty.';
|
|
1987
|
+
}
|
|
1988
|
+
export class SlowmodeMultiMsgsDisabled extends BadRequest {
|
|
1989
|
+
id = 'SLOWMODE_MULTI_MSGS_DISABLED';
|
|
1990
|
+
message = 'Slowmode is enabled, you cannot forward multiple messages to this group.';
|
|
1991
|
+
}
|
|
1992
|
+
export class SlugInvalid extends BadRequest {
|
|
1993
|
+
id = 'SLUG_INVALID';
|
|
1994
|
+
message = 'The specified invoice slug is invalid.';
|
|
1995
|
+
}
|
|
1996
|
+
export class SmsjobIdInvalid extends BadRequest {
|
|
1997
|
+
id = 'SMSJOB_ID_INVALID';
|
|
1998
|
+
message = 'The specified job ID is invalid.';
|
|
1999
|
+
}
|
|
2000
|
+
export class SmsCodeCreateFailed extends BadRequest {
|
|
2001
|
+
id = 'SMS_CODE_CREATE_FAILED';
|
|
2002
|
+
message = 'An error occurred while creating the SMS code.';
|
|
2003
|
+
}
|
|
2004
|
+
export class SrpAInvalid extends BadRequest {
|
|
2005
|
+
id = 'SRP_A_INVALID';
|
|
2006
|
+
message = 'The specified inputCheckPasswordSRP.A value is invalid.';
|
|
2007
|
+
}
|
|
2008
|
+
export class SrpIdInvalid extends BadRequest {
|
|
2009
|
+
id = 'SRP_ID_INVALID';
|
|
2010
|
+
message = 'Invalid SRP ID provided.';
|
|
2011
|
+
}
|
|
2012
|
+
export class SrpPasswordChanged extends BadRequest {
|
|
2013
|
+
id = 'SRP_PASSWORD_CHANGED';
|
|
2014
|
+
message = 'Password has changed.';
|
|
2015
|
+
}
|
|
2016
|
+
export class StargiftAlreadyConverted extends BadRequest {
|
|
2017
|
+
id = 'STARGIFT_ALREADY_CONVERTED';
|
|
2018
|
+
message = 'The specified star gift was already converted to Stars.';
|
|
2019
|
+
}
|
|
2020
|
+
export class StargiftAlreadyRefunded extends BadRequest {
|
|
2021
|
+
id = 'STARGIFT_ALREADY_REFUNDED';
|
|
2022
|
+
message = 'The specified star gift was already refunded.';
|
|
2023
|
+
}
|
|
2024
|
+
export class StargiftAlreadyUpgraded extends BadRequest {
|
|
2025
|
+
id = 'STARGIFT_ALREADY_UPGRADED';
|
|
2026
|
+
message = 'The specified gift was already upgraded to a collectible gift.';
|
|
2027
|
+
}
|
|
2028
|
+
export class StargiftAttributeInvalid extends BadRequest {
|
|
2029
|
+
id = 'STARGIFT_ATTRIBUTE_INVALID';
|
|
2030
|
+
message = '';
|
|
2031
|
+
}
|
|
2032
|
+
export class StargiftInvalid extends BadRequest {
|
|
2033
|
+
id = 'STARGIFT_INVALID';
|
|
2034
|
+
message = 'The passed gift is invalid.';
|
|
2035
|
+
}
|
|
2036
|
+
export class StargiftMessageInvalid extends BadRequest {
|
|
2037
|
+
id = 'STARGIFT_MESSAGE_INVALID';
|
|
2038
|
+
message = '';
|
|
2039
|
+
}
|
|
2040
|
+
export class StargiftNotFound extends BadRequest {
|
|
2041
|
+
id = 'STARGIFT_NOT_FOUND';
|
|
2042
|
+
message = 'The specified gift was not found.';
|
|
2043
|
+
}
|
|
2044
|
+
export class StargiftNotOwner extends BadRequest {
|
|
2045
|
+
id = 'STARGIFT_NOT_OWNER';
|
|
2046
|
+
message = '';
|
|
2047
|
+
}
|
|
2048
|
+
export class StargiftNotUnique extends BadRequest {
|
|
2049
|
+
id = 'STARGIFT_NOT_UNIQUE';
|
|
2050
|
+
message = '';
|
|
2051
|
+
}
|
|
2052
|
+
export class StargiftOfferInvalid extends BadRequest {
|
|
2053
|
+
id = 'STARGIFT_OFFER_INVALID';
|
|
2054
|
+
message = '';
|
|
2055
|
+
}
|
|
2056
|
+
export class StargiftOfferNotAllowed extends BadRequest {
|
|
2057
|
+
id = 'STARGIFT_OFFER_NOT_ALLOWED';
|
|
2058
|
+
message = '';
|
|
2059
|
+
}
|
|
2060
|
+
export class StargiftOwnerInvalid extends BadRequest {
|
|
2061
|
+
id = 'STARGIFT_OWNER_INVALID';
|
|
2062
|
+
message = 'You cannot transfer or sell a gift owned by another user.';
|
|
2063
|
+
}
|
|
2064
|
+
export class StargiftPeerInvalid extends BadRequest {
|
|
2065
|
+
id = 'STARGIFT_PEER_INVALID';
|
|
2066
|
+
message = 'The specified inputSavedStarGiftChat.peer is invalid.';
|
|
2067
|
+
}
|
|
2068
|
+
export class StargiftResellCurrencyNotAllowed extends BadRequest {
|
|
2069
|
+
id = 'STARGIFT_RESELL_CURRENCY_NOT_ALLOWED';
|
|
2070
|
+
message = "You can't buy the gift using the specified currency (i.e. trying to pay in Stars for TON gifts).";
|
|
2071
|
+
}
|
|
2072
|
+
export class StargiftResellTooEarly extends BadRequest {
|
|
2073
|
+
id = 'STARGIFT_RESELL_TOO_EARLY_X';
|
|
2074
|
+
message = '';
|
|
2075
|
+
}
|
|
2076
|
+
export class StargiftSlugInvalid extends BadRequest {
|
|
2077
|
+
id = 'STARGIFT_SLUG_INVALID';
|
|
2078
|
+
message = 'The specified gift slug is invalid.';
|
|
2079
|
+
}
|
|
2080
|
+
export class StargiftTransferTooEarly extends BadRequest {
|
|
2081
|
+
id = 'STARGIFT_TRANSFER_TOO_EARLY_X';
|
|
2082
|
+
message = 'You cannot transfer this gift yet, wait {value} seconds.';
|
|
2083
|
+
}
|
|
2084
|
+
export class StargiftUpgradeUnavailable extends BadRequest {
|
|
2085
|
+
id = 'STARGIFT_UPGRADE_UNAVAILABLE';
|
|
2086
|
+
message = 'A received gift can only be upgraded to a collectible gift if the [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift)/[savedStarGift](https://core.telegram.org/constructor/savedStarGift).`can_upgrade` flag is set.';
|
|
2087
|
+
}
|
|
2088
|
+
export class StargiftUsageLimited extends BadRequest {
|
|
2089
|
+
id = 'STARGIFT_USAGE_LIMITED';
|
|
2090
|
+
message = 'The gift is sold out.';
|
|
2091
|
+
}
|
|
2092
|
+
export class StargiftUserUsageLimited extends BadRequest {
|
|
2093
|
+
id = 'STARGIFT_USER_USAGE_LIMITED';
|
|
2094
|
+
message = "You've reached the starGift.limited_per_user limit, you can't buy any more gifts of this type.";
|
|
2095
|
+
}
|
|
2096
|
+
export class StarrefAwaitingEnd extends BadRequest {
|
|
2097
|
+
id = 'STARREF_AWAITING_END';
|
|
2098
|
+
message = 'The previous referral program was terminated less than 24 hours ago: further changes can be made after the date specified in userFull.starref_program.end_date.';
|
|
2099
|
+
}
|
|
2100
|
+
export class StarrefExpired extends BadRequest {
|
|
2101
|
+
id = 'STARREF_EXPIRED';
|
|
2102
|
+
message = 'The specified referral link is invalid.';
|
|
2103
|
+
}
|
|
2104
|
+
export class StarrefHashRevoked extends BadRequest {
|
|
2105
|
+
id = 'STARREF_HASH_REVOKED';
|
|
2106
|
+
message = 'The specified affiliate link was already revoked.';
|
|
2107
|
+
}
|
|
2108
|
+
export class StarrefPermilleInvalid extends BadRequest {
|
|
2109
|
+
id = 'STARREF_PERMILLE_INVALID';
|
|
2110
|
+
message = 'The specified commission_permille is invalid: the minimum and maximum values for this parameter are contained in the [starref_min_commission_permille](https://core.telegram.org/api/config#starref-min-commission-permille) and [starref_max_commission_permille](https://core.telegram.org/api/config#starref-max-commission-permille) client configuration parameters.';
|
|
2111
|
+
}
|
|
2112
|
+
export class StarrefPermilleTooLow extends BadRequest {
|
|
2113
|
+
id = 'STARREF_PERMILLE_TOO_LOW';
|
|
2114
|
+
message = 'The specified commission_permille is too low: the minimum and maximum values for this parameter are contained in the [starref_min_commission_permille](https://core.telegram.org/api/config#starref-min-commission-permille) and [starref_max_commission_permille](https://core.telegram.org/api/config#starref-max-commission-permille) client configuration parameters.';
|
|
2115
|
+
}
|
|
2116
|
+
export class StarsAmountInvalid extends BadRequest {
|
|
2117
|
+
id = 'STARS_AMOUNT_INVALID';
|
|
2118
|
+
message = 'The specified amount in stars is invalid.';
|
|
2119
|
+
}
|
|
2120
|
+
export class StarsInvoiceInvalid extends BadRequest {
|
|
2121
|
+
id = 'STARS_INVOICE_INVALID';
|
|
2122
|
+
message = 'The specified Telegram Star invoice is invalid.';
|
|
2123
|
+
}
|
|
2124
|
+
export class StarsPaymentRequired extends BadRequest {
|
|
2125
|
+
id = 'STARS_PAYMENT_REQUIRED';
|
|
2126
|
+
message = 'To import this chat invite link, you must first [pay for the associated Telegram Star subscription »](https://core.telegram.org/api/subscriptions#channel-subscriptions).';
|
|
2127
|
+
}
|
|
2128
|
+
export class StartParamEmpty extends BadRequest {
|
|
2129
|
+
id = 'START_PARAM_EMPTY';
|
|
2130
|
+
message = 'The start parameter is empty.';
|
|
2131
|
+
}
|
|
2132
|
+
export class StartParamInvalid extends BadRequest {
|
|
2133
|
+
id = 'START_PARAM_INVALID';
|
|
2134
|
+
message = 'Start parameter invalid.';
|
|
2135
|
+
}
|
|
2136
|
+
export class StartParamTooLong extends BadRequest {
|
|
2137
|
+
id = 'START_PARAM_TOO_LONG';
|
|
2138
|
+
message = 'Start parameter is too long.';
|
|
2139
|
+
}
|
|
2140
|
+
export class StickerpackStickersTooMuch extends BadRequest {
|
|
2141
|
+
id = 'STICKERPACK_STICKERS_TOO_MUCH';
|
|
2142
|
+
message = "There are too many stickers in this stickerpack, you can't add any more.";
|
|
2143
|
+
}
|
|
2144
|
+
export class StickersetInvalid extends BadRequest {
|
|
2145
|
+
id = 'STICKERSET_INVALID';
|
|
2146
|
+
message = 'The provided sticker set is invalid.';
|
|
2147
|
+
}
|
|
2148
|
+
export class StickersetNotModified extends BadRequest {
|
|
2149
|
+
id = 'STICKERSET_NOT_MODIFIED';
|
|
2150
|
+
message = 'The passed stickerset information is equal to the current information.';
|
|
2151
|
+
}
|
|
2152
|
+
export class StickersEmpty extends BadRequest {
|
|
2153
|
+
id = 'STICKERS_EMPTY';
|
|
2154
|
+
message = 'No sticker provided.';
|
|
2155
|
+
}
|
|
2156
|
+
export class StickersTooMuch extends BadRequest {
|
|
2157
|
+
id = 'STICKERS_TOO_MUCH';
|
|
2158
|
+
message = "There are too many stickers in this stickerpack, you can't add any more.";
|
|
2159
|
+
}
|
|
2160
|
+
export class StickerDocumentInvalid extends BadRequest {
|
|
2161
|
+
id = 'STICKER_DOCUMENT_INVALID';
|
|
2162
|
+
message = 'The specified sticker document is invalid.';
|
|
2163
|
+
}
|
|
2164
|
+
export class StickerEmojiInvalid extends BadRequest {
|
|
2165
|
+
id = 'STICKER_EMOJI_INVALID';
|
|
2166
|
+
message = 'Sticker emoji invalid.';
|
|
2167
|
+
}
|
|
2168
|
+
export class StickerFileInvalid extends BadRequest {
|
|
2169
|
+
id = 'STICKER_FILE_INVALID';
|
|
2170
|
+
message = 'Sticker file invalid.';
|
|
2171
|
+
}
|
|
2172
|
+
export class StickerGifDimensions extends BadRequest {
|
|
2173
|
+
id = 'STICKER_GIF_DIMENSIONS';
|
|
2174
|
+
message = 'The specified video sticker has invalid dimensions.';
|
|
2175
|
+
}
|
|
2176
|
+
export class StickerIdInvalid extends BadRequest {
|
|
2177
|
+
id = 'STICKER_ID_INVALID';
|
|
2178
|
+
message = 'The provided sticker ID is invalid.';
|
|
2179
|
+
}
|
|
2180
|
+
export class StickerInvalid extends BadRequest {
|
|
2181
|
+
id = 'STICKER_INVALID';
|
|
2182
|
+
message = 'The provided sticker is invalid.';
|
|
2183
|
+
}
|
|
2184
|
+
export class StickerMimeInvalid extends BadRequest {
|
|
2185
|
+
id = 'STICKER_MIME_INVALID';
|
|
2186
|
+
message = 'The specified sticker MIME type is invalid.';
|
|
2187
|
+
}
|
|
2188
|
+
export class StickerPngDimensions extends BadRequest {
|
|
2189
|
+
id = 'STICKER_PNG_DIMENSIONS';
|
|
2190
|
+
message = 'Sticker png dimensions invalid.';
|
|
2191
|
+
}
|
|
2192
|
+
export class StickerPngNopng extends BadRequest {
|
|
2193
|
+
id = 'STICKER_PNG_NOPNG';
|
|
2194
|
+
message = 'One of the specified stickers is not a valid PNG file.';
|
|
2195
|
+
}
|
|
2196
|
+
export class StickerTgsNodoc extends BadRequest {
|
|
2197
|
+
id = 'STICKER_TGS_NODOC';
|
|
2198
|
+
message = 'You must send the animated sticker as a document.';
|
|
2199
|
+
}
|
|
2200
|
+
export class StickerTgsNotgs extends BadRequest {
|
|
2201
|
+
id = 'STICKER_TGS_NOTGS';
|
|
2202
|
+
message = 'Invalid TGS sticker provided.';
|
|
2203
|
+
}
|
|
2204
|
+
export class StickerThumbPngNopng extends BadRequest {
|
|
2205
|
+
id = 'STICKER_THUMB_PNG_NOPNG';
|
|
2206
|
+
message = 'Incorrect stickerset thumb file provided, PNG / WEBP expected.';
|
|
2207
|
+
}
|
|
2208
|
+
export class StickerThumbTgsNotgs extends BadRequest {
|
|
2209
|
+
id = 'STICKER_THUMB_TGS_NOTGS';
|
|
2210
|
+
message = 'Incorrect stickerset TGS thumb file provided.';
|
|
2211
|
+
}
|
|
2212
|
+
export class StickerVideoBig extends BadRequest {
|
|
2213
|
+
id = 'STICKER_VIDEO_BIG';
|
|
2214
|
+
message = 'The specified video sticker is too big.';
|
|
2215
|
+
}
|
|
2216
|
+
export class StickerVideoNodoc extends BadRequest {
|
|
2217
|
+
id = 'STICKER_VIDEO_NODOC';
|
|
2218
|
+
message = 'You must send the video sticker as a document.';
|
|
2219
|
+
}
|
|
2220
|
+
export class StickerVideoNowebm extends BadRequest {
|
|
2221
|
+
id = 'STICKER_VIDEO_NOWEBM';
|
|
2222
|
+
message = 'The specified video sticker is not in webm format.';
|
|
2223
|
+
}
|
|
2224
|
+
export class StoriesNeverCreated extends BadRequest {
|
|
2225
|
+
id = 'STORIES_NEVER_CREATED';
|
|
2226
|
+
message = "This peer hasn't ever posted any stories.";
|
|
2227
|
+
}
|
|
2228
|
+
export class StoriesTooMuch extends BadRequest {
|
|
2229
|
+
id = 'STORIES_TOO_MUCH';
|
|
2230
|
+
message = 'You have hit the maximum active stories limit as specified by the [`story_expiring_limit_*` client configuration parameters](https://core.telegram.org/api/config#story-expiring-limit-default): you should buy a [Premium](https://core.telegram.org/api/premium) subscription, delete an active story, or wait for the oldest story to expire.';
|
|
2231
|
+
}
|
|
2232
|
+
export class StoryIdEmpty extends BadRequest {
|
|
2233
|
+
id = 'STORY_ID_EMPTY';
|
|
2234
|
+
message = 'You specified no story IDs.';
|
|
2235
|
+
}
|
|
2236
|
+
export class StoryIdInvalid extends BadRequest {
|
|
2237
|
+
id = 'STORY_ID_INVALID';
|
|
2238
|
+
message = 'The specified story ID is invalid.';
|
|
2239
|
+
}
|
|
2240
|
+
export class StoryNotModified extends BadRequest {
|
|
2241
|
+
id = 'STORY_NOT_MODIFIED';
|
|
2242
|
+
message = "The new story information you passed is equal to the previous story information, thus it wasn't modified.";
|
|
2243
|
+
}
|
|
2244
|
+
export class StoryPeriodInvalid extends BadRequest {
|
|
2245
|
+
id = 'STORY_PERIOD_INVALID';
|
|
2246
|
+
message = 'The specified story period is invalid for this account.';
|
|
2247
|
+
}
|
|
2248
|
+
export class StorySendFloodMonthly extends BadRequest {
|
|
2249
|
+
id = 'STORY_SEND_FLOOD_MONTHLY_X';
|
|
2250
|
+
message = "You've hit the monthly story limit as specified by the [`stories_sent_monthly_limit_*` client configuration parameters](https://core.telegram.org/api/config#stories-sent-monthly-limit-default): wait {value} seconds before posting a new story.";
|
|
2251
|
+
}
|
|
2252
|
+
export class StorySendFloodWeekly extends BadRequest {
|
|
2253
|
+
id = 'STORY_SEND_FLOOD_WEEKLY_X';
|
|
2254
|
+
message = "You've hit the weekly story limit as specified by the [`stories_sent_weekly_limit_*` client configuration parameters](https://core.telegram.org/api/config#stories-sent-weekly-limit-default): wait for {value} seconds before posting a new story.";
|
|
2255
|
+
}
|
|
2256
|
+
export class SubscriptionExportMissing extends BadRequest {
|
|
2257
|
+
id = 'SUBSCRIPTION_EXPORT_MISSING';
|
|
2258
|
+
message = 'You cannot send a [bot subscription invoice](https://core.telegram.org/api/subscriptions#bot-subscriptions) directly, you may only create invoice links using [payments.exportInvoice](https://core.telegram.org/method/payments.exportInvoice).';
|
|
2259
|
+
}
|
|
2260
|
+
export class SubscriptionIdInvalid extends BadRequest {
|
|
2261
|
+
id = 'SUBSCRIPTION_ID_INVALID';
|
|
2262
|
+
message = 'The specified subscription_id is invalid.';
|
|
2263
|
+
}
|
|
2264
|
+
export class SubscriptionPeriodInvalid extends BadRequest {
|
|
2265
|
+
id = 'SUBSCRIPTION_PERIOD_INVALID';
|
|
2266
|
+
message = 'The specified subscription_pricing.period is invalid.';
|
|
2267
|
+
}
|
|
2268
|
+
export class SuggestedPostAmountInvalid extends BadRequest {
|
|
2269
|
+
id = 'SUGGESTED_POST_AMOUNT_INVALID';
|
|
2270
|
+
message = 'The specified price for the suggested post is invalid.';
|
|
2271
|
+
}
|
|
2272
|
+
export class SuggestedPostPeerInvalid extends BadRequest {
|
|
2273
|
+
id = 'SUGGESTED_POST_PEER_INVALID';
|
|
2274
|
+
message = 'You cannot send suggested posts to non-[monoforum](https://core.telegram.org/api/monoforum) peers.';
|
|
2275
|
+
}
|
|
2276
|
+
export class SwitchPmTextEmpty extends BadRequest {
|
|
2277
|
+
id = 'SWITCH_PM_TEXT_EMPTY';
|
|
2278
|
+
message = 'The switch_pm.text field was empty.';
|
|
2279
|
+
}
|
|
2280
|
+
export class SwitchWebviewUrlInvalid extends BadRequest {
|
|
2281
|
+
id = 'SWITCH_WEBVIEW_URL_INVALID';
|
|
2282
|
+
message = 'The URL specified in switch_webview.url is invalid!';
|
|
2283
|
+
}
|
|
2284
|
+
export class TakeoutInvalid extends BadRequest {
|
|
2285
|
+
id = 'TAKEOUT_INVALID';
|
|
2286
|
+
message = 'The specified takeout ID is invalid.';
|
|
2287
|
+
}
|
|
2288
|
+
export class TakeoutRequired extends BadRequest {
|
|
2289
|
+
id = 'TAKEOUT_REQUIRED';
|
|
2290
|
+
message = 'A [takeout](https://core.telegram.org/api/takeout) session needs to be initialized first, [see here » for more info](https://core.telegram.org/api/takeout).';
|
|
2291
|
+
}
|
|
2292
|
+
export class TaskAlreadyExists extends BadRequest {
|
|
2293
|
+
id = 'TASK_ALREADY_EXISTS';
|
|
2294
|
+
message = 'An email reset was already requested.';
|
|
2295
|
+
}
|
|
2296
|
+
export class TempAuthKeyAlreadyBound extends BadRequest {
|
|
2297
|
+
id = 'TEMP_AUTH_KEY_ALREADY_BOUND';
|
|
2298
|
+
message = 'The passed temporary key is already bound to another **perm_auth_key_id**.';
|
|
2299
|
+
}
|
|
2300
|
+
export class TempAuthKeyEmpty extends BadRequest {
|
|
2301
|
+
id = 'TEMP_AUTH_KEY_EMPTY';
|
|
2302
|
+
message = 'No temporary auth key provided.';
|
|
2303
|
+
}
|
|
2304
|
+
export class TermsUrlInvalid extends BadRequest {
|
|
2305
|
+
id = 'TERMS_URL_INVALID';
|
|
2306
|
+
message = 'The specified [invoice](https://core.telegram.org/constructor/invoice).`terms_url` is invalid.';
|
|
2307
|
+
}
|
|
2308
|
+
export class ThemeFileInvalid extends BadRequest {
|
|
2309
|
+
id = 'THEME_FILE_INVALID';
|
|
2310
|
+
message = 'Invalid theme file provided.';
|
|
2311
|
+
}
|
|
2312
|
+
export class ThemeFormatInvalid extends BadRequest {
|
|
2313
|
+
id = 'THEME_FORMAT_INVALID';
|
|
2314
|
+
message = 'Invalid theme format provided.';
|
|
2315
|
+
}
|
|
2316
|
+
export class ThemeInvalid extends BadRequest {
|
|
2317
|
+
id = 'THEME_INVALID';
|
|
2318
|
+
message = 'Invalid theme provided.';
|
|
2319
|
+
}
|
|
2320
|
+
export class ThemeMimeInvalid extends BadRequest {
|
|
2321
|
+
id = 'THEME_MIME_INVALID';
|
|
2322
|
+
message = "The theme's MIME type is invalid.";
|
|
2323
|
+
}
|
|
2324
|
+
export class ThemeParamsInvalid extends BadRequest {
|
|
2325
|
+
id = 'THEME_PARAMS_INVALID';
|
|
2326
|
+
message = 'The specified `theme_params` field is invalid.';
|
|
2327
|
+
}
|
|
2328
|
+
export class ThemeSlugInvalid extends BadRequest {
|
|
2329
|
+
id = 'THEME_SLUG_INVALID';
|
|
2330
|
+
message = 'The specified theme slug is invalid.';
|
|
2331
|
+
}
|
|
2332
|
+
export class ThemeTitleInvalid extends BadRequest {
|
|
2333
|
+
id = 'THEME_TITLE_INVALID';
|
|
2334
|
+
message = 'The specified theme title is invalid.';
|
|
2335
|
+
}
|
|
2336
|
+
export class TimezoneInvalid extends BadRequest {
|
|
2337
|
+
id = 'TIMEZONE_INVALID';
|
|
2338
|
+
message = 'The specified timezone does not exist.';
|
|
2339
|
+
}
|
|
2340
|
+
export class TitleInvalid extends BadRequest {
|
|
2341
|
+
id = 'TITLE_INVALID';
|
|
2342
|
+
message = 'The specified stickerpack title is invalid.';
|
|
2343
|
+
}
|
|
2344
|
+
export class TmpPasswordDisabled extends BadRequest {
|
|
2345
|
+
id = 'TMP_PASSWORD_DISABLED';
|
|
2346
|
+
message = 'The temporary password is disabled.';
|
|
2347
|
+
}
|
|
2348
|
+
export class TmpPasswordInvalid extends BadRequest {
|
|
2349
|
+
id = 'TMP_PASSWORD_INVALID';
|
|
2350
|
+
message = 'The passed tmp_password is invalid.';
|
|
2351
|
+
}
|
|
2352
|
+
export class TodoItemsEmpty extends BadRequest {
|
|
2353
|
+
id = 'TODO_ITEMS_EMPTY';
|
|
2354
|
+
message = 'A checklist was specified, but no [checklist items](https://core.telegram.org/api/todo) were passed.';
|
|
2355
|
+
}
|
|
2356
|
+
export class TodoItemDuplicate extends BadRequest {
|
|
2357
|
+
id = 'TODO_ITEM_DUPLICATE';
|
|
2358
|
+
message = 'Duplicate [checklist items](https://core.telegram.org/api/todo) detected.';
|
|
2359
|
+
}
|
|
2360
|
+
export class TodoNotModified extends BadRequest {
|
|
2361
|
+
id = 'TODO_NOT_MODIFIED';
|
|
2362
|
+
message = 'No todo items were specified, so no changes were made to the todo list.';
|
|
2363
|
+
}
|
|
2364
|
+
export class TokenEmpty extends BadRequest {
|
|
2365
|
+
id = 'TOKEN_EMPTY';
|
|
2366
|
+
message = 'The specified token is empty.';
|
|
2367
|
+
}
|
|
2368
|
+
export class TokenInvalid extends BadRequest {
|
|
2369
|
+
id = 'TOKEN_INVALID';
|
|
2370
|
+
message = 'The provided token is invalid.';
|
|
2371
|
+
}
|
|
2372
|
+
export class TokenTypeInvalid extends BadRequest {
|
|
2373
|
+
id = 'TOKEN_TYPE_INVALID';
|
|
2374
|
+
message = 'The specified token type is invalid.';
|
|
2375
|
+
}
|
|
2376
|
+
export class TopicsEmpty extends BadRequest {
|
|
2377
|
+
id = 'TOPICS_EMPTY';
|
|
2378
|
+
message = 'You specified no topic IDs.';
|
|
2379
|
+
}
|
|
2380
|
+
export class TopicClosed extends BadRequest {
|
|
2381
|
+
id = 'TOPIC_CLOSED';
|
|
2382
|
+
message = "This topic was closed, you can't send messages to it anymore.";
|
|
2383
|
+
}
|
|
2384
|
+
export class TopicCloseSeparately extends BadRequest {
|
|
2385
|
+
id = 'TOPIC_CLOSE_SEPARATELY';
|
|
2386
|
+
message = 'The `close` flag cannot be provided together with any of the other flags.';
|
|
2387
|
+
}
|
|
2388
|
+
export class TopicDeleted extends BadRequest {
|
|
2389
|
+
id = 'TOPIC_DELETED';
|
|
2390
|
+
message = 'The specified topic was deleted.';
|
|
2391
|
+
}
|
|
2392
|
+
export class TopicHideSeparately extends BadRequest {
|
|
2393
|
+
id = 'TOPIC_HIDE_SEPARATELY';
|
|
2394
|
+
message = 'The `hide` flag cannot be provided together with any of the other flags.';
|
|
2395
|
+
}
|
|
2396
|
+
export class TopicIdInvalid extends BadRequest {
|
|
2397
|
+
id = 'TOPIC_ID_INVALID';
|
|
2398
|
+
message = 'The specified topic ID is invalid.';
|
|
2399
|
+
}
|
|
2400
|
+
export class TopicNotModified extends BadRequest {
|
|
2401
|
+
id = 'TOPIC_NOT_MODIFIED';
|
|
2402
|
+
message = 'The updated topic info is equal to the current topic info, nothing was changed.';
|
|
2403
|
+
}
|
|
2404
|
+
export class TopicTitleEmpty extends BadRequest {
|
|
2405
|
+
id = 'TOPIC_TITLE_EMPTY';
|
|
2406
|
+
message = 'The specified topic title is empty.';
|
|
2407
|
+
}
|
|
2408
|
+
export class ToIdInvalid extends BadRequest {
|
|
2409
|
+
id = 'TO_ID_INVALID';
|
|
2410
|
+
message = 'The specified `to_id` of the passed inputInvoiceStarGiftResale or inputInvoiceStarGiftTransfer is invalid.';
|
|
2411
|
+
}
|
|
2412
|
+
export class ToLangInvalid extends BadRequest {
|
|
2413
|
+
id = 'TO_LANG_INVALID';
|
|
2414
|
+
message = 'The specified destination language is invalid.';
|
|
2415
|
+
}
|
|
2416
|
+
export class TransactionIdInvalid extends BadRequest {
|
|
2417
|
+
id = 'TRANSACTION_ID_INVALID';
|
|
2418
|
+
message = 'The specified transaction ID is invalid.';
|
|
2419
|
+
}
|
|
2420
|
+
export class TranscriptionFailed extends BadRequest {
|
|
2421
|
+
id = 'TRANSCRIPTION_FAILED';
|
|
2422
|
+
message = 'Audio transcription failed.';
|
|
2423
|
+
}
|
|
2424
|
+
export class TranslateReqQuotaExceeded extends BadRequest {
|
|
2425
|
+
id = 'TRANSLATE_REQ_QUOTA_EXCEEDED';
|
|
2426
|
+
message = 'Translation is currently unavailable due to a temporary server-side lack of resources.';
|
|
2427
|
+
}
|
|
2428
|
+
export class TtlDaysInvalid extends BadRequest {
|
|
2429
|
+
id = 'TTL_DAYS_INVALID';
|
|
2430
|
+
message = 'The provided TTL is invalid.';
|
|
2431
|
+
}
|
|
2432
|
+
export class TtlMediaInvalid extends BadRequest {
|
|
2433
|
+
id = 'TTL_MEDIA_INVALID';
|
|
2434
|
+
message = 'Invalid media Time To Live was provided.';
|
|
2435
|
+
}
|
|
2436
|
+
export class TtlPeriodInvalid extends BadRequest {
|
|
2437
|
+
id = 'TTL_PERIOD_INVALID';
|
|
2438
|
+
message = 'The specified TTL period is invalid.';
|
|
2439
|
+
}
|
|
2440
|
+
export class TypesEmpty extends BadRequest {
|
|
2441
|
+
id = 'TYPES_EMPTY';
|
|
2442
|
+
message = 'No top peer type was provided.';
|
|
2443
|
+
}
|
|
2444
|
+
export class TypeConstructorInvalid extends BadRequest {
|
|
2445
|
+
id = 'TYPE_CONSTRUCTOR_INVALID';
|
|
2446
|
+
message = 'The type constructor is invalid';
|
|
2447
|
+
}
|
|
2448
|
+
export class UNSUPPORTED extends BadRequest {
|
|
2449
|
+
id = 'UNSUPPORTED';
|
|
2450
|
+
message = '`require_payment` cannot be *set* by users, only by monoforums: users must instead use the [inputPrivacyKeyNoPaidMessages](https://core.telegram.org/constructor/inputPrivacyKeyNoPaidMessages) privacy setting to remove a previously added exemption.';
|
|
2451
|
+
}
|
|
2452
|
+
export class UntilDateInvalid extends BadRequest {
|
|
2453
|
+
id = 'UNTIL_DATE_INVALID';
|
|
2454
|
+
message = 'Invalid until date provided.';
|
|
2455
|
+
}
|
|
2456
|
+
export class UrlInvalid extends BadRequest {
|
|
2457
|
+
id = 'URL_INVALID';
|
|
2458
|
+
message = 'Invalid URL provided.';
|
|
2459
|
+
}
|
|
2460
|
+
export class UsageLimitInvalid extends BadRequest {
|
|
2461
|
+
id = 'USAGE_LIMIT_INVALID';
|
|
2462
|
+
message = 'The specified usage limit is invalid.';
|
|
2463
|
+
}
|
|
2464
|
+
export class UsernamesActiveTooMuch extends BadRequest {
|
|
2465
|
+
id = 'USERNAMES_ACTIVE_TOO_MUCH';
|
|
2466
|
+
message = 'The maximum number of active usernames was reached.';
|
|
2467
|
+
}
|
|
2468
|
+
export class UsernameInvalid extends BadRequest {
|
|
2469
|
+
id = 'USERNAME_INVALID';
|
|
2470
|
+
message = 'The provided username is not valid.';
|
|
2471
|
+
}
|
|
2472
|
+
export class UsernameNotModified extends BadRequest {
|
|
2473
|
+
id = 'USERNAME_NOT_MODIFIED';
|
|
2474
|
+
message = 'The username was not modified.';
|
|
2475
|
+
}
|
|
2476
|
+
export class UsernameNotOccupied extends BadRequest {
|
|
2477
|
+
id = 'USERNAME_NOT_OCCUPIED';
|
|
2478
|
+
message = 'The provided username is not occupied.';
|
|
2479
|
+
}
|
|
2480
|
+
export class UsernameOccupied extends BadRequest {
|
|
2481
|
+
id = 'USERNAME_OCCUPIED';
|
|
2482
|
+
message = 'The provided username is already occupied.';
|
|
2483
|
+
}
|
|
2484
|
+
export class UsernamePurchaseAvailable extends BadRequest {
|
|
2485
|
+
id = 'USERNAME_PURCHASE_AVAILABLE';
|
|
2486
|
+
message = 'The specified username can be purchased on https://fragment.com.';
|
|
2487
|
+
}
|
|
2488
|
+
export class UserpicUploadRequired extends BadRequest {
|
|
2489
|
+
id = 'USERPIC_UPLOAD_REQUIRED';
|
|
2490
|
+
message = 'You must have a profile picture to publish your geolocation.';
|
|
2491
|
+
}
|
|
2492
|
+
export class UsersTooFew extends BadRequest {
|
|
2493
|
+
id = 'USERS_TOO_FEW';
|
|
2494
|
+
message = 'Not enough users (to create a chat, for example).';
|
|
2495
|
+
}
|
|
2496
|
+
export class UsersTooMuch extends BadRequest {
|
|
2497
|
+
id = 'USERS_TOO_MUCH';
|
|
2498
|
+
message = 'The maximum number of users has been exceeded (to create a chat, for example).';
|
|
2499
|
+
}
|
|
2500
|
+
export class UserAdminInvalid extends BadRequest {
|
|
2501
|
+
id = 'USER_ADMIN_INVALID';
|
|
2502
|
+
message = "You're not an admin.";
|
|
2503
|
+
}
|
|
2504
|
+
export class UserAlreadyInvited extends BadRequest {
|
|
2505
|
+
id = 'USER_ALREADY_INVITED';
|
|
2506
|
+
message = 'You have already invited this user.';
|
|
2507
|
+
}
|
|
2508
|
+
export class UserAlreadyParticipant extends BadRequest {
|
|
2509
|
+
id = 'USER_ALREADY_PARTICIPANT';
|
|
2510
|
+
message = 'The user is already in the group.';
|
|
2511
|
+
}
|
|
2512
|
+
export class UserBannedInChannel extends BadRequest {
|
|
2513
|
+
id = 'USER_BANNED_IN_CHANNEL';
|
|
2514
|
+
message = "You're banned from sending messages in supergroups/channels.";
|
|
2515
|
+
}
|
|
2516
|
+
export class UserBlocked extends BadRequest {
|
|
2517
|
+
id = 'USER_BLOCKED';
|
|
2518
|
+
message = 'User blocked.';
|
|
2519
|
+
}
|
|
2520
|
+
export class UserBot extends BadRequest {
|
|
2521
|
+
id = 'USER_BOT';
|
|
2522
|
+
message = 'Bots can only be admins in channels.';
|
|
2523
|
+
}
|
|
2524
|
+
export class UserBotInvalid extends BadRequest {
|
|
2525
|
+
id = 'USER_BOT_INVALID';
|
|
2526
|
+
message = 'User accounts must provide the `bot` method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts.';
|
|
2527
|
+
}
|
|
2528
|
+
export class UserBotRequired extends BadRequest {
|
|
2529
|
+
id = 'USER_BOT_REQUIRED';
|
|
2530
|
+
message = 'This method can only be called by a bot.';
|
|
2531
|
+
}
|
|
2532
|
+
export class UserChannelsTooMuch extends BadRequest {
|
|
2533
|
+
id = 'USER_CHANNELS_TOO_MUCH';
|
|
2534
|
+
message = 'One of the users you tried to add is already in too many channels/supergroups.';
|
|
2535
|
+
}
|
|
2536
|
+
export class UserCreator extends BadRequest {
|
|
2537
|
+
id = 'USER_CREATOR';
|
|
2538
|
+
message = "For channels.editAdmin: you've tried to edit the admin rights of the owner, but you're not the owner; for channels.leaveChannel: you can't leave this channel, because you're its creator.";
|
|
2539
|
+
}
|
|
2540
|
+
export class UserGiftUnavailable extends BadRequest {
|
|
2541
|
+
id = 'USER_GIFT_UNAVAILABLE';
|
|
2542
|
+
message = 'Gifts are not available in the current region ([stars_gifts_enabled](https://core.telegram.org/api/config#stars-gifts-enabled) is equal to false).';
|
|
2543
|
+
}
|
|
2544
|
+
export class UserIdInvalid extends BadRequest {
|
|
2545
|
+
id = 'USER_ID_INVALID';
|
|
2546
|
+
message = 'The provided user ID is invalid.';
|
|
2547
|
+
}
|
|
2548
|
+
export class UserInvalid extends BadRequest {
|
|
2549
|
+
id = 'USER_INVALID';
|
|
2550
|
+
message = 'Invalid user provided.';
|
|
2551
|
+
}
|
|
2552
|
+
export class UserIsBlocked extends BadRequest {
|
|
2553
|
+
id = 'USER_IS_BLOCKED';
|
|
2554
|
+
message = 'You were blocked by this user.';
|
|
2555
|
+
}
|
|
2556
|
+
export class UserIsBot extends BadRequest {
|
|
2557
|
+
id = 'USER_IS_BOT';
|
|
2558
|
+
message = "Bots can't send messages to other bots.";
|
|
2559
|
+
}
|
|
2560
|
+
export class UserKicked extends BadRequest {
|
|
2561
|
+
id = 'USER_KICKED';
|
|
2562
|
+
message = 'This user was kicked from this supergroup/channel.';
|
|
2563
|
+
}
|
|
2564
|
+
export class UserNotMutualContact extends BadRequest {
|
|
2565
|
+
id = 'USER_NOT_MUTUAL_CONTACT';
|
|
2566
|
+
message = 'The provided user is not a mutual contact.';
|
|
2567
|
+
}
|
|
2568
|
+
export class UserNotParticipant extends BadRequest {
|
|
2569
|
+
id = 'USER_NOT_PARTICIPANT';
|
|
2570
|
+
message = "You're not a member of this supergroup/channel.";
|
|
2571
|
+
}
|
|
2572
|
+
export class UserPublicMissing extends BadRequest {
|
|
2573
|
+
id = 'USER_PUBLIC_MISSING';
|
|
2574
|
+
message = 'Cannot generate a link to stories posted by a peer without a username.';
|
|
2575
|
+
}
|
|
2576
|
+
export class UserVolumeInvalid extends BadRequest {
|
|
2577
|
+
id = 'USER_VOLUME_INVALID';
|
|
2578
|
+
message = 'The specified user volume is invalid.';
|
|
2579
|
+
}
|
|
2580
|
+
export class VenueIdInvalid extends BadRequest {
|
|
2581
|
+
id = 'VENUE_ID_INVALID';
|
|
2582
|
+
message = 'The specified venue ID is invalid.';
|
|
2583
|
+
}
|
|
2584
|
+
export class VideoContentTypeInvalid extends BadRequest {
|
|
2585
|
+
id = 'VIDEO_CONTENT_TYPE_INVALID';
|
|
2586
|
+
message = "The video's content type is invalid.";
|
|
2587
|
+
}
|
|
2588
|
+
export class VideoFileInvalid extends BadRequest {
|
|
2589
|
+
id = 'VIDEO_FILE_INVALID';
|
|
2590
|
+
message = 'The specified video file is invalid.';
|
|
2591
|
+
}
|
|
2592
|
+
export class VideoPauseForbidden extends BadRequest {
|
|
2593
|
+
id = 'VIDEO_PAUSE_FORBIDDEN';
|
|
2594
|
+
message = 'You cannot pause the video stream.';
|
|
2595
|
+
}
|
|
2596
|
+
export class VideoStopForbidden extends BadRequest {
|
|
2597
|
+
id = 'VIDEO_STOP_FORBIDDEN';
|
|
2598
|
+
message = 'You cannot stop the video stream.';
|
|
2599
|
+
}
|
|
2600
|
+
export class VideoTitleEmpty extends BadRequest {
|
|
2601
|
+
id = 'VIDEO_TITLE_EMPTY';
|
|
2602
|
+
message = 'The specified video title is empty.';
|
|
2603
|
+
}
|
|
2604
|
+
export class VoiceMessagesForbidden extends BadRequest {
|
|
2605
|
+
id = 'VOICE_MESSAGES_FORBIDDEN';
|
|
2606
|
+
message = "This user's privacy settings forbid you from sending voice messages.";
|
|
2607
|
+
}
|
|
2608
|
+
export class VolumeLocNotFound extends BadRequest {
|
|
2609
|
+
id = 'VOLUME_LOC_NOT_FOUND';
|
|
2610
|
+
message = "The volume location can't be found";
|
|
2611
|
+
}
|
|
2612
|
+
export class WallpaperFileInvalid extends BadRequest {
|
|
2613
|
+
id = 'WALLPAPER_FILE_INVALID';
|
|
2614
|
+
message = 'The specified wallpaper file is invalid.';
|
|
2615
|
+
}
|
|
2616
|
+
export class WallpaperInvalid extends BadRequest {
|
|
2617
|
+
id = 'WALLPAPER_INVALID';
|
|
2618
|
+
message = 'The specified wallpaper is invalid.';
|
|
2619
|
+
}
|
|
2620
|
+
export class WallpaperMimeInvalid extends BadRequest {
|
|
2621
|
+
id = 'WALLPAPER_MIME_INVALID';
|
|
2622
|
+
message = 'The specified wallpaper MIME type is invalid.';
|
|
2623
|
+
}
|
|
2624
|
+
export class WallpaperNotFound extends BadRequest {
|
|
2625
|
+
id = 'WALLPAPER_NOT_FOUND';
|
|
2626
|
+
message = 'The specified wallpaper could not be found.';
|
|
2627
|
+
}
|
|
2628
|
+
export class WcConvertUrlInvalid extends BadRequest {
|
|
2629
|
+
id = 'WC_CONVERT_URL_INVALID';
|
|
2630
|
+
message = 'WC convert URL invalid.';
|
|
2631
|
+
}
|
|
2632
|
+
export class WebdocumentInvalid extends BadRequest {
|
|
2633
|
+
id = 'WEBDOCUMENT_INVALID';
|
|
2634
|
+
message = 'Invalid webdocument URL provided.';
|
|
2635
|
+
}
|
|
2636
|
+
export class WebdocumentMimeInvalid extends BadRequest {
|
|
2637
|
+
id = 'WEBDOCUMENT_MIME_INVALID';
|
|
2638
|
+
message = 'Invalid webdocument mime type provided.';
|
|
2639
|
+
}
|
|
2640
|
+
export class WebdocumentSizeTooBig extends BadRequest {
|
|
2641
|
+
id = 'WEBDOCUMENT_SIZE_TOO_BIG';
|
|
2642
|
+
message = 'Webdocument is too big!';
|
|
2643
|
+
}
|
|
2644
|
+
export class WebdocumentUrlEmpty extends BadRequest {
|
|
2645
|
+
id = 'WEBDOCUMENT_URL_EMPTY';
|
|
2646
|
+
message = 'The passed web document URL is empty.';
|
|
2647
|
+
}
|
|
2648
|
+
export class WebdocumentUrlInvalid extends BadRequest {
|
|
2649
|
+
id = 'WEBDOCUMENT_URL_INVALID';
|
|
2650
|
+
message = 'The specified webdocument URL is invalid.';
|
|
2651
|
+
}
|
|
2652
|
+
export class WebpageCurlFailed extends BadRequest {
|
|
2653
|
+
id = 'WEBPAGE_CURL_FAILED';
|
|
2654
|
+
message = 'Failure while fetching the webpage with cURL.';
|
|
2655
|
+
}
|
|
2656
|
+
export class WebpageMediaEmpty extends BadRequest {
|
|
2657
|
+
id = 'WEBPAGE_MEDIA_EMPTY';
|
|
2658
|
+
message = 'Webpage media empty.';
|
|
2659
|
+
}
|
|
2660
|
+
export class WebpageNotFound extends BadRequest {
|
|
2661
|
+
id = 'WEBPAGE_NOT_FOUND';
|
|
2662
|
+
message = 'A preview for the specified webpage `url` could not be generated.';
|
|
2663
|
+
}
|
|
2664
|
+
export class WebpageUrlInvalid extends BadRequest {
|
|
2665
|
+
id = 'WEBPAGE_URL_INVALID';
|
|
2666
|
+
message = 'The specified webpage `url` is invalid.';
|
|
2667
|
+
}
|
|
2668
|
+
export class WebpushAuthInvalid extends BadRequest {
|
|
2669
|
+
id = 'WEBPUSH_AUTH_INVALID';
|
|
2670
|
+
message = 'The specified web push authentication secret is invalid.';
|
|
2671
|
+
}
|
|
2672
|
+
export class WebpushKeyInvalid extends BadRequest {
|
|
2673
|
+
id = 'WEBPUSH_KEY_INVALID';
|
|
2674
|
+
message = 'The specified web push elliptic curve Diffie-Hellman public key is invalid.';
|
|
2675
|
+
}
|
|
2676
|
+
export class WebpushTokenInvalid extends BadRequest {
|
|
2677
|
+
id = 'WEBPUSH_TOKEN_INVALID';
|
|
2678
|
+
message = 'The specified web push token is invalid.';
|
|
2679
|
+
}
|
|
2680
|
+
export class YouBlockedUser extends BadRequest {
|
|
2681
|
+
id = 'YOU_BLOCKED_USER';
|
|
2682
|
+
message = 'You blocked this user.';
|
|
2683
|
+
}
|