@mtcute/tl 166.1.0 → 167.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 +31 -16
- package/binary/writer.js +48 -20
- package/index.d.ts +271 -24
- package/index.js +16 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import _Long from 'long';
|
|
3
3
|
|
|
4
4
|
export declare namespace tl {
|
|
5
|
-
const LAYER =
|
|
5
|
+
const LAYER = 167;
|
|
6
6
|
|
|
7
7
|
function $extendTypes(types: Record<string, string>): void
|
|
8
8
|
|
|
@@ -1760,8 +1760,8 @@ export class RpcError extends Error {
|
|
|
1760
1760
|
*/
|
|
1761
1761
|
usernames?: tl.TypeUsername[];
|
|
1762
1762
|
storiesMaxId?: number;
|
|
1763
|
-
color?:
|
|
1764
|
-
|
|
1763
|
+
color?: tl.TypePeerColor;
|
|
1764
|
+
profileColor?: tl.TypePeerColor;
|
|
1765
1765
|
}
|
|
1766
1766
|
/**
|
|
1767
1767
|
* Profile photo has not been set, or was hidden.
|
|
@@ -2102,8 +2102,7 @@ export class RpcError extends Error {
|
|
|
2102
2102
|
*/
|
|
2103
2103
|
usernames?: tl.TypeUsername[];
|
|
2104
2104
|
storiesMaxId?: number;
|
|
2105
|
-
color?:
|
|
2106
|
-
backgroundEmojiId?: Long;
|
|
2105
|
+
color?: tl.TypePeerColor;
|
|
2107
2106
|
}
|
|
2108
2107
|
/**
|
|
2109
2108
|
* Indicates a channel/supergroup we can't access because we
|
|
@@ -2303,6 +2302,7 @@ export class RpcError extends Error {
|
|
|
2303
2302
|
*/
|
|
2304
2303
|
translationsDisabled?: boolean;
|
|
2305
2304
|
storiesPinnedAvailable?: boolean;
|
|
2305
|
+
viewForumAsMessages?: boolean;
|
|
2306
2306
|
/**
|
|
2307
2307
|
* ID of the channel
|
|
2308
2308
|
*/
|
|
@@ -3095,7 +3095,7 @@ export class RpcError extends Error {
|
|
|
3095
3095
|
interface RawMessageMediaGiveaway {
|
|
3096
3096
|
_: 'messageMediaGiveaway';
|
|
3097
3097
|
onlyNewSubscribers?: boolean;
|
|
3098
|
-
channels:
|
|
3098
|
+
channels: number[];
|
|
3099
3099
|
countriesIso2?: string[];
|
|
3100
3100
|
quantity: number;
|
|
3101
3101
|
months: number;
|
|
@@ -3693,6 +3693,8 @@ export class RpcError extends Error {
|
|
|
3693
3693
|
*/
|
|
3694
3694
|
interface RawMessageActionSetChatWallPaper {
|
|
3695
3695
|
_: 'messageActionSetChatWallPaper';
|
|
3696
|
+
same?: boolean;
|
|
3697
|
+
forBoth?: boolean;
|
|
3696
3698
|
/**
|
|
3697
3699
|
* New
|
|
3698
3700
|
* <a href="https://corefork.telegram.org/api/wallpapers">wallpaper</a>
|
|
@@ -4388,6 +4390,7 @@ export class RpcError extends Error {
|
|
|
4388
4390
|
translationsDisabled?: boolean;
|
|
4389
4391
|
storiesPinnedAvailable?: boolean;
|
|
4390
4392
|
blockedMyStoriesFrom?: boolean;
|
|
4393
|
+
wallpaperOverridden?: boolean;
|
|
4391
4394
|
/**
|
|
4392
4395
|
* User ID
|
|
4393
4396
|
*/
|
|
@@ -6727,7 +6730,7 @@ export class RpcError extends Error {
|
|
|
6727
6730
|
/**
|
|
6728
6731
|
* User ID
|
|
6729
6732
|
*/
|
|
6730
|
-
userId:
|
|
6733
|
+
userId: number;
|
|
6731
6734
|
}
|
|
6732
6735
|
/**
|
|
6733
6736
|
* Media autosave settings have changed and must be refetched
|
|
@@ -6751,7 +6754,7 @@ export class RpcError extends Error {
|
|
|
6751
6754
|
/**
|
|
6752
6755
|
* ID of the user we couldn't add.
|
|
6753
6756
|
*/
|
|
6754
|
-
userId:
|
|
6757
|
+
userId: number;
|
|
6755
6758
|
}
|
|
6756
6759
|
/**
|
|
6757
6760
|
* A new story was posted.
|
|
@@ -16362,6 +16365,7 @@ export class RpcError extends Error {
|
|
|
16362
16365
|
replyToTopId?: number;
|
|
16363
16366
|
quoteText?: string;
|
|
16364
16367
|
quoteEntities?: tl.TypeMessageEntity[];
|
|
16368
|
+
quoteOffset?: number;
|
|
16365
16369
|
}
|
|
16366
16370
|
/**
|
|
16367
16371
|
* Represents a reply to a
|
|
@@ -16901,6 +16905,7 @@ export class RpcError extends Error {
|
|
|
16901
16905
|
*/
|
|
16902
16906
|
startParam?: string;
|
|
16903
16907
|
webpage?: tl.TypeSponsoredWebPage;
|
|
16908
|
+
app?: tl.TypeBotApp;
|
|
16904
16909
|
/**
|
|
16905
16910
|
* Sponsored message
|
|
16906
16911
|
*/
|
|
@@ -16910,6 +16915,7 @@ export class RpcError extends Error {
|
|
|
16910
16915
|
* entities for styled text</a>
|
|
16911
16916
|
*/
|
|
16912
16917
|
entities?: tl.TypeMessageEntity[];
|
|
16918
|
+
buttonText?: string;
|
|
16913
16919
|
/**
|
|
16914
16920
|
* If set, contains additional information about the sponsor to
|
|
16915
16921
|
* be shown along with the message.
|
|
@@ -18541,6 +18547,7 @@ export class RpcError extends Error {
|
|
|
18541
18547
|
* When was the story posted.
|
|
18542
18548
|
*/
|
|
18543
18549
|
date: number;
|
|
18550
|
+
fwdFrom?: tl.TypeStoryFwdHeader;
|
|
18544
18551
|
/**
|
|
18545
18552
|
* When does the story expire.
|
|
18546
18553
|
*/
|
|
@@ -18625,6 +18632,7 @@ export class RpcError extends Error {
|
|
|
18625
18632
|
replyToPeerId?: tl.TypeInputPeer;
|
|
18626
18633
|
quoteText?: string;
|
|
18627
18634
|
quoteEntities?: tl.TypeMessageEntity[];
|
|
18635
|
+
quoteOffset?: number;
|
|
18628
18636
|
}
|
|
18629
18637
|
/**
|
|
18630
18638
|
* Reply to a story.
|
|
@@ -18866,6 +18874,57 @@ export class RpcError extends Error {
|
|
|
18866
18874
|
expires: number;
|
|
18867
18875
|
cooldownUntilDate?: number;
|
|
18868
18876
|
}
|
|
18877
|
+
interface RawMessageActionGiveawayResults {
|
|
18878
|
+
_: 'messageActionGiveawayResults';
|
|
18879
|
+
winnersCount: number;
|
|
18880
|
+
unclaimedCount: number;
|
|
18881
|
+
}
|
|
18882
|
+
interface RawUpdateChannelViewForumAsMessages {
|
|
18883
|
+
_: 'updateChannelViewForumAsMessages';
|
|
18884
|
+
channelId: number;
|
|
18885
|
+
enabled: boolean;
|
|
18886
|
+
}
|
|
18887
|
+
interface RawUpdatePeerWallpaper {
|
|
18888
|
+
_: 'updatePeerWallpaper';
|
|
18889
|
+
wallpaperOverridden?: boolean;
|
|
18890
|
+
peer: tl.TypePeer;
|
|
18891
|
+
wallpaper?: tl.TypeWallPaper;
|
|
18892
|
+
}
|
|
18893
|
+
interface RawStoryFwdHeader {
|
|
18894
|
+
_: 'storyFwdHeader';
|
|
18895
|
+
modified?: boolean;
|
|
18896
|
+
from?: tl.TypePeer;
|
|
18897
|
+
fromName?: string;
|
|
18898
|
+
storyId?: number;
|
|
18899
|
+
}
|
|
18900
|
+
interface RawPostInteractionCountersMessage {
|
|
18901
|
+
_: 'postInteractionCountersMessage';
|
|
18902
|
+
msgId: number;
|
|
18903
|
+
views: number;
|
|
18904
|
+
forwards: number;
|
|
18905
|
+
reactions: number;
|
|
18906
|
+
}
|
|
18907
|
+
interface RawPostInteractionCountersStory {
|
|
18908
|
+
_: 'postInteractionCountersStory';
|
|
18909
|
+
storyId: number;
|
|
18910
|
+
views: number;
|
|
18911
|
+
forwards: number;
|
|
18912
|
+
reactions: number;
|
|
18913
|
+
}
|
|
18914
|
+
interface RawPublicForwardMessage {
|
|
18915
|
+
_: 'publicForwardMessage';
|
|
18916
|
+
message: tl.TypeMessage;
|
|
18917
|
+
}
|
|
18918
|
+
interface RawPublicForwardStory {
|
|
18919
|
+
_: 'publicForwardStory';
|
|
18920
|
+
peer: tl.TypePeer;
|
|
18921
|
+
story: tl.TypeStoryItem;
|
|
18922
|
+
}
|
|
18923
|
+
interface RawPeerColor {
|
|
18924
|
+
_: 'peerColor';
|
|
18925
|
+
color?: number;
|
|
18926
|
+
backgroundEmojiId?: Long;
|
|
18927
|
+
}
|
|
18869
18928
|
/**
|
|
18870
18929
|
* How a user voted in a poll
|
|
18871
18930
|
*/
|
|
@@ -18934,12 +18993,6 @@ export class RpcError extends Error {
|
|
|
18934
18993
|
*/
|
|
18935
18994
|
expires: number;
|
|
18936
18995
|
}
|
|
18937
|
-
interface RawDummyUpdate {
|
|
18938
|
-
_: 'dummyUpdate';
|
|
18939
|
-
pts: number;
|
|
18940
|
-
ptsCount: number;
|
|
18941
|
-
channelId: number;
|
|
18942
|
-
}
|
|
18943
18996
|
/**
|
|
18944
18997
|
* Invokes a query after successful completion of one of the
|
|
18945
18998
|
* previous queries.
|
|
@@ -19079,7 +19132,7 @@ export class RpcError extends Error {
|
|
|
19079
19132
|
*/
|
|
19080
19133
|
query: X;
|
|
19081
19134
|
}
|
|
19082
|
-
interface RpcCallReturn extends help.RpcCallReturn, storage.RpcCallReturn, auth.RpcCallReturn, contacts.RpcCallReturn, messages.RpcCallReturn, updates.RpcCallReturn, photos.RpcCallReturn, upload.RpcCallReturn, account.RpcCallReturn, channels.RpcCallReturn, payments.RpcCallReturn, phone.RpcCallReturn, stats.RpcCallReturn, stickers.RpcCallReturn, users.RpcCallReturn, chatlists.RpcCallReturn, bots.RpcCallReturn, stories.RpcCallReturn, premium.RpcCallReturn, test.RpcCallReturn, langpack.RpcCallReturn, folders.RpcCallReturn {
|
|
19135
|
+
interface RpcCallReturn extends help.RpcCallReturn, storage.RpcCallReturn, auth.RpcCallReturn, contacts.RpcCallReturn, messages.RpcCallReturn, updates.RpcCallReturn, photos.RpcCallReturn, upload.RpcCallReturn, account.RpcCallReturn, channels.RpcCallReturn, payments.RpcCallReturn, phone.RpcCallReturn, stats.RpcCallReturn, stickers.RpcCallReturn, users.RpcCallReturn, chatlists.RpcCallReturn, bots.RpcCallReturn, stories.RpcCallReturn, premium.RpcCallReturn, mtcute.RpcCallReturn, test.RpcCallReturn, langpack.RpcCallReturn, folders.RpcCallReturn {
|
|
19083
19136
|
'invokeAfterMsg': any
|
|
19084
19137
|
'invokeAfterMsgs': any
|
|
19085
19138
|
'initConnection': any
|
|
@@ -19105,7 +19158,7 @@ export class RpcError extends Error {
|
|
|
19105
19158
|
/**
|
|
19106
19159
|
* Peer
|
|
19107
19160
|
*/
|
|
19108
|
-
type TypeInputPeer = tl.RawInputPeerEmpty | tl.RawInputPeerSelf | tl.RawInputPeerChat | tl.RawInputPeerUser | tl.RawInputPeerChannel | tl.RawInputPeerUserFromMessage | tl.RawInputPeerChannelFromMessage
|
|
19161
|
+
type TypeInputPeer = tl.RawInputPeerEmpty | tl.RawInputPeerSelf | tl.RawInputPeerChat | tl.RawInputPeerUser | tl.RawInputPeerChannel | tl.RawInputPeerUserFromMessage | tl.RawInputPeerChannelFromMessage | tl.mtcute.RawDummyInputPeerMinUser | tl.mtcute.RawDummyInputPeerMinChannel
|
|
19109
19162
|
function isAnyInputPeer(o: object): o is TypeInputPeer
|
|
19110
19163
|
/**
|
|
19111
19164
|
* Defines a user for subsequent interaction.
|
|
@@ -19206,7 +19259,7 @@ export class RpcError extends Error {
|
|
|
19206
19259
|
/**
|
|
19207
19260
|
* Object describing actions connected to a service message.
|
|
19208
19261
|
*/
|
|
19209
|
-
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.RawMessageActionSetSameChatWallPaper | tl.RawMessageActionGiftCode | tl.RawMessageActionGiveawayLaunch
|
|
19262
|
+
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.RawMessageActionSetSameChatWallPaper | tl.RawMessageActionGiftCode | tl.RawMessageActionGiveawayLaunch | tl.RawMessageActionGiveawayResults
|
|
19210
19263
|
function isAnyMessageAction(o: object): o is TypeMessageAction
|
|
19211
19264
|
/**
|
|
19212
19265
|
* Chat info.
|
|
@@ -19289,7 +19342,7 @@ export class RpcError extends Error {
|
|
|
19289
19342
|
/**
|
|
19290
19343
|
* Object contains info on events occurred.
|
|
19291
19344
|
*/
|
|
19292
|
-
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.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateGroupInvitePrivacyForbidden | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawDummyUpdate
|
|
19345
|
+
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.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateGroupInvitePrivacyForbidden | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.mtcute.RawDummyUpdate
|
|
19293
19346
|
function isAnyUpdate(o: object): o is TypeUpdate
|
|
19294
19347
|
/**
|
|
19295
19348
|
* Object which is perceived by the client without a call on
|
|
@@ -20630,6 +20683,14 @@ export class RpcError extends Error {
|
|
|
20630
20683
|
function isAnyBoost(o: object): o is TypeBoost
|
|
20631
20684
|
type TypeMyBoost = tl.RawMyBoost
|
|
20632
20685
|
function isAnyMyBoost(o: object): o is TypeMyBoost
|
|
20686
|
+
type TypeStoryFwdHeader = tl.RawStoryFwdHeader
|
|
20687
|
+
function isAnyStoryFwdHeader(o: object): o is TypeStoryFwdHeader
|
|
20688
|
+
type TypePostInteractionCounters = tl.RawPostInteractionCountersMessage | tl.RawPostInteractionCountersStory
|
|
20689
|
+
function isAnyPostInteractionCounters(o: object): o is TypePostInteractionCounters
|
|
20690
|
+
type TypePublicForward = tl.RawPublicForwardMessage | tl.RawPublicForwardStory
|
|
20691
|
+
function isAnyPublicForward(o: object): o is TypePublicForward
|
|
20692
|
+
type TypePeerColor = tl.RawPeerColor
|
|
20693
|
+
function isAnyPeerColor(o: object): o is TypePeerColor
|
|
20633
20694
|
/**
|
|
20634
20695
|
* How a user voted in a poll
|
|
20635
20696
|
*/
|
|
@@ -21076,6 +21137,31 @@ export class RpcError extends Error {
|
|
|
21076
21137
|
*/
|
|
21077
21138
|
config: tl.TypeJSONValue;
|
|
21078
21139
|
}
|
|
21140
|
+
interface RawPeerColorSet {
|
|
21141
|
+
_: 'help.peerColorSet';
|
|
21142
|
+
colors: number[];
|
|
21143
|
+
}
|
|
21144
|
+
interface RawPeerColorProfileSet {
|
|
21145
|
+
_: 'help.peerColorProfileSet';
|
|
21146
|
+
paletteColors: number[];
|
|
21147
|
+
bgColors: number[];
|
|
21148
|
+
storyColors: number[];
|
|
21149
|
+
}
|
|
21150
|
+
interface RawPeerColorOption {
|
|
21151
|
+
_: 'help.peerColorOption';
|
|
21152
|
+
hidden?: boolean;
|
|
21153
|
+
colorId: number;
|
|
21154
|
+
colors?: tl.help.TypePeerColorSet;
|
|
21155
|
+
darkColors?: tl.help.TypePeerColorSet;
|
|
21156
|
+
}
|
|
21157
|
+
interface RawPeerColorsNotModified {
|
|
21158
|
+
_: 'help.peerColorsNotModified';
|
|
21159
|
+
}
|
|
21160
|
+
interface RawPeerColors {
|
|
21161
|
+
_: 'help.peerColors';
|
|
21162
|
+
hash: number;
|
|
21163
|
+
colors: tl.help.TypePeerColorOption[];
|
|
21164
|
+
}
|
|
21079
21165
|
/**
|
|
21080
21166
|
* Returns current configuration, including data center
|
|
21081
21167
|
* configuration.
|
|
@@ -21376,6 +21462,20 @@ export class RpcError extends Error {
|
|
|
21376
21462
|
interface RawGetPremiumPromoRequest {
|
|
21377
21463
|
_: 'help.getPremiumPromo';
|
|
21378
21464
|
}
|
|
21465
|
+
/**
|
|
21466
|
+
* RPC method returns {@link tl.help.TypePeerColors}
|
|
21467
|
+
*/
|
|
21468
|
+
interface RawGetPeerColorsRequest {
|
|
21469
|
+
_: 'help.getPeerColors';
|
|
21470
|
+
hash: number;
|
|
21471
|
+
}
|
|
21472
|
+
/**
|
|
21473
|
+
* RPC method returns {@link tl.help.TypePeerColors}
|
|
21474
|
+
*/
|
|
21475
|
+
interface RawGetPeerProfileColorsRequest {
|
|
21476
|
+
_: 'help.getPeerProfileColors';
|
|
21477
|
+
hash: number;
|
|
21478
|
+
}
|
|
21379
21479
|
interface RpcCallReturn {
|
|
21380
21480
|
'help.getConfig': tl.TypeConfig
|
|
21381
21481
|
'help.getNearestDc': tl.TypeNearestDc
|
|
@@ -21400,6 +21500,8 @@ export class RpcError extends Error {
|
|
|
21400
21500
|
'help.dismissSuggestion': boolean
|
|
21401
21501
|
'help.getCountriesList': tl.help.TypeCountriesList
|
|
21402
21502
|
'help.getPremiumPromo': tl.help.TypePremiumPromo
|
|
21503
|
+
'help.getPeerColors': tl.help.TypePeerColors
|
|
21504
|
+
'help.getPeerProfileColors': tl.help.TypePeerColors
|
|
21403
21505
|
}
|
|
21404
21506
|
type TypeConfigSimple = tl.help.RawConfigSimple
|
|
21405
21507
|
function isAnyConfigSimple(o: object): o is TypeConfigSimple
|
|
@@ -21493,6 +21595,12 @@ export class RpcError extends Error {
|
|
|
21493
21595
|
*/
|
|
21494
21596
|
type TypeAppConfig = tl.help.RawAppConfigNotModified | tl.help.RawAppConfig
|
|
21495
21597
|
function isAnyAppConfig(o: object): o is TypeAppConfig
|
|
21598
|
+
type TypePeerColorSet = tl.help.RawPeerColorSet | tl.help.RawPeerColorProfileSet
|
|
21599
|
+
function isAnyPeerColorSet(o: object): o is TypePeerColorSet
|
|
21600
|
+
type TypePeerColorOption = tl.help.RawPeerColorOption
|
|
21601
|
+
function isAnyPeerColorOption(o: object): o is TypePeerColorOption
|
|
21602
|
+
type TypePeerColors = tl.help.RawPeerColorsNotModified | tl.help.RawPeerColors
|
|
21603
|
+
function isAnyPeerColors(o: object): o is TypePeerColors
|
|
21496
21604
|
}
|
|
21497
21605
|
|
|
21498
21606
|
namespace storage {
|
|
@@ -24307,6 +24415,8 @@ export class RpcError extends Error {
|
|
|
24307
24415
|
* Transcripted text
|
|
24308
24416
|
*/
|
|
24309
24417
|
text: string;
|
|
24418
|
+
trialRemainsNum?: number;
|
|
24419
|
+
trialRemainsUntilDate?: number;
|
|
24310
24420
|
}
|
|
24311
24421
|
/**
|
|
24312
24422
|
* The server-side list of
|
|
@@ -28897,6 +29007,17 @@ export class RpcError extends Error {
|
|
|
28897
29007
|
* must contain the ID of that message.
|
|
28898
29008
|
*/
|
|
28899
29009
|
id?: number;
|
|
29010
|
+
forBoth?: boolean;
|
|
29011
|
+
revert?: boolean;
|
|
29012
|
+
}
|
|
29013
|
+
/**
|
|
29014
|
+
* RPC method returns {@link tl.messages.TypeFoundStickerSets}
|
|
29015
|
+
*/
|
|
29016
|
+
interface RawSearchEmojiStickerSetsRequest {
|
|
29017
|
+
_: 'messages.searchEmojiStickerSets';
|
|
29018
|
+
excludeFeatured?: boolean;
|
|
29019
|
+
q: string;
|
|
29020
|
+
hash: Long;
|
|
28900
29021
|
}
|
|
28901
29022
|
interface RpcCallReturn {
|
|
28902
29023
|
'messages.getMessages': tl.messages.TypeMessages
|
|
@@ -29086,6 +29207,7 @@ export class RpcError extends Error {
|
|
|
29086
29207
|
'messages.getBotApp': tl.messages.TypeBotApp
|
|
29087
29208
|
'messages.requestAppWebView': tl.TypeAppWebViewResult
|
|
29088
29209
|
'messages.setChatWallPaper': tl.TypeUpdates
|
|
29210
|
+
'messages.searchEmojiStickerSets': tl.messages.TypeFoundStickerSets
|
|
29089
29211
|
}
|
|
29090
29212
|
/**
|
|
29091
29213
|
* Object contains a list of chats with messages and auxiliary
|
|
@@ -32196,7 +32318,8 @@ export class RpcError extends Error {
|
|
|
32196
32318
|
*/
|
|
32197
32319
|
interface RawUpdateColorRequest {
|
|
32198
32320
|
_: 'account.updateColor';
|
|
32199
|
-
|
|
32321
|
+
forProfile?: boolean;
|
|
32322
|
+
color?: number;
|
|
32200
32323
|
backgroundEmojiId?: Long;
|
|
32201
32324
|
}
|
|
32202
32325
|
/**
|
|
@@ -33682,6 +33805,21 @@ export class RpcError extends Error {
|
|
|
33682
33805
|
color: number;
|
|
33683
33806
|
backgroundEmojiId?: Long;
|
|
33684
33807
|
}
|
|
33808
|
+
/**
|
|
33809
|
+
* RPC method returns {@link tl.TypeUpdates}
|
|
33810
|
+
*/
|
|
33811
|
+
interface RawToggleViewForumAsMessagesRequest {
|
|
33812
|
+
_: 'channels.toggleViewForumAsMessages';
|
|
33813
|
+
channel: tl.TypeInputChannel;
|
|
33814
|
+
enabled: boolean;
|
|
33815
|
+
}
|
|
33816
|
+
/**
|
|
33817
|
+
* RPC method returns {@link tl.messages.TypeChats}
|
|
33818
|
+
*/
|
|
33819
|
+
interface RawGetChannelRecommendationsRequest {
|
|
33820
|
+
_: 'channels.getChannelRecommendations';
|
|
33821
|
+
channel: tl.TypeInputChannel;
|
|
33822
|
+
}
|
|
33685
33823
|
interface RpcCallReturn {
|
|
33686
33824
|
'channels.readHistory': boolean
|
|
33687
33825
|
'channels.deleteMessages': tl.messages.TypeAffectedMessages
|
|
@@ -33740,6 +33878,8 @@ export class RpcError extends Error {
|
|
|
33740
33878
|
'channels.toggleParticipantsHidden': tl.TypeUpdates
|
|
33741
33879
|
'channels.clickSponsoredMessage': boolean
|
|
33742
33880
|
'channels.updateColor': tl.TypeUpdates
|
|
33881
|
+
'channels.toggleViewForumAsMessages': tl.TypeUpdates
|
|
33882
|
+
'channels.getChannelRecommendations': tl.messages.TypeChats
|
|
33743
33883
|
}
|
|
33744
33884
|
/**
|
|
33745
33885
|
* Channel/supergroup participants
|
|
@@ -35246,6 +35386,10 @@ export class RpcError extends Error {
|
|
|
35246
35386
|
* min_date))</code> till <code>min_date</code>)
|
|
35247
35387
|
*/
|
|
35248
35388
|
sharesPerPost: tl.TypeStatsAbsValueAndPrev;
|
|
35389
|
+
reactionsPerPost: tl.TypeStatsAbsValueAndPrev;
|
|
35390
|
+
viewsPerStory: tl.TypeStatsAbsValueAndPrev;
|
|
35391
|
+
sharesPerStory: tl.TypeStatsAbsValueAndPrev;
|
|
35392
|
+
reactionsPerStory: tl.TypeStatsAbsValueAndPrev;
|
|
35249
35393
|
/**
|
|
35250
35394
|
* Percentage of subscribers with enabled notifications
|
|
35251
35395
|
*/
|
|
@@ -35286,10 +35430,10 @@ export class RpcError extends Error {
|
|
|
35286
35430
|
* Subscriber language graph (pie chart)
|
|
35287
35431
|
*/
|
|
35288
35432
|
languagesGraph: tl.TypeStatsGraph;
|
|
35289
|
-
|
|
35290
|
-
|
|
35291
|
-
|
|
35292
|
-
|
|
35433
|
+
reactionsByEmotionGraph: tl.TypeStatsGraph;
|
|
35434
|
+
storyInteractionsGraph: tl.TypeStatsGraph;
|
|
35435
|
+
storyReactionsByEmotionGraph: tl.TypeStatsGraph;
|
|
35436
|
+
recentPostsInteractions: tl.TypePostInteractionCounters[];
|
|
35293
35437
|
}
|
|
35294
35438
|
/**
|
|
35295
35439
|
* Supergroup
|
|
@@ -35378,6 +35522,20 @@ export class RpcError extends Error {
|
|
|
35378
35522
|
* Message view graph
|
|
35379
35523
|
*/
|
|
35380
35524
|
viewsGraph: tl.TypeStatsGraph;
|
|
35525
|
+
reactionsByEmotionGraph: tl.TypeStatsGraph;
|
|
35526
|
+
}
|
|
35527
|
+
interface RawStoryStats {
|
|
35528
|
+
_: 'stats.storyStats';
|
|
35529
|
+
viewsGraph: tl.TypeStatsGraph;
|
|
35530
|
+
reactionsByEmotionGraph: tl.TypeStatsGraph;
|
|
35531
|
+
}
|
|
35532
|
+
interface RawPublicForwards {
|
|
35533
|
+
_: 'stats.publicForwards';
|
|
35534
|
+
count: number;
|
|
35535
|
+
forwards: tl.TypePublicForward[];
|
|
35536
|
+
nextOffset?: string;
|
|
35537
|
+
chats: tl.TypeChat[];
|
|
35538
|
+
users: tl.TypeUser[];
|
|
35381
35539
|
}
|
|
35382
35540
|
/**
|
|
35383
35541
|
* Get
|
|
@@ -35499,12 +35657,33 @@ export class RpcError extends Error {
|
|
|
35499
35657
|
*/
|
|
35500
35658
|
msgId: number;
|
|
35501
35659
|
}
|
|
35660
|
+
/**
|
|
35661
|
+
* RPC method returns {@link tl.stats.TypeStoryStats}
|
|
35662
|
+
*/
|
|
35663
|
+
interface RawGetStoryStatsRequest {
|
|
35664
|
+
_: 'stats.getStoryStats';
|
|
35665
|
+
dark?: boolean;
|
|
35666
|
+
peer: tl.TypeInputPeer;
|
|
35667
|
+
id: number;
|
|
35668
|
+
}
|
|
35669
|
+
/**
|
|
35670
|
+
* RPC method returns {@link tl.stats.TypePublicForwards}
|
|
35671
|
+
*/
|
|
35672
|
+
interface RawGetStoryPublicForwardsRequest {
|
|
35673
|
+
_: 'stats.getStoryPublicForwards';
|
|
35674
|
+
peer: tl.TypeInputPeer;
|
|
35675
|
+
id: number;
|
|
35676
|
+
offset: string;
|
|
35677
|
+
limit: number;
|
|
35678
|
+
}
|
|
35502
35679
|
interface RpcCallReturn {
|
|
35503
35680
|
'stats.getBroadcastStats': tl.stats.TypeBroadcastStats
|
|
35504
35681
|
'stats.loadAsyncGraph': tl.TypeStatsGraph
|
|
35505
35682
|
'stats.getMegagroupStats': tl.stats.TypeMegagroupStats
|
|
35506
35683
|
'stats.getMessagePublicForwards': tl.messages.TypeMessages
|
|
35507
35684
|
'stats.getMessageStats': tl.stats.TypeMessageStats
|
|
35685
|
+
'stats.getStoryStats': tl.stats.TypeStoryStats
|
|
35686
|
+
'stats.getStoryPublicForwards': tl.stats.TypePublicForwards
|
|
35508
35687
|
}
|
|
35509
35688
|
/**
|
|
35510
35689
|
* Channel statistics
|
|
@@ -35521,6 +35700,10 @@ export class RpcError extends Error {
|
|
|
35521
35700
|
*/
|
|
35522
35701
|
type TypeMessageStats = tl.stats.RawMessageStats
|
|
35523
35702
|
function isAnyMessageStats(o: object): o is TypeMessageStats
|
|
35703
|
+
type TypeStoryStats = tl.stats.RawStoryStats
|
|
35704
|
+
function isAnyStoryStats(o: object): o is TypeStoryStats
|
|
35705
|
+
type TypePublicForwards = tl.stats.RawPublicForwards
|
|
35706
|
+
function isAnyPublicForwards(o: object): o is TypePublicForwards
|
|
35524
35707
|
}
|
|
35525
35708
|
|
|
35526
35709
|
namespace stickers {
|
|
@@ -36804,6 +36987,7 @@ export class RpcError extends Error {
|
|
|
36804
36987
|
* If set, disables forwards, screenshots, and downloads.
|
|
36805
36988
|
*/
|
|
36806
36989
|
noforwards?: boolean;
|
|
36990
|
+
fwdModified?: boolean;
|
|
36807
36991
|
/**
|
|
36808
36992
|
* The peer to send the story as.
|
|
36809
36993
|
*/
|
|
@@ -36847,6 +37031,8 @@ export class RpcError extends Error {
|
|
|
36847
37031
|
* Premium users, and <code>86400</code> otherwise.
|
|
36848
37032
|
*/
|
|
36849
37033
|
period?: number;
|
|
37034
|
+
fwdFromId?: tl.TypeInputPeer;
|
|
37035
|
+
fwdFromStory?: number;
|
|
36850
37036
|
}
|
|
36851
37037
|
/**
|
|
36852
37038
|
* Edit an uploaded
|
|
@@ -37539,6 +37725,35 @@ export class RpcError extends Error {
|
|
|
37539
37725
|
function isAnyBoostsStatus(o: object): o is TypeBoostsStatus
|
|
37540
37726
|
}
|
|
37541
37727
|
|
|
37728
|
+
namespace mtcute {
|
|
37729
|
+
interface RawDummyUpdate {
|
|
37730
|
+
_: 'mtcute.dummyUpdate';
|
|
37731
|
+
pts: number;
|
|
37732
|
+
ptsCount: number;
|
|
37733
|
+
channelId: number;
|
|
37734
|
+
}
|
|
37735
|
+
interface RawDummyInputPeerMinUser {
|
|
37736
|
+
_: 'mtcute.dummyInputPeerMinUser';
|
|
37737
|
+
userId: number;
|
|
37738
|
+
}
|
|
37739
|
+
interface RawDummyInputPeerMinChannel {
|
|
37740
|
+
_: 'mtcute.dummyInputPeerMinChannel';
|
|
37741
|
+
channelId: number;
|
|
37742
|
+
}
|
|
37743
|
+
interface RpcCallReturn {
|
|
37744
|
+
}
|
|
37745
|
+
/**
|
|
37746
|
+
* Object contains info on events occurred.
|
|
37747
|
+
*/
|
|
37748
|
+
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.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateGroupInvitePrivacyForbidden | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.mtcute.RawDummyUpdate
|
|
37749
|
+
function isAnyUpdate(o: object): o is TypeUpdate
|
|
37750
|
+
/**
|
|
37751
|
+
* Peer
|
|
37752
|
+
*/
|
|
37753
|
+
type TypeInputPeer = tl.RawInputPeerEmpty | tl.RawInputPeerSelf | tl.RawInputPeerChat | tl.RawInputPeerUser | tl.RawInputPeerChannel | tl.RawInputPeerUserFromMessage | tl.RawInputPeerChannelFromMessage | tl.mtcute.RawDummyInputPeerMinUser | tl.mtcute.RawDummyInputPeerMinChannel
|
|
37754
|
+
function isAnyInputPeer(o: object): o is TypeInputPeer
|
|
37755
|
+
}
|
|
37756
|
+
|
|
37542
37757
|
namespace test {
|
|
37543
37758
|
/**
|
|
37544
37759
|
* RPC method returns {@link tl.TypeError}
|
|
@@ -38241,6 +38456,13 @@ export class RpcError extends Error {
|
|
|
38241
38456
|
| tl.premium.RawApplyBoostRequest
|
|
38242
38457
|
| tl.premium.RawGetBoostsStatusRequest
|
|
38243
38458
|
| tl.premium.RawGetUserBoostsRequest
|
|
38459
|
+
| tl.messages.RawSearchEmojiStickerSetsRequest
|
|
38460
|
+
| tl.help.RawGetPeerColorsRequest
|
|
38461
|
+
| tl.help.RawGetPeerProfileColorsRequest
|
|
38462
|
+
| tl.channels.RawToggleViewForumAsMessagesRequest
|
|
38463
|
+
| tl.channels.RawGetChannelRecommendationsRequest
|
|
38464
|
+
| tl.stats.RawGetStoryStatsRequest
|
|
38465
|
+
| tl.stats.RawGetStoryPublicForwardsRequest
|
|
38244
38466
|
| tl.stories.RawGetBoostsStatusRequest
|
|
38245
38467
|
| tl.stories.RawGetBoostersListRequest
|
|
38246
38468
|
| tl.stories.RawCanApplyBoostRequest
|
|
@@ -39421,6 +39643,22 @@ export class RpcError extends Error {
|
|
|
39421
39643
|
| tl.RawMyBoost
|
|
39422
39644
|
| tl.premium.RawMyBoosts
|
|
39423
39645
|
| tl.premium.RawBoostsStatus
|
|
39646
|
+
| tl.RawMessageActionGiveawayResults
|
|
39647
|
+
| tl.RawUpdateChannelViewForumAsMessages
|
|
39648
|
+
| tl.RawUpdatePeerWallpaper
|
|
39649
|
+
| tl.RawStoryFwdHeader
|
|
39650
|
+
| tl.RawPostInteractionCountersMessage
|
|
39651
|
+
| tl.RawPostInteractionCountersStory
|
|
39652
|
+
| tl.stats.RawStoryStats
|
|
39653
|
+
| tl.RawPublicForwardMessage
|
|
39654
|
+
| tl.RawPublicForwardStory
|
|
39655
|
+
| tl.stats.RawPublicForwards
|
|
39656
|
+
| tl.RawPeerColor
|
|
39657
|
+
| tl.help.RawPeerColorSet
|
|
39658
|
+
| tl.help.RawPeerColorProfileSet
|
|
39659
|
+
| tl.help.RawPeerColorOption
|
|
39660
|
+
| tl.help.RawPeerColorsNotModified
|
|
39661
|
+
| tl.help.RawPeerColors
|
|
39424
39662
|
| tl.RawMessageUserVote
|
|
39425
39663
|
| tl.RawMessageUserVoteInputOption
|
|
39426
39664
|
| tl.RawMessageUserVoteMultiple
|
|
@@ -39429,7 +39667,9 @@ export class RpcError extends Error {
|
|
|
39429
39667
|
| tl.stories.RawCanApplyBoostReplace
|
|
39430
39668
|
| tl.RawBooster
|
|
39431
39669
|
| tl.stories.RawBoostersList
|
|
39432
|
-
| tl.RawDummyUpdate
|
|
39670
|
+
| tl.mtcute.RawDummyUpdate
|
|
39671
|
+
| tl.mtcute.RawDummyInputPeerMinUser
|
|
39672
|
+
| tl.mtcute.RawDummyInputPeerMinChannel
|
|
39433
39673
|
| tl.test.RawUseErrorRequest
|
|
39434
39674
|
| tl.test.RawUseConfigSimpleRequest
|
|
39435
39675
|
| tl.test.RawParseInputAppEventRequest
|
|
@@ -39986,6 +40226,13 @@ export class RpcError extends Error {
|
|
|
39986
40226
|
| tl.premium.RawApplyBoostRequest
|
|
39987
40227
|
| tl.premium.RawGetBoostsStatusRequest
|
|
39988
40228
|
| tl.premium.RawGetUserBoostsRequest
|
|
40229
|
+
| tl.messages.RawSearchEmojiStickerSetsRequest
|
|
40230
|
+
| tl.help.RawGetPeerColorsRequest
|
|
40231
|
+
| tl.help.RawGetPeerProfileColorsRequest
|
|
40232
|
+
| tl.channels.RawToggleViewForumAsMessagesRequest
|
|
40233
|
+
| tl.channels.RawGetChannelRecommendationsRequest
|
|
40234
|
+
| tl.stats.RawGetStoryStatsRequest
|
|
40235
|
+
| tl.stats.RawGetStoryPublicForwardsRequest
|
|
39989
40236
|
| tl.stories.RawGetBoostsStatusRequest
|
|
39990
40237
|
| tl.stories.RawGetBoostersListRequest
|
|
39991
40238
|
| tl.stories.RawCanApplyBoostRequest
|