@mtcute/core 0.29.4 → 0.29.5

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.
Files changed (64) hide show
  1. package/highlevel/base.cjs +0 -1
  2. package/highlevel/base.js +0 -1
  3. package/highlevel/methods/chats/get-creator-after-leave.cjs +4 -14
  4. package/highlevel/methods/chats/get-creator-after-leave.js +5 -15
  5. package/highlevel/methods/files/normalize-input-media.cjs +16 -14
  6. package/highlevel/methods/files/normalize-input-media.js +16 -14
  7. package/highlevel/methods/messages/close-poll.cjs +2 -1
  8. package/highlevel/methods/messages/close-poll.js +2 -1
  9. package/highlevel/methods/messages/send-vote.cjs +3 -1
  10. package/highlevel/methods/messages/send-vote.js +4 -2
  11. package/highlevel/storage/service/peers.cjs +1 -0
  12. package/highlevel/storage/service/peers.js +1 -0
  13. package/highlevel/types/media/input-media/types.d.cts +10 -13
  14. package/highlevel/types/media/input-media/types.d.ts +10 -13
  15. package/highlevel/types/media/poll.cjs +4 -1
  16. package/highlevel/types/media/poll.d.cts +2 -2
  17. package/highlevel/types/media/poll.d.ts +2 -2
  18. package/highlevel/types/media/poll.js +4 -1
  19. package/highlevel/types/messages/dialog.cjs +4 -0
  20. package/highlevel/types/messages/dialog.d.cts +2 -0
  21. package/highlevel/types/messages/dialog.d.ts +2 -0
  22. package/highlevel/types/messages/dialog.js +4 -0
  23. package/highlevel/types/messages/message-action.cjs +18 -0
  24. package/highlevel/types/messages/message-action.d.cts +19 -1
  25. package/highlevel/types/messages/message-action.d.ts +19 -1
  26. package/highlevel/types/messages/message-action.js +18 -0
  27. package/highlevel/types/peers/forum-topic.cjs +4 -0
  28. package/highlevel/types/peers/forum-topic.d.cts +2 -0
  29. package/highlevel/types/peers/forum-topic.d.ts +2 -0
  30. package/highlevel/types/peers/forum-topic.js +4 -0
  31. package/highlevel/types/peers/full-user.cjs +8 -0
  32. package/highlevel/types/peers/full-user.d.cts +4 -0
  33. package/highlevel/types/peers/full-user.d.ts +4 -0
  34. package/highlevel/types/peers/full-user.js +8 -0
  35. package/highlevel/types/peers/user.cjs +4 -0
  36. package/highlevel/types/peers/user.d.cts +2 -0
  37. package/highlevel/types/peers/user.d.ts +2 -0
  38. package/highlevel/types/peers/user.js +4 -0
  39. package/highlevel/types/updates/poll-update.cjs +8 -2
  40. package/highlevel/types/updates/poll-update.js +8 -2
  41. package/highlevel/updates/manager.cjs +7 -0
  42. package/highlevel/updates/manager.js +7 -0
  43. package/highlevel/worker/worker.cjs +6 -1
  44. package/highlevel/worker/worker.d.cts +2 -1
  45. package/highlevel/worker/worker.d.ts +2 -1
  46. package/highlevel/worker/worker.js +6 -1
  47. package/network/middlewares/flood-waiter.cjs +2 -1
  48. package/network/middlewares/flood-waiter.js +2 -1
  49. package/network/network-manager.cjs +1 -1
  50. package/network/network-manager.js +1 -1
  51. package/package.json +1 -1
  52. package/tl/api-schema.json +1 -1
  53. package/tl/binary/reader.cjs +86 -39
  54. package/tl/binary/reader.js +86 -39
  55. package/tl/binary/writer.cjs +308 -32
  56. package/tl/binary/writer.js +308 -32
  57. package/tl/compat/reader.cjs +34 -0
  58. package/tl/compat/reader.js +34 -0
  59. package/tl/index.d.cts +295 -25
  60. package/tl/index.d.ts +295 -25
  61. package/tl/inner-tl.cjs +16 -8
  62. package/tl/inner-tl.js +16 -8
  63. package/utils/binary/compat.cjs +41 -0
  64. package/utils/binary/compat.js +41 -0
package/tl/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { default as _Long } from 'long';
2
2
  export declare namespace tl {
3
- const LAYER = 223;
3
+ const LAYER = 224;
4
4
 
5
5
  type Long = _Long;
6
6
  type RawLong = Uint8Array;
@@ -881,6 +881,7 @@ export class RpcError extends Error {
881
881
  * Whether this media should be hidden behind a spoiler warning
882
882
  */
883
883
  spoiler?: boolean;
884
+ livePhoto?: boolean;
884
885
  /**
885
886
  * The
886
887
  * <a href="https://corefork.telegram.org/api/files">uploaded
@@ -895,6 +896,7 @@ export class RpcError extends Error {
895
896
  * Time to live in seconds of self-destructing photo
896
897
  */
897
898
  ttlSeconds?: number;
899
+ video?: tl.TypeInputDocument;
898
900
  }
899
901
  /**
900
902
  * Forwarded photo
@@ -905,6 +907,7 @@ export class RpcError extends Error {
905
907
  * Whether this media should be hidden behind a spoiler warning
906
908
  */
907
909
  spoiler?: boolean;
910
+ livePhoto?: boolean;
908
911
  /**
909
912
  * Photo to be forwarded
910
913
  */
@@ -913,6 +916,7 @@ export class RpcError extends Error {
913
916
  * Time to live in seconds of self-destructing photo
914
917
  */
915
918
  ttlSeconds?: number;
919
+ video?: tl.TypeInputDocument;
916
920
  }
917
921
  /**
918
922
  * Map.
@@ -1227,7 +1231,8 @@ export class RpcError extends Error {
1227
1231
  /**
1228
1232
  * Correct answer IDs (for quiz polls)
1229
1233
  */
1230
- correctAnswers?: Uint8Array[];
1234
+ correctAnswers?: number[];
1235
+ attachedMedia?: tl.TypeInputMedia;
1231
1236
  /**
1232
1237
  * Explanation of quiz solution
1233
1238
  */
@@ -1237,6 +1242,7 @@ export class RpcError extends Error {
1237
1242
  * entities for styled text</a>
1238
1243
  */
1239
1244
  solutionEntities?: tl.TypeMessageEntity[];
1245
+ solutionMedia?: tl.TypeInputMedia;
1240
1246
  }
1241
1247
  /**
1242
1248
  * Send a
@@ -1890,6 +1896,7 @@ export class RpcError extends Error {
1890
1896
  botHasMainApp?: boolean;
1891
1897
  botForumView?: boolean;
1892
1898
  botForumCanManageTopics?: boolean;
1899
+ botCanManageBots?: boolean;
1893
1900
  /**
1894
1901
  * ID of the user, see
1895
1902
  * <a href="https://corefork.telegram.org/api/peers#peer-id">here
@@ -3770,6 +3777,7 @@ export class RpcError extends Error {
3770
3777
  * Whether this media should be hidden behind a spoiler warning
3771
3778
  */
3772
3779
  spoiler?: boolean;
3780
+ livePhoto?: boolean;
3773
3781
  /**
3774
3782
  * Photo
3775
3783
  */
@@ -3778,6 +3786,7 @@ export class RpcError extends Error {
3778
3786
  * Time to live in seconds of self-destructing photo
3779
3787
  */
3780
3788
  ttlSeconds?: number;
3789
+ video?: tl.TypeDocument;
3781
3790
  }
3782
3791
  /**
3783
3792
  * Attached map.
@@ -4050,6 +4059,7 @@ export class RpcError extends Error {
4050
4059
  * The results of the poll
4051
4060
  */
4052
4061
  results: tl.TypePollResults;
4062
+ attachedMedia?: tl.TypeMessageMedia;
4053
4063
  }
4054
4064
  /**
4055
4065
  * <a href="https://corefork.telegram.org/api/dice">Dice-based
@@ -5695,6 +5705,7 @@ export class RpcError extends Error {
5695
5705
  * Number of unread reactions to messages you sent
5696
5706
  */
5697
5707
  unreadReactionsCount: number;
5708
+ unreadPollVotesCount: number;
5698
5709
  /**
5699
5710
  * Notification settings
5700
5711
  */
@@ -6493,6 +6504,7 @@ export class RpcError extends Error {
6493
6504
  displayGiftsButton?: boolean;
6494
6505
  noforwardsMyEnabled?: boolean;
6495
6506
  noforwardsPeerEnabled?: boolean;
6507
+ unofficialSecurityRisk?: boolean;
6496
6508
  /**
6497
6509
  * User ID
6498
6510
  */
@@ -6704,6 +6716,7 @@ export class RpcError extends Error {
6704
6716
  */
6705
6717
  savedMusic?: tl.TypeDocument;
6706
6718
  note?: tl.TypeTextWithEntities;
6719
+ botManagerId?: number;
6707
6720
  }
6708
6721
  /**
6709
6722
  * A contact of the current user that is registered in the
@@ -8102,6 +8115,9 @@ export class RpcError extends Error {
8102
8115
  */
8103
8116
  interface RawUpdateMessagePoll {
8104
8117
  _: 'updateMessagePoll';
8118
+ peer?: tl.TypePeer;
8119
+ msgId?: number;
8120
+ topMsgId?: number;
8105
8121
  /**
8106
8122
  * Poll ID
8107
8123
  */
@@ -8269,6 +8285,7 @@ export class RpcError extends Error {
8269
8285
  * Chosen option(s)
8270
8286
  */
8271
8287
  options: Uint8Array[];
8288
+ positions: number[];
8272
8289
  /**
8273
8290
  * New <strong>qts</strong> value, see
8274
8291
  * <a href="https://corefork.telegram.org/api/updates">updates
@@ -18553,6 +18570,9 @@ export class RpcError extends Error {
18553
18570
  * {@link messages.RawSendVoteRequest}.
18554
18571
  */
18555
18572
  option: Uint8Array;
18573
+ media?: tl.TypeMessageMedia;
18574
+ addedBy?: tl.TypePeer;
18575
+ date?: number;
18556
18576
  }
18557
18577
  /**
18558
18578
  * Poll
@@ -18582,6 +18602,11 @@ export class RpcError extends Error {
18582
18602
  * results shown in the return type)
18583
18603
  */
18584
18604
  quiz?: boolean;
18605
+ openAnswers?: boolean;
18606
+ revotingDisabled?: boolean;
18607
+ shuffleAnswers?: boolean;
18608
+ hideResultsUntilClose?: boolean;
18609
+ creator?: boolean;
18585
18610
  /**
18586
18611
  * The question of the poll (only
18587
18612
  * <a href="https://corefork.telegram.org/api/premium">Premium</a>
@@ -18608,6 +18633,7 @@ export class RpcError extends Error {
18608
18633
  * close_period.
18609
18634
  */
18610
18635
  closeDate?: number;
18636
+ hash: Long;
18611
18637
  }
18612
18638
  /**
18613
18639
  * A poll answer, and how users voted on it
@@ -18630,7 +18656,8 @@ export class RpcError extends Error {
18630
18656
  /**
18631
18657
  * How many users voted for this option
18632
18658
  */
18633
- voters: number;
18659
+ voters?: number;
18660
+ recentVoters?: tl.TypePeer[];
18634
18661
  }
18635
18662
  /**
18636
18663
  * Results of poll
@@ -18647,6 +18674,7 @@ export class RpcError extends Error {
18647
18674
  * poll results).
18648
18675
  */
18649
18676
  min?: boolean;
18677
+ hasUnreadVotes?: boolean;
18650
18678
  /**
18651
18679
  * Poll results
18652
18680
  */
@@ -18668,6 +18696,7 @@ export class RpcError extends Error {
18668
18696
  * entities for styled text in quiz solution</a>
18669
18697
  */
18670
18698
  solutionEntities?: tl.TypeMessageEntity[];
18699
+ solutionMedia?: tl.TypeMessageMedia;
18671
18700
  }
18672
18701
  /**
18673
18702
  * Number of online users in a chat
@@ -19294,6 +19323,7 @@ export class RpcError extends Error {
19294
19323
  requestWriteAccess?: boolean;
19295
19324
  requestPhoneNumber?: boolean;
19296
19325
  matchCodesFirst?: boolean;
19326
+ isApp?: boolean;
19297
19327
  /**
19298
19328
  * Username of a bot, which will be used for user
19299
19329
  * authorization. If not specified, the current bot's username
@@ -19314,6 +19344,7 @@ export class RpcError extends Error {
19314
19344
  region?: string;
19315
19345
  matchCodes?: string[];
19316
19346
  userIdHint?: number;
19347
+ verifiedAppName?: string;
19317
19348
  }
19318
19349
  /**
19319
19350
  * Details about an accepted authorization request, for more
@@ -20292,6 +20323,7 @@ export class RpcError extends Error {
20292
20323
  * »</a>.
20293
20324
  */
20294
20325
  todoItemId?: number;
20326
+ pollOption?: Uint8Array;
20295
20327
  }
20296
20328
  /**
20297
20329
  * Represents a reply to a
@@ -22652,6 +22684,7 @@ export class RpcError extends Error {
22652
22684
  * Number of unread reactions to messages you sent
22653
22685
  */
22654
22686
  unreadReactionsCount: number;
22687
+ unreadPollVotesCount: number;
22655
22688
  /**
22656
22689
  * ID of the peer that created the topic
22657
22690
  */
@@ -23309,6 +23342,7 @@ export class RpcError extends Error {
23309
23342
  * this story is part of.
23310
23343
  */
23311
23344
  albums?: number[];
23345
+ music?: tl.TypeDocument;
23312
23346
  }
23313
23347
  /**
23314
23348
  * <a href="https://corefork.telegram.org/api/stories">Story</a>
@@ -23456,6 +23490,7 @@ export class RpcError extends Error {
23456
23490
  * »</a>.
23457
23491
  */
23458
23492
  todoItemId?: number;
23493
+ pollOption?: Uint8Array;
23459
23494
  }
23460
23495
  /**
23461
23496
  * Reply to a story.
@@ -25155,6 +25190,7 @@ export class RpcError extends Error {
25155
25190
  * disables notifications/updates about reactions to stories.
25156
25191
  */
25157
25192
  storiesNotifyFrom?: tl.TypeReactionNotificationsFrom;
25193
+ pollVotesNotifyFrom?: tl.TypeReactionNotificationsFrom;
25158
25194
  /**
25159
25195
  * <a href="https://corefork.telegram.org/api/ringtones">Notification
25160
25196
  * sound for reactions »</a>
@@ -27436,6 +27472,63 @@ export class RpcError extends Error {
27436
27472
  bgSuccess?: boolean;
27437
27473
  icon?: Long;
27438
27474
  }
27475
+ interface RawMessageActionPollAppendAnswer {
27476
+ _: 'messageActionPollAppendAnswer';
27477
+ answer: tl.TypePollAnswer;
27478
+ }
27479
+ interface RawMessageActionPollDeleteAnswer {
27480
+ _: 'messageActionPollDeleteAnswer';
27481
+ answer: tl.TypePollAnswer;
27482
+ }
27483
+ interface RawMessageActionManagedBotCreated {
27484
+ _: 'messageActionManagedBotCreated';
27485
+ botId: number;
27486
+ }
27487
+ interface RawInputMessagesFilterPoll {
27488
+ _: 'inputMessagesFilterPoll';
27489
+ }
27490
+ interface RawUpdateManagedBot {
27491
+ _: 'updateManagedBot';
27492
+ userId: number;
27493
+ botId: number;
27494
+ qts: number;
27495
+ }
27496
+ interface RawMessageEntityDiffInsert {
27497
+ _: 'messageEntityDiffInsert';
27498
+ offset: number;
27499
+ length: number;
27500
+ }
27501
+ interface RawMessageEntityDiffReplace {
27502
+ _: 'messageEntityDiffReplace';
27503
+ offset: number;
27504
+ length: number;
27505
+ oldText: string;
27506
+ }
27507
+ interface RawMessageEntityDiffDelete {
27508
+ _: 'messageEntityDiffDelete';
27509
+ offset: number;
27510
+ length: number;
27511
+ }
27512
+ interface RawInputPollAnswer {
27513
+ _: 'inputPollAnswer';
27514
+ text: tl.TypeTextWithEntities;
27515
+ media?: tl.TypeInputMedia;
27516
+ }
27517
+ interface RawRequestPeerTypeCreateBot {
27518
+ _: 'requestPeerTypeCreateBot';
27519
+ botManaged?: boolean;
27520
+ suggestedName?: string;
27521
+ suggestedUsername?: string;
27522
+ }
27523
+ interface RawInputMessageReadMetric {
27524
+ _: 'inputMessageReadMetric';
27525
+ msgId: number;
27526
+ viewId: Long;
27527
+ timeInViewMs: number;
27528
+ activeTimeInViewMs: number;
27529
+ heightToViewportRatioPermille: number;
27530
+ seenRangeRatioPermille: number;
27531
+ }
27439
27532
  /**
27440
27533
  * A
27441
27534
  * <a href="https://corefork.telegram.org/api/forum#forum-topics">forum
@@ -27825,7 +27918,7 @@ export class RpcError extends Error {
27825
27918
  /**
27826
27919
  * Object describing actions connected to a service message.
27827
27920
  */
27828
- 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 | tl.RawMessageActionNoForwardsToggle | tl.RawMessageActionNoForwardsRequest
27921
+ 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 | tl.RawMessageActionNoForwardsToggle | tl.RawMessageActionNoForwardsRequest | tl.RawMessageActionPollAppendAnswer | tl.RawMessageActionPollDeleteAnswer | tl.RawMessageActionManagedBotCreated
27829
27922
  function isAnyMessageAction(o: object): o is TypeMessageAction
27830
27923
  /**
27831
27924
  * Chat info.
@@ -27903,12 +27996,12 @@ export class RpcError extends Error {
27903
27996
  /**
27904
27997
  * Object describes message filter.
27905
27998
  */
27906
- type TypeMessagesFilter = tl.RawInputMessagesFilterEmpty | tl.RawInputMessagesFilterPhotos | tl.RawInputMessagesFilterVideo | tl.RawInputMessagesFilterPhotoVideo | tl.RawInputMessagesFilterDocument | tl.RawInputMessagesFilterUrl | tl.RawInputMessagesFilterGif | tl.RawInputMessagesFilterVoice | tl.RawInputMessagesFilterMusic | tl.RawInputMessagesFilterChatPhotos | tl.RawInputMessagesFilterPhoneCalls | tl.RawInputMessagesFilterRoundVoice | tl.RawInputMessagesFilterRoundVideo | tl.RawInputMessagesFilterMyMentions | tl.RawInputMessagesFilterGeo | tl.RawInputMessagesFilterContacts | tl.RawInputMessagesFilterPinned
27999
+ type TypeMessagesFilter = tl.RawInputMessagesFilterEmpty | tl.RawInputMessagesFilterPhotos | tl.RawInputMessagesFilterVideo | tl.RawInputMessagesFilterPhotoVideo | tl.RawInputMessagesFilterDocument | tl.RawInputMessagesFilterUrl | tl.RawInputMessagesFilterGif | tl.RawInputMessagesFilterVoice | tl.RawInputMessagesFilterMusic | tl.RawInputMessagesFilterChatPhotos | tl.RawInputMessagesFilterPhoneCalls | tl.RawInputMessagesFilterRoundVoice | tl.RawInputMessagesFilterRoundVideo | tl.RawInputMessagesFilterMyMentions | tl.RawInputMessagesFilterGeo | tl.RawInputMessagesFilterContacts | tl.RawInputMessagesFilterPinned | tl.RawInputMessagesFilterPoll
27907
28000
  function isAnyMessagesFilter(o: object): o is TypeMessagesFilter
27908
28001
  /**
27909
28002
  * Object contains info on events occurred.
27910
28003
  */
27911
- 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.RawUpdateChatParticipantRank | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.mtcute.RawDummyUpdate
28004
+ 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.RawUpdateChatParticipantRank | tl.RawUpdateManagedBot | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.mtcute.RawDummyUpdate
27912
28005
  function isAnyUpdate(o: object): o is TypeUpdate
27913
28006
  /**
27914
28007
  * Object which is perceived by the client without a call on
@@ -28118,7 +28211,7 @@ export class RpcError extends Error {
28118
28211
  /**
28119
28212
  * Message entities, representing styled text in a message
28120
28213
  */
28121
- type TypeMessageEntity = tl.RawMessageEntityUnknown | tl.RawMessageEntityMention | tl.RawMessageEntityHashtag | tl.RawMessageEntityBotCommand | tl.RawMessageEntityUrl | tl.RawMessageEntityEmail | tl.RawMessageEntityBold | tl.RawMessageEntityItalic | tl.RawMessageEntityCode | tl.RawMessageEntityPre | tl.RawMessageEntityTextUrl | tl.RawMessageEntityMentionName | tl.RawInputMessageEntityMentionName | tl.RawMessageEntityPhone | tl.RawMessageEntityCashtag | tl.RawMessageEntityUnderline | tl.RawMessageEntityStrike | tl.RawMessageEntityBankCard | tl.RawMessageEntitySpoiler | tl.RawMessageEntityCustomEmoji | tl.RawMessageEntityBlockquote | tl.RawMessageEntityFormattedDate
28214
+ type TypeMessageEntity = tl.RawMessageEntityUnknown | tl.RawMessageEntityMention | tl.RawMessageEntityHashtag | tl.RawMessageEntityBotCommand | tl.RawMessageEntityUrl | tl.RawMessageEntityEmail | tl.RawMessageEntityBold | tl.RawMessageEntityItalic | tl.RawMessageEntityCode | tl.RawMessageEntityPre | tl.RawMessageEntityTextUrl | tl.RawMessageEntityMentionName | tl.RawInputMessageEntityMentionName | tl.RawMessageEntityPhone | tl.RawMessageEntityCashtag | tl.RawMessageEntityUnderline | tl.RawMessageEntityStrike | tl.RawMessageEntityBankCard | tl.RawMessageEntitySpoiler | tl.RawMessageEntityCustomEmoji | tl.RawMessageEntityBlockquote | tl.RawMessageEntityFormattedDate | tl.RawMessageEntityDiffInsert | tl.RawMessageEntityDiffReplace | tl.RawMessageEntityDiffDelete
28122
28215
  function isAnyMessageEntity(o: object): o is TypeMessageEntity
28123
28216
  /**
28124
28217
  * Represents a channel
@@ -28605,7 +28698,7 @@ export class RpcError extends Error {
28605
28698
  * Indicates a possible answer to a
28606
28699
  * <a href="https://corefork.telegram.org/type/Poll">poll</a>.
28607
28700
  */
28608
- type TypePollAnswer = tl.RawPollAnswer
28701
+ type TypePollAnswer = tl.RawPollAnswer | tl.RawInputPollAnswer
28609
28702
  function isAnyPollAnswer(o: object): o is TypePollAnswer
28610
28703
  /**
28611
28704
  * Indicates a poll message
@@ -29094,7 +29187,7 @@ export class RpcError extends Error {
29094
29187
  * Filtering criteria to use for the peer selection list shown
29095
29188
  * to the user.
29096
29189
  */
29097
- type TypeRequestPeerType = tl.RawRequestPeerTypeUser | tl.RawRequestPeerTypeChat | tl.RawRequestPeerTypeBroadcast
29190
+ type TypeRequestPeerType = tl.RawRequestPeerTypeUser | tl.RawRequestPeerTypeChat | tl.RawRequestPeerTypeBroadcast | tl.RawRequestPeerTypeCreateBot
29098
29191
  function isAnyRequestPeerType(o: object): o is TypeRequestPeerType
29099
29192
  /**
29100
29193
  * Represents a list of
@@ -29868,6 +29961,8 @@ export class RpcError extends Error {
29868
29961
  function isAnyStarGiftAttributeRarity(o: object): o is TypeStarGiftAttributeRarity
29869
29962
  type TypeKeyboardButtonStyle = tl.RawKeyboardButtonStyle
29870
29963
  function isAnyKeyboardButtonStyle(o: object): o is TypeKeyboardButtonStyle
29964
+ type TypeInputMessageReadMetric = tl.RawInputMessageReadMetric
29965
+ function isAnyInputMessageReadMetric(o: object): o is TypeInputMessageReadMetric
29871
29966
 
29872
29967
  namespace storage {
29873
29968
  /**
@@ -33466,6 +33561,11 @@ export class RpcError extends Error {
33466
33561
  params: number[];
33467
33562
  playsLeft?: number;
33468
33563
  }
33564
+ interface RawComposedMessageWithAI {
33565
+ _: 'messages.composedMessageWithAI';
33566
+ resultText: tl.TypeTextWithEntities;
33567
+ diffText?: tl.TypeTextWithEntities;
33568
+ }
33469
33569
  /**
33470
33570
  * Returns the list of messages by their IDs.
33471
33571
  *
@@ -36151,6 +36251,7 @@ export class RpcError extends Error {
36151
36251
  * Message ID of poll message
36152
36252
  */
36153
36253
  msgId: number;
36254
+ pollHash: Long;
36154
36255
  }
36155
36256
  /**
36156
36257
  * Get count of online users in a chat
@@ -37476,6 +37577,7 @@ export class RpcError extends Error {
37476
37577
  * the message is translated
37477
37578
  */
37478
37579
  toLang: string;
37580
+ tone?: string;
37479
37581
  }
37480
37582
  /**
37481
37583
  * Get unread reactions to messages you sent
@@ -38106,7 +38208,8 @@ export class RpcError extends Error {
38106
38208
  * ID of the message that contained the reply keyboard with the
38107
38209
  * {@link RawKeyboardButtonRequestPeer} button.
38108
38210
  */
38109
- msgId: number;
38211
+ msgId?: number;
38212
+ webappReqId?: string;
38110
38213
  /**
38111
38214
  * The <code>button_id</code> field from the
38112
38215
  * {@link RawKeyboardButtonRequestPeer} constructor.
@@ -39532,6 +39635,7 @@ export class RpcError extends Error {
39532
39635
  peer: tl.TypeInputPeer;
39533
39636
  id: number;
39534
39637
  toLang?: string;
39638
+ tone?: string;
39535
39639
  }
39536
39640
  /**
39537
39641
  * RPC method returns {@link tl.TypeUpdates}
@@ -39573,6 +39677,73 @@ export class RpcError extends Error {
39573
39677
  url: string;
39574
39678
  matchCode: string;
39575
39679
  }
39680
+ /**
39681
+ * RPC method returns
39682
+ * {@link tl.messages.TypeComposedMessageWithAI}
39683
+ */
39684
+ interface RawComposeMessageWithAIRequest {
39685
+ _: 'messages.composeMessageWithAI';
39686
+ proofread?: boolean;
39687
+ emojify?: boolean;
39688
+ text: tl.TypeTextWithEntities;
39689
+ translateToLang?: string;
39690
+ changeTone?: string;
39691
+ }
39692
+ /**
39693
+ * RPC method returns boolean
39694
+ */
39695
+ interface RawReportReadMetricsRequest {
39696
+ _: 'messages.reportReadMetrics';
39697
+ peer: tl.TypeInputPeer;
39698
+ metrics: tl.TypeInputMessageReadMetric[];
39699
+ }
39700
+ /**
39701
+ * RPC method returns boolean
39702
+ */
39703
+ interface RawReportMusicListenRequest {
39704
+ _: 'messages.reportMusicListen';
39705
+ id: tl.TypeInputDocument;
39706
+ listenedDuration: number;
39707
+ }
39708
+ /**
39709
+ * RPC method returns {@link tl.TypeUpdates}
39710
+ */
39711
+ interface RawAddPollAnswerRequest {
39712
+ _: 'messages.addPollAnswer';
39713
+ peer: tl.TypeInputPeer;
39714
+ msgId: number;
39715
+ answer: tl.TypePollAnswer;
39716
+ }
39717
+ /**
39718
+ * RPC method returns {@link tl.TypeUpdates}
39719
+ */
39720
+ interface RawDeletePollAnswerRequest {
39721
+ _: 'messages.deletePollAnswer';
39722
+ peer: tl.TypeInputPeer;
39723
+ msgId: number;
39724
+ option: Uint8Array;
39725
+ }
39726
+ /**
39727
+ * RPC method returns {@link tl.messages.TypeMessages}
39728
+ */
39729
+ interface RawGetUnreadPollVotesRequest {
39730
+ _: 'messages.getUnreadPollVotes';
39731
+ peer: tl.TypeInputPeer;
39732
+ topMsgId?: number;
39733
+ offsetId: number;
39734
+ addOffset: number;
39735
+ limit: number;
39736
+ maxId: number;
39737
+ minId: number;
39738
+ }
39739
+ /**
39740
+ * RPC method returns {@link tl.messages.TypeAffectedHistory}
39741
+ */
39742
+ interface RawReadPollVotesRequest {
39743
+ _: 'messages.readPollVotes';
39744
+ peer: tl.TypeInputPeer;
39745
+ topMsgId?: number;
39746
+ }
39576
39747
  interface RpcCallReturn {
39577
39748
  'messages.getMessages': tl.messages.TypeMessages
39578
39749
  'messages.getDialogs': tl.messages.TypeDialogs
@@ -39818,6 +39989,13 @@ export class RpcError extends Error {
39818
39989
  'messages.editChatParticipantRank': tl.TypeUpdates
39819
39990
  'messages.declineUrlAuth': boolean
39820
39991
  'messages.checkUrlAuthMatchCode': boolean
39992
+ 'messages.composeMessageWithAI': tl.messages.TypeComposedMessageWithAI
39993
+ 'messages.reportReadMetrics': boolean
39994
+ 'messages.reportMusicListen': boolean
39995
+ 'messages.addPollAnswer': tl.TypeUpdates
39996
+ 'messages.deletePollAnswer': tl.TypeUpdates
39997
+ 'messages.getUnreadPollVotes': tl.messages.TypeMessages
39998
+ 'messages.readPollVotes': tl.messages.TypeAffectedHistory
39821
39999
  }
39822
40000
  /**
39823
40001
  * Object contains a list of chats with messages and auxiliary
@@ -40172,6 +40350,8 @@ export class RpcError extends Error {
40172
40350
  function isAnyEmojiGameOutcome(o: object): o is TypeEmojiGameOutcome
40173
40351
  type TypeEmojiGameInfo = tl.messages.RawEmojiGameUnavailable | tl.messages.RawEmojiGameDiceInfo
40174
40352
  function isAnyEmojiGameInfo(o: object): o is TypeEmojiGameInfo
40353
+ type TypeComposedMessageWithAI = tl.messages.RawComposedMessageWithAI
40354
+ function isAnyComposedMessageWithAI(o: object): o is TypeComposedMessageWithAI
40175
40355
  }
40176
40356
 
40177
40357
  namespace updates {
@@ -46811,13 +46991,6 @@ export class RpcError extends Error {
46811
46991
  */
46812
46992
  order: number[];
46813
46993
  }
46814
- /**
46815
- * RPC method returns {@link tl.TypeUser}
46816
- */
46817
- interface RawGetFutureCreatorAfterLeaveRequest {
46818
- _: 'channels.getFutureCreatorAfterLeave';
46819
- channel: tl.TypeInputChannel;
46820
- }
46821
46994
  interface RpcCallReturn {
46822
46995
  'channels.readHistory': boolean
46823
46996
  'channels.deleteMessages': tl.messages.TypeAffectedMessages
@@ -46885,7 +47058,6 @@ export class RpcError extends Error {
46885
47058
  'channels.updatePinnedForumTopic': tl.TypeUpdates
46886
47059
  'channels.deleteTopicHistory': tl.messages.TypeAffectedHistory
46887
47060
  'channels.reorderPinnedForumTopics': tl.TypeUpdates
46888
- 'channels.getFutureCreatorAfterLeave': tl.TypeUser
46889
47061
  }
46890
47062
  /**
46891
47063
  * Channel/supergroup participants
@@ -48996,6 +49168,7 @@ export class RpcError extends Error {
48996
49168
  * of that type are allowed.
48997
49169
  */
48998
49170
  attributes?: tl.TypeStarGiftAttributeId[];
49171
+ starsOnly?: boolean;
48999
49172
  /**
49000
49173
  * Offset for pagination. If not equal to an empty string,
49001
49174
  * {@link payments.RawResaleStarGifts}.<code>counters</code>
@@ -52031,6 +52204,14 @@ export class RpcError extends Error {
52031
52204
  */
52032
52205
  langCodes: string[];
52033
52206
  }
52207
+ interface RawExportedBotToken {
52208
+ _: 'bots.exportedBotToken';
52209
+ token: string;
52210
+ }
52211
+ interface RawRequestedButton {
52212
+ _: 'bots.requestedButton';
52213
+ webappReqId: string;
52214
+ }
52034
52215
  /**
52035
52216
  * Sends a custom request; for bots only
52036
52217
  *
@@ -52687,6 +52868,47 @@ export class RpcError extends Error {
52687
52868
  */
52688
52869
  bot: tl.TypeInputUser;
52689
52870
  }
52871
+ /**
52872
+ * RPC method returns boolean
52873
+ */
52874
+ interface RawCheckUsernameRequest {
52875
+ _: 'bots.checkUsername';
52876
+ username: string;
52877
+ }
52878
+ /**
52879
+ * RPC method returns {@link tl.TypeUser}
52880
+ */
52881
+ interface RawCreateBotRequest {
52882
+ _: 'bots.createBot';
52883
+ viaDeeplink?: boolean;
52884
+ name: string;
52885
+ username: string;
52886
+ managerId: tl.TypeInputUser;
52887
+ }
52888
+ /**
52889
+ * RPC method returns {@link tl.bots.TypeExportedBotToken}
52890
+ */
52891
+ interface RawExportBotTokenRequest {
52892
+ _: 'bots.exportBotToken';
52893
+ bot: tl.TypeInputUser;
52894
+ revoke: boolean;
52895
+ }
52896
+ /**
52897
+ * RPC method returns {@link tl.bots.TypeRequestedButton}
52898
+ */
52899
+ interface RawRequestWebViewButtonRequest {
52900
+ _: 'bots.requestWebViewButton';
52901
+ userId: tl.TypeInputUser;
52902
+ button: tl.TypeKeyboardButton;
52903
+ }
52904
+ /**
52905
+ * RPC method returns {@link tl.TypeKeyboardButton}
52906
+ */
52907
+ interface RawGetRequestedWebViewButtonRequest {
52908
+ _: 'bots.getRequestedWebViewButton';
52909
+ bot: tl.TypeInputUser;
52910
+ webappReqId: string;
52911
+ }
52690
52912
  interface RpcCallReturn {
52691
52913
  'bots.sendCustomRequest': tl.TypeDataJSON
52692
52914
  'bots.answerWebhookJSONQuery': boolean
@@ -52718,6 +52940,11 @@ export class RpcError extends Error {
52718
52940
  'bots.updateStarRefProgram': tl.TypeStarRefProgram
52719
52941
  'bots.setCustomVerification': boolean
52720
52942
  'bots.getBotRecommendations': tl.users.TypeUsers
52943
+ 'bots.checkUsername': boolean
52944
+ 'bots.createBot': tl.TypeUser
52945
+ 'bots.exportBotToken': tl.bots.TypeExportedBotToken
52946
+ 'bots.requestWebViewButton': tl.bots.TypeRequestedButton
52947
+ 'bots.getRequestedWebViewButton': tl.TypeKeyboardButton
52721
52948
  }
52722
52949
  /**
52723
52950
  * Localized name, about text and description of a bot.
@@ -52740,6 +52967,10 @@ export class RpcError extends Error {
52740
52967
  */
52741
52968
  type TypePreviewInfo = tl.bots.RawPreviewInfo
52742
52969
  function isAnyPreviewInfo(o: object): o is TypePreviewInfo
52970
+ type TypeExportedBotToken = tl.bots.RawExportedBotToken
52971
+ function isAnyExportedBotToken(o: object): o is TypeExportedBotToken
52972
+ type TypeRequestedButton = tl.bots.RawRequestedButton
52973
+ function isAnyRequestedButton(o: object): o is TypeRequestedButton
52743
52974
  }
52744
52975
 
52745
52976
  namespace stories {
@@ -53104,6 +53335,7 @@ export class RpcError extends Error {
53104
53335
  * If set, adds the story to the specified albums.
53105
53336
  */
53106
53337
  albums?: number[];
53338
+ music?: tl.TypeInputDocument;
53107
53339
  }
53108
53340
  /**
53109
53341
  * Edit an uploaded
@@ -53160,6 +53392,7 @@ export class RpcError extends Error {
53160
53392
  * the story.
53161
53393
  */
53162
53394
  privacyRules?: tl.TypeInputPrivacyRule[];
53395
+ music?: tl.TypeInputDocument;
53163
53396
  }
53164
53397
  /**
53165
53398
  * Deletes some posted
@@ -54424,10 +54657,7 @@ export class RpcError extends Error {
54424
54657
  channelId: number;
54425
54658
  }
54426
54659
  /**
54427
- * temporary solution to allow users to call arbitrary methods
54428
- * not present in the schema, without having to override
54429
- * client's schema readers/writers map. will become redundant
54430
- * after esm tl rewrite
54660
+ * ! codegen for this method is special-cased in gen-code.ts
54431
54661
  *
54432
54662
  * RPC method returns Uint8Array
54433
54663
  */
@@ -54441,7 +54671,7 @@ export class RpcError extends Error {
54441
54671
  /**
54442
54672
  * Object contains info on events occurred.
54443
54673
  */
54444
- 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.RawUpdateChatParticipantRank | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.mtcute.RawDummyUpdate
54674
+ 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.RawUpdateChatParticipantRank | tl.RawUpdateManagedBot | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.mtcute.RawDummyUpdate
54445
54675
  function isAnyUpdate(o: object): o is TypeUpdate
54446
54676
  /**
54447
54677
  * Peer
@@ -55338,6 +55568,18 @@ export class RpcError extends Error {
55338
55568
  | tl.smsjobs.RawGetSmsJobRequest
55339
55569
  | tl.smsjobs.RawFinishJobRequest
55340
55570
  | tl.fragment.RawGetCollectibleInfoRequest
55571
+ | tl.messages.RawComposeMessageWithAIRequest
55572
+ | tl.messages.RawReportReadMetricsRequest
55573
+ | tl.messages.RawReportMusicListenRequest
55574
+ | tl.messages.RawAddPollAnswerRequest
55575
+ | tl.messages.RawDeletePollAnswerRequest
55576
+ | tl.messages.RawGetUnreadPollVotesRequest
55577
+ | tl.messages.RawReadPollVotesRequest
55578
+ | tl.bots.RawCheckUsernameRequest
55579
+ | tl.bots.RawCreateBotRequest
55580
+ | tl.bots.RawExportBotTokenRequest
55581
+ | tl.bots.RawRequestWebViewButtonRequest
55582
+ | tl.bots.RawGetRequestedWebViewButtonRequest
55341
55583
  | tl.channels.RawEditCreatorRequest
55342
55584
  | tl.channels.RawCreateForumTopicRequest
55343
55585
  | tl.channels.RawGetForumTopicsRequest
@@ -55346,7 +55588,6 @@ export class RpcError extends Error {
55346
55588
  | tl.channels.RawUpdatePinnedForumTopicRequest
55347
55589
  | tl.channels.RawDeleteTopicHistoryRequest
55348
55590
  | tl.channels.RawReorderPinnedForumTopicsRequest
55349
- | tl.channels.RawGetFutureCreatorAfterLeaveRequest
55350
55591
  | tl.mtcute.RawCustomMethodRequest
55351
55592
 
55352
55593
  type TlObject =
@@ -56893,6 +57134,20 @@ export class RpcError extends Error {
56893
57134
  | tl.RawStarGiftAttributeRarityEpic
56894
57135
  | tl.RawStarGiftAttributeRarityLegendary
56895
57136
  | tl.RawKeyboardButtonStyle
57137
+ | tl.RawMessageActionPollAppendAnswer
57138
+ | tl.RawMessageActionPollDeleteAnswer
57139
+ | tl.RawMessageActionManagedBotCreated
57140
+ | tl.RawInputMessagesFilterPoll
57141
+ | tl.RawUpdateManagedBot
57142
+ | tl.RawMessageEntityDiffInsert
57143
+ | tl.RawMessageEntityDiffReplace
57144
+ | tl.RawMessageEntityDiffDelete
57145
+ | tl.RawInputPollAnswer
57146
+ | tl.RawRequestPeerTypeCreateBot
57147
+ | tl.RawInputMessageReadMetric
57148
+ | tl.bots.RawExportedBotToken
57149
+ | tl.bots.RawRequestedButton
57150
+ | tl.messages.RawComposedMessageWithAI
56896
57151
  | tl.RawUpdateChannelPinnedTopic
56897
57152
  | tl.RawUpdateChannelPinnedTopics
56898
57153
  | tl.mtcute.RawDummyUpdate
@@ -57655,6 +57910,18 @@ export class RpcError extends Error {
57655
57910
  | tl.smsjobs.RawGetSmsJobRequest
57656
57911
  | tl.smsjobs.RawFinishJobRequest
57657
57912
  | tl.fragment.RawGetCollectibleInfoRequest
57913
+ | tl.messages.RawComposeMessageWithAIRequest
57914
+ | tl.messages.RawReportReadMetricsRequest
57915
+ | tl.messages.RawReportMusicListenRequest
57916
+ | tl.messages.RawAddPollAnswerRequest
57917
+ | tl.messages.RawDeletePollAnswerRequest
57918
+ | tl.messages.RawGetUnreadPollVotesRequest
57919
+ | tl.messages.RawReadPollVotesRequest
57920
+ | tl.bots.RawCheckUsernameRequest
57921
+ | tl.bots.RawCreateBotRequest
57922
+ | tl.bots.RawExportBotTokenRequest
57923
+ | tl.bots.RawRequestWebViewButtonRequest
57924
+ | tl.bots.RawGetRequestedWebViewButtonRequest
57658
57925
  | tl.channels.RawEditCreatorRequest
57659
57926
  | tl.channels.RawCreateForumTopicRequest
57660
57927
  | tl.channels.RawGetForumTopicsRequest
@@ -57663,7 +57930,6 @@ export class RpcError extends Error {
57663
57930
  | tl.channels.RawUpdatePinnedForumTopicRequest
57664
57931
  | tl.channels.RawDeleteTopicHistoryRequest
57665
57932
  | tl.channels.RawReorderPinnedForumTopicsRequest
57666
- | tl.channels.RawGetFutureCreatorAfterLeaveRequest
57667
57933
  | tl.mtcute.RawCustomMethodRequest
57668
57934
  }
57669
57935
  export declare function isAnyError(o: object): o is tl.TypeError
@@ -58039,6 +58305,7 @@ export declare function isAnyStarGiftBackground(o: object): o is tl.TypeStarGift
58039
58305
  export declare function isAnyStarGiftAuctionRound(o: object): o is tl.TypeStarGiftAuctionRound
58040
58306
  export declare function isAnyStarGiftAttributeRarity(o: object): o is tl.TypeStarGiftAttributeRarity
58041
58307
  export declare function isAnyKeyboardButtonStyle(o: object): o is tl.TypeKeyboardButtonStyle
58308
+ export declare function isAnyInputMessageReadMetric(o: object): o is tl.TypeInputMessageReadMetric
58042
58309
  export declare function isAnyStorage_FileType(o: object): o is tl.storage.TypeFileType
58043
58310
  export declare function isAnyAuth_SentCode(o: object): o is tl.auth.TypeSentCode
58044
58311
  export declare function isAnyAuth_Authorization(o: object): o is tl.auth.TypeAuthorization
@@ -58119,6 +58386,7 @@ export declare function isAnyMessages_FoundStickers(o: object): o is tl.messages
58119
58386
  export declare function isAnyMessages_WebPagePreview(o: object): o is tl.messages.TypeWebPagePreview
58120
58387
  export declare function isAnyMessages_EmojiGameOutcome(o: object): o is tl.messages.TypeEmojiGameOutcome
58121
58388
  export declare function isAnyMessages_EmojiGameInfo(o: object): o is tl.messages.TypeEmojiGameInfo
58389
+ export declare function isAnyMessages_ComposedMessageWithAI(o: object): o is tl.messages.TypeComposedMessageWithAI
58122
58390
  export declare function isAnyUpdates_State(o: object): o is tl.updates.TypeState
58123
58391
  export declare function isAnyUpdates_Difference(o: object): o is tl.updates.TypeDifference
58124
58392
  export declare function isAnyUpdates_ChannelDifference(o: object): o is tl.updates.TypeChannelDifference
@@ -58232,6 +58500,8 @@ export declare function isAnyChatlists_ChatlistUpdates(o: object): o is tl.chatl
58232
58500
  export declare function isAnyBots_BotInfo(o: object): o is tl.bots.TypeBotInfo
58233
58501
  export declare function isAnyBots_PopularAppBots(o: object): o is tl.bots.TypePopularAppBots
58234
58502
  export declare function isAnyBots_PreviewInfo(o: object): o is tl.bots.TypePreviewInfo
58503
+ export declare function isAnyBots_ExportedBotToken(o: object): o is tl.bots.TypeExportedBotToken
58504
+ export declare function isAnyBots_RequestedButton(o: object): o is tl.bots.TypeRequestedButton
58235
58505
  export declare function isAnyStories_AllStories(o: object): o is tl.stories.TypeAllStories
58236
58506
  export declare function isAnyStories_Stories(o: object): o is tl.stories.TypeStories
58237
58507
  export declare function isAnyStories_StoryViewsList(o: object): o is tl.stories.TypeStoryViewsList