@mtcute/tl 221.0.0 → 222.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/README.md +1 -1
- package/api-schema.json +1 -1
- package/binary/reader.js +41 -32
- package/binary/writer.js +57 -37
- package/compat/index.d.ts +397 -11
- package/compat/reader.js +23 -0
- package/index.d.ts +139 -39
- package/index.js +4 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _Long from 'long';
|
|
2
2
|
export declare namespace tl {
|
|
3
|
-
const LAYER =
|
|
3
|
+
const LAYER = 222;
|
|
4
4
|
|
|
5
5
|
function $extendTypes(types: Record<string, string>): void
|
|
6
6
|
|
|
@@ -1334,6 +1334,12 @@ export class RpcError extends Error {
|
|
|
1334
1334
|
*/
|
|
1335
1335
|
todo: tl.TypeTodoList;
|
|
1336
1336
|
}
|
|
1337
|
+
interface RawInputMediaStakeDice {
|
|
1338
|
+
_: 'inputMediaStakeDice';
|
|
1339
|
+
gameHash: string;
|
|
1340
|
+
tonAmount: Long;
|
|
1341
|
+
clientSeed: Uint8Array;
|
|
1342
|
+
}
|
|
1337
1343
|
/**
|
|
1338
1344
|
* Empty constructor, remove group photo.
|
|
1339
1345
|
*/
|
|
@@ -1883,6 +1889,7 @@ export class RpcError extends Error {
|
|
|
1883
1889
|
*/
|
|
1884
1890
|
botHasMainApp?: boolean;
|
|
1885
1891
|
botForumView?: boolean;
|
|
1892
|
+
botForumCanManageTopics?: boolean;
|
|
1886
1893
|
/**
|
|
1887
1894
|
* ID of the user, see
|
|
1888
1895
|
* <a href="https://core.telegram.org/api/peers#peer-id">here
|
|
@@ -2745,6 +2752,7 @@ export class RpcError extends Error {
|
|
|
2745
2752
|
* Is this a supergroup
|
|
2746
2753
|
*/
|
|
2747
2754
|
megagroup?: boolean;
|
|
2755
|
+
monoforum?: boolean;
|
|
2748
2756
|
/**
|
|
2749
2757
|
* Channel ID
|
|
2750
2758
|
*/
|
|
@@ -3736,7 +3744,6 @@ export class RpcError extends Error {
|
|
|
3736
3744
|
* well.
|
|
3737
3745
|
*/
|
|
3738
3746
|
ttlPeriod?: number;
|
|
3739
|
-
legacyIos?: boolean;
|
|
3740
3747
|
}
|
|
3741
3748
|
/**
|
|
3742
3749
|
* Empty constructor.
|
|
@@ -5321,6 +5328,7 @@ export class RpcError extends Error {
|
|
|
5321
5328
|
prepaidUpgrade?: boolean;
|
|
5322
5329
|
assigned?: boolean;
|
|
5323
5330
|
fromOffer?: boolean;
|
|
5331
|
+
craft?: boolean;
|
|
5324
5332
|
/**
|
|
5325
5333
|
* The collectible gift.
|
|
5326
5334
|
*/
|
|
@@ -5371,6 +5379,7 @@ export class RpcError extends Error {
|
|
|
5371
5379
|
*/
|
|
5372
5380
|
canResellAt?: number;
|
|
5373
5381
|
dropOriginalDetailsStars?: Long;
|
|
5382
|
+
canCraftAt?: number;
|
|
5374
5383
|
}
|
|
5375
5384
|
/**
|
|
5376
5385
|
* Sent from peer A to B, indicates that A refunded all
|
|
@@ -5598,6 +5607,14 @@ export class RpcError extends Error {
|
|
|
5598
5607
|
gift: tl.TypeStarGift;
|
|
5599
5608
|
price: tl.TypeStarsAmount;
|
|
5600
5609
|
}
|
|
5610
|
+
interface RawMessageActionNewCreatorPending {
|
|
5611
|
+
_: 'messageActionNewCreatorPending';
|
|
5612
|
+
newCreatorId: number;
|
|
5613
|
+
}
|
|
5614
|
+
interface RawMessageActionChangeCreator {
|
|
5615
|
+
_: 'messageActionChangeCreator';
|
|
5616
|
+
newCreatorId: number;
|
|
5617
|
+
}
|
|
5601
5618
|
/**
|
|
5602
5619
|
* Chat
|
|
5603
5620
|
*/
|
|
@@ -9679,6 +9696,13 @@ export class RpcError extends Error {
|
|
|
9679
9696
|
giftId: Long;
|
|
9680
9697
|
userState: tl.TypeStarGiftAuctionUserState;
|
|
9681
9698
|
}
|
|
9699
|
+
interface RawUpdateEmojiGameInfo {
|
|
9700
|
+
_: 'updateEmojiGameInfo';
|
|
9701
|
+
info: tl.messages.TypeEmojiGameInfo;
|
|
9702
|
+
}
|
|
9703
|
+
interface RawUpdateStarGiftCraftFail {
|
|
9704
|
+
_: 'updateStarGiftCraftFail';
|
|
9705
|
+
}
|
|
9682
9706
|
/**
|
|
9683
9707
|
* Too many updates, it is necessary to execute
|
|
9684
9708
|
* {@link updates.RawGetDifferenceRequest}.
|
|
@@ -12251,6 +12275,7 @@ export class RpcError extends Error {
|
|
|
12251
12275
|
*/
|
|
12252
12276
|
interface RawKeyboardButton {
|
|
12253
12277
|
_: 'keyboardButton';
|
|
12278
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12254
12279
|
/**
|
|
12255
12280
|
* Button text
|
|
12256
12281
|
*/
|
|
@@ -12261,6 +12286,7 @@ export class RpcError extends Error {
|
|
|
12261
12286
|
*/
|
|
12262
12287
|
interface RawKeyboardButtonUrl {
|
|
12263
12288
|
_: 'keyboardButtonUrl';
|
|
12289
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12264
12290
|
/**
|
|
12265
12291
|
* Button label
|
|
12266
12292
|
*/
|
|
@@ -12289,6 +12315,7 @@ export class RpcError extends Error {
|
|
|
12289
12315
|
* of a bot to another user.
|
|
12290
12316
|
*/
|
|
12291
12317
|
requiresPassword?: boolean;
|
|
12318
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12292
12319
|
/**
|
|
12293
12320
|
* Button text
|
|
12294
12321
|
*/
|
|
@@ -12303,6 +12330,7 @@ export class RpcError extends Error {
|
|
|
12303
12330
|
*/
|
|
12304
12331
|
interface RawKeyboardButtonRequestPhone {
|
|
12305
12332
|
_: 'keyboardButtonRequestPhone';
|
|
12333
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12306
12334
|
/**
|
|
12307
12335
|
* Button text
|
|
12308
12336
|
*/
|
|
@@ -12313,6 +12341,7 @@ export class RpcError extends Error {
|
|
|
12313
12341
|
*/
|
|
12314
12342
|
interface RawKeyboardButtonRequestGeoLocation {
|
|
12315
12343
|
_: 'keyboardButtonRequestGeoLocation';
|
|
12344
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12316
12345
|
/**
|
|
12317
12346
|
* Button text
|
|
12318
12347
|
*/
|
|
@@ -12332,6 +12361,7 @@ export class RpcError extends Error {
|
|
|
12332
12361
|
* chat's input field.
|
|
12333
12362
|
*/
|
|
12334
12363
|
samePeer?: boolean;
|
|
12364
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12335
12365
|
/**
|
|
12336
12366
|
* Button label
|
|
12337
12367
|
*/
|
|
@@ -12350,6 +12380,7 @@ export class RpcError extends Error {
|
|
|
12350
12380
|
*/
|
|
12351
12381
|
interface RawKeyboardButtonGame {
|
|
12352
12382
|
_: 'keyboardButtonGame';
|
|
12383
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12353
12384
|
/**
|
|
12354
12385
|
* Button text
|
|
12355
12386
|
*/
|
|
@@ -12360,6 +12391,7 @@ export class RpcError extends Error {
|
|
|
12360
12391
|
*/
|
|
12361
12392
|
interface RawKeyboardButtonBuy {
|
|
12362
12393
|
_: 'keyboardButtonBuy';
|
|
12394
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12363
12395
|
/**
|
|
12364
12396
|
* Button text
|
|
12365
12397
|
*/
|
|
@@ -12389,6 +12421,7 @@ export class RpcError extends Error {
|
|
|
12389
12421
|
*/
|
|
12390
12422
|
interface RawKeyboardButtonUrlAuth {
|
|
12391
12423
|
_: 'keyboardButtonUrlAuth';
|
|
12424
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12392
12425
|
/**
|
|
12393
12426
|
* Button label
|
|
12394
12427
|
*/
|
|
@@ -12434,6 +12467,7 @@ export class RpcError extends Error {
|
|
|
12434
12467
|
* messages to the user.
|
|
12435
12468
|
*/
|
|
12436
12469
|
requestWriteAccess?: boolean;
|
|
12470
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12437
12471
|
/**
|
|
12438
12472
|
* Button text
|
|
12439
12473
|
*/
|
|
@@ -12476,6 +12510,7 @@ export class RpcError extends Error {
|
|
|
12476
12510
|
*/
|
|
12477
12511
|
interface RawKeyboardButtonRequestPoll {
|
|
12478
12512
|
_: 'keyboardButtonRequestPoll';
|
|
12513
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12479
12514
|
/**
|
|
12480
12515
|
* If set, only quiz polls can be sent
|
|
12481
12516
|
*/
|
|
@@ -12490,6 +12525,7 @@ export class RpcError extends Error {
|
|
|
12490
12525
|
*/
|
|
12491
12526
|
interface RawInputKeyboardButtonUserProfile {
|
|
12492
12527
|
_: 'inputKeyboardButtonUserProfile';
|
|
12528
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12493
12529
|
/**
|
|
12494
12530
|
* Button text
|
|
12495
12531
|
*/
|
|
@@ -12504,6 +12540,7 @@ export class RpcError extends Error {
|
|
|
12504
12540
|
*/
|
|
12505
12541
|
interface RawKeyboardButtonUserProfile {
|
|
12506
12542
|
_: 'keyboardButtonUserProfile';
|
|
12543
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12507
12544
|
/**
|
|
12508
12545
|
* Button text
|
|
12509
12546
|
*/
|
|
@@ -12526,6 +12563,7 @@ export class RpcError extends Error {
|
|
|
12526
12563
|
*/
|
|
12527
12564
|
interface RawKeyboardButtonWebView {
|
|
12528
12565
|
_: 'keyboardButtonWebView';
|
|
12566
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12529
12567
|
/**
|
|
12530
12568
|
* Button text
|
|
12531
12569
|
*/
|
|
@@ -12548,6 +12586,7 @@ export class RpcError extends Error {
|
|
|
12548
12586
|
*/
|
|
12549
12587
|
interface RawKeyboardButtonSimpleWebView {
|
|
12550
12588
|
_: 'keyboardButtonSimpleWebView';
|
|
12589
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12551
12590
|
/**
|
|
12552
12591
|
* Button text
|
|
12553
12592
|
*/
|
|
@@ -12565,6 +12604,7 @@ export class RpcError extends Error {
|
|
|
12565
12604
|
*/
|
|
12566
12605
|
interface RawKeyboardButtonRequestPeer {
|
|
12567
12606
|
_: 'keyboardButtonRequestPeer';
|
|
12607
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12568
12608
|
/**
|
|
12569
12609
|
* Button text
|
|
12570
12610
|
*/
|
|
@@ -12610,6 +12650,7 @@ export class RpcError extends Error {
|
|
|
12610
12650
|
* Set this flag to request the peer's photo (if any).
|
|
12611
12651
|
*/
|
|
12612
12652
|
photoRequested?: boolean;
|
|
12653
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12613
12654
|
/**
|
|
12614
12655
|
* Button text
|
|
12615
12656
|
*/
|
|
@@ -12641,6 +12682,7 @@ export class RpcError extends Error {
|
|
|
12641
12682
|
*/
|
|
12642
12683
|
interface RawKeyboardButtonCopy {
|
|
12643
12684
|
_: 'keyboardButtonCopy';
|
|
12685
|
+
style?: tl.TypeKeyboardButtonStyle;
|
|
12644
12686
|
/**
|
|
12645
12687
|
* Title of the button
|
|
12646
12688
|
*/
|
|
@@ -19179,6 +19221,7 @@ export class RpcError extends Error {
|
|
|
19179
19221
|
* Whether the bot would like to send messages to the user
|
|
19180
19222
|
*/
|
|
19181
19223
|
requestWriteAccess?: boolean;
|
|
19224
|
+
requestPhoneNumber?: boolean;
|
|
19182
19225
|
/**
|
|
19183
19226
|
* Username of a bot, which will be used for user
|
|
19184
19227
|
* authorization. If not specified, the current bot's username
|
|
@@ -19193,6 +19236,10 @@ export class RpcError extends Error {
|
|
|
19193
19236
|
* in.
|
|
19194
19237
|
*/
|
|
19195
19238
|
domain: string;
|
|
19239
|
+
browser?: string;
|
|
19240
|
+
platform?: string;
|
|
19241
|
+
ip?: string;
|
|
19242
|
+
region?: string;
|
|
19196
19243
|
}
|
|
19197
19244
|
/**
|
|
19198
19245
|
* Details about an accepted authorization request, for more
|
|
@@ -19205,7 +19252,7 @@ export class RpcError extends Error {
|
|
|
19205
19252
|
/**
|
|
19206
19253
|
* The URL name of the website on which the user has logged in.
|
|
19207
19254
|
*/
|
|
19208
|
-
url
|
|
19255
|
+
url?: string;
|
|
19209
19256
|
}
|
|
19210
19257
|
/**
|
|
19211
19258
|
* Details about an accepted authorization request, for more
|
|
@@ -25956,6 +26003,8 @@ export class RpcError extends Error {
|
|
|
25956
26003
|
* here »</a> for more info on how to use it.
|
|
25957
26004
|
*/
|
|
25958
26005
|
themeAvailable?: boolean;
|
|
26006
|
+
burned?: boolean;
|
|
26007
|
+
crafted?: boolean;
|
|
25959
26008
|
/**
|
|
25960
26009
|
* Identifier of the collectible gift.
|
|
25961
26010
|
*/
|
|
@@ -26051,6 +26100,7 @@ export class RpcError extends Error {
|
|
|
26051
26100
|
peerColor?: tl.TypePeerColor;
|
|
26052
26101
|
hostId?: tl.TypePeer;
|
|
26053
26102
|
offerMinStars?: number;
|
|
26103
|
+
craftChancePermille?: number;
|
|
26054
26104
|
}
|
|
26055
26105
|
/**
|
|
26056
26106
|
* Report menu option
|
|
@@ -26317,6 +26367,7 @@ export class RpcError extends Error {
|
|
|
26317
26367
|
*/
|
|
26318
26368
|
interface RawStarGiftAttributeModel {
|
|
26319
26369
|
_: 'starGiftAttributeModel';
|
|
26370
|
+
crafted?: boolean;
|
|
26320
26371
|
/**
|
|
26321
26372
|
* Name of the model
|
|
26322
26373
|
*/
|
|
@@ -26327,11 +26378,7 @@ export class RpcError extends Error {
|
|
|
26327
26378
|
* representing the upgraded gift
|
|
26328
26379
|
*/
|
|
26329
26380
|
document: tl.TypeDocument;
|
|
26330
|
-
|
|
26331
|
-
* The number of upgraded gifts that receive this backdrop for
|
|
26332
|
-
* each 1000 gifts upgraded.
|
|
26333
|
-
*/
|
|
26334
|
-
rarityPermille: number;
|
|
26381
|
+
rarity: tl.TypeStarGiftAttributeRarity;
|
|
26335
26382
|
}
|
|
26336
26383
|
/**
|
|
26337
26384
|
* A
|
|
@@ -26350,11 +26397,7 @@ export class RpcError extends Error {
|
|
|
26350
26397
|
* The symbol
|
|
26351
26398
|
*/
|
|
26352
26399
|
document: tl.TypeDocument;
|
|
26353
|
-
|
|
26354
|
-
* The number of upgraded gifts that receive this backdrop for
|
|
26355
|
-
* each 1000 gifts upgraded.
|
|
26356
|
-
*/
|
|
26357
|
-
rarityPermille: number;
|
|
26400
|
+
rarity: tl.TypeStarGiftAttributeRarity;
|
|
26358
26401
|
}
|
|
26359
26402
|
/**
|
|
26360
26403
|
* The backdrop of a
|
|
@@ -26388,11 +26431,7 @@ export class RpcError extends Error {
|
|
|
26388
26431
|
* Color of the text on the backdrop in RGB24 format.
|
|
26389
26432
|
*/
|
|
26390
26433
|
textColor: number;
|
|
26391
|
-
|
|
26392
|
-
* The number of upgraded gifts that receive this backdrop for
|
|
26393
|
-
* each 1000 gifts upgraded.
|
|
26394
|
-
*/
|
|
26395
|
-
rarityPermille: number;
|
|
26434
|
+
rarity: tl.TypeStarGiftAttributeRarity;
|
|
26396
26435
|
}
|
|
26397
26436
|
/**
|
|
26398
26437
|
* Info about the sender, receiver and message attached to the
|
|
@@ -26548,6 +26587,7 @@ export class RpcError extends Error {
|
|
|
26548
26587
|
prepaidUpgradeHash?: string;
|
|
26549
26588
|
dropOriginalDetailsStars?: Long;
|
|
26550
26589
|
giftNum?: number;
|
|
26590
|
+
canCraftAt?: number;
|
|
26551
26591
|
}
|
|
26552
26592
|
/**
|
|
26553
26593
|
* A gift received in a private chat with another user.
|
|
@@ -27267,6 +27307,10 @@ export class RpcError extends Error {
|
|
|
27267
27307
|
rawId: string;
|
|
27268
27308
|
response: tl.TypeInputPasskeyResponse;
|
|
27269
27309
|
}
|
|
27310
|
+
interface RawInputPasskeyCredentialFirebasePNV {
|
|
27311
|
+
_: 'inputPasskeyCredentialFirebasePNV';
|
|
27312
|
+
pnvToken: string;
|
|
27313
|
+
}
|
|
27270
27314
|
interface RawStarGiftBackground {
|
|
27271
27315
|
_: 'starGiftBackground';
|
|
27272
27316
|
centerColor: number;
|
|
@@ -27285,19 +27329,28 @@ export class RpcError extends Error {
|
|
|
27285
27329
|
extendTop: number;
|
|
27286
27330
|
extendWindow: number;
|
|
27287
27331
|
}
|
|
27288
|
-
interface
|
|
27289
|
-
_: '
|
|
27290
|
-
|
|
27291
|
-
tonAmount: Long;
|
|
27292
|
-
clientSeed: Uint8Array;
|
|
27332
|
+
interface RawStarGiftAttributeRarity {
|
|
27333
|
+
_: 'starGiftAttributeRarity';
|
|
27334
|
+
permille: number;
|
|
27293
27335
|
}
|
|
27294
|
-
interface
|
|
27295
|
-
_: '
|
|
27296
|
-
info: tl.messages.TypeEmojiGameInfo;
|
|
27336
|
+
interface RawStarGiftAttributeRarityUncommon {
|
|
27337
|
+
_: 'starGiftAttributeRarityUncommon';
|
|
27297
27338
|
}
|
|
27298
|
-
interface
|
|
27299
|
-
_: '
|
|
27300
|
-
|
|
27339
|
+
interface RawStarGiftAttributeRarityRare {
|
|
27340
|
+
_: 'starGiftAttributeRarityRare';
|
|
27341
|
+
}
|
|
27342
|
+
interface RawStarGiftAttributeRarityEpic {
|
|
27343
|
+
_: 'starGiftAttributeRarityEpic';
|
|
27344
|
+
}
|
|
27345
|
+
interface RawStarGiftAttributeRarityLegendary {
|
|
27346
|
+
_: 'starGiftAttributeRarityLegendary';
|
|
27347
|
+
}
|
|
27348
|
+
interface RawKeyboardButtonStyle {
|
|
27349
|
+
_: 'keyboardButtonStyle';
|
|
27350
|
+
bgPrimary?: boolean;
|
|
27351
|
+
bgDanger?: boolean;
|
|
27352
|
+
bgSuccess?: boolean;
|
|
27353
|
+
icon?: Long;
|
|
27301
27354
|
}
|
|
27302
27355
|
/**
|
|
27303
27356
|
* A
|
|
@@ -27688,7 +27741,7 @@ export class RpcError extends Error {
|
|
|
27688
27741
|
/**
|
|
27689
27742
|
* Object describing actions connected to a service message.
|
|
27690
27743
|
*/
|
|
27691
|
-
type TypeMessageAction = tl.RawMessageActionEmpty | tl.RawMessageActionChatCreate | tl.RawMessageActionChatEditTitle | tl.RawMessageActionChatEditPhoto | tl.RawMessageActionChatDeletePhoto | tl.RawMessageActionChatAddUser | tl.RawMessageActionChatDeleteUser | tl.RawMessageActionChatJoinedByLink | tl.RawMessageActionChannelCreate | tl.RawMessageActionChatMigrateTo | tl.RawMessageActionChannelMigrateFrom | tl.RawMessageActionPinMessage | tl.RawMessageActionHistoryClear | tl.RawMessageActionGameScore | tl.RawMessageActionPaymentSentMe | tl.RawMessageActionPaymentSent | tl.RawMessageActionPhoneCall | tl.RawMessageActionScreenshotTaken | tl.RawMessageActionCustomAction | tl.RawMessageActionBotAllowed | tl.RawMessageActionSecureValuesSentMe | tl.RawMessageActionSecureValuesSent | tl.RawMessageActionContactSignUp | tl.RawMessageActionGeoProximityReached | tl.RawMessageActionGroupCall | tl.RawMessageActionInviteToGroupCall | tl.RawMessageActionSetMessagesTTL | tl.RawMessageActionGroupCallScheduled | tl.RawMessageActionSetChatTheme | tl.RawMessageActionChatJoinedByRequest | tl.RawMessageActionWebViewDataSentMe | tl.RawMessageActionWebViewDataSent | tl.RawMessageActionGiftPremium | tl.RawMessageActionTopicCreate | tl.RawMessageActionTopicEdit | tl.RawMessageActionSuggestProfilePhoto | tl.RawMessageActionRequestedPeer | tl.RawMessageActionSetChatWallPaper | tl.RawMessageActionGiftCode | tl.RawMessageActionGiveawayLaunch | tl.RawMessageActionGiveawayResults | tl.RawMessageActionBoostApply | tl.RawMessageActionRequestedPeerSentMe | tl.RawMessageActionPaymentRefunded | tl.RawMessageActionGiftStars | tl.RawMessageActionPrizeStars | tl.RawMessageActionStarGift | tl.RawMessageActionStarGiftUnique | tl.RawMessageActionPaidMessagesRefunded | tl.RawMessageActionPaidMessagesPrice | tl.RawMessageActionConferenceCall | tl.RawMessageActionTodoCompletions | tl.RawMessageActionTodoAppendTasks | tl.RawMessageActionSuggestedPostApproval | tl.RawMessageActionSuggestedPostSuccess | tl.RawMessageActionSuggestedPostRefund | tl.RawMessageActionGiftTon | tl.RawMessageActionSuggestBirthday | tl.RawMessageActionStarGiftPurchaseOffer | tl.RawMessageActionStarGiftPurchaseOfferDeclined
|
|
27744
|
+
type TypeMessageAction = tl.RawMessageActionEmpty | tl.RawMessageActionChatCreate | tl.RawMessageActionChatEditTitle | tl.RawMessageActionChatEditPhoto | tl.RawMessageActionChatDeletePhoto | tl.RawMessageActionChatAddUser | tl.RawMessageActionChatDeleteUser | tl.RawMessageActionChatJoinedByLink | tl.RawMessageActionChannelCreate | tl.RawMessageActionChatMigrateTo | tl.RawMessageActionChannelMigrateFrom | tl.RawMessageActionPinMessage | tl.RawMessageActionHistoryClear | tl.RawMessageActionGameScore | tl.RawMessageActionPaymentSentMe | tl.RawMessageActionPaymentSent | tl.RawMessageActionPhoneCall | tl.RawMessageActionScreenshotTaken | tl.RawMessageActionCustomAction | tl.RawMessageActionBotAllowed | tl.RawMessageActionSecureValuesSentMe | tl.RawMessageActionSecureValuesSent | tl.RawMessageActionContactSignUp | tl.RawMessageActionGeoProximityReached | tl.RawMessageActionGroupCall | tl.RawMessageActionInviteToGroupCall | tl.RawMessageActionSetMessagesTTL | tl.RawMessageActionGroupCallScheduled | tl.RawMessageActionSetChatTheme | tl.RawMessageActionChatJoinedByRequest | tl.RawMessageActionWebViewDataSentMe | tl.RawMessageActionWebViewDataSent | tl.RawMessageActionGiftPremium | tl.RawMessageActionTopicCreate | tl.RawMessageActionTopicEdit | tl.RawMessageActionSuggestProfilePhoto | tl.RawMessageActionRequestedPeer | tl.RawMessageActionSetChatWallPaper | tl.RawMessageActionGiftCode | tl.RawMessageActionGiveawayLaunch | tl.RawMessageActionGiveawayResults | tl.RawMessageActionBoostApply | tl.RawMessageActionRequestedPeerSentMe | tl.RawMessageActionPaymentRefunded | tl.RawMessageActionGiftStars | tl.RawMessageActionPrizeStars | tl.RawMessageActionStarGift | tl.RawMessageActionStarGiftUnique | tl.RawMessageActionPaidMessagesRefunded | tl.RawMessageActionPaidMessagesPrice | tl.RawMessageActionConferenceCall | tl.RawMessageActionTodoCompletions | tl.RawMessageActionTodoAppendTasks | tl.RawMessageActionSuggestedPostApproval | tl.RawMessageActionSuggestedPostSuccess | tl.RawMessageActionSuggestedPostRefund | tl.RawMessageActionGiftTon | tl.RawMessageActionSuggestBirthday | tl.RawMessageActionStarGiftPurchaseOffer | tl.RawMessageActionStarGiftPurchaseOfferDeclined | tl.RawMessageActionNewCreatorPending | tl.RawMessageActionChangeCreator
|
|
27692
27745
|
function isAnyMessageAction(o: object): o is TypeMessageAction
|
|
27693
27746
|
/**
|
|
27694
27747
|
* Chat info.
|
|
@@ -27771,7 +27824,7 @@ export class RpcError extends Error {
|
|
|
27771
27824
|
/**
|
|
27772
27825
|
* Object contains info on events occurred.
|
|
27773
27826
|
*/
|
|
27774
|
-
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.RawUpdateGroupCallChainBlocks | tl.RawUpdateReadMonoForumInbox | tl.RawUpdateReadMonoForumOutbox | tl.RawUpdateMonoForumNoPaidException | tl.RawUpdateGroupCallMessage | tl.RawUpdateGroupCallEncryptedMessage | tl.RawUpdatePinnedForumTopic | tl.RawUpdatePinnedForumTopics | tl.RawUpdateDeleteGroupCallMessages | tl.RawUpdateStarGiftAuctionState | tl.RawUpdateStarGiftAuctionUserState | tl.RawUpdateEmojiGameInfo | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.mtcute.RawDummyUpdate
|
|
27827
|
+
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.RawUpdateGroupCallChainBlocks | tl.RawUpdateReadMonoForumInbox | tl.RawUpdateReadMonoForumOutbox | tl.RawUpdateMonoForumNoPaidException | tl.RawUpdateGroupCallMessage | tl.RawUpdateGroupCallEncryptedMessage | tl.RawUpdatePinnedForumTopic | tl.RawUpdatePinnedForumTopics | tl.RawUpdateDeleteGroupCallMessages | tl.RawUpdateStarGiftAuctionState | tl.RawUpdateStarGiftAuctionUserState | tl.RawUpdateEmojiGameInfo | tl.RawUpdateStarGiftCraftFail | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.mtcute.RawDummyUpdate
|
|
27775
27828
|
function isAnyUpdate(o: object): o is TypeUpdate
|
|
27776
27829
|
/**
|
|
27777
27830
|
* Object which is perceived by the client without a call on
|
|
@@ -29726,6 +29779,10 @@ export class RpcError extends Error {
|
|
|
29726
29779
|
function isAnyStarGiftBackground(o: object): o is TypeStarGiftBackground
|
|
29727
29780
|
type TypeStarGiftAuctionRound = tl.RawStarGiftAuctionRound | tl.RawStarGiftAuctionRoundExtendable
|
|
29728
29781
|
function isAnyStarGiftAuctionRound(o: object): o is TypeStarGiftAuctionRound
|
|
29782
|
+
type TypeStarGiftAttributeRarity = tl.RawStarGiftAttributeRarity | tl.RawStarGiftAttributeRarityUncommon | tl.RawStarGiftAttributeRarityRare | tl.RawStarGiftAttributeRarityEpic | tl.RawStarGiftAttributeRarityLegendary
|
|
29783
|
+
function isAnyStarGiftAttributeRarity(o: object): o is TypeStarGiftAttributeRarity
|
|
29784
|
+
type TypeKeyboardButtonStyle = tl.RawKeyboardButtonStyle
|
|
29785
|
+
function isAnyKeyboardButtonStyle(o: object): o is TypeKeyboardButtonStyle
|
|
29729
29786
|
|
|
29730
29787
|
namespace storage {
|
|
29731
29788
|
/**
|
|
@@ -36195,6 +36252,7 @@ export class RpcError extends Error {
|
|
|
36195
36252
|
* requested)
|
|
36196
36253
|
*/
|
|
36197
36254
|
writeAllowed?: boolean;
|
|
36255
|
+
sharePhoneNumber?: boolean;
|
|
36198
36256
|
/**
|
|
36199
36257
|
* The location of the message
|
|
36200
36258
|
*/
|
|
@@ -46366,6 +46424,13 @@ export class RpcError extends Error {
|
|
|
46366
46424
|
*/
|
|
46367
46425
|
tab: tl.TypeProfileTab;
|
|
46368
46426
|
}
|
|
46427
|
+
/**
|
|
46428
|
+
* RPC method returns {@link tl.TypeUser}
|
|
46429
|
+
*/
|
|
46430
|
+
interface RawGetFutureCreatorAfterLeaveRequest {
|
|
46431
|
+
_: 'channels.getFutureCreatorAfterLeave';
|
|
46432
|
+
channel: tl.TypeInputChannel;
|
|
46433
|
+
}
|
|
46369
46434
|
/**
|
|
46370
46435
|
* Create a <a href="https://core.telegram.org/api/forum">forum
|
|
46371
46436
|
* topic</a>; requires
|
|
@@ -46648,6 +46713,7 @@ export class RpcError extends Error {
|
|
|
46648
46713
|
'channels.getMessageAuthor': tl.TypeUser
|
|
46649
46714
|
'channels.checkSearchPostsFlood': tl.TypeSearchPostsFlood
|
|
46650
46715
|
'channels.setMainProfileTab': boolean
|
|
46716
|
+
'channels.getFutureCreatorAfterLeave': tl.TypeUser
|
|
46651
46717
|
'channels.createForumTopic': tl.TypeUpdates
|
|
46652
46718
|
'channels.getForumTopics': tl.messages.TypeForumTopics
|
|
46653
46719
|
'channels.getForumTopicsByID': tl.messages.TypeForumTopics
|
|
@@ -48735,6 +48801,7 @@ export class RpcError extends Error {
|
|
|
48735
48801
|
* Sort gifts by number (ascending).
|
|
48736
48802
|
*/
|
|
48737
48803
|
sortByNum?: boolean;
|
|
48804
|
+
forCraft?: boolean;
|
|
48738
48805
|
/**
|
|
48739
48806
|
* If a previous call to the method was made and
|
|
48740
48807
|
* {@link payments.RawResaleStarGifts}.<code>attributes_hash</code>
|
|
@@ -48996,6 +49063,22 @@ export class RpcError extends Error {
|
|
|
48996
49063
|
_: 'payments.getStarGiftUpgradeAttributes';
|
|
48997
49064
|
giftId: Long;
|
|
48998
49065
|
}
|
|
49066
|
+
/**
|
|
49067
|
+
* RPC method returns {@link tl.payments.TypeSavedStarGifts}
|
|
49068
|
+
*/
|
|
49069
|
+
interface RawGetCraftStarGiftsRequest {
|
|
49070
|
+
_: 'payments.getCraftStarGifts';
|
|
49071
|
+
giftId: Long;
|
|
49072
|
+
offset: string;
|
|
49073
|
+
limit: number;
|
|
49074
|
+
}
|
|
49075
|
+
/**
|
|
49076
|
+
* RPC method returns {@link tl.TypeUpdates}
|
|
49077
|
+
*/
|
|
49078
|
+
interface RawCraftStarGiftRequest {
|
|
49079
|
+
_: 'payments.craftStarGift';
|
|
49080
|
+
stargift: tl.TypeInputSavedStarGift[];
|
|
49081
|
+
}
|
|
48999
49082
|
interface RpcCallReturn {
|
|
49000
49083
|
'payments.getPaymentForm': tl.payments.TypePaymentForm
|
|
49001
49084
|
'payments.getPaymentReceipt': tl.payments.TypePaymentReceipt
|
|
@@ -49060,6 +49143,8 @@ export class RpcError extends Error {
|
|
|
49060
49143
|
'payments.resolveStarGiftOffer': tl.TypeUpdates
|
|
49061
49144
|
'payments.sendStarGiftOffer': tl.TypeUpdates
|
|
49062
49145
|
'payments.getStarGiftUpgradeAttributes': tl.payments.TypeStarGiftUpgradeAttributes
|
|
49146
|
+
'payments.getCraftStarGifts': tl.payments.TypeSavedStarGifts
|
|
49147
|
+
'payments.craftStarGift': tl.TypeUpdates
|
|
49063
49148
|
}
|
|
49064
49149
|
/**
|
|
49065
49150
|
* Payment form
|
|
@@ -54170,7 +54255,7 @@ export class RpcError extends Error {
|
|
|
54170
54255
|
/**
|
|
54171
54256
|
* Object contains info on events occurred.
|
|
54172
54257
|
*/
|
|
54173
|
-
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.RawUpdateGroupCallChainBlocks | tl.RawUpdateReadMonoForumInbox | tl.RawUpdateReadMonoForumOutbox | tl.RawUpdateMonoForumNoPaidException | tl.RawUpdateGroupCallMessage | tl.RawUpdateGroupCallEncryptedMessage | tl.RawUpdatePinnedForumTopic | tl.RawUpdatePinnedForumTopics | tl.RawUpdateDeleteGroupCallMessages | tl.RawUpdateStarGiftAuctionState | tl.RawUpdateStarGiftAuctionUserState | tl.RawUpdateEmojiGameInfo | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.mtcute.RawDummyUpdate
|
|
54258
|
+
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.RawUpdateGroupCallChainBlocks | tl.RawUpdateReadMonoForumInbox | tl.RawUpdateReadMonoForumOutbox | tl.RawUpdateMonoForumNoPaidException | tl.RawUpdateGroupCallMessage | tl.RawUpdateGroupCallEncryptedMessage | tl.RawUpdatePinnedForumTopic | tl.RawUpdatePinnedForumTopics | tl.RawUpdateDeleteGroupCallMessages | tl.RawUpdateStarGiftAuctionState | tl.RawUpdateStarGiftAuctionUserState | tl.RawUpdateEmojiGameInfo | tl.RawUpdateStarGiftCraftFail | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.mtcute.RawDummyUpdate
|
|
54174
54259
|
function isAnyUpdate(o: object): o is TypeUpdate
|
|
54175
54260
|
/**
|
|
54176
54261
|
* Peer
|
|
@@ -54742,6 +54827,8 @@ export class RpcError extends Error {
|
|
|
54742
54827
|
| tl.messages.RawReorderPinnedForumTopicsRequest
|
|
54743
54828
|
| tl.messages.RawCreateForumTopicRequest
|
|
54744
54829
|
| tl.messages.RawDeleteTopicHistoryRequest
|
|
54830
|
+
| tl.messages.RawGetEmojiGameInfoRequest
|
|
54831
|
+
| tl.messages.RawSummarizeTextRequest
|
|
54745
54832
|
| tl.updates.RawGetStateRequest
|
|
54746
54833
|
| tl.updates.RawGetDifferenceRequest
|
|
54747
54834
|
| tl.updates.RawGetChannelDifferenceRequest
|
|
@@ -54842,6 +54929,7 @@ export class RpcError extends Error {
|
|
|
54842
54929
|
| tl.channels.RawGetMessageAuthorRequest
|
|
54843
54930
|
| tl.channels.RawCheckSearchPostsFloodRequest
|
|
54844
54931
|
| tl.channels.RawSetMainProfileTabRequest
|
|
54932
|
+
| tl.channels.RawGetFutureCreatorAfterLeaveRequest
|
|
54845
54933
|
| tl.bots.RawSendCustomRequestRequest
|
|
54846
54934
|
| tl.bots.RawAnswerWebhookJSONQueryRequest
|
|
54847
54935
|
| tl.bots.RawSetBotCommandsRequest
|
|
@@ -54935,6 +55023,8 @@ export class RpcError extends Error {
|
|
|
54935
55023
|
| tl.payments.RawResolveStarGiftOfferRequest
|
|
54936
55024
|
| tl.payments.RawSendStarGiftOfferRequest
|
|
54937
55025
|
| tl.payments.RawGetStarGiftUpgradeAttributesRequest
|
|
55026
|
+
| tl.payments.RawGetCraftStarGiftsRequest
|
|
55027
|
+
| tl.payments.RawCraftStarGiftRequest
|
|
54938
55028
|
| tl.stickers.RawCreateStickerSetRequest
|
|
54939
55029
|
| tl.stickers.RawRemoveStickerFromSetRequest
|
|
54940
55030
|
| tl.stickers.RawChangeStickerPositionRequest
|
|
@@ -55059,8 +55149,6 @@ export class RpcError extends Error {
|
|
|
55059
55149
|
| tl.smsjobs.RawGetSmsJobRequest
|
|
55060
55150
|
| tl.smsjobs.RawFinishJobRequest
|
|
55061
55151
|
| tl.fragment.RawGetCollectibleInfoRequest
|
|
55062
|
-
| tl.messages.RawGetEmojiGameInfoRequest
|
|
55063
|
-
| tl.messages.RawSummarizeTextRequest
|
|
55064
55152
|
| tl.channels.RawCreateForumTopicRequest
|
|
55065
55153
|
| tl.channels.RawGetForumTopicsRequest
|
|
55066
55154
|
| tl.channels.RawGetForumTopicsByIDRequest
|
|
@@ -55108,6 +55196,7 @@ export class RpcError extends Error {
|
|
|
55108
55196
|
| tl.RawInputMediaWebPage
|
|
55109
55197
|
| tl.RawInputMediaPaidMedia
|
|
55110
55198
|
| tl.RawInputMediaTodo
|
|
55199
|
+
| tl.RawInputMediaStakeDice
|
|
55111
55200
|
| tl.RawInputChatPhotoEmpty
|
|
55112
55201
|
| tl.RawInputChatUploadedPhoto
|
|
55113
55202
|
| tl.RawInputChatPhoto
|
|
@@ -55244,6 +55333,8 @@ export class RpcError extends Error {
|
|
|
55244
55333
|
| tl.RawMessageActionSuggestBirthday
|
|
55245
55334
|
| tl.RawMessageActionStarGiftPurchaseOffer
|
|
55246
55335
|
| tl.RawMessageActionStarGiftPurchaseOfferDeclined
|
|
55336
|
+
| tl.RawMessageActionNewCreatorPending
|
|
55337
|
+
| tl.RawMessageActionChangeCreator
|
|
55247
55338
|
| tl.RawDialog
|
|
55248
55339
|
| tl.RawDialogFolder
|
|
55249
55340
|
| tl.RawPhotoEmpty
|
|
@@ -55469,6 +55560,8 @@ export class RpcError extends Error {
|
|
|
55469
55560
|
| tl.RawUpdateDeleteGroupCallMessages
|
|
55470
55561
|
| tl.RawUpdateStarGiftAuctionState
|
|
55471
55562
|
| tl.RawUpdateStarGiftAuctionUserState
|
|
55563
|
+
| tl.RawUpdateEmojiGameInfo
|
|
55564
|
+
| tl.RawUpdateStarGiftCraftFail
|
|
55472
55565
|
| tl.updates.RawState
|
|
55473
55566
|
| tl.updates.RawDifferenceEmpty
|
|
55474
55567
|
| tl.updates.RawDifference
|
|
@@ -56590,16 +56683,20 @@ export class RpcError extends Error {
|
|
|
56590
56683
|
| tl.RawInputPasskeyResponseRegister
|
|
56591
56684
|
| tl.RawInputPasskeyResponseLogin
|
|
56592
56685
|
| tl.RawInputPasskeyCredentialPublicKey
|
|
56686
|
+
| tl.RawInputPasskeyCredentialFirebasePNV
|
|
56593
56687
|
| tl.RawStarGiftBackground
|
|
56594
56688
|
| tl.RawStarGiftAuctionRound
|
|
56595
56689
|
| tl.RawStarGiftAuctionRoundExtendable
|
|
56596
56690
|
| tl.payments.RawStarGiftUpgradeAttributes
|
|
56597
|
-
| tl.RawInputMediaStakeDice
|
|
56598
|
-
| tl.RawUpdateEmojiGameInfo
|
|
56599
|
-
| tl.RawInputPasskeyCredentialFirebasePNV
|
|
56600
56691
|
| tl.messages.RawEmojiGameOutcome
|
|
56601
56692
|
| tl.messages.RawEmojiGameUnavailable
|
|
56602
56693
|
| tl.messages.RawEmojiGameDiceInfo
|
|
56694
|
+
| tl.RawStarGiftAttributeRarity
|
|
56695
|
+
| tl.RawStarGiftAttributeRarityUncommon
|
|
56696
|
+
| tl.RawStarGiftAttributeRarityRare
|
|
56697
|
+
| tl.RawStarGiftAttributeRarityEpic
|
|
56698
|
+
| tl.RawStarGiftAttributeRarityLegendary
|
|
56699
|
+
| tl.RawKeyboardButtonStyle
|
|
56603
56700
|
| tl.RawUpdateChannelPinnedTopic
|
|
56604
56701
|
| tl.RawUpdateChannelPinnedTopics
|
|
56605
56702
|
| tl.mtcute.RawDummyUpdate
|
|
@@ -57037,6 +57134,8 @@ export class RpcError extends Error {
|
|
|
57037
57134
|
| tl.messages.RawReorderPinnedForumTopicsRequest
|
|
57038
57135
|
| tl.messages.RawCreateForumTopicRequest
|
|
57039
57136
|
| tl.messages.RawDeleteTopicHistoryRequest
|
|
57137
|
+
| tl.messages.RawGetEmojiGameInfoRequest
|
|
57138
|
+
| tl.messages.RawSummarizeTextRequest
|
|
57040
57139
|
| tl.updates.RawGetStateRequest
|
|
57041
57140
|
| tl.updates.RawGetDifferenceRequest
|
|
57042
57141
|
| tl.updates.RawGetChannelDifferenceRequest
|
|
@@ -57137,6 +57236,7 @@ export class RpcError extends Error {
|
|
|
57137
57236
|
| tl.channels.RawGetMessageAuthorRequest
|
|
57138
57237
|
| tl.channels.RawCheckSearchPostsFloodRequest
|
|
57139
57238
|
| tl.channels.RawSetMainProfileTabRequest
|
|
57239
|
+
| tl.channels.RawGetFutureCreatorAfterLeaveRequest
|
|
57140
57240
|
| tl.bots.RawSendCustomRequestRequest
|
|
57141
57241
|
| tl.bots.RawAnswerWebhookJSONQueryRequest
|
|
57142
57242
|
| tl.bots.RawSetBotCommandsRequest
|
|
@@ -57230,6 +57330,8 @@ export class RpcError extends Error {
|
|
|
57230
57330
|
| tl.payments.RawResolveStarGiftOfferRequest
|
|
57231
57331
|
| tl.payments.RawSendStarGiftOfferRequest
|
|
57232
57332
|
| tl.payments.RawGetStarGiftUpgradeAttributesRequest
|
|
57333
|
+
| tl.payments.RawGetCraftStarGiftsRequest
|
|
57334
|
+
| tl.payments.RawCraftStarGiftRequest
|
|
57233
57335
|
| tl.stickers.RawCreateStickerSetRequest
|
|
57234
57336
|
| tl.stickers.RawRemoveStickerFromSetRequest
|
|
57235
57337
|
| tl.stickers.RawChangeStickerPositionRequest
|
|
@@ -57354,8 +57456,6 @@ export class RpcError extends Error {
|
|
|
57354
57456
|
| tl.smsjobs.RawGetSmsJobRequest
|
|
57355
57457
|
| tl.smsjobs.RawFinishJobRequest
|
|
57356
57458
|
| tl.fragment.RawGetCollectibleInfoRequest
|
|
57357
|
-
| tl.messages.RawGetEmojiGameInfoRequest
|
|
57358
|
-
| tl.messages.RawSummarizeTextRequest
|
|
57359
57459
|
| tl.channels.RawCreateForumTopicRequest
|
|
57360
57460
|
| tl.channels.RawGetForumTopicsRequest
|
|
57361
57461
|
| tl.channels.RawGetForumTopicsByIDRequest
|