@tgsnake/skema 1.13.0 → 2.0.0-browser.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 +29 -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 +54 -50
- 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
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
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';
|
|
2
16
|
export declare class Flood extends RPCError {
|
|
3
17
|
code: number;
|
|
4
18
|
name: string;
|
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 Flood extends RPCError {
|
|
6
17
|
code = 420;
|
|
7
18
|
name = 'FLOOD';
|
|
8
19
|
}
|
|
9
|
-
|
|
10
|
-
class TwoFaConfirmWait extends Flood {
|
|
20
|
+
export class TwoFaConfirmWait extends Flood {
|
|
11
21
|
id = '2FA_CONFIRM_WAIT_X';
|
|
12
22
|
message = "Since this account is active and protected by a 2FA password, we will delete it in 1 week for security purposes. You can cancel this process at any time, you'll be able to reset your account in {value} seconds.";
|
|
13
23
|
}
|
|
14
|
-
|
|
15
|
-
class AddressInvalid extends Flood {
|
|
24
|
+
export class AddressInvalid extends Flood {
|
|
16
25
|
id = 'ADDRESS_INVALID';
|
|
17
26
|
message = 'The specified geopoint address is invalid.';
|
|
18
27
|
}
|
|
19
|
-
|
|
20
|
-
class FloodPremiumWait extends Flood {
|
|
28
|
+
export class FloodPremiumWait extends Flood {
|
|
21
29
|
id = 'FLOOD_PREMIUM_WAIT_X';
|
|
22
30
|
message = 'Please wait {value} seconds before repeating the action, or purchase a [Telegram Premium subscription](https://core.telegram.org/api/premium) to remove this rate limit.';
|
|
23
31
|
}
|
|
24
|
-
|
|
25
|
-
class FloodTestPhoneWait extends Flood {
|
|
32
|
+
export class FloodTestPhoneWait extends Flood {
|
|
26
33
|
id = 'FLOOD_TEST_PHONE_WAIT_X';
|
|
27
34
|
message = 'A wait of {value} seconds is required in the test servers';
|
|
28
35
|
}
|
|
29
|
-
|
|
30
|
-
class FloodWait extends Flood {
|
|
36
|
+
export class FloodWait extends Flood {
|
|
31
37
|
id = 'FLOOD_WAIT_X';
|
|
32
38
|
message = 'Please wait {value} seconds before repeating the action.';
|
|
33
39
|
}
|
|
34
|
-
|
|
35
|
-
class FrozenMethodInvalid extends Flood {
|
|
40
|
+
export class FrozenMethodInvalid extends Flood {
|
|
36
41
|
id = 'FROZEN_METHOD_INVALID';
|
|
37
42
|
message = 'The current account is [frozen](https://core.telegram.org/api/auth#frozen-accounts), and thus cannot execute the specified action.';
|
|
38
43
|
}
|
|
39
|
-
|
|
40
|
-
class PremiumSubActiveUntil extends Flood {
|
|
44
|
+
export class PremiumSubActiveUntil extends Flood {
|
|
41
45
|
id = 'PREMIUM_SUB_ACTIVE_UNTIL_X';
|
|
42
46
|
message = 'You already have a premium subscription active until unixtime {value} .';
|
|
43
47
|
}
|
|
44
|
-
|
|
45
|
-
class SlowmodeWait extends Flood {
|
|
48
|
+
export class SlowmodeWait extends Flood {
|
|
46
49
|
id = 'SLOWMODE_WAIT_X';
|
|
47
50
|
message = 'Slowmode is enabled in this chat: wait {value} seconds before sending another message to this chat.';
|
|
48
51
|
}
|
|
49
|
-
|
|
50
|
-
class TakeoutInitDelay extends Flood {
|
|
52
|
+
export class TakeoutInitDelay extends Flood {
|
|
51
53
|
id = 'TAKEOUT_INIT_DELAY_X';
|
|
52
54
|
message = "Sorry, for security reasons, you will be able to begin downloading your data in {value} seconds. We have notified all your devices about the export request to make sure it's authorized and to give you time to react if it's not.";
|
|
53
55
|
}
|
|
54
|
-
exports.TakeoutInitDelay = TakeoutInitDelay;
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
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';
|
|
2
16
|
export declare class Forbidden extends RPCError {
|
|
3
17
|
code: number;
|
|
4
18
|
name: string;
|
|
@@ -0,0 +1,243 @@
|
|
|
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 Forbidden extends RPCError {
|
|
17
|
+
code = 403;
|
|
18
|
+
name = 'FORBIDDEN';
|
|
19
|
+
}
|
|
20
|
+
export class AccessDenied extends Forbidden {
|
|
21
|
+
id = 'ACCESS_DENIED';
|
|
22
|
+
message = '';
|
|
23
|
+
}
|
|
24
|
+
export class AllowPaymentRequired extends Forbidden {
|
|
25
|
+
id = 'ALLOW_PAYMENT_REQUIRED_X';
|
|
26
|
+
message = 'This peer charges {value} [Telegram Stars](https://core.telegram.org/api/stars) per message, but the `allow_paid_stars` was not set or its value is smaller than {value}.';
|
|
27
|
+
}
|
|
28
|
+
export class AnonymousReactionsDisabled extends Forbidden {
|
|
29
|
+
id = 'ANONYMOUS_REACTIONS_DISABLED';
|
|
30
|
+
message = 'Sorry, anonymous administrators cannot leave reactions or participate in polls.';
|
|
31
|
+
}
|
|
32
|
+
export class BotAccessForbidden extends Forbidden {
|
|
33
|
+
id = 'BOT_ACCESS_FORBIDDEN';
|
|
34
|
+
message = 'The specified method *can* be used over a [business connection](https://core.telegram.org/api/bots/connected-business-bots) for some operations, but the specified query attempted an operation that is not allowed over a business connection.';
|
|
35
|
+
}
|
|
36
|
+
export class BotVerifierForbidden extends Forbidden {
|
|
37
|
+
id = 'BOT_VERIFIER_FORBIDDEN';
|
|
38
|
+
message = 'This bot cannot assign [verification icons](https://core.telegram.org/api/bots/verification).';
|
|
39
|
+
}
|
|
40
|
+
export class BroadcastForbidden extends Forbidden {
|
|
41
|
+
id = 'BROADCAST_FORBIDDEN';
|
|
42
|
+
message = 'Channel poll voters and reactions cannot be fetched to prevent deanonymization.';
|
|
43
|
+
}
|
|
44
|
+
export class ChannelPublicGroupNa extends Forbidden {
|
|
45
|
+
id = 'CHANNEL_PUBLIC_GROUP_NA';
|
|
46
|
+
message = 'channel/supergroup not available.';
|
|
47
|
+
}
|
|
48
|
+
export class ChatActionForbidden extends Forbidden {
|
|
49
|
+
id = 'CHAT_ACTION_FORBIDDEN';
|
|
50
|
+
message = 'You cannot execute this action.';
|
|
51
|
+
}
|
|
52
|
+
export class ChatAdminInviteRequired extends Forbidden {
|
|
53
|
+
id = 'CHAT_ADMIN_INVITE_REQUIRED';
|
|
54
|
+
message = 'You do not have the rights to do this.';
|
|
55
|
+
}
|
|
56
|
+
export class ChatAdminRequired extends Forbidden {
|
|
57
|
+
id = 'CHAT_ADMIN_REQUIRED';
|
|
58
|
+
message = 'You must be an admin in this chat to do this.';
|
|
59
|
+
}
|
|
60
|
+
export class ChatForbidden extends Forbidden {
|
|
61
|
+
id = 'CHAT_FORBIDDEN';
|
|
62
|
+
message = 'This chat is not available to the current user.';
|
|
63
|
+
}
|
|
64
|
+
export class ChatGuestSendForbidden extends Forbidden {
|
|
65
|
+
id = 'CHAT_GUEST_SEND_FORBIDDEN';
|
|
66
|
+
message = 'You join the discussion group before commenting, see [here »](https://core.telegram.org/api/discussion#requiring-users-to-join-the-group) for more info.';
|
|
67
|
+
}
|
|
68
|
+
export class ChatSendAudiosForbidden extends Forbidden {
|
|
69
|
+
id = 'CHAT_SEND_AUDIOS_FORBIDDEN';
|
|
70
|
+
message = "You can't send audio messages in this chat.";
|
|
71
|
+
}
|
|
72
|
+
export class ChatSendDocsForbidden extends Forbidden {
|
|
73
|
+
id = 'CHAT_SEND_DOCS_FORBIDDEN';
|
|
74
|
+
message = "You can't send documents in this chat.";
|
|
75
|
+
}
|
|
76
|
+
export class ChatSendGameForbidden extends Forbidden {
|
|
77
|
+
id = 'CHAT_SEND_GAME_FORBIDDEN';
|
|
78
|
+
message = "You can't send a game to this chat.";
|
|
79
|
+
}
|
|
80
|
+
export class ChatSendGifsForbidden extends Forbidden {
|
|
81
|
+
id = 'CHAT_SEND_GIFS_FORBIDDEN';
|
|
82
|
+
message = "You can't send gifs in this chat.";
|
|
83
|
+
}
|
|
84
|
+
export class ChatSendInlineForbidden extends Forbidden {
|
|
85
|
+
id = 'CHAT_SEND_INLINE_FORBIDDEN';
|
|
86
|
+
message = "You can't send inline messages in this group.";
|
|
87
|
+
}
|
|
88
|
+
export class ChatSendMediaForbidden extends Forbidden {
|
|
89
|
+
id = 'CHAT_SEND_MEDIA_FORBIDDEN';
|
|
90
|
+
message = "You can't send media in this chat.";
|
|
91
|
+
}
|
|
92
|
+
export class ChatSendPhotosForbidden extends Forbidden {
|
|
93
|
+
id = 'CHAT_SEND_PHOTOS_FORBIDDEN';
|
|
94
|
+
message = "You can't send photos in this chat.";
|
|
95
|
+
}
|
|
96
|
+
export class ChatSendPlainForbidden extends Forbidden {
|
|
97
|
+
id = 'CHAT_SEND_PLAIN_FORBIDDEN';
|
|
98
|
+
message = "You can't send non-media (text) messages in this chat.";
|
|
99
|
+
}
|
|
100
|
+
export class ChatSendPollForbidden extends Forbidden {
|
|
101
|
+
id = 'CHAT_SEND_POLL_FORBIDDEN';
|
|
102
|
+
message = "You can't send polls in this chat.";
|
|
103
|
+
}
|
|
104
|
+
export class ChatSendRoundvideosForbidden extends Forbidden {
|
|
105
|
+
id = 'CHAT_SEND_ROUNDVIDEOS_FORBIDDEN';
|
|
106
|
+
message = "You can't send round videos to this chat.";
|
|
107
|
+
}
|
|
108
|
+
export class ChatSendStickersForbidden extends Forbidden {
|
|
109
|
+
id = 'CHAT_SEND_STICKERS_FORBIDDEN';
|
|
110
|
+
message = "You can't send stickers in this chat.";
|
|
111
|
+
}
|
|
112
|
+
export class ChatSendVideosForbidden extends Forbidden {
|
|
113
|
+
id = 'CHAT_SEND_VIDEOS_FORBIDDEN';
|
|
114
|
+
message = "You can't send videos in this chat.";
|
|
115
|
+
}
|
|
116
|
+
export class ChatSendVoicesForbidden extends Forbidden {
|
|
117
|
+
id = 'CHAT_SEND_VOICES_FORBIDDEN';
|
|
118
|
+
message = "You can't send voice recordings in this chat.";
|
|
119
|
+
}
|
|
120
|
+
export class ChatSendWebpageForbidden extends Forbidden {
|
|
121
|
+
id = 'CHAT_SEND_WEBPAGE_FORBIDDEN';
|
|
122
|
+
message = "You can't send webpage previews to this chat.";
|
|
123
|
+
}
|
|
124
|
+
export class ChatTypeInvalid extends Forbidden {
|
|
125
|
+
id = 'CHAT_TYPE_INVALID';
|
|
126
|
+
message = 'The specified user type is invalid.';
|
|
127
|
+
}
|
|
128
|
+
export class ChatWriteForbidden extends Forbidden {
|
|
129
|
+
id = 'CHAT_WRITE_FORBIDDEN';
|
|
130
|
+
message = "You can't write in this chat.";
|
|
131
|
+
}
|
|
132
|
+
export class EditBotInviteForbidden extends Forbidden {
|
|
133
|
+
id = 'EDIT_BOT_INVITE_FORBIDDEN';
|
|
134
|
+
message = "Normal users can't edit invites that were created by bots.";
|
|
135
|
+
}
|
|
136
|
+
export class GroupcallAlreadyStarted extends Forbidden {
|
|
137
|
+
id = 'GROUPCALL_ALREADY_STARTED';
|
|
138
|
+
message = 'The groupcall has already started, you can join directly using [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall).';
|
|
139
|
+
}
|
|
140
|
+
export class GroupcallForbidden extends Forbidden {
|
|
141
|
+
id = 'GROUPCALL_FORBIDDEN';
|
|
142
|
+
message = 'The group call has already ended.';
|
|
143
|
+
}
|
|
144
|
+
export class InlineBotRequired extends Forbidden {
|
|
145
|
+
id = 'INLINE_BOT_REQUIRED';
|
|
146
|
+
message = 'Only the inline bot can edit message.';
|
|
147
|
+
}
|
|
148
|
+
export class MessageAuthorRequired extends Forbidden {
|
|
149
|
+
id = 'MESSAGE_AUTHOR_REQUIRED';
|
|
150
|
+
message = 'Message author required.';
|
|
151
|
+
}
|
|
152
|
+
export class MessageDeleteForbidden extends Forbidden {
|
|
153
|
+
id = 'MESSAGE_DELETE_FORBIDDEN';
|
|
154
|
+
message = "You can't delete one of the messages you tried to delete, most likely because it is a service message.";
|
|
155
|
+
}
|
|
156
|
+
export class NotEligible extends Forbidden {
|
|
157
|
+
id = 'NOT_ELIGIBLE';
|
|
158
|
+
message = 'The current user is not eligible to join the Peer-to-Peer Login Program.';
|
|
159
|
+
}
|
|
160
|
+
export class ParticipantJoinMissing extends Forbidden {
|
|
161
|
+
id = 'PARTICIPANT_JOIN_MISSING';
|
|
162
|
+
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).";
|
|
163
|
+
}
|
|
164
|
+
export class PeerIdInvalid extends Forbidden {
|
|
165
|
+
id = 'PEER_ID_INVALID';
|
|
166
|
+
message = 'The provided peer id is invalid.';
|
|
167
|
+
}
|
|
168
|
+
export class PollVoteRequired extends Forbidden {
|
|
169
|
+
id = 'POLL_VOTE_REQUIRED';
|
|
170
|
+
message = 'Cast a vote in the poll before calling this method.';
|
|
171
|
+
}
|
|
172
|
+
export class PremiumAccountRequired extends Forbidden {
|
|
173
|
+
id = 'PREMIUM_ACCOUNT_REQUIRED';
|
|
174
|
+
message = 'A premium account is required to execute this action.';
|
|
175
|
+
}
|
|
176
|
+
export class PrivacyPremiumRequired extends Forbidden {
|
|
177
|
+
id = 'PRIVACY_PREMIUM_REQUIRED';
|
|
178
|
+
message = 'You need a [Telegram Premium subscription](https://core.telegram.org/api/premium) to send a message to this user.';
|
|
179
|
+
}
|
|
180
|
+
export class PublicChannelMissing extends Forbidden {
|
|
181
|
+
id = 'PUBLIC_CHANNEL_MISSING';
|
|
182
|
+
message = 'You can only export group call invite links for public chats or channels.';
|
|
183
|
+
}
|
|
184
|
+
export class RightForbidden extends Forbidden {
|
|
185
|
+
id = 'RIGHT_FORBIDDEN';
|
|
186
|
+
message = 'Your admin rights do not allow you to do this.';
|
|
187
|
+
}
|
|
188
|
+
export class SensitiveChangeForbidden extends Forbidden {
|
|
189
|
+
id = 'SENSITIVE_CHANGE_FORBIDDEN';
|
|
190
|
+
message = "You can't change your sensitive content settings.";
|
|
191
|
+
}
|
|
192
|
+
export class TakeoutRequired extends Forbidden {
|
|
193
|
+
id = 'TAKEOUT_REQUIRED';
|
|
194
|
+
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).';
|
|
195
|
+
}
|
|
196
|
+
export class UserBotInvalid extends Forbidden {
|
|
197
|
+
id = 'USER_BOT_INVALID';
|
|
198
|
+
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.';
|
|
199
|
+
}
|
|
200
|
+
export class UserChannelsTooMuch extends Forbidden {
|
|
201
|
+
id = 'USER_CHANNELS_TOO_MUCH';
|
|
202
|
+
message = 'One of the users you tried to add is already in too many channels/supergroups.';
|
|
203
|
+
}
|
|
204
|
+
export class UserDeleted extends Forbidden {
|
|
205
|
+
id = 'USER_DELETED';
|
|
206
|
+
message = "You can't send this secret message because the other participant deleted their account.";
|
|
207
|
+
}
|
|
208
|
+
export class UserInvalid extends Forbidden {
|
|
209
|
+
id = 'USER_INVALID';
|
|
210
|
+
message = 'Invalid user provided.';
|
|
211
|
+
}
|
|
212
|
+
export class UserIsBlocked extends Forbidden {
|
|
213
|
+
id = 'USER_IS_BLOCKED';
|
|
214
|
+
message = 'You were blocked by this user.';
|
|
215
|
+
}
|
|
216
|
+
export class UserNotMutualContact extends Forbidden {
|
|
217
|
+
id = 'USER_NOT_MUTUAL_CONTACT';
|
|
218
|
+
message = 'The provided user is not a mutual contact.';
|
|
219
|
+
}
|
|
220
|
+
export class UserNotParticipant extends Forbidden {
|
|
221
|
+
id = 'USER_NOT_PARTICIPANT';
|
|
222
|
+
message = "You're not a member of this supergroup/channel.";
|
|
223
|
+
}
|
|
224
|
+
export class UserPermissionDenied extends Forbidden {
|
|
225
|
+
id = 'USER_PERMISSION_DENIED';
|
|
226
|
+
message = "The user hasn't granted or has revoked the bot's access to change their emoji status using [bots.toggleUserEmojiStatusPermission](https://core.telegram.org/method/bots.toggleUserEmojiStatusPermission).";
|
|
227
|
+
}
|
|
228
|
+
export class UserPrivacyRestricted extends Forbidden {
|
|
229
|
+
id = 'USER_PRIVACY_RESTRICTED';
|
|
230
|
+
message = "The user's privacy settings do not allow you to do this.";
|
|
231
|
+
}
|
|
232
|
+
export class UserRestricted extends Forbidden {
|
|
233
|
+
id = 'USER_RESTRICTED';
|
|
234
|
+
message = "You're spamreported, you can't create channels or chats.";
|
|
235
|
+
}
|
|
236
|
+
export class VoiceMessagesForbidden extends Forbidden {
|
|
237
|
+
id = 'VOICE_MESSAGES_FORBIDDEN';
|
|
238
|
+
message = "This user's privacy settings forbid you from sending voice messages.";
|
|
239
|
+
}
|
|
240
|
+
export class YourPrivacyRestricted extends Forbidden {
|
|
241
|
+
id = 'YOUR_PRIVACY_RESTRICTED';
|
|
242
|
+
message = 'You cannot fetch the read date of this message because you have disallowed other users to do so for *your* messages; to fix, allow other users to see *your* exact last online date OR purchase a [Telegram Premium](https://core.telegram.org/api/premium) subscription.';
|
|
243
|
+
}
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
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';
|
|
2
16
|
export declare class InternalServerError extends RPCError {
|
|
3
17
|
code: number;
|
|
4
18
|
name: string;
|
|
@@ -0,0 +1,255 @@
|
|
|
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 InternalServerError extends RPCError {
|
|
17
|
+
code = 500;
|
|
18
|
+
name = 'INTERNAL_SERVER_ERROR';
|
|
19
|
+
}
|
|
20
|
+
export class ApiCallError extends InternalServerError {
|
|
21
|
+
id = 'API_CALL_ERROR';
|
|
22
|
+
message = 'API call error due to Telegram having internal problems. Please try again later';
|
|
23
|
+
}
|
|
24
|
+
export class AuthKeyUnsynchronized extends InternalServerError {
|
|
25
|
+
id = 'AUTH_KEY_UNSYNCHRONIZED';
|
|
26
|
+
message = 'Internal error, please repeat the method call.';
|
|
27
|
+
}
|
|
28
|
+
export class AuthRestart extends InternalServerError {
|
|
29
|
+
id = 'AUTH_RESTART';
|
|
30
|
+
message = 'Restart the authorization process.';
|
|
31
|
+
}
|
|
32
|
+
export class AuthRestartX extends InternalServerError {
|
|
33
|
+
id = 'AUTH_RESTART_X';
|
|
34
|
+
message = 'Internal error (debug info {value}), please repeat the method call.';
|
|
35
|
+
}
|
|
36
|
+
export class CallOccupyFailed extends InternalServerError {
|
|
37
|
+
id = 'CALL_OCCUPY_FAILED';
|
|
38
|
+
message = 'The call failed because the user is already making another call.';
|
|
39
|
+
}
|
|
40
|
+
export class CdnSaltsEmpty extends InternalServerError {
|
|
41
|
+
id = 'CDN_SALTS_EMPTY';
|
|
42
|
+
message = '';
|
|
43
|
+
}
|
|
44
|
+
export class CdnUploadTimeout extends InternalServerError {
|
|
45
|
+
id = 'CDN_UPLOAD_TIMEOUT';
|
|
46
|
+
message = 'A server-side timeout occurred while reuploading the file to the CDN DC.';
|
|
47
|
+
}
|
|
48
|
+
export class ChatIdGenerateFailed extends InternalServerError {
|
|
49
|
+
id = 'CHAT_ID_GENERATE_FAILED';
|
|
50
|
+
message = 'Failure while generating the chat ID.';
|
|
51
|
+
}
|
|
52
|
+
export class ChatInvalid extends InternalServerError {
|
|
53
|
+
id = 'CHAT_INVALID';
|
|
54
|
+
message = 'Invalid chat.';
|
|
55
|
+
}
|
|
56
|
+
export class ChatOccupyLocFailed extends InternalServerError {
|
|
57
|
+
id = 'CHAT_OCCUPY_LOC_FAILED';
|
|
58
|
+
message = 'An internal error occurred while creating the chat';
|
|
59
|
+
}
|
|
60
|
+
export class ChatOccupyUsernameFailed extends InternalServerError {
|
|
61
|
+
id = 'CHAT_OCCUPY_USERNAME_FAILED';
|
|
62
|
+
message = 'Failure to occupy chat username due to Telegram having internal problems. Please try again later';
|
|
63
|
+
}
|
|
64
|
+
export class ChpCallFail extends InternalServerError {
|
|
65
|
+
id = 'CHP_CALL_FAIL';
|
|
66
|
+
message = 'Telegram is having internal problems. Please try again later';
|
|
67
|
+
}
|
|
68
|
+
export class EncryptionDeclineAdminFailed extends InternalServerError {
|
|
69
|
+
id = 'ENCRYPTION_DECLINE_ADMIN_FAILED';
|
|
70
|
+
message = '';
|
|
71
|
+
}
|
|
72
|
+
export class EncryptionOccupyAdminFailed extends InternalServerError {
|
|
73
|
+
id = 'ENCRYPTION_OCCUPY_ADMIN_FAILED';
|
|
74
|
+
message = 'Failed occupying memory for admin info due to Telegram having internal problems. Please try again later';
|
|
75
|
+
}
|
|
76
|
+
export class EncryptionOccupyFailed extends InternalServerError {
|
|
77
|
+
id = 'ENCRYPTION_OCCUPY_FAILED';
|
|
78
|
+
message = 'Internal server error while accepting secret chat';
|
|
79
|
+
}
|
|
80
|
+
export class FolderDeacAutofixAll extends InternalServerError {
|
|
81
|
+
id = 'FOLDER_DEAC_AUTOFIX_ALL';
|
|
82
|
+
message = 'Telegram is having internal problems. Please try again later';
|
|
83
|
+
}
|
|
84
|
+
export class GroupcallAddParticipantsFailed extends InternalServerError {
|
|
85
|
+
id = 'GROUPCALL_ADD_PARTICIPANTS_FAILED';
|
|
86
|
+
message = 'Failure while adding voice chat member due to Telegram having internal problems. Please try again later';
|
|
87
|
+
}
|
|
88
|
+
export class GroupedIdOccupyFailed extends InternalServerError {
|
|
89
|
+
id = 'GROUPED_ID_OCCUPY_FAILED';
|
|
90
|
+
message = 'Telegram is having internal problems. Please try again later';
|
|
91
|
+
}
|
|
92
|
+
export class HistoryGetFailed extends InternalServerError {
|
|
93
|
+
id = 'HISTORY_GET_FAILED';
|
|
94
|
+
message = "The chat history couldn't be retrieved due to Telegram having internal problems. Please try again later";
|
|
95
|
+
}
|
|
96
|
+
export class ImageEngineDown extends InternalServerError {
|
|
97
|
+
id = 'IMAGE_ENGINE_DOWN';
|
|
98
|
+
message = 'Image engine down due to Telegram having internal problems. Please try again later';
|
|
99
|
+
}
|
|
100
|
+
export class InterdcCallError extends InternalServerError {
|
|
101
|
+
id = 'INTERDC_X_CALL_ERROR';
|
|
102
|
+
message = 'An error occurred while Telegram was intercommunicating with DC{value}. Please try again later';
|
|
103
|
+
}
|
|
104
|
+
export class InterdcCallRichError extends InternalServerError {
|
|
105
|
+
id = 'INTERDC_X_CALL_RICH_ERROR';
|
|
106
|
+
message = 'A rich error occurred while Telegram was intercommunicating with DC{value}. Please try again later';
|
|
107
|
+
}
|
|
108
|
+
export class MemberChatAddFailed extends InternalServerError {
|
|
109
|
+
id = 'MEMBER_CHAT_ADD_FAILED';
|
|
110
|
+
message = '';
|
|
111
|
+
}
|
|
112
|
+
export class MemberFetchFailed extends InternalServerError {
|
|
113
|
+
id = 'MEMBER_FETCH_FAILED';
|
|
114
|
+
message = 'Telegram is having internal problems. Please try again later';
|
|
115
|
+
}
|
|
116
|
+
export class MemberNotFound extends InternalServerError {
|
|
117
|
+
id = 'MEMBER_NOT_FOUND';
|
|
118
|
+
message = '';
|
|
119
|
+
}
|
|
120
|
+
export class MemberNoLocation extends InternalServerError {
|
|
121
|
+
id = 'MEMBER_NO_LOCATION';
|
|
122
|
+
message = "Couldn't find the member's location due to Telegram having internal problems. Please try again later";
|
|
123
|
+
}
|
|
124
|
+
export class MemberOccupyPrimaryLocFailed extends InternalServerError {
|
|
125
|
+
id = 'MEMBER_OCCUPY_PRIMARY_LOC_FAILED';
|
|
126
|
+
message = 'Telegram is having internal problems. Please try again later';
|
|
127
|
+
}
|
|
128
|
+
export class MemberOccupyUsernameFailed extends InternalServerError {
|
|
129
|
+
id = 'MEMBER_OCCUPY_USERNAME_FAILED';
|
|
130
|
+
message = 'Failure to occupy member username due to Telegram having internal problems. Please try again later';
|
|
131
|
+
}
|
|
132
|
+
export class MsgidDecreaseRetry extends InternalServerError {
|
|
133
|
+
id = 'MSGID_DECREASE_RETRY';
|
|
134
|
+
message = 'Telegram is having internal problems. Please try again later';
|
|
135
|
+
}
|
|
136
|
+
export class MsgRangeUnsync extends InternalServerError {
|
|
137
|
+
id = 'MSG_RANGE_UNSYNC';
|
|
138
|
+
message = 'Message range unsynchronized due to Telegram having internal problems. Please try again later';
|
|
139
|
+
}
|
|
140
|
+
export class MsgWaitFailed extends InternalServerError {
|
|
141
|
+
id = 'MSG_WAIT_FAILED';
|
|
142
|
+
message = 'A waiting call returned an error.';
|
|
143
|
+
}
|
|
144
|
+
export class MtSendQueueTooLong extends InternalServerError {
|
|
145
|
+
id = 'MT_SEND_QUEUE_TOO_LONG';
|
|
146
|
+
message = 'The MTProto send queue has grown too much due to Telegram having internal problems. Please try again later';
|
|
147
|
+
}
|
|
148
|
+
export class NeedChatInvalid extends InternalServerError {
|
|
149
|
+
id = 'NEED_CHAT_INVALID';
|
|
150
|
+
message = 'The provided chat is invalid';
|
|
151
|
+
}
|
|
152
|
+
export class NeedDocInvalid extends InternalServerError {
|
|
153
|
+
id = 'NEED_DOC_INVALID';
|
|
154
|
+
message = '';
|
|
155
|
+
}
|
|
156
|
+
export class NeedMemberInvalid extends InternalServerError {
|
|
157
|
+
id = 'NEED_MEMBER_INVALID';
|
|
158
|
+
message = 'The provided member is invalid or does not exist';
|
|
159
|
+
}
|
|
160
|
+
export class NoWorkersRunning extends InternalServerError {
|
|
161
|
+
id = 'No_workers_running';
|
|
162
|
+
message = 'The Telegram server is restarting its workers. Try again later.';
|
|
163
|
+
}
|
|
164
|
+
export class ParticipantCallFailed extends InternalServerError {
|
|
165
|
+
id = 'PARTICIPANT_CALL_FAILED';
|
|
166
|
+
message = 'Failure while making call due to Telegram having internal problems. Please try again later';
|
|
167
|
+
}
|
|
168
|
+
export class PasskeyAuthRestart extends InternalServerError {
|
|
169
|
+
id = 'PASSKEY_AUTH_RESTART';
|
|
170
|
+
message = '';
|
|
171
|
+
}
|
|
172
|
+
export class PersistentTimestampOutdated extends InternalServerError {
|
|
173
|
+
id = 'PERSISTENT_TIMESTAMP_OUTDATED';
|
|
174
|
+
message = 'Channel internal replication issues, try again later (treat this like an RPC_CALL_FAIL).';
|
|
175
|
+
}
|
|
176
|
+
export class PhotoCreateFailed extends InternalServerError {
|
|
177
|
+
id = 'PHOTO_CREATE_FAILED';
|
|
178
|
+
message = 'The creation of the photo failed due to Telegram having internal problems. Please try again later';
|
|
179
|
+
}
|
|
180
|
+
export class PostponedTimeout extends InternalServerError {
|
|
181
|
+
id = 'POSTPONED_TIMEOUT';
|
|
182
|
+
message = 'Telegram is having internal problems. Please try again later';
|
|
183
|
+
}
|
|
184
|
+
export class PtsChangeEmpty extends InternalServerError {
|
|
185
|
+
id = 'PTS_CHANGE_EMPTY';
|
|
186
|
+
message = 'No PTS change';
|
|
187
|
+
}
|
|
188
|
+
export class RandomIdDuplicate extends InternalServerError {
|
|
189
|
+
id = 'RANDOM_ID_DUPLICATE';
|
|
190
|
+
message = 'You provided a random ID that was already used.';
|
|
191
|
+
}
|
|
192
|
+
export class RegIdGenerateFailed extends InternalServerError {
|
|
193
|
+
id = 'REG_ID_GENERATE_FAILED';
|
|
194
|
+
message = 'The registration id failed to generate due to Telegram having internal problems. Please try again later';
|
|
195
|
+
}
|
|
196
|
+
export class RpcCallFail extends InternalServerError {
|
|
197
|
+
id = 'RPC_CALL_FAIL';
|
|
198
|
+
message = 'Telegram is having internal problems. Please try again later';
|
|
199
|
+
}
|
|
200
|
+
export class RpcConnectFailed extends InternalServerError {
|
|
201
|
+
id = 'RPC_CONNECT_FAILED';
|
|
202
|
+
message = 'Telegram is having internal problems. Please try again later';
|
|
203
|
+
}
|
|
204
|
+
export class RpcMcgetFail extends InternalServerError {
|
|
205
|
+
id = 'RPC_MCGET_FAIL';
|
|
206
|
+
message = 'Telegram is having internal problems. Please try again later';
|
|
207
|
+
}
|
|
208
|
+
export class SendMediaInvalid extends InternalServerError {
|
|
209
|
+
id = 'SEND_MEDIA_INVALID';
|
|
210
|
+
message = 'The specified media is invalid.';
|
|
211
|
+
}
|
|
212
|
+
export class SignInFailed extends InternalServerError {
|
|
213
|
+
id = 'SIGN_IN_FAILED';
|
|
214
|
+
message = 'Failure while signing in.';
|
|
215
|
+
}
|
|
216
|
+
export class StorageCheckFailed extends InternalServerError {
|
|
217
|
+
id = 'STORAGE_CHECK_FAILED';
|
|
218
|
+
message = 'Server storage check failed due to Telegram having internal problems. Please try again later';
|
|
219
|
+
}
|
|
220
|
+
export class StoreInvalidScalarType extends InternalServerError {
|
|
221
|
+
id = 'STORE_INVALID_SCALAR_TYPE';
|
|
222
|
+
message = 'Telegram is having internal problems. Please try again later';
|
|
223
|
+
}
|
|
224
|
+
export class TranslateReqFailed extends InternalServerError {
|
|
225
|
+
id = 'TRANSLATE_REQ_FAILED';
|
|
226
|
+
message = 'Translation failed, please try again later.';
|
|
227
|
+
}
|
|
228
|
+
export class TranslationTimeout extends InternalServerError {
|
|
229
|
+
id = 'TRANSLATION_TIMEOUT';
|
|
230
|
+
message = 'A timeout occurred while translating the specified text.';
|
|
231
|
+
}
|
|
232
|
+
export class UnknownMethod extends InternalServerError {
|
|
233
|
+
id = 'UNKNOWN_METHOD';
|
|
234
|
+
message = 'The method you tried to call cannot be called on non-CDN DCs';
|
|
235
|
+
}
|
|
236
|
+
export class UploadNoVolume extends InternalServerError {
|
|
237
|
+
id = 'UPLOAD_NO_VOLUME';
|
|
238
|
+
message = 'Telegram is having internal problems. Please try again later';
|
|
239
|
+
}
|
|
240
|
+
export class VolumeLocNotFound extends InternalServerError {
|
|
241
|
+
id = 'VOLUME_LOC_NOT_FOUND';
|
|
242
|
+
message = 'Telegram is having internal problems. Please try again later';
|
|
243
|
+
}
|
|
244
|
+
export class VolumeMoveInvalid extends InternalServerError {
|
|
245
|
+
id = 'VOLUME_MOVE_INVALID';
|
|
246
|
+
message = '';
|
|
247
|
+
}
|
|
248
|
+
export class WorkerBusyTooLongRetry extends InternalServerError {
|
|
249
|
+
id = 'WORKER_BUSY_TOO_LONG_RETRY';
|
|
250
|
+
message = 'Server workers are too busy right now due to Telegram having internal problems. Please try again later';
|
|
251
|
+
}
|
|
252
|
+
export class WpIdGenerateFailed extends InternalServerError {
|
|
253
|
+
id = 'WP_ID_GENERATE_FAILED';
|
|
254
|
+
message = 'Telegram is having internal problems. Please try again later';
|
|
255
|
+
}
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
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';
|
|
2
16
|
export declare class NotAcceptable extends RPCError {
|
|
3
17
|
code: number;
|
|
4
18
|
name: string;
|