From f8710df0648e222b8a03495573f7e0ab3f4eee3d Mon Sep 17 00:00:00 2001 From: Painor Date: Fri, 12 Apr 2024 12:26:13 +0100 Subject: [PATCH] Update layer. remove useless dependencies --- gramjs/Helpers.ts | 4 +- gramjs/Utils.ts | 5 +- gramjs/Version.ts | 2 +- gramjs/client/TelegramClient.ts | 3 +- gramjs/client/telegramBaseClient.ts | 3 +- gramjs/client/updates.ts | 6 +- gramjs/client/users.ts | 3 +- gramjs/errors/RPCErrorList.ts | 1 + gramjs/events/Album.ts | 3 +- gramjs/events/NewMessage.ts | 3 +- gramjs/extensions/html.ts | 4 +- gramjs/network/MTProtoSender.ts | 12 +- gramjs/tl/AllTLObjects.ts | 2 +- gramjs/tl/api.d.ts | 2263 ++++++++++++++++++++++--- gramjs/tl/apiTl.js | 164 +- gramjs/tl/custom/file.ts | 4 +- gramjs/tl/custom/message.ts | 3 +- gramjs/tl/static/api.tl | 213 ++- gramjs/tl/types-generator/template.js | 2 +- package-lock.json | 4 +- package.json | 11 +- 21 files changed, 2424 insertions(+), 291 deletions(-) diff --git a/gramjs/Helpers.ts b/gramjs/Helpers.ts index c07ef9bc..0643abc9 100644 --- a/gramjs/Helpers.ts +++ b/gramjs/Helpers.ts @@ -139,7 +139,9 @@ export function readBufferFromBigInt( } if (signed && bigIntVar.lesser(bigInt(0))) { - bigIntVar = bigInt(2).pow(bigInt(bytesNumber).multiply(8)).add(bigIntVar); + bigIntVar = bigInt(2) + .pow(bigInt(bytesNumber).multiply(8)) + .add(bigIntVar); } const hex = bigIntVar.toString(16).padStart(bytesNumber * 2, "0"); diff --git a/gramjs/Utils.ts b/gramjs/Utils.ts index 1e6b3bd3..3c6f3d76 100644 --- a/gramjs/Utils.ts +++ b/gramjs/Utils.ts @@ -237,9 +237,8 @@ export function _photoSizeByteCount(size: Api.TypePhotoSize) { } else if (size instanceof Api.PhotoSizeEmpty) { return 0; } else if (size instanceof Api.PhotoSizeProgressive) { - return size.sizes[size.sizes.length -1]; - } - else { + return size.sizes[size.sizes.length - 1]; + } else { return undefined; } } diff --git a/gramjs/Version.ts b/gramjs/Version.ts index 53b0a4c4..e986b71b 100644 --- a/gramjs/Version.ts +++ b/gramjs/Version.ts @@ -1 +1 @@ -export const version = "2.20.3"; +export const version = "2.20.9"; diff --git a/gramjs/client/TelegramClient.ts b/gramjs/client/TelegramClient.ts index 6c7adfa1..8398d846 100644 --- a/gramjs/client/TelegramClient.ts +++ b/gramjs/client/TelegramClient.ts @@ -1368,7 +1368,8 @@ export class TelegramClient extends TelegramBaseClient { this._log.error(`Error while trying to reconnect`); if (this._errorHandler) { await this._errorHandler(e as Error); - } if (this._log.canSend(LogLevel.ERROR)) { + } + if (this._log.canSend(LogLevel.ERROR)) { console.error(e); } } diff --git a/gramjs/client/telegramBaseClient.ts b/gramjs/client/telegramBaseClient.ts index f5d48ea3..c476584f 100644 --- a/gramjs/client/telegramBaseClient.ts +++ b/gramjs/client/telegramBaseClient.ts @@ -524,7 +524,8 @@ export abstract class TelegramBaseClient { } catch (err) { if (this._errorHandler) { await this._errorHandler(err as Error); - } if (this._log.canSend(LogLevel.ERROR)) { + } + if (this._log.canSend(LogLevel.ERROR)) { console.error(err); } return this._borrowExportedSender(dcId, true); diff --git a/gramjs/client/updates.ts b/gramjs/client/updates.ts index e9b970e4..c9740370 100644 --- a/gramjs/client/updates.ts +++ b/gramjs/client/updates.ts @@ -176,7 +176,8 @@ export async function _dispatchUpdate( } if (client._errorHandler) { await client._errorHandler(e as Error); - } if (client._log.canSend(LogLevel.ERROR)) { + } + if (client._log.canSend(LogLevel.ERROR)) { console.error(e); } } @@ -245,7 +246,8 @@ export async function _updateLoop(client: TelegramClient) { // eslint-disable-next-line no-console if (client._errorHandler) { await client._errorHandler(err as Error); - } if (client._log.canSend(LogLevel.ERROR)) { + } + if (client._log.canSend(LogLevel.ERROR)) { console.error(err); } diff --git a/gramjs/client/users.ts b/gramjs/client/users.ts index 37dd1895..89cfc975 100644 --- a/gramjs/client/users.ts +++ b/gramjs/client/users.ts @@ -370,7 +370,8 @@ export async function getInputEntity( } catch (e) { if (client._errorHandler) { await client._errorHandler(e as Error); - } if (client._log.canSend(LogLevel.ERROR)) { + } + if (client._log.canSend(LogLevel.ERROR)) { console.error(e); } } diff --git a/gramjs/errors/RPCErrorList.ts b/gramjs/errors/RPCErrorList.ts index 458f7f3c..aa08b62b 100644 --- a/gramjs/errors/RPCErrorList.ts +++ b/gramjs/errors/RPCErrorList.ts @@ -160,6 +160,7 @@ export const rpcErrorRe = new Map([ [/FILE_MIGRATE_(\d+)/, FileMigrateError], [/FLOOD_TEST_PHONE_WAIT_(\d+)/, FloodTestPhoneWaitError], [/FLOOD_WAIT_(\d+)/, FloodWaitError], + [/FLOOD_PREMIUM_WAIT_(\d+)/, FloodWaitError], [/MSG_WAIT_(.*)/, MsgWaitError], [/PHONE_MIGRATE_(\d+)/, PhoneMigrateError], [/SLOWMODE_WAIT_(\d+)/, SlowModeWaitError], diff --git a/gramjs/events/Album.ts b/gramjs/events/Album.ts index e171ed64..f7a683b7 100644 --- a/gramjs/events/Album.ts +++ b/gramjs/events/Album.ts @@ -110,7 +110,8 @@ export class AlbumEvent extends EventCommon { ); if (client._errorHandler) { client._errorHandler(e as Error); - } if (client._log.canSend(LogLevel.ERROR)) { + } + if (client._log.canSend(LogLevel.ERROR)) { console.error(e); } } diff --git a/gramjs/events/NewMessage.ts b/gramjs/events/NewMessage.ts index 4f925e32..b6125446 100644 --- a/gramjs/events/NewMessage.ts +++ b/gramjs/events/NewMessage.ts @@ -260,7 +260,8 @@ export class NewMessageEvent extends EventCommon { ); if (client._errorHandler) { client._errorHandler(e as Error); - } if (client._log.canSend(LogLevel.ERROR)) { + } + if (client._log.canSend(LogLevel.ERROR)) { console.error(e); } } diff --git a/gramjs/extensions/html.ts b/gramjs/extensions/html.ts index 558c9469..7d2b0571 100644 --- a/gramjs/extensions/html.ts +++ b/gramjs/extensions/html.ts @@ -207,7 +207,9 @@ export class HTMLParser { html.push(`
${entityText}
`); } else if (entity instanceof Api.MessageEntityPre) { if (entity.language) { - html.push(`
${entityText}
`); + html.push( + `
${entityText}
` + ); } else { html.push(`
${entityText}
`); } diff --git a/gramjs/network/MTProtoSender.ts b/gramjs/network/MTProtoSender.ts index ebd41333..afe5e968 100644 --- a/gramjs/network/MTProtoSender.ts +++ b/gramjs/network/MTProtoSender.ts @@ -279,7 +279,8 @@ export class MTProtoSender { ); if (this._client._errorHandler) { await this._client._errorHandler(err as Error); - } if (this._log.canSend(LogLevel.ERROR)) { + } + if (this._log.canSend(LogLevel.ERROR)) { console.error(err); } await sleep(this._delay); @@ -583,7 +584,8 @@ export class MTProtoSender { this._log.error("Unhandled error while receiving data"); if (this._client._errorHandler) { await this._client._errorHandler(e as Error); - } if (this._log.canSend(LogLevel.ERROR)) { + } + if (this._log.canSend(LogLevel.ERROR)) { console.log(e); } this.reconnect(); @@ -607,7 +609,8 @@ export class MTProtoSender { this._log.error("Unhandled error while receiving data"); if (this._client._errorHandler) { await this._client._errorHandler(e as Error); - } if (this._log.canSend(LogLevel.ERROR)) { + } + if (this._log.canSend(LogLevel.ERROR)) { console.log(e); } } @@ -986,7 +989,8 @@ export class MTProtoSender { this._log.warn("Error happened while disconnecting"); if (this._client._errorHandler) { await this._client._errorHandler(err as Error); - } if (this._log.canSend(LogLevel.ERROR)) { + } + if (this._log.canSend(LogLevel.ERROR)) { console.error(err); } } diff --git a/gramjs/tl/AllTLObjects.ts b/gramjs/tl/AllTLObjects.ts index 4609a75d..f75662a6 100644 --- a/gramjs/tl/AllTLObjects.ts +++ b/gramjs/tl/AllTLObjects.ts @@ -1,4 +1,4 @@ -export const LAYER = 174; +export const LAYER = 177; import { Api } from "./"; diff --git a/gramjs/tl/api.d.ts b/gramjs/tl/api.d.ts index 2fb6c648..d20dc95e 100644 --- a/gramjs/tl/api.d.ts +++ b/gramjs/tl/api.d.ts @@ -774,6 +774,7 @@ export namespace Api { storiesHidden?: boolean; storiesUnavailable?: boolean; contactRequirePremium?: boolean; + botBusiness?: boolean; id: long; accessHash?: long; firstName?: string; @@ -822,6 +823,7 @@ export namespace Api { storiesHidden?: boolean; storiesUnavailable?: boolean; contactRequirePremium?: boolean; + botBusiness?: boolean; id: long; accessHash?: long; firstName?: string; @@ -1171,6 +1173,8 @@ export namespace Api { translationsDisabled?: boolean; storiesPinnedAvailable?: boolean; viewForumAsMessages?: boolean; + restrictedSponsored?: boolean; + canViewRevenue?: boolean; id: long; about: string; participantsCount?: int; @@ -1233,6 +1237,8 @@ export namespace Api { translationsDisabled?: boolean; storiesPinnedAvailable?: boolean; viewForumAsMessages?: boolean; + restrictedSponsored?: boolean; + canViewRevenue?: boolean; id: long; about: string; participantsCount?: int; @@ -1380,7 +1386,7 @@ export namespace Api { peerId?: Api.TypePeer; } export class Message extends CustomMessage { - CONSTRUCTOR_ID: 508332649; + CONSTRUCTOR_ID: 592953125; SUBCLASS_OF_ID: 2030045667; classType: "request"; className: "Message"; @@ -2191,6 +2197,18 @@ export namespace Api { static fromReader(reader: Reader): MessageActionBoostApply; boosts: int; } + export class MessageActionRequestedPeerSentMe extends VirtualClass<{ + buttonId: int; + peers: Api.TypeRequestedPeer[]; + }> { + CONSTRUCTOR_ID: 2477987912; + SUBCLASS_OF_ID: 2256589094; + classType: "constructor"; + className: "MessageActionRequestedPeerSentMe"; + static fromReader(reader: Reader): MessageActionRequestedPeerSentMe; + buttonId: int; + peers: Api.TypeRequestedPeer[]; + } export class Dialog extends VirtualClass<{ // flags: null; pinned?: boolean; @@ -2510,11 +2528,15 @@ export namespace Api { autoarchived?: boolean; inviteMembers?: boolean; requestChatBroadcast?: boolean; + businessBotPaused?: boolean; + businessBotCanReply?: boolean; geoDistance?: int; requestChatTitle?: string; requestChatDate?: int; + businessBotId?: long; + businessBotManageUrl?: string; }> { - CONSTRUCTOR_ID: 2769817869; + CONSTRUCTOR_ID: 2899733598; SUBCLASS_OF_ID: 4138180484; classType: "constructor"; className: "PeerSettings"; @@ -2529,9 +2551,13 @@ export namespace Api { autoarchived?: boolean; inviteMembers?: boolean; requestChatBroadcast?: boolean; + businessBotPaused?: boolean; + businessBotCanReply?: boolean; geoDistance?: int; requestChatTitle?: string; requestChatDate?: int; + businessBotId?: long; + businessBotManageUrl?: string; } export class WallPaper extends VirtualClass<{ id: long; @@ -2664,6 +2690,7 @@ export namespace Api { wallpaperOverridden?: boolean; contactRequirePremium?: boolean; readDatesPrivate?: boolean; + // flags2: null; id: long; about?: string; settings: Api.TypePeerSettings; @@ -2683,8 +2710,16 @@ export namespace Api { premiumGifts?: Api.TypePremiumGiftOption[]; wallpaper?: Api.TypeWallPaper; stories?: Api.TypePeerStories; - }> { - CONSTRUCTOR_ID: 3115396204; + businessWorkHours?: Api.TypeBusinessWorkHours; + businessLocation?: Api.TypeBusinessLocation; + businessGreetingMessage?: Api.TypeBusinessGreetingMessage; + businessAwayMessage?: Api.TypeBusinessAwayMessage; + businessIntro?: Api.TypeBusinessIntro; + birthday?: Api.TypeBirthday; + personalChannelId?: long; + personalChannelMessage?: int; + }> { + CONSTRUCTOR_ID: 3432609568; SUBCLASS_OF_ID: 524706233; classType: "constructor"; className: "UserFull"; @@ -2703,6 +2738,7 @@ export namespace Api { wallpaperOverridden?: boolean; contactRequirePremium?: boolean; readDatesPrivate?: boolean; + // flags2: null; id: long; about?: string; settings: Api.TypePeerSettings; @@ -2722,6 +2758,14 @@ export namespace Api { premiumGifts?: Api.TypePremiumGiftOption[]; wallpaper?: Api.TypeWallPaper; stories?: Api.TypePeerStories; + businessWorkHours?: Api.TypeBusinessWorkHours; + businessLocation?: Api.TypeBusinessLocation; + businessGreetingMessage?: Api.TypeBusinessGreetingMessage; + businessAwayMessage?: Api.TypeBusinessAwayMessage; + businessIntro?: Api.TypeBusinessIntro; + birthday?: Api.TypeBirthday; + personalChannelId?: long; + personalChannelMessage?: int; } export class Contact extends VirtualClass<{ userId: long; @@ -4410,16 +4454,6 @@ export namespace Api { className: "UpdateAutoSaveSettings"; static fromReader(reader: Reader): UpdateAutoSaveSettings; } - export class UpdateGroupInvitePrivacyForbidden extends VirtualClass<{ - userId: long; - }> { - CONSTRUCTOR_ID: 3438316246; - SUBCLASS_OF_ID: 2676568142; - classType: "constructor"; - className: "UpdateGroupInvitePrivacyForbidden"; - static fromReader(reader: Reader): UpdateGroupInvitePrivacyForbidden; - userId: long; - } export class UpdateStory extends VirtualClass<{ peer: Api.TypePeer; story: Api.TypeStoryItem; @@ -4595,6 +4629,132 @@ export namespace Api { className: "UpdateSavedReactionTags"; static fromReader(reader: Reader): UpdateSavedReactionTags; } + export class UpdateSmsJob extends VirtualClass<{ + jobId: string; + }> { + CONSTRUCTOR_ID: 4049758676; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateSmsJob"; + static fromReader(reader: Reader): UpdateSmsJob; + jobId: string; + } + export class UpdateQuickReplies extends VirtualClass<{ + quickReplies: Api.TypeQuickReply[]; + }> { + CONSTRUCTOR_ID: 4182182578; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateQuickReplies"; + static fromReader(reader: Reader): UpdateQuickReplies; + quickReplies: Api.TypeQuickReply[]; + } + export class UpdateNewQuickReply extends VirtualClass<{ + quickReply: Api.TypeQuickReply; + }> { + CONSTRUCTOR_ID: 4114458391; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateNewQuickReply"; + static fromReader(reader: Reader): UpdateNewQuickReply; + quickReply: Api.TypeQuickReply; + } + export class UpdateDeleteQuickReply extends VirtualClass<{ + shortcutId: int; + }> { + CONSTRUCTOR_ID: 1407644140; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateDeleteQuickReply"; + static fromReader(reader: Reader): UpdateDeleteQuickReply; + shortcutId: int; + } + export class UpdateQuickReplyMessage extends VirtualClass<{ + message: Api.TypeMessage; + }> { + CONSTRUCTOR_ID: 1040518415; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateQuickReplyMessage"; + static fromReader(reader: Reader): UpdateQuickReplyMessage; + message: Api.TypeMessage; + } + export class UpdateDeleteQuickReplyMessages extends VirtualClass<{ + shortcutId: int; + messages: int[]; + }> { + CONSTRUCTOR_ID: 1450174413; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateDeleteQuickReplyMessages"; + static fromReader(reader: Reader): UpdateDeleteQuickReplyMessages; + shortcutId: int; + messages: int[]; + } + export class UpdateBotBusinessConnect extends VirtualClass<{ + connection: Api.TypeBotBusinessConnection; + qts: int; + }> { + CONSTRUCTOR_ID: 2330315130; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateBotBusinessConnect"; + static fromReader(reader: Reader): UpdateBotBusinessConnect; + connection: Api.TypeBotBusinessConnection; + qts: int; + } + export class UpdateBotNewBusinessMessage extends VirtualClass<{ + // flags: null; + connectionId: string; + message: Api.TypeMessage; + replyToMessage?: Api.TypeMessage; + qts: int; + }> { + CONSTRUCTOR_ID: 2648388732; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateBotNewBusinessMessage"; + static fromReader(reader: Reader): UpdateBotNewBusinessMessage; + // flags: null; + connectionId: string; + message: Api.TypeMessage; + replyToMessage?: Api.TypeMessage; + qts: int; + } + export class UpdateBotEditBusinessMessage extends VirtualClass<{ + // flags: null; + connectionId: string; + message: Api.TypeMessage; + replyToMessage?: Api.TypeMessage; + qts: int; + }> { + CONSTRUCTOR_ID: 132077692; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateBotEditBusinessMessage"; + static fromReader(reader: Reader): UpdateBotEditBusinessMessage; + // flags: null; + connectionId: string; + message: Api.TypeMessage; + replyToMessage?: Api.TypeMessage; + qts: int; + } + export class UpdateBotDeleteBusinessMessage extends VirtualClass<{ + connectionId: string; + peer: Api.TypePeer; + messages: int[]; + qts: int; + }> { + CONSTRUCTOR_ID: 2687146030; + SUBCLASS_OF_ID: 2676568142; + classType: "constructor"; + className: "UpdateBotDeleteBusinessMessage"; + static fromReader(reader: Reader): UpdateBotDeleteBusinessMessage; + connectionId: string; + peer: Api.TypePeer; + messages: int[]; + qts: int; + } export class UpdatesTooLong extends VirtualClass { CONSTRUCTOR_ID: 3809980286; SUBCLASS_OF_ID: 2331323052; @@ -5444,6 +5604,13 @@ export namespace Api { className: "InputPrivacyKeyAbout"; static fromReader(reader: Reader): InputPrivacyKeyAbout; } + export class InputPrivacyKeyBirthday extends VirtualClass { + CONSTRUCTOR_ID: 3596227020; + SUBCLASS_OF_ID: 87435256; + classType: "constructor"; + className: "InputPrivacyKeyBirthday"; + static fromReader(reader: Reader): InputPrivacyKeyBirthday; + } export class PrivacyKeyStatusTimestamp extends VirtualClass { CONSTRUCTOR_ID: 3157175088; SUBCLASS_OF_ID: 2185646531; @@ -5514,6 +5681,13 @@ export namespace Api { className: "PrivacyKeyAbout"; static fromReader(reader: Reader): PrivacyKeyAbout; } + export class PrivacyKeyBirthday extends VirtualClass { + CONSTRUCTOR_ID: 536913176; + SUBCLASS_OF_ID: 2185646531; + classType: "constructor"; + className: "PrivacyKeyBirthday"; + static fromReader(reader: Reader): PrivacyKeyBirthday; + } export class InputPrivacyValueAllowContacts extends VirtualClass { CONSTRUCTOR_ID: 218751099; SUBCLASS_OF_ID: 1513843490; @@ -5593,6 +5767,13 @@ export namespace Api { className: "InputPrivacyValueAllowCloseFriends"; static fromReader(reader: Reader): InputPrivacyValueAllowCloseFriends; } + export class InputPrivacyValueAllowPremium extends VirtualClass { + CONSTRUCTOR_ID: 2009975281; + SUBCLASS_OF_ID: 1513843490; + classType: "constructor"; + className: "InputPrivacyValueAllowPremium"; + static fromReader(reader: Reader): InputPrivacyValueAllowPremium; + } export class PrivacyValueAllowContacts extends VirtualClass { CONSTRUCTOR_ID: 4294843308; SUBCLASS_OF_ID: 3954700912; @@ -5668,6 +5849,13 @@ export namespace Api { className: "PrivacyValueAllowCloseFriends"; static fromReader(reader: Reader): PrivacyValueAllowCloseFriends; } + export class PrivacyValueAllowPremium extends VirtualClass { + CONSTRUCTOR_ID: 3974725963; + SUBCLASS_OF_ID: 3954700912; + classType: "constructor"; + className: "PrivacyValueAllowPremium"; + static fromReader(reader: Reader): PrivacyValueAllowPremium; + } export class AccountDaysTTL extends VirtualClass<{ days: int; }> { @@ -6156,11 +6344,10 @@ export namespace Api { archived?: boolean; official?: boolean; masks?: boolean; - animated?: boolean; - videos?: boolean; emojis?: boolean; textColor?: boolean; channelEmojiStatus?: boolean; + creator?: boolean; installedDate?: int; id: long; accessHash: long; @@ -6182,11 +6369,10 @@ export namespace Api { archived?: boolean; official?: boolean; masks?: boolean; - animated?: boolean; - videos?: boolean; emojis?: boolean; textColor?: boolean; channelEmojiStatus?: boolean; + creator?: boolean; installedDate?: int; id: long; accessHash: long; @@ -6445,6 +6631,30 @@ export namespace Api { peerType: Api.TypeRequestPeerType; maxQuantity: int; } + export class InputKeyboardButtonRequestPeer extends VirtualClass<{ + // flags: null; + nameRequested?: boolean; + usernameRequested?: boolean; + photoRequested?: boolean; + text: string; + buttonId: int; + peerType: Api.TypeRequestPeerType; + maxQuantity: int; + }> { + CONSTRUCTOR_ID: 3378916613; + SUBCLASS_OF_ID: 195916963; + classType: "constructor"; + className: "InputKeyboardButtonRequestPeer"; + static fromReader(reader: Reader): InputKeyboardButtonRequestPeer; + // flags: null; + nameRequested?: boolean; + usernameRequested?: boolean; + photoRequested?: boolean; + text: string; + buttonId: int; + peerType: Api.TypeRequestPeerType; + maxQuantity: int; + } export class KeyboardButtonRow extends VirtualClass<{ buttons: Api.TypeKeyboardButton[]; }> { @@ -8805,8 +9015,9 @@ export namespace Api { protocol: Api.TypePhoneCallProtocol; connections: Api.TypePhoneConnection[]; startDate: int; + customParameters?: Api.TypeDataJSON; }> { - CONSTRUCTOR_ID: 2524937319; + CONSTRUCTOR_ID: 810769141; SUBCLASS_OF_ID: 3296664529; classType: "constructor"; className: "PhoneCall"; @@ -8824,6 +9035,7 @@ export namespace Api { protocol: Api.TypePhoneCallProtocol; connections: Api.TypePhoneConnection[]; startDate: int; + customParameters?: Api.TypeDataJSON; } export class PhoneCallDiscarded extends VirtualClass<{ // flags: null; @@ -11378,11 +11590,12 @@ export namespace Api { id: int; title: string; emoticon?: string; + color?: int; pinnedPeers: Api.TypeInputPeer[]; includePeers: Api.TypeInputPeer[]; excludePeers: Api.TypeInputPeer[]; }> { - CONSTRUCTOR_ID: 1949890536; + CONSTRUCTOR_ID: 1605718587; SUBCLASS_OF_ID: 1764475991; classType: "constructor"; className: "DialogFilter"; @@ -11399,6 +11612,7 @@ export namespace Api { id: int; title: string; emoticon?: string; + color?: int; pinnedPeers: Api.TypeInputPeer[]; includePeers: Api.TypeInputPeer[]; excludePeers: Api.TypeInputPeer[]; @@ -11416,10 +11630,11 @@ export namespace Api { id: int; title: string; emoticon?: string; + color?: int; pinnedPeers: Api.TypeInputPeer[]; includePeers: Api.TypeInputPeer[]; }> { - CONSTRUCTOR_ID: 3595175080; + CONSTRUCTOR_ID: 2682424996; SUBCLASS_OF_ID: 1764475991; classType: "constructor"; className: "DialogFilterChatlist"; @@ -11429,6 +11644,7 @@ export namespace Api { id: int; title: string; emoticon?: string; + color?: int; pinnedPeers: Api.TypeInputPeer[]; includePeers: Api.TypeInputPeer[]; } @@ -12010,6 +12226,7 @@ export namespace Api { // flags: null; recommended?: boolean; showPeerPhoto?: boolean; + canReport?: boolean; randomId: bytes; fromId?: Api.TypePeer; chatInvite?: Api.TypeChatInvite; @@ -12032,6 +12249,7 @@ export namespace Api { // flags: null; recommended?: boolean; showPeerPhoto?: boolean; + canReport?: boolean; randomId: bytes; fromId?: Api.TypePeer; chatInvite?: Api.TypeChatInvite; @@ -13755,145 +13973,725 @@ export namespace Api { static fromReader(reader: Reader): OutboxReadDate; date: int; } - export class ResPQ extends VirtualClass<{ - nonce: int128; - serverNonce: int128; - pq: bytes; - serverPublicKeyFingerprints: long[]; + export class SmsJob extends VirtualClass<{ + jobId: string; + phoneNumber: string; + text: string; }> { - CONSTRUCTOR_ID: 85337187; - SUBCLASS_OF_ID: 2020181688; + CONSTRUCTOR_ID: 3869372088; + SUBCLASS_OF_ID: 522459262; classType: "constructor"; - className: "ResPQ"; - static fromReader(reader: Reader): ResPQ; - nonce: int128; - serverNonce: int128; - pq: bytes; - serverPublicKeyFingerprints: long[]; + className: "SmsJob"; + static fromReader(reader: Reader): SmsJob; + jobId: string; + phoneNumber: string; + text: string; } - export class PQInnerData extends VirtualClass<{ - pq: bytes; - p: bytes; - q: bytes; - nonce: int128; - serverNonce: int128; - newNonce: int256; + export class BusinessWeeklyOpen extends VirtualClass<{ + startMinute: int; + endMinute: int; }> { - CONSTRUCTOR_ID: 2211011308; - SUBCLASS_OF_ID: 1097864055; + CONSTRUCTOR_ID: 302717625; + SUBCLASS_OF_ID: 406857255; classType: "constructor"; - className: "PQInnerData"; - static fromReader(reader: Reader): PQInnerData; - pq: bytes; - p: bytes; - q: bytes; - nonce: int128; - serverNonce: int128; - newNonce: int256; + className: "BusinessWeeklyOpen"; + static fromReader(reader: Reader): BusinessWeeklyOpen; + startMinute: int; + endMinute: int; } - export class PQInnerDataDc extends VirtualClass<{ - pq: bytes; - p: bytes; - q: bytes; - nonce: int128; - serverNonce: int128; - newNonce: int256; - dc: int; + export class BusinessWorkHours extends VirtualClass<{ + // flags: null; + openNow?: boolean; + timezoneId: string; + weeklyOpen: Api.TypeBusinessWeeklyOpen[]; }> { - CONSTRUCTOR_ID: 2851430293; - SUBCLASS_OF_ID: 1097864055; + CONSTRUCTOR_ID: 2358423704; + SUBCLASS_OF_ID: 1704962053; classType: "constructor"; - className: "PQInnerDataDc"; - static fromReader(reader: Reader): PQInnerDataDc; - pq: bytes; - p: bytes; - q: bytes; - nonce: int128; - serverNonce: int128; - newNonce: int256; - dc: int; + className: "BusinessWorkHours"; + static fromReader(reader: Reader): BusinessWorkHours; + // flags: null; + openNow?: boolean; + timezoneId: string; + weeklyOpen: Api.TypeBusinessWeeklyOpen[]; } - export class PQInnerDataTemp extends VirtualClass<{ - pq: bytes; - p: bytes; - q: bytes; - nonce: int128; - serverNonce: int128; - newNonce: int256; - expiresIn: int; + export class BusinessLocation extends VirtualClass<{ + // flags: null; + geoPoint?: Api.TypeGeoPoint; + address: string; }> { - CONSTRUCTOR_ID: 1013613780; - SUBCLASS_OF_ID: 1097864055; + CONSTRUCTOR_ID: 2891717367; + SUBCLASS_OF_ID: 2578238160; classType: "constructor"; - className: "PQInnerDataTemp"; - static fromReader(reader: Reader): PQInnerDataTemp; - pq: bytes; - p: bytes; - q: bytes; - nonce: int128; - serverNonce: int128; - newNonce: int256; - expiresIn: int; + className: "BusinessLocation"; + static fromReader(reader: Reader): BusinessLocation; + // flags: null; + geoPoint?: Api.TypeGeoPoint; + address: string; } - export class PQInnerDataTempDc extends VirtualClass<{ - pq: bytes; - p: bytes; - q: bytes; - nonce: int128; - serverNonce: int128; - newNonce: int256; - dc: int; - expiresIn: int; + export class InputBusinessRecipients extends VirtualClass<{ + // flags: null; + existingChats?: boolean; + newChats?: boolean; + contacts?: boolean; + nonContacts?: boolean; + excludeSelected?: boolean; + users?: Api.TypeInputUser[]; }> { - CONSTRUCTOR_ID: 1459478408; - SUBCLASS_OF_ID: 1097864055; + CONSTRUCTOR_ID: 1871393450; + SUBCLASS_OF_ID: 226420031; classType: "constructor"; - className: "PQInnerDataTempDc"; - static fromReader(reader: Reader): PQInnerDataTempDc; - pq: bytes; - p: bytes; - q: bytes; - nonce: int128; - serverNonce: int128; - newNonce: int256; - dc: int; - expiresIn: int; + className: "InputBusinessRecipients"; + static fromReader(reader: Reader): InputBusinessRecipients; + // flags: null; + existingChats?: boolean; + newChats?: boolean; + contacts?: boolean; + nonContacts?: boolean; + excludeSelected?: boolean; + users?: Api.TypeInputUser[]; } - export class BindAuthKeyInner extends VirtualClass<{ - nonce: long; - tempAuthKeyId: long; - permAuthKeyId: long; - tempSessionId: long; - expiresAt: int; + export class BusinessRecipients extends VirtualClass<{ + // flags: null; + existingChats?: boolean; + newChats?: boolean; + contacts?: boolean; + nonContacts?: boolean; + excludeSelected?: boolean; + users?: long[]; }> { - CONSTRUCTOR_ID: 1973679973; - SUBCLASS_OF_ID: 789156209; + CONSTRUCTOR_ID: 554733559; + SUBCLASS_OF_ID: 1384459846; classType: "constructor"; - className: "BindAuthKeyInner"; - static fromReader(reader: Reader): BindAuthKeyInner; - nonce: long; - tempAuthKeyId: long; - permAuthKeyId: long; - tempSessionId: long; - expiresAt: int; + className: "BusinessRecipients"; + static fromReader(reader: Reader): BusinessRecipients; + // flags: null; + existingChats?: boolean; + newChats?: boolean; + contacts?: boolean; + nonContacts?: boolean; + excludeSelected?: boolean; + users?: long[]; } - export class ServerDHParamsFail extends VirtualClass<{ - nonce: int128; - serverNonce: int128; - newNonceHash: int128; - }> { - CONSTRUCTOR_ID: 2043348061; - SUBCLASS_OF_ID: 2786626974; + export class BusinessAwayMessageScheduleAlways extends VirtualClass { + CONSTRUCTOR_ID: 3384402617; + SUBCLASS_OF_ID: 672702558; classType: "constructor"; - className: "ServerDHParamsFail"; - static fromReader(reader: Reader): ServerDHParamsFail; - nonce: int128; - serverNonce: int128; - newNonceHash: int128; + className: "BusinessAwayMessageScheduleAlways"; + static fromReader(reader: Reader): BusinessAwayMessageScheduleAlways; } - export class ServerDHParamsOk extends VirtualClass<{ - nonce: int128; - serverNonce: int128; + export class BusinessAwayMessageScheduleOutsideWorkHours extends VirtualClass { + CONSTRUCTOR_ID: 3287479553; + SUBCLASS_OF_ID: 672702558; + classType: "constructor"; + className: "BusinessAwayMessageScheduleOutsideWorkHours"; + static fromReader( + reader: Reader + ): BusinessAwayMessageScheduleOutsideWorkHours; + } + export class BusinessAwayMessageScheduleCustom extends VirtualClass<{ + startDate: int; + endDate: int; + }> { + CONSTRUCTOR_ID: 3427638988; + SUBCLASS_OF_ID: 672702558; + classType: "constructor"; + className: "BusinessAwayMessageScheduleCustom"; + static fromReader(reader: Reader): BusinessAwayMessageScheduleCustom; + startDate: int; + endDate: int; + } + export class InputBusinessGreetingMessage extends VirtualClass<{ + shortcutId: int; + recipients: Api.TypeInputBusinessRecipients; + noActivityDays: int; + }> { + CONSTRUCTOR_ID: 26528571; + SUBCLASS_OF_ID: 1652088029; + classType: "constructor"; + className: "InputBusinessGreetingMessage"; + static fromReader(reader: Reader): InputBusinessGreetingMessage; + shortcutId: int; + recipients: Api.TypeInputBusinessRecipients; + noActivityDays: int; + } + export class BusinessGreetingMessage extends VirtualClass<{ + shortcutId: int; + recipients: Api.TypeBusinessRecipients; + noActivityDays: int; + }> { + CONSTRUCTOR_ID: 3843664811; + SUBCLASS_OF_ID: 3007638222; + classType: "constructor"; + className: "BusinessGreetingMessage"; + static fromReader(reader: Reader): BusinessGreetingMessage; + shortcutId: int; + recipients: Api.TypeBusinessRecipients; + noActivityDays: int; + } + export class InputBusinessAwayMessage extends VirtualClass<{ + // flags: null; + offlineOnly?: boolean; + shortcutId: int; + schedule: Api.TypeBusinessAwayMessageSchedule; + recipients: Api.TypeInputBusinessRecipients; + }> { + CONSTRUCTOR_ID: 2200008160; + SUBCLASS_OF_ID: 3629489271; + classType: "constructor"; + className: "InputBusinessAwayMessage"; + static fromReader(reader: Reader): InputBusinessAwayMessage; + // flags: null; + offlineOnly?: boolean; + shortcutId: int; + schedule: Api.TypeBusinessAwayMessageSchedule; + recipients: Api.TypeInputBusinessRecipients; + } + export class BusinessAwayMessage extends VirtualClass<{ + // flags: null; + offlineOnly?: boolean; + shortcutId: int; + schedule: Api.TypeBusinessAwayMessageSchedule; + recipients: Api.TypeBusinessRecipients; + }> { + CONSTRUCTOR_ID: 4011158108; + SUBCLASS_OF_ID: 4057181732; + classType: "constructor"; + className: "BusinessAwayMessage"; + static fromReader(reader: Reader): BusinessAwayMessage; + // flags: null; + offlineOnly?: boolean; + shortcutId: int; + schedule: Api.TypeBusinessAwayMessageSchedule; + recipients: Api.TypeBusinessRecipients; + } + export class Timezone extends VirtualClass<{ + id: string; + name: string; + utcOffset: int; + }> { + CONSTRUCTOR_ID: 4287793653; + SUBCLASS_OF_ID: 3463958721; + classType: "constructor"; + className: "Timezone"; + static fromReader(reader: Reader): Timezone; + id: string; + name: string; + utcOffset: int; + } + export class QuickReply extends VirtualClass<{ + shortcutId: int; + shortcut: string; + topMessage: int; + count: int; + }> { + CONSTRUCTOR_ID: 110563371; + SUBCLASS_OF_ID: 3806990098; + classType: "constructor"; + className: "QuickReply"; + static fromReader(reader: Reader): QuickReply; + shortcutId: int; + shortcut: string; + topMessage: int; + count: int; + } + export class InputQuickReplyShortcut extends VirtualClass<{ + shortcut: string; + }> { + CONSTRUCTOR_ID: 609840449; + SUBCLASS_OF_ID: 2775088215; + classType: "constructor"; + className: "InputQuickReplyShortcut"; + static fromReader(reader: Reader): InputQuickReplyShortcut; + shortcut: string; + } + export class InputQuickReplyShortcutId extends VirtualClass<{ + shortcutId: int; + }> { + CONSTRUCTOR_ID: 18418929; + SUBCLASS_OF_ID: 2775088215; + classType: "constructor"; + className: "InputQuickReplyShortcutId"; + static fromReader(reader: Reader): InputQuickReplyShortcutId; + shortcutId: int; + } + export class ConnectedBot extends VirtualClass<{ + // flags: null; + canReply?: boolean; + botId: long; + recipients: Api.TypeBusinessBotRecipients; + }> { + CONSTRUCTOR_ID: 3171321345; + SUBCLASS_OF_ID: 904403870; + classType: "constructor"; + className: "ConnectedBot"; + static fromReader(reader: Reader): ConnectedBot; + // flags: null; + canReply?: boolean; + botId: long; + recipients: Api.TypeBusinessBotRecipients; + } + export class Birthday extends VirtualClass<{ + // flags: null; + day: int; + month: int; + year?: int; + }> { + CONSTRUCTOR_ID: 1821253126; + SUBCLASS_OF_ID: 3196048996; + classType: "constructor"; + className: "Birthday"; + static fromReader(reader: Reader): Birthday; + // flags: null; + day: int; + month: int; + year?: int; + } + export class BotBusinessConnection extends VirtualClass<{ + // flags: null; + canReply?: boolean; + disabled?: boolean; + connectionId: string; + userId: long; + dcId: int; + date: int; + }> { + CONSTRUCTOR_ID: 2305045428; + SUBCLASS_OF_ID: 2601715014; + classType: "constructor"; + className: "BotBusinessConnection"; + static fromReader(reader: Reader): BotBusinessConnection; + // flags: null; + canReply?: boolean; + disabled?: boolean; + connectionId: string; + userId: long; + dcId: int; + date: int; + } + export class InputBusinessIntro extends VirtualClass<{ + // flags: null; + title: string; + description: string; + sticker?: Api.TypeInputDocument; + }> { + CONSTRUCTOR_ID: 163867085; + SUBCLASS_OF_ID: 1683650173; + classType: "constructor"; + className: "InputBusinessIntro"; + static fromReader(reader: Reader): InputBusinessIntro; + // flags: null; + title: string; + description: string; + sticker?: Api.TypeInputDocument; + } + export class BusinessIntro extends VirtualClass<{ + // flags: null; + title: string; + description: string; + sticker?: Api.TypeDocument; + }> { + CONSTRUCTOR_ID: 1510606445; + SUBCLASS_OF_ID: 1694815175; + classType: "constructor"; + className: "BusinessIntro"; + static fromReader(reader: Reader): BusinessIntro; + // flags: null; + title: string; + description: string; + sticker?: Api.TypeDocument; + } + export class InputCollectibleUsername extends VirtualClass<{ + username: string; + }> { + CONSTRUCTOR_ID: 3818152105; + SUBCLASS_OF_ID: 705659371; + classType: "constructor"; + className: "InputCollectibleUsername"; + static fromReader(reader: Reader): InputCollectibleUsername; + username: string; + } + export class InputCollectiblePhone extends VirtualClass<{ + phone: string; + }> { + CONSTRUCTOR_ID: 2732725412; + SUBCLASS_OF_ID: 705659371; + classType: "constructor"; + className: "InputCollectiblePhone"; + static fromReader(reader: Reader): InputCollectiblePhone; + phone: string; + } + export class InputBusinessBotRecipients extends VirtualClass<{ + // flags: null; + existingChats?: boolean; + newChats?: boolean; + contacts?: boolean; + nonContacts?: boolean; + excludeSelected?: boolean; + users?: Api.TypeInputUser[]; + excludeUsers?: Api.TypeInputUser[]; + }> { + CONSTRUCTOR_ID: 3303379486; + SUBCLASS_OF_ID: 2849240411; + classType: "constructor"; + className: "InputBusinessBotRecipients"; + static fromReader(reader: Reader): InputBusinessBotRecipients; + // flags: null; + existingChats?: boolean; + newChats?: boolean; + contacts?: boolean; + nonContacts?: boolean; + excludeSelected?: boolean; + users?: Api.TypeInputUser[]; + excludeUsers?: Api.TypeInputUser[]; + } + export class BusinessBotRecipients extends VirtualClass<{ + // flags: null; + existingChats?: boolean; + newChats?: boolean; + contacts?: boolean; + nonContacts?: boolean; + excludeSelected?: boolean; + users?: long[]; + excludeUsers?: long[]; + }> { + CONSTRUCTOR_ID: 3096245107; + SUBCLASS_OF_ID: 4036133834; + classType: "constructor"; + className: "BusinessBotRecipients"; + static fromReader(reader: Reader): BusinessBotRecipients; + // flags: null; + existingChats?: boolean; + newChats?: boolean; + contacts?: boolean; + nonContacts?: boolean; + excludeSelected?: boolean; + users?: long[]; + excludeUsers?: long[]; + } + export class ContactBirthday extends VirtualClass<{ + contactId: long; + birthday: Api.TypeBirthday; + }> { + CONSTRUCTOR_ID: 496600883; + SUBCLASS_OF_ID: 3638372358; + classType: "constructor"; + className: "ContactBirthday"; + static fromReader(reader: Reader): ContactBirthday; + contactId: long; + birthday: Api.TypeBirthday; + } + export class MissingInvitee extends VirtualClass<{ + // flags: null; + premiumWouldAllowInvite?: boolean; + premiumRequiredForPm?: boolean; + userId: long; + }> { + CONSTRUCTOR_ID: 1653379620; + SUBCLASS_OF_ID: 1552723164; + classType: "constructor"; + className: "MissingInvitee"; + static fromReader(reader: Reader): MissingInvitee; + // flags: null; + premiumWouldAllowInvite?: boolean; + premiumRequiredForPm?: boolean; + userId: long; + } + export class InputBusinessChatLink extends VirtualClass<{ + // flags: null; + message: string; + entities?: Api.TypeMessageEntity[]; + title?: string; + }> { + CONSTRUCTOR_ID: 292003751; + SUBCLASS_OF_ID: 2875655443; + classType: "constructor"; + className: "InputBusinessChatLink"; + static fromReader(reader: Reader): InputBusinessChatLink; + // flags: null; + message: string; + entities?: Api.TypeMessageEntity[]; + title?: string; + } + export class BusinessChatLink extends VirtualClass<{ + // flags: null; + link: string; + message: string; + entities?: Api.TypeMessageEntity[]; + title?: string; + views: int; + }> { + CONSTRUCTOR_ID: 3031328367; + SUBCLASS_OF_ID: 1007504011; + classType: "constructor"; + className: "BusinessChatLink"; + static fromReader(reader: Reader): BusinessChatLink; + // flags: null; + link: string; + message: string; + entities?: Api.TypeMessageEntity[]; + title?: string; + views: int; + } + export class RequestedPeerUser extends VirtualClass<{ + // flags: null; + userId: long; + firstName?: string; + lastName?: string; + username?: string; + photo?: Api.TypePhoto; + }> { + CONSTRUCTOR_ID: 3593466986; + SUBCLASS_OF_ID: 3263724560; + classType: "constructor"; + className: "RequestedPeerUser"; + static fromReader(reader: Reader): RequestedPeerUser; + // flags: null; + userId: long; + firstName?: string; + lastName?: string; + username?: string; + photo?: Api.TypePhoto; + } + export class RequestedPeerChat extends VirtualClass<{ + // flags: null; + chatId: long; + title?: string; + photo?: Api.TypePhoto; + }> { + CONSTRUCTOR_ID: 1929860175; + SUBCLASS_OF_ID: 3263724560; + classType: "constructor"; + className: "RequestedPeerChat"; + static fromReader(reader: Reader): RequestedPeerChat; + // flags: null; + chatId: long; + title?: string; + photo?: Api.TypePhoto; + } + export class RequestedPeerChannel extends VirtualClass<{ + // flags: null; + channelId: long; + title?: string; + username?: string; + photo?: Api.TypePhoto; + }> { + CONSTRUCTOR_ID: 2342781924; + SUBCLASS_OF_ID: 3263724560; + classType: "constructor"; + className: "RequestedPeerChannel"; + static fromReader(reader: Reader): RequestedPeerChannel; + // flags: null; + channelId: long; + title?: string; + username?: string; + photo?: Api.TypePhoto; + } + export class SponsoredMessageReportOption extends VirtualClass<{ + text: string; + option: bytes; + }> { + CONSTRUCTOR_ID: 1124938064; + SUBCLASS_OF_ID: 3711084312; + classType: "constructor"; + className: "SponsoredMessageReportOption"; + static fromReader(reader: Reader): SponsoredMessageReportOption; + text: string; + option: bytes; + } + export class BroadcastRevenueTransactionProceeds extends VirtualClass<{ + amount: long; + fromDate: int; + toDate: int; + }> { + CONSTRUCTOR_ID: 1434332356; + SUBCLASS_OF_ID: 1962590909; + classType: "constructor"; + className: "BroadcastRevenueTransactionProceeds"; + static fromReader(reader: Reader): BroadcastRevenueTransactionProceeds; + amount: long; + fromDate: int; + toDate: int; + } + export class BroadcastRevenueTransactionWithdrawal extends VirtualClass<{ + // flags: null; + pending?: boolean; + failed?: boolean; + amount: long; + date: int; + provider: string; + transactionDate?: int; + transactionUrl?: string; + }> { + CONSTRUCTOR_ID: 1515784568; + SUBCLASS_OF_ID: 1962590909; + classType: "constructor"; + className: "BroadcastRevenueTransactionWithdrawal"; + static fromReader( + reader: Reader + ): BroadcastRevenueTransactionWithdrawal; + // flags: null; + pending?: boolean; + failed?: boolean; + amount: long; + date: int; + provider: string; + transactionDate?: int; + transactionUrl?: string; + } + export class BroadcastRevenueTransactionRefund extends VirtualClass<{ + amount: long; + date: int; + provider: string; + }> { + CONSTRUCTOR_ID: 1121127726; + SUBCLASS_OF_ID: 1962590909; + classType: "constructor"; + className: "BroadcastRevenueTransactionRefund"; + static fromReader(reader: Reader): BroadcastRevenueTransactionRefund; + amount: long; + date: int; + provider: string; + } + export class ResPQ extends VirtualClass<{ + nonce: int128; + serverNonce: int128; + pq: bytes; + serverPublicKeyFingerprints: long[]; + }> { + CONSTRUCTOR_ID: 85337187; + SUBCLASS_OF_ID: 2020181688; + classType: "constructor"; + className: "ResPQ"; + static fromReader(reader: Reader): ResPQ; + nonce: int128; + serverNonce: int128; + pq: bytes; + serverPublicKeyFingerprints: long[]; + } + export class PQInnerData extends VirtualClass<{ + pq: bytes; + p: bytes; + q: bytes; + nonce: int128; + serverNonce: int128; + newNonce: int256; + }> { + CONSTRUCTOR_ID: 2211011308; + SUBCLASS_OF_ID: 1097864055; + classType: "constructor"; + className: "PQInnerData"; + static fromReader(reader: Reader): PQInnerData; + pq: bytes; + p: bytes; + q: bytes; + nonce: int128; + serverNonce: int128; + newNonce: int256; + } + export class PQInnerDataDc extends VirtualClass<{ + pq: bytes; + p: bytes; + q: bytes; + nonce: int128; + serverNonce: int128; + newNonce: int256; + dc: int; + }> { + CONSTRUCTOR_ID: 2851430293; + SUBCLASS_OF_ID: 1097864055; + classType: "constructor"; + className: "PQInnerDataDc"; + static fromReader(reader: Reader): PQInnerDataDc; + pq: bytes; + p: bytes; + q: bytes; + nonce: int128; + serverNonce: int128; + newNonce: int256; + dc: int; + } + export class PQInnerDataTemp extends VirtualClass<{ + pq: bytes; + p: bytes; + q: bytes; + nonce: int128; + serverNonce: int128; + newNonce: int256; + expiresIn: int; + }> { + CONSTRUCTOR_ID: 1013613780; + SUBCLASS_OF_ID: 1097864055; + classType: "constructor"; + className: "PQInnerDataTemp"; + static fromReader(reader: Reader): PQInnerDataTemp; + pq: bytes; + p: bytes; + q: bytes; + nonce: int128; + serverNonce: int128; + newNonce: int256; + expiresIn: int; + } + export class PQInnerDataTempDc extends VirtualClass<{ + pq: bytes; + p: bytes; + q: bytes; + nonce: int128; + serverNonce: int128; + newNonce: int256; + dc: int; + expiresIn: int; + }> { + CONSTRUCTOR_ID: 1459478408; + SUBCLASS_OF_ID: 1097864055; + classType: "constructor"; + className: "PQInnerDataTempDc"; + static fromReader(reader: Reader): PQInnerDataTempDc; + pq: bytes; + p: bytes; + q: bytes; + nonce: int128; + serverNonce: int128; + newNonce: int256; + dc: int; + expiresIn: int; + } + export class BindAuthKeyInner extends VirtualClass<{ + nonce: long; + tempAuthKeyId: long; + permAuthKeyId: long; + tempSessionId: long; + expiresAt: int; + }> { + CONSTRUCTOR_ID: 1973679973; + SUBCLASS_OF_ID: 789156209; + classType: "constructor"; + className: "BindAuthKeyInner"; + static fromReader(reader: Reader): BindAuthKeyInner; + nonce: long; + tempAuthKeyId: long; + permAuthKeyId: long; + tempSessionId: long; + expiresAt: int; + } + export class ServerDHParamsFail extends VirtualClass<{ + nonce: int128; + serverNonce: int128; + newNonceHash: int128; + }> { + CONSTRUCTOR_ID: 2043348061; + SUBCLASS_OF_ID: 2786626974; + classType: "constructor"; + className: "ServerDHParamsFail"; + static fromReader(reader: Reader): ServerDHParamsFail; + nonce: int128; + serverNonce: int128; + newNonceHash: int128; + } + export class ServerDHParamsOk extends VirtualClass<{ + nonce: int128; + serverNonce: int128; encryptedAnswer: bytes; }> { CONSTRUCTOR_ID: 3504867164; @@ -14491,6 +15289,21 @@ export namespace Api { takeoutId: long; query: X; } + export class InvokeWithBusinessConnection extends Request< + Partial<{ + connectionId: string; + query: X; + }>, + X + > { + CONSTRUCTOR_ID: 3710427022; + SUBCLASS_OF_ID: 3081909835; + classType: "request"; + className: "InvokeWithBusinessConnection"; + static fromReader(reader: Reader): InvokeWithBusinessConnection; + connectionId: string; + query: X; + } export class ReqPq extends Request< Partial<{ nonce: int128; @@ -15119,6 +15932,18 @@ export namespace Api { className: "contacts.TopPeersDisabled"; static fromReader(reader: Reader): TopPeersDisabled; } + export class ContactBirthdays extends VirtualClass<{ + contacts: Api.TypeContactBirthday[]; + users: Api.TypeUser[]; + }> { + CONSTRUCTOR_ID: 290452237; + SUBCLASS_OF_ID: 242920447; + classType: "constructor"; + className: "contacts.ContactBirthdays"; + static fromReader(reader: Reader): ContactBirthdays; + contacts: Api.TypeContactBirthday[]; + users: Api.TypeUser[]; + } } export namespace messages { @@ -16145,13 +16970,74 @@ export namespace Api { tags: Api.TypeSavedReactionTag[]; hash: long; }> { - CONSTRUCTOR_ID: 844731658; - SUBCLASS_OF_ID: 2744867811; + CONSTRUCTOR_ID: 844731658; + SUBCLASS_OF_ID: 2744867811; + classType: "constructor"; + className: "messages.SavedReactionTags"; + static fromReader(reader: Reader): SavedReactionTags; + tags: Api.TypeSavedReactionTag[]; + hash: long; + } + export class QuickReplies extends VirtualClass<{ + quickReplies: Api.TypeQuickReply[]; + messages: Api.TypeMessage[]; + chats: Api.TypeChat[]; + users: Api.TypeUser[]; + }> { + CONSTRUCTOR_ID: 3331155605; + SUBCLASS_OF_ID: 4147636582; + classType: "constructor"; + className: "messages.QuickReplies"; + static fromReader(reader: Reader): QuickReplies; + quickReplies: Api.TypeQuickReply[]; + messages: Api.TypeMessage[]; + chats: Api.TypeChat[]; + users: Api.TypeUser[]; + } + export class QuickRepliesNotModified extends VirtualClass { + CONSTRUCTOR_ID: 1603398491; + SUBCLASS_OF_ID: 4147636582; + classType: "constructor"; + className: "messages.QuickRepliesNotModified"; + static fromReader(reader: Reader): QuickRepliesNotModified; + } + export class DialogFilters extends VirtualClass<{ + // flags: null; + tagsEnabled?: boolean; + filters: Api.TypeDialogFilter[]; + }> { + CONSTRUCTOR_ID: 718878489; + SUBCLASS_OF_ID: 2785014199; + classType: "constructor"; + className: "messages.DialogFilters"; + static fromReader(reader: Reader): DialogFilters; + // flags: null; + tagsEnabled?: boolean; + filters: Api.TypeDialogFilter[]; + } + export class MyStickers extends VirtualClass<{ + count: int; + sets: Api.TypeStickerSetCovered[]; + }> { + CONSTRUCTOR_ID: 4211040925; + SUBCLASS_OF_ID: 2981377290; + classType: "constructor"; + className: "messages.MyStickers"; + static fromReader(reader: Reader): MyStickers; + count: int; + sets: Api.TypeStickerSetCovered[]; + } + export class InvitedUsers extends VirtualClass<{ + updates: Api.TypeUpdates; + missingInvitees: Api.TypeMissingInvitee[]; + }> { + CONSTRUCTOR_ID: 2136862630; + SUBCLASS_OF_ID: 1035899041; classType: "constructor"; - className: "messages.SavedReactionTags"; - static fromReader(reader: Reader): SavedReactionTags; - tags: Api.TypeSavedReactionTag[]; - hash: long; + className: "messages.InvitedUsers"; + static fromReader(reader: Reader): InvitedUsers; + updates: Api.TypeUpdates; + missingInvitees: Api.TypeMissingInvitee[]; } } @@ -16794,6 +17680,25 @@ export namespace Api { hash: int; colors: help.TypePeerColorOption[]; } + export class TimezonesListNotModified extends VirtualClass { + CONSTRUCTOR_ID: 2533820620; + SUBCLASS_OF_ID: 3396789365; + classType: "constructor"; + className: "help.TimezonesListNotModified"; + static fromReader(reader: Reader): TimezonesListNotModified; + } + export class TimezonesList extends VirtualClass<{ + timezones: Api.TypeTimezone[]; + hash: int; + }> { + CONSTRUCTOR_ID: 2071260529; + SUBCLASS_OF_ID: 3396789365; + classType: "constructor"; + className: "help.TimezonesList"; + static fromReader(reader: Reader): TimezonesList; + timezones: Api.TypeTimezone[]; + hash: int; + } export class ConfigSimple extends VirtualClass<{ date: int; expires: int; @@ -17163,6 +18068,52 @@ export namespace Api { chats: Api.TypeChat[]; users: Api.TypeUser[]; } + export class ConnectedBots extends VirtualClass<{ + connectedBots: Api.TypeConnectedBot[]; + users: Api.TypeUser[]; + }> { + CONSTRUCTOR_ID: 400029819; + SUBCLASS_OF_ID: 3838506963; + classType: "constructor"; + className: "account.ConnectedBots"; + static fromReader(reader: Reader): ConnectedBots; + connectedBots: Api.TypeConnectedBot[]; + users: Api.TypeUser[]; + } + export class BusinessChatLinks extends VirtualClass<{ + links: Api.TypeBusinessChatLink[]; + chats: Api.TypeChat[]; + users: Api.TypeUser[]; + }> { + CONSTRUCTOR_ID: 3963855569; + SUBCLASS_OF_ID: 3334097457; + classType: "constructor"; + className: "account.BusinessChatLinks"; + static fromReader(reader: Reader): BusinessChatLinks; + links: Api.TypeBusinessChatLink[]; + chats: Api.TypeChat[]; + users: Api.TypeUser[]; + } + export class ResolvedBusinessChatLinks extends VirtualClass<{ + // flags: null; + peer: Api.TypePeer; + message: string; + entities?: Api.TypeMessageEntity[]; + chats: Api.TypeChat[]; + users: Api.TypeUser[]; + }> { + CONSTRUCTOR_ID: 2586029857; + SUBCLASS_OF_ID: 980888616; + classType: "constructor"; + className: "account.ResolvedBusinessChatLinks"; + static fromReader(reader: Reader): ResolvedBusinessChatLinks; + // flags: null; + peer: Api.TypePeer; + message: string; + entities?: Api.TypeMessageEntity[]; + chats: Api.TypeChat[]; + users: Api.TypeUser[]; + } } export namespace channels { @@ -17231,6 +18182,38 @@ export namespace Api { chats: Api.TypeChat[]; users: Api.TypeUser[]; } + export class SponsoredMessageReportResultChooseOption extends VirtualClass<{ + title: string; + options: Api.TypeSponsoredMessageReportOption[]; + }> { + CONSTRUCTOR_ID: 2221907522; + SUBCLASS_OF_ID: 639834146; + classType: "constructor"; + className: "channels.SponsoredMessageReportResultChooseOption"; + static fromReader( + reader: Reader + ): SponsoredMessageReportResultChooseOption; + title: string; + options: Api.TypeSponsoredMessageReportOption[]; + } + export class SponsoredMessageReportResultAdsHidden extends VirtualClass { + CONSTRUCTOR_ID: 1044107055; + SUBCLASS_OF_ID: 639834146; + classType: "constructor"; + className: "channels.SponsoredMessageReportResultAdsHidden"; + static fromReader( + reader: Reader + ): SponsoredMessageReportResultAdsHidden; + } + export class SponsoredMessageReportResultReported extends VirtualClass { + CONSTRUCTOR_ID: 2910423113; + SUBCLASS_OF_ID: 639834146; + classType: "constructor"; + className: "channels.SponsoredMessageReportResultReported"; + static fromReader( + reader: Reader + ): SponsoredMessageReportResultReported; + } } export namespace payments { @@ -17698,6 +18681,48 @@ export namespace Api { chats: Api.TypeChat[]; users: Api.TypeUser[]; } + export class BroadcastRevenueStats extends VirtualClass<{ + topHoursGraph: Api.TypeStatsGraph; + revenueGraph: Api.TypeStatsGraph; + currentBalance: long; + availableBalance: long; + overallRevenue: long; + usdRate: double; + }> { + CONSTRUCTOR_ID: 3497741229; + SUBCLASS_OF_ID: 753807480; + classType: "constructor"; + className: "stats.BroadcastRevenueStats"; + static fromReader(reader: Reader): BroadcastRevenueStats; + topHoursGraph: Api.TypeStatsGraph; + revenueGraph: Api.TypeStatsGraph; + currentBalance: long; + availableBalance: long; + overallRevenue: long; + usdRate: double; + } + export class BroadcastRevenueWithdrawalUrl extends VirtualClass<{ + url: string; + }> { + CONSTRUCTOR_ID: 3966080823; + SUBCLASS_OF_ID: 3512518885; + classType: "constructor"; + className: "stats.BroadcastRevenueWithdrawalUrl"; + static fromReader(reader: Reader): BroadcastRevenueWithdrawalUrl; + url: string; + } + export class BroadcastRevenueTransactions extends VirtualClass<{ + count: int; + transactions: Api.TypeBroadcastRevenueTransaction[]; + }> { + CONSTRUCTOR_ID: 2266334310; + SUBCLASS_OF_ID: 108456469; + classType: "constructor"; + className: "stats.BroadcastRevenueTransactions"; + static fromReader(reader: Reader): BroadcastRevenueTransactions; + count: int; + transactions: Api.TypeBroadcastRevenueTransaction[]; + } } export namespace stickers { @@ -18022,6 +19047,70 @@ export namespace Api { } } + export namespace smsjobs { + export class EligibleToJoin extends VirtualClass<{ + termsUrl: string; + monthlySentSms: int; + }> { + CONSTRUCTOR_ID: 3700114639; + SUBCLASS_OF_ID: 1589076134; + classType: "constructor"; + className: "smsjobs.EligibleToJoin"; + static fromReader(reader: Reader): EligibleToJoin; + termsUrl: string; + monthlySentSms: int; + } + export class Status extends VirtualClass<{ + // flags: null; + allowInternational?: boolean; + recentSent: int; + recentSince: int; + recentRemains: int; + totalSent: int; + totalSince: int; + lastGiftSlug?: string; + termsUrl: string; + }> { + CONSTRUCTOR_ID: 720277905; + SUBCLASS_OF_ID: 3448711973; + classType: "constructor"; + className: "smsjobs.Status"; + static fromReader(reader: Reader): Status; + // flags: null; + allowInternational?: boolean; + recentSent: int; + recentSince: int; + recentRemains: int; + totalSent: int; + totalSince: int; + lastGiftSlug?: string; + termsUrl: string; + } + } + + export namespace fragment { + export class CollectibleInfo extends VirtualClass<{ + purchaseDate: int; + currency: string; + amount: long; + cryptoCurrency: string; + cryptoAmount: long; + url: string; + }> { + CONSTRUCTOR_ID: 1857945489; + SUBCLASS_OF_ID: 3572127632; + classType: "constructor"; + className: "fragment.CollectibleInfo"; + static fromReader(reader: Reader): CollectibleInfo; + purchaseDate: int; + currency: string; + amount: long; + cryptoCurrency: string; + cryptoAmount: long; + url: string; + } + } + export namespace storage { export type TypeFileType = | storage.FileUnknown @@ -18078,6 +19167,7 @@ export namespace Api { | contacts.TopPeersNotModified | contacts.TopPeers | contacts.TopPeersDisabled; + export type TypeContactBirthdays = contacts.ContactBirthdays; } export namespace messages { @@ -18178,6 +19268,12 @@ export namespace Api { export type TypeSavedReactionTags = | messages.SavedReactionTagsNotModified | messages.SavedReactionTags; + export type TypeQuickReplies = + | messages.QuickReplies + | messages.QuickRepliesNotModified; + export type TypeDialogFilters = messages.DialogFilters; + export type TypeMyStickers = messages.MyStickers; + export type TypeInvitedUsers = messages.InvitedUsers; } export namespace updates { @@ -18236,6 +19332,9 @@ export namespace Api { export type TypePeerColors = | help.PeerColorsNotModified | help.PeerColors; + export type TypeTimezonesList = + | help.TimezonesListNotModified + | help.TimezonesList; export type TypeConfigSimple = help.ConfigSimple; } @@ -18273,6 +19372,10 @@ export namespace Api { | account.EmailVerified | account.EmailVerifiedLogin; export type TypeAutoSaveSettings = account.AutoSaveSettings; + export type TypeConnectedBots = account.ConnectedBots; + export type TypeBusinessChatLinks = account.BusinessChatLinks; + export type TypeResolvedBusinessChatLinks = + account.ResolvedBusinessChatLinks; } export namespace channels { @@ -18282,6 +19385,10 @@ export namespace Api { export type TypeChannelParticipant = channels.ChannelParticipant; export type TypeAdminLogResults = channels.AdminLogResults; export type TypeSendAsPeers = channels.SendAsPeers; + export type TypeSponsoredMessageReportResult = + | channels.SponsoredMessageReportResultChooseOption + | channels.SponsoredMessageReportResultAdsHidden + | channels.SponsoredMessageReportResultReported; } export namespace payments { @@ -18317,6 +19424,11 @@ export namespace Api { export type TypeMessageStats = stats.MessageStats; export type TypeStoryStats = stats.StoryStats; export type TypePublicForwards = stats.PublicForwards; + export type TypeBroadcastRevenueStats = stats.BroadcastRevenueStats; + export type TypeBroadcastRevenueWithdrawalUrl = + stats.BroadcastRevenueWithdrawalUrl; + export type TypeBroadcastRevenueTransactions = + stats.BroadcastRevenueTransactions; } export namespace stickers { @@ -18358,6 +19470,15 @@ export namespace Api { export type TypeBoostsStatus = premium.BoostsStatus; } + export namespace smsjobs { + export type TypeEligibilityToJoin = smsjobs.EligibleToJoin; + export type TypeStatus = smsjobs.Status; + } + + export namespace fragment { + export type TypeCollectibleInfo = fragment.CollectibleInfo; + } + export namespace auth { export class SendCode extends Request< Partial<{ @@ -19953,54 +21074,295 @@ export namespace Api { }>, Bool > { - CONSTRUCTOR_ID: 2096079197; + CONSTRUCTOR_ID: 2096079197; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.UpdateColor"; + static fromReader(reader: Reader): UpdateColor; + // flags: null; + forProfile?: boolean; + color?: int; + backgroundEmojiId?: long; + } + export class GetDefaultBackgroundEmojis extends Request< + Partial<{ + hash: long; + }>, + Api.TypeEmojiList + > { + CONSTRUCTOR_ID: 2785720782; + SUBCLASS_OF_ID: 3169807034; + classType: "request"; + className: "account.GetDefaultBackgroundEmojis"; + static fromReader(reader: Reader): GetDefaultBackgroundEmojis; + hash: long; + } + export class GetChannelDefaultEmojiStatuses extends Request< + Partial<{ + hash: long; + }>, + account.TypeEmojiStatuses + > { + CONSTRUCTOR_ID: 1999087573; + SUBCLASS_OF_ID: 3554674122; + classType: "request"; + className: "account.GetChannelDefaultEmojiStatuses"; + static fromReader(reader: Reader): GetChannelDefaultEmojiStatuses; + hash: long; + } + export class GetChannelRestrictedStatusEmojis extends Request< + Partial<{ + hash: long; + }>, + Api.TypeEmojiList + > { + CONSTRUCTOR_ID: 900325589; + SUBCLASS_OF_ID: 3169807034; + classType: "request"; + className: "account.GetChannelRestrictedStatusEmojis"; + static fromReader(reader: Reader): GetChannelRestrictedStatusEmojis; + hash: long; + } + export class UpdateBusinessWorkHours extends Request< + Partial<{ + // flags: null; + businessWorkHours?: Api.TypeBusinessWorkHours; + }>, + Bool + > { + CONSTRUCTOR_ID: 1258348646; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.UpdateBusinessWorkHours"; + static fromReader(reader: Reader): UpdateBusinessWorkHours; + // flags: null; + businessWorkHours?: Api.TypeBusinessWorkHours; + } + export class UpdateBusinessLocation extends Request< + Partial<{ + // flags: null; + geoPoint?: Api.TypeInputGeoPoint; + address?: string; + }>, + Bool + > { + CONSTRUCTOR_ID: 2657817370; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.UpdateBusinessLocation"; + static fromReader(reader: Reader): UpdateBusinessLocation; + // flags: null; + geoPoint?: Api.TypeInputGeoPoint; + address?: string; + } + export class UpdateBusinessGreetingMessage extends Request< + Partial<{ + // flags: null; + message?: Api.TypeInputBusinessGreetingMessage; + }>, + Bool + > { + CONSTRUCTOR_ID: 1724755908; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.UpdateBusinessGreetingMessage"; + static fromReader(reader: Reader): UpdateBusinessGreetingMessage; + // flags: null; + message?: Api.TypeInputBusinessGreetingMessage; + } + export class UpdateBusinessAwayMessage extends Request< + Partial<{ + // flags: null; + message?: Api.TypeInputBusinessAwayMessage; + }>, + Bool + > { + CONSTRUCTOR_ID: 2724888485; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.UpdateBusinessAwayMessage"; + static fromReader(reader: Reader): UpdateBusinessAwayMessage; + // flags: null; + message?: Api.TypeInputBusinessAwayMessage; + } + export class UpdateConnectedBot extends Request< + Partial<{ + // flags: null; + canReply?: boolean; + deleted?: boolean; + bot: Api.TypeEntityLike; + recipients: Api.TypeInputBusinessBotRecipients; + }>, + Api.TypeUpdates + > { + CONSTRUCTOR_ID: 1138250269; + SUBCLASS_OF_ID: 2331323052; + classType: "request"; + className: "account.UpdateConnectedBot"; + static fromReader(reader: Reader): UpdateConnectedBot; + // flags: null; + canReply?: boolean; + deleted?: boolean; + bot: Api.TypeEntityLike; + recipients: Api.TypeInputBusinessBotRecipients; + } + export class GetConnectedBots extends Request< + void, + account.TypeConnectedBots + > { + CONSTRUCTOR_ID: 1319421967; + SUBCLASS_OF_ID: 3838506963; + classType: "request"; + className: "account.GetConnectedBots"; + static fromReader(reader: Reader): GetConnectedBots; + } + export class GetBotBusinessConnection extends Request< + Partial<{ + connectionId: string; + }>, + Api.TypeUpdates + > { + CONSTRUCTOR_ID: 1990746736; + SUBCLASS_OF_ID: 2331323052; + classType: "request"; + className: "account.GetBotBusinessConnection"; + static fromReader(reader: Reader): GetBotBusinessConnection; + connectionId: string; + } + export class UpdateBusinessIntro extends Request< + Partial<{ + // flags: null; + intro?: Api.TypeInputBusinessIntro; + }>, + Bool + > { + CONSTRUCTOR_ID: 2786381876; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.UpdateBusinessIntro"; + static fromReader(reader: Reader): UpdateBusinessIntro; + // flags: null; + intro?: Api.TypeInputBusinessIntro; + } + export class ToggleConnectedBotPaused extends Request< + Partial<{ + peer: Api.TypeEntityLike; + paused: Bool; + }>, + Bool + > { + CONSTRUCTOR_ID: 1684934807; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.ToggleConnectedBotPaused"; + static fromReader(reader: Reader): ToggleConnectedBotPaused; + peer: Api.TypeEntityLike; + paused: Bool; + } + export class DisablePeerConnectedBot extends Request< + Partial<{ + peer: Api.TypeEntityLike; + }>, + Bool + > { + CONSTRUCTOR_ID: 1581481689; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.DisablePeerConnectedBot"; + static fromReader(reader: Reader): DisablePeerConnectedBot; + peer: Api.TypeEntityLike; + } + export class UpdateBirthday extends Request< + Partial<{ + // flags: null; + birthday?: Api.TypeBirthday; + }>, + Bool + > { + CONSTRUCTOR_ID: 3429764113; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "account.UpdateBirthday"; + static fromReader(reader: Reader): UpdateBirthday; + // flags: null; + birthday?: Api.TypeBirthday; + } + export class CreateBusinessChatLink extends Request< + Partial<{ + link: Api.TypeInputBusinessChatLink; + }>, + Api.TypeBusinessChatLink + > { + CONSTRUCTOR_ID: 2287068814; + SUBCLASS_OF_ID: 1007504011; + classType: "request"; + className: "account.CreateBusinessChatLink"; + static fromReader(reader: Reader): CreateBusinessChatLink; + link: Api.TypeInputBusinessChatLink; + } + export class EditBusinessChatLink extends Request< + Partial<{ + slug: string; + link: Api.TypeInputBusinessChatLink; + }>, + Api.TypeBusinessChatLink + > { + CONSTRUCTOR_ID: 2352222383; + SUBCLASS_OF_ID: 1007504011; + classType: "request"; + className: "account.EditBusinessChatLink"; + static fromReader(reader: Reader): EditBusinessChatLink; + slug: string; + link: Api.TypeInputBusinessChatLink; + } + export class DeleteBusinessChatLink extends Request< + Partial<{ + slug: string; + }>, + Bool + > { + CONSTRUCTOR_ID: 1611085428; SUBCLASS_OF_ID: 4122188204; classType: "request"; - className: "account.UpdateColor"; - static fromReader(reader: Reader): UpdateColor; - // flags: null; - forProfile?: boolean; - color?: int; - backgroundEmojiId?: long; + className: "account.DeleteBusinessChatLink"; + static fromReader(reader: Reader): DeleteBusinessChatLink; + slug: string; } - export class GetDefaultBackgroundEmojis extends Request< - Partial<{ - hash: long; - }>, - Api.TypeEmojiList + export class GetBusinessChatLinks extends Request< + void, + account.TypeBusinessChatLinks > { - CONSTRUCTOR_ID: 2785720782; - SUBCLASS_OF_ID: 3169807034; + CONSTRUCTOR_ID: 1869667809; + SUBCLASS_OF_ID: 3334097457; classType: "request"; - className: "account.GetDefaultBackgroundEmojis"; - static fromReader(reader: Reader): GetDefaultBackgroundEmojis; - hash: long; + className: "account.GetBusinessChatLinks"; + static fromReader(reader: Reader): GetBusinessChatLinks; } - export class GetChannelDefaultEmojiStatuses extends Request< + export class ResolveBusinessChatLink extends Request< Partial<{ - hash: long; + slug: string; }>, - account.TypeEmojiStatuses + account.TypeResolvedBusinessChatLinks > { - CONSTRUCTOR_ID: 1999087573; - SUBCLASS_OF_ID: 3554674122; + CONSTRUCTOR_ID: 1418913262; + SUBCLASS_OF_ID: 980888616; classType: "request"; - className: "account.GetChannelDefaultEmojiStatuses"; - static fromReader(reader: Reader): GetChannelDefaultEmojiStatuses; - hash: long; + className: "account.ResolveBusinessChatLink"; + static fromReader(reader: Reader): ResolveBusinessChatLink; + slug: string; } - export class GetChannelRestrictedStatusEmojis extends Request< + export class UpdatePersonalChannel extends Request< Partial<{ - hash: long; + channel: Api.TypeEntityLike; }>, - Api.TypeEmojiList + Bool > { - CONSTRUCTOR_ID: 900325589; - SUBCLASS_OF_ID: 3169807034; + CONSTRUCTOR_ID: 3645048288; + SUBCLASS_OF_ID: 4122188204; classType: "request"; - className: "account.GetChannelRestrictedStatusEmojis"; - static fromReader(reader: Reader): GetChannelRestrictedStatusEmojis; - hash: long; + className: "account.UpdatePersonalChannel"; + static fromReader(reader: Reader): UpdatePersonalChannel; + channel: Api.TypeEntityLike; } } @@ -20050,7 +21412,7 @@ export namespace Api { Partial<{ id: Api.TypeEntityLike[]; }>, - Bool + Bool[] > { CONSTRUCTOR_ID: 2787289616; SUBCLASS_OF_ID: 366986225; @@ -20439,6 +21801,16 @@ export namespace Api { id: Api.TypeEntityLike[]; limit: int; } + export class GetBirthdays extends Request< + void, + contacts.TypeContactBirthdays + > { + CONSTRUCTOR_ID: 3673008228; + SUBCLASS_OF_ID: 242920447; + classType: "request"; + className: "contacts.GetBirthdays"; + static fromReader(reader: Reader): GetBirthdays; + } } export namespace messages { @@ -20659,10 +22031,11 @@ export namespace Api { entities?: Api.TypeMessageEntity[]; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; }>, Api.TypeUpdates > { - CONSTRUCTOR_ID: 671943023; + CONSTRUCTOR_ID: 3757573164; SUBCLASS_OF_ID: 2331323052; classType: "request"; className: "messages.SendMessage"; @@ -20683,6 +22056,7 @@ export namespace Api { entities?: Api.TypeMessageEntity[]; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; } export class SendMedia extends Request< Partial<{ @@ -20702,10 +22076,11 @@ export namespace Api { entities?: Api.TypeMessageEntity[]; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; }>, Api.TypeUpdates > { - CONSTRUCTOR_ID: 1926021693; + CONSTRUCTOR_ID: 2077646913; SUBCLASS_OF_ID: 2331323052; classType: "request"; className: "messages.SendMedia"; @@ -20726,6 +22101,7 @@ export namespace Api { entities?: Api.TypeMessageEntity[]; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; } export class ForwardMessages extends Request< Partial<{ @@ -20743,10 +22119,11 @@ export namespace Api { topMsgId?: MessageIDLike; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; }>, Api.TypeUpdates > { - CONSTRUCTOR_ID: 3328293828; + CONSTRUCTOR_ID: 3573781000; SUBCLASS_OF_ID: 2331323052; classType: "request"; className: "messages.ForwardMessages"; @@ -20765,6 +22142,7 @@ export namespace Api { topMsgId?: MessageIDLike; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; } export class ReportSpam extends Request< Partial<{ @@ -20873,10 +22251,10 @@ export namespace Api { userId: Api.TypeEntityLike; fwdLimit: int; }>, - Api.TypeUpdates + messages.TypeInvitedUsers > { - CONSTRUCTOR_ID: 4064760803; - SUBCLASS_OF_ID: 2331323052; + CONSTRUCTOR_ID: 3418804487; + SUBCLASS_OF_ID: 1035899041; classType: "request"; className: "messages.AddChatUser"; static fromReader(reader: Reader): AddChatUser; @@ -20910,10 +22288,10 @@ export namespace Api { title: string; ttlPeriod?: int; }>, - Api.TypeUpdates + messages.TypeInvitedUsers > { - CONSTRUCTOR_ID: 3450904; - SUBCLASS_OF_ID: 2331323052; + CONSTRUCTOR_ID: 2463030740; + SUBCLASS_OF_ID: 1035899041; classType: "request"; className: "messages.CreateChat"; static fromReader(reader: Reader): CreateChat; @@ -21484,10 +22862,11 @@ export namespace Api { id: string; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; }>, Api.TypeUpdates > { - CONSTRUCTOR_ID: 4156319930; + CONSTRUCTOR_ID: 1052698730; SUBCLASS_OF_ID: 2331323052; classType: "request"; className: "messages.SendInlineBotResult"; @@ -21504,6 +22883,7 @@ export namespace Api { id: string; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; } export class GetMessageEditData extends Request< Partial<{ @@ -21532,10 +22912,11 @@ export namespace Api { replyMarkup?: Api.TypeReplyMarkup; entities?: Api.TypeMessageEntity[]; scheduleDate?: int; + quickReplyShortcutId?: int; }>, Api.TypeUpdates > { - CONSTRUCTOR_ID: 1224152952; + CONSTRUCTOR_ID: 3755032581; SUBCLASS_OF_ID: 2331323052; classType: "request"; className: "messages.EditMessage"; @@ -21550,6 +22931,7 @@ export namespace Api { replyMarkup?: Api.TypeReplyMarkup; entities?: Api.TypeMessageEntity[]; scheduleDate?: int; + quickReplyShortcutId?: int; } export class EditInlineBotMessage extends Request< Partial<{ @@ -21996,16 +23378,20 @@ export namespace Api { } export class UploadMedia extends Request< Partial<{ + // flags: null; + businessConnectionId?: string; peer: Api.TypeEntityLike; media: Api.TypeInputMedia; }>, Api.TypeMessageMedia > { - CONSTRUCTOR_ID: 1369162417; + CONSTRUCTOR_ID: 345405816; SUBCLASS_OF_ID: 1198308914; classType: "request"; className: "messages.UploadMedia"; static fromReader(reader: Reader): UploadMedia; + // flags: null; + businessConnectionId?: string; peer: Api.TypeEntityLike; media: Api.TypeInputMedia; } @@ -22129,10 +23515,11 @@ export namespace Api { multiMedia: Api.TypeInputSingleMedia[]; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; }>, Api.TypeUpdates > { - CONSTRUCTOR_ID: 1164872071; + CONSTRUCTOR_ID: 211175177; SUBCLASS_OF_ID: 2331323052; classType: "request"; className: "messages.SendMultiMedia"; @@ -22149,6 +23536,7 @@ export namespace Api { multiMedia: Api.TypeInputSingleMedia[]; scheduleDate?: int; sendAs?: Api.TypeEntityLike; + quickReplyShortcut?: Api.TypeInputQuickReplyShortcut; } export class UploadEncryptedFile extends Request< Partial<{ @@ -22564,10 +23952,10 @@ export namespace Api { } export class GetDialogFilters extends Request< void, - Api.TypeDialogFilter[] + messages.TypeDialogFilters > { - CONSTRUCTOR_ID: 4053719405; - SUBCLASS_OF_ID: 1612507469; + CONSTRUCTOR_ID: 4023684233; + SUBCLASS_OF_ID: 2785014199; classType: "request"; className: "messages.GetDialogFilters"; static fromReader(reader: Reader): GetDialogFilters; @@ -23974,6 +25362,154 @@ export namespace Api { peer: Api.TypeEntityLike; msgId: MessageIDLike; } + export class GetQuickReplies extends Request< + Partial<{ + hash: long; + }>, + messages.TypeQuickReplies + > { + CONSTRUCTOR_ID: 3565417128; + SUBCLASS_OF_ID: 4147636582; + classType: "request"; + className: "messages.GetQuickReplies"; + static fromReader(reader: Reader): GetQuickReplies; + hash: long; + } + export class ReorderQuickReplies extends Request< + Partial<{ + order: int[]; + }>, + Bool + > { + CONSTRUCTOR_ID: 1613961479; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "messages.ReorderQuickReplies"; + static fromReader(reader: Reader): ReorderQuickReplies; + order: int[]; + } + export class CheckQuickReplyShortcut extends Request< + Partial<{ + shortcut: string; + }>, + Bool + > { + CONSTRUCTOR_ID: 4057005011; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "messages.CheckQuickReplyShortcut"; + static fromReader(reader: Reader): CheckQuickReplyShortcut; + shortcut: string; + } + export class EditQuickReplyShortcut extends Request< + Partial<{ + shortcutId: int; + shortcut: string; + }>, + Bool + > { + CONSTRUCTOR_ID: 1543519471; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "messages.EditQuickReplyShortcut"; + static fromReader(reader: Reader): EditQuickReplyShortcut; + shortcutId: int; + shortcut: string; + } + export class DeleteQuickReplyShortcut extends Request< + Partial<{ + shortcutId: int; + }>, + Bool + > { + CONSTRUCTOR_ID: 1019234112; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "messages.DeleteQuickReplyShortcut"; + static fromReader(reader: Reader): DeleteQuickReplyShortcut; + shortcutId: int; + } + export class GetQuickReplyMessages extends Request< + Partial<{ + // flags: null; + shortcutId: int; + id?: int[]; + hash: long; + }>, + messages.TypeMessages + > { + CONSTRUCTOR_ID: 2493814211; + SUBCLASS_OF_ID: 3568569182; + classType: "request"; + className: "messages.GetQuickReplyMessages"; + static fromReader(reader: Reader): GetQuickReplyMessages; + // flags: null; + shortcutId: int; + id?: int[]; + hash: long; + } + export class SendQuickReplyMessages extends Request< + Partial<{ + peer: Api.TypeEntityLike; + shortcutId: int; + id: int[]; + randomId: long[]; + }>, + Api.TypeUpdates + > { + CONSTRUCTOR_ID: 1819610593; + SUBCLASS_OF_ID: 2331323052; + classType: "request"; + className: "messages.SendQuickReplyMessages"; + static fromReader(reader: Reader): SendQuickReplyMessages; + peer: Api.TypeEntityLike; + shortcutId: int; + id: int[]; + randomId: long[]; + } + export class DeleteQuickReplyMessages extends Request< + Partial<{ + shortcutId: int; + id: int[]; + }>, + Api.TypeUpdates + > { + CONSTRUCTOR_ID: 3775260944; + SUBCLASS_OF_ID: 2331323052; + classType: "request"; + className: "messages.DeleteQuickReplyMessages"; + static fromReader(reader: Reader): DeleteQuickReplyMessages; + shortcutId: int; + id: int[]; + } + export class ToggleDialogFilterTags extends Request< + Partial<{ + enabled: Bool; + }>, + Bool + > { + CONSTRUCTOR_ID: 4247640649; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "messages.ToggleDialogFilterTags"; + static fromReader(reader: Reader): ToggleDialogFilterTags; + enabled: Bool; + } + export class GetMyStickers extends Request< + Partial<{ + offsetId: long; + limit: int; + }>, + messages.TypeMyStickers + > { + CONSTRUCTOR_ID: 3501580796; + SUBCLASS_OF_ID: 2981377290; + classType: "request"; + className: "messages.GetMyStickers"; + static fromReader(reader: Reader): GetMyStickers; + offsetId: long; + limit: int; + } } export namespace updates { @@ -24559,6 +26095,19 @@ export namespace Api { static fromReader(reader: Reader): GetPeerProfileColors; hash: int; } + export class GetTimezonesList extends Request< + Partial<{ + hash: int; + }>, + help.TypeTimezonesList + > { + CONSTRUCTOR_ID: 1236468288; + SUBCLASS_OF_ID: 3396789365; + classType: "request"; + className: "help.GetTimezonesList"; + static fromReader(reader: Reader): GetTimezonesList; + hash: int; + } } export namespace channels { @@ -24827,10 +26376,10 @@ export namespace Api { channel: Api.TypeEntityLike; users: Api.TypeEntityLike[]; }>, - Api.TypeUpdates + messages.TypeInvitedUsers > { - CONSTRUCTOR_ID: 429865580; - SUBCLASS_OF_ID: 2331323052; + CONSTRUCTOR_ID: 3387112788; + SUBCLASS_OF_ID: 1035899041; classType: "request"; className: "channels.InviteToChannel"; static fromReader(reader: Reader): InviteToChannel; @@ -24891,6 +26440,7 @@ export namespace Api { // flags: null; byLocation?: boolean; checkLimit?: boolean; + forPersonal?: boolean; }>, messages.TypeChats > { @@ -24902,6 +26452,7 @@ export namespace Api { // flags: null; byLocation?: boolean; checkLimit?: boolean; + forPersonal?: boolean; } export class EditBanned extends Request< Partial<{ @@ -25562,6 +27113,38 @@ export namespace Api { channel: Api.TypeEntityLike; stickerset: Api.TypeInputStickerSet; } + export class ReportSponsoredMessage extends Request< + Partial<{ + channel: Api.TypeEntityLike; + randomId: bytes; + option: bytes; + }>, + channels.TypeSponsoredMessageReportResult + > { + CONSTRUCTOR_ID: 2945447609; + SUBCLASS_OF_ID: 639834146; + classType: "request"; + className: "channels.ReportSponsoredMessage"; + static fromReader(reader: Reader): ReportSponsoredMessage; + channel: Api.TypeEntityLike; + randomId: bytes; + option: bytes; + } + export class RestrictSponsoredMessages extends Request< + Partial<{ + channel: Api.TypeEntityLike; + restricted: Bool; + }>, + Api.TypeUpdates + > { + CONSTRUCTOR_ID: 2598966553; + SUBCLASS_OF_ID: 2331323052; + classType: "request"; + className: "channels.RestrictSponsoredMessages"; + static fromReader(reader: Reader): RestrictSponsoredMessages; + channel: Api.TypeEntityLike; + restricted: Bool; + } } export namespace bots { @@ -26068,8 +27651,6 @@ export namespace Api { Partial<{ // flags: null; masks?: boolean; - animated?: boolean; - videos?: boolean; emojis?: boolean; textColor?: boolean; userId: Api.TypeEntityLike; @@ -26088,8 +27669,6 @@ export namespace Api { static fromReader(reader: Reader): CreateStickerSet; // flags: null; masks?: boolean; - animated?: boolean; - videos?: boolean; emojis?: boolean; textColor?: boolean; userId: Api.TypeEntityLike; @@ -26236,6 +27815,21 @@ export namespace Api { static fromReader(reader: Reader): DeleteStickerSet; stickerset: Api.TypeInputStickerSet; } + export class ReplaceSticker extends Request< + Partial<{ + sticker: Api.TypeInputDocument; + newSticker: Api.TypeInputStickerSetItem; + }>, + messages.TypeStickerSet + > { + CONSTRUCTOR_ID: 1184253338; + SUBCLASS_OF_ID: 2607827546; + classType: "request"; + className: "stickers.ReplaceSticker"; + static fromReader(reader: Reader): ReplaceSticker; + sticker: Api.TypeInputDocument; + newSticker: Api.TypeInputStickerSetItem; + } } export namespace phone { @@ -26990,6 +28584,55 @@ export namespace Api { offset: string; limit: int; } + export class GetBroadcastRevenueStats extends Request< + Partial<{ + // flags: null; + dark?: boolean; + channel: Api.TypeEntityLike; + }>, + stats.TypeBroadcastRevenueStats + > { + CONSTRUCTOR_ID: 1977595505; + SUBCLASS_OF_ID: 753807480; + classType: "request"; + className: "stats.GetBroadcastRevenueStats"; + static fromReader(reader: Reader): GetBroadcastRevenueStats; + // flags: null; + dark?: boolean; + channel: Api.TypeEntityLike; + } + export class GetBroadcastRevenueWithdrawalUrl extends Request< + Partial<{ + channel: Api.TypeEntityLike; + password: Api.TypeInputCheckPasswordSRP; + }>, + stats.TypeBroadcastRevenueWithdrawalUrl + > { + CONSTRUCTOR_ID: 711323507; + SUBCLASS_OF_ID: 3512518885; + classType: "request"; + className: "stats.GetBroadcastRevenueWithdrawalUrl"; + static fromReader(reader: Reader): GetBroadcastRevenueWithdrawalUrl; + channel: Api.TypeEntityLike; + password: Api.TypeInputCheckPasswordSRP; + } + export class GetBroadcastRevenueTransactions extends Request< + Partial<{ + channel: Api.TypeEntityLike; + offset: int; + limit: int; + }>, + stats.TypeBroadcastRevenueTransactions + > { + CONSTRUCTOR_ID: 6891535; + SUBCLASS_OF_ID: 108456469; + classType: "request"; + className: "stats.GetBroadcastRevenueTransactions"; + static fromReader(reader: Reader): GetBroadcastRevenueTransactions; + channel: Api.TypeEntityLike; + offset: int; + limit: int; + } } export namespace chatlists { @@ -27657,6 +29300,101 @@ export namespace Api { userId: Api.TypeEntityLike; } } + + export namespace smsjobs { + export class IsEligibleToJoin extends Request< + void, + smsjobs.TypeEligibilityToJoin + > { + CONSTRUCTOR_ID: 249313744; + SUBCLASS_OF_ID: 1589076134; + classType: "request"; + className: "smsjobs.IsEligibleToJoin"; + static fromReader(reader: Reader): IsEligibleToJoin; + } + export class Join extends Request { + CONSTRUCTOR_ID: 2806959661; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "smsjobs.Join"; + static fromReader(reader: Reader): Join; + } + export class Leave extends Request { + CONSTRUCTOR_ID: 2560142707; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "smsjobs.Leave"; + static fromReader(reader: Reader): Leave; + } + export class UpdateSettings extends Request< + Partial<{ + // flags: null; + allowInternational?: boolean; + }>, + Bool + > { + CONSTRUCTOR_ID: 155164863; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "smsjobs.UpdateSettings"; + static fromReader(reader: Reader): UpdateSettings; + // flags: null; + allowInternational?: boolean; + } + export class GetStatus extends Request { + CONSTRUCTOR_ID: 279353576; + SUBCLASS_OF_ID: 3448711973; + classType: "request"; + className: "smsjobs.GetStatus"; + static fromReader(reader: Reader): GetStatus; + } + export class GetSmsJob extends Request< + Partial<{ + jobId: string; + }>, + Api.TypeSmsJob + > { + CONSTRUCTOR_ID: 2005766191; + SUBCLASS_OF_ID: 522459262; + classType: "request"; + className: "smsjobs.GetSmsJob"; + static fromReader(reader: Reader): GetSmsJob; + jobId: string; + } + export class FinishJob extends Request< + Partial<{ + // flags: null; + jobId: string; + error?: string; + }>, + Bool + > { + CONSTRUCTOR_ID: 1327415076; + SUBCLASS_OF_ID: 4122188204; + classType: "request"; + className: "smsjobs.FinishJob"; + static fromReader(reader: Reader): FinishJob; + // flags: null; + jobId: string; + error?: string; + } + } + + export namespace fragment { + export class GetCollectibleInfo extends Request< + Partial<{ + collectible: Api.TypeInputCollectible; + }>, + fragment.TypeCollectibleInfo + > { + CONSTRUCTOR_ID: 3189671354; + SUBCLASS_OF_ID: 3572127632; + classType: "request"; + className: "fragment.GetCollectibleInfo"; + static fromReader(reader: Reader): GetCollectibleInfo; + collectible: Api.TypeInputCollectible; + } + } // Types export type TypeEntityLike = EntityLike; export type TypeInputPeer = @@ -27794,7 +29532,8 @@ export namespace Api { | MessageActionGiftCode | MessageActionGiveawayLaunch | MessageActionGiveawayResults - | MessageActionBoostApply; + | MessageActionBoostApply + | MessageActionRequestedPeerSentMe; export type TypeDialog = Dialog | DialogFolder; export type TypePhoto = PhotoEmpty | Photo; export type TypePhotoSize = @@ -27960,7 +29699,6 @@ export namespace Api { | UpdateChannelPinnedTopics | UpdateUser | UpdateAutoSaveSettings - | UpdateGroupInvitePrivacyForbidden | UpdateStory | UpdateReadStories | UpdateStoryID @@ -27973,7 +29711,17 @@ export namespace Api { | UpdateBotMessageReactions | UpdateSavedDialogPinned | UpdatePinnedSavedDialogs - | UpdateSavedReactionTags; + | UpdateSavedReactionTags + | UpdateSmsJob + | UpdateQuickReplies + | UpdateNewQuickReply + | UpdateDeleteQuickReply + | UpdateQuickReplyMessage + | UpdateDeleteQuickReplyMessages + | UpdateBotBusinessConnect + | UpdateBotNewBusinessMessage + | UpdateBotEditBusinessMessage + | UpdateBotDeleteBusinessMessage; export type TypeUpdates = | UpdatesTooLong | UpdateShortMessage @@ -28038,7 +29786,8 @@ export namespace Api { | InputPrivacyKeyPhoneNumber | InputPrivacyKeyAddedByPhone | InputPrivacyKeyVoiceMessages - | InputPrivacyKeyAbout; + | InputPrivacyKeyAbout + | InputPrivacyKeyBirthday; export type TypePrivacyKey = | PrivacyKeyStatusTimestamp | PrivacyKeyChatInvite @@ -28049,7 +29798,8 @@ export namespace Api { | PrivacyKeyPhoneNumber | PrivacyKeyAddedByPhone | PrivacyKeyVoiceMessages - | PrivacyKeyAbout; + | PrivacyKeyAbout + | PrivacyKeyBirthday; export type TypeInputPrivacyRule = | InputPrivacyValueAllowContacts | InputPrivacyValueAllowAll @@ -28059,7 +29809,8 @@ export namespace Api { | InputPrivacyValueDisallowUsers | InputPrivacyValueAllowChatParticipants | InputPrivacyValueDisallowChatParticipants - | InputPrivacyValueAllowCloseFriends; + | InputPrivacyValueAllowCloseFriends + | InputPrivacyValueAllowPremium; export type TypePrivacyRule = | PrivacyValueAllowContacts | PrivacyValueAllowAll @@ -28069,7 +29820,8 @@ export namespace Api { | PrivacyValueDisallowUsers | PrivacyValueAllowChatParticipants | PrivacyValueDisallowChatParticipants - | PrivacyValueAllowCloseFriends; + | PrivacyValueAllowCloseFriends + | PrivacyValueAllowPremium; export type TypeAccountDaysTTL = AccountDaysTTL; export type TypeDocumentAttribute = | DocumentAttributeImageSize @@ -28126,7 +29878,8 @@ export namespace Api { | KeyboardButtonUserProfile | KeyboardButtonWebView | KeyboardButtonSimpleWebView - | KeyboardButtonRequestPeer; + | KeyboardButtonRequestPeer + | InputKeyboardButtonRequestPeer; export type TypeKeyboardButtonRow = KeyboardButtonRow; export type TypeReplyMarkup = | ReplyKeyboardHide @@ -28673,6 +30426,48 @@ export namespace Api { export type TypeSavedDialog = SavedDialog; export type TypeSavedReactionTag = SavedReactionTag; export type TypeOutboxReadDate = OutboxReadDate; + export type TypeSmsJob = SmsJob; + export type TypeBusinessWeeklyOpen = BusinessWeeklyOpen; + export type TypeBusinessWorkHours = BusinessWorkHours; + export type TypeBusinessLocation = BusinessLocation; + export type TypeInputBusinessRecipients = InputBusinessRecipients; + export type TypeBusinessRecipients = BusinessRecipients; + export type TypeBusinessAwayMessageSchedule = + | BusinessAwayMessageScheduleAlways + | BusinessAwayMessageScheduleOutsideWorkHours + | BusinessAwayMessageScheduleCustom; + export type TypeInputBusinessGreetingMessage = InputBusinessGreetingMessage; + export type TypeBusinessGreetingMessage = BusinessGreetingMessage; + export type TypeInputBusinessAwayMessage = InputBusinessAwayMessage; + export type TypeBusinessAwayMessage = BusinessAwayMessage; + export type TypeTimezone = Timezone; + export type TypeQuickReply = QuickReply; + export type TypeInputQuickReplyShortcut = + | InputQuickReplyShortcut + | InputQuickReplyShortcutId; + export type TypeConnectedBot = ConnectedBot; + export type TypeBirthday = Birthday; + export type TypeBotBusinessConnection = BotBusinessConnection; + export type TypeInputBusinessIntro = InputBusinessIntro; + export type TypeBusinessIntro = BusinessIntro; + export type TypeInputCollectible = + | InputCollectibleUsername + | InputCollectiblePhone; + export type TypeInputBusinessBotRecipients = InputBusinessBotRecipients; + export type TypeBusinessBotRecipients = BusinessBotRecipients; + export type TypeContactBirthday = ContactBirthday; + export type TypeMissingInvitee = MissingInvitee; + export type TypeInputBusinessChatLink = InputBusinessChatLink; + export type TypeBusinessChatLink = BusinessChatLink; + export type TypeRequestedPeer = + | RequestedPeerUser + | RequestedPeerChat + | RequestedPeerChannel; + export type TypeSponsoredMessageReportOption = SponsoredMessageReportOption; + export type TypeBroadcastRevenueTransaction = + | BroadcastRevenueTransactionProceeds + | BroadcastRevenueTransactionWithdrawal + | BroadcastRevenueTransactionRefund; export type TypeResPQ = ResPQ; export type TypeP_Q_inner_data = | PQInnerData @@ -28730,6 +30525,7 @@ export namespace Api { | InvokeWithoutUpdates | InvokeWithMessagesRange | InvokeWithTakeout + | InvokeWithBusinessConnection | ReqPq | ReqPqMulti | ReqDHParams @@ -28854,6 +30650,23 @@ export namespace Api { | account.GetDefaultBackgroundEmojis | account.GetChannelDefaultEmojiStatuses | account.GetChannelRestrictedStatusEmojis + | account.UpdateBusinessWorkHours + | account.UpdateBusinessLocation + | account.UpdateBusinessGreetingMessage + | account.UpdateBusinessAwayMessage + | account.UpdateConnectedBot + | account.GetConnectedBots + | account.GetBotBusinessConnection + | account.UpdateBusinessIntro + | account.ToggleConnectedBotPaused + | account.DisablePeerConnectedBot + | account.UpdateBirthday + | account.CreateBusinessChatLink + | account.EditBusinessChatLink + | account.DeleteBusinessChatLink + | account.GetBusinessChatLinks + | account.ResolveBusinessChatLink + | account.UpdatePersonalChannel | users.GetUsers | users.GetFullUser | users.SetSecureValueErrors @@ -28883,6 +30696,7 @@ export namespace Api { | contacts.ImportContactToken | contacts.EditCloseFriends | contacts.SetBlocked + | contacts.GetBirthdays | messages.GetMessages | messages.GetDialogs | messages.GetHistory @@ -29081,6 +30895,16 @@ export namespace Api { | messages.UpdateSavedReactionTag | messages.GetDefaultTagReactions | messages.GetOutboxReadDate + | messages.GetQuickReplies + | messages.ReorderQuickReplies + | messages.CheckQuickReplyShortcut + | messages.EditQuickReplyShortcut + | messages.DeleteQuickReplyShortcut + | messages.GetQuickReplyMessages + | messages.SendQuickReplyMessages + | messages.DeleteQuickReplyMessages + | messages.ToggleDialogFilterTags + | messages.GetMyStickers | updates.GetState | updates.GetDifference | updates.GetChannelDifference @@ -29121,6 +30945,7 @@ export namespace Api { | help.GetPremiumPromo | help.GetPeerColors | help.GetPeerProfileColors + | help.GetTimezonesList | channels.ReadHistory | channels.DeleteMessages | channels.ReportSpam @@ -29183,6 +31008,8 @@ export namespace Api { | channels.UpdateEmojiStatus | channels.SetBoostsToUnblockRestrictions | channels.SetEmojiStickers + | channels.ReportSponsoredMessage + | channels.RestrictSponsoredMessages | bots.SendCustomRequest | bots.AnswerWebhookJSONQuery | bots.SetBotCommands @@ -29225,6 +31052,7 @@ export namespace Api { | stickers.ChangeSticker | stickers.RenameStickerSet | stickers.DeleteStickerSet + | stickers.ReplaceSticker | phone.GetCallConfig | phone.RequestCall | phone.AcceptCall @@ -29269,6 +31097,9 @@ export namespace Api { | stats.GetMessageStats | stats.GetStoryStats | stats.GetStoryPublicForwards + | stats.GetBroadcastRevenueStats + | stats.GetBroadcastRevenueWithdrawalUrl + | stats.GetBroadcastRevenueTransactions | chatlists.ExportChatlistInvite | chatlists.DeleteExportedInvite | chatlists.EditExportedInvite @@ -29308,5 +31139,13 @@ export namespace Api { | premium.GetMyBoosts | premium.ApplyBoost | premium.GetBoostsStatus - | premium.GetUserBoosts; + | premium.GetUserBoosts + | smsjobs.IsEligibleToJoin + | smsjobs.Join + | smsjobs.Leave + | smsjobs.UpdateSettings + | smsjobs.GetStatus + | smsjobs.GetSmsJob + | smsjobs.FinishJob + | fragment.GetCollectibleInfo; } diff --git a/gramjs/tl/apiTl.js b/gramjs/tl/apiTl.js index b52a6b2f..e332b04a 100644 --- a/gramjs/tl/apiTl.js +++ b/gramjs/tl/apiTl.js @@ -66,7 +66,7 @@ storage.fileMov#4b09ebbc = storage.FileType; storage.fileMp4#b3cea0e4 = storage.FileType; storage.fileWebp#1081464c = storage.FileType; userEmpty#d3bc4b7a id:long = User; -user#215c4438 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true fake:flags.26?true bot_attach_menu:flags.27?true premium:flags.28?true attach_menu_enabled:flags.29?true flags2:# bot_can_edit:flags2.1?true close_friend:flags2.2?true stories_hidden:flags2.3?true stories_unavailable:flags2.4?true contact_require_premium:flags2.10?true id:long access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector bot_inline_placeholder:flags.19?string lang_code:flags.22?string emoji_status:flags.30?EmojiStatus usernames:flags2.0?Vector stories_max_id:flags2.5?int color:flags2.8?PeerColor profile_color:flags2.9?PeerColor = User; +user#215c4438 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true fake:flags.26?true bot_attach_menu:flags.27?true premium:flags.28?true attach_menu_enabled:flags.29?true flags2:# bot_can_edit:flags2.1?true close_friend:flags2.2?true stories_hidden:flags2.3?true stories_unavailable:flags2.4?true contact_require_premium:flags2.10?true bot_business:flags2.11?true id:long access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector bot_inline_placeholder:flags.19?string lang_code:flags.22?string emoji_status:flags.30?EmojiStatus usernames:flags2.0?Vector stories_max_id:flags2.5?int color:flags2.8?PeerColor profile_color:flags2.9?PeerColor = User; userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto; userProfilePhoto#82d1f706 flags:# has_video:flags.0?true personal:flags.2?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = UserProfilePhoto; userStatusEmpty#9d05049 = UserStatus; @@ -81,7 +81,7 @@ chatForbidden#6592a1a7 id:long title:string = Chat; channel#aadfc8f flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true signatures:flags.11?true min:flags.12?true scam:flags.19?true has_link:flags.20?true has_geo:flags.21?true slowmode_enabled:flags.22?true call_active:flags.23?true call_not_empty:flags.24?true fake:flags.25?true gigagroup:flags.26?true noforwards:flags.27?true join_to_send:flags.28?true join_request:flags.29?true forum:flags.30?true flags2:# stories_hidden:flags2.1?true stories_hidden_min:flags2.2?true stories_unavailable:flags2.3?true id:long access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int restriction_reason:flags.9?Vector admin_rights:flags.14?ChatAdminRights banned_rights:flags.15?ChatBannedRights default_banned_rights:flags.18?ChatBannedRights participants_count:flags.17?int usernames:flags2.0?Vector stories_max_id:flags2.4?int color:flags2.7?PeerColor profile_color:flags2.8?PeerColor emoji_status:flags2.9?EmojiStatus level:flags2.10?int = Chat; channelForbidden#17d493d5 flags:# broadcast:flags.5?true megagroup:flags.8?true id:long access_hash:long title:string until_date:flags.16?int = Chat; chatFull#c9d31138 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true translations_disabled:flags.19?true id:long about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall ttl_period:flags.14?int groupcall_default_join_as:flags.15?Peer theme_emoticon:flags.16?string requests_pending:flags.17?int recent_requesters:flags.17?Vector available_reactions:flags.18?ChatReactions = ChatFull; -channelFull#44c054a7 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true flags2:# can_delete_channel:flags2.0?true antispam:flags2.1?true participants_hidden:flags2.2?true translations_disabled:flags2.3?true stories_pinned_available:flags2.5?true view_forum_as_messages:flags2.6?true id:long about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?long migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector default_send_as:flags.29?Peer available_reactions:flags.30?ChatReactions stories:flags2.4?PeerStories wallpaper:flags2.7?WallPaper boosts_applied:flags2.8?int boosts_unrestrict:flags2.9?int emojiset:flags2.10?StickerSet = ChatFull; +channelFull#44c054a7 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true flags2:# can_delete_channel:flags2.0?true antispam:flags2.1?true participants_hidden:flags2.2?true translations_disabled:flags2.3?true stories_pinned_available:flags2.5?true view_forum_as_messages:flags2.6?true restricted_sponsored:flags2.11?true can_view_revenue:flags2.12?true id:long about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?long migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector default_send_as:flags.29?Peer available_reactions:flags.30?ChatReactions stories:flags2.4?PeerStories wallpaper:flags2.7?WallPaper boosts_applied:flags2.8?int boosts_unrestrict:flags2.9?int emojiset:flags2.10?StickerSet = ChatFull; chatParticipant#c02d4007 user_id:long inviter_id:long date:int = ChatParticipant; chatParticipantCreator#e46bcee4 user_id:long = ChatParticipant; chatParticipantAdmin#a0933f5b user_id:long inviter_id:long date:int = ChatParticipant; @@ -90,7 +90,7 @@ chatParticipants#3cbc93f8 chat_id:long participants:Vector vers chatPhotoEmpty#37c1011c = ChatPhoto; chatPhoto#1c6e1c11 flags:# has_video:flags.0?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = ChatPhoto; messageEmpty#90a6ca84 flags:# id:int peer_id:flags.0?Peer = Message; -message#1e4c8a69 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true noforwards:flags.26?true invert_media:flags.27?true id:int from_id:flags.8?Peer from_boosts_applied:flags.29?int peer_id:Peer saved_peer_id:flags.28?Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector ttl_period:flags.25?int = Message; +message#2357bf25 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true noforwards:flags.26?true invert_media:flags.27?true flags2:# offline:flags2.1?true id:int from_id:flags.8?Peer from_boosts_applied:flags.29?int peer_id:Peer saved_peer_id:flags.28?Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long via_business_bot_id:flags2.0?long reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector ttl_period:flags.25?int quick_reply_shortcut_id:flags.30?int = Message; messageService#2b085862 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction ttl_period:flags.25?int = Message; messageMediaEmpty#3ded6320 = MessageMedia; messageMediaPhoto#695150d7 flags:# spoiler:flags.3?true photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia; @@ -150,6 +150,7 @@ messageActionGiftCode#678c2e09 flags:# via_giveaway:flags.0?true unclaimed:flags messageActionGiveawayLaunch#332ba9ed = MessageAction; messageActionGiveawayResults#2a9fadc5 winners_count:int unclaimed_count:int = MessageAction; messageActionBoostApply#cc02aa6d boosts:int = MessageAction; +messageActionRequestedPeerSentMe#93b31848 button_id:int peers:Vector = MessageAction; dialog#d58a08c6 flags:# pinned:flags.2?true unread_mark:flags.3?true view_forum_as_messages:flags.6?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int ttl_period:flags.5?int = Dialog; dialogFolder#71bd134c flags:# pinned:flags.2?true folder:Folder peer:Peer top_message:int unread_muted_peers_count:int unread_unmuted_peers_count:int unread_muted_messages_count:int unread_unmuted_messages_count:int = Dialog; photoEmpty#2331b22d id:long = Photo; @@ -174,7 +175,7 @@ inputNotifyBroadcasts#b1db7c7e = InputNotifyPeer; inputNotifyForumTopic#5c467992 peer:InputPeer top_msg_id:int = InputNotifyPeer; inputPeerNotifySettings#cacb6ae2 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?NotificationSound stories_muted:flags.6?Bool stories_hide_sender:flags.7?Bool stories_sound:flags.8?NotificationSound = InputPeerNotifySettings; peerNotifySettings#99622c0c flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int ios_sound:flags.3?NotificationSound android_sound:flags.4?NotificationSound other_sound:flags.5?NotificationSound stories_muted:flags.6?Bool stories_hide_sender:flags.7?Bool stories_ios_sound:flags.8?NotificationSound stories_android_sound:flags.9?NotificationSound stories_other_sound:flags.10?NotificationSound = PeerNotifySettings; -peerSettings#a518110d flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true autoarchived:flags.7?true invite_members:flags.8?true request_chat_broadcast:flags.10?true geo_distance:flags.6?int request_chat_title:flags.9?string request_chat_date:flags.9?int = PeerSettings; +peerSettings#acd66c5e flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true autoarchived:flags.7?true invite_members:flags.8?true request_chat_broadcast:flags.10?true business_bot_paused:flags.11?true business_bot_can_reply:flags.12?true geo_distance:flags.6?int request_chat_title:flags.9?string request_chat_date:flags.9?int business_bot_id:flags.13?long business_bot_manage_url:flags.13?string = PeerSettings; wallPaper#a437c3ed id:long flags:# creator:flags.0?true default:flags.1?true pattern:flags.3?true dark:flags.4?true access_hash:long slug:string document:Document settings:flags.2?WallPaperSettings = WallPaper; wallPaperNoFile#e0804116 id:long flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper; inputReportReasonSpam#58dbcab8 = ReportReason; @@ -187,7 +188,7 @@ inputReportReasonGeoIrrelevant#dbd4feed = ReportReason; inputReportReasonFake#f5ddd6e7 = ReportReason; inputReportReasonIllegalDrugs#a8eb2be = ReportReason; inputReportReasonPersonalDetails#9ec7863d = ReportReason; -userFull#b9b12c6c flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights premium_gifts:flags.19?Vector wallpaper:flags.24?WallPaper stories:flags.25?PeerStories = UserFull; +userFull#cc997720 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights premium_gifts:flags.19?Vector wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage business_intro:flags2.4?BusinessIntro birthday:flags2.5?Birthday personal_channel_id:flags2.6?long personal_channel_message:flags2.6?int = UserFull; contact#145ade0b user_id:long mutual:Bool = Contact; importedContact#c13e3c50 user_id:long client_id:long = ImportedContact; contactStatus#16d9703b user_id:long status:UserStatus = ContactStatus; @@ -335,7 +336,6 @@ updateChannelPinnedTopic#192efbe3 flags:# pinned:flags.0?true channel_id:long to updateChannelPinnedTopics#fe198602 flags:# channel_id:long order:flags.0?Vector = Update; updateUser#20529438 user_id:long = Update; updateAutoSaveSettings#ec05b097 = Update; -updateGroupInvitePrivacyForbidden#ccf08ad6 user_id:long = Update; updateStory#75b3b798 peer:Peer story:StoryItem = Update; updateReadStories#f74e932b peer:Peer max_id:int = Update; updateStoryID#1bf335b9 id:int random_id:long = Update; @@ -349,6 +349,16 @@ updateBotMessageReactions#9cb7759 peer:Peer msg_id:int date:int reactions:Vector updateSavedDialogPinned#aeaf9e74 flags:# pinned:flags.0?true peer:DialogPeer = Update; updatePinnedSavedDialogs#686c85a6 flags:# order:flags.0?Vector = Update; updateSavedReactionTags#39c67432 = Update; +updateSmsJob#f16269d4 job_id:string = Update; +updateQuickReplies#f9470ab2 quick_replies:Vector = Update; +updateNewQuickReply#f53da717 quick_reply:QuickReply = Update; +updateDeleteQuickReply#53e6f1ec shortcut_id:int = Update; +updateQuickReplyMessage#3e050d0f message:Message = Update; +updateDeleteQuickReplyMessages#566fe7cd shortcut_id:int messages:Vector = Update; +updateBotBusinessConnect#8ae5c97a connection:BotBusinessConnection qts:int = Update; +updateBotNewBusinessMessage#9ddb347c flags:# connection_id:string message:Message reply_to_message:flags.0?Message qts:int = Update; +updateBotEditBusinessMessage#7df587c flags:# connection_id:string message:Message reply_to_message:flags.0?Message qts:int = Update; +updateBotDeleteBusinessMessage#a02a982e connection_id:string peer:Peer messages:Vector qts:int = Update; updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State; updates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference; updates.difference#f49ca0 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector state:updates.State = updates.Difference; @@ -429,6 +439,7 @@ inputPrivacyKeyPhoneNumber#352dafa = InputPrivacyKey; inputPrivacyKeyAddedByPhone#d1219bdd = InputPrivacyKey; inputPrivacyKeyVoiceMessages#aee69d68 = InputPrivacyKey; inputPrivacyKeyAbout#3823cc40 = InputPrivacyKey; +inputPrivacyKeyBirthday#d65a11cc = InputPrivacyKey; privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey; privacyKeyChatInvite#500e6dfa = PrivacyKey; privacyKeyPhoneCall#3d662b7b = PrivacyKey; @@ -439,6 +450,7 @@ privacyKeyPhoneNumber#d19ae46d = PrivacyKey; privacyKeyAddedByPhone#42ffd42b = PrivacyKey; privacyKeyVoiceMessages#697f414 = PrivacyKey; privacyKeyAbout#a486b761 = PrivacyKey; +privacyKeyBirthday#2000a518 = PrivacyKey; inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule; inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule; inputPrivacyValueAllowUsers#131cc67f users:Vector = InputPrivacyRule; @@ -448,6 +460,7 @@ inputPrivacyValueDisallowUsers#90110467 users:Vector = InputPrivacyRu inputPrivacyValueAllowChatParticipants#840649cf chats:Vector = InputPrivacyRule; inputPrivacyValueDisallowChatParticipants#e94f0f86 chats:Vector = InputPrivacyRule; inputPrivacyValueAllowCloseFriends#2f453e49 = InputPrivacyRule; +inputPrivacyValueAllowPremium#77cdc9f1 = InputPrivacyRule; privacyValueAllowContacts#fffe1bac = PrivacyRule; privacyValueAllowAll#65427b82 = PrivacyRule; privacyValueAllowUsers#b8905fb2 users:Vector = PrivacyRule; @@ -457,6 +470,7 @@ privacyValueDisallowUsers#e4621141 users:Vector = PrivacyRule; privacyValueAllowChatParticipants#6b134e8e chats:Vector = PrivacyRule; privacyValueDisallowChatParticipants#41c87565 chats:Vector = PrivacyRule; privacyValueAllowCloseFriends#f7e8d89b = PrivacyRule; +privacyValueAllowPremium#ece9814b = PrivacyRule; account.privacyRules#50a04e45 rules:Vector chats:Vector users:Vector = account.PrivacyRules; accountDaysTTL#b8d0afdf days:int = AccountDaysTTL; documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute; @@ -500,7 +514,7 @@ inputStickerSetEmojiGenericAnimations#4c4d4ce = InputStickerSet; inputStickerSetEmojiDefaultStatuses#29d0f5ee = InputStickerSet; inputStickerSetEmojiDefaultTopicIcons#44c1f8e9 = InputStickerSet; inputStickerSetEmojiChannelDefaultStatuses#49748553 = InputStickerSet; -stickerSet#2dd14edc flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true videos:flags.6?true emojis:flags.7?true text_color:flags.9?true channel_emoji_status:flags.10?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector thumb_dc_id:flags.4?int thumb_version:flags.4?int thumb_document_id:flags.8?long count:int hash:int = StickerSet; +stickerSet#2dd14edc flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true emojis:flags.7?true text_color:flags.9?true channel_emoji_status:flags.10?true creator:flags.11?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector thumb_dc_id:flags.4?int thumb_version:flags.4?int thumb_document_id:flags.8?long count:int hash:int = StickerSet; messages.stickerSet#6e153f16 set:StickerSet packs:Vector keywords:Vector documents:Vector = messages.StickerSet; messages.stickerSetNotModified#d3f924eb = messages.StickerSet; botCommand#c27ac8c7 command:string description:string = BotCommand; @@ -521,6 +535,7 @@ keyboardButtonUserProfile#308660c1 text:string user_id:long = KeyboardButton; keyboardButtonWebView#13767230 text:string url:string = KeyboardButton; keyboardButtonSimpleWebView#a0c0505c text:string url:string = KeyboardButton; keyboardButtonRequestPeer#53d7bfd8 text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButton; +inputKeyboardButtonRequestPeer#c9662d05 flags:# name_requested:flags.0?true username_requested:flags.1?true photo_requested:flags.2?true text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButton; keyboardButtonRow#77608b83 buttons:Vector = KeyboardButtonRow; replyKeyboardHide#a03e5b85 flags:# selective:flags.2?true = ReplyMarkup; replyKeyboardForceReply#86b40b08 flags:# single_use:flags.1?true selective:flags.2?true placeholder:flags.3?string = ReplyMarkup; @@ -736,7 +751,7 @@ phoneCallEmpty#5366c915 id:long = PhoneCall; phoneCallWaiting#c5226f17 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall; phoneCallRequested#14b0ed0c flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall; phoneCallAccepted#3660c311 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_b:bytes protocol:PhoneCallProtocol = PhoneCall; -phoneCall#967f7c67 flags:# p2p_allowed:flags.5?true video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connections:Vector start_date:int = PhoneCall; +phoneCall#30535af5 flags:# p2p_allowed:flags.5?true video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connections:Vector start_date:int custom_parameters:flags.7?DataJSON = PhoneCall; phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true video:flags.6?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall; phoneConnection#9cc123c7 flags:# tcp:flags.0?true id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection; phoneConnectionWebrtc#635fe375 flags:# turn:flags.0?true stun:flags.1?true id:long ip:string ipv6:string port:int username:string password:string = PhoneConnection; @@ -955,9 +970,9 @@ webPageAttributeStory#2e94c3e7 flags:# peer:Peer id:int story:flags.0?StoryItem messages.votesList#4899484e flags:# count:int votes:Vector chats:Vector users:Vector next_offset:flags.0?string = messages.VotesList; bankCardOpenUrl#f568028a url:string name:string = BankCardOpenUrl; payments.bankCardData#3e24e573 title:string open_urls:Vector = payments.BankCardData; -dialogFilter#7438f7e8 flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true id:int title:string emoticon:flags.25?string pinned_peers:Vector include_peers:Vector exclude_peers:Vector = DialogFilter; +dialogFilter#5fb5523b flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true id:int title:string emoticon:flags.25?string color:flags.27?int pinned_peers:Vector include_peers:Vector exclude_peers:Vector = DialogFilter; dialogFilterDefault#363293ae = DialogFilter; -dialogFilterChatlist#d64a04a8 flags:# has_my_invites:flags.26?true id:int title:string emoticon:flags.25?string pinned_peers:Vector include_peers:Vector = DialogFilter; +dialogFilterChatlist#9fe28ea4 flags:# has_my_invites:flags.26?true id:int title:string emoticon:flags.25?string color:flags.27?int pinned_peers:Vector include_peers:Vector = DialogFilter; dialogFilterSuggested#77744d4a filter:DialogFilter description:string = DialogFilterSuggested; statsDateRangeDays#b637edaf min_date:int max_date:int = StatsDateRangeDays; statsAbsValueAndPrev#cb43acde current:double previous:double = StatsAbsValueAndPrev; @@ -1026,7 +1041,7 @@ botCommandScopePeerUser#a1321f3 peer:InputPeer user_id:InputUser = BotCommandSco account.resetPasswordFailedWait#e3779861 retry_date:int = account.ResetPasswordResult; account.resetPasswordRequestedWait#e9effc7d until_date:int = account.ResetPasswordResult; account.resetPasswordOk#e926d63e = account.ResetPasswordResult; -sponsoredMessage#ed5383f7 flags:# recommended:flags.5?true show_peer_photo:flags.6?true random_id:bytes from_id:flags.3?Peer chat_invite:flags.4?ChatInvite chat_invite_hash:flags.4?string channel_post:flags.2?int start_param:flags.0?string webpage:flags.9?SponsoredWebPage app:flags.10?BotApp message:string entities:flags.1?Vector button_text:flags.11?string sponsor_info:flags.7?string additional_info:flags.8?string = SponsoredMessage; +sponsoredMessage#ed5383f7 flags:# recommended:flags.5?true show_peer_photo:flags.6?true can_report:flags.12?true random_id:bytes from_id:flags.3?Peer chat_invite:flags.4?ChatInvite chat_invite_hash:flags.4?string channel_post:flags.2?int start_param:flags.0?string webpage:flags.9?SponsoredWebPage app:flags.10?BotApp message:string entities:flags.1?Vector button_text:flags.11?string sponsor_info:flags.7?string additional_info:flags.8?string = SponsoredMessage; messages.sponsoredMessages#c9ee1d87 flags:# posts_between:flags.0?int messages:Vector chats:Vector users:Vector = messages.SponsoredMessages; messages.sponsoredMessagesEmpty#1839490f = messages.SponsoredMessages; searchResultsCalendarPeriod#c9b0539f date:int min_msg_id:int max_msg_id:int count:int = SearchResultsCalendarPeriod; @@ -1212,6 +1227,63 @@ savedReactionTag#cb6ff828 flags:# reaction:Reaction title:flags.0?string count:i messages.savedReactionTagsNotModified#889b59ef = messages.SavedReactionTags; messages.savedReactionTags#3259950a tags:Vector hash:long = messages.SavedReactionTags; outboxReadDate#3bb842ac date:int = OutboxReadDate; +smsjobs.eligibleToJoin#dc8b44cf terms_url:string monthly_sent_sms:int = smsjobs.EligibilityToJoin; +smsjobs.status#2aee9191 flags:# allow_international:flags.0?true recent_sent:int recent_since:int recent_remains:int total_sent:int total_since:int last_gift_slug:flags.1?string terms_url:string = smsjobs.Status; +smsJob#e6a1eeb8 job_id:string phone_number:string text:string = SmsJob; +businessWeeklyOpen#120b1ab9 start_minute:int end_minute:int = BusinessWeeklyOpen; +businessWorkHours#8c92b098 flags:# open_now:flags.0?true timezone_id:string weekly_open:Vector = BusinessWorkHours; +businessLocation#ac5c1af7 flags:# geo_point:flags.0?GeoPoint address:string = BusinessLocation; +inputBusinessRecipients#6f8b32aa flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector = InputBusinessRecipients; +businessRecipients#21108ff7 flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector = BusinessRecipients; +businessAwayMessageScheduleAlways#c9b9e2b9 = BusinessAwayMessageSchedule; +businessAwayMessageScheduleOutsideWorkHours#c3f2f501 = BusinessAwayMessageSchedule; +businessAwayMessageScheduleCustom#cc4d9ecc start_date:int end_date:int = BusinessAwayMessageSchedule; +inputBusinessGreetingMessage#194cb3b shortcut_id:int recipients:InputBusinessRecipients no_activity_days:int = InputBusinessGreetingMessage; +businessGreetingMessage#e519abab shortcut_id:int recipients:BusinessRecipients no_activity_days:int = BusinessGreetingMessage; +inputBusinessAwayMessage#832175e0 flags:# offline_only:flags.0?true shortcut_id:int schedule:BusinessAwayMessageSchedule recipients:InputBusinessRecipients = InputBusinessAwayMessage; +businessAwayMessage#ef156a5c flags:# offline_only:flags.0?true shortcut_id:int schedule:BusinessAwayMessageSchedule recipients:BusinessRecipients = BusinessAwayMessage; +timezone#ff9289f5 id:string name:string utc_offset:int = Timezone; +help.timezonesListNotModified#970708cc = help.TimezonesList; +help.timezonesList#7b74ed71 timezones:Vector hash:int = help.TimezonesList; +quickReply#697102b shortcut_id:int shortcut:string top_message:int count:int = QuickReply; +inputQuickReplyShortcut#24596d41 shortcut:string = InputQuickReplyShortcut; +inputQuickReplyShortcutId#1190cf1 shortcut_id:int = InputQuickReplyShortcut; +messages.quickReplies#c68d6695 quick_replies:Vector messages:Vector chats:Vector users:Vector = messages.QuickReplies; +messages.quickRepliesNotModified#5f91eb5b = messages.QuickReplies; +connectedBot#bd068601 flags:# can_reply:flags.0?true bot_id:long recipients:BusinessBotRecipients = ConnectedBot; +account.connectedBots#17d7f87b connected_bots:Vector users:Vector = account.ConnectedBots; +messages.dialogFilters#2ad93719 flags:# tags_enabled:flags.0?true filters:Vector = messages.DialogFilters; +birthday#6c8e1e06 flags:# day:int month:int year:flags.0?int = Birthday; +botBusinessConnection#896433b4 flags:# can_reply:flags.0?true disabled:flags.1?true connection_id:string user_id:long dc_id:int date:int = BotBusinessConnection; +inputBusinessIntro#9c469cd flags:# title:string description:string sticker:flags.0?InputDocument = InputBusinessIntro; +businessIntro#5a0a066d flags:# title:string description:string sticker:flags.0?Document = BusinessIntro; +messages.myStickers#faff629d count:int sets:Vector = messages.MyStickers; +inputCollectibleUsername#e39460a9 username:string = InputCollectible; +inputCollectiblePhone#a2e214a4 phone:string = InputCollectible; +fragment.collectibleInfo#6ebdff91 purchase_date:int currency:string amount:long crypto_currency:string crypto_amount:long url:string = fragment.CollectibleInfo; +inputBusinessBotRecipients#c4e5921e flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector exclude_users:flags.6?Vector = InputBusinessBotRecipients; +businessBotRecipients#b88cf373 flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector exclude_users:flags.6?Vector = BusinessBotRecipients; +contactBirthday#1d998733 contact_id:long birthday:Birthday = ContactBirthday; +contacts.contactBirthdays#114ff30d contacts:Vector users:Vector = contacts.ContactBirthdays; +missingInvitee#628c9224 flags:# premium_would_allow_invite:flags.0?true premium_required_for_pm:flags.1?true user_id:long = MissingInvitee; +messages.invitedUsers#7f5defa6 updates:Updates missing_invitees:Vector = messages.InvitedUsers; +inputBusinessChatLink#11679fa7 flags:# message:string entities:flags.0?Vector title:flags.1?string = InputBusinessChatLink; +businessChatLink#b4ae666f flags:# link:string message:string entities:flags.0?Vector title:flags.1?string views:int = BusinessChatLink; +account.businessChatLinks#ec43a2d1 links:Vector chats:Vector users:Vector = account.BusinessChatLinks; +account.resolvedBusinessChatLinks#9a23af21 flags:# peer:Peer message:string entities:flags.0?Vector chats:Vector users:Vector = account.ResolvedBusinessChatLinks; +requestedPeerUser#d62ff46a flags:# user_id:long first_name:flags.0?string last_name:flags.0?string username:flags.1?string photo:flags.2?Photo = RequestedPeer; +requestedPeerChat#7307544f flags:# chat_id:long title:flags.0?string photo:flags.2?Photo = RequestedPeer; +requestedPeerChannel#8ba403e4 flags:# channel_id:long title:flags.0?string username:flags.1?string photo:flags.2?Photo = RequestedPeer; +sponsoredMessageReportOption#430d3150 text:string option:bytes = SponsoredMessageReportOption; +channels.sponsoredMessageReportResultChooseOption#846f9e42 title:string options:Vector = channels.SponsoredMessageReportResult; +channels.sponsoredMessageReportResultAdsHidden#3e3bcf2f = channels.SponsoredMessageReportResult; +channels.sponsoredMessageReportResultReported#ad798849 = channels.SponsoredMessageReportResult; +stats.broadcastRevenueStats#d07b4bad top_hours_graph:StatsGraph revenue_graph:StatsGraph current_balance:long available_balance:long overall_revenue:long usd_rate:double = stats.BroadcastRevenueStats; +stats.broadcastRevenueWithdrawalUrl#ec659737 url:string = stats.BroadcastRevenueWithdrawalUrl; +broadcastRevenueTransactionProceeds#557e2cc4 amount:long from_date:int to_date:int = BroadcastRevenueTransaction; +broadcastRevenueTransactionWithdrawal#5a590978 flags:# pending:flags.0?true failed:flags.2?true amount:long date:int provider:string transaction_date:flags.1?int transaction_url:flags.1?string = BroadcastRevenueTransaction; +broadcastRevenueTransactionRefund#42d30d2e amount:long date:int provider:string = BroadcastRevenueTransaction; +stats.broadcastRevenueTransactions#87158466 count:int transactions:Vector = stats.BroadcastRevenueTransactions; ---functions--- invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X; invokeAfterMsgs#3dc4b4f0 {X:Type} msg_ids:Vector query:!X = X; @@ -1220,6 +1292,7 @@ invokeWithLayer#da9b0d0d {X:Type} layer:int query:!X = X; invokeWithoutUpdates#bf9459b7 {X:Type} query:!X = X; invokeWithMessagesRange#365275f2 {X:Type} range:MessageRange query:!X = X; invokeWithTakeout#aca9fd2e {X:Type} takeout_id:long query:!X = X; +invokeWithBusinessConnection#dd289f8e {X:Type} connection_id:string query:!X = X; auth.sendCode#a677244f phone_number:string api_id:int api_hash:string settings:CodeSettings = auth.SentCode; auth.signUp#aac7b717 flags:# no_joined_notifications:flags.0?true phone_number:string phone_code_hash:string first_name:string last_name:string = auth.Authorization; auth.signIn#8d52a951 flags:# phone_number:string phone_code_hash:string phone_code:flags.0?string email_verification:flags.1?EmailVerification = auth.Authorization; @@ -1334,6 +1407,23 @@ account.updateColor#7cefa15d flags:# for_profile:flags.1?true color:flags.2?int account.getDefaultBackgroundEmojis#a60ab9ce hash:long = EmojiList; account.getChannelDefaultEmojiStatuses#7727a7d5 hash:long = account.EmojiStatuses; account.getChannelRestrictedStatusEmojis#35a9e0d5 hash:long = EmojiList; +account.updateBusinessWorkHours#4b00e066 flags:# business_work_hours:flags.0?BusinessWorkHours = Bool; +account.updateBusinessLocation#9e6b131a flags:# geo_point:flags.1?InputGeoPoint address:flags.0?string = Bool; +account.updateBusinessGreetingMessage#66cdafc4 flags:# message:flags.0?InputBusinessGreetingMessage = Bool; +account.updateBusinessAwayMessage#a26a7fa5 flags:# message:flags.0?InputBusinessAwayMessage = Bool; +account.updateConnectedBot#43d8521d flags:# can_reply:flags.0?true deleted:flags.1?true bot:InputUser recipients:InputBusinessBotRecipients = Updates; +account.getConnectedBots#4ea4c80f = account.ConnectedBots; +account.getBotBusinessConnection#76a86270 connection_id:string = Updates; +account.updateBusinessIntro#a614d034 flags:# intro:flags.0?InputBusinessIntro = Bool; +account.toggleConnectedBotPaused#646e1097 peer:InputPeer paused:Bool = Bool; +account.disablePeerConnectedBot#5e437ed9 peer:InputPeer = Bool; +account.updateBirthday#cc6e0c11 flags:# birthday:flags.0?Birthday = Bool; +account.createBusinessChatLink#8851e68e link:InputBusinessChatLink = BusinessChatLink; +account.editBusinessChatLink#8c3410af slug:string link:InputBusinessChatLink = BusinessChatLink; +account.deleteBusinessChatLink#60073674 slug:string = Bool; +account.getBusinessChatLinks#6f70dde1 = account.BusinessChatLinks; +account.resolveBusinessChatLink#5492e5ee slug:string = account.ResolvedBusinessChatLinks; +account.updatePersonalChannel#d94305e0 channel:InputChannel = Bool; users.getUsers#d91a548 id:Vector = Vector; users.getFullUser#b60f5918 id:InputUser = users.UserFull; users.setSecureValueErrors#90c894b5 id:InputUser errors:Vector = Bool; @@ -1363,6 +1453,7 @@ contacts.exportContactToken#f8654027 = ExportedContactToken; contacts.importContactToken#13005788 token:string = User; contacts.editCloseFriends#ba6705f0 id:Vector = Bool; contacts.setBlocked#94c65c76 flags:# my_stories_from:flags.0?true id:Vector limit:int = Bool; +contacts.getBirthdays#daeda864 = contacts.ContactBirthdays; messages.getMessages#63c66506 id:Vector = messages.Messages; messages.getDialogs#a0f4cb4f flags:# exclude_pinned:flags.0?true folder_id:flags.1?int offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:long = messages.Dialogs; messages.getHistory#4423e6c5 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:long = messages.Messages; @@ -1372,9 +1463,9 @@ messages.deleteHistory#b08f922a flags:# just_clear:flags.0?true revoke:flags.1?t messages.deleteMessages#e58e95d2 flags:# revoke:flags.0?true id:Vector = messages.AffectedMessages; messages.receivedMessages#5a954c0 max_id:int = Vector; messages.setTyping#58943ee2 flags:# peer:InputPeer top_msg_id:flags.0?int action:SendMessageAction = Bool; -messages.sendMessage#280d096f flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; -messages.sendMedia#72ccc23d flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; -messages.forwardMessages#c661bbc4 flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true drop_author:flags.11?true drop_media_captions:flags.12?true noforwards:flags.14?true from_peer:InputPeer id:Vector random_id:Vector to_peer:InputPeer top_msg_id:flags.9?int schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; +messages.sendMessage#dff8042c flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates; +messages.sendMedia#7bd66041 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates; +messages.forwardMessages#d5039208 flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true drop_author:flags.11?true drop_media_captions:flags.12?true noforwards:flags.14?true from_peer:InputPeer id:Vector random_id:Vector to_peer:InputPeer top_msg_id:flags.9?int schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates; messages.reportSpam#cf1592db peer:InputPeer = Bool; messages.getPeerSettings#efd9a6a2 peer:InputPeer = messages.PeerSettings; messages.report#8953ab4e peer:InputPeer id:Vector reason:ReportReason message:string = Bool; @@ -1382,9 +1473,9 @@ messages.getChats#49e9528f id:Vector = messages.Chats; messages.getFullChat#aeb00b34 chat_id:long = messages.ChatFull; messages.editChatTitle#73783ffd chat_id:long title:string = Updates; messages.editChatPhoto#35ddd674 chat_id:long photo:InputChatPhoto = Updates; -messages.addChatUser#f24753e3 chat_id:long user_id:InputUser fwd_limit:int = Updates; +messages.addChatUser#cbc6d107 chat_id:long user_id:InputUser fwd_limit:int = messages.InvitedUsers; messages.deleteChatUser#a2185cab flags:# revoke_history:flags.0?true chat_id:long user_id:InputUser = Updates; -messages.createChat#34a818 flags:# users:Vector title:string ttl_period:flags.0?int = Updates; +messages.createChat#92ceddd4 flags:# users:Vector title:string ttl_period:flags.0?int = messages.InvitedUsers; messages.getDhConfig#26cf8950 version:int random_length:int = messages.DhConfig; messages.requestEncryption#f64daf43 user_id:InputUser random_id:int g_a:bytes = EncryptedChat; messages.acceptEncryption#3dbc0415 peer:InputEncryptedChat g_b:bytes key_fingerprint:long = EncryptedChat; @@ -1417,9 +1508,9 @@ messages.getSavedGifs#5cf09635 hash:long = messages.SavedGifs; messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool; messages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_point:flags.0?InputGeoPoint query:string offset:string = messages.BotResults; messages.setInlineBotResults#bb12a419 flags:# gallery:flags.0?true private:flags.1?true query_id:long results:Vector cache_time:int next_offset:flags.2?string switch_pm:flags.3?InlineBotSwitchPM switch_webview:flags.4?InlineBotWebView = Bool; -messages.sendInlineBotResult#f7bc68ba flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to:flags.0?InputReplyTo random_id:long query_id:long id:string schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; +messages.sendInlineBotResult#3ebee86a flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to:flags.0?InputReplyTo random_id:long query_id:long id:string schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates; messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData; -messages.editMessage#48f71778 flags:# no_webpage:flags.1?true invert_media:flags.16?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.15?int = Updates; +messages.editMessage#dfd14005 flags:# no_webpage:flags.1?true invert_media:flags.16?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.15?int quick_reply_shortcut_id:flags.17?int = Updates; messages.editInlineBotMessage#83557dba flags:# no_webpage:flags.1?true invert_media:flags.16?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector = Bool; messages.getBotCallbackAnswer#9342ca07 flags:# game:flags.1?true peer:InputPeer msg_id:int data:flags.0?bytes password:flags.2?InputCheckPasswordSRP = messages.BotCallbackAnswer; messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool; @@ -1445,14 +1536,14 @@ messages.reorderPinnedDialogs#3b1adf37 flags:# force:flags.0?true folder_id:int messages.getPinnedDialogs#d6b94df2 folder_id:int = messages.PeerDialogs; messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector = Bool; messages.setBotPrecheckoutResults#9c2dd95 flags:# success:flags.1?true query_id:long error:flags.0?string = Bool; -messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia; +messages.uploadMedia#14967978 flags:# business_connection_id:flags.0?string peer:InputPeer media:InputMedia = MessageMedia; messages.sendScreenshotNotification#a1405817 peer:InputPeer reply_to:InputReplyTo random_id:long = Updates; messages.getFavedStickers#4f1aaa9 hash:long = messages.FavedStickers; messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool; messages.getUnreadMentions#f107e790 flags:# peer:InputPeer top_msg_id:flags.0?int offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; messages.readMentions#36e5bf4d flags:# peer:InputPeer top_msg_id:flags.0?int = messages.AffectedHistory; messages.getRecentLocations#702a40e0 peer:InputPeer limit:int hash:long = messages.Messages; -messages.sendMultiMedia#456e8987 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo multi_media:Vector schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; +messages.sendMultiMedia#c964709 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo multi_media:Vector schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates; messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile; messages.searchStickerSets#35705b8a flags:# exclude_featured:flags.0?true q:string hash:long = messages.FoundStickerSets; messages.getSplitRanges#1cff7e08 = Vector; @@ -1479,7 +1570,7 @@ messages.sendScheduledMessages#bd38850a peer:InputPeer id:Vector = Updates; messages.deleteScheduledMessages#59ae2b16 peer:InputPeer id:Vector = Updates; messages.getPollVotes#b86e380e flags:# peer:InputPeer id:int option:flags.0?bytes offset:flags.1?string limit:int = messages.VotesList; messages.toggleStickerSets#b5052fea flags:# uninstall:flags.0?true archive:flags.1?true unarchive:flags.2?true stickersets:Vector = Bool; -messages.getDialogFilters#f19ed96d = Vector; +messages.getDialogFilters#efd48c89 = messages.DialogFilters; messages.getSuggestedDialogFilters#a29cd42c = Vector; messages.updateDialogFilter#1ad4a04a flags:# id:int filter:flags.0?DialogFilter = Bool; messages.updateDialogFiltersOrder#c563c1e4 order:Vector = Bool; @@ -1561,6 +1652,16 @@ messages.getSavedReactionTags#3637e05b flags:# peer:flags.0?InputPeer hash:long messages.updateSavedReactionTag#60297dec flags:# reaction:Reaction title:flags.0?string = Bool; messages.getDefaultTagReactions#bdf93428 hash:long = messages.Reactions; messages.getOutboxReadDate#8c4bfe5d peer:InputPeer msg_id:int = OutboxReadDate; +messages.getQuickReplies#d483f2a8 hash:long = messages.QuickReplies; +messages.reorderQuickReplies#60331907 order:Vector = Bool; +messages.checkQuickReplyShortcut#f1d0fbd3 shortcut:string = Bool; +messages.editQuickReplyShortcut#5c003cef shortcut_id:int shortcut:string = Bool; +messages.deleteQuickReplyShortcut#3cc04740 shortcut_id:int = Bool; +messages.getQuickReplyMessages#94a495c3 flags:# shortcut_id:int id:flags.0?Vector hash:long = messages.Messages; +messages.sendQuickReplyMessages#6c750de1 peer:InputPeer shortcut_id:int id:Vector random_id:Vector = Updates; +messages.deleteQuickReplyMessages#e105e910 shortcut_id:int id:Vector = Updates; +messages.toggleDialogFilterTags#fd2dda49 enabled:Bool = Bool; +messages.getMyStickers#d0b5e1fc offset_id:long limit:int = messages.MyStickers; updates.getState#edd4882a = updates.State; updates.getDifference#19c2f763 flags:# pts:int pts_limit:flags.1?int pts_total_limit:flags.0?int date:int qts:int qts_limit:flags.2?int = updates.Difference; updates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; @@ -1601,6 +1702,7 @@ help.getCountriesList#735787a8 lang_code:string hash:int = help.CountriesList; help.getPremiumPromo#b81b93d4 = help.PremiumPromo; help.getPeerColors#da80f42f hash:int = help.PeerColors; help.getPeerProfileColors#abcfa9fd hash:int = help.PeerColors; +help.getTimezonesList#49b30240 hash:int = help.TimezonesList; channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool; channels.deleteMessages#84c1fd4e channel:InputChannel id:Vector = messages.AffectedMessages; channels.reportSpam#f44a8315 channel:InputChannel participant:InputPeer id:Vector = Bool; @@ -1617,11 +1719,11 @@ channels.checkUsername#10e6bd2c channel:InputChannel username:string = Bool; channels.updateUsername#3514b3de channel:InputChannel username:string = Bool; channels.joinChannel#24b524c5 channel:InputChannel = Updates; channels.leaveChannel#f836aa95 channel:InputChannel = Updates; -channels.inviteToChannel#199f3a6c channel:InputChannel users:Vector = Updates; +channels.inviteToChannel#c9e33d54 channel:InputChannel users:Vector = messages.InvitedUsers; channels.deleteChannel#c0111fe3 channel:InputChannel = Updates; channels.exportMessageLink#e63fadeb flags:# grouped:flags.0?true thread:flags.1?true channel:InputChannel id:int = ExportedMessageLink; channels.toggleSignatures#1f69b606 channel:InputChannel enabled:Bool = Updates; -channels.getAdminedPublicChannels#f8b036af flags:# by_location:flags.0?true check_limit:flags.1?true = messages.Chats; +channels.getAdminedPublicChannels#f8b036af flags:# by_location:flags.0?true check_limit:flags.1?true for_personal:flags.2?true = messages.Chats; channels.editBanned#96e6cd81 channel:InputChannel participant:InputPeer banned_rights:ChatBannedRights = Updates; channels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector max_id:long min_id:long limit:int = channels.AdminLogResults; channels.setStickers#ea8ca4f9 channel:InputChannel stickerset:InputStickerSet = Bool; @@ -1663,6 +1765,8 @@ channels.getChannelRecommendations#83b70d97 channel:InputChannel = messages.Chat channels.updateEmojiStatus#f0d3e6a8 channel:InputChannel emoji_status:EmojiStatus = Updates; channels.setBoostsToUnblockRestrictions#ad399cee channel:InputChannel boosts:int = Updates; channels.setEmojiStickers#3cd930b7 channel:InputChannel stickerset:InputStickerSet = Bool; +channels.reportSponsoredMessage#af8ff6b9 channel:InputChannel random_id:bytes option:bytes = channels.SponsoredMessageReportResult; +channels.restrictSponsoredMessages#9ae91519 channel:InputChannel restricted:Bool = Updates; bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON; bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool; bots.setBotCommands#517165a scope:BotCommandScope lang_code:string commands:Vector = Bool; @@ -1695,7 +1799,7 @@ payments.checkGiftCode#8e51b4c1 slug:string = payments.CheckedGiftCode; payments.applyGiftCode#f6e26854 slug:string = Updates; payments.getGiveawayInfo#f4239425 peer:InputPeer msg_id:int = payments.GiveawayInfo; payments.launchPrepaidGiveaway#5ff58f20 peer:InputPeer giveaway_id:long purpose:InputStorePaymentPurpose = Updates; -stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true animated:flags.1?true videos:flags.4?true emojis:flags.5?true text_color:flags.6?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector software:flags.3?string = messages.StickerSet; +stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true emojis:flags.5?true text_color:flags.6?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector software:flags.3?string = messages.StickerSet; stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet; stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet; stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet; @@ -1705,6 +1809,7 @@ stickers.suggestShortName#4dafc503 title:string = stickers.SuggestedShortName; stickers.changeSticker#f5537ebc flags:# sticker:InputDocument emoji:flags.0?string mask_coords:flags.1?MaskCoords keywords:flags.2?string = messages.StickerSet; stickers.renameStickerSet#124b1c00 stickerset:InputStickerSet title:string = messages.StickerSet; stickers.deleteStickerSet#87704394 stickerset:InputStickerSet = Bool; +stickers.replaceSticker#4696459a sticker:InputDocument new_sticker:InputStickerSetItem = messages.StickerSet; phone.getCallConfig#55451fa9 = DataJSON; phone.requestCall#42ff96ed flags:# video:flags.0?true user_id:InputUser random_id:int g_a_hash:bytes protocol:PhoneCallProtocol = phone.PhoneCall; phone.acceptCall#3bd2b4a0 peer:InputPhoneCall g_b:bytes protocol:PhoneCallProtocol = phone.PhoneCall; @@ -1749,6 +1854,9 @@ stats.getMessagePublicForwards#5f150144 channel:InputChannel msg_id:int offset:s stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats; stats.getStoryStats#374fef40 flags:# dark:flags.0?true peer:InputPeer id:int = stats.StoryStats; stats.getStoryPublicForwards#a6437ef6 peer:InputPeer id:int offset:string limit:int = stats.PublicForwards; +stats.getBroadcastRevenueStats#75dfb671 flags:# dark:flags.0?true channel:InputChannel = stats.BroadcastRevenueStats; +stats.getBroadcastRevenueWithdrawalUrl#2a65ef73 channel:InputChannel password:InputCheckPasswordSRP = stats.BroadcastRevenueWithdrawalUrl; +stats.getBroadcastRevenueTransactions#69280f channel:InputChannel offset:int limit:int = stats.BroadcastRevenueTransactions; chatlists.exportChatlistInvite#8472478e chatlist:InputChatlist title:string peers:Vector = chatlists.ExportedChatlistInvite; chatlists.deleteExportedInvite#719c5c5e chatlist:InputChatlist slug:string = Bool; chatlists.editExportedInvite#653db63d flags:# chatlist:InputChatlist slug:string title:flags.1?string peers:flags.2?Vector = ExportedChatlistInvite; @@ -1789,4 +1897,12 @@ premium.getMyBoosts#be77b4a = premium.MyBoosts; premium.applyBoost#6b7da746 flags:# slots:flags.0?Vector peer:InputPeer = premium.MyBoosts; premium.getBoostsStatus#42f1f61 peer:InputPeer = premium.BoostsStatus; premium.getUserBoosts#39854d1f peer:InputPeer user_id:InputUser = premium.BoostsList; +smsjobs.isEligibleToJoin#edc39d0 = smsjobs.EligibilityToJoin; +smsjobs.join#a74ece2d = Bool; +smsjobs.leave#9898ad73 = Bool; +smsjobs.updateSettings#93fa0bf flags:# allow_international:flags.0?true = Bool; +smsjobs.getStatus#10a698e8 = smsjobs.Status; +smsjobs.getSmsJob#778d902f job_id:string = SmsJob; +smsjobs.finishJob#4f1ebf24 flags:# job_id:string error:flags.0?string = Bool; +fragment.getCollectibleInfo#be1e85ba collectible:InputCollectible = fragment.CollectibleInfo; `; diff --git a/gramjs/tl/custom/file.ts b/gramjs/tl/custom/file.ts index d8790fb3..d36f2853 100644 --- a/gramjs/tl/custom/file.ts +++ b/gramjs/tl/custom/file.ts @@ -69,7 +69,9 @@ export class File { get size() { if (this.media instanceof Api.Photo) { - return _photoSizeByteCount(this.media.sizes[this.media.sizes.length -1]); + return _photoSizeByteCount( + this.media.sizes[this.media.sizes.length - 1] + ); } else if (this.media instanceof Api.Document) { return this.media.size; } diff --git a/gramjs/tl/custom/message.ts b/gramjs/tl/custom/message.ts index d2deb04e..664fa6d8 100644 --- a/gramjs/tl/custom/message.ts +++ b/gramjs/tl/custom/message.ts @@ -618,7 +618,8 @@ export class CustomMessage extends SenderGetter { ); if (this._client._errorHandler) { await this._client._errorHandler(e as Error); - } if (this._client._log.canSend(LogLevel.ERROR)) { + } + if (this._client._log.canSend(LogLevel.ERROR)) { console.error(e); } } diff --git a/gramjs/tl/static/api.tl b/gramjs/tl/static/api.tl index 1f17c1a7..6c0a8f7c 100644 --- a/gramjs/tl/static/api.tl +++ b/gramjs/tl/static/api.tl @@ -82,7 +82,7 @@ storage.fileMp4#b3cea0e4 = storage.FileType; storage.fileWebp#1081464c = storage.FileType; userEmpty#d3bc4b7a id:long = User; -user#215c4438 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true fake:flags.26?true bot_attach_menu:flags.27?true premium:flags.28?true attach_menu_enabled:flags.29?true flags2:# bot_can_edit:flags2.1?true close_friend:flags2.2?true stories_hidden:flags2.3?true stories_unavailable:flags2.4?true contact_require_premium:flags2.10?true id:long access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector bot_inline_placeholder:flags.19?string lang_code:flags.22?string emoji_status:flags.30?EmojiStatus usernames:flags2.0?Vector stories_max_id:flags2.5?int color:flags2.8?PeerColor profile_color:flags2.9?PeerColor = User; +user#215c4438 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true fake:flags.26?true bot_attach_menu:flags.27?true premium:flags.28?true attach_menu_enabled:flags.29?true flags2:# bot_can_edit:flags2.1?true close_friend:flags2.2?true stories_hidden:flags2.3?true stories_unavailable:flags2.4?true contact_require_premium:flags2.10?true bot_business:flags2.11?true id:long access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector bot_inline_placeholder:flags.19?string lang_code:flags.22?string emoji_status:flags.30?EmojiStatus usernames:flags2.0?Vector stories_max_id:flags2.5?int color:flags2.8?PeerColor profile_color:flags2.9?PeerColor = User; userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto; userProfilePhoto#82d1f706 flags:# has_video:flags.0?true personal:flags.2?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = UserProfilePhoto; @@ -101,7 +101,7 @@ channel#aadfc8f flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5 channelForbidden#17d493d5 flags:# broadcast:flags.5?true megagroup:flags.8?true id:long access_hash:long title:string until_date:flags.16?int = Chat; chatFull#c9d31138 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true translations_disabled:flags.19?true id:long about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall ttl_period:flags.14?int groupcall_default_join_as:flags.15?Peer theme_emoticon:flags.16?string requests_pending:flags.17?int recent_requesters:flags.17?Vector available_reactions:flags.18?ChatReactions = ChatFull; -channelFull#44c054a7 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true flags2:# can_delete_channel:flags2.0?true antispam:flags2.1?true participants_hidden:flags2.2?true translations_disabled:flags2.3?true stories_pinned_available:flags2.5?true view_forum_as_messages:flags2.6?true id:long about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?long migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector default_send_as:flags.29?Peer available_reactions:flags.30?ChatReactions stories:flags2.4?PeerStories wallpaper:flags2.7?WallPaper boosts_applied:flags2.8?int boosts_unrestrict:flags2.9?int emojiset:flags2.10?StickerSet = ChatFull; +channelFull#44c054a7 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true flags2:# can_delete_channel:flags2.0?true antispam:flags2.1?true participants_hidden:flags2.2?true translations_disabled:flags2.3?true stories_pinned_available:flags2.5?true view_forum_as_messages:flags2.6?true restricted_sponsored:flags2.11?true can_view_revenue:flags2.12?true id:long about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?long migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector default_send_as:flags.29?Peer available_reactions:flags.30?ChatReactions stories:flags2.4?PeerStories wallpaper:flags2.7?WallPaper boosts_applied:flags2.8?int boosts_unrestrict:flags2.9?int emojiset:flags2.10?StickerSet = ChatFull; chatParticipant#c02d4007 user_id:long inviter_id:long date:int = ChatParticipant; chatParticipantCreator#e46bcee4 user_id:long = ChatParticipant; @@ -114,7 +114,7 @@ chatPhotoEmpty#37c1011c = ChatPhoto; chatPhoto#1c6e1c11 flags:# has_video:flags.0?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = ChatPhoto; messageEmpty#90a6ca84 flags:# id:int peer_id:flags.0?Peer = Message; -message#1e4c8a69 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true noforwards:flags.26?true invert_media:flags.27?true id:int from_id:flags.8?Peer from_boosts_applied:flags.29?int peer_id:Peer saved_peer_id:flags.28?Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector ttl_period:flags.25?int = Message; +message#2357bf25 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true noforwards:flags.26?true invert_media:flags.27?true flags2:# offline:flags2.1?true id:int from_id:flags.8?Peer from_boosts_applied:flags.29?int peer_id:Peer saved_peer_id:flags.28?Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long via_business_bot_id:flags2.0?long reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector ttl_period:flags.25?int quick_reply_shortcut_id:flags.30?int = Message; messageService#2b085862 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction ttl_period:flags.25?int = Message; messageMediaEmpty#3ded6320 = MessageMedia; @@ -176,6 +176,7 @@ messageActionGiftCode#678c2e09 flags:# via_giveaway:flags.0?true unclaimed:flags messageActionGiveawayLaunch#332ba9ed = MessageAction; messageActionGiveawayResults#2a9fadc5 winners_count:int unclaimed_count:int = MessageAction; messageActionBoostApply#cc02aa6d boosts:int = MessageAction; +messageActionRequestedPeerSentMe#93b31848 button_id:int peers:Vector = MessageAction; dialog#d58a08c6 flags:# pinned:flags.2?true unread_mark:flags.3?true view_forum_as_messages:flags.6?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int ttl_period:flags.5?int = Dialog; dialogFolder#71bd134c flags:# pinned:flags.2?true folder:Folder peer:Peer top_message:int unread_muted_peers_count:int unread_unmuted_peers_count:int unread_muted_messages_count:int unread_unmuted_messages_count:int = Dialog; @@ -211,7 +212,7 @@ inputPeerNotifySettings#cacb6ae2 flags:# show_previews:flags.0?Bool silent:flags peerNotifySettings#99622c0c flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int ios_sound:flags.3?NotificationSound android_sound:flags.4?NotificationSound other_sound:flags.5?NotificationSound stories_muted:flags.6?Bool stories_hide_sender:flags.7?Bool stories_ios_sound:flags.8?NotificationSound stories_android_sound:flags.9?NotificationSound stories_other_sound:flags.10?NotificationSound = PeerNotifySettings; -peerSettings#a518110d flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true autoarchived:flags.7?true invite_members:flags.8?true request_chat_broadcast:flags.10?true geo_distance:flags.6?int request_chat_title:flags.9?string request_chat_date:flags.9?int = PeerSettings; +peerSettings#acd66c5e flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true autoarchived:flags.7?true invite_members:flags.8?true request_chat_broadcast:flags.10?true business_bot_paused:flags.11?true business_bot_can_reply:flags.12?true geo_distance:flags.6?int request_chat_title:flags.9?string request_chat_date:flags.9?int business_bot_id:flags.13?long business_bot_manage_url:flags.13?string = PeerSettings; wallPaper#a437c3ed id:long flags:# creator:flags.0?true default:flags.1?true pattern:flags.3?true dark:flags.4?true access_hash:long slug:string document:Document settings:flags.2?WallPaperSettings = WallPaper; wallPaperNoFile#e0804116 id:long flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper; @@ -227,7 +228,7 @@ inputReportReasonFake#f5ddd6e7 = ReportReason; inputReportReasonIllegalDrugs#a8eb2be = ReportReason; inputReportReasonPersonalDetails#9ec7863d = ReportReason; -userFull#b9b12c6c flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights premium_gifts:flags.19?Vector wallpaper:flags.24?WallPaper stories:flags.25?PeerStories = UserFull; +userFull#cc997720 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights premium_gifts:flags.19?Vector wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage business_intro:flags2.4?BusinessIntro birthday:flags2.5?Birthday personal_channel_id:flags2.6?long personal_channel_message:flags2.6?int = UserFull; contact#145ade0b user_id:long mutual:Bool = Contact; @@ -388,7 +389,6 @@ updateChannelPinnedTopic#192efbe3 flags:# pinned:flags.0?true channel_id:long to updateChannelPinnedTopics#fe198602 flags:# channel_id:long order:flags.0?Vector = Update; updateUser#20529438 user_id:long = Update; updateAutoSaveSettings#ec05b097 = Update; -updateGroupInvitePrivacyForbidden#ccf08ad6 user_id:long = Update; updateStory#75b3b798 peer:Peer story:StoryItem = Update; updateReadStories#f74e932b peer:Peer max_id:int = Update; updateStoryID#1bf335b9 id:int random_id:long = Update; @@ -402,6 +402,16 @@ updateBotMessageReactions#9cb7759 peer:Peer msg_id:int date:int reactions:Vector updateSavedDialogPinned#aeaf9e74 flags:# pinned:flags.0?true peer:DialogPeer = Update; updatePinnedSavedDialogs#686c85a6 flags:# order:flags.0?Vector = Update; updateSavedReactionTags#39c67432 = Update; +updateSmsJob#f16269d4 job_id:string = Update; +updateQuickReplies#f9470ab2 quick_replies:Vector = Update; +updateNewQuickReply#f53da717 quick_reply:QuickReply = Update; +updateDeleteQuickReply#53e6f1ec shortcut_id:int = Update; +updateQuickReplyMessage#3e050d0f message:Message = Update; +updateDeleteQuickReplyMessages#566fe7cd shortcut_id:int messages:Vector = Update; +updateBotBusinessConnect#8ae5c97a connection:BotBusinessConnection qts:int = Update; +updateBotNewBusinessMessage#9ddb347c flags:# connection_id:string message:Message reply_to_message:flags.0?Message qts:int = Update; +updateBotEditBusinessMessage#7df587c flags:# connection_id:string message:Message reply_to_message:flags.0?Message qts:int = Update; +updateBotDeleteBusinessMessage#a02a982e connection_id:string peer:Peer messages:Vector qts:int = Update; updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State; @@ -507,6 +517,7 @@ inputPrivacyKeyPhoneNumber#352dafa = InputPrivacyKey; inputPrivacyKeyAddedByPhone#d1219bdd = InputPrivacyKey; inputPrivacyKeyVoiceMessages#aee69d68 = InputPrivacyKey; inputPrivacyKeyAbout#3823cc40 = InputPrivacyKey; +inputPrivacyKeyBirthday#d65a11cc = InputPrivacyKey; privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey; privacyKeyChatInvite#500e6dfa = PrivacyKey; @@ -518,6 +529,7 @@ privacyKeyPhoneNumber#d19ae46d = PrivacyKey; privacyKeyAddedByPhone#42ffd42b = PrivacyKey; privacyKeyVoiceMessages#697f414 = PrivacyKey; privacyKeyAbout#a486b761 = PrivacyKey; +privacyKeyBirthday#2000a518 = PrivacyKey; inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule; inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule; @@ -528,6 +540,7 @@ inputPrivacyValueDisallowUsers#90110467 users:Vector = InputPrivacyRu inputPrivacyValueAllowChatParticipants#840649cf chats:Vector = InputPrivacyRule; inputPrivacyValueDisallowChatParticipants#e94f0f86 chats:Vector = InputPrivacyRule; inputPrivacyValueAllowCloseFriends#2f453e49 = InputPrivacyRule; +inputPrivacyValueAllowPremium#77cdc9f1 = InputPrivacyRule; privacyValueAllowContacts#fffe1bac = PrivacyRule; privacyValueAllowAll#65427b82 = PrivacyRule; @@ -538,6 +551,7 @@ privacyValueDisallowUsers#e4621141 users:Vector = PrivacyRule; privacyValueAllowChatParticipants#6b134e8e chats:Vector = PrivacyRule; privacyValueDisallowChatParticipants#41c87565 chats:Vector = PrivacyRule; privacyValueAllowCloseFriends#f7e8d89b = PrivacyRule; +privacyValueAllowPremium#ece9814b = PrivacyRule; account.privacyRules#50a04e45 rules:Vector chats:Vector users:Vector = account.PrivacyRules; @@ -600,7 +614,7 @@ inputStickerSetEmojiDefaultStatuses#29d0f5ee = InputStickerSet; inputStickerSetEmojiDefaultTopicIcons#44c1f8e9 = InputStickerSet; inputStickerSetEmojiChannelDefaultStatuses#49748553 = InputStickerSet; -stickerSet#2dd14edc flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true videos:flags.6?true emojis:flags.7?true text_color:flags.9?true channel_emoji_status:flags.10?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector thumb_dc_id:flags.4?int thumb_version:flags.4?int thumb_document_id:flags.8?long count:int hash:int = StickerSet; +stickerSet#2dd14edc flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true emojis:flags.7?true text_color:flags.9?true channel_emoji_status:flags.10?true creator:flags.11?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector thumb_dc_id:flags.4?int thumb_version:flags.4?int thumb_document_id:flags.8?long count:int hash:int = StickerSet; messages.stickerSet#6e153f16 set:StickerSet packs:Vector keywords:Vector documents:Vector = messages.StickerSet; messages.stickerSetNotModified#d3f924eb = messages.StickerSet; @@ -625,6 +639,7 @@ keyboardButtonUserProfile#308660c1 text:string user_id:long = KeyboardButton; keyboardButtonWebView#13767230 text:string url:string = KeyboardButton; keyboardButtonSimpleWebView#a0c0505c text:string url:string = KeyboardButton; keyboardButtonRequestPeer#53d7bfd8 text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButton; +inputKeyboardButtonRequestPeer#c9662d05 flags:# name_requested:flags.0?true username_requested:flags.1?true photo_requested:flags.2?true text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButton; keyboardButtonRow#77608b83 buttons:Vector = KeyboardButtonRow; @@ -909,7 +924,7 @@ phoneCallEmpty#5366c915 id:long = PhoneCall; phoneCallWaiting#c5226f17 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall; phoneCallRequested#14b0ed0c flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall; phoneCallAccepted#3660c311 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_b:bytes protocol:PhoneCallProtocol = PhoneCall; -phoneCall#967f7c67 flags:# p2p_allowed:flags.5?true video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connections:Vector start_date:int = PhoneCall; +phoneCall#30535af5 flags:# p2p_allowed:flags.5?true video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connections:Vector start_date:int custom_parameters:flags.7?DataJSON = PhoneCall; phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true video:flags.6?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall; phoneConnection#9cc123c7 flags:# tcp:flags.0?true id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection; @@ -1228,9 +1243,9 @@ bankCardOpenUrl#f568028a url:string name:string = BankCardOpenUrl; payments.bankCardData#3e24e573 title:string open_urls:Vector = payments.BankCardData; -dialogFilter#7438f7e8 flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true id:int title:string emoticon:flags.25?string pinned_peers:Vector include_peers:Vector exclude_peers:Vector = DialogFilter; +dialogFilter#5fb5523b flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true id:int title:string emoticon:flags.25?string color:flags.27?int pinned_peers:Vector include_peers:Vector exclude_peers:Vector = DialogFilter; dialogFilterDefault#363293ae = DialogFilter; -dialogFilterChatlist#d64a04a8 flags:# has_my_invites:flags.26?true id:int title:string emoticon:flags.25?string pinned_peers:Vector include_peers:Vector = DialogFilter; +dialogFilterChatlist#9fe28ea4 flags:# has_my_invites:flags.26?true id:int title:string emoticon:flags.25?string color:flags.27?int pinned_peers:Vector include_peers:Vector = DialogFilter; dialogFilterSuggested#77744d4a filter:DialogFilter description:string = DialogFilterSuggested; @@ -1346,7 +1361,7 @@ account.resetPasswordFailedWait#e3779861 retry_date:int = account.ResetPasswordR account.resetPasswordRequestedWait#e9effc7d until_date:int = account.ResetPasswordResult; account.resetPasswordOk#e926d63e = account.ResetPasswordResult; -sponsoredMessage#ed5383f7 flags:# recommended:flags.5?true show_peer_photo:flags.6?true random_id:bytes from_id:flags.3?Peer chat_invite:flags.4?ChatInvite chat_invite_hash:flags.4?string channel_post:flags.2?int start_param:flags.0?string webpage:flags.9?SponsoredWebPage app:flags.10?BotApp message:string entities:flags.1?Vector button_text:flags.11?string sponsor_info:flags.7?string additional_info:flags.8?string = SponsoredMessage; +sponsoredMessage#ed5383f7 flags:# recommended:flags.5?true show_peer_photo:flags.6?true can_report:flags.12?true random_id:bytes from_id:flags.3?Peer chat_invite:flags.4?ChatInvite chat_invite_hash:flags.4?string channel_post:flags.2?int start_param:flags.0?string webpage:flags.9?SponsoredWebPage app:flags.10?BotApp message:string entities:flags.1?Vector button_text:flags.11?string sponsor_info:flags.7?string additional_info:flags.8?string = SponsoredMessage; messages.sponsoredMessages#c9ee1d87 flags:# posts_between:flags.0?int messages:Vector chats:Vector users:Vector = messages.SponsoredMessages; messages.sponsoredMessagesEmpty#1839490f = messages.SponsoredMessages; @@ -1653,6 +1668,108 @@ messages.savedReactionTags#3259950a tags:Vector hash:long = me outboxReadDate#3bb842ac date:int = OutboxReadDate; +smsjobs.eligibleToJoin#dc8b44cf terms_url:string monthly_sent_sms:int = smsjobs.EligibilityToJoin; + +smsjobs.status#2aee9191 flags:# allow_international:flags.0?true recent_sent:int recent_since:int recent_remains:int total_sent:int total_since:int last_gift_slug:flags.1?string terms_url:string = smsjobs.Status; + +smsJob#e6a1eeb8 job_id:string phone_number:string text:string = SmsJob; + +businessWeeklyOpen#120b1ab9 start_minute:int end_minute:int = BusinessWeeklyOpen; + +businessWorkHours#8c92b098 flags:# open_now:flags.0?true timezone_id:string weekly_open:Vector = BusinessWorkHours; + +businessLocation#ac5c1af7 flags:# geo_point:flags.0?GeoPoint address:string = BusinessLocation; + +inputBusinessRecipients#6f8b32aa flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector = InputBusinessRecipients; + +businessRecipients#21108ff7 flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector = BusinessRecipients; + +businessAwayMessageScheduleAlways#c9b9e2b9 = BusinessAwayMessageSchedule; +businessAwayMessageScheduleOutsideWorkHours#c3f2f501 = BusinessAwayMessageSchedule; +businessAwayMessageScheduleCustom#cc4d9ecc start_date:int end_date:int = BusinessAwayMessageSchedule; + +inputBusinessGreetingMessage#194cb3b shortcut_id:int recipients:InputBusinessRecipients no_activity_days:int = InputBusinessGreetingMessage; + +businessGreetingMessage#e519abab shortcut_id:int recipients:BusinessRecipients no_activity_days:int = BusinessGreetingMessage; + +inputBusinessAwayMessage#832175e0 flags:# offline_only:flags.0?true shortcut_id:int schedule:BusinessAwayMessageSchedule recipients:InputBusinessRecipients = InputBusinessAwayMessage; + +businessAwayMessage#ef156a5c flags:# offline_only:flags.0?true shortcut_id:int schedule:BusinessAwayMessageSchedule recipients:BusinessRecipients = BusinessAwayMessage; + +timezone#ff9289f5 id:string name:string utc_offset:int = Timezone; + +help.timezonesListNotModified#970708cc = help.TimezonesList; +help.timezonesList#7b74ed71 timezones:Vector hash:int = help.TimezonesList; + +quickReply#697102b shortcut_id:int shortcut:string top_message:int count:int = QuickReply; + +inputQuickReplyShortcut#24596d41 shortcut:string = InputQuickReplyShortcut; +inputQuickReplyShortcutId#1190cf1 shortcut_id:int = InputQuickReplyShortcut; + +messages.quickReplies#c68d6695 quick_replies:Vector messages:Vector chats:Vector users:Vector = messages.QuickReplies; +messages.quickRepliesNotModified#5f91eb5b = messages.QuickReplies; + +connectedBot#bd068601 flags:# can_reply:flags.0?true bot_id:long recipients:BusinessBotRecipients = ConnectedBot; + +account.connectedBots#17d7f87b connected_bots:Vector users:Vector = account.ConnectedBots; + +messages.dialogFilters#2ad93719 flags:# tags_enabled:flags.0?true filters:Vector = messages.DialogFilters; + +birthday#6c8e1e06 flags:# day:int month:int year:flags.0?int = Birthday; + +botBusinessConnection#896433b4 flags:# can_reply:flags.0?true disabled:flags.1?true connection_id:string user_id:long dc_id:int date:int = BotBusinessConnection; + +inputBusinessIntro#9c469cd flags:# title:string description:string sticker:flags.0?InputDocument = InputBusinessIntro; + +businessIntro#5a0a066d flags:# title:string description:string sticker:flags.0?Document = BusinessIntro; + +messages.myStickers#faff629d count:int sets:Vector = messages.MyStickers; + +inputCollectibleUsername#e39460a9 username:string = InputCollectible; +inputCollectiblePhone#a2e214a4 phone:string = InputCollectible; + +fragment.collectibleInfo#6ebdff91 purchase_date:int currency:string amount:long crypto_currency:string crypto_amount:long url:string = fragment.CollectibleInfo; + +inputBusinessBotRecipients#c4e5921e flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector exclude_users:flags.6?Vector = InputBusinessBotRecipients; + +businessBotRecipients#b88cf373 flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector exclude_users:flags.6?Vector = BusinessBotRecipients; + +contactBirthday#1d998733 contact_id:long birthday:Birthday = ContactBirthday; + +contacts.contactBirthdays#114ff30d contacts:Vector users:Vector = contacts.ContactBirthdays; + +missingInvitee#628c9224 flags:# premium_would_allow_invite:flags.0?true premium_required_for_pm:flags.1?true user_id:long = MissingInvitee; + +messages.invitedUsers#7f5defa6 updates:Updates missing_invitees:Vector = messages.InvitedUsers; + +inputBusinessChatLink#11679fa7 flags:# message:string entities:flags.0?Vector title:flags.1?string = InputBusinessChatLink; + +businessChatLink#b4ae666f flags:# link:string message:string entities:flags.0?Vector title:flags.1?string views:int = BusinessChatLink; + +account.businessChatLinks#ec43a2d1 links:Vector chats:Vector users:Vector = account.BusinessChatLinks; + +account.resolvedBusinessChatLinks#9a23af21 flags:# peer:Peer message:string entities:flags.0?Vector chats:Vector users:Vector = account.ResolvedBusinessChatLinks; + +requestedPeerUser#d62ff46a flags:# user_id:long first_name:flags.0?string last_name:flags.0?string username:flags.1?string photo:flags.2?Photo = RequestedPeer; +requestedPeerChat#7307544f flags:# chat_id:long title:flags.0?string photo:flags.2?Photo = RequestedPeer; +requestedPeerChannel#8ba403e4 flags:# channel_id:long title:flags.0?string username:flags.1?string photo:flags.2?Photo = RequestedPeer; + +sponsoredMessageReportOption#430d3150 text:string option:bytes = SponsoredMessageReportOption; + +channels.sponsoredMessageReportResultChooseOption#846f9e42 title:string options:Vector = channels.SponsoredMessageReportResult; +channels.sponsoredMessageReportResultAdsHidden#3e3bcf2f = channels.SponsoredMessageReportResult; +channels.sponsoredMessageReportResultReported#ad798849 = channels.SponsoredMessageReportResult; + +stats.broadcastRevenueStats#d07b4bad top_hours_graph:StatsGraph revenue_graph:StatsGraph current_balance:long available_balance:long overall_revenue:long usd_rate:double = stats.BroadcastRevenueStats; + +stats.broadcastRevenueWithdrawalUrl#ec659737 url:string = stats.BroadcastRevenueWithdrawalUrl; + +broadcastRevenueTransactionProceeds#557e2cc4 amount:long from_date:int to_date:int = BroadcastRevenueTransaction; +broadcastRevenueTransactionWithdrawal#5a590978 flags:# pending:flags.0?true failed:flags.2?true amount:long date:int provider:string transaction_date:flags.1?int transaction_url:flags.1?string = BroadcastRevenueTransaction; +broadcastRevenueTransactionRefund#42d30d2e amount:long date:int provider:string = BroadcastRevenueTransaction; + +stats.broadcastRevenueTransactions#87158466 count:int transactions:Vector = stats.BroadcastRevenueTransactions; + ---functions--- invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X; @@ -1662,6 +1779,7 @@ invokeWithLayer#da9b0d0d {X:Type} layer:int query:!X = X; invokeWithoutUpdates#bf9459b7 {X:Type} query:!X = X; invokeWithMessagesRange#365275f2 {X:Type} range:MessageRange query:!X = X; invokeWithTakeout#aca9fd2e {X:Type} takeout_id:long query:!X = X; +invokeWithBusinessConnection#dd289f8e {X:Type} connection_id:string query:!X = X; auth.sendCode#a677244f phone_number:string api_id:int api_hash:string settings:CodeSettings = auth.SentCode; auth.signUp#aac7b717 flags:# no_joined_notifications:flags.0?true phone_number:string phone_code_hash:string first_name:string last_name:string = auth.Authorization; @@ -1778,6 +1896,23 @@ account.updateColor#7cefa15d flags:# for_profile:flags.1?true color:flags.2?int account.getDefaultBackgroundEmojis#a60ab9ce hash:long = EmojiList; account.getChannelDefaultEmojiStatuses#7727a7d5 hash:long = account.EmojiStatuses; account.getChannelRestrictedStatusEmojis#35a9e0d5 hash:long = EmojiList; +account.updateBusinessWorkHours#4b00e066 flags:# business_work_hours:flags.0?BusinessWorkHours = Bool; +account.updateBusinessLocation#9e6b131a flags:# geo_point:flags.1?InputGeoPoint address:flags.0?string = Bool; +account.updateBusinessGreetingMessage#66cdafc4 flags:# message:flags.0?InputBusinessGreetingMessage = Bool; +account.updateBusinessAwayMessage#a26a7fa5 flags:# message:flags.0?InputBusinessAwayMessage = Bool; +account.updateConnectedBot#43d8521d flags:# can_reply:flags.0?true deleted:flags.1?true bot:InputUser recipients:InputBusinessBotRecipients = Updates; +account.getConnectedBots#4ea4c80f = account.ConnectedBots; +account.getBotBusinessConnection#76a86270 connection_id:string = Updates; +account.updateBusinessIntro#a614d034 flags:# intro:flags.0?InputBusinessIntro = Bool; +account.toggleConnectedBotPaused#646e1097 peer:InputPeer paused:Bool = Bool; +account.disablePeerConnectedBot#5e437ed9 peer:InputPeer = Bool; +account.updateBirthday#cc6e0c11 flags:# birthday:flags.0?Birthday = Bool; +account.createBusinessChatLink#8851e68e link:InputBusinessChatLink = BusinessChatLink; +account.editBusinessChatLink#8c3410af slug:string link:InputBusinessChatLink = BusinessChatLink; +account.deleteBusinessChatLink#60073674 slug:string = Bool; +account.getBusinessChatLinks#6f70dde1 = account.BusinessChatLinks; +account.resolveBusinessChatLink#5492e5ee slug:string = account.ResolvedBusinessChatLinks; +account.updatePersonalChannel#d94305e0 channel:InputChannel = Bool; users.getUsers#d91a548 id:Vector = Vector; users.getFullUser#b60f5918 id:InputUser = users.UserFull; @@ -1809,6 +1944,7 @@ contacts.exportContactToken#f8654027 = ExportedContactToken; contacts.importContactToken#13005788 token:string = User; contacts.editCloseFriends#ba6705f0 id:Vector = Bool; contacts.setBlocked#94c65c76 flags:# my_stories_from:flags.0?true id:Vector limit:int = Bool; +contacts.getBirthdays#daeda864 = contacts.ContactBirthdays; messages.getMessages#63c66506 id:Vector = messages.Messages; messages.getDialogs#a0f4cb4f flags:# exclude_pinned:flags.0?true folder_id:flags.1?int offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:long = messages.Dialogs; @@ -1819,9 +1955,9 @@ messages.deleteHistory#b08f922a flags:# just_clear:flags.0?true revoke:flags.1?t messages.deleteMessages#e58e95d2 flags:# revoke:flags.0?true id:Vector = messages.AffectedMessages; messages.receivedMessages#5a954c0 max_id:int = Vector; messages.setTyping#58943ee2 flags:# peer:InputPeer top_msg_id:flags.0?int action:SendMessageAction = Bool; -messages.sendMessage#280d096f flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; -messages.sendMedia#72ccc23d flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; -messages.forwardMessages#c661bbc4 flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true drop_author:flags.11?true drop_media_captions:flags.12?true noforwards:flags.14?true from_peer:InputPeer id:Vector random_id:Vector to_peer:InputPeer top_msg_id:flags.9?int schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; +messages.sendMessage#dff8042c flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates; +messages.sendMedia#7bd66041 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates; +messages.forwardMessages#d5039208 flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true drop_author:flags.11?true drop_media_captions:flags.12?true noforwards:flags.14?true from_peer:InputPeer id:Vector random_id:Vector to_peer:InputPeer top_msg_id:flags.9?int schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates; messages.reportSpam#cf1592db peer:InputPeer = Bool; messages.getPeerSettings#efd9a6a2 peer:InputPeer = messages.PeerSettings; messages.report#8953ab4e peer:InputPeer id:Vector reason:ReportReason message:string = Bool; @@ -1829,9 +1965,9 @@ messages.getChats#49e9528f id:Vector = messages.Chats; messages.getFullChat#aeb00b34 chat_id:long = messages.ChatFull; messages.editChatTitle#73783ffd chat_id:long title:string = Updates; messages.editChatPhoto#35ddd674 chat_id:long photo:InputChatPhoto = Updates; -messages.addChatUser#f24753e3 chat_id:long user_id:InputUser fwd_limit:int = Updates; +messages.addChatUser#cbc6d107 chat_id:long user_id:InputUser fwd_limit:int = messages.InvitedUsers; messages.deleteChatUser#a2185cab flags:# revoke_history:flags.0?true chat_id:long user_id:InputUser = Updates; -messages.createChat#34a818 flags:# users:Vector title:string ttl_period:flags.0?int = Updates; +messages.createChat#92ceddd4 flags:# users:Vector title:string ttl_period:flags.0?int = messages.InvitedUsers; messages.getDhConfig#26cf8950 version:int random_length:int = messages.DhConfig; messages.requestEncryption#f64daf43 user_id:InputUser random_id:int g_a:bytes = EncryptedChat; messages.acceptEncryption#3dbc0415 peer:InputEncryptedChat g_b:bytes key_fingerprint:long = EncryptedChat; @@ -1864,9 +2000,9 @@ messages.getSavedGifs#5cf09635 hash:long = messages.SavedGifs; messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool; messages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_point:flags.0?InputGeoPoint query:string offset:string = messages.BotResults; messages.setInlineBotResults#bb12a419 flags:# gallery:flags.0?true private:flags.1?true query_id:long results:Vector cache_time:int next_offset:flags.2?string switch_pm:flags.3?InlineBotSwitchPM switch_webview:flags.4?InlineBotWebView = Bool; -messages.sendInlineBotResult#f7bc68ba flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to:flags.0?InputReplyTo random_id:long query_id:long id:string schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; +messages.sendInlineBotResult#3ebee86a flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to:flags.0?InputReplyTo random_id:long query_id:long id:string schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates; messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData; -messages.editMessage#48f71778 flags:# no_webpage:flags.1?true invert_media:flags.16?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.15?int = Updates; +messages.editMessage#dfd14005 flags:# no_webpage:flags.1?true invert_media:flags.16?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.15?int quick_reply_shortcut_id:flags.17?int = Updates; messages.editInlineBotMessage#83557dba flags:# no_webpage:flags.1?true invert_media:flags.16?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector = Bool; messages.getBotCallbackAnswer#9342ca07 flags:# game:flags.1?true peer:InputPeer msg_id:int data:flags.0?bytes password:flags.2?InputCheckPasswordSRP = messages.BotCallbackAnswer; messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool; @@ -1892,14 +2028,14 @@ messages.reorderPinnedDialogs#3b1adf37 flags:# force:flags.0?true folder_id:int messages.getPinnedDialogs#d6b94df2 folder_id:int = messages.PeerDialogs; messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector = Bool; messages.setBotPrecheckoutResults#9c2dd95 flags:# success:flags.1?true query_id:long error:flags.0?string = Bool; -messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia; +messages.uploadMedia#14967978 flags:# business_connection_id:flags.0?string peer:InputPeer media:InputMedia = MessageMedia; messages.sendScreenshotNotification#a1405817 peer:InputPeer reply_to:InputReplyTo random_id:long = Updates; messages.getFavedStickers#4f1aaa9 hash:long = messages.FavedStickers; messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool; messages.getUnreadMentions#f107e790 flags:# peer:InputPeer top_msg_id:flags.0?int offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages; messages.readMentions#36e5bf4d flags:# peer:InputPeer top_msg_id:flags.0?int = messages.AffectedHistory; messages.getRecentLocations#702a40e0 peer:InputPeer limit:int hash:long = messages.Messages; -messages.sendMultiMedia#456e8987 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo multi_media:Vector schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates; +messages.sendMultiMedia#c964709 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true peer:InputPeer reply_to:flags.0?InputReplyTo multi_media:Vector schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates; messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile; messages.searchStickerSets#35705b8a flags:# exclude_featured:flags.0?true q:string hash:long = messages.FoundStickerSets; messages.getSplitRanges#1cff7e08 = Vector; @@ -1926,7 +2062,7 @@ messages.sendScheduledMessages#bd38850a peer:InputPeer id:Vector = Updates; messages.deleteScheduledMessages#59ae2b16 peer:InputPeer id:Vector = Updates; messages.getPollVotes#b86e380e flags:# peer:InputPeer id:int option:flags.0?bytes offset:flags.1?string limit:int = messages.VotesList; messages.toggleStickerSets#b5052fea flags:# uninstall:flags.0?true archive:flags.1?true unarchive:flags.2?true stickersets:Vector = Bool; -messages.getDialogFilters#f19ed96d = Vector; +messages.getDialogFilters#efd48c89 = messages.DialogFilters; messages.getSuggestedDialogFilters#a29cd42c = Vector; messages.updateDialogFilter#1ad4a04a flags:# id:int filter:flags.0?DialogFilter = Bool; messages.updateDialogFiltersOrder#c563c1e4 order:Vector = Bool; @@ -2008,6 +2144,16 @@ messages.getSavedReactionTags#3637e05b flags:# peer:flags.0?InputPeer hash:long messages.updateSavedReactionTag#60297dec flags:# reaction:Reaction title:flags.0?string = Bool; messages.getDefaultTagReactions#bdf93428 hash:long = messages.Reactions; messages.getOutboxReadDate#8c4bfe5d peer:InputPeer msg_id:int = OutboxReadDate; +messages.getQuickReplies#d483f2a8 hash:long = messages.QuickReplies; +messages.reorderQuickReplies#60331907 order:Vector = Bool; +messages.checkQuickReplyShortcut#f1d0fbd3 shortcut:string = Bool; +messages.editQuickReplyShortcut#5c003cef shortcut_id:int shortcut:string = Bool; +messages.deleteQuickReplyShortcut#3cc04740 shortcut_id:int = Bool; +messages.getQuickReplyMessages#94a495c3 flags:# shortcut_id:int id:flags.0?Vector hash:long = messages.Messages; +messages.sendQuickReplyMessages#6c750de1 peer:InputPeer shortcut_id:int id:Vector random_id:Vector = Updates; +messages.deleteQuickReplyMessages#e105e910 shortcut_id:int id:Vector = Updates; +messages.toggleDialogFilterTags#fd2dda49 enabled:Bool = Bool; +messages.getMyStickers#d0b5e1fc offset_id:long limit:int = messages.MyStickers; updates.getState#edd4882a = updates.State; updates.getDifference#19c2f763 flags:# pts:int pts_limit:flags.1?int pts_total_limit:flags.0?int date:int qts:int qts_limit:flags.2?int = updates.Difference; @@ -2052,6 +2198,7 @@ help.getCountriesList#735787a8 lang_code:string hash:int = help.CountriesList; help.getPremiumPromo#b81b93d4 = help.PremiumPromo; help.getPeerColors#da80f42f hash:int = help.PeerColors; help.getPeerProfileColors#abcfa9fd hash:int = help.PeerColors; +help.getTimezonesList#49b30240 hash:int = help.TimezonesList; channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool; channels.deleteMessages#84c1fd4e channel:InputChannel id:Vector = messages.AffectedMessages; @@ -2069,11 +2216,11 @@ channels.checkUsername#10e6bd2c channel:InputChannel username:string = Bool; channels.updateUsername#3514b3de channel:InputChannel username:string = Bool; channels.joinChannel#24b524c5 channel:InputChannel = Updates; channels.leaveChannel#f836aa95 channel:InputChannel = Updates; -channels.inviteToChannel#199f3a6c channel:InputChannel users:Vector = Updates; +channels.inviteToChannel#c9e33d54 channel:InputChannel users:Vector = messages.InvitedUsers; channels.deleteChannel#c0111fe3 channel:InputChannel = Updates; channels.exportMessageLink#e63fadeb flags:# grouped:flags.0?true thread:flags.1?true channel:InputChannel id:int = ExportedMessageLink; channels.toggleSignatures#1f69b606 channel:InputChannel enabled:Bool = Updates; -channels.getAdminedPublicChannels#f8b036af flags:# by_location:flags.0?true check_limit:flags.1?true = messages.Chats; +channels.getAdminedPublicChannels#f8b036af flags:# by_location:flags.0?true check_limit:flags.1?true for_personal:flags.2?true = messages.Chats; channels.editBanned#96e6cd81 channel:InputChannel participant:InputPeer banned_rights:ChatBannedRights = Updates; channels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector max_id:long min_id:long limit:int = channels.AdminLogResults; channels.setStickers#ea8ca4f9 channel:InputChannel stickerset:InputStickerSet = Bool; @@ -2115,6 +2262,8 @@ channels.getChannelRecommendations#83b70d97 channel:InputChannel = messages.Chat channels.updateEmojiStatus#f0d3e6a8 channel:InputChannel emoji_status:EmojiStatus = Updates; channels.setBoostsToUnblockRestrictions#ad399cee channel:InputChannel boosts:int = Updates; channels.setEmojiStickers#3cd930b7 channel:InputChannel stickerset:InputStickerSet = Bool; +channels.reportSponsoredMessage#af8ff6b9 channel:InputChannel random_id:bytes option:bytes = channels.SponsoredMessageReportResult; +channels.restrictSponsoredMessages#9ae91519 channel:InputChannel restricted:Bool = Updates; bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON; bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool; @@ -2150,7 +2299,7 @@ payments.applyGiftCode#f6e26854 slug:string = Updates; payments.getGiveawayInfo#f4239425 peer:InputPeer msg_id:int = payments.GiveawayInfo; payments.launchPrepaidGiveaway#5ff58f20 peer:InputPeer giveaway_id:long purpose:InputStorePaymentPurpose = Updates; -stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true animated:flags.1?true videos:flags.4?true emojis:flags.5?true text_color:flags.6?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector software:flags.3?string = messages.StickerSet; +stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true emojis:flags.5?true text_color:flags.6?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector software:flags.3?string = messages.StickerSet; stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet; stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet; stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet; @@ -2160,6 +2309,7 @@ stickers.suggestShortName#4dafc503 title:string = stickers.SuggestedShortName; stickers.changeSticker#f5537ebc flags:# sticker:InputDocument emoji:flags.0?string mask_coords:flags.1?MaskCoords keywords:flags.2?string = messages.StickerSet; stickers.renameStickerSet#124b1c00 stickerset:InputStickerSet title:string = messages.StickerSet; stickers.deleteStickerSet#87704394 stickerset:InputStickerSet = Bool; +stickers.replaceSticker#4696459a sticker:InputDocument new_sticker:InputStickerSetItem = messages.StickerSet; phone.getCallConfig#55451fa9 = DataJSON; phone.requestCall#42ff96ed flags:# video:flags.0?true user_id:InputUser random_id:int g_a_hash:bytes protocol:PhoneCallProtocol = phone.PhoneCall; @@ -2208,6 +2358,9 @@ stats.getMessagePublicForwards#5f150144 channel:InputChannel msg_id:int offset:s stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats; stats.getStoryStats#374fef40 flags:# dark:flags.0?true peer:InputPeer id:int = stats.StoryStats; stats.getStoryPublicForwards#a6437ef6 peer:InputPeer id:int offset:string limit:int = stats.PublicForwards; +stats.getBroadcastRevenueStats#75dfb671 flags:# dark:flags.0?true channel:InputChannel = stats.BroadcastRevenueStats; +stats.getBroadcastRevenueWithdrawalUrl#2a65ef73 channel:InputChannel password:InputCheckPasswordSRP = stats.BroadcastRevenueWithdrawalUrl; +stats.getBroadcastRevenueTransactions#69280f channel:InputChannel offset:int limit:int = stats.BroadcastRevenueTransactions; chatlists.exportChatlistInvite#8472478e chatlist:InputChatlist title:string peers:Vector = chatlists.ExportedChatlistInvite; chatlists.deleteExportedInvite#719c5c5e chatlist:InputChatlist slug:string = Bool; @@ -2252,4 +2405,14 @@ premium.applyBoost#6b7da746 flags:# slots:flags.0?Vector peer:InputPeer = p premium.getBoostsStatus#42f1f61 peer:InputPeer = premium.BoostsStatus; premium.getUserBoosts#39854d1f peer:InputPeer user_id:InputUser = premium.BoostsList; -// LAYER 174 +smsjobs.isEligibleToJoin#edc39d0 = smsjobs.EligibilityToJoin; +smsjobs.join#a74ece2d = Bool; +smsjobs.leave#9898ad73 = Bool; +smsjobs.updateSettings#93fa0bf flags:# allow_international:flags.0?true = Bool; +smsjobs.getStatus#10a698e8 = smsjobs.Status; +smsjobs.getSmsJob#778d902f job_id:string = SmsJob; +smsjobs.finishJob#4f1ebf24 flags:# job_id:string error:flags.0?string = Bool; + +fragment.getCollectibleInfo#be1e85ba collectible:InputCollectible = fragment.CollectibleInfo; + +// LAYER 177 diff --git a/gramjs/tl/types-generator/template.js b/gramjs/tl/types-generator/template.js index 179df543..e1fba9db 100644 --- a/gramjs/tl/types-generator/template.js +++ b/gramjs/tl/types-generator/template.js @@ -192,7 +192,7 @@ ${indent}}`.trim(); function renderValueType(type, isVector, isTlType) { if (WEIRD_TYPES.has(type)) { - return type; + return isVector ? `${type}[]` : type; } let resType; diff --git a/package-lock.json b/package-lock.json index 5c6dddd0..d1ce0099 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "telegram", - "version": "2.20.2", + "version": "2.20.10", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "telegram", - "version": "2.20.2", + "version": "2.20.10", "license": "MIT", "dependencies": { "@cryptography/aes": "^0.1.1", diff --git a/package.json b/package.json index 4b4a2baf..6b7aa246 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "telegram", - "version": "2.20.3", + "version": "2.20.10", "description": "NodeJS/Browser MTProto API Telegram client library,", "main": "index.js", "types": "index.d.ts", @@ -56,21 +56,18 @@ }, "dependencies": { "@cryptography/aes": "^0.1.1", - "@grammyjs/conversations": "^1.2.0", "async-mutex": "^0.3.0", "big-integer": "^1.6.48", "buffer": "^6.0.3", - "grammy": "^1.21.1", "htmlparser2": "^6.1.0", - "input": "^1.0.1", "mime": "^3.0.0", - "node-localstorage": "^2.2.1", "pako": "^2.0.3", "path-browserify": "^1.0.1", "real-cancellable-promise": "^1.1.1", - "socks": "^2.6.2", "store2": "^2.13.0", "ts-custom-error": "^3.2.0", - "websocket": "^1.0.34" + "websocket": "^1.0.34", + "node-localstorage": "^2.2.1", + "socks": "^2.6.2" } }