diff --git a/packages/core/src/highlevel/types/stories/interactive/index.ts b/packages/core/src/highlevel/types/stories/interactive/index.ts index d1826192..8ec90481 100644 --- a/packages/core/src/highlevel/types/stories/interactive/index.ts +++ b/packages/core/src/highlevel/types/stories/interactive/index.ts @@ -5,16 +5,24 @@ import { PeersIndex } from '../../peers/index.js' import { StoryInteractiveChannelPost } from './channel-post.js' import { StoryInteractiveLocation } from './location.js' import { StoryInteractiveReaction } from './reaction.js' +import { StoryInteractiveUrl } from './url.js' import { StoryInteractiveVenue } from './venue.js' export * from './input.js' -export { StoryInteractiveChannelPost, StoryInteractiveLocation, StoryInteractiveReaction, StoryInteractiveVenue } +export { + StoryInteractiveChannelPost, + StoryInteractiveLocation, + StoryInteractiveReaction, + StoryInteractiveUrl, + StoryInteractiveVenue, +} export type StoryInteractiveElement = | StoryInteractiveReaction | StoryInteractiveLocation | StoryInteractiveVenue | StoryInteractiveChannelPost + | StoryInteractiveUrl export function _storyInteractiveElementFromTl(raw: tl.TypeMediaArea, peers: PeersIndex): StoryInteractiveElement { switch (raw._) { @@ -26,6 +34,8 @@ export function _storyInteractiveElementFromTl(raw: tl.TypeMediaArea, peers: Pee return new StoryInteractiveVenue(raw) case 'mediaAreaChannelPost': return new StoryInteractiveChannelPost(raw, peers) + case 'mediaAreaUrl': + return new StoryInteractiveUrl(raw) case 'inputMediaAreaVenue': case 'inputMediaAreaChannelPost': throw new MtTypeAssertionError('StoryInteractiveElement', '!input*', raw._) diff --git a/packages/core/src/highlevel/types/stories/interactive/input.ts b/packages/core/src/highlevel/types/stories/interactive/input.ts index 4bcef23c..89892ca0 100644 --- a/packages/core/src/highlevel/types/stories/interactive/input.ts +++ b/packages/core/src/highlevel/types/stories/interactive/input.ts @@ -130,4 +130,12 @@ export class StoryElement { flipped: params.flipped, } } + + url(url: string): tl.RawMediaAreaUrl { + return { + _: 'mediaAreaUrl', + coordinates: this._position, + url, + } + } } diff --git a/packages/core/src/highlevel/types/stories/interactive/url.ts b/packages/core/src/highlevel/types/stories/interactive/url.ts new file mode 100644 index 00000000..c76db4cf --- /dev/null +++ b/packages/core/src/highlevel/types/stories/interactive/url.ts @@ -0,0 +1,18 @@ +import { tl } from '@mtcute/tl' + +import { StoryInteractiveArea } from './base.js' + +/** + * Interactive element containing a URL link + */ +export class StoryInteractiveUrl extends StoryInteractiveArea { + readonly type = 'url' as const + + constructor(readonly raw: tl.RawMediaAreaUrl) { + super(raw) + } + + get url(): string { + return this.raw.url + } +} diff --git a/packages/tl/README.md b/packages/tl/README.md index c8be63c9..fa21f132 100644 --- a/packages/tl/README.md +++ b/packages/tl/README.md @@ -2,7 +2,7 @@ TL schema and related utils used for mtcute. -Generated from TL layer **181** (last updated on 31.05.2024). +Generated from TL layer **182** (last updated on 25.06.2024). ## About diff --git a/packages/tl/api-schema.json b/packages/tl/api-schema.json index a59bdbb2..20f56905 100644 --- a/packages/tl/api-schema.json +++ b/packages/tl/api-schema.json @@ -1 +1 @@ -{"l":181,"e":[{"kind":"class","name":"error","type":"Error","id":3300522427,"comment":"Error.","arguments":[{"name":"code","type":"int","comment":"Error code"},{"name":"text","type":"string","comment":"Message"}]},{"kind":"class","name":"ipPort","id":3560156531,"type":"IpPort","arguments":[{"name":"ipv4","type":"int"},{"name":"port","type":"int"}]},{"kind":"class","name":"ipPortSecret","id":932718150,"type":"IpPort","arguments":[{"name":"ipv4","type":"int"},{"name":"port","type":"int"},{"name":"secret","type":"bytes"}]},{"kind":"class","name":"accessPointRule","id":1182381663,"type":"AccessPointRule","arguments":[{"name":"phone_prefix_rules","type":"string"},{"name":"dc_id","type":"int"},{"name":"ips","type":"IpPort","typeModifiers":{"isBareVector":true}}]},{"kind":"class","name":"help.configSimple","id":1515793004,"type":"help.ConfigSimple","arguments":[{"name":"date","type":"int"},{"name":"expires","type":"int"},{"name":"rules","type":"AccessPointRule","typeModifiers":{"isBareVector":true}}]},{"kind":"class","name":"inputPeerPhotoFileLocationLegacy","id":668375447,"type":"InputFileLocation","arguments":[{"name":"flags","type":"#"},{"name":"big","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"peer","type":"InputPeer"},{"name":"volume_id","type":"long"},{"name":"local_id","type":"int"}]},{"kind":"class","name":"inputStickerSetThumbLegacy","id":230353641,"type":"InputFileLocation","arguments":[{"name":"stickerset","type":"InputStickerSet"},{"name":"volume_id","type":"long"},{"name":"local_id","type":"int"}]},{"kind":"class","name":"inputPeerEmpty","type":"InputPeer","id":2134579434,"comment":"An empty constructor, no user or chat is defined.","arguments":[]},{"kind":"class","name":"inputPeerSelf","type":"InputPeer","id":2107670217,"comment":"Defines the current user.","arguments":[]},{"kind":"class","name":"inputPeerChat","type":"InputPeer","id":900291769,"comment":"Defines a chat for further interaction.","arguments":[{"name":"chat_id","type":"int53","comment":"Chat identifier"}]},{"kind":"class","name":"inputPeerUser","type":"InputPeer","id":3723011404,"comment":"Defines a user for further interaction.","arguments":[{"name":"user_id","type":"int53","comment":"User identifier"},{"name":"access_hash","type":"long","comment":"access_hash value from the {@link RawUser} constructor"}]},{"kind":"class","name":"inputPeerChannel","type":"InputPeer","id":666680316,"comment":"Defines a channel for further interaction.","arguments":[{"name":"channel_id","type":"int53","comment":"Channel identifier"},{"name":"access_hash","type":"long","comment":"access_hash value from the {@link RawChannel} constructor"}]},{"kind":"class","name":"inputPeerUserFromMessage","type":"InputPeer","id":2826635804,"comment":"Defines a min user that was seen in a certain message of a certain chat.","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat where the user was seen"},{"name":"msg_id","type":"int","comment":"The message ID"},{"name":"user_id","type":"int53","comment":"The identifier of the user that was seen"}]},{"kind":"class","name":"inputPeerChannelFromMessage","type":"InputPeer","id":3173648448,"comment":"Defines a min channel that was seen in a certain message of a certain chat.","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat where the channel's message was seen"},{"name":"msg_id","type":"int","comment":"The message ID"},{"name":"channel_id","type":"int53","comment":"The identifier of the channel that was seen"}]},{"kind":"class","name":"inputUserEmpty","type":"InputUser","id":3112732367,"comment":"Empty constructor, does not define a user.","arguments":[]},{"kind":"class","name":"inputUserSelf","type":"InputUser","id":4156666175,"comment":"Defines the current user.","arguments":[]},{"kind":"class","name":"inputUser","type":"InputUser","id":4061223110,"comment":"Defines a user for further interaction.","arguments":[{"name":"user_id","type":"int53","comment":"User identifier"},{"name":"access_hash","type":"long","comment":"access_hash value from the {@link RawUser} constructor"}]},{"kind":"class","name":"inputUserFromMessage","type":"InputUser","id":497305826,"comment":"Defines a min user that was seen in a certain message of a certain chat.","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat where the user was seen"},{"name":"msg_id","type":"int","comment":"The message ID"},{"name":"user_id","type":"int53","comment":"The identifier of the user that was seen"}]},{"kind":"class","name":"inputPhoneContact","type":"InputContact","id":4086478836,"comment":"Phone contact.","arguments":[{"name":"client_id","type":"long","comment":"An arbitrary 64-bit integer: it should be set, for example, to an incremental number when using {@link contacts.RawImportContactsRequest}, in order to retry importing only the contacts that weren't imported successfully, according to the client_ids returned in {@link contacts.RawImportedContacts}.retry_contacts."},{"name":"phone","type":"string","comment":"Phone number"},{"name":"first_name","type":"string","comment":"Contact's first name"},{"name":"last_name","type":"string","comment":"Contact's last name"}]},{"kind":"class","name":"inputFile","type":"InputFile","id":4113560191,"comment":"Defines a file saved in parts using the method {@link upload.RawSaveFilePartRequest}.","arguments":[{"name":"id","type":"long","comment":"Random file identifier created by the client"},{"name":"parts","type":"int","comment":"Number of parts saved"},{"name":"name","type":"string","comment":"Full name of the file"},{"name":"md5_checksum","type":"string","comment":"In case the file's md5-hash was passed, contents of the file will be checked prior to use"}]},{"kind":"class","name":"inputFileBig","type":"InputFile","id":4199484341,"comment":"Assigns a big file (over 10 MB in size), saved in part using the method {@link upload.RawSaveBigFilePartRequest}.","arguments":[{"name":"id","type":"long","comment":"Random file id, created by the client"},{"name":"parts","type":"int","comment":"Number of parts saved"},{"name":"name","type":"string","comment":"Full file name"}]},{"kind":"class","name":"inputMediaEmpty","type":"InputMedia","id":2523198847,"comment":"Empty media content of a message.","arguments":[]},{"kind":"class","name":"inputMediaUploadedPhoto","type":"InputMedia","id":505969924,"comment":"Photo","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"spoiler","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this media should be hidden behind a spoiler warning"},{"name":"file","type":"InputFile","comment":"The uploaded file"},{"name":"stickers","type":"InputDocument","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Attached mask stickers"},{"name":"ttl_seconds","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Time to live in seconds of self-destructing photo"}]},{"kind":"class","name":"inputMediaPhoto","type":"InputMedia","id":3015312949,"comment":"Forwarded photo","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"spoiler","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this media should be hidden behind a spoiler warning"},{"name":"id","type":"InputPhoto","comment":"Photo to be forwarded"},{"name":"ttl_seconds","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Time to live in seconds of self-destructing photo"}]},{"kind":"class","name":"inputMediaGeoPoint","type":"InputMedia","id":4190388548,"comment":"Map.","arguments":[{"name":"geo_point","type":"InputGeoPoint","comment":"GeoPoint"}]},{"kind":"class","name":"inputMediaContact","type":"InputMedia","id":4171988475,"comment":"Phone book contact","arguments":[{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"first_name","type":"string","comment":"Contact's first name"},{"name":"last_name","type":"string","comment":"Contact's last name"},{"name":"vcard","type":"string","comment":"Contact vcard"}]},{"kind":"class","name":"inputMediaUploadedDocument","type":"InputMedia","id":1530447553,"comment":"New document","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"nosound_video","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the specified document is a video file with no audio tracks (a GIF animation (even as MPEG4), for example)"},{"name":"force_file","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Force the media file to be uploaded as document"},{"name":"spoiler","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether this media should be hidden behind a spoiler warning"},{"name":"file","type":"InputFile","comment":"The uploaded file"},{"name":"thumb","type":"InputFile","typeModifiers":{"predicate":"flags.2"},"comment":"Thumbnail of the document, uploaded as for the file"},{"name":"mime_type","type":"string","comment":"MIME type of document"},{"name":"attributes","type":"DocumentAttribute","typeModifiers":{"isVector":true},"comment":"Attributes that specify the type of the document (video, audio, voice, sticker, etc.)"},{"name":"stickers","type":"InputDocument","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Attached stickers"},{"name":"ttl_seconds","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Time to live in seconds of self-destructing document"}]},{"kind":"class","name":"inputMediaDocument","type":"InputMedia","id":860303448,"comment":"Forwarded document","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"spoiler","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this media should be hidden behind a spoiler warning"},{"name":"id","type":"InputDocument","comment":"The document to be forwarded."},{"name":"ttl_seconds","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Time to live of self-destructing document"},{"name":"query","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Text query or emoji that was used by the user to find this sticker or GIF: used to improve search result relevance."}]},{"kind":"class","name":"inputMediaVenue","type":"InputMedia","id":3242007569,"comment":"Can be used to send a venue geolocation.","arguments":[{"name":"geo_point","type":"InputGeoPoint","comment":"Geolocation"},{"name":"title","type":"string","comment":"Venue name"},{"name":"address","type":"string","comment":"Physical address of the venue"},{"name":"provider","type":"string","comment":"Venue provider: currently only \"foursquare\" and \"gplaces\" (Google Places) need to be supported"},{"name":"venue_id","type":"string","comment":"Venue ID in the provider's database"},{"name":"venue_type","type":"string","comment":"Venue type in the provider's database"}]},{"kind":"class","name":"inputMediaPhotoExternal","type":"InputMedia","id":3854302746,"comment":"New photo that will be uploaded by the server using the specified URL","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"spoiler","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this media should be hidden behind a spoiler warning"},{"name":"url","type":"string","comment":"URL of the photo"},{"name":"ttl_seconds","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Self-destruct time to live of photo"}]},{"kind":"class","name":"inputMediaDocumentExternal","type":"InputMedia","id":4216511641,"comment":"Document that will be downloaded by the telegram servers","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"spoiler","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this media should be hidden behind a spoiler warning"},{"name":"url","type":"string","comment":"URL of the document"},{"name":"ttl_seconds","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Self-destruct time to live of document"}]},{"kind":"class","name":"inputMediaGame","type":"InputMedia","id":3544138739,"comment":"A game","arguments":[{"name":"id","type":"InputGame","comment":"The game to forward"}]},{"kind":"class","name":"inputMediaInvoice","id":1080028941,"type":"InputMedia","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"title","type":"string","comment":"Product name, 1-32 characters"},{"name":"description","type":"string","comment":"Product description, 1-255 characters"},{"name":"photo","type":"InputWebDocument","typeModifiers":{"predicate":"flags.0"},"comment":"URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for."},{"name":"invoice","type":"Invoice","comment":"The actual invoice"},{"name":"payload","type":"bytes","comment":"Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes."},{"name":"provider","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Payments provider token, obtained via Botfather"},{"name":"provider_data","type":"DataJSON","comment":"JSON-encoded data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider."},{"name":"start_param","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Unique bot deep links start parameter. If present, forwarded copies of the sent message will have a URL button with a deep link to the bot (instead of a Pay button), with the value used as the start parameter. If absent, forwarded copies of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice."},{"name":"extended_media","type":"InputMedia","typeModifiers":{"predicate":"flags.2"},"comment":"Extended media"}],"comment":"Generated invoice of a bot payment"},{"kind":"class","name":"inputMediaGeoLive","type":"InputMedia","id":2535434307,"comment":"Live geolocation","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"stopped","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether sending of the geolocation was stopped"},{"name":"geo_point","type":"InputGeoPoint","comment":"Current geolocation"},{"name":"heading","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"For live locations, a direction in which the location moves, in degrees; 1-360."},{"name":"period","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Validity period of the current location"},{"name":"proximity_notification_radius","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)"}]},{"kind":"class","name":"inputMediaPoll","type":"InputMedia","id":261416433,"comment":"A poll","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"poll","type":"Poll","comment":"The poll to send"},{"name":"correct_answers","type":"bytes","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Correct answer IDs (for quiz polls)"},{"name":"solution","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Explanation of quiz solution"},{"name":"solution_entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"}]},{"kind":"class","name":"inputMediaDice","type":"InputMedia","id":3866083195,"comment":"Send a dice-based animated sticker","arguments":[{"name":"emoticon","type":"string","comment":"The emoji, for now \"๐Ÿ€\", \"๐ŸŽฒ\" and \"๐ŸŽฏ\" are supported"}]},{"kind":"class","name":"inputMediaStory","type":"InputMedia","id":2315114360,"comment":"Forwarded story","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the story was posted"},{"name":"id","type":"int","comment":"Story ID"}]},{"kind":"class","name":"inputMediaWebPage","type":"InputMedia","id":3256584265,"comment":"Specifies options that will be used to generate the link preview for the caption, or even a standalone link preview without an attached message.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"force_large_media","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, specifies that a large media preview should be used."},{"name":"force_small_media","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, specifies that a small media preview should be used."},{"name":"optional","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If not set, a WEBPAGE_NOT_FOUND RPC error will be emitted if a webpage preview cannot be generated for the specified url; otherwise, no error will be emitted (unless the provided message is also empty, in which case a MESSAGE_EMPTY will be emitted, instead)."},{"name":"url","type":"string","comment":"The URL to use for the link preview."}]},{"kind":"class","name":"inputChatPhotoEmpty","type":"InputChatPhoto","id":480546647,"comment":"Empty constructor, remove group photo.","arguments":[]},{"kind":"class","name":"inputChatUploadedPhoto","type":"InputChatPhoto","id":3184373440,"comment":"New photo to be set as group profile photo.\n\nThe file, video and video_emoji_markup flags are mutually exclusive.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"file","type":"InputFile","typeModifiers":{"predicate":"flags.0"},"comment":"File saved in parts using the method {@link upload.RawSaveFilePartRequest}"},{"name":"video","type":"InputFile","typeModifiers":{"predicate":"flags.1"},"comment":"Square video for animated profile picture"},{"name":"video_start_ts","type":"double","typeModifiers":{"predicate":"flags.2"},"comment":"Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if video or video_emoji_markup is set."},{"name":"video_emoji_markup","type":"VideoSize","typeModifiers":{"predicate":"flags.3"},"comment":"Animated sticker profile picture, must contain either a {@link RawVideoSizeEmojiMarkup} or a {@link RawVideoSizeStickerMarkup} constructor."}]},{"kind":"class","name":"inputChatPhoto","type":"InputChatPhoto","id":2303962423,"comment":"Existing photo to be set as a chat profile photo.","arguments":[{"name":"id","type":"InputPhoto","comment":"Existing photo"}]},{"kind":"class","name":"inputGeoPointEmpty","type":"InputGeoPoint","id":3837862870,"comment":"Empty GeoPoint constructor.","arguments":[]},{"kind":"class","name":"inputGeoPoint","type":"InputGeoPoint","id":1210199983,"comment":"Defines a GeoPoint by its coordinates.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"lat","type":"double","comment":"Latitude"},{"name":"long","type":"double","comment":"Longitude"},{"name":"accuracy_radius","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"The estimated horizontal accuracy of the location, in meters; as defined by the sender."}]},{"kind":"class","name":"inputPhotoEmpty","type":"InputPhoto","id":483901197,"comment":"Empty constructor.","arguments":[]},{"kind":"class","name":"inputPhoto","type":"InputPhoto","id":1001634122,"comment":"Defines a photo for further interaction.","arguments":[{"name":"id","type":"long","comment":"Photo identifier"},{"name":"access_hash","type":"long","comment":"access_hash value from the {@link RawPhoto} constructor"},{"name":"file_reference","type":"bytes","comment":"File reference"}]},{"kind":"class","name":"inputFileLocation","type":"InputFileLocation","id":3755650017,"comment":"DEPRECATED location of a photo","arguments":[{"name":"volume_id","type":"long","comment":"Server volume"},{"name":"local_id","type":"int","comment":"File identifier"},{"name":"secret","type":"long","comment":"Check sum to access the file"},{"name":"file_reference","type":"bytes","comment":"File reference"}]},{"kind":"class","name":"inputEncryptedFileLocation","type":"InputFileLocation","id":4112735573,"comment":"Location of encrypted secret chat file.","arguments":[{"name":"id","type":"long","comment":"File ID, id parameter value from {@link RawEncryptedFile}"},{"name":"access_hash","type":"long","comment":"Checksum, access_hash parameter value from {@link RawEncryptedFile}"}]},{"kind":"class","name":"inputDocumentFileLocation","type":"InputFileLocation","id":3134223748,"comment":"Document location (video, voice, audio, basically every type except photo)","arguments":[{"name":"id","type":"long","comment":"Document ID"},{"name":"access_hash","type":"long","comment":"access_hash parameter from the {@link RawDocument} constructor"},{"name":"file_reference","type":"bytes","comment":"File reference"},{"name":"thumb_size","type":"string","comment":"Thumbnail size to download the thumbnail"}]},{"kind":"class","name":"inputSecureFileLocation","type":"InputFileLocation","id":3418877480,"comment":"Location of encrypted telegram passport file.","arguments":[{"name":"id","type":"long","comment":"File ID, id parameter value from {@link RawSecureFile}"},{"name":"access_hash","type":"long","comment":"Checksum, access_hash parameter value from {@link RawSecureFile}"}]},{"kind":"class","name":"inputTakeoutFileLocation","type":"InputFileLocation","id":700340377,"comment":"Used to download a JSON file that will contain all personal data related to features that do not have a specialized takeout method yet, see here ยป for more info on the takeout API.","arguments":[]},{"kind":"class","name":"inputPhotoFileLocation","type":"InputFileLocation","id":1075322878,"comment":"Use this object to download a photo with {@link upload.RawGetFileRequest} method","arguments":[{"name":"id","type":"long","comment":"Photo ID, obtained from the {@link RawPhoto} object"},{"name":"access_hash","type":"long","comment":"Photo's access hash, obtained from the {@link RawPhoto} object"},{"name":"file_reference","type":"bytes","comment":"File reference"},{"name":"thumb_size","type":"string","comment":"The PhotoSize to download: must be set to the type field of the desired PhotoSize object of the {@link RawPhoto}"}]},{"kind":"class","name":"inputPhotoLegacyFileLocation","type":"InputFileLocation","id":3627312883,"comment":"DEPRECATED legacy photo file location","arguments":[{"name":"id","type":"long","comment":"Photo ID"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"file_reference","type":"bytes","comment":"File reference"},{"name":"volume_id","type":"long","comment":"Volume ID"},{"name":"local_id","type":"int","comment":"Local ID"},{"name":"secret","type":"long","comment":"Secret"}]},{"kind":"class","name":"inputPeerPhotoFileLocation","type":"InputFileLocation","id":925204121,"comment":"Location of profile photo of channel/group/supergroup/user","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"big","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to download the high-quality version of the picture"},{"name":"peer","type":"InputPeer","comment":"The peer whose profile picture should be downloaded"},{"name":"photo_id","type":"long","comment":"Photo ID"}]},{"kind":"class","name":"inputStickerSetThumb","type":"InputFileLocation","id":2642736091,"comment":"Location of stickerset thumbnail (see files)","arguments":[{"name":"stickerset","type":"InputStickerSet","comment":"Sticker set"},{"name":"thumb_version","type":"int","comment":"Thumbnail version"}]},{"kind":"class","name":"inputGroupCallStream","type":"InputFileLocation","id":93890858,"comment":"Chunk of a livestream","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"call","type":"InputGroupCall","comment":"Livestream info"},{"name":"time_ms","type":"long","comment":"Timestamp in milliseconds"},{"name":"scale","type":"int","comment":"Specifies the duration of the video segment to fetch in milliseconds, by bitshifting 1000 to the right scale times: duration_ms := 1000 >> scale"},{"name":"video_channel","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Selected video channel"},{"name":"video_quality","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Selected video quality (0 = lowest, 1 = medium, 2 = best)"}]},{"kind":"class","name":"peerUser","type":"Peer","id":1498486562,"comment":"Chat partner","arguments":[{"name":"user_id","type":"int53","comment":"User identifier"}]},{"kind":"class","name":"peerChat","type":"Peer","id":918946202,"comment":"Group.","arguments":[{"name":"chat_id","type":"int53","comment":"Group identifier"}]},{"kind":"class","name":"peerChannel","type":"Peer","id":2728736542,"comment":"Channel/supergroup","arguments":[{"name":"channel_id","type":"int53","comment":"Channel ID"}]},{"kind":"class","name":"storage.fileUnknown","type":"storage.FileType","id":2861972229,"comment":"Unknown type.","arguments":[]},{"kind":"class","name":"storage.filePartial","type":"storage.FileType","id":1086091090,"comment":"Part of a bigger file.","arguments":[]},{"kind":"class","name":"storage.fileJpeg","type":"storage.FileType","id":8322574,"comment":"JPEG image. MIME type: image/jpeg.","arguments":[]},{"kind":"class","name":"storage.fileGif","type":"storage.FileType","id":3403786975,"comment":"GIF image. MIME type: image/gif.","arguments":[]},{"kind":"class","name":"storage.filePng","type":"storage.FileType","id":172975040,"comment":"PNG image. MIME type: image/png.","arguments":[]},{"kind":"class","name":"storage.filePdf","type":"storage.FileType","id":2921222285,"comment":"PDF document image. MIME type: application/pdf.","arguments":[]},{"kind":"class","name":"storage.fileMp3","type":"storage.FileType","id":1384777335,"comment":"Mp3 audio. MIME type: audio/mpeg.","arguments":[]},{"kind":"class","name":"storage.fileMov","type":"storage.FileType","id":1258941372,"comment":"Quicktime video. MIME type: video/quicktime.","arguments":[]},{"kind":"class","name":"storage.fileMp4","type":"storage.FileType","id":3016663268,"comment":"MPEG-4 video. MIME type: video/mp4.","arguments":[]},{"kind":"class","name":"storage.fileWebp","type":"storage.FileType","id":276907596,"comment":"WEBP image. MIME type: image/webp.","arguments":[]},{"kind":"class","name":"userEmpty","type":"User","id":3552332666,"comment":"Empty constructor, non-existent user.","arguments":[{"name":"id","type":"int53","comment":"User identifier or 0"}]},{"kind":"class","name":"user","type":"User","id":559694904,"comment":"Indicates info about a certain user","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"self","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"Whether this user indicates the currently logged in user"},{"name":"contact","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"Whether this user is a contact"},{"name":"mutual_contact","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"Whether this user is a mutual contact"},{"name":"deleted","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"Whether the account of this user was deleted"},{"name":"bot","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Is this user a bot?"},{"name":"bot_chat_history","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"Can the bot see all messages in groups?"},{"name":"bot_nochats","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"Can the bot be added to groups?"},{"name":"verified","type":"true","typeModifiers":{"predicate":"flags.17"},"comment":"Whether this user is verified"},{"name":"restricted","type":"true","typeModifiers":{"predicate":"flags.18"},"comment":"Access to this user must be restricted for the reason specified in restriction_reason"},{"name":"min","type":"true","typeModifiers":{"predicate":"flags.20"},"comment":"See min"},{"name":"bot_inline_geo","type":"true","typeModifiers":{"predicate":"flags.21"},"comment":"Whether the bot can request our geolocation in inline mode"},{"name":"support","type":"true","typeModifiers":{"predicate":"flags.23"},"comment":"Whether this is an official support user"},{"name":"scam","type":"true","typeModifiers":{"predicate":"flags.24"},"comment":"This may be a scam user"},{"name":"apply_min_photo","type":"true","typeModifiers":{"predicate":"flags.25"},"comment":"If set, the profile picture for this user should be refetched"},{"name":"fake","type":"true","typeModifiers":{"predicate":"flags.26"},"comment":"If set, this user was reported by many users as a fake or scam user: be careful when interacting with them."},{"name":"bot_attach_menu","type":"true","typeModifiers":{"predicate":"flags.27"},"comment":"Whether this bot offers an attachment menu web app"},{"name":"premium","type":"true","typeModifiers":{"predicate":"flags.28"},"comment":"Whether this user is a Telegram Premium user"},{"name":"attach_menu_enabled","type":"true","typeModifiers":{"predicate":"flags.29"},"comment":"Whether we installed the attachment menu web app offered by this bot"},{"name":"flags2","type":"#","comment":"Flags, see TL conditional fields"},{"name":"bot_can_edit","type":"true","typeModifiers":{"predicate":"flags2.1"},"comment":"Whether we can edit the profile picture, name, about text and description of this bot because we own it."},{"name":"close_friend","type":"true","typeModifiers":{"predicate":"flags2.2"},"comment":"Whether we marked this user as a close friend, see here ยป for more info"},{"name":"stories_hidden","type":"true","typeModifiers":{"predicate":"flags2.3"},"comment":"Whether we have hidden ยป all active stories of this user."},{"name":"stories_unavailable","type":"true","typeModifiers":{"predicate":"flags2.4"},"comment":"No stories from this user are visible."},{"name":"contact_require_premium","type":"true","typeModifiers":{"predicate":"flags2.10"}},{"name":"bot_business","type":"true","typeModifiers":{"predicate":"flags2.11"}},{"name":"id","type":"int53","comment":"ID of the user"},{"name":"access_hash","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"Access hash of the user"},{"name":"first_name","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"First name"},{"name":"last_name","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Last name"},{"name":"username","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Username"},{"name":"phone","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"Phone number"},{"name":"photo","type":"UserProfilePhoto","typeModifiers":{"predicate":"flags.5"},"comment":"Profile picture of user"},{"name":"status","type":"UserStatus","typeModifiers":{"predicate":"flags.6"},"comment":"Online status of user"},{"name":"bot_info_version","type":"int","typeModifiers":{"predicate":"flags.14"},"comment":"Version of the {@link RawUserFull}, incremented every time it changes"},{"name":"restriction_reason","type":"RestrictionReason","typeModifiers":{"predicate":"flags.18","isVector":true},"comment":"Contains the reason why access to this user must be restricted."},{"name":"bot_inline_placeholder","type":"string","typeModifiers":{"predicate":"flags.19"},"comment":"Inline placeholder for this inline bot"},{"name":"lang_code","type":"string","typeModifiers":{"predicate":"flags.22"},"comment":"Language code of the user"},{"name":"emoji_status","type":"EmojiStatus","typeModifiers":{"predicate":"flags.30"},"comment":"Emoji status"},{"name":"usernames","type":"Username","typeModifiers":{"predicate":"flags2.0","isVector":true},"comment":"Additional usernames"},{"name":"stories_max_id","type":"int","typeModifiers":{"predicate":"flags2.5"},"comment":"ID of the maximum read story."},{"name":"color","type":"PeerColor","typeModifiers":{"predicate":"flags2.8"},"comment":"The user's accent color."},{"name":"profile_color","type":"PeerColor","typeModifiers":{"predicate":"flags2.9"},"comment":"The user's profile color."}]},{"kind":"class","name":"userProfilePhotoEmpty","type":"UserProfilePhoto","id":1326562017,"comment":"Profile photo has not been set, or was hidden.","arguments":[]},{"kind":"class","name":"userProfilePhoto","type":"UserProfilePhoto","id":2194798342,"comment":"User profile photo.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_video","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether an animated profile picture is available for this user"},{"name":"personal","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this profile photo is only visible to us (i.e. it was set using {@link photos.RawUploadContactProfilePhotoRequest})."},{"name":"photo_id","type":"long","comment":"Identifier of the respective photo"},{"name":"stripped_thumb","type":"bytes","typeModifiers":{"predicate":"flags.1"},"comment":"Stripped thumbnail"},{"name":"dc_id","type":"int","comment":"DC ID where the photo is stored"}]},{"kind":"class","name":"userStatusEmpty","type":"UserStatus","id":164646985,"comment":"User status has not been set yet.","arguments":[]},{"kind":"class","name":"userStatusOnline","type":"UserStatus","id":3988339017,"comment":"Online status of the user.","arguments":[{"name":"expires","type":"int","comment":"Time to expiration of the current online status"}]},{"kind":"class","name":"userStatusOffline","type":"UserStatus","id":9203775,"comment":"The user's offline status.","arguments":[{"name":"was_online","type":"int","comment":"Time the user was last seen online"}]},{"kind":"class","name":"userStatusRecently","id":2065268168,"type":"UserStatus","arguments":[{"name":"flags","type":"#"},{"name":"by_me","type":"true","typeModifiers":{"predicate":"flags.0"}}],"comment":"Online status: last seen recently"},{"kind":"class","name":"userStatusLastWeek","id":1410997530,"type":"UserStatus","arguments":[{"name":"flags","type":"#"},{"name":"by_me","type":"true","typeModifiers":{"predicate":"flags.0"}}],"comment":"Online status: last seen last week"},{"kind":"class","name":"userStatusLastMonth","id":1703516023,"type":"UserStatus","arguments":[{"name":"flags","type":"#"},{"name":"by_me","type":"true","typeModifiers":{"predicate":"flags.0"}}],"comment":"Online status: last seen last month"},{"kind":"class","name":"chatEmpty","type":"Chat","id":693512293,"comment":"Empty constructor, group doesn't exist","arguments":[{"name":"id","type":"int53","comment":"Group identifier"}]},{"kind":"class","name":"chat","type":"Chat","id":1103884886,"comment":"Info about a group","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"creator","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the current user is the creator of the group"},{"name":"left","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the current user has left the group"},{"name":"deactivated","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether the group was migrated"},{"name":"call_active","type":"true","typeModifiers":{"predicate":"flags.23"},"comment":"Whether a group call is currently active"},{"name":"call_not_empty","type":"true","typeModifiers":{"predicate":"flags.24"},"comment":"Whether there's anyone in the group call"},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.25"},"comment":"Whether this group is protected, thus does not allow forwarding messages from it"},{"name":"id","type":"int53","comment":"ID of the group"},{"name":"title","type":"string","comment":"Title"},{"name":"photo","type":"ChatPhoto","comment":"Chat photo"},{"name":"participants_count","type":"int","comment":"Participant count"},{"name":"date","type":"int","comment":"Date of creation of the group"},{"name":"version","type":"int","comment":"Used in basic groups to reorder updates and make sure that all of them were received."},{"name":"migrated_to","type":"InputChannel","typeModifiers":{"predicate":"flags.6"},"comment":"Means this chat was upgraded to a supergroup"},{"name":"admin_rights","type":"ChatAdminRights","typeModifiers":{"predicate":"flags.14"},"comment":"Admin rights of the user in the group"},{"name":"default_banned_rights","type":"ChatBannedRights","typeModifiers":{"predicate":"flags.18"},"comment":"Default banned rights of all users in the group"}]},{"kind":"class","name":"chatForbidden","type":"Chat","id":1704108455,"comment":"A group to which the user has no access. E.g., because the user was kicked from the group.","arguments":[{"name":"id","type":"int53","comment":"User identifier"},{"name":"title","type":"string","comment":"Group name"}]},{"kind":"class","name":"channel","type":"Chat","id":179174543,"comment":"Channel/supergroup info","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"creator","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the current user is the creator of this channel"},{"name":"left","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the current user has left or is not a member of this channel"},{"name":"broadcast","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Is this a channel?"},{"name":"verified","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Is this channel verified by telegram?"},{"name":"megagroup","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"Is this a supergroup?"},{"name":"restricted","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"Whether viewing/writing in this channel for a reason (see restriction_reason"},{"name":"signatures","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"Whether signatures are enabled (channels)"},{"name":"min","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"See min"},{"name":"scam","type":"true","typeModifiers":{"predicate":"flags.19"},"comment":"This channel/supergroup is probably a scam"},{"name":"has_link","type":"true","typeModifiers":{"predicate":"flags.20"},"comment":"Whether this channel has a private join link"},{"name":"has_geo","type":"true","typeModifiers":{"predicate":"flags.21"},"comment":"Whether this channel has a geo position"},{"name":"slowmode_enabled","type":"true","typeModifiers":{"predicate":"flags.22"},"comment":"Whether slow mode is enabled for groups to prevent flood in chat"},{"name":"call_active","type":"true","typeModifiers":{"predicate":"flags.23"},"comment":"Whether a group call or livestream is currently active"},{"name":"call_not_empty","type":"true","typeModifiers":{"predicate":"flags.24"},"comment":"Whether there's anyone in the group call or livestream"},{"name":"fake","type":"true","typeModifiers":{"predicate":"flags.25"},"comment":"If set, this supergroup/channel was reported by many users as a fake or scam: be careful when interacting with it."},{"name":"gigagroup","type":"true","typeModifiers":{"predicate":"flags.26"},"comment":"Whether this supergroup is a gigagroup"},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.27"},"comment":"Whether this channel or group is protected, thus does not allow forwarding messages from it"},{"name":"join_to_send","type":"true","typeModifiers":{"predicate":"flags.28"},"comment":"Whether a user needs to join the supergroup before they can send messages: can be false only for discussion groups ยป, toggle using {@link channels.RawToggleJoinToSendRequest}"},{"name":"join_request","type":"true","typeModifiers":{"predicate":"flags.29"},"comment":"Whether a user's join request will have to be approved by administrators, toggle using {@link channels.RawToggleJoinRequestRequest}"},{"name":"forum","type":"true","typeModifiers":{"predicate":"flags.30"},"comment":"Whether this supergroup is a forum"},{"name":"flags2","type":"#","comment":"Flags, see TL conditional fields"},{"name":"stories_hidden","type":"true","typeModifiers":{"predicate":"flags2.1"},"comment":"Whether we have hidden all stories posted by this channel ยป."},{"name":"stories_hidden_min","type":"true","typeModifiers":{"predicate":"flags2.2"},"comment":"If set, indicates that the stories_hidden flag was not populated, and its value must cannot be relied on; use the previously cached value, or re-fetch the constructor using {@link channels.RawGetChannelsRequest} to obtain the latest value of the stories_hidden flag."},{"name":"stories_unavailable","type":"true","typeModifiers":{"predicate":"flags2.3"},"comment":"No stories from the channel are visible."},{"name":"id","type":"int53","comment":"ID of the channel"},{"name":"access_hash","type":"long","typeModifiers":{"predicate":"flags.13"},"comment":"Access hash"},{"name":"title","type":"string","comment":"Title"},{"name":"username","type":"string","typeModifiers":{"predicate":"flags.6"},"comment":"Username"},{"name":"photo","type":"ChatPhoto","comment":"Profile photo"},{"name":"date","type":"int","comment":"Date when the user joined the supergroup/channel, or if the user isn't a member, its creation date"},{"name":"restriction_reason","type":"RestrictionReason","typeModifiers":{"predicate":"flags.9","isVector":true},"comment":"Contains the reason why access to this channel must be restricted."},{"name":"admin_rights","type":"ChatAdminRights","typeModifiers":{"predicate":"flags.14"},"comment":"Admin rights of the user in this channel (see rights)"},{"name":"banned_rights","type":"ChatBannedRights","typeModifiers":{"predicate":"flags.15"},"comment":"Banned rights of the user in this channel (see rights)"},{"name":"default_banned_rights","type":"ChatBannedRights","typeModifiers":{"predicate":"flags.18"},"comment":"Default chat rights (see rights)"},{"name":"participants_count","type":"int","typeModifiers":{"predicate":"flags.17"},"comment":"Participant count"},{"name":"usernames","type":"Username","typeModifiers":{"predicate":"flags2.0","isVector":true},"comment":"Additional usernames"},{"name":"stories_max_id","type":"int","typeModifiers":{"predicate":"flags2.4"},"comment":"ID of the maximum read story."},{"name":"color","type":"PeerColor","typeModifiers":{"predicate":"flags2.7"},"comment":"The channel's accent color."},{"name":"profile_color","type":"PeerColor","typeModifiers":{"predicate":"flags2.8"},"comment":"The channel's profile color."},{"name":"emoji_status","type":"EmojiStatus","typeModifiers":{"predicate":"flags2.9"},"comment":"Emoji status"},{"name":"level","type":"int","typeModifiers":{"predicate":"flags2.10"},"comment":"Boost level"}]},{"kind":"class","name":"channelForbidden","type":"Chat","id":399807445,"comment":"Indicates a channel/supergroup we can't access because we were banned, or for some other reason.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"broadcast","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Is this a channel"},{"name":"megagroup","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"Is this a supergroup"},{"name":"id","type":"int53","comment":"Channel ID"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"title","type":"string","comment":"Title"},{"name":"until_date","type":"int","typeModifiers":{"predicate":"flags.16"},"comment":"The ban is valid until the specified date"}]},{"kind":"class","name":"chatFull","id":640893467,"type":"ChatFull","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"can_set_username","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Can we change the username of this chat"},{"name":"has_scheduled","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"Whether scheduled messages are available"},{"name":"translations_disabled","type":"true","typeModifiers":{"predicate":"flags.19"},"comment":"Whether the real-time chat translation popup should be hidden."},{"name":"id","type":"int53","comment":"ID of the chat"},{"name":"about","type":"string","comment":"About string for this chat"},{"name":"participants","type":"ChatParticipants","comment":"Participant list"},{"name":"chat_photo","type":"Photo","typeModifiers":{"predicate":"flags.2"},"comment":"Chat photo"},{"name":"notify_settings","type":"PeerNotifySettings","comment":"Notification settings"},{"name":"exported_invite","type":"ExportedChatInvite","typeModifiers":{"predicate":"flags.13"},"comment":"Chat invite"},{"name":"bot_info","type":"BotInfo","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Info about bots that are in this chat"},{"name":"pinned_msg_id","type":"int","typeModifiers":{"predicate":"flags.6"},"comment":"Message ID of the last pinned message"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.11"},"comment":"Peer folder ID, for more info click here"},{"name":"call","type":"InputGroupCall","typeModifiers":{"predicate":"flags.12"},"comment":"Group call information"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.14"},"comment":"Time-To-Live of messages sent by the current user to this chat"},{"name":"groupcall_default_join_as","type":"Peer","typeModifiers":{"predicate":"flags.15"},"comment":"When using {@link phone.RawGetGroupCallJoinAsRequest} to get a list of peers that can be used to join a group call, this field indicates the peer that should be selected by default."},{"name":"theme_emoticon","type":"string","typeModifiers":{"predicate":"flags.16"},"comment":"Emoji representing a specific chat theme"},{"name":"requests_pending","type":"int","typeModifiers":{"predicate":"flags.17"},"comment":"Pending join requests ยป"},{"name":"recent_requesters","type":"long","typeModifiers":{"predicate":"flags.17","isVector":true},"comment":"IDs of users who requested to join recently"},{"name":"available_reactions","type":"ChatReactions","typeModifiers":{"predicate":"flags.18"},"comment":"Allowed message reactions ยป"},{"name":"reactions_limit","type":"int","typeModifiers":{"predicate":"flags.20"}}],"comment":"Full info about a basic group."},{"kind":"class","name":"channelFull","id":3148559501,"type":"ChatFull","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"can_view_participants","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Can we view the participant list?"},{"name":"can_set_username","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Can we set the channel's username?"},{"name":"can_set_stickers","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Can we {@link channels.RawSetStickersRequest} a stickerpack to the supergroup?"},{"name":"hidden_prehistory","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"Is the history before we joined hidden to us?"},{"name":"can_set_location","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"Can we set the geolocation of this group (for geogroups)"},{"name":"has_scheduled","type":"true","typeModifiers":{"predicate":"flags.19"},"comment":"Whether scheduled messages are available"},{"name":"can_view_stats","type":"true","typeModifiers":{"predicate":"flags.20"},"comment":"Can the user view channel/supergroup statistics"},{"name":"blocked","type":"true","typeModifiers":{"predicate":"flags.22"},"comment":"Whether any anonymous admin of this supergroup was blocked: if set, you won't receive messages from anonymous group admins in discussion replies via @replies"},{"name":"flags2","type":"#","comment":"Flags, see TL conditional fields"},{"name":"can_delete_channel","type":"true","typeModifiers":{"predicate":"flags2.0"},"comment":"Can we delete this channel?"},{"name":"antispam","type":"true","typeModifiers":{"predicate":"flags2.1"},"comment":"Whether native antispam functionality is enabled in this supergroup."},{"name":"participants_hidden","type":"true","typeModifiers":{"predicate":"flags2.2"},"comment":"Whether the participant list is hidden."},{"name":"translations_disabled","type":"true","typeModifiers":{"predicate":"flags2.3"},"comment":"Whether the real-time chat translation popup should be hidden."},{"name":"stories_pinned_available","type":"true","typeModifiers":{"predicate":"flags2.5"},"comment":"Whether this user has some pinned stories."},{"name":"view_forum_as_messages","type":"true","typeModifiers":{"predicate":"flags2.6"},"comment":"Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a \"View as messages\" setting in the local client.
This setting only affects the current account, and is synced to other logged in sessions using the {@link channels.RawToggleViewForumAsMessagesRequest} method; invoking this method will update the value of this flag."},{"name":"restricted_sponsored","type":"true","typeModifiers":{"predicate":"flags2.11"}},{"name":"can_view_revenue","type":"true","typeModifiers":{"predicate":"flags2.12"}},{"name":"id","type":"int53","comment":"ID of the channel"},{"name":"about","type":"string","comment":"Info about the channel"},{"name":"participants_count","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Number of participants of the channel"},{"name":"admins_count","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Number of channel admins"},{"name":"kicked_count","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Number of users kicked from the channel"},{"name":"banned_count","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Number of users banned from the channel"},{"name":"online_count","type":"int","typeModifiers":{"predicate":"flags.13"},"comment":"Number of users currently online"},{"name":"read_inbox_max_id","type":"int","comment":"Position up to which all incoming messages are read."},{"name":"read_outbox_max_id","type":"int","comment":"Position up to which all outgoing messages are read."},{"name":"unread_count","type":"int","comment":"Count of unread messages"},{"name":"chat_photo","type":"Photo","comment":"Channel picture"},{"name":"notify_settings","type":"PeerNotifySettings","comment":"Notification settings"},{"name":"exported_invite","type":"ExportedChatInvite","typeModifiers":{"predicate":"flags.23"},"comment":"Invite link"},{"name":"bot_info","type":"BotInfo","typeModifiers":{"isVector":true},"comment":"Info about bots in the channel/supergroup"},{"name":"migrated_from_chat_id","type":"long","typeModifiers":{"predicate":"flags.4"},"comment":"The chat ID from which this group was migrated"},{"name":"migrated_from_max_id","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"The message ID in the original chat at which this group was migrated"},{"name":"pinned_msg_id","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"Message ID of the last pinned message"},{"name":"stickerset","type":"StickerSet","typeModifiers":{"predicate":"flags.8"},"comment":"Associated stickerset"},{"name":"available_min_id","type":"int","typeModifiers":{"predicate":"flags.9"},"comment":"Identifier of a maximum unavailable message in a channel due to hidden history."},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.11"},"comment":"Peer folder ID, for more info click here"},{"name":"linked_chat_id","type":"int53","typeModifiers":{"predicate":"flags.14"},"comment":"ID of the linked discussion chat for channels"},{"name":"location","type":"ChannelLocation","typeModifiers":{"predicate":"flags.15"},"comment":"Location of the geo group"},{"name":"slowmode_seconds","type":"int","typeModifiers":{"predicate":"flags.17"},"comment":"If specified, users in supergroups will only be able to send one message every slowmode_seconds seconds"},{"name":"slowmode_next_send_date","type":"int","typeModifiers":{"predicate":"flags.18"},"comment":"Indicates when the user will be allowed to send another message in the supergroup (unixtime)"},{"name":"stats_dc","type":"int","typeModifiers":{"predicate":"flags.12"},"comment":"If set, specifies the DC to use for fetching channel statistics"},{"name":"pts","type":"int","comment":"Latest PTS for this channel"},{"name":"call","type":"InputGroupCall","typeModifiers":{"predicate":"flags.21"},"comment":"Livestream or group call information"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.24"},"comment":"Time-To-Live of messages in this channel or supergroup"},{"name":"pending_suggestions","type":"string","typeModifiers":{"predicate":"flags.25","isVector":true},"comment":"A list of suggested actions for the supergroup admin, see here for more info ยป."},{"name":"groupcall_default_join_as","type":"Peer","typeModifiers":{"predicate":"flags.26"},"comment":"When using {@link phone.RawGetGroupCallJoinAsRequest} to get a list of peers that can be used to join a group call, this field indicates the peer that should be selected by default."},{"name":"theme_emoticon","type":"string","typeModifiers":{"predicate":"flags.27"},"comment":"Emoji representing a specific chat theme"},{"name":"requests_pending","type":"int","typeModifiers":{"predicate":"flags.28"},"comment":"Pending join requests ยป"},{"name":"recent_requesters","type":"long","typeModifiers":{"predicate":"flags.28","isVector":true},"comment":"IDs of users who requested to join recently"},{"name":"default_send_as","type":"Peer","typeModifiers":{"predicate":"flags.29"},"comment":"Default peer used for sending messages to this channel"},{"name":"available_reactions","type":"ChatReactions","typeModifiers":{"predicate":"flags.30"},"comment":"Allowed message reactions ยป"},{"name":"reactions_limit","type":"int","typeModifiers":{"predicate":"flags2.13"}},{"name":"stories","type":"PeerStories","typeModifiers":{"predicate":"flags2.4"},"comment":"Channel stories"},{"name":"wallpaper","type":"WallPaper","typeModifiers":{"predicate":"flags2.7"},"comment":"Wallpaper"},{"name":"boosts_applied","type":"int","typeModifiers":{"predicate":"flags2.8"}},{"name":"boosts_unrestrict","type":"int","typeModifiers":{"predicate":"flags2.9"}},{"name":"emojiset","type":"StickerSet","typeModifiers":{"predicate":"flags2.10"}}],"comment":"Full info about a channel, supergroup or gigagroup."},{"kind":"class","name":"chatParticipant","type":"ChatParticipant","id":3224190983,"comment":"Group member.","arguments":[{"name":"user_id","type":"int53","comment":"Member user ID"},{"name":"inviter_id","type":"int53","comment":"ID of the user that added the member to the group"},{"name":"date","type":"int","comment":"Date added to the group"}]},{"kind":"class","name":"chatParticipantCreator","type":"ChatParticipant","id":3832270564,"comment":"Represents the creator of the group","arguments":[{"name":"user_id","type":"int53","comment":"ID of the user that created the group"}]},{"kind":"class","name":"chatParticipantAdmin","type":"ChatParticipant","id":2694004571,"comment":"Chat admin","arguments":[{"name":"user_id","type":"int53","comment":"ID of a group member that is admin"},{"name":"inviter_id","type":"int53","comment":"ID of the user that added the member to the group"},{"name":"date","type":"int","comment":"Date when the user was added"}]},{"kind":"class","name":"chatParticipantsForbidden","type":"ChatParticipants","id":2271466465,"comment":"Info on members is unavailable","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"chat_id","type":"int53","comment":"Group ID"},{"name":"self_participant","type":"ChatParticipant","typeModifiers":{"predicate":"flags.0"},"comment":"Info about the group membership of the current user"}]},{"kind":"class","name":"chatParticipants","type":"ChatParticipants","id":1018991608,"comment":"Group members.","arguments":[{"name":"chat_id","type":"int53","comment":"Group identifier"},{"name":"participants","type":"ChatParticipant","typeModifiers":{"isVector":true},"comment":"List of group members"},{"name":"version","type":"int","comment":"Group version number"}]},{"kind":"class","name":"chatPhotoEmpty","type":"ChatPhoto","id":935395612,"comment":"Group photo is not set.","arguments":[]},{"kind":"class","name":"chatPhoto","type":"ChatPhoto","id":476978193,"comment":"Group profile photo.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_video","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the user has an animated profile picture"},{"name":"photo_id","type":"long","comment":"Photo ID"},{"name":"stripped_thumb","type":"bytes","typeModifiers":{"predicate":"flags.1"},"comment":"Stripped thumbnail"},{"name":"dc_id","type":"int","comment":"DC where this photo is stored"}]},{"kind":"class","name":"messageEmpty","type":"Message","id":2426849924,"comment":"Empty constructor, non-existent message.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"int","comment":"Message identifier"},{"name":"peer_id","type":"Peer","typeModifiers":{"predicate":"flags.0"},"comment":"Peer ID, the chat where this message was sent"}]},{"kind":"class","name":"message","id":2486456898,"type":"Message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"out","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Is this an outgoing message"},{"name":"mentioned","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether we were mentioned in this message"},{"name":"media_unread","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether there are unread media attachments in this message"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"Whether this is a silent message (no notification triggered)"},{"name":"post","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Whether this is a channel post"},{"name":"from_scheduled","type":"true","typeModifiers":{"predicate":"flags.18"},"comment":"Whether this is a scheduled message"},{"name":"legacy","type":"true","typeModifiers":{"predicate":"flags.19"},"comment":"This is a legacy message: it has to be refetched with the new layer"},{"name":"edit_hide","type":"true","typeModifiers":{"predicate":"flags.21"},"comment":"Whether the message should be shown as not modified to the user, even if an edit date is present"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.24"},"comment":"Whether this message is pinned"},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.26"},"comment":"Whether this message is protected and thus cannot be forwarded; clients should also prevent users from saving attached media (i.e. videos should only be streamed, photos should be kept in RAM, et cetera)."},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.27"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"flags2","type":"#"},{"name":"offline","type":"true","typeModifiers":{"predicate":"flags2.1"}},{"name":"id","type":"int","comment":"ID of the message"},{"name":"from_id","type":"Peer","typeModifiers":{"predicate":"flags.8"},"comment":"ID of the sender of the message"},{"name":"from_boosts_applied","type":"int","typeModifiers":{"predicate":"flags.29"}},{"name":"peer_id","type":"Peer","comment":"Peer ID, the chat where this message was sent"},{"name":"saved_peer_id","type":"Peer","typeModifiers":{"predicate":"flags.28"},"comment":"Messages fetched from a saved messages dialog ยป will have peer={@link RawInputPeerSelf} and the saved_peer_id flag set to the ID of the saved dialog.
"},{"name":"fwd_from","type":"MessageFwdHeader","typeModifiers":{"predicate":"flags.2"},"comment":"Info about forwarded messages"},{"name":"via_bot_id","type":"int53","typeModifiers":{"predicate":"flags.11"},"comment":"ID of the inline bot that generated the message"},{"name":"via_business_bot_id","type":"int53","typeModifiers":{"predicate":"flags2.0"}},{"name":"reply_to","type":"MessageReplyHeader","typeModifiers":{"predicate":"flags.3"},"comment":"Reply information"},{"name":"date","type":"int","comment":"Date of the message"},{"name":"message","type":"string","comment":"The message"},{"name":"media","type":"MessageMedia","typeModifiers":{"predicate":"flags.9"},"comment":"Media attachment"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.6"},"comment":"Reply markup (bot/inline keyboards)"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.7","isVector":true},"comment":"Message entities for styled text"},{"name":"views","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"View count for channel posts"},{"name":"forwards","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Forward counter"},{"name":"replies","type":"MessageReplies","typeModifiers":{"predicate":"flags.23"},"comment":"Info about post comments (for channels) or message replies (for groups)"},{"name":"edit_date","type":"int","typeModifiers":{"predicate":"flags.15"},"comment":"Last edit date of this message"},{"name":"post_author","type":"string","typeModifiers":{"predicate":"flags.16"},"comment":"Name of the author of this message for channel posts (with signatures enabled)"},{"name":"grouped_id","type":"long","typeModifiers":{"predicate":"flags.17"},"comment":"Multiple media messages sent using {@link messages.RawSendMultiMediaRequest} with the same grouped ID indicate an album or media group"},{"name":"reactions","type":"MessageReactions","typeModifiers":{"predicate":"flags.20"},"comment":"Reactions to this message"},{"name":"restriction_reason","type":"RestrictionReason","typeModifiers":{"predicate":"flags.22","isVector":true},"comment":"Contains the reason why access to this message must be restricted."},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.25"},"comment":"Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well."},{"name":"quick_reply_shortcut_id","type":"int","typeModifiers":{"predicate":"flags.30"}},{"name":"effect","type":"long","typeModifiers":{"predicate":"flags2.2"}},{"name":"factcheck","type":"FactCheck","typeModifiers":{"predicate":"flags2.3"}}],"comment":"A message"},{"kind":"class","name":"messageService","type":"Message","id":721967202,"comment":"Indicates a service message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"out","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the message is outgoing"},{"name":"mentioned","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether we were mentioned in the message"},{"name":"media_unread","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether the message contains unread media"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"Whether the message is silent"},{"name":"post","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Whether it's a channel post"},{"name":"legacy","type":"true","typeModifiers":{"predicate":"flags.19"},"comment":"This is a legacy message: it has to be refetched with the new layer"},{"name":"id","type":"int","comment":"Message ID"},{"name":"from_id","type":"Peer","typeModifiers":{"predicate":"flags.8"},"comment":"ID of the sender of this message"},{"name":"peer_id","type":"Peer","comment":"Sender of service message"},{"name":"reply_to","type":"MessageReplyHeader","typeModifiers":{"predicate":"flags.3"},"comment":"Reply (thread) information"},{"name":"date","type":"int","comment":"Message date"},{"name":"action","type":"MessageAction","comment":"Event connected with the service message"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.25"},"comment":"Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well."}]},{"kind":"class","name":"messageMediaEmpty","type":"MessageMedia","id":1038967584,"comment":"Empty constructor.","arguments":[]},{"kind":"class","name":"messageMediaPhoto","type":"MessageMedia","id":1766936791,"comment":"Attached photo.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"spoiler","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this media should be hidden behind a spoiler warning"},{"name":"photo","type":"Photo","typeModifiers":{"predicate":"flags.0"},"comment":"Photo"},{"name":"ttl_seconds","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Time to live in seconds of self-destructing photo"}]},{"kind":"class","name":"messageMediaGeo","type":"MessageMedia","id":1457575028,"comment":"Attached map.","arguments":[{"name":"geo","type":"GeoPoint","comment":"GeoPoint"}]},{"kind":"class","name":"messageMediaContact","type":"MessageMedia","id":1882335561,"comment":"Attached contact.","arguments":[{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"first_name","type":"string","comment":"Contact's first name"},{"name":"last_name","type":"string","comment":"Contact's last name"},{"name":"vcard","type":"string","comment":"VCARD of contact"},{"name":"user_id","type":"int53","comment":"User identifier or 0, if the user with the given phone number is not registered"}]},{"kind":"class","name":"messageMediaUnsupported","type":"MessageMedia","id":2676290718,"comment":"Current version of the client does not support this media type.","arguments":[]},{"kind":"class","name":"messageMediaDocument","type":"MessageMedia","id":1291114285,"comment":"Document (video, audio, voice, sticker, any media type except photo)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"nopremium","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played."},{"name":"spoiler","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether this media should be hidden behind a spoiler warning"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether this is a video."},{"name":"round","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Whether this is a round video."},{"name":"voice","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"Whether this is a voice message."},{"name":"document","type":"Document","typeModifiers":{"predicate":"flags.0"},"comment":"Attached document"},{"name":"alt_document","type":"Document","typeModifiers":{"predicate":"flags.5"},"comment":"Currently only used for story videos, may contain an alternative version of the story video, explicitly encoded using H.264 (in MPEG4 transport) at a lower resolution than document."},{"name":"ttl_seconds","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Time to live of self-destructing document"}]},{"kind":"class","name":"messageMediaWebPage","type":"MessageMedia","id":3723562043,"comment":"Preview of webpage","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"force_large_media","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, specifies that a large media preview should be used."},{"name":"force_small_media","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, specifies that a small media preview should be used."},{"name":"manual","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, indicates that the URL used for the webpage preview was specified manually using {@link RawInputMediaWebPage}, and may not be related to any of the URLs specified in the message."},{"name":"safe","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If set, the webpage can be opened directly without user confirmation; otherwise, user confirmation is required, showing the exact URL that will be opened."},{"name":"webpage","type":"WebPage","comment":"Webpage preview"}]},{"kind":"class","name":"messageMediaVenue","type":"MessageMedia","id":784356159,"comment":"Venue","arguments":[{"name":"geo","type":"GeoPoint","comment":"Geolocation of venue"},{"name":"title","type":"string","comment":"Venue name"},{"name":"address","type":"string","comment":"Address"},{"name":"provider","type":"string","comment":"Venue provider: currently only \"foursquare\" and \"gplaces\" (Google Places) need to be supported"},{"name":"venue_id","type":"string","comment":"Venue ID in the provider's database"},{"name":"venue_type","type":"string","comment":"Venue type in the provider's database"}]},{"kind":"class","name":"messageMediaGame","type":"MessageMedia","id":4256272392,"comment":"Telegram game","arguments":[{"name":"game","type":"Game","comment":"Game"}]},{"kind":"class","name":"messageMediaInvoice","type":"MessageMedia","id":4138027219,"comment":"Invoice","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"shipping_address_requested","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the shipping address was requested"},{"name":"test","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this is an example invoice"},{"name":"title","type":"string","comment":"Product name, 1-32 characters"},{"name":"description","type":"string","comment":"Product description, 1-255 characters"},{"name":"photo","type":"WebDocument","typeModifiers":{"predicate":"flags.0"},"comment":"URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for."},{"name":"receipt_msg_id","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Message ID of receipt: if set, clients should change the text of the first {@link RawKeyboardButtonBuy} button always attached to the {@link RawMessage} to a localized version of the word Receipt"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"total_amount","type":"long","comment":"Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"start_param","type":"string","comment":"Unique bot deep-linking parameter that can be used to generate this invoice"},{"name":"extended_media","type":"MessageExtendedMedia","typeModifiers":{"predicate":"flags.4"},"comment":"Extended media"}]},{"kind":"class","name":"messageMediaGeoLive","type":"MessageMedia","id":3108030054,"comment":"Indicates a live geolocation","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"geo","type":"GeoPoint","comment":"Geolocation"},{"name":"heading","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"For live locations, a direction in which the location moves, in degrees; 1-360"},{"name":"period","type":"int","comment":"Validity period of provided geolocation"},{"name":"proximity_notification_radius","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)."}]},{"kind":"class","name":"messageMediaPoll","type":"MessageMedia","id":1272375192,"comment":"Poll","arguments":[{"name":"poll","type":"Poll","comment":"The poll"},{"name":"results","type":"PollResults","comment":"The results of the poll"}]},{"kind":"class","name":"messageMediaDice","type":"MessageMedia","id":1065280907,"comment":"Dice-based animated sticker","arguments":[{"name":"value","type":"int","comment":"Dice value"},{"name":"emoticon","type":"string","comment":"The emoji, for now \"๐Ÿ€\", \"๐ŸŽฒ\" and \"๐ŸŽฏ\" are supported"}]},{"kind":"class","name":"messageMediaStory","type":"MessageMedia","id":1758159491,"comment":"Represents a forwarded story or a story mention.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"via_mention","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, indicates that this someone has mentioned us in this story (i.e. by tagging us in the description) or vice versa, we have mentioned the other peer (if the message is outgoing)."},{"name":"peer","type":"Peer","comment":"Peer that posted the story."},{"name":"id","type":"int","comment":"Story ID"},{"name":"story","type":"StoryItem","typeModifiers":{"predicate":"flags.0"},"comment":"The story itself, if absent fetch it using {@link stories.RawGetStoriesByIDRequest} and the peer/id parameters specified above."}]},{"kind":"class","name":"messageMediaGiveaway","type":"MessageMedia","id":3668805040,"comment":"Contains info about a giveaway, see here ยป for more info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"only_new_subscribers","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, only new subscribers starting from the giveaway creation date will be able to participate to the giveaway."},{"name":"winners_are_visible","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, giveaway winners are public and will be listed in a {@link RawMessageMediaGiveawayResults} message that will be automatically sent to the channel once the giveaway ends."},{"name":"channels","type":"int53","typeModifiers":{"isVector":true},"comment":"The channels that the user must join to participate in the giveaway."},{"name":"countries_iso2","type":"string","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"If set, only users residing in these countries can participate in the giveaway, (specified as a list of two-letter ISO 3166-1 alpha-2 country codes); otherwise there are no country-based limitations."},{"name":"prize_description","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Can contain a textual description of additional giveaway prizes."},{"name":"quantity","type":"int","comment":"Number of Telegram Premium subscriptions given away."},{"name":"months","type":"int","comment":"Duration in months of each Telegram Premium subscription in the giveaway."},{"name":"until_date","type":"int","comment":"The end date of the giveaway."}]},{"kind":"class","name":"messageMediaGiveawayResults","type":"MessageMedia","id":3331919976,"comment":"A giveaway with public winners has finished, this constructor contains info about the winners.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"only_new_subscribers","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, only new subscribers starting from the giveaway creation date participated in the giveaway."},{"name":"refunded","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, the giveaway was canceled and was fully refunded."},{"name":"channel_id","type":"long","comment":"ID of the channel that was automatically boosted by the winners of the giveaway for duration of the Premium subscription."},{"name":"additional_peers_count","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Number of other channels that participated in the giveaway."},{"name":"launch_msg_id","type":"int","comment":"Identifier of the message with the giveaway in channel_id."},{"name":"winners_count","type":"int","comment":"Total number of winners in the giveaway."},{"name":"unclaimed_count","type":"int","comment":"Number of not-yet-claimed prizes."},{"name":"winners","type":"long","typeModifiers":{"isVector":true},"comment":"Up to 100 user identifiers of the winners of the giveaway."},{"name":"months","type":"int","comment":"Duration in months of each Telegram Premium subscription in the giveaway."},{"name":"prize_description","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Can contain a textual description of additional giveaway prizes."},{"name":"until_date","type":"int","comment":"Point in time (UNIX timestamp in seconds) when the winners were selected. May be bigger than winners selection date specified in initial parameters of the giveaway."}]},{"kind":"class","name":"messageActionEmpty","type":"MessageAction","id":3064919984,"comment":"Empty constructor.","arguments":[]},{"kind":"class","name":"messageActionChatCreate","type":"MessageAction","id":3175599021,"comment":"Group created","arguments":[{"name":"title","type":"string","comment":"Group name"},{"name":"users","type":"int53","typeModifiers":{"isVector":true},"comment":"List of group members"}]},{"kind":"class","name":"messageActionChatEditTitle","type":"MessageAction","id":3047280218,"comment":"Group name changed.","arguments":[{"name":"title","type":"string","comment":"New group name"}]},{"kind":"class","name":"messageActionChatEditPhoto","type":"MessageAction","id":2144015272,"comment":"Group profile changed","arguments":[{"name":"photo","type":"Photo","comment":"New group profile photo"}]},{"kind":"class","name":"messageActionChatDeletePhoto","type":"MessageAction","id":2514746351,"comment":"Group profile photo removed.","arguments":[]},{"kind":"class","name":"messageActionChatAddUser","type":"MessageAction","id":365886720,"comment":"New member in the group","arguments":[{"name":"users","type":"int53","typeModifiers":{"isVector":true},"comment":"Users that were invited to the chat"}]},{"kind":"class","name":"messageActionChatDeleteUser","type":"MessageAction","id":2755604684,"comment":"User left the group.","arguments":[{"name":"user_id","type":"int53","comment":"Leaving user ID"}]},{"kind":"class","name":"messageActionChatJoinedByLink","type":"MessageAction","id":51520707,"comment":"A user joined the chat via an invite link","arguments":[{"name":"inviter_id","type":"int53","comment":"ID of the user that created the invite link"}]},{"kind":"class","name":"messageActionChannelCreate","type":"MessageAction","id":2513611922,"comment":"The channel was created","arguments":[{"name":"title","type":"string","comment":"Original channel/supergroup title"}]},{"kind":"class","name":"messageActionChatMigrateTo","type":"MessageAction","id":3775102866,"comment":"Indicates the chat was migrated to the specified supergroup","arguments":[{"name":"channel_id","type":"int53","comment":"The supergroup it was migrated to"}]},{"kind":"class","name":"messageActionChannelMigrateFrom","type":"MessageAction","id":3929622761,"comment":"Indicates the channel was migrated from the specified chat","arguments":[{"name":"title","type":"string","comment":"The old chat title"},{"name":"chat_id","type":"int53","comment":"The old chat ID"}]},{"kind":"class","name":"messageActionPinMessage","type":"MessageAction","id":2495428845,"comment":"A message was pinned","arguments":[]},{"kind":"class","name":"messageActionHistoryClear","type":"MessageAction","id":2679813636,"comment":"Chat history was cleared","arguments":[]},{"kind":"class","name":"messageActionGameScore","type":"MessageAction","id":2460428406,"comment":"Someone scored in a game","arguments":[{"name":"game_id","type":"long","comment":"Game ID"},{"name":"score","type":"int","comment":"Score"}]},{"kind":"class","name":"messageActionPaymentSentMe","type":"MessageAction","id":2402399015,"comment":"A user just sent a payment to me (a bot)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"recurring_init","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this is the first payment of a recurring payment we just subscribed to"},{"name":"recurring_used","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this payment is part of a recurring payment"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"total_amount","type":"long","comment":"Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"payload","type":"bytes","comment":"Bot specified invoice payload"},{"name":"info","type":"PaymentRequestedInfo","typeModifiers":{"predicate":"flags.0"},"comment":"Order info provided by the user"},{"name":"shipping_option_id","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Identifier of the shipping option chosen by the user"},{"name":"charge","type":"PaymentCharge","comment":"Provider payment identifier"}]},{"kind":"class","name":"messageActionPaymentSent","type":"MessageAction","id":2518040406,"comment":"A payment was sent","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"recurring_init","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this is the first payment of a recurring payment we just subscribed to"},{"name":"recurring_used","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this payment is part of a recurring payment"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"total_amount","type":"long","comment":"Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"invoice_slug","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"An invoice slug taken from an invoice deep link or from the premium_invoice_slug app config parameter ยป"}]},{"kind":"class","name":"messageActionPhoneCall","type":"MessageAction","id":2162236031,"comment":"A phone call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Is this a video call?"},{"name":"call_id","type":"long","comment":"Call ID"},{"name":"reason","type":"PhoneCallDiscardReason","typeModifiers":{"predicate":"flags.0"},"comment":"If the call has ended, the reason why it ended"},{"name":"duration","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Duration of the call in seconds"}]},{"kind":"class","name":"messageActionScreenshotTaken","type":"MessageAction","id":1200788123,"comment":"A screenshot of the chat was taken","arguments":[]},{"kind":"class","name":"messageActionCustomAction","type":"MessageAction","id":4209418070,"comment":"Custom action (most likely not supported by the current layer, an upgrade might be needed)","arguments":[{"name":"message","type":"string","comment":"Action message"}]},{"kind":"class","name":"messageActionBotAllowed","type":"MessageAction","id":3306608249,"comment":"We have given the bot permission to send us direct messages.\n\nThe optional fields specify how did we authorize the bot to send us messages.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"attach_menu","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"We have authorized the bot to send us messages by installing the bot's attachment menu."},{"name":"from_request","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"We have allowed the bot to send us messages using {@link bots.RawAllowSendMessageRequest}."},{"name":"domain","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"We have authorized the bot to send us messages by logging into a website via Telegram Login ยป; this field contains the domain name of the website on which the user has logged in."},{"name":"app","type":"BotApp","typeModifiers":{"predicate":"flags.2"},"comment":"We have authorized the bot to send us messages by opening the specified bot mini app."}]},{"kind":"class","name":"messageActionSecureValuesSentMe","type":"MessageAction","id":455635795,"comment":"Secure telegram passport values were received","arguments":[{"name":"values","type":"SecureValue","typeModifiers":{"isVector":true},"comment":"Vector with information about documents and other Telegram Passport elements that were shared with the bot"},{"name":"credentials","type":"SecureCredentialsEncrypted","comment":"Encrypted credentials required to decrypt the data"}]},{"kind":"class","name":"messageActionSecureValuesSent","type":"MessageAction","id":3646710100,"comment":"Request for secure telegram passport values was sent","arguments":[{"name":"types","type":"SecureValueType","typeModifiers":{"isVector":true},"comment":"Secure value types"}]},{"kind":"class","name":"messageActionContactSignUp","type":"MessageAction","id":4092747638,"comment":"A contact just signed up to telegram","arguments":[]},{"kind":"class","name":"messageActionGeoProximityReached","type":"MessageAction","id":2564871831,"comment":"A user of the chat is now in proximity of another user","arguments":[{"name":"from_id","type":"Peer","comment":"The user or chat that is now in proximity of to_id"},{"name":"to_id","type":"Peer","comment":"The user or chat that subscribed to live geolocation proximity alerts"},{"name":"distance","type":"int","comment":"Distance, in meters (0-100000)"}]},{"kind":"class","name":"messageActionGroupCall","type":"MessageAction","id":2047704898,"comment":"The group call has ended","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"call","type":"InputGroupCall","comment":"Group call"},{"name":"duration","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Group call duration"}]},{"kind":"class","name":"messageActionInviteToGroupCall","type":"MessageAction","id":1345295095,"comment":"A set of users was invited to the group call","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call"},{"name":"users","type":"int53","typeModifiers":{"isVector":true},"comment":"The invited users"}]},{"kind":"class","name":"messageActionSetMessagesTTL","type":"MessageAction","id":1007897979,"comment":"The Time-To-Live of messages in this chat was changed.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"period","type":"int","comment":"New Time-To-Live of all messages sent in this chat; if 0, autodeletion was disabled."},{"name":"auto_setting_from","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"If set, the chat TTL setting was set not due to a manual change by one of participants, but automatically because one of the participants has the {@link messages.RawSetDefaultHistoryTTLRequest}. For example, when a user writes to us for the first time and we have set a default messages TTL of 1 week, this service message (with auto_setting_from=our_userid) will be emitted before our first message."}]},{"kind":"class","name":"messageActionGroupCallScheduled","type":"MessageAction","id":3013637729,"comment":"A group call was scheduled","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call"},{"name":"schedule_date","type":"int","comment":"When is this group call scheduled to start"}]},{"kind":"class","name":"messageActionSetChatTheme","type":"MessageAction","id":2860016453,"comment":"The chat theme was changed","arguments":[{"name":"emoticon","type":"string","comment":"The emoji that identifies a chat theme"}]},{"kind":"class","name":"messageActionChatJoinedByRequest","type":"MessageAction","id":3955008459,"comment":"A user was accepted into the group by an admin","arguments":[]},{"kind":"class","name":"messageActionWebViewDataSentMe","type":"MessageAction","id":1205698681,"comment":"Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (bot side service message).","arguments":[{"name":"text","type":"string","comment":"Text of the {@link RawKeyboardButtonSimpleWebView} that was pressed to open the web app."},{"name":"data","type":"string","comment":"Relayed data."}]},{"kind":"class","name":"messageActionWebViewDataSent","type":"MessageAction","id":3032714421,"comment":"Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (user side service message).\n\nClients should display a service message with the text Data from the ยซ$textยป button was transferred to the bot.","arguments":[{"name":"text","type":"string","comment":"Text of the {@link RawKeyboardButtonSimpleWebView} that was pressed to open the web app."}]},{"kind":"class","name":"messageActionGiftPremium","type":"MessageAction","id":3359468268,"comment":"Info about a gifted Telegram Premium subscription","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"amount","type":"long","comment":"Price of the gift in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"months","type":"int","comment":"Duration of the gifted Telegram Premium subscription"},{"name":"crypto_currency","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"If the gift was bought using a cryptocurrency, the cryptocurrency name."},{"name":"crypto_amount","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"If the gift was bought using a cryptocurrency, price of the gift in the smallest units of a cryptocurrency."}]},{"kind":"class","name":"messageActionTopicCreate","type":"MessageAction","id":228168278,"comment":"A forum topic was created.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"title","type":"string","comment":"Topic name."},{"name":"icon_color","type":"int","comment":"If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F."},{"name":"icon_emoji_id","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"ID of the custom emoji used as topic icon."}]},{"kind":"class","name":"messageActionTopicEdit","type":"MessageAction","id":3230943264,"comment":"Forum topic information was edited.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"New topic title."},{"name":"icon_emoji_id","type":"long","typeModifiers":{"predicate":"flags.1"},"comment":"ID of the new custom emoji used as topic icon, or if it was removed."},{"name":"closed","type":"Bool","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the topic was opened or closed."},{"name":"hidden","type":"Bool","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the topic was hidden or unhidden (only valid for the \"General\" topic, id=1)."}]},{"kind":"class","name":"messageActionSuggestProfilePhoto","type":"MessageAction","id":1474192222,"comment":"A new profile picture was suggested using {@link photos.RawUploadContactProfilePhotoRequest}.","arguments":[{"name":"photo","type":"Photo","comment":"The photo that the user suggested we set as profile picture."}]},{"kind":"class","name":"messageActionRequestedPeer","type":"MessageAction","id":827428507,"comment":"Contains info about one or more peers that the user shared with the bot after clicking on a {@link RawKeyboardButtonRequestPeer} button.","arguments":[{"name":"button_id","type":"int","comment":"button_id contained in the {@link RawKeyboardButtonRequestPeer}"},{"name":"peers","type":"Peer","typeModifiers":{"isVector":true},"comment":"The shared peers"}]},{"kind":"class","name":"messageActionSetChatWallPaper","type":"MessageAction","id":1348510708,"comment":"The wallpaper ยป of the current chat was changed.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"same","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates the user applied a wallpaper ยป previously sent by the other user in a {@link RawMessageActionSetChatWallPaper} message."},{"name":"for_both","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, indicates the wallpaper was forcefully applied for both sides, without explicit confirmation from the other side.
If the message is incoming, and we did not like the new wallpaper the other user has chosen for us, we can re-set our previous wallpaper just on our side, by invoking {@link messages.RawSetChatWallPaperRequest}, providing only the revert flag (and obviously the peer parameter)."},{"name":"wallpaper","type":"WallPaper","comment":"New wallpaper"}]},{"kind":"class","name":"messageActionGiftCode","type":"MessageAction","id":1737240073,"comment":"Contains a Telegram Premium giftcode link.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"via_giveaway","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, this gift code was received from a giveaway ยป started by a channel we're subscribed to."},{"name":"unclaimed","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, the link was not redeemed yet."},{"name":"boost_peer","type":"Peer","typeModifiers":{"predicate":"flags.1"},"comment":"Identifier of the channel that created the gift code either directly or through a giveaway: if we import this giftcode link, we will also automatically boost this channel."},{"name":"months","type":"int","comment":"Duration in months of the gifted Telegram Premium subscription."},{"name":"slug","type":"string","comment":"Slug of the Telegram Premium giftcode link"},{"name":"currency","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Three-letter ISO 4217 currency code"},{"name":"amount","type":"long","typeModifiers":{"predicate":"flags.2"},"comment":"Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"crypto_currency","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"If set, the gift was made using the specified cryptocurrency."},{"name":"crypto_amount","type":"long","typeModifiers":{"predicate":"flags.3"},"comment":"If crypto_currency is set, contains the paid amount, in the smallest units of the cryptocurrency."}]},{"kind":"class","name":"messageActionGiveawayLaunch","type":"MessageAction","id":858499565,"comment":"A giveaway was started.","arguments":[]},{"kind":"class","name":"messageActionGiveawayResults","type":"MessageAction","id":715107781,"comment":"A giveaway has ended.","arguments":[{"name":"winners_count","type":"int","comment":"Number of winners in the giveaway"},{"name":"unclaimed_count","type":"int","comment":"Number of undistributed prizes"}]},{"kind":"class","name":"messageActionBoostApply","type":"MessageAction","id":3422726765,"arguments":[{"name":"boosts","type":"int"}]},{"kind":"class","name":"messageActionRequestedPeerSentMe","type":"MessageAction","id":2477987912,"arguments":[{"name":"button_id","type":"int"},{"name":"peers","type":"RequestedPeer","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"dialog","type":"Dialog","id":3582593222,"comment":"Chat","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Is the dialog pinned"},{"name":"unread_mark","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the chat was manually marked as unread"},{"name":"view_forum_as_messages","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a \"View as messages\" setting in the local client.
This setting only affects the current account, and is synced to other logged in sessions using the {@link channels.RawToggleViewForumAsMessagesRequest} method; invoking this method will update the value of this flag."},{"name":"peer","type":"Peer","comment":"The chat"},{"name":"top_message","type":"int","comment":"The latest message ID"},{"name":"read_inbox_max_id","type":"int","comment":"Position up to which all incoming messages are read."},{"name":"read_outbox_max_id","type":"int","comment":"Position up to which all outgoing messages are read."},{"name":"unread_count","type":"int","comment":"Number of unread messages"},{"name":"unread_mentions_count","type":"int","comment":"Number of unread mentions"},{"name":"unread_reactions_count","type":"int","comment":"Number of unread reactions to messages you sent"},{"name":"notify_settings","type":"PeerNotifySettings","comment":"Notification settings"},{"name":"pts","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"PTS"},{"name":"draft","type":"DraftMessage","typeModifiers":{"predicate":"flags.1"},"comment":"Message draft"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Peer folder ID, for more info click here"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"Time-to-live of all messages sent in this dialog"}]},{"kind":"class","name":"dialogFolder","type":"Dialog","id":1908216652,"comment":"Dialog in folder","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Is this folder pinned"},{"name":"folder","type":"Folder","comment":"The folder"},{"name":"peer","type":"Peer","comment":"Peer in folder"},{"name":"top_message","type":"int","comment":"Latest message ID of dialog"},{"name":"unread_muted_peers_count","type":"int","comment":"Number of unread muted peers in folder"},{"name":"unread_unmuted_peers_count","type":"int","comment":"Number of unread unmuted peers in folder"},{"name":"unread_muted_messages_count","type":"int","comment":"Number of unread messages from muted peers in folder"},{"name":"unread_unmuted_messages_count","type":"int","comment":"Number of unread messages from unmuted peers in folder"}]},{"kind":"class","name":"photoEmpty","type":"Photo","id":590459437,"comment":"Empty constructor, non-existent photo","arguments":[{"name":"id","type":"long","comment":"Photo identifier"}]},{"kind":"class","name":"photo","type":"Photo","id":4212750949,"comment":"Photo","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_stickers","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the photo has mask stickers attached to it"},{"name":"id","type":"long","comment":"ID"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"file_reference","type":"bytes","comment":"file reference"},{"name":"date","type":"int","comment":"Date of upload"},{"name":"sizes","type":"PhotoSize","typeModifiers":{"isVector":true},"comment":"Available sizes for download"},{"name":"video_sizes","type":"VideoSize","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"For animated profiles, the MPEG4 videos"},{"name":"dc_id","type":"int","comment":"DC ID to use for download"}]},{"kind":"class","name":"photoSizeEmpty","type":"PhotoSize","id":236446268,"comment":"Empty constructor. Image with this thumbnail is unavailable.","arguments":[{"name":"type","type":"string","comment":"Thumbnail type ยป"}]},{"kind":"class","name":"photoSize","type":"PhotoSize","id":1976012384,"comment":"Image description.","arguments":[{"name":"type","type":"string","comment":"Thumbnail type ยป"},{"name":"w","type":"int","comment":"Image width"},{"name":"h","type":"int","comment":"Image height"},{"name":"size","type":"int","comment":"File size"}]},{"kind":"class","name":"photoCachedSize","type":"PhotoSize","id":35527382,"comment":"Description of an image and its content.","arguments":[{"name":"type","type":"string","comment":"Thumbnail type"},{"name":"w","type":"int","comment":"Image width"},{"name":"h","type":"int","comment":"Image height"},{"name":"bytes","type":"bytes","comment":"Binary data, file content"}]},{"kind":"class","name":"photoStrippedSize","type":"PhotoSize","id":3769678894,"comment":"A low-resolution compressed JPG payload","arguments":[{"name":"type","type":"string","comment":"Thumbnail type"},{"name":"bytes","type":"bytes","comment":"Thumbnail data, see here for more info on decompression ยป"}]},{"kind":"class","name":"photoSizeProgressive","type":"PhotoSize","id":4198431637,"comment":"Progressively encoded photosize","arguments":[{"name":"type","type":"string","comment":"Photosize type ยป"},{"name":"w","type":"int","comment":"Photo width"},{"name":"h","type":"int","comment":"Photo height"},{"name":"sizes","type":"int","typeModifiers":{"isVector":true},"comment":"Sizes of progressive JPEG file prefixes, which can be used to preliminarily show the image."}]},{"kind":"class","name":"photoPathSize","type":"PhotoSize","id":3626061121,"comment":"Messages with animated stickers can have a compressed svg (< 300 bytes) to show the outline of the sticker before fetching the actual lottie animation.","arguments":[{"name":"type","type":"string","comment":"Always j"},{"name":"bytes","type":"bytes","comment":"Compressed SVG path payload, see here for decompression instructions"}]},{"kind":"class","name":"geoPointEmpty","type":"GeoPoint","id":286776671,"comment":"Empty constructor.","arguments":[]},{"kind":"class","name":"geoPoint","type":"GeoPoint","id":2997024355,"comment":"GeoPoint.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"long","type":"double","comment":"Longitude"},{"name":"lat","type":"double","comment":"Latitude"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"accuracy_radius","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"The estimated horizontal accuracy of the location, in meters; as defined by the sender."}]},{"kind":"class","name":"auth.sentCode","type":"auth.SentCode","id":1577067778,"comment":"Contains info about a sent verification code.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"type","type":"auth.SentCodeType","comment":"Phone code type"},{"name":"phone_code_hash","type":"string","comment":"Phone code hash, to be stored and later re-used with {@link auth.RawSignInRequest}"},{"name":"next_type","type":"auth.CodeType","typeModifiers":{"predicate":"flags.1"},"comment":"Phone code type that will be sent next, if the phone code is not received within timeout seconds: to send it use {@link auth.RawResendCodeRequest}"},{"name":"timeout","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Timeout for reception of the phone code"}]},{"kind":"class","name":"auth.sentCodeSuccess","type":"auth.SentCode","id":596704836,"comment":"The user successfully authorized using future auth tokens","arguments":[{"name":"authorization","type":"auth.Authorization","comment":"Authorization info"}]},{"kind":"class","name":"auth.authorization","type":"auth.Authorization","id":782418132,"comment":"Contains user authorization info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"setup_password_required","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Suggests the user to set up a 2-step verification password to be able to log in again"},{"name":"otherwise_relogin_days","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Iff setup_password_required is set and the user declines to set a 2-step verification password, they will be able to log into their account via SMS again only after this many days pass."},{"name":"tmp_sessions","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Temporary passport sessions"},{"name":"future_auth_token","type":"bytes","typeModifiers":{"predicate":"flags.2"},"comment":"A future auth token"},{"name":"user","type":"User","comment":"Info on authorized user"}]},{"kind":"class","name":"auth.authorizationSignUpRequired","type":"auth.Authorization","id":1148485274,"comment":"An account with this phone number doesn't exist on telegram: the user has to enter basic information and sign up","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"terms_of_service","type":"help.TermsOfService","typeModifiers":{"predicate":"flags.0"},"comment":"Telegram's terms of service: the user must read and accept the terms of service before signing up to telegram"}]},{"kind":"class","name":"auth.exportedAuthorization","type":"auth.ExportedAuthorization","id":3023364792,"comment":"Data for copying of authorization between data centers.","arguments":[{"name":"id","type":"long","comment":"current user identifier"},{"name":"bytes","type":"bytes","comment":"authorizes key"}]},{"kind":"class","name":"inputNotifyPeer","type":"InputNotifyPeer","id":3099351820,"comment":"Notifications generated by a certain user or group.","arguments":[{"name":"peer","type":"InputPeer","comment":"User or group"}]},{"kind":"class","name":"inputNotifyUsers","type":"InputNotifyPeer","id":423314455,"comment":"Notifications generated by all users.","arguments":[]},{"kind":"class","name":"inputNotifyChats","type":"InputNotifyPeer","id":1251338318,"comment":"Notifications generated by all groups.","arguments":[]},{"kind":"class","name":"inputNotifyBroadcasts","type":"InputNotifyPeer","id":2983951486,"comment":"All channels","arguments":[]},{"kind":"class","name":"inputNotifyForumTopic","type":"InputNotifyPeer","id":1548122514,"comment":"Notifications generated by a topic in a forum.","arguments":[{"name":"peer","type":"InputPeer","comment":"Forum ID"},{"name":"top_msg_id","type":"int","comment":"Topic ID"}]},{"kind":"class","name":"inputPeerNotifySettings","type":"InputPeerNotifySettings","id":3402328802,"comment":"Notification settings.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"show_previews","type":"Bool","typeModifiers":{"predicate":"flags.0"},"comment":"If the text of the message shall be displayed in notification"},{"name":"silent","type":"Bool","typeModifiers":{"predicate":"flags.1"},"comment":"Peer was muted?"},{"name":"mute_until","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Date until which all notifications shall be switched off"},{"name":"sound","type":"NotificationSound","typeModifiers":{"predicate":"flags.3"},"comment":"Identifier of an audio file to play for notifications."},{"name":"stories_muted","type":"Bool","typeModifiers":{"predicate":"flags.6"},"comment":"Whether story notifications should be disabled."},{"name":"stories_hide_sender","type":"Bool","typeModifiers":{"predicate":"flags.7"},"comment":"Whether the sender name should be displayed in story notifications."},{"name":"stories_sound","type":"NotificationSound","typeModifiers":{"predicate":"flags.8"},"comment":"Identifier of an audio file to play for story notifications."}]},{"kind":"class","name":"peerNotifySettings","type":"PeerNotifySettings","id":2573347852,"comment":"Notification settings.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"show_previews","type":"Bool","typeModifiers":{"predicate":"flags.0"},"comment":"(Ternary value) If set, indicates whether or not to display previews of messages in notifications; otherwise the default behavior should be used."},{"name":"silent","type":"Bool","typeModifiers":{"predicate":"flags.1"},"comment":"(Ternary value) If set, indicates whether to mute or unmute the peer; otherwise the default behavior should be used."},{"name":"mute_until","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Mute all notifications until this date"},{"name":"ios_sound","type":"NotificationSound","typeModifiers":{"predicate":"flags.3"},"comment":"Notification sound for the official iOS application"},{"name":"android_sound","type":"NotificationSound","typeModifiers":{"predicate":"flags.4"},"comment":"Notification sound for the official android application"},{"name":"other_sound","type":"NotificationSound","typeModifiers":{"predicate":"flags.5"},"comment":"Notification sound for other applications"},{"name":"stories_muted","type":"Bool","typeModifiers":{"predicate":"flags.6"},"comment":"Whether story notifications should be disabled."},{"name":"stories_hide_sender","type":"Bool","typeModifiers":{"predicate":"flags.7"},"comment":"Whether the sender name should be displayed in story notifications."},{"name":"stories_ios_sound","type":"NotificationSound","typeModifiers":{"predicate":"flags.8"},"comment":"Sound for story notifications on the official iOS application"},{"name":"stories_android_sound","type":"NotificationSound","typeModifiers":{"predicate":"flags.9"},"comment":"Sound for story notifications on the official Android application"},{"name":"stories_other_sound","type":"NotificationSound","typeModifiers":{"predicate":"flags.10"},"comment":"Sound for story notifications on other applications"}]},{"kind":"class","name":"peerSettings","id":2899733598,"type":"PeerSettings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"report_spam","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether we can still report the user for spam"},{"name":"add_contact","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether we can add the user as contact"},{"name":"block_contact","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether we can block the user"},{"name":"share_contact","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether we can share the user's contact"},{"name":"need_contacts_exception","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether a special exception for contacts is needed"},{"name":"report_geo","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether we can report a geo group as irrelevant for this location"},{"name":"autoarchived","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Whether this peer was automatically archived according to {@link RawGlobalPrivacySettings} and can be unarchived"},{"name":"invite_members","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"If set, this is a recently created group chat to which new members can be invited"},{"name":"request_chat_broadcast","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"This flag is set if request_chat_title and request_chat_date fields are set and the join request ยป is related to a channel (otherwise if only the request fields are set, the join request ยป is related to a chat)."},{"name":"business_bot_paused","type":"true","typeModifiers":{"predicate":"flags.11"}},{"name":"business_bot_can_reply","type":"true","typeModifiers":{"predicate":"flags.12"}},{"name":"geo_distance","type":"int","typeModifiers":{"predicate":"flags.6"},"comment":"Distance in meters between us and this peer"},{"name":"request_chat_title","type":"string","typeModifiers":{"predicate":"flags.9"},"comment":"If set, this is a private chat with an administrator of a chat or channel to which the user sent a join request, and this field contains the chat/channel's title."},{"name":"request_chat_date","type":"int","typeModifiers":{"predicate":"flags.9"},"comment":"If set, this is a private chat with an administrator of a chat or channel to which the user sent a join request, and this field contains the timestamp when the join request ยป was sent."},{"name":"business_bot_id","type":"int53","typeModifiers":{"predicate":"flags.13"}},{"name":"business_bot_manage_url","type":"string","typeModifiers":{"predicate":"flags.13"}}],"comment":"List of actions that are possible when interacting with this user, to be shown as suggested actions in the chat action bar ยป, see here ยป for more info."},{"kind":"class","name":"wallPaper","type":"WallPaper","id":2755118061,"comment":"Represents a wallpaper based on an image.","arguments":[{"name":"id","type":"long","comment":"Identifier"},{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"creator","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether we created this wallpaper"},{"name":"default","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this is the default wallpaper"},{"name":"pattern","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this is a pattern wallpaper ยป"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether this wallpaper should be used in dark mode."},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"slug","type":"string","comment":"Unique wallpaper ID, used when generating wallpaper links or importing wallpaper links."},{"name":"document","type":"Document","comment":"The actual wallpaper"},{"name":"settings","type":"WallPaperSettings","typeModifiers":{"predicate":"flags.2"},"comment":"Info on how to generate the wallpaper, according to these instructions ยป."}]},{"kind":"class","name":"wallPaperNoFile","type":"WallPaper","id":3766501654,"comment":"Represents a wallpaper only based on colors/gradients.","arguments":[{"name":"id","type":"long","comment":"Wallpaper ID"},{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"default","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this is the default wallpaper"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether this wallpaper should be used in dark mode."},{"name":"settings","type":"WallPaperSettings","typeModifiers":{"predicate":"flags.2"},"comment":"Info on how to generate the wallpaper."}]},{"kind":"class","name":"inputReportReasonSpam","type":"ReportReason","id":1490799288,"comment":"Report for spam","arguments":[]},{"kind":"class","name":"inputReportReasonViolence","type":"ReportReason","id":505595789,"comment":"Report for violence","arguments":[]},{"kind":"class","name":"inputReportReasonPornography","type":"ReportReason","id":777640226,"comment":"Report for pornography","arguments":[]},{"kind":"class","name":"inputReportReasonChildAbuse","type":"ReportReason","id":2918469347,"comment":"Report for child abuse","arguments":[]},{"kind":"class","name":"inputReportReasonOther","type":"ReportReason","id":3252986545,"comment":"Other","arguments":[]},{"kind":"class","name":"inputReportReasonCopyright","type":"ReportReason","id":2609510714,"comment":"Report for copyrighted content","arguments":[]},{"kind":"class","name":"inputReportReasonGeoIrrelevant","type":"ReportReason","id":3688169197,"comment":"Report an irrelevant geo group","arguments":[]},{"kind":"class","name":"inputReportReasonFake","type":"ReportReason","id":4124956391,"comment":"Report for impersonation","arguments":[]},{"kind":"class","name":"inputReportReasonIllegalDrugs","type":"ReportReason","id":177124030,"comment":"Report for illegal drugs","arguments":[]},{"kind":"class","name":"inputReportReasonPersonalDetails","type":"ReportReason","id":2663876157,"comment":"Report for divulgation of personal details","arguments":[]},{"kind":"class","name":"userFull","id":3432609568,"type":"UserFull","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"blocked","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether you have blocked this user"},{"name":"phone_calls_available","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether this user can make VoIP calls"},{"name":"phone_calls_private","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether this user's privacy settings allow you to call them"},{"name":"can_pin_message","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Whether you can pin messages in the chat with this user, you can do this only for a chat with yourself"},{"name":"has_scheduled","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"Whether scheduled messages are available"},{"name":"video_calls_available","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"Whether the user can receive video calls"},{"name":"voice_messages_forbidden","type":"true","typeModifiers":{"predicate":"flags.20"},"comment":"Whether this user doesn't allow sending voice messages in a private chat with them"},{"name":"translations_disabled","type":"true","typeModifiers":{"predicate":"flags.23"},"comment":"Whether the real-time chat translation popup should be hidden."},{"name":"stories_pinned_available","type":"true","typeModifiers":{"predicate":"flags.26"},"comment":"Whether this user has some pinned stories."},{"name":"blocked_my_stories_from","type":"true","typeModifiers":{"predicate":"flags.27"},"comment":"Whether we've blocked this user, preventing them from seeing our stories ยป."},{"name":"wallpaper_overridden","type":"true","typeModifiers":{"predicate":"flags.28"},"comment":"Whether the other user has chosen a custom wallpaper for us using {@link messages.RawSetChatWallPaperRequest} and the for_both flag, see here ยป for more info."},{"name":"contact_require_premium","type":"true","typeModifiers":{"predicate":"flags.29"}},{"name":"read_dates_private","type":"true","typeModifiers":{"predicate":"flags.30"}},{"name":"flags2","type":"#"},{"name":"sponsored_enabled","type":"true","typeModifiers":{"predicate":"flags2.7"}},{"name":"id","type":"int53","comment":"User ID"},{"name":"about","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Bio of the user"},{"name":"settings","type":"PeerSettings","comment":"Peer settings"},{"name":"personal_photo","type":"Photo","typeModifiers":{"predicate":"flags.21"},"comment":"Personal profile photo, to be shown instead of profile_photo."},{"name":"profile_photo","type":"Photo","typeModifiers":{"predicate":"flags.2"},"comment":"Profile photo"},{"name":"fallback_photo","type":"Photo","typeModifiers":{"predicate":"flags.22"},"comment":"Fallback profile photo, displayed if no photo is present in profile_photo or personal_photo, due to privacy settings."},{"name":"notify_settings","type":"PeerNotifySettings","comment":"Notification settings"},{"name":"bot_info","type":"BotInfo","typeModifiers":{"predicate":"flags.3"},"comment":"For bots, info about the bot (bot commands, etc)"},{"name":"pinned_msg_id","type":"int","typeModifiers":{"predicate":"flags.6"},"comment":"Message ID of the last pinned message"},{"name":"common_chats_count","type":"int","comment":"Chats in common with this user"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.11"},"comment":"Peer folder ID, for more info click here"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.14"},"comment":"Time To Live of all messages in this chat; once a message is this many seconds old, it must be deleted."},{"name":"theme_emoticon","type":"string","typeModifiers":{"predicate":"flags.15"},"comment":"Emoji associated with chat theme"},{"name":"private_forward_name","type":"string","typeModifiers":{"predicate":"flags.16"},"comment":"Anonymized text to be shown instead of the user's name on forwarded messages"},{"name":"bot_group_admin_rights","type":"ChatAdminRights","typeModifiers":{"predicate":"flags.17"},"comment":"A suggested set of administrator rights for the bot, to be shown when adding the bot as admin to a group, see here for more info on how to handle them ยป."},{"name":"bot_broadcast_admin_rights","type":"ChatAdminRights","typeModifiers":{"predicate":"flags.18"},"comment":"A suggested set of administrator rights for the bot, to be shown when adding the bot as admin to a channel, see here for more info on how to handle them ยป."},{"name":"premium_gifts","type":"PremiumGiftOption","typeModifiers":{"predicate":"flags.19","isVector":true},"comment":"Telegram Premium subscriptions gift options"},{"name":"wallpaper","type":"WallPaper","typeModifiers":{"predicate":"flags.24"},"comment":"Wallpaper to use in the private chat with the user."},{"name":"stories","type":"PeerStories","typeModifiers":{"predicate":"flags.25"},"comment":"Active stories ยป"},{"name":"business_work_hours","type":"BusinessWorkHours","typeModifiers":{"predicate":"flags2.0"}},{"name":"business_location","type":"BusinessLocation","typeModifiers":{"predicate":"flags2.1"}},{"name":"business_greeting_message","type":"BusinessGreetingMessage","typeModifiers":{"predicate":"flags2.2"}},{"name":"business_away_message","type":"BusinessAwayMessage","typeModifiers":{"predicate":"flags2.3"}},{"name":"business_intro","type":"BusinessIntro","typeModifiers":{"predicate":"flags2.4"}},{"name":"birthday","type":"Birthday","typeModifiers":{"predicate":"flags2.5"}},{"name":"personal_channel_id","type":"int53","typeModifiers":{"predicate":"flags2.6"}},{"name":"personal_channel_message","type":"int","typeModifiers":{"predicate":"flags2.6"}}],"comment":"Extended user info"},{"kind":"class","name":"contact","type":"Contact","id":341499403,"comment":"A contact of the current user that is registered in the system.","arguments":[{"name":"user_id","type":"int53","comment":"User identifier"},{"name":"mutual","type":"Bool","comment":"Current user is in the user's contact list"}]},{"kind":"class","name":"importedContact","type":"ImportedContact","id":3242081360,"comment":"Successfully imported contact.","arguments":[{"name":"user_id","type":"int53","comment":"User identifier"},{"name":"client_id","type":"long","comment":"The contact's client identifier (passed to one of the InputContact constructors)"}]},{"kind":"class","name":"contactStatus","type":"ContactStatus","id":383348795,"comment":"Contact status: online / offline.","arguments":[{"name":"user_id","type":"int53","comment":"User identifier"},{"name":"status","type":"UserStatus","comment":"Online status"}]},{"kind":"class","name":"contacts.contactsNotModified","type":"contacts.Contacts","id":3075189202,"comment":"Contact list on the server is the same as the list on the client.","arguments":[]},{"kind":"class","name":"contacts.contacts","type":"contacts.Contacts","id":3941105218,"comment":"The current user's contact list and info on users.","arguments":[{"name":"contacts","type":"Contact","typeModifiers":{"isVector":true},"comment":"Contact list"},{"name":"saved_count","type":"int","comment":"Number of contacts that were saved successfully"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"User list"}]},{"kind":"class","name":"contacts.importedContacts","type":"contacts.ImportedContacts","id":2010127419,"comment":"Info on successfully imported contacts.","arguments":[{"name":"imported","type":"ImportedContact","typeModifiers":{"isVector":true},"comment":"List of successfully imported contacts"},{"name":"popular_invites","type":"PopularContact","typeModifiers":{"isVector":true},"comment":"Popular contacts"},{"name":"retry_contacts","type":"long","typeModifiers":{"isVector":true},"comment":"List of contact ids that could not be imported due to system limitation and will need to be imported at a later date."},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users"}]},{"kind":"class","name":"contacts.blocked","type":"contacts.Blocked","id":182326673,"comment":"Full list of blocked users.","arguments":[{"name":"blocked","type":"PeerBlocked","typeModifiers":{"isVector":true},"comment":"List of blocked users"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Blocked chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users"}]},{"kind":"class","name":"contacts.blockedSlice","type":"contacts.Blocked","id":3781575060,"comment":"Incomplete list of blocked users.","arguments":[{"name":"count","type":"int","comment":"Total number of elements in the list"},{"name":"blocked","type":"PeerBlocked","typeModifiers":{"isVector":true},"comment":"List of blocked users"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Blocked chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users"}]},{"kind":"class","name":"messages.dialogs","type":"messages.Dialogs","id":364538944,"comment":"Full list of chats with messages and auxiliary data.","arguments":[{"name":"dialogs","type":"Dialog","typeModifiers":{"isVector":true},"comment":"List of chats"},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"List of last messages from each chat"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of groups mentioned in the chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users mentioned in messages and groups"}]},{"kind":"class","name":"messages.dialogsSlice","type":"messages.Dialogs","id":1910543603,"comment":"Incomplete list of dialogs with messages and auxiliary data.","arguments":[{"name":"count","type":"int","comment":"Total number of dialogs"},{"name":"dialogs","type":"Dialog","typeModifiers":{"isVector":true},"comment":"List of dialogs"},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"List of last messages from dialogs"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of chats mentioned in dialogs"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users mentioned in messages and chats"}]},{"kind":"class","name":"messages.dialogsNotModified","type":"messages.Dialogs","id":4041467286,"comment":"Dialogs haven't changed","arguments":[{"name":"count","type":"int","comment":"Number of dialogs found server-side by the query"}]},{"kind":"class","name":"messages.messages","type":"messages.Messages","id":2356252295,"comment":"Full list of messages with auxiliary data.","arguments":[{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"List of messages"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of chats mentioned in dialogs"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users mentioned in messages and chats"}]},{"kind":"class","name":"messages.messagesSlice","type":"messages.Messages","id":978610270,"comment":"Incomplete list of messages and auxiliary data.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"inexact","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, indicates that the results may be inexact"},{"name":"count","type":"int","comment":"Total number of messages in the list"},{"name":"next_rate","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Rate to use in the offset_rate parameter in the next call to {@link messages.RawSearchGlobalRequest}"},{"name":"offset_id_offset","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Indicates the absolute position of messages[0] within the total result set with count count.
This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}."},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"List of messages"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of chats mentioned in messages"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users mentioned in messages and chats"}]},{"kind":"class","name":"messages.channelMessages","type":"messages.Messages","id":3346446926,"comment":"Channel messages","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"inexact","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, returned results may be inexact"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"count","type":"int","comment":"Total number of results were found server-side (may not be all included here)"},{"name":"offset_id_offset","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Indicates the absolute position of messages[0] within the total result set with count count.
This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}."},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"Found messages"},{"name":"topics","type":"ForumTopic","typeModifiers":{"isVector":true},"comment":"Forum topic information"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"messages.messagesNotModified","type":"messages.Messages","id":1951620897,"comment":"No new messages matching the query were found","arguments":[{"name":"count","type":"int","comment":"Number of results found server-side by the given query"}]},{"kind":"class","name":"messages.chats","type":"messages.Chats","id":1694474197,"comment":"List of chats with auxiliary data.","arguments":[{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of chats"}]},{"kind":"class","name":"messages.chatsSlice","type":"messages.Chats","id":2631405892,"comment":"Partial list of chats, more would have to be fetched with pagination","arguments":[{"name":"count","type":"int","comment":"Total number of results that were found server-side (not all are included in chats)"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats"}]},{"kind":"class","name":"messages.chatFull","type":"messages.ChatFull","id":3856126364,"comment":"Full info about a channel, supergroup, gigagroup or basic group.","arguments":[{"name":"full_chat","type":"ChatFull","comment":"Full info"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"messages.affectedHistory","type":"messages.AffectedHistory","id":3025955281,"comment":"Affected part of communication history with the user or in a chat.","arguments":[{"name":"pts","type":"int","comment":"Number of events occurred in a text box"},{"name":"pts_count","type":"int","comment":"Number of affected events"},{"name":"offset","type":"int","comment":"If a parameter contains positive value, it is necessary to repeat the method call using the given value; during the proceeding of all the history the value itself shall gradually decrease"}]},{"kind":"class","name":"inputMessagesFilterEmpty","type":"MessagesFilter","id":1474492012,"comment":"Filter is absent.","arguments":[]},{"kind":"class","name":"inputMessagesFilterPhotos","type":"MessagesFilter","id":2517214492,"comment":"Filter for messages containing photos.","arguments":[]},{"kind":"class","name":"inputMessagesFilterVideo","type":"MessagesFilter","id":2680163941,"comment":"Filter for messages containing videos.","arguments":[]},{"kind":"class","name":"inputMessagesFilterPhotoVideo","type":"MessagesFilter","id":1458172132,"comment":"Filter for messages containing photos or videos.","arguments":[]},{"kind":"class","name":"inputMessagesFilterDocument","type":"MessagesFilter","id":2665345416,"comment":"Filter for messages containing documents.","arguments":[]},{"kind":"class","name":"inputMessagesFilterUrl","type":"MessagesFilter","id":2129714567,"comment":"Return only messages containing URLs","arguments":[]},{"kind":"class","name":"inputMessagesFilterGif","type":"MessagesFilter","id":4291323271,"comment":"Return only messages containing gifs","arguments":[]},{"kind":"class","name":"inputMessagesFilterVoice","type":"MessagesFilter","id":1358283666,"comment":"Return only messages containing voice notes","arguments":[]},{"kind":"class","name":"inputMessagesFilterMusic","type":"MessagesFilter","id":928101534,"comment":"Return only messages containing audio files","arguments":[]},{"kind":"class","name":"inputMessagesFilterChatPhotos","type":"MessagesFilter","id":975236280,"comment":"Return only chat photo changes","arguments":[]},{"kind":"class","name":"inputMessagesFilterPhoneCalls","type":"MessagesFilter","id":2160695144,"comment":"Return only phone calls","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"missed","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Return only missed phone calls"}]},{"kind":"class","name":"inputMessagesFilterRoundVoice","type":"MessagesFilter","id":2054952868,"comment":"Return only round videos and voice notes","arguments":[]},{"kind":"class","name":"inputMessagesFilterRoundVideo","type":"MessagesFilter","id":3041516115,"comment":"Return only round videos","arguments":[]},{"kind":"class","name":"inputMessagesFilterMyMentions","type":"MessagesFilter","id":3254314650,"comment":"Return only messages where the current user was mentioned.","arguments":[]},{"kind":"class","name":"inputMessagesFilterGeo","type":"MessagesFilter","id":3875695885,"comment":"Return only messages containing geolocations","arguments":[]},{"kind":"class","name":"inputMessagesFilterContacts","type":"MessagesFilter","id":3764575107,"comment":"Return only messages containing contacts","arguments":[]},{"kind":"class","name":"inputMessagesFilterPinned","type":"MessagesFilter","id":464520273,"comment":"Fetch only pinned messages","arguments":[]},{"kind":"class","name":"updateNewMessage","type":"Update","id":522914557,"comment":"New message in a private chat or in a basic group.","arguments":[{"name":"message","type":"Message","comment":"Message"},{"name":"pts","type":"int","comment":"New quantity of actions in a message box"},{"name":"pts_count","type":"int","comment":"Number of generated events"}]},{"kind":"class","name":"updateMessageID","type":"Update","id":1318109142,"comment":"Sent message with random_id client identifier was assigned an identifier.","arguments":[{"name":"id","type":"int","comment":"id identifier of a respective Message"},{"name":"random_id","type":"long","comment":"Previously transferred client random_id identifier"}]},{"kind":"class","name":"updateDeleteMessages","type":"Update","id":2718806245,"comment":"Messages were deleted.","arguments":[{"name":"messages","type":"int","typeModifiers":{"isVector":true},"comment":"List of identifiers of deleted messages"},{"name":"pts","type":"int","comment":"New quality of actions in a message box"},{"name":"pts_count","type":"int","comment":"Number of generated events"}]},{"kind":"class","name":"updateUserTyping","type":"Update","id":3223225727,"comment":"The user is preparing a message; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing","arguments":[{"name":"user_id","type":"int53","comment":"User id"},{"name":"action","type":"SendMessageAction","comment":"Action type"}]},{"kind":"class","name":"updateChatUserTyping","type":"Update","id":2202565360,"comment":"The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing","arguments":[{"name":"chat_id","type":"int53","comment":"Group id"},{"name":"from_id","type":"Peer","comment":"Peer that started typing (can be the chat itself, in case of anonymous admins)."},{"name":"action","type":"SendMessageAction","comment":"Type of action"}]},{"kind":"class","name":"updateChatParticipants","type":"Update","id":125178264,"comment":"Composition of chat participants changed.","arguments":[{"name":"participants","type":"ChatParticipants","comment":"Updated chat participants"}]},{"kind":"class","name":"updateUserStatus","type":"Update","id":3854432478,"comment":"Contact status update.","arguments":[{"name":"user_id","type":"int53","comment":"User identifier"},{"name":"status","type":"UserStatus","comment":"New status"}]},{"kind":"class","name":"updateUserName","type":"Update","id":2810480932,"comment":"Changes the user's first name, last name and username.","arguments":[{"name":"user_id","type":"int53","comment":"User identifier"},{"name":"first_name","type":"string","comment":"New first name. Corresponds to the new value of real_first_name field of the {@link RawUserFull} constructor."},{"name":"last_name","type":"string","comment":"New last name. Corresponds to the new value of real_last_name field of the {@link RawUserFull} constructor."},{"name":"usernames","type":"Username","typeModifiers":{"isVector":true},"comment":"Usernames."}]},{"kind":"class","name":"updateNewAuthorization","type":"Update","id":2303831023,"comment":"A new session logged into the current user's account through an unknown device.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"unconfirmed","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the session is unconfirmed, see here ยป for more info."},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"date","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Authorization date"},{"name":"device","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Name of device, for example Android"},{"name":"location","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Location, for example USA, NY (IP=1.2.3.4)"}]},{"kind":"class","name":"updateNewEncryptedMessage","type":"Update","id":314359194,"comment":"New encrypted message.","arguments":[{"name":"message","type":"EncryptedMessage","comment":"Message"},{"name":"qts","type":"int","comment":"New qts value, see updates ยป for more info."}]},{"kind":"class","name":"updateEncryptedChatTyping","type":"Update","id":386986326,"comment":"Interlocutor is typing a message in an encrypted chat. Update period is 6 second. If upon this time there is no repeated update, it shall be considered that the interlocutor stopped typing.","arguments":[{"name":"chat_id","type":"int","comment":"Chat ID"}]},{"kind":"class","name":"updateEncryption","type":"Update","id":3030575245,"comment":"Change of state in an encrypted chat.","arguments":[{"name":"chat","type":"EncryptedChat","comment":"Encrypted chat"},{"name":"date","type":"int","comment":"Date of change"}]},{"kind":"class","name":"updateEncryptedMessagesRead","type":"Update","id":956179895,"comment":"Communication history in an encrypted chat was marked as read.","arguments":[{"name":"chat_id","type":"int","comment":"Chat ID"},{"name":"max_date","type":"int","comment":"Maximum value of data for read messages"},{"name":"date","type":"int","comment":"Time when messages were read"}]},{"kind":"class","name":"updateChatParticipantAdd","type":"Update","id":1037718609,"comment":"New group member.","arguments":[{"name":"chat_id","type":"int53","comment":"Group ID"},{"name":"user_id","type":"int53","comment":"ID of the new member"},{"name":"inviter_id","type":"int53","comment":"ID of the user, who added member to the group"},{"name":"date","type":"int","comment":"When was the participant added"},{"name":"version","type":"int","comment":"Chat version number"}]},{"kind":"class","name":"updateChatParticipantDelete","type":"Update","id":3811523959,"comment":"A member has left the group.","arguments":[{"name":"chat_id","type":"int53","comment":"Group ID"},{"name":"user_id","type":"int53","comment":"ID of the user"},{"name":"version","type":"int","comment":"Used in basic groups to reorder updates and make sure that all of them was received."}]},{"kind":"class","name":"updateDcOptions","type":"Update","id":2388564083,"comment":"Changes in the data center configuration options.","arguments":[{"name":"dc_options","type":"DcOption","typeModifiers":{"isVector":true},"comment":"New connection options"}]},{"kind":"class","name":"updateNotifySettings","type":"Update","id":3200411887,"comment":"Changes in notification settings.","arguments":[{"name":"peer","type":"NotifyPeer","comment":"Notification source"},{"name":"notify_settings","type":"PeerNotifySettings","comment":"New notification settings"}]},{"kind":"class","name":"updateServiceNotification","type":"Update","id":3957614617,"comment":"A service message for the user.\n\nThe app must show the message to the user upon receiving this update. In case the popup parameter was passed, the text message must be displayed in a popup alert immediately upon receipt. It is recommended to handle the text as you would an ordinary message in terms of highlighting links, etc. The message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications).","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"popup","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, the message must be displayed in a popup."},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"inbox_date","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"When was the notification received
The message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications)."},{"name":"type","type":"string","comment":"String, identical in format and contents to the type field in API errors. Describes type of service message. It is acceptable to ignore repeated messages of the same type within a short period of time (15 minutes)."},{"name":"message","type":"string","comment":"Message text"},{"name":"media","type":"MessageMedia","comment":"Media content (optional)"},{"name":"entities","type":"MessageEntity","typeModifiers":{"isVector":true},"comment":"Message entities for styled text"}]},{"kind":"class","name":"updatePrivacy","type":"Update","id":3996854058,"comment":"Privacy rules were changed","arguments":[{"name":"key","type":"PrivacyKey","comment":"Peers to which the privacy rules apply"},{"name":"rules","type":"PrivacyRule","typeModifiers":{"isVector":true},"comment":"New privacy rules"}]},{"kind":"class","name":"updateUserPhone","type":"Update","id":88680979,"comment":"A user's phone number was changed","arguments":[{"name":"user_id","type":"int53","comment":"User ID"},{"name":"phone","type":"string","comment":"New phone number"}]},{"kind":"class","name":"updateReadHistoryInbox","type":"Update","id":2627162079,"comment":"Incoming messages were read","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Peer folder ID, for more info click here"},{"name":"peer","type":"Peer","comment":"Peer"},{"name":"max_id","type":"int","comment":"Maximum ID of messages read"},{"name":"still_unread_count","type":"int","comment":"Number of messages that are still unread"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updateReadHistoryOutbox","type":"Update","id":791617983,"comment":"Outgoing messages were read","arguments":[{"name":"peer","type":"Peer","comment":"Peer"},{"name":"max_id","type":"int","comment":"Maximum ID of read outgoing messages"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updateWebPage","type":"Update","id":2139689491,"comment":"An instant view webpage preview was generated","arguments":[{"name":"webpage","type":"WebPage","comment":"Webpage preview"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updateReadMessagesContents","type":"Update","id":4163006849,"comment":"Contents of messages in the common message box were read","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"messages","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of read messages"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"},{"name":"date","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"When was the last message in messages marked as read."}]},{"kind":"class","name":"updateChannelTooLong","type":"Update","id":277713951,"comment":"There are new updates in the specified channel, the client must fetch them.
\nIf the difference is too long or if the channel isn't currently in the states, start fetching from the specified pts.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel_id","type":"int53","comment":"The channel"},{"name":"pts","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"The PTS."}]},{"kind":"class","name":"updateChannel","type":"Update","id":1666927625,"comment":"A new channel or supergroup is available, or info about an existing channel has changed and must be refeteched.","arguments":[{"name":"channel_id","type":"int53","comment":"Channel ID"}]},{"kind":"class","name":"updateNewChannelMessage","type":"Update","id":1656358105,"comment":"A new message was sent in a channel/supergroup","arguments":[{"name":"message","type":"Message","comment":"New message"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updateReadChannelInbox","type":"Update","id":2452516368,"comment":"Incoming messages in a channel/supergroup were read","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Peer folder ID, for more info click here"},{"name":"channel_id","type":"int53","comment":"Channel/supergroup ID"},{"name":"max_id","type":"int","comment":"Position up to which all incoming messages are read."},{"name":"still_unread_count","type":"int","comment":"Count of messages weren't read yet"},{"name":"pts","type":"int","comment":"Event count after generation"}]},{"kind":"class","name":"updateDeleteChannelMessages","type":"Update","id":3274529554,"comment":"Some messages in a supergroup/channel were deleted","arguments":[{"name":"channel_id","type":"int53","comment":"Channel ID"},{"name":"messages","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of messages that were deleted"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updateChannelMessageViews","type":"Update","id":4062620680,"comment":"The view counter of a message in a channel has changed","arguments":[{"name":"channel_id","type":"int53","comment":"Channel ID"},{"name":"id","type":"int","comment":"ID of the message"},{"name":"views","type":"int","comment":"New view counter"}]},{"kind":"class","name":"updateChatParticipantAdmin","type":"Update","id":3620364706,"comment":"Admin permissions of a user in a basic group were changed","arguments":[{"name":"chat_id","type":"int53","comment":"Chat ID"},{"name":"user_id","type":"int53","comment":"ID of the (de)admined user"},{"name":"is_admin","type":"Bool","comment":"Whether the user was rendered admin"},{"name":"version","type":"int","comment":"Used in basic groups to reorder updates and make sure that all of them was received."}]},{"kind":"class","name":"updateNewStickerSet","type":"Update","id":1753886890,"comment":"A new stickerset was installed","arguments":[{"name":"stickerset","type":"messages.StickerSet","comment":"The installed stickerset"}]},{"kind":"class","name":"updateStickerSetsOrder","type":"Update","id":196268545,"comment":"The order of stickersets was changed","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"masks","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the updated stickers are mask stickers"},{"name":"emojis","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the updated stickers are custom emoji stickers"},{"name":"order","type":"long","typeModifiers":{"isVector":true},"comment":"New sticker order by sticker ID"}]},{"kind":"class","name":"updateStickerSets","type":"Update","id":834816008,"comment":"Installed stickersets have changed, the client should refetch them as described in the docs.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"masks","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether mask stickersets have changed"},{"name":"emojis","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the list of installed custom emoji stickersets has changed"}]},{"kind":"class","name":"updateSavedGifs","type":"Update","id":2473931806,"comment":"The saved gif list has changed, the client should refetch it using {@link messages.RawGetSavedGifsRequest}","arguments":[]},{"kind":"class","name":"updateBotInlineQuery","type":"Update","id":1232025500,"comment":"An incoming inline query","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"query_id","type":"long","comment":"Query ID"},{"name":"user_id","type":"int53","comment":"User that sent the query"},{"name":"query","type":"string","comment":"Text of query"},{"name":"geo","type":"GeoPoint","typeModifiers":{"predicate":"flags.0"},"comment":"Attached geolocation"},{"name":"peer_type","type":"InlineQueryPeerType","typeModifiers":{"predicate":"flags.1"},"comment":"Type of the chat from which the inline query was sent."},{"name":"offset","type":"string","comment":"Offset to navigate through results"}]},{"kind":"class","name":"updateBotInlineSend","type":"Update","id":317794823,"comment":"The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"user_id","type":"int53","comment":"The user that chose the result"},{"name":"query","type":"string","comment":"The query that was used to obtain the result"},{"name":"geo","type":"GeoPoint","typeModifiers":{"predicate":"flags.0"},"comment":"Optional. Sender location, only for bots that require user location"},{"name":"id","type":"string","comment":"The unique identifier for the result that was chosen"},{"name":"msg_id","type":"InputBotInlineMessageID","typeModifiers":{"predicate":"flags.1"},"comment":"Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message."}]},{"kind":"class","name":"updateEditChannelMessage","type":"Update","id":457133559,"comment":"A message was edited in a channel/supergroup","arguments":[{"name":"message","type":"Message","comment":"The new message"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updateBotCallbackQuery","type":"Update","id":3117401229,"comment":"A callback button was pressed, and the button data was sent to the bot that created the button","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"query_id","type":"long","comment":"Query ID"},{"name":"user_id","type":"int53","comment":"ID of the user that pressed the button"},{"name":"peer","type":"Peer","comment":"Chat where the inline keyboard was sent"},{"name":"msg_id","type":"int","comment":"Message ID"},{"name":"chat_instance","type":"long","comment":"Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games."},{"name":"data","type":"bytes","typeModifiers":{"predicate":"flags.0"},"comment":"Callback data"},{"name":"game_short_name","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Short name of a Game to be returned, serves as the unique identifier for the game"}]},{"kind":"class","name":"updateEditMessage","type":"Update","id":3825430691,"comment":"A message was edited","arguments":[{"name":"message","type":"Message","comment":"The new edited message"},{"name":"pts","type":"int","comment":"PTS"},{"name":"pts_count","type":"int","comment":"PTS count"}]},{"kind":"class","name":"updateInlineBotCallbackQuery","type":"Update","id":1763610706,"comment":"This notification is received by bots when a button is pressed","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"query_id","type":"long","comment":"Query ID"},{"name":"user_id","type":"int53","comment":"ID of the user that pressed the button"},{"name":"msg_id","type":"InputBotInlineMessageID","comment":"ID of the inline message with the button"},{"name":"chat_instance","type":"long","comment":"Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games."},{"name":"data","type":"bytes","typeModifiers":{"predicate":"flags.0"},"comment":"Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field."},{"name":"game_short_name","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Short name of a Game to be returned, serves as the unique identifier for the game"}]},{"kind":"class","name":"updateReadChannelOutbox","type":"Update","id":3076495785,"comment":"Outgoing messages in a channel/supergroup were read","arguments":[{"name":"channel_id","type":"int53","comment":"Channel/supergroup ID"},{"name":"max_id","type":"int","comment":"Position up to which all outgoing messages are read."}]},{"kind":"class","name":"updateDraftMessage","type":"Update","id":457829485,"comment":"Notifies a change of a message draft.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"Peer","comment":"The peer to which the draft is associated"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"ID of the forum topic to which the draft is associated"},{"name":"draft","type":"DraftMessage","comment":"The draft"}]},{"kind":"class","name":"updateReadFeaturedStickers","type":"Update","id":1461528386,"comment":"Some featured stickers were marked as read","arguments":[]},{"kind":"class","name":"updateRecentStickers","type":"Update","id":2588027936,"comment":"The recent sticker list was updated","arguments":[]},{"kind":"class","name":"updateConfig","type":"Update","id":2720652550,"comment":"The server-side configuration has changed; the client should re-fetch the config using {@link help.RawGetConfigRequest}","arguments":[]},{"kind":"class","name":"updatePtsChanged","type":"Update","id":861169551,"comment":"Common message box sequence PTS has changed, state has to be refetched using updates.getState","arguments":[]},{"kind":"class","name":"updateChannelWebPage","type":"Update","id":791390623,"comment":"A webpage preview of a link in a channel/supergroup message was generated","arguments":[{"name":"channel_id","type":"int53","comment":"Channel/supergroup ID"},{"name":"webpage","type":"WebPage","comment":"Generated webpage preview"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updateDialogPinned","type":"Update","id":1852826908,"comment":"A dialog was pinned/unpinned","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the dialog was pinned"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Peer folder ID, for more info click here"},{"name":"peer","type":"DialogPeer","comment":"The dialog"}]},{"kind":"class","name":"updatePinnedDialogs","type":"Update","id":4195302562,"comment":"Pinned dialogs were updated","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Peer folder ID, for more info click here"},{"name":"order","type":"DialogPeer","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"New order of pinned dialogs"}]},{"kind":"class","name":"updateBotWebhookJSON","type":"Update","id":2199371971,"comment":"A new incoming event; for bots only","arguments":[{"name":"data","type":"DataJSON","comment":"The event"}]},{"kind":"class","name":"updateBotWebhookJSONQuery","type":"Update","id":2610053286,"comment":"A new incoming query; for bots only","arguments":[{"name":"query_id","type":"long","comment":"Query identifier"},{"name":"data","type":"DataJSON","comment":"Query data"},{"name":"timeout","type":"int","comment":"Query timeout"}]},{"kind":"class","name":"updateBotShippingQuery","type":"Update","id":3048144253,"comment":"This object contains information about an incoming shipping query.","arguments":[{"name":"query_id","type":"long","comment":"Unique query identifier"},{"name":"user_id","type":"int53","comment":"User who sent the query"},{"name":"payload","type":"bytes","comment":"Bot specified invoice payload"},{"name":"shipping_address","type":"PostAddress","comment":"User specified shipping address"}]},{"kind":"class","name":"updateBotPrecheckoutQuery","type":"Update","id":2359990934,"comment":"This object contains information about an incoming pre-checkout query.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"query_id","type":"long","comment":"Unique query identifier"},{"name":"user_id","type":"int53","comment":"User who sent the query"},{"name":"payload","type":"bytes","comment":"Bot specified invoice payload"},{"name":"info","type":"PaymentRequestedInfo","typeModifiers":{"predicate":"flags.0"},"comment":"Order info provided by the user"},{"name":"shipping_option_id","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Identifier of the shipping option chosen by the user"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"total_amount","type":"long","comment":"Total amount in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}]},{"kind":"class","name":"updatePhoneCall","type":"Update","id":2869914398,"comment":"An incoming phone call","arguments":[{"name":"phone_call","type":"PhoneCall","comment":"Phone call"}]},{"kind":"class","name":"updateLangPackTooLong","type":"Update","id":1180041828,"comment":"A language pack has changed, the client should manually fetch the changed strings using {@link langpack.RawGetDifferenceRequest}","arguments":[{"name":"lang_code","type":"string","comment":"Language code"}]},{"kind":"class","name":"updateLangPack","type":"Update","id":1442983757,"comment":"Language pack updated","arguments":[{"name":"difference","type":"LangPackDifference","comment":"Changed strings"}]},{"kind":"class","name":"updateFavedStickers","type":"Update","id":3843135853,"comment":"The list of favorited stickers was changed, the client should call {@link messages.RawGetFavedStickersRequest} to refetch the new list","arguments":[]},{"kind":"class","name":"updateChannelReadMessagesContents","type":"Update","id":3928556893,"comment":"The specified channel/supergroup messages were read","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel_id","type":"int53","comment":"Channel/supergroup ID"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Forum topic ID."},{"name":"messages","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of messages that were read"}]},{"kind":"class","name":"updateContactsReset","type":"Update","id":1887741886,"comment":"All contacts were deleted","arguments":[]},{"kind":"class","name":"updateChannelAvailableMessages","type":"Update","id":2990524056,"comment":"The history of a channel/supergroup was hidden.","arguments":[{"name":"channel_id","type":"int53","comment":"Channel/supergroup ID"},{"name":"available_min_id","type":"int","comment":"Identifier of a maximum unavailable message in a channel due to hidden history."}]},{"kind":"class","name":"updateDialogUnreadMark","type":"Update","id":3781450179,"comment":"The manual unread mark of a chat was changed","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"unread","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Was the chat marked or unmarked as read"},{"name":"peer","type":"DialogPeer","comment":"The dialog"}]},{"kind":"class","name":"updateMessagePoll","type":"Update","id":2896258427,"comment":"The results of a poll have changed","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"poll_id","type":"long","comment":"Poll ID"},{"name":"poll","type":"Poll","typeModifiers":{"predicate":"flags.0"},"comment":"If the server knows the client hasn't cached this poll yet, the poll itself"},{"name":"results","type":"PollResults","comment":"New poll results"}]},{"kind":"class","name":"updateChatDefaultBannedRights","type":"Update","id":1421875280,"comment":"Default banned rights in a normal chat were updated","arguments":[{"name":"peer","type":"Peer","comment":"The chat"},{"name":"default_banned_rights","type":"ChatBannedRights","comment":"New default banned rights"},{"name":"version","type":"int","comment":"Version"}]},{"kind":"class","name":"updateFolderPeers","type":"Update","id":422972864,"comment":"The peer list of a peer folder was updated","arguments":[{"name":"folder_peers","type":"FolderPeer","typeModifiers":{"isVector":true},"comment":"New peer list"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updatePeerSettings","type":"Update","id":1786671974,"comment":"Settings of a certain peer have changed","arguments":[{"name":"peer","type":"Peer","comment":"The peer"},{"name":"settings","type":"PeerSettings","comment":"Associated peer settings"}]},{"kind":"class","name":"updatePeerLocated","type":"Update","id":3031420848,"comment":"List of peers near you was updated","arguments":[{"name":"peers","type":"PeerLocated","typeModifiers":{"isVector":true},"comment":"Geolocated peer list update"}]},{"kind":"class","name":"updateNewScheduledMessage","type":"Update","id":967122427,"comment":"A message was added to the schedule queue of a chat","arguments":[{"name":"message","type":"Message","comment":"Message"}]},{"kind":"class","name":"updateDeleteScheduledMessages","type":"Update","id":2424728814,"comment":"Some scheduled messages were deleted from the schedule queue of a chat","arguments":[{"name":"peer","type":"Peer","comment":"Peer"},{"name":"messages","type":"int","typeModifiers":{"isVector":true},"comment":"Deleted scheduled messages"}]},{"kind":"class","name":"updateTheme","type":"Update","id":2182544291,"comment":"A cloud theme was updated","arguments":[{"name":"theme","type":"Theme","comment":"Theme"}]},{"kind":"class","name":"updateGeoLiveViewed","type":"Update","id":2267003193,"comment":"Live geo position message was viewed","arguments":[{"name":"peer","type":"Peer","comment":"The user that viewed the live geo position"},{"name":"msg_id","type":"int","comment":"Message ID of geo position message"}]},{"kind":"class","name":"updateLoginToken","type":"Update","id":1448076945,"comment":"A login token (for login via QR code) was accepted.","arguments":[]},{"kind":"class","name":"updateMessagePollVote","type":"Update","id":619974263,"comment":"A specific peer has voted in a poll","arguments":[{"name":"poll_id","type":"long","comment":"Poll ID"},{"name":"peer","type":"Peer","comment":"The peer that voted in the poll"},{"name":"options","type":"bytes","typeModifiers":{"isVector":true},"comment":"Chosen option(s)"},{"name":"qts","type":"int","comment":"New qts value, see updates ยป for more info."}]},{"kind":"class","name":"updateDialogFilter","type":"Update","id":654302845,"comment":"A new folder was added","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"int","comment":"Folder ID"},{"name":"filter","type":"DialogFilter","typeModifiers":{"predicate":"flags.0"},"comment":"Folder info"}]},{"kind":"class","name":"updateDialogFilterOrder","type":"Update","id":2782339333,"comment":"New folder order","arguments":[{"name":"order","type":"int","typeModifiers":{"isVector":true},"comment":"Ordered folder IDs"}]},{"kind":"class","name":"updateDialogFilters","type":"Update","id":889491791,"comment":"Clients should update folder info","arguments":[]},{"kind":"class","name":"updatePhoneCallSignalingData","type":"Update","id":643940105,"comment":"Incoming phone call signaling payload","arguments":[{"name":"phone_call_id","type":"long","comment":"Phone call ID"},{"name":"data","type":"bytes","comment":"Signaling payload"}]},{"kind":"class","name":"updateChannelMessageForwards","type":"Update","id":3533318132,"comment":"The forward counter of a message in a channel has changed","arguments":[{"name":"channel_id","type":"int53","comment":"Channel ID"},{"name":"id","type":"int","comment":"ID of the message"},{"name":"forwards","type":"int","comment":"New forward counter"}]},{"kind":"class","name":"updateReadChannelDiscussionInbox","type":"Update","id":3601962310,"comment":"Incoming comments in a discussion thread were marked as read","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel_id","type":"int53","comment":"Discussion group ID"},{"name":"top_msg_id","type":"int","comment":"ID of the group message that started the thread (message in linked discussion group)"},{"name":"read_max_id","type":"int","comment":"Message ID of latest read incoming message for this thread"},{"name":"broadcast_id","type":"int53","typeModifiers":{"predicate":"flags.0"},"comment":"If set, contains the ID of the channel that contains the post that started the comment thread in the discussion group (channel_id)"},{"name":"broadcast_post","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If set, contains the ID of the channel post that started the comment thread"}]},{"kind":"class","name":"updateReadChannelDiscussionOutbox","type":"Update","id":1767677564,"comment":"Outgoing comments in a discussion thread were marked as read","arguments":[{"name":"channel_id","type":"int53","comment":"Supergroup ID"},{"name":"top_msg_id","type":"int","comment":"ID of the group message that started the thread"},{"name":"read_max_id","type":"int","comment":"Message ID of latest read outgoing message for this thread"}]},{"kind":"class","name":"updatePeerBlocked","type":"Update","id":3957356370,"comment":"We blocked a peer, see here ยป for more info on blocklists.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"blocked","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the peer was blocked or unblocked"},{"name":"blocked_my_stories_from","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the peer was added/removed to/from the story blocklist; if not set, this update affects the main blocklist, see here ยป for more info."},{"name":"peer_id","type":"Peer","comment":"The (un)blocked peer"}]},{"kind":"class","name":"updateChannelUserTyping","type":"Update","id":2357774627,"comment":"A user is typing in a supergroup, channel or message thread","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel_id","type":"int53","comment":"Channel ID"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Thread ID"},{"name":"from_id","type":"Peer","comment":"The peer that is typing"},{"name":"action","type":"SendMessageAction","comment":"Whether the user is typing, sending a media or doing something else"}]},{"kind":"class","name":"updatePinnedMessages","type":"Update","id":3984976565,"comment":"Some messages were pinned in a chat","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the messages were pinned or unpinned"},{"name":"peer","type":"Peer","comment":"Peer"},{"name":"messages","type":"int","typeModifiers":{"isVector":true},"comment":"Message IDs"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updatePinnedChannelMessages","type":"Update","id":1538885128,"comment":"Messages were pinned/unpinned in a channel/supergroup","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the messages were pinned or unpinned"},{"name":"channel_id","type":"int53","comment":"Channel ID"},{"name":"messages","type":"int","typeModifiers":{"isVector":true},"comment":"Messages"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updateChat","type":"Update","id":4170869326,"comment":"A new chat is available","arguments":[{"name":"chat_id","type":"int53","comment":"Chat ID"}]},{"kind":"class","name":"updateGroupCallParticipants","type":"Update","id":4075543374,"comment":"The participant list of a certain group call has changed","arguments":[{"name":"call","type":"InputGroupCall","comment":"Group call"},{"name":"participants","type":"GroupCallParticipant","typeModifiers":{"isVector":true},"comment":"New participant list"},{"name":"version","type":"int","comment":"Version"}]},{"kind":"class","name":"updateGroupCall","type":"Update","id":347227392,"comment":"A new groupcall was started","arguments":[{"name":"chat_id","type":"int53","comment":"The channel/supergroup where this group call or livestream takes place"},{"name":"call","type":"GroupCall","comment":"Info about the group call or livestream"}]},{"kind":"class","name":"updatePeerHistoryTTL","type":"Update","id":3147544997,"comment":"The Time-To-Live for messages sent by the current user in a specific chat has changed","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"Peer","comment":"The chat"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"The new Time-To-Live"}]},{"kind":"class","name":"updateChatParticipant","type":"Update","id":3498534458,"comment":"A user has joined or left a specific chat","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"chat_id","type":"int53","comment":"Chat ID"},{"name":"date","type":"int","comment":"When did this event occur"},{"name":"actor_id","type":"int53","comment":"User that triggered the change (inviter, admin that kicked the user, or the even the user_id itself)"},{"name":"user_id","type":"int53","comment":"User that was affected by the change"},{"name":"prev_participant","type":"ChatParticipant","typeModifiers":{"predicate":"flags.0"},"comment":"Previous participant info (empty if this participant just joined)"},{"name":"new_participant","type":"ChatParticipant","typeModifiers":{"predicate":"flags.1"},"comment":"New participant info (empty if this participant just left)"},{"name":"invite","type":"ExportedChatInvite","typeModifiers":{"predicate":"flags.2"},"comment":"The invite that was used to join the group"},{"name":"qts","type":"int","comment":"New qts value, see updates ยป for more info."}]},{"kind":"class","name":"updateChannelParticipant","type":"Update","id":2556246715,"comment":"A participant has left, joined, was banned or admined in a channel or supergroup.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"via_chatlist","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the participant joined using a chat folder deep link ยป."},{"name":"channel_id","type":"int53","comment":"Channel ID"},{"name":"date","type":"int","comment":"Date of the event"},{"name":"actor_id","type":"int53","comment":"User that triggered the change (inviter, admin that kicked the user, or the even the user_id itself)"},{"name":"user_id","type":"int53","comment":"User that was affected by the change"},{"name":"prev_participant","type":"ChannelParticipant","typeModifiers":{"predicate":"flags.0"},"comment":"Previous participant status"},{"name":"new_participant","type":"ChannelParticipant","typeModifiers":{"predicate":"flags.1"},"comment":"New participant status"},{"name":"invite","type":"ExportedChatInvite","typeModifiers":{"predicate":"flags.2"},"comment":"Chat invite used to join the channel/supergroup"},{"name":"qts","type":"int","comment":"New qts value, see updates ยป for more info."}]},{"kind":"class","name":"updateBotStopped","type":"Update","id":3297184329,"comment":"A bot was stopped or re-started.","arguments":[{"name":"user_id","type":"int53","comment":"The user ID"},{"name":"date","type":"int","comment":"When did this action occur"},{"name":"stopped","type":"Bool","comment":"Whether the bot was stopped or started"},{"name":"qts","type":"int","comment":"New qts value, see updates ยป for more info."}]},{"kind":"class","name":"updateGroupCallConnection","type":"Update","id":192428418,"comment":"New WebRTC parameters","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"presentation","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Are these parameters related to the screen capture session currently in progress?"},{"name":"params","type":"DataJSON","comment":"WebRTC parameters"}]},{"kind":"class","name":"updateBotCommands","type":"Update","id":1299263278,"comment":"The command set of a certain bot in a certain chat has changed.","arguments":[{"name":"peer","type":"Peer","comment":"The affected chat"},{"name":"bot_id","type":"int53","comment":"ID of the bot that changed its command set"},{"name":"commands","type":"BotCommand","typeModifiers":{"isVector":true},"comment":"New bot commands"}]},{"kind":"class","name":"updatePendingJoinRequests","type":"Update","id":1885586395,"comment":"Someone has requested to join a chat or channel","arguments":[{"name":"peer","type":"Peer","comment":"Chat or channel"},{"name":"requests_pending","type":"int","comment":"Number of pending join requests ยป for the chat or channel"},{"name":"recent_requesters","type":"int53","typeModifiers":{"isVector":true},"comment":"IDs of users that have recently requested to join"}]},{"kind":"class","name":"updateBotChatInviteRequester","type":"Update","id":299870598,"comment":"Someone has requested to join a chat or channel (bots only, users will receive an {@link RawUpdatePendingJoinRequests}, instead)","arguments":[{"name":"peer","type":"Peer","comment":"The chat or channel in question"},{"name":"date","type":"int","comment":"When was the join request ยป made"},{"name":"user_id","type":"int53","comment":"The user ID that is asking to join the chat or channel"},{"name":"about","type":"string","comment":"Bio of the user"},{"name":"invite","type":"ExportedChatInvite","comment":"Chat invite link that was used by the user to send the join request ยป"},{"name":"qts","type":"int","comment":"QTS event sequence identifier"}]},{"kind":"class","name":"updateMessageReactions","type":"Update","id":1578843320,"comment":"New message reactions ยป are available","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"Peer","comment":"Peer"},{"name":"msg_id","type":"int","comment":"Message ID"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Forum topic ID"},{"name":"reactions","type":"MessageReactions","comment":"Reactions"}]},{"kind":"class","name":"updateAttachMenuBots","type":"Update","id":397910539,"comment":"The list of installed attachment menu entries ยป has changed, use {@link messages.RawGetAttachMenuBotsRequest} to fetch the updated list.","arguments":[]},{"kind":"class","name":"updateWebViewResultSent","type":"Update","id":361936797,"comment":"Indicates to a bot that a webview was closed and an inline message was sent on behalf of the user using {@link messages.RawSendWebViewResultMessageRequest}","arguments":[{"name":"query_id","type":"long","comment":"Web app interaction ID"}]},{"kind":"class","name":"updateBotMenuButton","type":"Update","id":347625491,"comment":"The menu button behavior for the specified bot has changed","arguments":[{"name":"bot_id","type":"int53","comment":"Bot ID"},{"name":"button","type":"BotMenuButton","comment":"New menu button"}]},{"kind":"class","name":"updateSavedRingtones","type":"Update","id":1960361625,"comment":"The list of saved notification sounds has changed, use {@link account.RawGetSavedRingtonesRequest} to fetch the new list.","arguments":[]},{"kind":"class","name":"updateTranscribedAudio","type":"Update","id":8703322,"comment":"A pending voice message transcription ยป initiated with {@link messages.RawTranscribeAudioRequest} was updated.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pending","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this transcription is still pending and further {@link RawUpdateTranscribedAudio} about it will be sent in the future."},{"name":"peer","type":"Peer","comment":"Peer of the transcribed message"},{"name":"msg_id","type":"int","comment":"Transcribed message ID"},{"name":"transcription_id","type":"long","comment":"Transcription ID"},{"name":"text","type":"string","comment":"Transcribed text"}]},{"kind":"class","name":"updateReadFeaturedEmojiStickers","type":"Update","id":4216080748,"comment":"Some featured custom emoji stickers were marked as read","arguments":[]},{"kind":"class","name":"updateUserEmojiStatus","type":"Update","id":674706841,"comment":"The emoji status of a certain user has changed","arguments":[{"name":"user_id","type":"int53","comment":"User ID"},{"name":"emoji_status","type":"EmojiStatus","comment":"New emoji status"}]},{"kind":"class","name":"updateRecentEmojiStatuses","type":"Update","id":821314523,"comment":"The list of recent emoji statuses has changed","arguments":[]},{"kind":"class","name":"updateRecentReactions","type":"Update","id":1870160884,"comment":"The list of recent message reactions has changed","arguments":[]},{"kind":"class","name":"updateMoveStickerSetToTop","type":"Update","id":2264715141,"comment":"A stickerset was just moved to top, see here for more info ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"masks","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"This update is referring to a mask stickerset"},{"name":"emojis","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"This update is referring to a custom emoji stickerset"},{"name":"stickerset","type":"long","comment":"Stickerset ID"}]},{"kind":"class","name":"updateMessageExtendedMedia","type":"Update","id":1517529484,"comment":"Extended media update","arguments":[{"name":"peer","type":"Peer","comment":"Peer"},{"name":"msg_id","type":"int","comment":"Message ID"},{"name":"extended_media","type":"MessageExtendedMedia","comment":"Extended media"}]},{"kind":"class","name":"updateChannelPinnedTopic","type":"Update","id":422509539,"comment":"A forum topic ยป was pinned or unpinned.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the topic was pinned or unpinned"},{"name":"channel_id","type":"int53","comment":"The forum ID"},{"name":"topic_id","type":"int","comment":"The topic ID"}]},{"kind":"class","name":"updateChannelPinnedTopics","type":"Update","id":4263085570,"comment":"The pinned topics of a forum have changed.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel_id","type":"int53","comment":"Forum ID."},{"name":"order","type":"int","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Ordered list containing the IDs of all pinned topics."}]},{"kind":"class","name":"updateUser","type":"Update","id":542282808,"comment":"User information was updated, it must be refetched using {@link users.RawGetFullUserRequest}.","arguments":[{"name":"user_id","type":"int53","comment":"User ID"}]},{"kind":"class","name":"updateAutoSaveSettings","type":"Update","id":3959795863,"comment":"Media autosave settings have changed and must be refetched using {@link account.RawGetAutoSaveSettingsRequest}.","arguments":[]},{"kind":"class","name":"updateStory","type":"Update","id":1974712216,"comment":"A new story was posted.","arguments":[{"name":"peer","type":"Peer","comment":"ID of the poster."},{"name":"story","type":"StoryItem","comment":"The story that was posted."}]},{"kind":"class","name":"updateReadStories","type":"Update","id":4149121835,"comment":"Stories of a specific peer were marked as read.","arguments":[{"name":"peer","type":"Peer","comment":"The peer"},{"name":"max_id","type":"int","comment":"ID of the last story that was marked as read"}]},{"kind":"class","name":"updateStoryID","type":"Update","id":468923833,"comment":"A story was successfully uploaded.\n\nOnce a story is successfully uploaded, an {@link RawUpdateStoryID} will be returned, indicating the story ID (id) that was attributed to the story (like for messages, random_id indicates the random_id that was passed to {@link stories.RawSendStoryRequest}: this way, you can tell which story was assigned a specific id by checking which {@link stories.RawSendStoryRequest} call has the returned random_id).","arguments":[{"name":"id","type":"int","comment":"The id that was attributed to the story."},{"name":"random_id","type":"long","comment":"The random_id that was passed to {@link stories.RawSendStoryRequest}."}]},{"kind":"class","name":"updateStoriesStealthMode","type":"Update","id":738741697,"comment":"Indicates that stories stealth mode was activated.","arguments":[{"name":"stealth_mode","type":"StoriesStealthMode","comment":"Information about the current stealth mode session."}]},{"kind":"class","name":"updateSentStoryReaction","type":"Update","id":2103604867,"comment":"Indicates we reacted to a story ยป.","arguments":[{"name":"peer","type":"Peer","comment":"The peer that sent the story"},{"name":"story_id","type":"int","comment":"ID of the story we reacted to"},{"name":"reaction","type":"Reaction","comment":"The reaction that was sent"}]},{"kind":"class","name":"updateBotChatBoost","type":"Update","id":2421019804,"comment":"A channel boost has changed (bots only)","arguments":[{"name":"peer","type":"Peer","comment":"Channel"},{"name":"boost","type":"Boost","comment":"New boost information"},{"name":"qts","type":"int","comment":"QTS event sequence identifier"}]},{"kind":"class","name":"updateChannelViewForumAsMessages","type":"Update","id":129403168,"comment":"Users may also choose to display messages from all topics as if they were sent to a normal group, using a \"View as messages\" setting in the local client.
\nThis setting only affects the current account, and is synced to other logged in sessions using the {@link channels.RawToggleViewForumAsMessagesRequest} method; invoking this method will update the value of the view_forum_as_messages flag of {@link RawChannelFull} or {@link RawDialog} and emit an {@link RawUpdateChannelViewForumAsMessages}.","arguments":[{"name":"channel_id","type":"int53","comment":"The forum ID"},{"name":"enabled","type":"Bool","comment":"The new value of the toggle."}]},{"kind":"class","name":"updatePeerWallpaper","type":"Update","id":2923368477,"comment":"The wallpaper ยป of a given peer has changed.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"wallpaper_overridden","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the other user has chosen a custom wallpaper for us using {@link messages.RawSetChatWallPaperRequest} and the for_both flag, see here ยป for more info."},{"name":"peer","type":"Peer","comment":"The peer where the wallpaper has changed."},{"name":"wallpaper","type":"WallPaper","typeModifiers":{"predicate":"flags.0"},"comment":"The new wallpaper, if none the wallpaper was removed and the default wallpaper should be used."}]},{"kind":"class","name":"updateBotMessageReaction","type":"Update","id":2887898062,"comment":"Bots only: a user has changed their reactions on a message with public reactions.","arguments":[{"name":"peer","type":"Peer","comment":"Peer of the reacted-to message."},{"name":"msg_id","type":"int","comment":"ID of the reacted-to message."},{"name":"date","type":"int","comment":"Date of the change."},{"name":"actor","type":"Peer","comment":"The user that (un)reacted to the message."},{"name":"old_reactions","type":"Reaction","typeModifiers":{"isVector":true},"comment":"Old reactions"},{"name":"new_reactions","type":"Reaction","typeModifiers":{"isVector":true},"comment":"New reactions"},{"name":"qts","type":"int","comment":"QTS event sequence identifier"}]},{"kind":"class","name":"updateBotMessageReactions","type":"Update","id":164329305,"comment":"Bots only: the number of reactions on a message with anonymous reactions has changed.","arguments":[{"name":"peer","type":"Peer","comment":"Peer of the reacted-to message."},{"name":"msg_id","type":"int","comment":"ID of the reacted-to message."},{"name":"date","type":"int","comment":"Date of the change."},{"name":"reactions","type":"ReactionCount","typeModifiers":{"isVector":true},"comment":"New reaction counters."},{"name":"qts","type":"int","comment":"QTS event sequence identifier"}]},{"kind":"class","name":"updateSavedDialogPinned","type":"Update","id":2930744948,"comment":"A saved message dialog was pinned/unpinned","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the dialog was pinned"},{"name":"peer","type":"DialogPeer","comment":"The dialog"}]},{"kind":"class","name":"updatePinnedSavedDialogs","type":"Update","id":1751942566,"comment":"Pinned saved dialogs ยป were updated","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"order","type":"DialogPeer","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"New order of pinned saved dialogs"}]},{"kind":"class","name":"updateSavedReactionTags","type":"Update","id":969307186,"arguments":[]},{"kind":"class","name":"updateSmsJob","type":"Update","id":4049758676,"arguments":[{"name":"job_id","type":"string"}]},{"kind":"class","name":"updateQuickReplies","type":"Update","id":4182182578,"arguments":[{"name":"quick_replies","type":"QuickReply","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"updateNewQuickReply","type":"Update","id":4114458391,"arguments":[{"name":"quick_reply","type":"QuickReply"}]},{"kind":"class","name":"updateDeleteQuickReply","type":"Update","id":1407644140,"arguments":[{"name":"shortcut_id","type":"int"}]},{"kind":"class","name":"updateQuickReplyMessage","type":"Update","id":1040518415,"arguments":[{"name":"message","type":"Message"}]},{"kind":"class","name":"updateDeleteQuickReplyMessages","type":"Update","id":1450174413,"arguments":[{"name":"shortcut_id","type":"int"},{"name":"messages","type":"int","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"updateBotBusinessConnect","type":"Update","id":2330315130,"arguments":[{"name":"connection","type":"BotBusinessConnection"},{"name":"qts","type":"int"}]},{"kind":"class","name":"updateBotNewBusinessMessage","type":"Update","id":2648388732,"arguments":[{"name":"flags","type":"#"},{"name":"connection_id","type":"string"},{"name":"message","type":"Message"},{"name":"reply_to_message","type":"Message","typeModifiers":{"predicate":"flags.0"}},{"name":"qts","type":"int"}]},{"kind":"class","name":"updateBotEditBusinessMessage","type":"Update","id":132077692,"arguments":[{"name":"flags","type":"#"},{"name":"connection_id","type":"string"},{"name":"message","type":"Message"},{"name":"reply_to_message","type":"Message","typeModifiers":{"predicate":"flags.0"}},{"name":"qts","type":"int"}]},{"kind":"class","name":"updateBotDeleteBusinessMessage","type":"Update","id":2687146030,"arguments":[{"name":"connection_id","type":"string"},{"name":"peer","type":"Peer"},{"name":"messages","type":"int","typeModifiers":{"isVector":true}},{"name":"qts","type":"int"}]},{"kind":"class","name":"updateNewStoryReaction","type":"Update","id":405070859,"arguments":[{"name":"story_id","type":"int"},{"name":"peer","type":"Peer"},{"name":"reaction","type":"Reaction"}]},{"kind":"class","name":"updateBroadcastRevenueTransactions","id":3755565557,"type":"Update","arguments":[{"name":"peer","type":"Peer"},{"name":"balances","type":"BroadcastRevenueBalances"}]},{"kind":"class","name":"updateStarsBalance","id":263737752,"type":"Update","arguments":[{"name":"balance","type":"long"}]},{"kind":"class","name":"updates.state","type":"updates.State","id":2775329342,"comment":"Updates state.","arguments":[{"name":"pts","type":"int","comment":"Number of events occurred in a text box"},{"name":"qts","type":"int","comment":"Position in a sequence of updates in secret chats. For further details refer to article secret chats"},{"name":"date","type":"int","comment":"Date of condition"},{"name":"seq","type":"int","comment":"Number of sent updates"},{"name":"unread_count","type":"int","comment":"Number of unread messages"}]},{"kind":"class","name":"updates.differenceEmpty","type":"updates.Difference","id":1567990072,"comment":"No events.","arguments":[{"name":"date","type":"int","comment":"Current date"},{"name":"seq","type":"int","comment":"Number of sent updates"}]},{"kind":"class","name":"updates.difference","type":"updates.Difference","id":16030880,"comment":"Full list of occurred events.","arguments":[{"name":"new_messages","type":"Message","typeModifiers":{"isVector":true},"comment":"List of new messages"},{"name":"new_encrypted_messages","type":"EncryptedMessage","typeModifiers":{"isVector":true},"comment":"List of new encrypted secret chat messages"},{"name":"other_updates","type":"Update","typeModifiers":{"isVector":true},"comment":"List of updates"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of chats mentioned in events"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users mentioned in events"},{"name":"state","type":"updates.State","comment":"Current state"}]},{"kind":"class","name":"updates.differenceSlice","type":"updates.Difference","id":2835028353,"comment":"Incomplete list of occurred events.","arguments":[{"name":"new_messages","type":"Message","typeModifiers":{"isVector":true},"comment":"List of new messages"},{"name":"new_encrypted_messages","type":"EncryptedMessage","typeModifiers":{"isVector":true},"comment":"New messages from the encrypted event sequence"},{"name":"other_updates","type":"Update","typeModifiers":{"isVector":true},"comment":"List of updates"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of chats mentioned in events"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users mentioned in events"},{"name":"intermediate_state","type":"updates.State","comment":"Intermediary state"}]},{"kind":"class","name":"updates.differenceTooLong","type":"updates.Difference","id":1258196845,"comment":"The difference is too long, and the specified state must be used to refetch updates.","arguments":[{"name":"pts","type":"int","comment":"The new state to use."}]},{"kind":"class","name":"updatesTooLong","type":"Updates","id":3809980286,"comment":"Too many updates, it is necessary to execute {@link updates.RawGetDifferenceRequest}.","arguments":[]},{"kind":"class","name":"updateShortMessage","type":"Updates","id":826001400,"comment":"Info about a message sent to (received from) another user","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"out","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the message is outgoing"},{"name":"mentioned","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether we were mentioned in the message"},{"name":"media_unread","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether there are some unread mentions in this message"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"If true, the message is a silent message, no notifications should be triggered"},{"name":"id","type":"int","comment":"The message ID"},{"name":"user_id","type":"int53","comment":"The ID of the sender (if outgoing will be the ID of the destination) of the message"},{"name":"message","type":"string","comment":"The message"},{"name":"pts","type":"int","comment":"PTS"},{"name":"pts_count","type":"int","comment":"PTS count"},{"name":"date","type":"int","comment":"date"},{"name":"fwd_from","type":"MessageFwdHeader","typeModifiers":{"predicate":"flags.2"},"comment":"Info about a forwarded message"},{"name":"via_bot_id","type":"int53","typeModifiers":{"predicate":"flags.11"},"comment":"Info about the inline bot used to generate this message"},{"name":"reply_to","type":"MessageReplyHeader","typeModifiers":{"predicate":"flags.3"},"comment":"Reply and thread information"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.7","isVector":true},"comment":"Entities for styled text"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.25"},"comment":"Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well."}]},{"kind":"class","name":"updateShortChatMessage","type":"Updates","id":1299050149,"comment":"Shortened constructor containing info on one new incoming text message from a chat","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"out","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the message is outgoing"},{"name":"mentioned","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether we were mentioned in this message"},{"name":"media_unread","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether the message contains some unread mentions"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"If true, the message is a silent message, no notifications should be triggered"},{"name":"id","type":"int","comment":"ID of the message"},{"name":"from_id","type":"int53","comment":"ID of the sender of the message"},{"name":"chat_id","type":"int53","comment":"ID of the chat where the message was sent"},{"name":"message","type":"string","comment":"Message"},{"name":"pts","type":"int","comment":"PTS"},{"name":"pts_count","type":"int","comment":"PTS count"},{"name":"date","type":"int","comment":"date"},{"name":"fwd_from","type":"MessageFwdHeader","typeModifiers":{"predicate":"flags.2"},"comment":"Info about a forwarded message"},{"name":"via_bot_id","type":"int53","typeModifiers":{"predicate":"flags.11"},"comment":"Info about the inline bot used to generate this message"},{"name":"reply_to","type":"MessageReplyHeader","typeModifiers":{"predicate":"flags.3"},"comment":"Reply (thread) information"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.7","isVector":true},"comment":"Entities for styled text"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.25"},"comment":"Time To Live of the message, once updateShortChatMessage.date+updateShortChatMessage.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well."}]},{"kind":"class","name":"updateShort","type":"Updates","id":2027216577,"comment":"Shortened constructor containing info on one update not requiring auxiliary data","arguments":[{"name":"update","type":"Update","comment":"Update"},{"name":"date","type":"int","comment":"Date of event"}]},{"kind":"class","name":"updatesCombined","type":"Updates","id":1918567619,"comment":"Constructor for a group of updates.","arguments":[{"name":"updates","type":"Update","typeModifiers":{"isVector":true},"comment":"List of updates"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users mentioned in updates"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of chats mentioned in updates"},{"name":"date","type":"int","comment":"Current date"},{"name":"seq_start","type":"int","comment":"Value seq for the earliest update in a group"},{"name":"seq","type":"int","comment":"Value seq for the latest update in a group"}]},{"kind":"class","name":"updates","type":"Updates","id":1957577280,"comment":"Full constructor of updates","arguments":[{"name":"updates","type":"Update","typeModifiers":{"isVector":true},"comment":"List of updates"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users mentioned in updates"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of chats mentioned in updates"},{"name":"date","type":"int","comment":"Current date"},{"name":"seq","type":"int","comment":"Total number of sent updates"}]},{"kind":"class","name":"updateShortSentMessage","type":"Updates","id":2417352961,"comment":"Shortened constructor containing info on one outgoing message to a contact (the destination chat has to be extracted from the method call that returned this object).","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"out","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the message is outgoing"},{"name":"id","type":"int","comment":"ID of the sent message"},{"name":"pts","type":"int","comment":"PTS"},{"name":"pts_count","type":"int","comment":"PTS count"},{"name":"date","type":"int","comment":"date"},{"name":"media","type":"MessageMedia","typeModifiers":{"predicate":"flags.9"},"comment":"Attached media"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.7","isVector":true},"comment":"Entities for styled text"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.25"},"comment":"Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well."}]},{"kind":"class","name":"photos.photos","type":"photos.Photos","id":2378853029,"comment":"Full list of photos with auxiliary data.","arguments":[{"name":"photos","type":"Photo","typeModifiers":{"isVector":true},"comment":"List of photos"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of mentioned users"}]},{"kind":"class","name":"photos.photosSlice","type":"photos.Photos","id":352657236,"comment":"Incomplete list of photos with auxiliary data.","arguments":[{"name":"count","type":"int","comment":"Total number of photos"},{"name":"photos","type":"Photo","typeModifiers":{"isVector":true},"comment":"List of photos"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of mentioned users"}]},{"kind":"class","name":"photos.photo","type":"photos.Photo","id":539045032,"comment":"Photo with auxiliary data.","arguments":[{"name":"photo","type":"Photo","comment":"Photo"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"upload.file","type":"upload.File","id":157948117,"comment":"File content.","arguments":[{"name":"type","type":"storage.FileType","comment":"File type"},{"name":"mtime","type":"int","comment":"Modification time"},{"name":"bytes","type":"bytes","comment":"Binary data, file content"}]},{"kind":"class","name":"upload.fileCdnRedirect","type":"upload.File","id":4052539972,"comment":"The file must be downloaded from a CDN DC.","arguments":[{"name":"dc_id","type":"int","comment":"CDN DC ID"},{"name":"file_token","type":"bytes","comment":"File token (see CDN files)"},{"name":"encryption_key","type":"bytes","comment":"Encryption key (see CDN files)"},{"name":"encryption_iv","type":"bytes","comment":"Encryption IV (see CDN files)"},{"name":"file_hashes","type":"FileHash","typeModifiers":{"isVector":true},"comment":"File hashes (see CDN files)"}]},{"kind":"class","name":"dcOption","type":"DcOption","id":414687501,"comment":"Data center","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"ipv6","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the specified IP is an IPv6 address"},{"name":"media_only","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this DC should only be used to download or upload files"},{"name":"tcpo_only","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this DC only supports connection with transport obfuscation"},{"name":"cdn","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this is a CDN DC."},{"name":"static","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If set, this IP should be used when connecting through a proxy"},{"name":"this_port_only","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"If set, clients must connect using only the specified port, without trying any other port."},{"name":"id","type":"int","comment":"DC ID"},{"name":"ip_address","type":"string","comment":"IP address of DC"},{"name":"port","type":"int","comment":"Port"},{"name":"secret","type":"bytes","typeModifiers":{"predicate":"flags.10"},"comment":"If the tcpo_only flag is set, specifies the secret to use when connecting using transport obfuscation"}]},{"kind":"class","name":"config","type":"Config","id":3424265246,"comment":"Current configuration","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"default_p2p_contacts","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the client should use P2P by default for phone calls with contacts"},{"name":"preload_featured_stickers","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether the client should preload featured stickers"},{"name":"revoke_pm_inbox","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether incoming private messages can be deleted for both participants"},{"name":"blocked_mode","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"Indicates that telegram is probably censored by governments/ISPs in the current region"},{"name":"force_try_ipv6","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Whether to forcefully connect using IPv6 dcOptions, even if the client knows that IPv4 is available."},{"name":"date","type":"int","comment":"Current date at the server"},{"name":"expires","type":"int","comment":"Expiration date of this config: when it expires it'll have to be refetched using {@link help.RawGetConfigRequest}"},{"name":"test_mode","type":"Bool","comment":"Whether we're connected to the test DCs"},{"name":"this_dc","type":"int","comment":"ID of the DC that returned the reply"},{"name":"dc_options","type":"DcOption","typeModifiers":{"isVector":true},"comment":"DC IP list"},{"name":"dc_txt_domain_name","type":"string","comment":"Domain name for fetching encrypted DC list from DNS TXT record"},{"name":"chat_size_max","type":"int","comment":"Maximum member count for normal groups"},{"name":"megagroup_size_max","type":"int","comment":"Maximum member count for supergroups"},{"name":"forwarded_count_max","type":"int","comment":"Maximum number of messages that can be forwarded at once using {@link messages.RawForwardMessagesRequest}."},{"name":"online_update_period_ms","type":"int","comment":"The client should {@link account.RawUpdateStatusRequest} every N milliseconds"},{"name":"offline_blur_timeout_ms","type":"int","comment":"Delay before offline status needs to be sent to the server"},{"name":"offline_idle_timeout_ms","type":"int","comment":"Time without any user activity after which it should be treated offline"},{"name":"online_cloud_timeout_ms","type":"int","comment":"If we are offline, but were online from some other client in last online_cloud_timeout_ms milliseconds after we had gone offline, then delay offline notification for notify_cloud_delay_ms milliseconds."},{"name":"notify_cloud_delay_ms","type":"int","comment":"If we are offline, but online from some other client then delay sending the offline notification for notify_cloud_delay_ms milliseconds."},{"name":"notify_default_delay_ms","type":"int","comment":"If some other client is online, then delay notification for notification_default_delay_ms milliseconds"},{"name":"push_chat_period_ms","type":"int","comment":"Not for client use"},{"name":"push_chat_limit","type":"int","comment":"Not for client use"},{"name":"edit_time_limit","type":"int","comment":"Only messages with age smaller than the one specified can be edited"},{"name":"revoke_time_limit","type":"int","comment":"Only channel/supergroup messages with age smaller than the specified can be deleted"},{"name":"revoke_pm_time_limit","type":"int","comment":"Only private messages with age smaller than the specified can be deleted"},{"name":"rating_e_decay","type":"int","comment":"Exponential decay rate for computing top peer rating"},{"name":"stickers_recent_limit","type":"int","comment":"Maximum number of recent stickers"},{"name":"channels_read_media_period","type":"int","comment":"Indicates that round videos (video notes) and voice messages sent in channels and older than the specified period must be marked as read"},{"name":"tmp_sessions","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Temporary passport sessions"},{"name":"call_receive_timeout_ms","type":"int","comment":"Maximum allowed outgoing ring time in VoIP calls: if the user we're calling doesn't reply within the specified time (in milliseconds), we should hang up the call"},{"name":"call_ring_timeout_ms","type":"int","comment":"Maximum allowed incoming ring time in VoIP calls: if the current user doesn't reply within the specified time (in milliseconds), the call will be automatically refused"},{"name":"call_connect_timeout_ms","type":"int","comment":"VoIP connection timeout: if the instance of libtgvoip on the other side of the call doesn't connect to our instance of libtgvoip within the specified time (in milliseconds), the call must be aborted"},{"name":"call_packet_timeout_ms","type":"int","comment":"If during a VoIP call a packet isn't received for the specified period of time, the call must be aborted"},{"name":"me_url_prefix","type":"string","comment":"The domain to use to parse deep links ยป."},{"name":"autoupdate_url_prefix","type":"string","typeModifiers":{"predicate":"flags.7"},"comment":"URL to use to auto-update the current app"},{"name":"gif_search_username","type":"string","typeModifiers":{"predicate":"flags.9"},"comment":"Username of the bot to use to search for GIFs"},{"name":"venue_search_username","type":"string","typeModifiers":{"predicate":"flags.10"},"comment":"Username of the bot to use to search for venues"},{"name":"img_search_username","type":"string","typeModifiers":{"predicate":"flags.11"},"comment":"Username of the bot to use for image search"},{"name":"static_maps_provider","type":"string","typeModifiers":{"predicate":"flags.12"},"comment":"ID of the map provider to use for venues"},{"name":"caption_length_max","type":"int","comment":"Maximum length of caption (length in utf8 codepoints)"},{"name":"message_length_max","type":"int","comment":"Maximum length of messages (length in utf8 codepoints)"},{"name":"webfile_dc_id","type":"int","comment":"DC ID to use to download webfiles"},{"name":"suggested_lang_code","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Suggested language code"},{"name":"lang_pack_version","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Language pack version"},{"name":"base_lang_pack_version","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Basic language pack version"},{"name":"reactions_default","type":"Reaction","typeModifiers":{"predicate":"flags.15"},"comment":"Default message reaction"},{"name":"autologin_token","type":"string","typeModifiers":{"predicate":"flags.16"},"comment":"Autologin token, click here for more info on URL authorization ยป."}]},{"kind":"class","name":"nearestDc","type":"NearestDc","id":2384074613,"comment":"Nearest data center, according to geo-ip.","arguments":[{"name":"country","type":"string","comment":"Country code determined by geo-ip"},{"name":"this_dc","type":"int","comment":"Number of current data center"},{"name":"nearest_dc","type":"int","comment":"Number of nearest data center"}]},{"kind":"class","name":"help.appUpdate","type":"help.AppUpdate","id":3434860080,"comment":"An update is available for the application.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"can_not_skip","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Unskippable, the new info must be shown to the user (with a popup or something else)"},{"name":"id","type":"int","comment":"Update ID"},{"name":"version","type":"string","comment":"New version name"},{"name":"text","type":"string","comment":"Text description of the update"},{"name":"entities","type":"MessageEntity","typeModifiers":{"isVector":true},"comment":"Message entities for styled text"},{"name":"document","type":"Document","typeModifiers":{"predicate":"flags.1"},"comment":"Application binary"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Application download URL"},{"name":"sticker","type":"Document","typeModifiers":{"predicate":"flags.3"},"comment":"Associated sticker"}]},{"kind":"class","name":"help.noAppUpdate","type":"help.AppUpdate","id":3294258486,"comment":"No updates are available for the application.","arguments":[]},{"kind":"class","name":"help.inviteText","type":"help.InviteText","id":415997816,"comment":"Text of a text message with an invitation to install Telegram.","arguments":[{"name":"message","type":"string","comment":"Text of the message"}]},{"kind":"class","name":"encryptedChatEmpty","type":"EncryptedChat","id":2877210784,"comment":"Empty constructor.","arguments":[{"name":"id","type":"int","comment":"Chat ID"}]},{"kind":"class","name":"encryptedChatWaiting","type":"EncryptedChat","id":1722964307,"comment":"Chat waiting for approval of second participant.","arguments":[{"name":"id","type":"int","comment":"Chat ID"},{"name":"access_hash","type":"long","comment":"Checking sum depending on user ID"},{"name":"date","type":"int","comment":"Date of chat creation"},{"name":"admin_id","type":"int53","comment":"Chat creator ID"},{"name":"participant_id","type":"int53","comment":"ID of second chat participant"}]},{"kind":"class","name":"encryptedChatRequested","type":"EncryptedChat","id":1223809356,"comment":"Request to create an encrypted chat.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Peer folder ID, for more info click here"},{"name":"id","type":"int","comment":"Chat ID"},{"name":"access_hash","type":"long","comment":"Check sum depending on user ID"},{"name":"date","type":"int","comment":"Chat creation date"},{"name":"admin_id","type":"int53","comment":"Chat creator ID"},{"name":"participant_id","type":"int53","comment":"ID of second chat participant"},{"name":"g_a","type":"bytes","comment":"A = g ^ a mod p, see Wikipedia"}]},{"kind":"class","name":"encryptedChat","type":"EncryptedChat","id":1643173063,"comment":"Encrypted chat","arguments":[{"name":"id","type":"int","comment":"Chat ID"},{"name":"access_hash","type":"long","comment":"Check sum dependent on the user ID"},{"name":"date","type":"int","comment":"Date chat was created"},{"name":"admin_id","type":"int53","comment":"Chat creator ID"},{"name":"participant_id","type":"int53","comment":"ID of the second chat participant"},{"name":"g_a_or_b","type":"bytes","comment":"B = g ^ b mod p, if the currently authorized user is the chat's creator,
or A = g ^ a mod p otherwise
See Wikipedia for more info"},{"name":"key_fingerprint","type":"long","comment":"64-bit fingerprint of received key"}]},{"kind":"class","name":"encryptedChatDiscarded","type":"EncryptedChat","id":505183301,"comment":"Discarded or deleted chat.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"history_deleted","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether both users of this secret chat should also remove all of its messages"},{"name":"id","type":"int","comment":"Chat ID"}]},{"kind":"class","name":"inputEncryptedChat","type":"InputEncryptedChat","id":4047615457,"comment":"Creates an encrypted chat.","arguments":[{"name":"chat_id","type":"int","comment":"Chat ID"},{"name":"access_hash","type":"long","comment":"Checking sum from constructor {@link RawEncryptedChat}, {@link RawEncryptedChatWaiting} or {@link RawEncryptedChatRequested}"}]},{"kind":"class","name":"encryptedFileEmpty","type":"EncryptedFile","id":3256830334,"comment":"Empty constructor, non-existing file.","arguments":[]},{"kind":"class","name":"encryptedFile","type":"EncryptedFile","id":2818608344,"comment":"Encrypted file.","arguments":[{"name":"id","type":"long","comment":"File ID"},{"name":"access_hash","type":"long","comment":"Checking sum depending on user ID"},{"name":"size","type":"int53","comment":"File size in bytes"},{"name":"dc_id","type":"int","comment":"Number of data center"},{"name":"key_fingerprint","type":"int","comment":"32-bit fingerprint of key used for file encryption"}]},{"kind":"class","name":"inputEncryptedFileEmpty","type":"InputEncryptedFile","id":406307684,"comment":"Empty constructor.","arguments":[]},{"kind":"class","name":"inputEncryptedFileUploaded","type":"InputEncryptedFile","id":1690108678,"comment":"Sets new encrypted file saved by parts using upload.saveFilePart method.","arguments":[{"name":"id","type":"long","comment":"Random file ID created by client"},{"name":"parts","type":"int","comment":"Number of saved parts"},{"name":"md5_checksum","type":"string","comment":"In case md5-HASH of the (already encrypted) file was transmitted, file content will be checked prior to use"},{"name":"key_fingerprint","type":"int","comment":"32-bit fingerprint of the key used to encrypt a file"}]},{"kind":"class","name":"inputEncryptedFile","type":"InputEncryptedFile","id":1511503333,"comment":"Sets forwarded encrypted file for attachment.","arguments":[{"name":"id","type":"long","comment":"File ID, value of id parameter from {@link RawEncryptedFile}"},{"name":"access_hash","type":"long","comment":"Checking sum, value of access_hash parameter from {@link RawEncryptedFile}"}]},{"kind":"class","name":"inputEncryptedFileBigUploaded","type":"InputEncryptedFile","id":767652808,"comment":"Assigns a new big encrypted file (over 10 MB in size), saved in parts using the method {@link upload.RawSaveBigFilePartRequest}.","arguments":[{"name":"id","type":"long","comment":"Random file id, created by the client"},{"name":"parts","type":"int","comment":"Number of saved parts"},{"name":"key_fingerprint","type":"int","comment":"32-bit imprint of the key used to encrypt the file"}]},{"kind":"class","name":"encryptedMessage","type":"EncryptedMessage","id":3977822488,"comment":"Encrypted message.","arguments":[{"name":"random_id","type":"long","comment":"Random message ID, assigned by the author of message"},{"name":"chat_id","type":"int","comment":"ID of encrypted chat"},{"name":"date","type":"int","comment":"Date of sending"},{"name":"bytes","type":"bytes","comment":"TL-serialization of DecryptedMessage type, encrypted with the key created at chat initialization"},{"name":"file","type":"EncryptedFile","comment":"Attached encrypted file"}]},{"kind":"class","name":"encryptedMessageService","type":"EncryptedMessage","id":594758406,"comment":"Encrypted service message","arguments":[{"name":"random_id","type":"long","comment":"Random message ID, assigned by the author of message"},{"name":"chat_id","type":"int","comment":"ID of encrypted chat"},{"name":"date","type":"int","comment":"Date of sending"},{"name":"bytes","type":"bytes","comment":"TL-serialization of the DecryptedMessage type, encrypted with the key created at chat initialization"}]},{"kind":"class","name":"messages.dhConfigNotModified","type":"messages.DhConfig","id":3236054581,"comment":"Configuring parameters did not change.","arguments":[{"name":"random","type":"bytes","comment":"Random sequence of bytes of assigned length"}]},{"kind":"class","name":"messages.dhConfig","type":"messages.DhConfig","id":740433629,"comment":"New set of configuring parameters.","arguments":[{"name":"g","type":"int","comment":"New value prime, see Wikipedia"},{"name":"p","type":"bytes","comment":"New value primitive root, see Wikipedia"},{"name":"version","type":"int","comment":"Version of set of parameters"},{"name":"random","type":"bytes","comment":"Random sequence of bytes of assigned length"}]},{"kind":"class","name":"messages.sentEncryptedMessage","type":"messages.SentEncryptedMessage","id":1443858741,"comment":"Message without file attachments sent to an encrypted file.","arguments":[{"name":"date","type":"int","comment":"Date of sending"}]},{"kind":"class","name":"messages.sentEncryptedFile","type":"messages.SentEncryptedMessage","id":2492727090,"comment":"Message with a file enclosure sent to a protected chat","arguments":[{"name":"date","type":"int","comment":"Sending date"},{"name":"file","type":"EncryptedFile","comment":"Attached file"}]},{"kind":"class","name":"inputDocumentEmpty","type":"InputDocument","id":1928391342,"comment":"Empty constructor.","arguments":[]},{"kind":"class","name":"inputDocument","type":"InputDocument","id":448771445,"comment":"Defines a document for subsequent interaction.","arguments":[{"name":"id","type":"long","comment":"Document ID"},{"name":"access_hash","type":"long","comment":"access_hash parameter from the {@link RawDocument} constructor"},{"name":"file_reference","type":"bytes","comment":"File reference"}]},{"kind":"class","name":"documentEmpty","type":"Document","id":922273905,"comment":"Empty constructor, document doesn't exist.","arguments":[{"name":"id","type":"long","comment":"Document ID or 0"}]},{"kind":"class","name":"document","type":"Document","id":2413085912,"comment":"Document","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"long","comment":"Document ID"},{"name":"access_hash","type":"long","comment":"Check sum, dependent on document ID"},{"name":"file_reference","type":"bytes","comment":"File reference"},{"name":"date","type":"int","comment":"Creation date"},{"name":"mime_type","type":"string","comment":"MIME type"},{"name":"size","type":"int53","comment":"Size"},{"name":"thumbs","type":"PhotoSize","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Thumbnails"},{"name":"video_thumbs","type":"VideoSize","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Video thumbnails"},{"name":"dc_id","type":"int","comment":"DC ID"},{"name":"attributes","type":"DocumentAttribute","typeModifiers":{"isVector":true},"comment":"Attributes"}]},{"kind":"class","name":"help.support","type":"help.Support","id":398898678,"comment":"Info on support user.","arguments":[{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"user","type":"User","comment":"User"}]},{"kind":"class","name":"notifyPeer","type":"NotifyPeer","id":2681474008,"comment":"Notifications generated by a certain user or group.","arguments":[{"name":"peer","type":"Peer","comment":"user or group"}]},{"kind":"class","name":"notifyUsers","type":"NotifyPeer","id":3033021260,"comment":"Notifications generated by all users.","arguments":[]},{"kind":"class","name":"notifyChats","type":"NotifyPeer","id":3221737155,"comment":"Notifications generated by all groups.","arguments":[]},{"kind":"class","name":"notifyBroadcasts","type":"NotifyPeer","id":3591563503,"comment":"Channel notification settings","arguments":[]},{"kind":"class","name":"notifyForumTopic","type":"NotifyPeer","id":577659656,"comment":"Notifications generated by a topic in a forum.","arguments":[{"name":"peer","type":"Peer","comment":"Forum ID"},{"name":"top_msg_id","type":"int","comment":"Topic ID"}]},{"kind":"class","name":"sendMessageTypingAction","type":"SendMessageAction","id":381645902,"comment":"User is typing.","arguments":[]},{"kind":"class","name":"sendMessageCancelAction","type":"SendMessageAction","id":4250847477,"comment":"Invalidate all previous action updates. E.g. when user deletes entered text or aborts a video upload.","arguments":[]},{"kind":"class","name":"sendMessageRecordVideoAction","type":"SendMessageAction","id":2710034031,"comment":"User is recording a video.","arguments":[]},{"kind":"class","name":"sendMessageUploadVideoAction","type":"SendMessageAction","id":3916839660,"comment":"User is uploading a video.","arguments":[{"name":"progress","type":"int","comment":"Progress percentage"}]},{"kind":"class","name":"sendMessageRecordAudioAction","type":"SendMessageAction","id":3576656887,"comment":"User is recording a voice message.","arguments":[]},{"kind":"class","name":"sendMessageUploadAudioAction","type":"SendMessageAction","id":4082227115,"comment":"User is uploading a voice message.","arguments":[{"name":"progress","type":"int","comment":"Progress percentage"}]},{"kind":"class","name":"sendMessageUploadPhotoAction","type":"SendMessageAction","id":3520285222,"comment":"User is uploading a photo.","arguments":[{"name":"progress","type":"int","comment":"Progress percentage"}]},{"kind":"class","name":"sendMessageUploadDocumentAction","type":"SendMessageAction","id":2852968932,"comment":"User is uploading a file.","arguments":[{"name":"progress","type":"int","comment":"Progress percentage"}]},{"kind":"class","name":"sendMessageGeoLocationAction","type":"SendMessageAction","id":393186209,"comment":"User is selecting a location to share.","arguments":[]},{"kind":"class","name":"sendMessageChooseContactAction","type":"SendMessageAction","id":1653390447,"comment":"User is selecting a contact to share.","arguments":[]},{"kind":"class","name":"sendMessageGamePlayAction","type":"SendMessageAction","id":3714748232,"comment":"User is playing a game","arguments":[]},{"kind":"class","name":"sendMessageRecordRoundAction","type":"SendMessageAction","id":2297593788,"comment":"User is recording a round video to share","arguments":[]},{"kind":"class","name":"sendMessageUploadRoundAction","type":"SendMessageAction","id":608050278,"comment":"User is uploading a round video","arguments":[{"name":"progress","type":"int","comment":"Progress percentage"}]},{"kind":"class","name":"speakingInGroupCallAction","type":"SendMessageAction","id":3643548293,"comment":"User is currently speaking in the group call","arguments":[]},{"kind":"class","name":"sendMessageHistoryImportAction","type":"SendMessageAction","id":3688534598,"comment":"Chat history is being imported","arguments":[{"name":"progress","type":"int","comment":"Progress percentage"}]},{"kind":"class","name":"sendMessageChooseStickerAction","type":"SendMessageAction","id":2958739121,"comment":"User is choosing a sticker","arguments":[]},{"kind":"class","name":"sendMessageEmojiInteraction","type":"SendMessageAction","id":630664139,"comment":"User has clicked on an animated emoji triggering a reaction, click here for more info ยป.","arguments":[{"name":"emoticon","type":"string","comment":"Emoji"},{"name":"msg_id","type":"int","comment":"Message ID of the animated emoji that was clicked"},{"name":"interaction","type":"DataJSON","comment":"A JSON object with interaction info, click here for more info ยป"}]},{"kind":"class","name":"sendMessageEmojiInteractionSeen","type":"SendMessageAction","id":3060109358,"comment":"User is watching an animated emoji reaction triggered by another user, click here for more info ยป.","arguments":[{"name":"emoticon","type":"string","comment":"Emoji"}]},{"kind":"class","name":"contacts.found","type":"contacts.Found","id":3004386717,"comment":"Users found by name substring and auxiliary data.","arguments":[{"name":"my_results","type":"Peer","typeModifiers":{"isVector":true},"comment":"Personalized results"},{"name":"results","type":"Peer","typeModifiers":{"isVector":true},"comment":"List of found user identifiers"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Found chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users"}]},{"kind":"class","name":"inputPrivacyKeyStatusTimestamp","type":"InputPrivacyKey","id":1335282456,"comment":"Whether people will be able to see your exact last online timestamp","arguments":[]},{"kind":"class","name":"inputPrivacyKeyChatInvite","type":"InputPrivacyKey","id":3187344422,"comment":"Whether people will be able to invite you to chats","arguments":[]},{"kind":"class","name":"inputPrivacyKeyPhoneCall","type":"InputPrivacyKey","id":4206550111,"comment":"Whether you will accept phone calls","arguments":[]},{"kind":"class","name":"inputPrivacyKeyPhoneP2P","type":"InputPrivacyKey","id":3684593874,"comment":"Whether to allow P2P communication during VoIP calls","arguments":[]},{"kind":"class","name":"inputPrivacyKeyForwards","type":"InputPrivacyKey","id":2765966344,"comment":"Whether messages forwarded from you will be anonymous","arguments":[]},{"kind":"class","name":"inputPrivacyKeyProfilePhoto","type":"InputPrivacyKey","id":1461304012,"comment":"Whether people will be able to see your profile picture","arguments":[]},{"kind":"class","name":"inputPrivacyKeyPhoneNumber","type":"InputPrivacyKey","id":55761658,"comment":"Whether people will be able to see your phone number","arguments":[]},{"kind":"class","name":"inputPrivacyKeyAddedByPhone","type":"InputPrivacyKey","id":3508640733,"comment":"Whether people can add you to their contact list by your phone number","arguments":[]},{"kind":"class","name":"inputPrivacyKeyVoiceMessages","type":"InputPrivacyKey","id":2934349160,"comment":"Whether people can send you voice messages","arguments":[]},{"kind":"class","name":"inputPrivacyKeyAbout","type":"InputPrivacyKey","id":941870144,"comment":"Whether people can see your bio","arguments":[]},{"kind":"class","name":"inputPrivacyKeyBirthday","type":"InputPrivacyKey","id":3596227020,"arguments":[]},{"kind":"class","name":"privacyKeyStatusTimestamp","type":"PrivacyKey","id":3157175088,"comment":"Whether we can see the last online timestamp of this user","arguments":[]},{"kind":"class","name":"privacyKeyChatInvite","type":"PrivacyKey","id":1343122938,"comment":"Whether the user can be invited to chats","arguments":[]},{"kind":"class","name":"privacyKeyPhoneCall","type":"PrivacyKey","id":1030105979,"comment":"Whether the user accepts phone calls","arguments":[]},{"kind":"class","name":"privacyKeyPhoneP2P","type":"PrivacyKey","id":961092808,"comment":"Whether P2P connections in phone calls with this user are allowed","arguments":[]},{"kind":"class","name":"privacyKeyForwards","type":"PrivacyKey","id":1777096355,"comment":"Whether messages forwarded from the user will be anonymously forwarded","arguments":[]},{"kind":"class","name":"privacyKeyProfilePhoto","type":"PrivacyKey","id":2517966829,"comment":"Whether the profile picture of the user is visible","arguments":[]},{"kind":"class","name":"privacyKeyPhoneNumber","type":"PrivacyKey","id":3516589165,"comment":"Whether the user allows us to see their phone number","arguments":[]},{"kind":"class","name":"privacyKeyAddedByPhone","type":"PrivacyKey","id":1124062251,"comment":"Whether this user can be added to our contact list by their phone number","arguments":[]},{"kind":"class","name":"privacyKeyVoiceMessages","type":"PrivacyKey","id":110621716,"comment":"Whether the user accepts voice messages","arguments":[]},{"kind":"class","name":"privacyKeyAbout","type":"PrivacyKey","id":2760292193,"comment":"Whether people can see your bio","arguments":[]},{"kind":"class","name":"privacyKeyBirthday","type":"PrivacyKey","id":536913176,"arguments":[]},{"kind":"class","name":"inputPrivacyValueAllowContacts","type":"InputPrivacyRule","id":218751099,"comment":"Allow only contacts","arguments":[]},{"kind":"class","name":"inputPrivacyValueAllowAll","type":"InputPrivacyRule","id":407582158,"comment":"Allow all users","arguments":[]},{"kind":"class","name":"inputPrivacyValueAllowUsers","type":"InputPrivacyRule","id":320652927,"comment":"Allow only certain users","arguments":[{"name":"users","type":"InputUser","typeModifiers":{"isVector":true},"comment":"Allowed users"}]},{"kind":"class","name":"inputPrivacyValueDisallowContacts","type":"InputPrivacyRule","id":195371015,"comment":"Disallow only contacts","arguments":[]},{"kind":"class","name":"inputPrivacyValueDisallowAll","type":"InputPrivacyRule","id":3597362889,"comment":"Disallow all","arguments":[]},{"kind":"class","name":"inputPrivacyValueDisallowUsers","type":"InputPrivacyRule","id":2417034343,"comment":"Disallow only certain users","arguments":[{"name":"users","type":"InputUser","typeModifiers":{"isVector":true},"comment":"Users to disallow"}]},{"kind":"class","name":"inputPrivacyValueAllowChatParticipants","type":"InputPrivacyRule","id":2215004623,"comment":"Allow only participants of certain chats","arguments":[{"name":"chats","type":"int53","typeModifiers":{"isVector":true},"comment":"Allowed chat IDs"}]},{"kind":"class","name":"inputPrivacyValueDisallowChatParticipants","type":"InputPrivacyRule","id":3914272646,"comment":"Disallow only participants of certain chats","arguments":[{"name":"chats","type":"int53","typeModifiers":{"isVector":true},"comment":"Disallowed chat IDs"}]},{"kind":"class","name":"inputPrivacyValueAllowCloseFriends","type":"InputPrivacyRule","id":793067081,"comment":"Allow only close friends ยป","arguments":[]},{"kind":"class","name":"inputPrivacyValueAllowPremium","type":"InputPrivacyRule","id":2009975281,"arguments":[]},{"kind":"class","name":"privacyValueAllowContacts","type":"PrivacyRule","id":4294843308,"comment":"Allow all contacts","arguments":[]},{"kind":"class","name":"privacyValueAllowAll","type":"PrivacyRule","id":1698855810,"comment":"Allow all users","arguments":[]},{"kind":"class","name":"privacyValueAllowUsers","type":"PrivacyRule","id":3096469426,"comment":"Allow only certain users","arguments":[{"name":"users","type":"int53","typeModifiers":{"isVector":true},"comment":"Allowed users"}]},{"kind":"class","name":"privacyValueDisallowContacts","type":"PrivacyRule","id":4169726490,"comment":"Disallow only contacts","arguments":[]},{"kind":"class","name":"privacyValueDisallowAll","type":"PrivacyRule","id":2339628899,"comment":"Disallow all users","arguments":[]},{"kind":"class","name":"privacyValueDisallowUsers","type":"PrivacyRule","id":3831632193,"comment":"Disallow only certain users","arguments":[{"name":"users","type":"int53","typeModifiers":{"isVector":true},"comment":"Disallowed users"}]},{"kind":"class","name":"privacyValueAllowChatParticipants","type":"PrivacyRule","id":1796427406,"comment":"Allow all participants of certain chats","arguments":[{"name":"chats","type":"int53","typeModifiers":{"isVector":true},"comment":"Allowed chats"}]},{"kind":"class","name":"privacyValueDisallowChatParticipants","type":"PrivacyRule","id":1103656293,"comment":"Disallow only participants of certain chats","arguments":[{"name":"chats","type":"int53","typeModifiers":{"isVector":true},"comment":"Disallowed chats"}]},{"kind":"class","name":"privacyValueAllowCloseFriends","type":"PrivacyRule","id":4159232155,"comment":"Allow only close friends ยป","arguments":[]},{"kind":"class","name":"privacyValueAllowPremium","type":"PrivacyRule","id":3974725963,"arguments":[]},{"kind":"class","name":"account.privacyRules","type":"account.PrivacyRules","id":1352683077,"comment":"Privacy rules","arguments":[{"name":"rules","type":"PrivacyRule","typeModifiers":{"isVector":true},"comment":"Privacy rules"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats to which the rules apply"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users to which the rules apply"}]},{"kind":"class","name":"accountDaysTTL","type":"AccountDaysTTL","id":3100684255,"comment":"Time to live in days of the current account","arguments":[{"name":"days","type":"int","comment":"This account will self-destruct in the specified number of days"}]},{"kind":"class","name":"documentAttributeImageSize","type":"DocumentAttribute","id":1815593308,"comment":"Defines the width and height of an image uploaded as document","arguments":[{"name":"w","type":"int","comment":"Width of image"},{"name":"h","type":"int","comment":"Height of image"}]},{"kind":"class","name":"documentAttributeAnimated","type":"DocumentAttribute","id":297109817,"comment":"Defines an animated GIF","arguments":[]},{"kind":"class","name":"documentAttributeSticker","type":"DocumentAttribute","id":1662637586,"comment":"Defines a sticker","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"mask","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this is a mask sticker"},{"name":"alt","type":"string","comment":"Alternative emoji representation of sticker"},{"name":"stickerset","type":"InputStickerSet","comment":"Associated stickerset"},{"name":"mask_coords","type":"MaskCoords","typeModifiers":{"predicate":"flags.0"},"comment":"Mask coordinates (if this is a mask sticker, attached to a photo)"}]},{"kind":"class","name":"documentAttributeVideo","type":"DocumentAttribute","id":3549426114,"comment":"Defines a video","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"round_message","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this is a round video"},{"name":"supports_streaming","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the video supports streaming"},{"name":"nosound","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the specified document is a video file with no audio tracks (a GIF animation (even as MPEG4), for example)"},{"name":"duration","type":"double","comment":"Duration in seconds"},{"name":"w","type":"int","comment":"Video width"},{"name":"h","type":"int","comment":"Video height"},{"name":"preload_prefix_size","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Number of bytes to preload when preloading videos (particularly video stories)."}]},{"kind":"class","name":"documentAttributeAudio","type":"DocumentAttribute","id":2555574726,"comment":"Represents an audio file","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"voice","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"Whether this is a voice message"},{"name":"duration","type":"int","comment":"Duration in seconds"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Name of song"},{"name":"performer","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Performer"},{"name":"waveform","type":"bytes","typeModifiers":{"predicate":"flags.2"},"comment":"Waveform: consists in a series of bitpacked 5-bit values.
Example implementation: android."}]},{"kind":"class","name":"documentAttributeFilename","type":"DocumentAttribute","id":358154344,"comment":"A simple document with a file name","arguments":[{"name":"file_name","type":"string","comment":"The file name"}]},{"kind":"class","name":"documentAttributeHasStickers","type":"DocumentAttribute","id":2550256375,"comment":"Whether the current document has stickers attached","arguments":[]},{"kind":"class","name":"documentAttributeCustomEmoji","type":"DocumentAttribute","id":4245985433,"comment":"Info about a custom emoji","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"free","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this custom emoji can be sent by non-Premium users"},{"name":"text_color","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the color of this TGS custom emoji should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context."},{"name":"alt","type":"string","comment":"The actual emoji"},{"name":"stickerset","type":"InputStickerSet","comment":"The emoji stickerset to which this emoji belongs."}]},{"kind":"class","name":"messages.stickersNotModified","type":"messages.Stickers","id":4050950690,"comment":"No new stickers were found for the given query","arguments":[]},{"kind":"class","name":"messages.stickers","type":"messages.Stickers","id":816245886,"comment":"Found stickers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"stickers","type":"Document","typeModifiers":{"isVector":true},"comment":"Stickers"}]},{"kind":"class","name":"stickerPack","type":"StickerPack","id":313694676,"comment":"A stickerpack is a group of stickers associated to the same emoji.
\nIt is not a sticker pack the way it is usually intended, you may be looking for a StickerSet.","arguments":[{"name":"emoticon","type":"string","comment":"Emoji"},{"name":"documents","type":"long","typeModifiers":{"isVector":true},"comment":"Stickers"}]},{"kind":"class","name":"messages.allStickersNotModified","type":"messages.AllStickers","id":3898999491,"comment":"Info about all installed stickers hasn't changed","arguments":[]},{"kind":"class","name":"messages.allStickers","type":"messages.AllStickers","id":3451637435,"comment":"Info about all installed stickers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"sets","type":"StickerSet","typeModifiers":{"isVector":true},"comment":"All stickersets"}]},{"kind":"class","name":"messages.affectedMessages","type":"messages.AffectedMessages","id":2228326789,"comment":"Events affected by operation","arguments":[{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"webPageEmpty","type":"WebPage","id":555358088,"comment":"No preview is available for the webpage","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"long","comment":"Preview ID"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"URL of the webpage."}]},{"kind":"class","name":"webPagePending","type":"WebPage","id":2966502983,"comment":"A preview of the webpage is currently being generated","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"long","comment":"ID of preview"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"URL of the webpage"},{"name":"date","type":"int","comment":"When was the processing started"}]},{"kind":"class","name":"webPage","type":"WebPage","id":3902555570,"comment":"Webpage preview","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_large_media","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"Whether the size of the media in the preview can be changed."},{"name":"id","type":"long","comment":"Preview ID"},{"name":"url","type":"string","comment":"URL of previewed webpage"},{"name":"display_url","type":"string","comment":"Webpage URL to be displayed to the user"},{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"},{"name":"type","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else"},{"name":"site_name","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Short name of the site (e.g., Google Docs, App Store)"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Title of the content"},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Content description"},{"name":"photo","type":"Photo","typeModifiers":{"predicate":"flags.4"},"comment":"Image representing the content"},{"name":"embed_url","type":"string","typeModifiers":{"predicate":"flags.5"},"comment":"URL to show in the embedded preview"},{"name":"embed_type","type":"string","typeModifiers":{"predicate":"flags.5"},"comment":"MIME type of the embedded preview, (e.g., text/html or video/mp4)"},{"name":"embed_width","type":"int","typeModifiers":{"predicate":"flags.6"},"comment":"Width of the embedded preview"},{"name":"embed_height","type":"int","typeModifiers":{"predicate":"flags.6"},"comment":"Height of the embedded preview"},{"name":"duration","type":"int","typeModifiers":{"predicate":"flags.7"},"comment":"Duration of the content, in seconds"},{"name":"author","type":"string","typeModifiers":{"predicate":"flags.8"},"comment":"Author of the content"},{"name":"document","type":"Document","typeModifiers":{"predicate":"flags.9"},"comment":"Preview of the content as a media file"},{"name":"cached_page","type":"Page","typeModifiers":{"predicate":"flags.10"},"comment":"Page contents in instant view format"},{"name":"attributes","type":"WebPageAttribute","typeModifiers":{"predicate":"flags.12","isVector":true},"comment":"Webpage attributes"}]},{"kind":"class","name":"webPageNotModified","type":"WebPage","id":1930545681,"comment":"The preview of the webpage hasn't changed","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"cached_page_views","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Page view count"}]},{"kind":"class","name":"authorization","type":"Authorization","id":2902578717,"comment":"Logged-in session","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"current","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this is the current session"},{"name":"official_app","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the session is from an official app"},{"name":"password_pending","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the session is still waiting for a 2FA password"},{"name":"encrypted_requests_disabled","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this session will accept encrypted chats"},{"name":"call_requests_disabled","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether this session will accept phone calls"},{"name":"unconfirmed","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether the session is unconfirmed, see here ยป for more info."},{"name":"hash","type":"long","comment":"Identifier"},{"name":"device_model","type":"string","comment":"Device model"},{"name":"platform","type":"string","comment":"Platform"},{"name":"system_version","type":"string","comment":"System version"},{"name":"api_id","type":"int","comment":"API ID"},{"name":"app_name","type":"string","comment":"App name"},{"name":"app_version","type":"string","comment":"App version"},{"name":"date_created","type":"int","comment":"When was the session created"},{"name":"date_active","type":"int","comment":"When was the session last active"},{"name":"ip","type":"string","comment":"Last known IP"},{"name":"country","type":"string","comment":"Country determined from IP"},{"name":"region","type":"string","comment":"Region determined from IP"}]},{"kind":"class","name":"account.authorizations","type":"account.Authorizations","id":1275039392,"comment":"Logged-in sessions","arguments":[{"name":"authorization_ttl_days","type":"int","comment":"Time-to-live of session"},{"name":"authorizations","type":"Authorization","typeModifiers":{"isVector":true},"comment":"Logged-in sessions"}]},{"kind":"class","name":"account.password","type":"account.Password","id":2507886843,"comment":"Configuration for two-factor authorization","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_recovery","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the user has a recovery method configured"},{"name":"has_secure_values","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether telegram passport is enabled"},{"name":"has_password","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the user has a password"},{"name":"current_algo","type":"PasswordKdfAlgo","typeModifiers":{"predicate":"flags.2"},"comment":"The KDF algorithm for SRP two-factor authentication of the current password"},{"name":"srp_B","type":"bytes","typeModifiers":{"predicate":"flags.2"},"comment":"Srp B param for SRP authorization"},{"name":"srp_id","type":"long","typeModifiers":{"predicate":"flags.2"},"comment":"Srp ID param for SRP authorization"},{"name":"hint","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Text hint for the password"},{"name":"email_unconfirmed_pattern","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"A password recovery email with the specified pattern is still awaiting verification"},{"name":"new_algo","type":"PasswordKdfAlgo","comment":"The KDF algorithm for SRP two-factor authentication to use when creating new passwords"},{"name":"new_secure_algo","type":"SecurePasswordKdfAlgo","comment":"The KDF algorithm for telegram passport"},{"name":"secure_random","type":"bytes","comment":"Secure random string"},{"name":"pending_reset_date","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"The 2FA password will be automatically removed at this date, unless the user cancels the operation"},{"name":"login_email_pattern","type":"string","typeModifiers":{"predicate":"flags.6"},"comment":"A verified login email with the specified pattern is configured"}]},{"kind":"class","name":"account.passwordSettings","type":"account.PasswordSettings","id":2589733861,"comment":"Private info associated to the password info (recovery email, telegram passport info & so on)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"email","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"2FA Recovery email"},{"name":"secure_settings","type":"SecureSecretSettings","typeModifiers":{"predicate":"flags.1"},"comment":"Telegram passport settings"}]},{"kind":"class","name":"account.passwordInputSettings","type":"account.PasswordInputSettings","id":3258394569,"comment":"Settings for setting up a new password","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"new_algo","type":"PasswordKdfAlgo","typeModifiers":{"predicate":"flags.0"},"comment":"The SRP algorithm to use"},{"name":"new_password_hash","type":"bytes","typeModifiers":{"predicate":"flags.0"},"comment":"The computed password hash"},{"name":"hint","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Text hint for the password"},{"name":"email","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Password recovery email"},{"name":"new_secure_settings","type":"SecureSecretSettings","typeModifiers":{"predicate":"flags.2"},"comment":"Telegram passport settings"}]},{"kind":"class","name":"auth.passwordRecovery","type":"auth.PasswordRecovery","id":326715557,"comment":"Recovery info of a 2FA password, only for accounts with a recovery email configured.","arguments":[{"name":"email_pattern","type":"string","comment":"The email to which the recovery code was sent must match this pattern."}]},{"kind":"class","name":"receivedNotifyMessage","type":"ReceivedNotifyMessage","id":2743383929,"comment":"Message ID, for which PUSH-notifications were cancelled.","arguments":[{"name":"id","type":"int","comment":"Message ID, for which PUSH-notifications were canceled"},{"name":"flags","type":"int","comment":"Reserved for future use"}]},{"kind":"class","name":"chatInviteExported","type":"ExportedChatInvite","id":179611673,"comment":"Exported chat invite","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"revoked","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this chat invite was revoked"},{"name":"permanent","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether this chat invite has no expiration"},{"name":"request_needed","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether users importing this invite link will have to be approved to join the channel or group"},{"name":"link","type":"string","comment":"Chat invitation link"},{"name":"admin_id","type":"int53","comment":"ID of the admin that created this chat invite"},{"name":"date","type":"int","comment":"When was this chat invite created"},{"name":"start_date","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"When was this chat invite last modified"},{"name":"expire_date","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"When does this chat invite expire"},{"name":"usage_limit","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Maximum number of users that can join using this link"},{"name":"usage","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"How many users joined using this link"},{"name":"requested","type":"int","typeModifiers":{"predicate":"flags.7"},"comment":"Number of users that have already used this link to join"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.8"},"comment":"Custom description for the invite link, visible only to admins"}]},{"kind":"class","name":"chatInvitePublicJoinRequests","type":"ExportedChatInvite","id":3977280183,"comment":"Used in updates and in the channel log to indicate when a user is requesting to join or has joined a discussion group","arguments":[]},{"kind":"class","name":"chatInviteAlready","type":"ChatInvite","id":1516793212,"comment":"The user has already joined this chat","arguments":[{"name":"chat","type":"Chat","comment":"The chat connected to the invite"}]},{"kind":"class","name":"chatInvite","type":"ChatInvite","id":3454069824,"comment":"Chat invite info","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this is a channel/supergroup or a normal group"},{"name":"broadcast","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this is a channel"},{"name":"public","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this is a public channel/supergroup"},{"name":"megagroup","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this is a supergroup"},{"name":"request_needed","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether the join request ยป must be first approved by an administrator"},{"name":"verified","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Is this chat or channel verified by Telegram?"},{"name":"scam","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"This chat is probably a scam"},{"name":"fake","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"If set, this chat was reported by many users as a fake or scam: be careful when interacting with it."},{"name":"title","type":"string","comment":"Chat/supergroup/channel title"},{"name":"about","type":"string","typeModifiers":{"predicate":"flags.5"},"comment":"Description of the group of channel"},{"name":"photo","type":"Photo","comment":"Chat/supergroup/channel photo"},{"name":"participants_count","type":"int","comment":"Participant count"},{"name":"participants","type":"User","typeModifiers":{"predicate":"flags.4","isVector":true},"comment":"A few of the participants that are in the group"},{"name":"color","type":"int","comment":"Profile color palette ID"}]},{"kind":"class","name":"chatInvitePeek","type":"ChatInvite","id":1634294960,"comment":"A chat invitation that also allows peeking into the group to read messages without joining it.","arguments":[{"name":"chat","type":"Chat","comment":"Chat information"},{"name":"expires","type":"int","comment":"Read-only anonymous access to this group will be revoked at this date"}]},{"kind":"class","name":"inputStickerSetEmpty","type":"InputStickerSet","id":4290128789,"comment":"Empty constructor","arguments":[]},{"kind":"class","name":"inputStickerSetID","type":"InputStickerSet","id":2649203305,"comment":"Stickerset by ID","arguments":[{"name":"id","type":"long","comment":"ID"},{"name":"access_hash","type":"long","comment":"Access hash"}]},{"kind":"class","name":"inputStickerSetShortName","type":"InputStickerSet","id":2250033312,"comment":"Stickerset by short name, from a stickerset deep link ยป","arguments":[{"name":"short_name","type":"string","comment":"Short name from a stickerset deep link ยป"}]},{"kind":"class","name":"inputStickerSetAnimatedEmoji","type":"InputStickerSet","id":42402760,"comment":"Animated emojis stickerset","arguments":[]},{"kind":"class","name":"inputStickerSetDice","type":"InputStickerSet","id":3867103758,"comment":"Used for fetching animated dice stickers","arguments":[{"name":"emoticon","type":"string","comment":"The emoji, for now \"๐Ÿ€\", \"๐ŸŽฒ\" and \"๐ŸŽฏ\" are supported"}]},{"kind":"class","name":"inputStickerSetAnimatedEmojiAnimations","type":"InputStickerSet","id":215889721,"comment":"Animated emoji reaction stickerset (contains animations to play when a user clicks on a given animated emoji)","arguments":[]},{"kind":"class","name":"inputStickerSetPremiumGifts","type":"InputStickerSet","id":3364567810,"comment":"Stickers to show when receiving a gifted Telegram Premium subscription","arguments":[]},{"kind":"class","name":"inputStickerSetEmojiGenericAnimations","type":"InputStickerSet","id":80008398,"comment":"Generic animation stickerset containing animations to play when reacting to messages using a normal emoji without a custom animation","arguments":[]},{"kind":"class","name":"inputStickerSetEmojiDefaultStatuses","type":"InputStickerSet","id":701560302,"comment":"Default custom emoji status stickerset","arguments":[]},{"kind":"class","name":"inputStickerSetEmojiDefaultTopicIcons","type":"InputStickerSet","id":1153562857,"comment":"Default custom emoji stickerset for forum topic icons","arguments":[]},{"kind":"class","name":"inputStickerSetEmojiChannelDefaultStatuses","type":"InputStickerSet","id":1232373075,"comment":"Default custom emoji status stickerset for channel statuses","arguments":[]},{"kind":"class","name":"stickerSet","type":"StickerSet","id":768691932,"comment":"Represents a stickerset (stickerpack)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"archived","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this stickerset was archived (due to too many saved stickers in the current account)"},{"name":"official","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Is this stickerset official"},{"name":"masks","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Is this a mask stickerset"},{"name":"emojis","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"This is a custom emoji stickerset"},{"name":"text_color","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"Whether the color of this TGS custom emoji stickerset should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context."},{"name":"channel_emoji_status","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"If set, this custom emoji stickerset can be used in channel emoji statuses."},{"name":"creator","type":"true","typeModifiers":{"predicate":"flags.11"}},{"name":"installed_date","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"When was this stickerset installed"},{"name":"id","type":"long","comment":"ID of the stickerset"},{"name":"access_hash","type":"long","comment":"Access hash of stickerset"},{"name":"title","type":"string","comment":"Title of stickerset"},{"name":"short_name","type":"string","comment":"Short name of stickerset, used when sharing stickerset using stickerset deep links."},{"name":"thumbs","type":"PhotoSize","typeModifiers":{"predicate":"flags.4","isVector":true},"comment":"Stickerset thumbnail"},{"name":"thumb_dc_id","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"DC ID of thumbnail"},{"name":"thumb_version","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Thumbnail version"},{"name":"thumb_document_id","type":"long","typeModifiers":{"predicate":"flags.8"},"comment":"Document ID of custom emoji thumbnail, fetch the document using {@link messages.RawGetCustomEmojiDocumentsRequest}"},{"name":"animated","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Is this an animated stickerpack"},{"name":"videos","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Is this a video stickerpack"},{"name":"count","type":"int","comment":"Number of stickers in pack"},{"name":"hash","type":"int","comment":"Hash"}]},{"kind":"class","name":"messages.stickerSet","type":"messages.StickerSet","id":1846886166,"comment":"Stickerset and stickers inside it","arguments":[{"name":"set","type":"StickerSet","comment":"The stickerset"},{"name":"packs","type":"StickerPack","typeModifiers":{"isVector":true},"comment":"Emoji info for stickers"},{"name":"keywords","type":"StickerKeyword","typeModifiers":{"isVector":true},"comment":"Keywords for some or every sticker in the stickerset."},{"name":"documents","type":"Document","typeModifiers":{"isVector":true},"comment":"Stickers in stickerset"}]},{"kind":"class","name":"messages.stickerSetNotModified","type":"messages.StickerSet","id":3556320491,"comment":"The stickerset hasn't changed","arguments":[]},{"kind":"class","name":"botCommand","type":"BotCommand","id":3262826695,"comment":"Describes a bot command that can be used in a chat","arguments":[{"name":"command","type":"string","comment":"/command name"},{"name":"description","type":"string","comment":"Description of the command"}]},{"kind":"class","name":"botInfo","type":"BotInfo","id":2402290519,"comment":"Info about bots (available bot commands, etc)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"user_id","type":"int53","typeModifiers":{"predicate":"flags.0"},"comment":"ID of the bot"},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Description of the bot"},{"name":"description_photo","type":"Photo","typeModifiers":{"predicate":"flags.4"},"comment":"Description photo"},{"name":"description_document","type":"Document","typeModifiers":{"predicate":"flags.5"},"comment":"Description animation in MPEG4 format"},{"name":"commands","type":"BotCommand","typeModifiers":{"predicate":"flags.2","isVector":true},"comment":"Bot commands that can be used in the chat"},{"name":"menu_button","type":"BotMenuButton","typeModifiers":{"predicate":"flags.3"},"comment":"Indicates the action to execute when pressing the in-UI menu button for bots"}]},{"kind":"class","name":"keyboardButton","type":"KeyboardButton","id":2734311552,"comment":"Bot keyboard button","arguments":[{"name":"text","type":"string","comment":"Button text"}]},{"kind":"class","name":"keyboardButtonUrl","type":"KeyboardButton","id":629866245,"comment":"URL button","arguments":[{"name":"text","type":"string","comment":"Button label"},{"name":"url","type":"string","comment":"URL"}]},{"kind":"class","name":"keyboardButtonCallback","type":"KeyboardButton","id":901503851,"comment":"Callback button","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"requires_password","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the user should verify their identity by entering their 2FA SRP parameters to the {@link messages.RawGetBotCallbackAnswerRequest} method. NOTE: telegram and the bot WILL NOT have access to the plaintext password, thanks to SRP. This button is mainly used by the official @botfather bot, for verifying the user's identity before transferring ownership of a bot to another user."},{"name":"text","type":"string","comment":"Button text"},{"name":"data","type":"bytes","comment":"Callback data"}]},{"kind":"class","name":"keyboardButtonRequestPhone","type":"KeyboardButton","id":2976541737,"comment":"Button to request a user's phone number","arguments":[{"name":"text","type":"string","comment":"Button text"}]},{"kind":"class","name":"keyboardButtonRequestGeoLocation","type":"KeyboardButton","id":4235815743,"comment":"Button to request a user's geolocation","arguments":[{"name":"text","type":"string","comment":"Button text"}]},{"kind":"class","name":"keyboardButtonSwitchInline","type":"KeyboardButton","id":2478439349,"comment":"Button to force a user to switch to inline mode: pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"same_peer","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field."},{"name":"text","type":"string","comment":"Button label"},{"name":"query","type":"string","comment":"The inline query to use"},{"name":"peer_types","type":"InlineQueryPeerType","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Filter to use when selecting chats."}]},{"kind":"class","name":"keyboardButtonGame","type":"KeyboardButton","id":1358175439,"comment":"Button to start a game","arguments":[{"name":"text","type":"string","comment":"Button text"}]},{"kind":"class","name":"keyboardButtonBuy","type":"KeyboardButton","id":2950250427,"comment":"Button to buy a product","arguments":[{"name":"text","type":"string","comment":"Button text"}]},{"kind":"class","name":"keyboardButtonUrlAuth","type":"KeyboardButton","id":280464681,"comment":"Button to request a user to authorize via URL using Seamless Telegram Login. When the user clicks on such a button, {@link messages.RawRequestUrlAuthRequest} should be called, providing the button_id and the ID of the container message. The returned {@link RawUrlAuthResultRequest} object will contain more details about the authorization request (request_write_access if the bot would like to send messages to the user along with the username of the bot which will be used for user authorization). Finally, the user can choose to call {@link messages.RawAcceptUrlAuthRequest} to get a {@link RawUrlAuthResultAccepted} with the URL to open instead of the url of this constructor, or a {@link RawUrlAuthResultDefault}, in which case the url of this constructor must be opened, instead. If the user refuses the authorization request but still wants to open the link, the url of this constructor must be used.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"text","type":"string","comment":"Button label"},{"name":"fwd_text","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"New text of the button in forwarded messages."},{"name":"url","type":"string","comment":"An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.

NOTE: Services must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization."},{"name":"button_id","type":"int","comment":"ID of the button to pass to {@link messages.RawRequestUrlAuthRequest}"}]},{"kind":"class","name":"inputKeyboardButtonUrlAuth","type":"KeyboardButton","id":3492708308,"comment":"Button to request a user to {@link messages.RawAcceptUrlAuthRequest} via URL using Seamless Telegram Login.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"request_write_access","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set this flag to request the permission for your bot to send messages to the user."},{"name":"text","type":"string","comment":"Button text"},{"name":"fwd_text","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"New text of the button in forwarded messages."},{"name":"url","type":"string","comment":"An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.
NOTE: You must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization."},{"name":"bot","type":"InputUser","comment":"Username of a bot, which will be used for user authorization. See Setting up a bot for more details. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details."}]},{"kind":"class","name":"keyboardButtonRequestPoll","type":"KeyboardButton","id":3150401885,"comment":"A button that allows the user to create and send a poll when pressed; available only in private","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"quiz","type":"Bool","typeModifiers":{"predicate":"flags.0"},"comment":"If set, only quiz polls can be sent"},{"name":"text","type":"string","comment":"Button text"}]},{"kind":"class","name":"inputKeyboardButtonUserProfile","type":"KeyboardButton","id":3918005115,"comment":"Button that links directly to a user profile","arguments":[{"name":"text","type":"string","comment":"Button text"},{"name":"user_id","type":"InputUser","comment":"User ID"}]},{"kind":"class","name":"keyboardButtonUserProfile","type":"KeyboardButton","id":814112961,"comment":"Button that links directly to a user profile","arguments":[{"name":"text","type":"string","comment":"Button text"},{"name":"user_id","type":"int53","comment":"User ID"}]},{"kind":"class","name":"keyboardButtonWebView","type":"KeyboardButton","id":326529584,"comment":"Button to open a bot mini app using {@link messages.RawRequestWebViewRequest}, sending over user information after user confirmation.\n\nCan only be sent or received as part of an inline keyboard, use {@link RawKeyboardButtonSimpleWebView} for reply keyboards.","arguments":[{"name":"text","type":"string","comment":"Button text"},{"name":"url","type":"string","comment":"Web app url"}]},{"kind":"class","name":"keyboardButtonSimpleWebView","type":"KeyboardButton","id":2696958044,"comment":"Button to open a bot mini app using {@link messages.RawRequestSimpleWebViewRequest}, without sending user information to the web app.\n\nCan only be sent or received as part of a reply keyboard, use {@link RawKeyboardButtonWebView} for inline keyboards.","arguments":[{"name":"text","type":"string","comment":"Button text"},{"name":"url","type":"string","comment":"Web app URL"}]},{"kind":"class","name":"keyboardButtonRequestPeer","type":"KeyboardButton","id":1406648280,"comment":"Prompts the user to select and share one or more peers with the bot using {@link messages.RawSendBotRequestedPeerRequest}","arguments":[{"name":"text","type":"string","comment":"Button text"},{"name":"button_id","type":"int","comment":"Button ID, to be passed to {@link messages.RawSendBotRequestedPeerRequest}."},{"name":"peer_type","type":"RequestPeerType","comment":"Filtering criteria to use for the peer selection list shown to the user.
The list should display all existing peers of the specified type, and should also offer an option for the user to create and immediately use one or more (up to max_quantity) peers of the specified type, if needed."},{"name":"max_quantity","type":"int","comment":"Maximum number of peers that can be chosne."}]},{"kind":"class","name":"inputKeyboardButtonRequestPeer","type":"KeyboardButton","id":3378916613,"arguments":[{"name":"flags","type":"#"},{"name":"name_requested","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"username_requested","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"photo_requested","type":"true","typeModifiers":{"predicate":"flags.2"}},{"name":"text","type":"string"},{"name":"button_id","type":"int"},{"name":"peer_type","type":"RequestPeerType"},{"name":"max_quantity","type":"int"}]},{"kind":"class","name":"keyboardButtonRow","type":"KeyboardButtonRow","id":2002815875,"comment":"Inline keyboard row","arguments":[{"name":"buttons","type":"KeyboardButton","typeModifiers":{"isVector":true},"comment":"Bot or inline keyboard buttons"}]},{"kind":"class","name":"replyKeyboardHide","type":"ReplyMarkup","id":2688441221,"comment":"Hide sent bot keyboard","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"selective","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Use this flag if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.

Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet"}]},{"kind":"class","name":"replyKeyboardForceReply","type":"ReplyMarkup","id":2259946248,"comment":"Force the user to send a reply","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"single_use","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat โ€“ the user can press a special button in the input field to see the custom keyboard again."},{"name":"selective","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard."},{"name":"placeholder","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"The placeholder to be shown in the input field when the keyboard is active; 1-64 characters."}]},{"kind":"class","name":"replyKeyboardMarkup","type":"ReplyMarkup","id":2245892561,"comment":"Bot keyboard","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"resize","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). If not set, the custom keyboard is always of the same height as the app's standard keyboard."},{"name":"single_use","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat โ€“ the user can press a special button in the input field to see the custom keyboard again."},{"name":"selective","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.

Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard."},{"name":"persistent","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Requests clients to always show the keyboard when the regular keyboard is hidden."},{"name":"rows","type":"KeyboardButtonRow","typeModifiers":{"isVector":true},"comment":"Button row"},{"name":"placeholder","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"The placeholder to be shown in the input field when the keyboard is active; 1-64 characters."}]},{"kind":"class","name":"replyInlineMarkup","type":"ReplyMarkup","id":1218642516,"comment":"Bot or inline keyboard","arguments":[{"name":"rows","type":"KeyboardButtonRow","typeModifiers":{"isVector":true},"comment":"Bot or inline keyboard rows"}]},{"kind":"class","name":"messageEntityUnknown","type":"MessageEntity","id":3146955413,"comment":"Unknown message entity","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityMention","type":"MessageEntity","id":4194588573,"comment":"Message entity mentioning a user by @username; {@link RawMessageEntityMentionName} can also be used to mention users by their ID.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityHashtag","type":"MessageEntity","id":1868782349,"comment":"#hashtag message entity","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityBotCommand","type":"MessageEntity","id":1827637959,"comment":"Message entity representing a bot /command","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityUrl","type":"MessageEntity","id":1859134776,"comment":"Message entity representing an in-text url: https://google.com; for text urls, use {@link RawMessageEntityTextUrl}.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityEmail","type":"MessageEntity","id":1692693954,"comment":"Message entity representing an email@example.com.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityBold","type":"MessageEntity","id":3177253833,"comment":"Message entity representing bold text.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityItalic","type":"MessageEntity","id":2188348256,"comment":"Message entity representing italic text.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityCode","type":"MessageEntity","id":681706865,"comment":"Message entity representing a codeblock.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityPre","type":"MessageEntity","id":1938967520,"comment":"Message entity representing a preformatted codeblock, allowing the user to specify a programming language for the codeblock.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"},{"name":"language","type":"string","comment":"Programming language of the code"}]},{"kind":"class","name":"messageEntityTextUrl","type":"MessageEntity","id":1990644519,"comment":"Message entity representing a text url: for in-text urls like https://google.com use {@link RawMessageEntityUrl}.\n\nNote that an additional confirmation popup with the full URL must be displayed to the user before opening this link, unless the domain satisfies the conditions specified in the domain whitelist documentation ยป.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"},{"name":"url","type":"string","comment":"The actual URL"}]},{"kind":"class","name":"messageEntityMentionName","type":"MessageEntity","id":3699052864,"comment":"Message entity representing a user mention: for creating a mention use {@link RawInputMessageEntityMentionName}.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"},{"name":"user_id","type":"int53","comment":"Identifier of the user that was mentioned"}]},{"kind":"class","name":"inputMessageEntityMentionName","type":"MessageEntity","id":546203849,"comment":"Message entity that can be used to create a user user mention: received mentions use the {@link RawMessageEntityMentionName} constructor, instead.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"},{"name":"user_id","type":"InputUser","comment":"Identifier of the user that was mentioned"}]},{"kind":"class","name":"messageEntityPhone","type":"MessageEntity","id":2607407947,"comment":"Message entity representing a phone number.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityCashtag","type":"MessageEntity","id":1280209983,"comment":"Message entity representing a $cashtag.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityUnderline","type":"MessageEntity","id":2622389899,"comment":"Message entity representing underlined text.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityStrike","type":"MessageEntity","id":3204879316,"comment":"Message entity representing strikethrough text.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityBankCard","type":"MessageEntity","id":1981704948,"comment":"Indicates a credit card number","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntitySpoiler","type":"MessageEntity","id":852137487,"comment":"Message entity representing a spoiler","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityCustomEmoji","type":"MessageEntity","id":3369010680,"comment":"Represents a custom emoji.
\nNote that this entity must wrap exactly one regular emoji (the one contained in {@link RawDocumentAttributeCustomEmoji}.alt) in the related text, otherwise the server will ignore it.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"},{"name":"document_id","type":"long","comment":"Document ID of the custom emoji, use {@link messages.RawGetCustomEmojiDocumentsRequest} to fetch the emoji animation and the actual emoji it represents."}]},{"kind":"class","name":"messageEntityBlockquote","id":4056722092,"type":"MessageEntity","arguments":[{"name":"flags","type":"#"},{"name":"collapsed","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}],"comment":"Message entity representing a block quote."},{"kind":"class","name":"inputChannelEmpty","type":"InputChannel","id":4002160262,"comment":"Represents the absence of a channel","arguments":[]},{"kind":"class","name":"inputChannel","type":"InputChannel","id":4082822184,"comment":"Represents a channel","arguments":[{"name":"channel_id","type":"int53","comment":"Channel ID"},{"name":"access_hash","type":"long","comment":"Access hash taken from the {@link RawChannel} constructor"}]},{"kind":"class","name":"inputChannelFromMessage","type":"InputChannel","id":1536380829,"comment":"Defines a min channel that was seen in a certain message of a certain chat.","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat where the channel was seen"},{"name":"msg_id","type":"int","comment":"The message ID in the chat where the channel was seen"},{"name":"channel_id","type":"int53","comment":"The channel ID"}]},{"kind":"class","name":"contacts.resolvedPeer","type":"contacts.ResolvedPeer","id":2131196633,"comment":"Resolved peer","arguments":[{"name":"peer","type":"Peer","comment":"The peer"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"messageRange","type":"MessageRange","id":182649427,"comment":"Indicates a range of chat messages","arguments":[{"name":"min_id","type":"int","comment":"Start of range (message ID)"},{"name":"max_id","type":"int","comment":"End of range (message ID)"}]},{"kind":"class","name":"updates.channelDifferenceEmpty","type":"updates.ChannelDifference","id":1041346555,"comment":"There are no new updates","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"final","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether there are more updates that must be fetched (always false)"},{"name":"pts","type":"int","comment":"The latest PTS"},{"name":"timeout","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Clients are supposed to refetch the channel difference after timeout seconds have elapsed"}]},{"kind":"class","name":"updates.channelDifferenceTooLong","type":"updates.ChannelDifference","id":2763835134,"comment":"The provided pts + limit < remote pts. Simply, there are too many updates to be fetched (more than limit), the client has to resolve the update gap in one of the following ways (assuming the existence of a persistent database to locally store messages):\n\nIt should be also noted that some messages like live location messages shouldn't be deleted.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"final","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether there are more updates that must be fetched (always false)"},{"name":"timeout","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Clients are supposed to refetch the channel difference after timeout seconds have elapsed"},{"name":"dialog","type":"Dialog","comment":"Dialog containing the latest PTS that can be used to reset the channel state"},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"The latest messages"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats from messages"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users from messages"}]},{"kind":"class","name":"updates.channelDifference","type":"updates.ChannelDifference","id":543450958,"comment":"The new updates","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"final","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether there are more updates to be fetched using getDifference, starting from the provided pts"},{"name":"pts","type":"int","comment":"The PTS from which to start getting updates the next time"},{"name":"timeout","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Clients are supposed to refetch the channel difference after timeout seconds have elapsed"},{"name":"new_messages","type":"Message","typeModifiers":{"isVector":true},"comment":"New messages"},{"name":"other_updates","type":"Update","typeModifiers":{"isVector":true},"comment":"Other updates"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"channelMessagesFilterEmpty","type":"ChannelMessagesFilter","id":2496933607,"comment":"No filter","arguments":[]},{"kind":"class","name":"channelMessagesFilter","type":"ChannelMessagesFilter","id":3447183703,"comment":"Filter for getting only certain types of channel messages","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"exclude_new_messages","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to exclude new messages from the search"},{"name":"ranges","type":"MessageRange","typeModifiers":{"isVector":true},"comment":"A range of messages to fetch"}]},{"kind":"class","name":"channelParticipant","type":"ChannelParticipant","id":3222013888,"comment":"Channel/supergroup participant","arguments":[{"name":"user_id","type":"int53","comment":"Participant user ID"},{"name":"date","type":"int","comment":"Date joined"}]},{"kind":"class","name":"channelParticipantSelf","type":"ChannelParticipant","id":900251559,"comment":"Myself","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"via_request","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether I joined upon specific approval of an admin"},{"name":"user_id","type":"int53","comment":"User ID"},{"name":"inviter_id","type":"int53","comment":"User that invited me to the channel/supergroup"},{"name":"date","type":"int","comment":"When did I join the channel/supergroup"}]},{"kind":"class","name":"channelParticipantCreator","type":"ChannelParticipant","id":803602899,"comment":"Channel/supergroup creator","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"user_id","type":"int53","comment":"User ID"},{"name":"admin_rights","type":"ChatAdminRights","comment":"Creator admin rights"},{"name":"rank","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"The role (rank) of the group creator in the group: just an arbitrary string, admin by default"}]},{"kind":"class","name":"channelParticipantAdmin","type":"ChannelParticipant","id":885242707,"comment":"Admin","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"can_edit","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Can this admin promote other admins with the same permissions?"},{"name":"self","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Is this the current user"},{"name":"user_id","type":"int53","comment":"Admin user ID"},{"name":"inviter_id","type":"int53","typeModifiers":{"predicate":"flags.1"},"comment":"User that invited the admin to the channel/group"},{"name":"promoted_by","type":"int53","comment":"User that promoted the user to admin"},{"name":"date","type":"int","comment":"When did the user join"},{"name":"admin_rights","type":"ChatAdminRights","comment":"Admin rights"},{"name":"rank","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"The role (rank) of the admin in the group: just an arbitrary string, admin by default"}]},{"kind":"class","name":"channelParticipantBanned","type":"ChannelParticipant","id":1844969806,"comment":"Banned/kicked user","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"left","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the user has left the group"},{"name":"peer","type":"Peer","comment":"The banned peer"},{"name":"kicked_by","type":"int53","comment":"User was kicked by the specified admin"},{"name":"date","type":"int","comment":"When did the user join the group"},{"name":"banned_rights","type":"ChatBannedRights","comment":"Banned rights"}]},{"kind":"class","name":"channelParticipantLeft","type":"ChannelParticipant","id":453242886,"comment":"A participant that left the channel/supergroup","arguments":[{"name":"peer","type":"Peer","comment":"The peer that left"}]},{"kind":"class","name":"channelParticipantsRecent","type":"ChannelParticipantsFilter","id":3728686201,"comment":"Fetch only recent participants","arguments":[]},{"kind":"class","name":"channelParticipantsAdmins","type":"ChannelParticipantsFilter","id":3026225513,"comment":"Fetch only admin participants","arguments":[]},{"kind":"class","name":"channelParticipantsKicked","type":"ChannelParticipantsFilter","id":2746567045,"comment":"Fetch only kicked participants","arguments":[{"name":"q","type":"string","comment":"Optional filter for searching kicked participants by name (otherwise empty)"}]},{"kind":"class","name":"channelParticipantsBots","type":"ChannelParticipantsFilter","id":2966521435,"comment":"Fetch only bot participants","arguments":[]},{"kind":"class","name":"channelParticipantsBanned","type":"ChannelParticipantsFilter","id":338142689,"comment":"Fetch only banned participants","arguments":[{"name":"q","type":"string","comment":"Optional filter for searching banned participants by name (otherwise empty)"}]},{"kind":"class","name":"channelParticipantsSearch","type":"ChannelParticipantsFilter","id":106343499,"comment":"Query participants by name","arguments":[{"name":"q","type":"string","comment":"Search query"}]},{"kind":"class","name":"channelParticipantsContacts","type":"ChannelParticipantsFilter","id":3144345741,"comment":"Fetch only participants that are also contacts","arguments":[{"name":"q","type":"string","comment":"Optional search query for searching contact participants by name"}]},{"kind":"class","name":"channelParticipantsMentions","type":"ChannelParticipantsFilter","id":3763035371,"comment":"This filter is used when looking for supergroup members to mention.
\nThis filter will automatically remove anonymous admins, and return even non-participant users that replied to a specific thread through the comment section of a channel.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"q","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Filter by user name or username"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Look only for users that posted in this thread"}]},{"kind":"class","name":"channels.channelParticipants","type":"channels.ChannelParticipants","id":2595290799,"comment":"Represents multiple channel participants","arguments":[{"name":"count","type":"int","comment":"Total number of participants that correspond to the given query"},{"name":"participants","type":"ChannelParticipant","typeModifiers":{"isVector":true},"comment":"Participants"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in participant info"}]},{"kind":"class","name":"channels.channelParticipantsNotModified","type":"channels.ChannelParticipants","id":4028055529,"comment":"No new participant info could be found","arguments":[]},{"kind":"class","name":"channels.channelParticipant","type":"channels.ChannelParticipant","id":3753378583,"comment":"Represents a channel participant","arguments":[{"name":"participant","type":"ChannelParticipant","comment":"The channel participant"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"help.termsOfService","type":"help.TermsOfService","id":2013922064,"comment":"Info about the latest telegram Terms Of Service","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"popup","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether a prompt must be showed to the user, in order to accept the new terms."},{"name":"id","type":"DataJSON","comment":"ID of the new terms"},{"name":"text","type":"string","comment":"Text of the new terms"},{"name":"entities","type":"MessageEntity","typeModifiers":{"isVector":true},"comment":"Message entities for styled text"},{"name":"min_age_confirm","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Minimum age required to sign up to telegram, the user must confirm that they is older than the minimum age."}]},{"kind":"class","name":"messages.savedGifsNotModified","type":"messages.SavedGifs","id":3892468898,"comment":"No new saved gifs were found","arguments":[]},{"kind":"class","name":"messages.savedGifs","type":"messages.SavedGifs","id":2225089037,"comment":"Saved gifs","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"gifs","type":"Document","typeModifiers":{"isVector":true},"comment":"List of saved gifs"}]},{"kind":"class","name":"inputBotInlineMessageMediaAuto","type":"InputBotInlineMessage","id":864077702,"comment":"A media","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"message","type":"string","comment":"Caption"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"inputBotInlineMessageText","type":"InputBotInlineMessage","id":1036876423,"comment":"Simple text message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"no_webpage","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Disable webpage preview"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"message","type":"string","comment":"Message"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"inputBotInlineMessageMediaGeo","type":"InputBotInlineMessage","id":2526190213,"comment":"Geolocation","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"geo_point","type":"InputGeoPoint","comment":"Geolocation"},{"name":"heading","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"For live locations, a direction in which the location moves, in degrees; 1-360"},{"name":"period","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Validity period"},{"name":"proximity_notification_radius","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Reply markup for bot/inline keyboards"}]},{"kind":"class","name":"inputBotInlineMessageMediaVenue","type":"InputBotInlineMessage","id":1098628881,"comment":"Venue","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"geo_point","type":"InputGeoPoint","comment":"Geolocation"},{"name":"title","type":"string","comment":"Venue name"},{"name":"address","type":"string","comment":"Address"},{"name":"provider","type":"string","comment":"Venue provider: currently only \"foursquare\" and \"gplaces\" (Google Places) need to be supported"},{"name":"venue_id","type":"string","comment":"Venue ID in the provider's database"},{"name":"venue_type","type":"string","comment":"Venue type in the provider's database"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"inputBotInlineMessageMediaContact","type":"InputBotInlineMessage","id":2800599037,"comment":"A contact","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"first_name","type":"string","comment":"First name"},{"name":"last_name","type":"string","comment":"Last name"},{"name":"vcard","type":"string","comment":"VCard info"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"inputBotInlineMessageGame","type":"InputBotInlineMessage","id":1262639204,"comment":"A game","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"inputBotInlineMessageMediaInvoice","type":"InputBotInlineMessage","id":3622273573,"comment":"An invoice","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"title","type":"string","comment":"Product name, 1-32 characters"},{"name":"description","type":"string","comment":"Product description, 1-255 characters"},{"name":"photo","type":"InputWebDocument","typeModifiers":{"predicate":"flags.0"},"comment":"Invoice photo"},{"name":"invoice","type":"Invoice","comment":"The invoice"},{"name":"payload","type":"bytes","comment":"Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes."},{"name":"provider","type":"string","comment":"Payments provider token, obtained via Botfather"},{"name":"provider_data","type":"DataJSON","comment":"A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider."},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"inputBotInlineMessageMediaWebPage","type":"InputBotInlineMessage","id":3185362192,"comment":"Specifies options that will be used to generate the link preview for the message, or even a standalone link preview without an attached message.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"force_large_media","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If set, specifies that a large media preview should be used."},{"name":"force_small_media","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"If set, specifies that a small media preview should be used."},{"name":"optional","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"If not set, a WEBPAGE_NOT_FOUND RPC error will be emitted if a webpage preview cannot be generated for the specified url; otherwise, no error will be emitted (unless the provided message is also empty, in which case a MESSAGE_EMPTY will be emitted, instead)."},{"name":"message","type":"string","comment":"The message, can be empty."},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"},{"name":"url","type":"string","comment":"The URL to use for the link preview."},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"inputBotInlineResult","type":"InputBotInlineResult","id":2294256409,"comment":"An inline bot result","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"string","comment":"ID of result"},{"name":"type","type":"string","comment":"Result type (see bot API docs)"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Result title"},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Result description"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"URL of result"},{"name":"thumb","type":"InputWebDocument","typeModifiers":{"predicate":"flags.4"},"comment":"Thumbnail for result"},{"name":"content","type":"InputWebDocument","typeModifiers":{"predicate":"flags.5"},"comment":"Result contents"},{"name":"send_message","type":"InputBotInlineMessage","comment":"Message to send when the result is selected"}]},{"kind":"class","name":"inputBotInlineResultPhoto","type":"InputBotInlineResult","id":2832753831,"comment":"Photo","arguments":[{"name":"id","type":"string","comment":"Result ID"},{"name":"type","type":"string","comment":"Result type (see bot API docs)"},{"name":"photo","type":"InputPhoto","comment":"Photo to send"},{"name":"send_message","type":"InputBotInlineMessage","comment":"Message to send when the result is selected"}]},{"kind":"class","name":"inputBotInlineResultDocument","type":"InputBotInlineResult","id":4294507972,"comment":"Document (media of any type except for photos)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"string","comment":"Result ID"},{"name":"type","type":"string","comment":"Result type (see bot API docs)"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Result title"},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Result description"},{"name":"document","type":"InputDocument","comment":"Document to send"},{"name":"send_message","type":"InputBotInlineMessage","comment":"Message to send when the result is selected"}]},{"kind":"class","name":"inputBotInlineResultGame","type":"InputBotInlineResult","id":1336154098,"comment":"Game","arguments":[{"name":"id","type":"string","comment":"Result ID"},{"name":"short_name","type":"string","comment":"Game short name"},{"name":"send_message","type":"InputBotInlineMessage","comment":"Message to send when the result is selected"}]},{"kind":"class","name":"botInlineMessageMediaAuto","type":"BotInlineMessage","id":1984755728,"comment":"Send whatever media is attached to the {@link RawBotInlineMediaResult}","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"message","type":"string","comment":"Caption"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"botInlineMessageText","type":"BotInlineMessage","id":2357159394,"comment":"Send a simple text message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"no_webpage","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Disable webpage preview"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"message","type":"string","comment":"The message"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"botInlineMessageMediaGeo","type":"BotInlineMessage","id":85477117,"comment":"Send a geolocation","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"geo","type":"GeoPoint","comment":"Geolocation"},{"name":"heading","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"For live locations, a direction in which the location moves, in degrees; 1-360."},{"name":"period","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Validity period"},{"name":"proximity_notification_radius","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)."},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"botInlineMessageMediaVenue","type":"BotInlineMessage","id":2324063644,"comment":"Send a venue","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"geo","type":"GeoPoint","comment":"Geolocation of venue"},{"name":"title","type":"string","comment":"Venue name"},{"name":"address","type":"string","comment":"Address"},{"name":"provider","type":"string","comment":"Venue provider: currently only \"foursquare\" and \"gplaces\" (Google Places) need to be supported"},{"name":"venue_id","type":"string","comment":"Venue ID in the provider's database"},{"name":"venue_type","type":"string","comment":"Venue type in the provider's database"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"botInlineMessageMediaContact","type":"BotInlineMessage","id":416402882,"comment":"Send a contact","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"first_name","type":"string","comment":"First name"},{"name":"last_name","type":"string","comment":"Last name"},{"name":"vcard","type":"string","comment":"VCard info"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"botInlineMessageMediaInvoice","type":"BotInlineMessage","id":894081801,"comment":"Send an invoice","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"shipping_address_requested","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Set this flag if you require the user's shipping address to complete the order"},{"name":"test","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Test invoice"},{"name":"title","type":"string","comment":"Product name, 1-32 characters"},{"name":"description","type":"string","comment":"Product description, 1-255 characters"},{"name":"photo","type":"WebDocument","typeModifiers":{"predicate":"flags.0"},"comment":"Product photo"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"total_amount","type":"long","comment":"Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"botInlineMessageMediaWebPage","type":"BotInlineMessage","id":2157631910,"comment":"Specifies options that must be used to generate the link preview for the message, or even a standalone link preview without an attached message.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"force_large_media","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If set, specifies that a large media preview should be used."},{"name":"force_small_media","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"If set, specifies that a small media preview should be used."},{"name":"manual","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"If set, indicates that the URL used for the webpage preview was specified manually using {@link RawInputMediaWebPage}, and may not be related to any of the URLs specified in the message."},{"name":"safe","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"If set, the link can be opened directly without user confirmation."},{"name":"message","type":"string","comment":"The message, can be empty."},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"},{"name":"url","type":"string","comment":"The URL to use for the link preview."},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Reply markup for sending bot buttons"}]},{"kind":"class","name":"botInlineResult","type":"BotInlineResult","id":295067450,"comment":"Generic result","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"string","comment":"Result ID"},{"name":"type","type":"string","comment":"Result type (see bot API docs)"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Result title"},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Result description"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"URL of article or webpage"},{"name":"thumb","type":"WebDocument","typeModifiers":{"predicate":"flags.4"},"comment":"Thumbnail for the result"},{"name":"content","type":"WebDocument","typeModifiers":{"predicate":"flags.5"},"comment":"Content of the result"},{"name":"send_message","type":"BotInlineMessage","comment":"Message to send"}]},{"kind":"class","name":"botInlineMediaResult","type":"BotInlineResult","id":400266251,"comment":"Media result","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"string","comment":"Result ID"},{"name":"type","type":"string","comment":"Result type (see bot API docs)"},{"name":"photo","type":"Photo","typeModifiers":{"predicate":"flags.0"},"comment":"If type is photo, the photo to send"},{"name":"document","type":"Document","typeModifiers":{"predicate":"flags.1"},"comment":"If type is document, the document to send"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Result title"},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Description"},{"name":"send_message","type":"BotInlineMessage","comment":"Depending on the type and on the constructor, contains the caption of the media or the content of the message to be sent instead of the media"}]},{"kind":"class","name":"messages.botResults","type":"messages.BotResults","id":3760321270,"comment":"Result of a query to an inline bot","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"gallery","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the result is a picture gallery"},{"name":"query_id","type":"long","comment":"Query ID"},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"The next offset to use when navigating through results"},{"name":"switch_pm","type":"InlineBotSwitchPM","typeModifiers":{"predicate":"flags.2"},"comment":"Shown as a button on top of the remaining inline result list; if clicked, redirects the user to a private chat with the bot with the specified start parameter."},{"name":"switch_webview","type":"InlineBotWebView","typeModifiers":{"predicate":"flags.3"},"comment":"Shown as a button on top of the remaining inline result list; if clicked, opens the specified inline mode mini app."},{"name":"results","type":"BotInlineResult","typeModifiers":{"isVector":true},"comment":"The results"},{"name":"cache_time","type":"int","comment":"Caching validity of the results"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in the results"}]},{"kind":"class","name":"exportedMessageLink","type":"ExportedMessageLink","id":1571494644,"comment":"Link to a message in a supergroup/channel","arguments":[{"name":"link","type":"string","comment":"URL"},{"name":"html","type":"string","comment":"Embed code"}]},{"kind":"class","name":"messageFwdHeader","type":"MessageFwdHeader","id":1313731771,"comment":"Info about a forwarded message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"imported","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Whether this message was imported from a foreign chat service, click here for more info ยป"},{"name":"saved_out","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"Only for messages forwarded to saved messages ยป, set if the original message was outgoing (though the message may have been originally outgoing even if this flag is not set, if from_id points to the current user)."},{"name":"from_id","type":"Peer","typeModifiers":{"predicate":"flags.0"},"comment":"The ID of the user that originally sent the message"},{"name":"from_name","type":"string","typeModifiers":{"predicate":"flags.5"},"comment":"The name of the user that originally sent the message"},{"name":"date","type":"int","comment":"When was the message originally sent"},{"name":"channel_post","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"ID of the channel message that was forwarded"},{"name":"post_author","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"For channels and if signatures are enabled, author of the channel message"},{"name":"saved_from_peer","type":"Peer","typeModifiers":{"predicate":"flags.4"},"comment":"Only for messages forwarded to saved messages ยป, contains the dialog where the message was originally sent."},{"name":"saved_from_msg_id","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Only for messages forwarded to saved messages ยป, contains the original ID of the message in saved_from_peer."},{"name":"saved_from_id","type":"Peer","typeModifiers":{"predicate":"flags.8"},"comment":"Only for forwarded messages reforwarded to saved messages ยป, contains the sender of the original message (i.e. if user A sends a message, then user B forwards it somewhere, then user C saves it to saved messages, this field will contain the ID of user A and from_id will contain the ID of user B)."},{"name":"saved_from_name","type":"string","typeModifiers":{"predicate":"flags.9"},"comment":"Only for forwarded messages from users with forward privacy enabled reforwarded to saved messages ยป, contains the sender of the original message (i.e. if user A (fwd privacy enabled) sends a message, then user B forwards it somewhere, then user C saves it to saved messages, this field will contain the name of user A and from_id will contain the ID of user B)."},{"name":"saved_date","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Only for forwarded messages reforwarded to saved messages ยป, indicates when was the original message sent (i.e. if user A sends a message @ unixtime 1, then user B forwards it somewhere @ unixtime 2, then user C saves it to saved messages @ unixtime 3, this field will contain 1, date will contain 2 and the date of the containing {@link RawMessage} will contain 3)."},{"name":"psa_type","type":"string","typeModifiers":{"predicate":"flags.6"},"comment":"PSA type"}]},{"kind":"class","name":"auth.codeTypeSms","type":"auth.CodeType","id":1923290508,"comment":"The next time, the authentication code will be delivered via an immediately canceled incoming call.","arguments":[]},{"kind":"class","name":"auth.codeTypeCall","type":"auth.CodeType","id":1948046307,"comment":"The next time, the authentication code is to be delivered via an outgoing phone call.","arguments":[]},{"kind":"class","name":"auth.codeTypeFlashCall","type":"auth.CodeType","id":577556219,"comment":"The next time, the authentication code will be delivered via an immediately canceled incoming call.","arguments":[]},{"kind":"class","name":"auth.codeTypeMissedCall","type":"auth.CodeType","id":3592083182,"comment":"The next time, the authentication code will be delivered via an immediately canceled incoming call, handled manually by the user.","arguments":[]},{"kind":"class","name":"auth.codeTypeFragmentSms","type":"auth.CodeType","id":116234636,"comment":"The next time, the authentication code will be delivered via fragment.com","arguments":[]},{"kind":"class","name":"auth.sentCodeTypeApp","type":"auth.SentCodeType","id":1035688326,"comment":"The code was sent through the telegram app","arguments":[{"name":"length","type":"int","comment":"Length of the code in bytes"}]},{"kind":"class","name":"auth.sentCodeTypeSms","type":"auth.SentCodeType","id":3221273506,"comment":"The code was sent via SMS","arguments":[{"name":"length","type":"int","comment":"Length of the code in bytes"}]},{"kind":"class","name":"auth.sentCodeTypeCall","type":"auth.SentCodeType","id":1398007207,"comment":"The code will be sent via a phone call: a synthesized voice will tell the user which verification code to input.","arguments":[{"name":"length","type":"int","comment":"Length of the verification code"}]},{"kind":"class","name":"auth.sentCodeTypeFlashCall","type":"auth.SentCodeType","id":2869151449,"comment":"The code will be sent via a flash phone call, that will be closed immediately. The phone code will then be the phone number itself, just make sure that the phone number matches the specified pattern.","arguments":[{"name":"pattern","type":"string","comment":"pattern to match"}]},{"kind":"class","name":"auth.sentCodeTypeMissedCall","type":"auth.SentCodeType","id":2181063812,"comment":"The code will be sent via a flash phone call, that will be closed immediately. The last digits of the phone number that calls are the code that must be entered manually by the user.","arguments":[{"name":"prefix","type":"string","comment":"Prefix of the phone number from which the call will be made"},{"name":"length","type":"int","comment":"Length of the verification code"}]},{"kind":"class","name":"auth.sentCodeTypeEmailCode","type":"auth.SentCodeType","id":4098946459,"comment":"The code was sent via the previously configured login email ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"apple_signin_allowed","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether authorization through Apple ID is allowed"},{"name":"google_signin_allowed","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether authorization through Google ID is allowed"},{"name":"email_pattern","type":"string","comment":"Pattern of the email"},{"name":"length","type":"int","comment":"Length of the sent verification code"},{"name":"reset_available_period","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Clients should wait for the specified amount of seconds before allowing the user to invoke {@link auth.RawResetLoginEmailRequest} (will be 0 for Premium users)."},{"name":"reset_pending_date","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"An email reset was already requested, and will occur at the specified date."}]},{"kind":"class","name":"auth.sentCodeTypeSetUpEmailRequired","type":"auth.SentCodeType","id":2773032426,"comment":"The user should add and verify an email address in order to login as described here ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"apple_signin_allowed","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether authorization through Apple ID is allowed"},{"name":"google_signin_allowed","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether authorization through Google ID is allowed"}]},{"kind":"class","name":"auth.sentCodeTypeFragmentSms","type":"auth.SentCodeType","id":3646315577,"comment":"The code was delivered via fragment.com.","arguments":[{"name":"url","type":"string","comment":"Open the specified URL to log into fragment.com with the wallet that owns the specified phone number and view the code."},{"name":"length","type":"int","comment":"Length of the delivered code."}]},{"kind":"class","name":"auth.sentCodeTypeFirebaseSms","id":331943703,"type":"auth.SentCodeType","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"nonce","type":"bytes","typeModifiers":{"predicate":"flags.0"},"comment":"On Android, the nonce to be used as described in the auth documentation ยป"},{"name":"play_integrity_nonce","type":"bytes","typeModifiers":{"predicate":"flags.2"}},{"name":"receipt","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"On iOS, must be compared with the receipt extracted from the received push notification."},{"name":"push_timeout","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"On iOS: if a push notification with the ios_push_secret isn't received within push_timeout seconds, the next_type authentication method must be used, with {@link auth.RawResendCodeRequest}."},{"name":"length","type":"int","comment":"Length of the code that will be delivered."}],"comment":"An authentication code should be delivered via SMS after Firebase attestation, as described in the auth documentation ยป."},{"kind":"class","name":"auth.sentCodeTypeSmsWord","type":"auth.SentCodeType","id":2752949377,"arguments":[{"name":"flags","type":"#"},{"name":"beginning","type":"string","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"class","name":"auth.sentCodeTypeSmsPhrase","type":"auth.SentCodeType","id":3010958511,"arguments":[{"name":"flags","type":"#"},{"name":"beginning","type":"string","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"class","name":"messages.botCallbackAnswer","type":"messages.BotCallbackAnswer","id":911761060,"comment":"Callback answer sent by the bot in response to a button press","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"alert","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether an alert should be shown to the user instead of a toast notification"},{"name":"has_url","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether an URL is present"},{"name":"native_ui","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether to show games in WebView or in native UI."},{"name":"message","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Alert to show"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"URL to open"},{"name":"cache_time","type":"int","comment":"For how long should this answer be cached"}]},{"kind":"class","name":"messages.messageEditData","type":"messages.MessageEditData","id":649453030,"comment":"Message edit data for media","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"caption","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Media caption, if the specified media's caption can be edited"}]},{"kind":"class","name":"inputBotInlineMessageID","type":"InputBotInlineMessageID","id":2299280777,"comment":"Represents a sent inline message from the perspective of a bot (legacy constructor)","arguments":[{"name":"dc_id","type":"int","comment":"DC ID to use when working with this inline message"},{"name":"id","type":"long","comment":"ID of message, contains both the (32-bit, legacy) owner ID and the message ID, used only for Bot API backwards compatibility with 32-bit user ID."},{"name":"access_hash","type":"long","comment":"Access hash of message"}]},{"kind":"class","name":"inputBotInlineMessageID64","type":"InputBotInlineMessageID","id":3067680215,"comment":"Represents a sent inline message from the perspective of a bot","arguments":[{"name":"dc_id","type":"int","comment":"DC ID to use when working with this inline message"},{"name":"owner_id","type":"long","comment":"ID of the owner of this message"},{"name":"id","type":"int","comment":"ID of message"},{"name":"access_hash","type":"long","comment":"Access hash of message"}]},{"kind":"class","name":"inlineBotSwitchPM","type":"InlineBotSwitchPM","id":1008755359,"comment":"The bot requested the user to message them in private","arguments":[{"name":"text","type":"string","comment":"Text for the button that switches the user to a private chat with the bot and sends the bot a start message with the parameter start_parameter (can be empty)"},{"name":"start_param","type":"string","comment":"The parameter for the /start parameter"}]},{"kind":"class","name":"messages.peerDialogs","type":"messages.PeerDialogs","id":863093588,"comment":"Dialog info of multiple peers","arguments":[{"name":"dialogs","type":"Dialog","typeModifiers":{"isVector":true},"comment":"Dialog info"},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"Messages mentioned in dialog info"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"},{"name":"state","type":"updates.State","comment":"Current update state of dialog"}]},{"kind":"class","name":"topPeer","type":"TopPeer","id":3989684315,"comment":"Top peer","arguments":[{"name":"peer","type":"Peer","comment":"Peer"},{"name":"rating","type":"double","comment":"Rating as computed in top peer rating ยป"}]},{"kind":"class","name":"topPeerCategoryBotsPM","type":"TopPeerCategory","id":2875595611,"comment":"Most used bots","arguments":[]},{"kind":"class","name":"topPeerCategoryBotsInline","type":"TopPeerCategory","id":344356834,"comment":"Most used inline bots","arguments":[]},{"kind":"class","name":"topPeerCategoryCorrespondents","type":"TopPeerCategory","id":104314861,"comment":"Users we've chatted most frequently with","arguments":[]},{"kind":"class","name":"topPeerCategoryGroups","type":"TopPeerCategory","id":3172442442,"comment":"Often-opened groups and supergroups","arguments":[]},{"kind":"class","name":"topPeerCategoryChannels","type":"TopPeerCategory","id":371037736,"comment":"Most frequently visited channels","arguments":[]},{"kind":"class","name":"topPeerCategoryPhoneCalls","type":"TopPeerCategory","id":511092620,"comment":"Most frequently called users","arguments":[]},{"kind":"class","name":"topPeerCategoryForwardUsers","type":"TopPeerCategory","id":2822794409,"comment":"Users to which the users often forwards messages to","arguments":[]},{"kind":"class","name":"topPeerCategoryForwardChats","type":"TopPeerCategory","id":4226728176,"comment":"Chats to which the users often forwards messages to","arguments":[]},{"kind":"class","name":"topPeerCategoryPeers","type":"TopPeerCategoryPeers","id":4219683473,"comment":"Top peer category","arguments":[{"name":"category","type":"TopPeerCategory","comment":"Top peer category of peers"},{"name":"count","type":"int","comment":"Count of peers"},{"name":"peers","type":"TopPeer","typeModifiers":{"isVector":true},"comment":"Peers"}]},{"kind":"class","name":"contacts.topPeersNotModified","type":"contacts.TopPeers","id":3727060725,"comment":"Top peer info hasn't changed","arguments":[]},{"kind":"class","name":"contacts.topPeers","type":"contacts.TopPeers","id":1891070632,"comment":"Top peers","arguments":[{"name":"categories","type":"TopPeerCategoryPeers","typeModifiers":{"isVector":true},"comment":"Top peers by top peer category"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"contacts.topPeersDisabled","type":"contacts.TopPeers","id":3039597469,"comment":"Top peers disabled","arguments":[]},{"kind":"class","name":"draftMessageEmpty","type":"DraftMessage","id":453805082,"comment":"Empty draft","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"date","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"When was the draft last updated"}]},{"kind":"class","name":"draftMessage","type":"DraftMessage","id":1070397423,"comment":"Represents a message draft.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"no_webpage","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether no webpage preview will be generated"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"reply_to","type":"InputReplyTo","typeModifiers":{"predicate":"flags.4"},"comment":"If set, indicates that the message should be sent in reply to the specified message or story."},{"name":"message","type":"string","comment":"The draft"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Message entities for styled text."},{"name":"media","type":"InputMedia","typeModifiers":{"predicate":"flags.5"},"comment":"Media."},{"name":"date","type":"int","comment":"Date of last update of the draft."}]},{"kind":"class","name":"messages.featuredStickersNotModified","type":"messages.FeaturedStickers","id":3336309862,"comment":"Featured stickers haven't changed","arguments":[{"name":"count","type":"int","comment":"Total number of featured stickers"}]},{"kind":"class","name":"messages.featuredStickers","type":"messages.FeaturedStickers","id":3191351558,"comment":"Featured stickersets","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"premium","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this is a premium stickerset"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"count","type":"int","comment":"Total number of featured stickers"},{"name":"sets","type":"StickerSetCovered","typeModifiers":{"isVector":true},"comment":"Featured stickersets"},{"name":"unread","type":"long","typeModifiers":{"isVector":true},"comment":"IDs of new featured stickersets"}]},{"kind":"class","name":"messages.recentStickersNotModified","type":"messages.RecentStickers","id":186120336,"comment":"No new recent sticker was found","arguments":[]},{"kind":"class","name":"messages.recentStickers","type":"messages.RecentStickers","id":2295561302,"comment":"Recently used stickers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"packs","type":"StickerPack","typeModifiers":{"isVector":true},"comment":"Emojis associated to stickers"},{"name":"stickers","type":"Document","typeModifiers":{"isVector":true},"comment":"Recent stickers"},{"name":"dates","type":"int","typeModifiers":{"isVector":true},"comment":"When was each sticker last used"}]},{"kind":"class","name":"messages.archivedStickers","type":"messages.ArchivedStickers","id":1338747336,"comment":"Archived stickersets","arguments":[{"name":"count","type":"int","comment":"Number of archived stickers"},{"name":"sets","type":"StickerSetCovered","typeModifiers":{"isVector":true},"comment":"Archived stickersets"}]},{"kind":"class","name":"messages.stickerSetInstallResultSuccess","type":"messages.StickerSetInstallResult","id":946083368,"comment":"The stickerset was installed successfully","arguments":[]},{"kind":"class","name":"messages.stickerSetInstallResultArchive","type":"messages.StickerSetInstallResult","id":904138920,"comment":"The stickerset was installed, but since there are too many stickersets some were archived","arguments":[{"name":"sets","type":"StickerSetCovered","typeModifiers":{"isVector":true},"comment":"Archived stickersets"}]},{"kind":"class","name":"stickerSetCovered","type":"StickerSetCovered","id":1678812626,"comment":"Stickerset with a single sticker as preview","arguments":[{"name":"set","type":"StickerSet","comment":"Stickerset"},{"name":"cover","type":"Document","comment":"Preview"}]},{"kind":"class","name":"stickerSetMultiCovered","type":"StickerSetCovered","id":872932635,"comment":"Stickerset, with multiple stickers as preview","arguments":[{"name":"set","type":"StickerSet","comment":"Stickerset"},{"name":"covers","type":"Document","typeModifiers":{"isVector":true},"comment":"Preview stickers"}]},{"kind":"class","name":"stickerSetFullCovered","type":"StickerSetCovered","id":1087454222,"comment":"Stickerset preview with all stickers of the stickerset included.
\nCurrently used only for custom emoji stickersets, to avoid a further call to {@link messages.RawGetStickerSetRequest}.","arguments":[{"name":"set","type":"StickerSet","comment":"Stickerset"},{"name":"packs","type":"StickerPack","typeModifiers":{"isVector":true},"comment":"Emoji information about every sticker in the stickerset"},{"name":"keywords","type":"StickerKeyword","typeModifiers":{"isVector":true},"comment":"Keywords for some or every sticker in the stickerset."},{"name":"documents","type":"Document","typeModifiers":{"isVector":true},"comment":"Stickers"}]},{"kind":"class","name":"stickerSetNoCovered","type":"StickerSetCovered","id":2008112412,"comment":"Just the stickerset information, with no previews.","arguments":[{"name":"set","type":"StickerSet","comment":"Stickerset information."}]},{"kind":"class","name":"maskCoords","type":"MaskCoords","id":2933316530,"comment":"Position on a photo where a mask should be placed when attaching stickers to media ยป\n\nThe n position indicates where the mask should be placed:","arguments":[{"name":"n","type":"int","comment":"Part of the face, relative to which the mask should be placed"},{"name":"x","type":"double","comment":"Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position)"},{"name":"y","type":"double","comment":"Shift by Y-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just below the default mask position)"},{"name":"zoom","type":"double","comment":"Mask scaling coefficient. (For example, 2.0 means a doubled size)"}]},{"kind":"class","name":"inputStickeredMediaPhoto","type":"InputStickeredMedia","id":1251549527,"comment":"A photo with stickers attached","arguments":[{"name":"id","type":"InputPhoto","comment":"The photo"}]},{"kind":"class","name":"inputStickeredMediaDocument","type":"InputStickeredMedia","id":70813275,"comment":"A document with stickers attached","arguments":[{"name":"id","type":"InputDocument","comment":"The document"}]},{"kind":"class","name":"game","type":"Game","id":3187238203,"comment":"Indicates an already sent game","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"long","comment":"ID of the game"},{"name":"access_hash","type":"long","comment":"Access hash of the game"},{"name":"short_name","type":"string","comment":"Short name for the game"},{"name":"title","type":"string","comment":"Title of the game"},{"name":"description","type":"string","comment":"Game description"},{"name":"photo","type":"Photo","comment":"Game preview"},{"name":"document","type":"Document","typeModifiers":{"predicate":"flags.0"},"comment":"Optional attached document"}]},{"kind":"class","name":"inputGameID","type":"InputGame","id":53231223,"comment":"Indicates an already sent game","arguments":[{"name":"id","type":"long","comment":"game ID from Game constructor"},{"name":"access_hash","type":"long","comment":"access hash from Game constructor"}]},{"kind":"class","name":"inputGameShortName","type":"InputGame","id":3274827786,"comment":"Game by short name","arguments":[{"name":"bot_id","type":"InputUser","comment":"The bot that provides the game"},{"name":"short_name","type":"string","comment":"The game's short name, usually obtained from a game link ยป"}]},{"kind":"class","name":"highScore","type":"HighScore","id":1940093419,"comment":"Game highscore","arguments":[{"name":"pos","type":"int","comment":"Position in highscore list"},{"name":"user_id","type":"int53","comment":"User ID"},{"name":"score","type":"int","comment":"Score"}]},{"kind":"class","name":"messages.highScores","type":"messages.HighScores","id":2587622809,"comment":"Highscores in a game","arguments":[{"name":"scores","type":"HighScore","typeModifiers":{"isVector":true},"comment":"Highscores"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users, associated to the highscores"}]},{"kind":"class","name":"textEmpty","type":"RichText","id":3695018575,"comment":"Empty rich text element","arguments":[]},{"kind":"class","name":"textPlain","type":"RichText","id":1950782688,"comment":"Plain text","arguments":[{"name":"text","type":"string","comment":"Text"}]},{"kind":"class","name":"textBold","type":"RichText","id":1730456516,"comment":"Bold text","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"textItalic","type":"RichText","id":3641877916,"comment":"Italic text","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"textUnderline","type":"RichText","id":3240501956,"comment":"Underlined text","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"textStrike","type":"RichText","id":2616769429,"comment":"Strikethrough text","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"textFixed","type":"RichText","id":1816074681,"comment":"fixed-width rich text","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"textUrl","type":"RichText","id":1009288385,"comment":"Link","arguments":[{"name":"text","type":"RichText","comment":"Text of link"},{"name":"url","type":"string","comment":"Webpage HTTP URL"},{"name":"webpage_id","type":"long","comment":"If a preview was already generated for the page, the page ID"}]},{"kind":"class","name":"textEmail","type":"RichText","id":3730443734,"comment":"Rich text email link","arguments":[{"name":"text","type":"RichText","comment":"Link text"},{"name":"email","type":"string","comment":"Email address"}]},{"kind":"class","name":"textConcat","type":"RichText","id":2120376535,"comment":"Concatenation of rich texts","arguments":[{"name":"texts","type":"RichText","typeModifiers":{"isVector":true},"comment":"Concatenated rich texts"}]},{"kind":"class","name":"textSubscript","type":"RichText","id":3983181060,"comment":"Subscript text","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"textSuperscript","type":"RichText","id":3355139585,"comment":"Superscript text","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"textMarked","type":"RichText","id":55281185,"comment":"Highlighted text","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"textPhone","type":"RichText","id":483104362,"comment":"Rich text linked to a phone number","arguments":[{"name":"text","type":"RichText","comment":"Text"},{"name":"phone","type":"string","comment":"Phone number"}]},{"kind":"class","name":"textImage","type":"RichText","id":136105807,"comment":"Inline image","arguments":[{"name":"document_id","type":"long","comment":"Document ID"},{"name":"w","type":"int","comment":"Width"},{"name":"h","type":"int","comment":"Height"}]},{"kind":"class","name":"textAnchor","type":"RichText","id":894777186,"comment":"Text linking to another section of the page","arguments":[{"name":"text","type":"RichText","comment":"Text"},{"name":"name","type":"string","comment":"Section name"}]},{"kind":"class","name":"pageBlockUnsupported","type":"PageBlock","id":324435594,"comment":"Unsupported IV element","arguments":[]},{"kind":"class","name":"pageBlockTitle","type":"PageBlock","id":1890305021,"comment":"Title","arguments":[{"name":"text","type":"RichText","comment":"Title"}]},{"kind":"class","name":"pageBlockSubtitle","type":"PageBlock","id":2415565343,"comment":"Subtitle","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"pageBlockAuthorDate","type":"PageBlock","id":3132089824,"comment":"Author and date of creation of article","arguments":[{"name":"author","type":"RichText","comment":"Author name"},{"name":"published_date","type":"int","comment":"Date of publication"}]},{"kind":"class","name":"pageBlockHeader","type":"PageBlock","id":3218105580,"comment":"Page header","arguments":[{"name":"text","type":"RichText","comment":"Contents"}]},{"kind":"class","name":"pageBlockSubheader","type":"PageBlock","id":4046173921,"comment":"Subheader","arguments":[{"name":"text","type":"RichText","comment":"Subheader"}]},{"kind":"class","name":"pageBlockParagraph","type":"PageBlock","id":1182402406,"comment":"A paragraph","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"pageBlockPreformatted","type":"PageBlock","id":3228621118,"comment":"Preformatted (
 text)","arguments":[{"name":"text","type":"RichText","comment":"Text"},{"name":"language","type":"string","comment":"Programming language of preformatted text"}]},{"kind":"class","name":"pageBlockFooter","type":"PageBlock","id":1216809369,"comment":"Page footer","arguments":[{"name":"text","type":"RichText","comment":"Contents"}]},{"kind":"class","name":"pageBlockDivider","type":"PageBlock","id":3676352904,"comment":"An empty block separating a page","arguments":[]},{"kind":"class","name":"pageBlockAnchor","type":"PageBlock","id":3456972720,"comment":"Link to section within the page itself (like anchor)","arguments":[{"name":"name","type":"string","comment":"Name of target section"}]},{"kind":"class","name":"pageBlockList","type":"PageBlock","id":3840442385,"comment":"Unordered list of IV blocks","arguments":[{"name":"items","type":"PageListItem","typeModifiers":{"isVector":true},"comment":"List of blocks in an IV page"}]},{"kind":"class","name":"pageBlockBlockquote","type":"PageBlock","id":641563686,"comment":"Quote (equivalent to the HTML 
)","arguments":[{"name":"text","type":"RichText","comment":"Quote contents"},{"name":"caption","type":"RichText","comment":"Caption"}]},{"kind":"class","name":"pageBlockPullquote","type":"PageBlock","id":1329878739,"comment":"Pullquote","arguments":[{"name":"text","type":"RichText","comment":"Text"},{"name":"caption","type":"RichText","comment":"Caption"}]},{"kind":"class","name":"pageBlockPhoto","type":"PageBlock","id":391759200,"comment":"A photo","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"photo_id","type":"long","comment":"Photo ID"},{"name":"caption","type":"PageCaption","comment":"Caption"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"HTTP URL of page the photo leads to when clicked"},{"name":"webpage_id","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"ID of preview of the page the photo leads to when clicked"}]},{"kind":"class","name":"pageBlockVideo","type":"PageBlock","id":2089805750,"comment":"Video","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"autoplay","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the video is set to autoplay"},{"name":"loop","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the video is set to loop"},{"name":"video_id","type":"long","comment":"Video ID"},{"name":"caption","type":"PageCaption","comment":"Caption"}]},{"kind":"class","name":"pageBlockCover","type":"PageBlock","id":972174080,"comment":"A page cover","arguments":[{"name":"cover","type":"PageBlock","comment":"Cover"}]},{"kind":"class","name":"pageBlockEmbed","type":"PageBlock","id":2826014149,"comment":"An embedded webpage","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"full_width","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the block should be full width"},{"name":"allow_scrolling","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether scrolling should be allowed"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Web page URL, if available"},{"name":"html","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"HTML-markup of the embedded page"},{"name":"poster_photo_id","type":"long","typeModifiers":{"predicate":"flags.4"},"comment":"Poster photo, if available"},{"name":"w","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"Block width, if known"},{"name":"h","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"Block height, if known"},{"name":"caption","type":"PageCaption","comment":"Caption"}]},{"kind":"class","name":"pageBlockEmbedPost","type":"PageBlock","id":4065961995,"comment":"An embedded post","arguments":[{"name":"url","type":"string","comment":"Web page URL"},{"name":"webpage_id","type":"long","comment":"ID of generated webpage preview"},{"name":"author_photo_id","type":"long","comment":"ID of the author's photo"},{"name":"author","type":"string","comment":"Author name"},{"name":"date","type":"int","comment":"Creation date"},{"name":"blocks","type":"PageBlock","typeModifiers":{"isVector":true},"comment":"Post contents"},{"name":"caption","type":"PageCaption","comment":"Caption"}]},{"kind":"class","name":"pageBlockCollage","type":"PageBlock","id":1705048653,"comment":"Collage of media","arguments":[{"name":"items","type":"PageBlock","typeModifiers":{"isVector":true},"comment":"Media elements"},{"name":"caption","type":"PageCaption","comment":"Caption"}]},{"kind":"class","name":"pageBlockSlideshow","type":"PageBlock","id":52401552,"comment":"Slideshow","arguments":[{"name":"items","type":"PageBlock","typeModifiers":{"isVector":true},"comment":"Slideshow items"},{"name":"caption","type":"PageCaption","comment":"Caption"}]},{"kind":"class","name":"pageBlockChannel","type":"PageBlock","id":4011282869,"comment":"Reference to a telegram channel","arguments":[{"name":"channel","type":"Chat","comment":"The channel/supergroup/chat"}]},{"kind":"class","name":"pageBlockAudio","type":"PageBlock","id":2151899626,"comment":"Audio","arguments":[{"name":"audio_id","type":"long","comment":"Audio ID (to be fetched from the container {@link RawPage} constructor"},{"name":"caption","type":"PageCaption","comment":"Audio caption"}]},{"kind":"class","name":"pageBlockKicker","type":"PageBlock","id":504660880,"comment":"Kicker","arguments":[{"name":"text","type":"RichText","comment":"Contents"}]},{"kind":"class","name":"pageBlockTable","type":"PageBlock","id":3209554562,"comment":"Table","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"bordered","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Does the table have a visible border?"},{"name":"striped","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Is the table striped?"},{"name":"title","type":"RichText","comment":"Title"},{"name":"rows","type":"PageTableRow","typeModifiers":{"isVector":true},"comment":"Table rows"}]},{"kind":"class","name":"pageBlockOrderedList","type":"PageBlock","id":2592793057,"comment":"Ordered list of IV blocks","arguments":[{"name":"items","type":"PageListOrderedItem","typeModifiers":{"isVector":true},"comment":"List items"}]},{"kind":"class","name":"pageBlockDetails","type":"PageBlock","id":1987480557,"comment":"A collapsible details block","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"open","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the block is open by default"},{"name":"blocks","type":"PageBlock","typeModifiers":{"isVector":true},"comment":"Block contents"},{"name":"title","type":"RichText","comment":"Always visible heading for the block"}]},{"kind":"class","name":"pageBlockRelatedArticles","type":"PageBlock","id":370236054,"comment":"Related articles","arguments":[{"name":"title","type":"RichText","comment":"Title"},{"name":"articles","type":"PageRelatedArticle","typeModifiers":{"isVector":true},"comment":"Related articles"}]},{"kind":"class","name":"pageBlockMap","type":"PageBlock","id":2756656886,"comment":"A map","arguments":[{"name":"geo","type":"GeoPoint","comment":"Location of the map center"},{"name":"zoom","type":"int","comment":"Map zoom level; 13-20"},{"name":"w","type":"int","comment":"Map width in pixels before applying scale; 16-102"},{"name":"h","type":"int","comment":"Map height in pixels before applying scale; 16-1024"},{"name":"caption","type":"PageCaption","comment":"Caption"}]},{"kind":"class","name":"phoneCallDiscardReasonMissed","type":"PhoneCallDiscardReason","id":2246320897,"comment":"The phone call was missed","arguments":[]},{"kind":"class","name":"phoneCallDiscardReasonDisconnect","type":"PhoneCallDiscardReason","id":3767910816,"comment":"The phone call was disconnected","arguments":[]},{"kind":"class","name":"phoneCallDiscardReasonHangup","type":"PhoneCallDiscardReason","id":1471006352,"comment":"The phone call was ended normally","arguments":[]},{"kind":"class","name":"phoneCallDiscardReasonBusy","type":"PhoneCallDiscardReason","id":4210550985,"comment":"The phone call was discarded because the user is busy in another call","arguments":[]},{"kind":"class","name":"dataJSON","type":"DataJSON","id":2104790276,"comment":"Represents a json-encoded object","arguments":[{"name":"data","type":"string","comment":"JSON-encoded object"}]},{"kind":"class","name":"labeledPrice","type":"LabeledPrice","id":3408489464,"comment":"This object represents a portion of the price for goods or services.","arguments":[{"name":"label","type":"string","comment":"Portion label"},{"name":"amount","type":"long","comment":"Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}]},{"kind":"class","name":"invoice","type":"Invoice","id":1572428309,"comment":"Invoice","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"test","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Test invoice"},{"name":"name_requested","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Set this flag if you require the user's full name to complete the order"},{"name":"phone_requested","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Set this flag if you require the user's phone number to complete the order"},{"name":"email_requested","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Set this flag if you require the user's email address to complete the order"},{"name":"shipping_address_requested","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Set this flag if you require the user's shipping address to complete the order"},{"name":"flexible","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Set this flag if the final price depends on the shipping method"},{"name":"phone_to_provider","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Set this flag if user's phone number should be sent to provider"},{"name":"email_to_provider","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Set this flag if user's email address should be sent to provider"},{"name":"recurring","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"Whether this is a recurring payment"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"prices","type":"LabeledPrice","typeModifiers":{"isVector":true},"comment":"Price breakdown, a list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)"},{"name":"max_tip_amount","type":"long","typeModifiers":{"predicate":"flags.8"},"comment":"The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"suggested_tip_amounts","type":"long","typeModifiers":{"predicate":"flags.8","isVector":true},"comment":"A vector of suggested amounts of tips in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount."},{"name":"terms_url","type":"string","typeModifiers":{"predicate":"flags.10"},"comment":"Terms of service URL"}]},{"kind":"class","name":"paymentCharge","type":"PaymentCharge","id":3926049406,"comment":"Payment identifier","arguments":[{"name":"id","type":"string","comment":"Telegram payment identifier"},{"name":"provider_charge_id","type":"string","comment":"Provider payment identifier"}]},{"kind":"class","name":"postAddress","type":"PostAddress","id":512535275,"comment":"Shipping address","arguments":[{"name":"street_line1","type":"string","comment":"First line for the address"},{"name":"street_line2","type":"string","comment":"Second line for the address"},{"name":"city","type":"string","comment":"City"},{"name":"state","type":"string","comment":"State, if applicable (empty otherwise)"},{"name":"country_iso2","type":"string","comment":"ISO 3166-1 alpha-2 country code"},{"name":"post_code","type":"string","comment":"Address post code"}]},{"kind":"class","name":"paymentRequestedInfo","type":"PaymentRequestedInfo","id":2426158996,"comment":"Order info provided by the user","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"name","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"User's full name"},{"name":"phone","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"User's phone number"},{"name":"email","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"User's email address"},{"name":"shipping_address","type":"PostAddress","typeModifiers":{"predicate":"flags.3"},"comment":"User's shipping address"}]},{"kind":"class","name":"paymentSavedCredentialsCard","type":"PaymentSavedCredentials","id":3452074527,"comment":"Saved credit card","arguments":[{"name":"id","type":"string","comment":"Card ID"},{"name":"title","type":"string","comment":"Title"}]},{"kind":"class","name":"webDocument","type":"WebDocument","id":475467473,"comment":"Remote document","arguments":[{"name":"url","type":"string","comment":"Document URL"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"size","type":"int","comment":"File size"},{"name":"mime_type","type":"string","comment":"MIME type"},{"name":"attributes","type":"DocumentAttribute","typeModifiers":{"isVector":true},"comment":"Attributes for media types"}]},{"kind":"class","name":"webDocumentNoProxy","type":"WebDocument","id":4190682310,"comment":"Remote document that can be downloaded without proxying through telegram","arguments":[{"name":"url","type":"string","comment":"Document URL"},{"name":"size","type":"int","comment":"File size"},{"name":"mime_type","type":"string","comment":"MIME type"},{"name":"attributes","type":"DocumentAttribute","typeModifiers":{"isVector":true},"comment":"Attributes for media types"}]},{"kind":"class","name":"inputWebDocument","type":"InputWebDocument","id":2616017741,"comment":"The document","arguments":[{"name":"url","type":"string","comment":"Remote document URL to be downloaded using the appropriate method"},{"name":"size","type":"int","comment":"Remote file size"},{"name":"mime_type","type":"string","comment":"Mime type"},{"name":"attributes","type":"DocumentAttribute","typeModifiers":{"isVector":true},"comment":"Attributes for media types"}]},{"kind":"class","name":"inputWebFileLocation","type":"InputWebFileLocation","id":3258570374,"comment":"Location of a remote HTTP(s) file","arguments":[{"name":"url","type":"string","comment":"HTTP URL of file"},{"name":"access_hash","type":"long","comment":"Access hash"}]},{"kind":"class","name":"inputWebFileGeoPointLocation","type":"InputWebFileLocation","id":2669814217,"comment":"Used to download a server-generated image with the map preview from a {@link RawGeoPoint}, see the webfile docs for more info ยป.","arguments":[{"name":"geo_point","type":"InputGeoPoint","comment":"Generated from the lat, long and accuracy_radius parameters of the {@link RawGeoPoint}"},{"name":"access_hash","type":"long","comment":"Access hash of the {@link RawGeoPoint}"},{"name":"w","type":"int","comment":"Map width in pixels before applying scale; 16-1024"},{"name":"h","type":"int","comment":"Map height in pixels before applying scale; 16-1024"},{"name":"zoom","type":"int","comment":"Map zoom level; 13-20"},{"name":"scale","type":"int","comment":"Map scale; 1-3"}]},{"kind":"class","name":"inputWebFileAudioAlbumThumbLocation","type":"InputWebFileLocation","id":4100974884,"comment":"Used to download an album cover for any music file using {@link upload.RawGetWebFileRequest}, see the webfile docs for more info ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"small","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Used to return a thumbnail with 100x100 resolution (instead of the default 600x600)"},{"name":"document","type":"InputDocument","typeModifiers":{"predicate":"flags.0"},"comment":"The audio file in question: must NOT be provided in secret chats, provide the title and performer fields instead."},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Song title: should only be used in secret chats, in normal chats provide document instead, as it has more lax rate limits."},{"name":"performer","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Song performer: should only be used in secret chats, in normal chats provide document instead, as it has more lax rate limits."}]},{"kind":"class","name":"upload.webFile","type":"upload.WebFile","id":568808380,"comment":"Represents a chunk of an HTTP webfile downloaded through telegram's secure MTProto servers","arguments":[{"name":"size","type":"int","comment":"File size"},{"name":"mime_type","type":"string","comment":"Mime type"},{"name":"file_type","type":"storage.FileType","comment":"File type"},{"name":"mtime","type":"int","comment":"Modified time"},{"name":"bytes","type":"bytes","comment":"Data"}]},{"kind":"class","name":"payments.paymentForm","type":"payments.PaymentForm","id":2684716881,"comment":"Payment form","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"can_save_credentials","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the user can choose to save credentials."},{"name":"password_missing","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Indicates that the user can save payment credentials, but only after setting up a 2FA password (currently the account doesn't have a 2FA password)"},{"name":"form_id","type":"long","comment":"Form ID"},{"name":"bot_id","type":"int53","comment":"Bot ID"},{"name":"title","type":"string","comment":"Form title"},{"name":"description","type":"string","comment":"Description"},{"name":"photo","type":"WebDocument","typeModifiers":{"predicate":"flags.5"},"comment":"Product photo"},{"name":"invoice","type":"Invoice","comment":"Invoice"},{"name":"provider_id","type":"long","comment":"Payment provider ID."},{"name":"url","type":"string","comment":"Payment form URL"},{"name":"native_provider","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"Payment provider name.
One of the following:
- stripe"},{"name":"native_params","type":"DataJSON","typeModifiers":{"predicate":"flags.4"},"comment":"Contains information about the payment provider, if available, to support it natively without the need for opening the URL.
A JSON object that can contain the following fields:

- apple_pay_merchant_id: Apple Pay merchant ID
- google_pay_public_key: Google Pay public key
- need_country: True, if the user country must be provided,
- need_zip: True, if the user ZIP/postal code must be provided,
- need_cardholder_name: True, if the cardholder name must be provided
"},{"name":"additional_methods","type":"PaymentFormMethod","typeModifiers":{"predicate":"flags.6","isVector":true},"comment":"Additional payment methods"},{"name":"saved_info","type":"PaymentRequestedInfo","typeModifiers":{"predicate":"flags.0"},"comment":"Saved server-side order information"},{"name":"saved_credentials","type":"PaymentSavedCredentials","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Contains information about saved card credentials"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"payments.paymentFormStars","id":2079764828,"type":"payments.PaymentForm","arguments":[{"name":"flags","type":"#"},{"name":"form_id","type":"long"},{"name":"bot_id","type":"int53"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"photo","type":"WebDocument","typeModifiers":{"predicate":"flags.5"}},{"name":"invoice","type":"Invoice"},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"payments.validatedRequestedInfo","type":"payments.ValidatedRequestedInfo","id":3510966403,"comment":"Validated user-provided info","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"ID"},{"name":"shipping_options","type":"ShippingOption","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Shipping options"}]},{"kind":"class","name":"payments.paymentResult","type":"payments.PaymentResult","id":1314881805,"comment":"Payment result","arguments":[{"name":"updates","type":"Updates","comment":"Info about the payment"}]},{"kind":"class","name":"payments.paymentVerificationNeeded","type":"payments.PaymentResult","id":3628142905,"comment":"Payment was not successful, additional verification is needed","arguments":[{"name":"url","type":"string","comment":"URL for additional payment credentials verification"}]},{"kind":"class","name":"payments.paymentReceipt","type":"payments.PaymentReceipt","id":1891958275,"comment":"Receipt","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"date","type":"int","comment":"Date of generation"},{"name":"bot_id","type":"int53","comment":"Bot ID"},{"name":"provider_id","type":"long","comment":"Provider ID"},{"name":"title","type":"string","comment":"Title"},{"name":"description","type":"string","comment":"Description"},{"name":"photo","type":"WebDocument","typeModifiers":{"predicate":"flags.2"},"comment":"Photo"},{"name":"invoice","type":"Invoice","comment":"Invoice"},{"name":"info","type":"PaymentRequestedInfo","typeModifiers":{"predicate":"flags.0"},"comment":"Info"},{"name":"shipping","type":"ShippingOption","typeModifiers":{"predicate":"flags.1"},"comment":"Selected shipping option"},{"name":"tip_amount","type":"long","typeModifiers":{"predicate":"flags.3"},"comment":"Tipped amount"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"total_amount","type":"long","comment":"Total amount in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"credentials_title","type":"string","comment":"Payment credential name"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"payments.paymentReceiptStars","id":3669751866,"type":"payments.PaymentReceipt","arguments":[{"name":"flags","type":"#"},{"name":"date","type":"int"},{"name":"bot_id","type":"int53"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"photo","type":"WebDocument","typeModifiers":{"predicate":"flags.2"}},{"name":"invoice","type":"Invoice"},{"name":"currency","type":"string"},{"name":"total_amount","type":"long"},{"name":"transaction_id","type":"string"},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"payments.savedInfo","type":"payments.SavedInfo","id":4220511292,"comment":"Saved server-side order information","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_saved_credentials","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the user has some saved payment credentials"},{"name":"saved_info","type":"PaymentRequestedInfo","typeModifiers":{"predicate":"flags.0"},"comment":"Saved server-side order information"}]},{"kind":"class","name":"inputPaymentCredentialsSaved","type":"InputPaymentCredentials","id":3238965967,"comment":"Saved payment credentials","arguments":[{"name":"id","type":"string","comment":"Credential ID"},{"name":"tmp_password","type":"bytes","comment":"Temporary password"}]},{"kind":"class","name":"inputPaymentCredentials","type":"InputPaymentCredentials","id":873977640,"comment":"Payment credentials","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"save","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Save payment credential for future use"},{"name":"data","type":"DataJSON","comment":"Payment credentials"}]},{"kind":"class","name":"inputPaymentCredentialsApplePay","type":"InputPaymentCredentials","id":178373535,"comment":"Apple pay payment credentials","arguments":[{"name":"payment_data","type":"DataJSON","comment":"Payment data"}]},{"kind":"class","name":"inputPaymentCredentialsGooglePay","type":"InputPaymentCredentials","id":2328045569,"comment":"Google Pay payment credentials","arguments":[{"name":"payment_token","type":"DataJSON","comment":"Payment token"}]},{"kind":"class","name":"account.tmpPassword","type":"account.TmpPassword","id":3680828724,"comment":"Temporary payment password","arguments":[{"name":"tmp_password","type":"bytes","comment":"Temporary password"},{"name":"valid_until","type":"int","comment":"Validity period"}]},{"kind":"class","name":"shippingOption","type":"ShippingOption","id":3055631583,"comment":"Shipping option","arguments":[{"name":"id","type":"string","comment":"Option ID"},{"name":"title","type":"string","comment":"Title"},{"name":"prices","type":"LabeledPrice","typeModifiers":{"isVector":true},"comment":"List of price portions"}]},{"kind":"class","name":"inputStickerSetItem","type":"InputStickerSetItem","id":853188252,"comment":"Sticker in a stickerset","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"document","type":"InputDocument","comment":"The sticker"},{"name":"emoji","type":"string","comment":"Associated emoji"},{"name":"mask_coords","type":"MaskCoords","typeModifiers":{"predicate":"flags.0"},"comment":"Coordinates for mask sticker"},{"name":"keywords","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Set of keywords, separated by commas (can't be provided for mask stickers)"}]},{"kind":"class","name":"inputPhoneCall","type":"InputPhoneCall","id":506920429,"comment":"Phone call","arguments":[{"name":"id","type":"long","comment":"Call ID"},{"name":"access_hash","type":"long","comment":"Access hash"}]},{"kind":"class","name":"phoneCallEmpty","type":"PhoneCall","id":1399245077,"comment":"Empty constructor","arguments":[{"name":"id","type":"long","comment":"Call ID"}]},{"kind":"class","name":"phoneCallWaiting","type":"PhoneCall","id":3307368215,"comment":"Incoming phone call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Is this a video call"},{"name":"id","type":"long","comment":"Call ID"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"date","type":"int","comment":"Date"},{"name":"admin_id","type":"int53","comment":"Admin ID"},{"name":"participant_id","type":"int53","comment":"Participant ID"},{"name":"protocol","type":"PhoneCallProtocol","comment":"Phone call protocol info"},{"name":"receive_date","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"When was the phone call received"}]},{"kind":"class","name":"phoneCallRequested","type":"PhoneCall","id":347139340,"comment":"Requested phone call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether this is a video call"},{"name":"id","type":"long","comment":"Phone call ID"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"date","type":"int","comment":"When was the phone call created"},{"name":"admin_id","type":"int53","comment":"ID of the creator of the phone call"},{"name":"participant_id","type":"int53","comment":"ID of the other participant of the phone call"},{"name":"g_a_hash","type":"bytes","comment":"Parameter for key exchange"},{"name":"protocol","type":"PhoneCallProtocol","comment":"Call protocol info to be passed to libtgvoip"}]},{"kind":"class","name":"phoneCallAccepted","type":"PhoneCall","id":912311057,"comment":"An accepted phone call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether this is a video call"},{"name":"id","type":"long","comment":"ID of accepted phone call"},{"name":"access_hash","type":"long","comment":"Access hash of phone call"},{"name":"date","type":"int","comment":"When was the call accepted"},{"name":"admin_id","type":"int53","comment":"ID of the call creator"},{"name":"participant_id","type":"int53","comment":"ID of the other user in the call"},{"name":"g_b","type":"bytes","comment":"B parameter for secure E2E phone call key exchange"},{"name":"protocol","type":"PhoneCallProtocol","comment":"Protocol to use for phone call"}]},{"kind":"class","name":"phoneCall","id":810769141,"type":"PhoneCall","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"p2p_allowed","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether P2P connection to the other peer is allowed"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether this is a video call"},{"name":"id","type":"long","comment":"Call ID"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"date","type":"int","comment":"Date of creation of the call"},{"name":"admin_id","type":"int53","comment":"User ID of the creator of the call"},{"name":"participant_id","type":"int53","comment":"User ID of the other participant in the call"},{"name":"g_a_or_b","type":"bytes","comment":"Parameter for key exchange"},{"name":"key_fingerprint","type":"long","comment":"Key fingerprint"},{"name":"protocol","type":"PhoneCallProtocol","comment":"Call protocol info to be passed to libtgvoip"},{"name":"connections","type":"PhoneConnection","typeModifiers":{"isVector":true},"comment":"List of endpoints the user can connect to to exchange call data"},{"name":"start_date","type":"int","comment":"When was the call actually started"},{"name":"custom_parameters","type":"DataJSON","typeModifiers":{"predicate":"flags.7"}}],"comment":"Phone call"},{"kind":"class","name":"phoneCallDiscarded","type":"PhoneCall","id":1355435489,"comment":"Indicates a discarded phone call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"need_rating","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the server required the user to {@link phone.RawSetCallRatingRequest} the call"},{"name":"need_debug","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the server required the client to {@link phone.RawSaveCallDebugRequest} the libtgvoip call debug data"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether the call was a video call"},{"name":"id","type":"long","comment":"Call ID"},{"name":"reason","type":"PhoneCallDiscardReason","typeModifiers":{"predicate":"flags.0"},"comment":"Why was the phone call discarded"},{"name":"duration","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Duration of the phone call in seconds"}]},{"kind":"class","name":"phoneConnection","type":"PhoneConnection","id":2629903303,"comment":"Identifies an endpoint that can be used to connect to the other user in a phone call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"tcp","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether TCP should be used"},{"name":"id","type":"long","comment":"Endpoint ID"},{"name":"ip","type":"string","comment":"IP address of endpoint"},{"name":"ipv6","type":"string","comment":"IPv6 address of endpoint"},{"name":"port","type":"int","comment":"Port ID"},{"name":"peer_tag","type":"bytes","comment":"Our peer tag"}]},{"kind":"class","name":"phoneConnectionWebrtc","type":"PhoneConnection","id":1667228533,"comment":"WebRTC connection parameters","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"turn","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this is a TURN endpoint"},{"name":"stun","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this is a STUN endpoint"},{"name":"id","type":"long","comment":"Endpoint ID"},{"name":"ip","type":"string","comment":"IP address"},{"name":"ipv6","type":"string","comment":"IPv6 address"},{"name":"port","type":"int","comment":"Port"},{"name":"username","type":"string","comment":"Username"},{"name":"password","type":"string","comment":"Password"}]},{"kind":"class","name":"phoneCallProtocol","type":"PhoneCallProtocol","id":4236742600,"comment":"Protocol info for libtgvoip","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"udp_p2p","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to allow P2P connection to the other participant"},{"name":"udp_reflector","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to allow connection to the other participants through the reflector servers"},{"name":"min_layer","type":"int","comment":"Minimum layer for remote libtgvoip"},{"name":"max_layer","type":"int","comment":"Maximum layer for remote libtgvoip"},{"name":"library_versions","type":"string","typeModifiers":{"isVector":true},"comment":"When using {@link phone.RawRequestCallRequest} and {@link phone.RawAcceptCallRequest}, specify all library versions supported by the client.
The server will merge and choose the best library version supported by both peers, returning only the best value in the result of the callee's {@link phone.RawAcceptCallRequest} and in the {@link RawPhoneCallAccepted} update received by the caller."}]},{"kind":"class","name":"phone.phoneCall","type":"phone.PhoneCall","id":3968000320,"comment":"A VoIP phone call","arguments":[{"name":"phone_call","type":"PhoneCall","comment":"The VoIP phone call"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"VoIP phone call participants"}]},{"kind":"class","name":"upload.cdnFileReuploadNeeded","type":"upload.CdnFile","id":4004045934,"comment":"The file was cleared from the temporary RAM cache of the CDN and has to be re-uploaded.","arguments":[{"name":"request_token","type":"bytes","comment":"Request token (see CDN)"}]},{"kind":"class","name":"upload.cdnFile","type":"upload.CdnFile","id":2845821519,"comment":"Represent a chunk of a CDN file.","arguments":[{"name":"bytes","type":"bytes","comment":"The data"}]},{"kind":"class","name":"cdnPublicKey","type":"CdnPublicKey","id":3380800186,"comment":"Public key to use only during handshakes to CDN DCs.","arguments":[{"name":"dc_id","type":"int","comment":"CDN DC ID"},{"name":"public_key","type":"string","comment":"RSA public key"}]},{"kind":"class","name":"cdnConfig","type":"CdnConfig","id":1462101002,"comment":"Configuration for CDN file downloads.","arguments":[{"name":"public_keys","type":"CdnPublicKey","typeModifiers":{"isVector":true},"comment":"Vector of public keys to use only during handshakes to CDN DCs."}]},{"kind":"class","name":"langPackString","type":"LangPackString","id":3402727926,"comment":"Translated localization string","arguments":[{"name":"key","type":"string","comment":"Language key"},{"name":"value","type":"string","comment":"Value"}]},{"kind":"class","name":"langPackStringPluralized","type":"LangPackString","id":1816636575,"comment":"A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"key","type":"string","comment":"Localization key"},{"name":"zero_value","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Value for zero objects"},{"name":"one_value","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Value for one object"},{"name":"two_value","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Value for two objects"},{"name":"few_value","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Value for a few objects"},{"name":"many_value","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"Value for many objects"},{"name":"other_value","type":"string","comment":"Default value"}]},{"kind":"class","name":"langPackStringDeleted","type":"LangPackString","id":695856818,"comment":"Deleted localization string","arguments":[{"name":"key","type":"string","comment":"Localization key"}]},{"kind":"class","name":"langPackDifference","type":"LangPackDifference","id":4085629430,"comment":"Changes to the app's localization pack","arguments":[{"name":"lang_code","type":"string","comment":"Language code"},{"name":"from_version","type":"int","comment":"Previous version number"},{"name":"version","type":"int","comment":"New version number"},{"name":"strings","type":"LangPackString","typeModifiers":{"isVector":true},"comment":"Localized strings"}]},{"kind":"class","name":"langPackLanguage","type":"LangPackLanguage","id":4006239459,"comment":"Identifies a localization pack","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"official","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the language pack is official"},{"name":"rtl","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Is this a localization pack for an RTL language"},{"name":"beta","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Is this a beta localization pack?"},{"name":"name","type":"string","comment":"Language name"},{"name":"native_name","type":"string","comment":"Language name in the language itself"},{"name":"lang_code","type":"string","comment":"Language code (pack identifier)"},{"name":"base_lang_code","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it should be fetched from base language pack. Unsupported in custom language packs"},{"name":"plural_code","type":"string","comment":"A language code to be used to apply plural forms. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info"},{"name":"strings_count","type":"int","comment":"Total number of non-deleted strings from the language pack"},{"name":"translated_count","type":"int","comment":"Total number of translated strings from the language pack"},{"name":"translations_url","type":"string","comment":"Link to language translation interface; empty for custom local language packs"}]},{"kind":"class","name":"channelAdminLogEventActionChangeTitle","type":"ChannelAdminLogEventAction","id":3873421349,"comment":"Channel/supergroup title was changed","arguments":[{"name":"prev_value","type":"string","comment":"Previous title"},{"name":"new_value","type":"string","comment":"New title"}]},{"kind":"class","name":"channelAdminLogEventActionChangeAbout","type":"ChannelAdminLogEventAction","id":1427671598,"comment":"The description was changed","arguments":[{"name":"prev_value","type":"string","comment":"Previous description"},{"name":"new_value","type":"string","comment":"New description"}]},{"kind":"class","name":"channelAdminLogEventActionChangeUsername","type":"ChannelAdminLogEventAction","id":1783299128,"comment":"Channel/supergroup username was changed","arguments":[{"name":"prev_value","type":"string","comment":"Old username"},{"name":"new_value","type":"string","comment":"New username"}]},{"kind":"class","name":"channelAdminLogEventActionChangePhoto","type":"ChannelAdminLogEventAction","id":1129042607,"comment":"The channel/supergroup's picture was changed","arguments":[{"name":"prev_photo","type":"Photo","comment":"Previous picture"},{"name":"new_photo","type":"Photo","comment":"New picture"}]},{"kind":"class","name":"channelAdminLogEventActionToggleInvites","type":"ChannelAdminLogEventAction","id":460916654,"comment":"Invites were enabled/disabled","arguments":[{"name":"new_value","type":"Bool","comment":"New value"}]},{"kind":"class","name":"channelAdminLogEventActionToggleSignatures","type":"ChannelAdminLogEventAction","id":648939889,"comment":"Channel signatures were enabled/disabled","arguments":[{"name":"new_value","type":"Bool","comment":"New value"}]},{"kind":"class","name":"channelAdminLogEventActionUpdatePinned","type":"ChannelAdminLogEventAction","id":3924306968,"comment":"A message was pinned","arguments":[{"name":"message","type":"Message","comment":"The message that was pinned"}]},{"kind":"class","name":"channelAdminLogEventActionEditMessage","type":"ChannelAdminLogEventAction","id":1889215493,"comment":"A message was edited","arguments":[{"name":"prev_message","type":"Message","comment":"Old message"},{"name":"new_message","type":"Message","comment":"New message"}]},{"kind":"class","name":"channelAdminLogEventActionDeleteMessage","type":"ChannelAdminLogEventAction","id":1121994683,"comment":"A message was deleted","arguments":[{"name":"message","type":"Message","comment":"The message that was deleted"}]},{"kind":"class","name":"channelAdminLogEventActionParticipantJoin","type":"ChannelAdminLogEventAction","id":405815507,"comment":"A user has joined the group (in the case of big groups, info of the user that has joined isn't shown)","arguments":[]},{"kind":"class","name":"channelAdminLogEventActionParticipantLeave","type":"ChannelAdminLogEventAction","id":4170676210,"comment":"A user left the channel/supergroup (in the case of big groups, info of the user that has joined isn't shown)","arguments":[]},{"kind":"class","name":"channelAdminLogEventActionParticipantInvite","type":"ChannelAdminLogEventAction","id":3810276568,"comment":"A user was invited to the group","arguments":[{"name":"participant","type":"ChannelParticipant","comment":"The user that was invited"}]},{"kind":"class","name":"channelAdminLogEventActionParticipantToggleBan","type":"ChannelAdminLogEventAction","id":3872931198,"comment":"The banned rights of a user were changed","arguments":[{"name":"prev_participant","type":"ChannelParticipant","comment":"Old banned rights of user"},{"name":"new_participant","type":"ChannelParticipant","comment":"New banned rights of user"}]},{"kind":"class","name":"channelAdminLogEventActionParticipantToggleAdmin","type":"ChannelAdminLogEventAction","id":3580323600,"comment":"The admin rights of a user were changed","arguments":[{"name":"prev_participant","type":"ChannelParticipant","comment":"Previous admin rights"},{"name":"new_participant","type":"ChannelParticipant","comment":"New admin rights"}]},{"kind":"class","name":"channelAdminLogEventActionChangeStickerSet","type":"ChannelAdminLogEventAction","id":2982398631,"comment":"The supergroup's stickerset was changed","arguments":[{"name":"prev_stickerset","type":"InputStickerSet","comment":"Previous stickerset"},{"name":"new_stickerset","type":"InputStickerSet","comment":"New stickerset"}]},{"kind":"class","name":"channelAdminLogEventActionTogglePreHistoryHidden","type":"ChannelAdminLogEventAction","id":1599903217,"comment":"The hidden prehistory setting was {@link channels.RawTogglePreHistoryHiddenRequest}","arguments":[{"name":"new_value","type":"Bool","comment":"New value"}]},{"kind":"class","name":"channelAdminLogEventActionDefaultBannedRights","type":"ChannelAdminLogEventAction","id":771095562,"comment":"The default banned rights were modified","arguments":[{"name":"prev_banned_rights","type":"ChatBannedRights","comment":"Previous global banned rights"},{"name":"new_banned_rights","type":"ChatBannedRights","comment":"New global banned rights."}]},{"kind":"class","name":"channelAdminLogEventActionStopPoll","type":"ChannelAdminLogEventAction","id":2399639107,"comment":"A poll was stopped","arguments":[{"name":"message","type":"Message","comment":"The poll that was stopped"}]},{"kind":"class","name":"channelAdminLogEventActionChangeLinkedChat","type":"ChannelAdminLogEventAction","id":84703944,"comment":"The linked chat was changed","arguments":[{"name":"prev_value","type":"int53","comment":"Previous linked chat"},{"name":"new_value","type":"int53","comment":"New linked chat"}]},{"kind":"class","name":"channelAdminLogEventActionChangeLocation","type":"ChannelAdminLogEventAction","id":241923758,"comment":"The geo group location was changed","arguments":[{"name":"prev_value","type":"ChannelLocation","comment":"Previous location"},{"name":"new_value","type":"ChannelLocation","comment":"New location"}]},{"kind":"class","name":"channelAdminLogEventActionToggleSlowMode","type":"ChannelAdminLogEventAction","id":1401984889,"comment":"{@link channels.RawToggleSlowModeRequest}","arguments":[{"name":"prev_value","type":"int","comment":"Previous slow mode value"},{"name":"new_value","type":"int","comment":"New slow mode value"}]},{"kind":"class","name":"channelAdminLogEventActionStartGroupCall","type":"ChannelAdminLogEventAction","id":589338437,"comment":"A group call was started","arguments":[{"name":"call","type":"InputGroupCall","comment":"Group call"}]},{"kind":"class","name":"channelAdminLogEventActionDiscardGroupCall","type":"ChannelAdminLogEventAction","id":3684667712,"comment":"A group call was terminated","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call that was terminated"}]},{"kind":"class","name":"channelAdminLogEventActionParticipantMute","type":"ChannelAdminLogEventAction","id":4179895506,"comment":"A group call participant was muted","arguments":[{"name":"participant","type":"GroupCallParticipant","comment":"The participant that was muted"}]},{"kind":"class","name":"channelAdminLogEventActionParticipantUnmute","type":"ChannelAdminLogEventAction","id":3863226816,"comment":"A group call participant was unmuted","arguments":[{"name":"participant","type":"GroupCallParticipant","comment":"The participant that was unmuted"}]},{"kind":"class","name":"channelAdminLogEventActionToggleGroupCallSetting","type":"ChannelAdminLogEventAction","id":1456906823,"comment":"Group call settings were changed","arguments":[{"name":"join_muted","type":"Bool","comment":"Whether all users are muted by default upon joining"}]},{"kind":"class","name":"channelAdminLogEventActionParticipantJoinByInvite","type":"ChannelAdminLogEventAction","id":4271882584,"comment":"A user joined the supergroup/channel using a specific invite link","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"via_chatlist","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"The participant joined by importing a chat folder deep link ยป."},{"name":"invite","type":"ExportedChatInvite","comment":"The invite link used to join the supergroup/channel"}]},{"kind":"class","name":"channelAdminLogEventActionExportedInviteDelete","type":"ChannelAdminLogEventAction","id":1515256996,"comment":"A chat invite was deleted","arguments":[{"name":"invite","type":"ExportedChatInvite","comment":"The deleted chat invite"}]},{"kind":"class","name":"channelAdminLogEventActionExportedInviteRevoke","type":"ChannelAdminLogEventAction","id":1091179342,"comment":"A specific invite link was revoked","arguments":[{"name":"invite","type":"ExportedChatInvite","comment":"The invite link that was revoked"}]},{"kind":"class","name":"channelAdminLogEventActionExportedInviteEdit","type":"ChannelAdminLogEventAction","id":3910056793,"comment":"A chat invite was edited","arguments":[{"name":"prev_invite","type":"ExportedChatInvite","comment":"Previous chat invite information"},{"name":"new_invite","type":"ExportedChatInvite","comment":"New chat invite information"}]},{"kind":"class","name":"channelAdminLogEventActionParticipantVolume","type":"ChannelAdminLogEventAction","id":1048537159,"comment":"channelAdminLogEvent.user_id has set the volume of participant.peer to participant.volume","arguments":[{"name":"participant","type":"GroupCallParticipant","comment":"The participant whose volume was changed"}]},{"kind":"class","name":"channelAdminLogEventActionChangeHistoryTTL","type":"ChannelAdminLogEventAction","id":1855199800,"comment":"The Time-To-Live of messages in this chat was changed","arguments":[{"name":"prev_value","type":"int","comment":"Previous value"},{"name":"new_value","type":"int","comment":"New value"}]},{"kind":"class","name":"channelAdminLogEventActionParticipantJoinByRequest","type":"ChannelAdminLogEventAction","id":2947945546,"comment":"A new member was accepted to the chat by an admin","arguments":[{"name":"invite","type":"ExportedChatInvite","comment":"The invite link that was used to join the chat"},{"name":"approved_by","type":"int53","comment":"ID of the admin that approved the invite"}]},{"kind":"class","name":"channelAdminLogEventActionToggleNoForwards","type":"ChannelAdminLogEventAction","id":3408578406,"comment":"Forwards were enabled or disabled","arguments":[{"name":"new_value","type":"Bool","comment":"Old value"}]},{"kind":"class","name":"channelAdminLogEventActionSendMessage","type":"ChannelAdminLogEventAction","id":663693416,"comment":"A message was posted in a channel","arguments":[{"name":"message","type":"Message","comment":"The message that was sent"}]},{"kind":"class","name":"channelAdminLogEventActionChangeAvailableReactions","type":"ChannelAdminLogEventAction","id":3192786680,"comment":"The set of allowed message reactions ยป for this channel has changed","arguments":[{"name":"prev_value","type":"ChatReactions","comment":"Previously allowed reaction emojis"},{"name":"new_value","type":"ChatReactions","comment":"New allowed reaction emojis"}]},{"kind":"class","name":"channelAdminLogEventActionChangeUsernames","type":"ChannelAdminLogEventAction","id":4031755177,"comment":"The list of usernames associated with the channel was changed","arguments":[{"name":"prev_value","type":"string","typeModifiers":{"isVector":true},"comment":"Previous set of usernames"},{"name":"new_value","type":"string","typeModifiers":{"isVector":true},"comment":"New set of usernames"}]},{"kind":"class","name":"channelAdminLogEventActionToggleForum","type":"ChannelAdminLogEventAction","id":46949251,"comment":"Forum functionality was enabled or disabled.","arguments":[{"name":"new_value","type":"Bool","comment":"Whether forum functionality was enabled or disabled."}]},{"kind":"class","name":"channelAdminLogEventActionCreateTopic","type":"ChannelAdminLogEventAction","id":1483767080,"comment":"A forum topic was created","arguments":[{"name":"topic","type":"ForumTopic","comment":"The forum topic that was created"}]},{"kind":"class","name":"channelAdminLogEventActionEditTopic","type":"ChannelAdminLogEventAction","id":4033864200,"comment":"A forum topic was edited","arguments":[{"name":"prev_topic","type":"ForumTopic","comment":"Previous topic information"},{"name":"new_topic","type":"ForumTopic","comment":"New topic information"}]},{"kind":"class","name":"channelAdminLogEventActionDeleteTopic","type":"ChannelAdminLogEventAction","id":2920712457,"comment":"A forum topic was deleted","arguments":[{"name":"topic","type":"ForumTopic","comment":"The forum topic that was deleted"}]},{"kind":"class","name":"channelAdminLogEventActionPinTopic","type":"ChannelAdminLogEventAction","id":1569535291,"comment":"A forum topic was pinned or unpinned","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"prev_topic","type":"ForumTopic","typeModifiers":{"predicate":"flags.0"},"comment":"Previous topic information"},{"name":"new_topic","type":"ForumTopic","typeModifiers":{"predicate":"flags.1"},"comment":"New topic information"}]},{"kind":"class","name":"channelAdminLogEventActionToggleAntiSpam","type":"ChannelAdminLogEventAction","id":1693675004,"comment":"Native antispam functionality was enabled or disabled.","arguments":[{"name":"new_value","type":"Bool","comment":"Whether antispam functionality was enabled or disabled."}]},{"kind":"class","name":"channelAdminLogEventActionChangePeerColor","type":"ChannelAdminLogEventAction","id":1469507456,"comment":"The message accent color was changed","arguments":[{"name":"prev_value","type":"PeerColor","comment":"Previous accent palette"},{"name":"new_value","type":"PeerColor","comment":"New accent palette"}]},{"kind":"class","name":"channelAdminLogEventActionChangeProfilePeerColor","type":"ChannelAdminLogEventAction","id":1581742885,"comment":"The profile accent color was changed","arguments":[{"name":"prev_value","type":"PeerColor","comment":"Previous accent palette"},{"name":"new_value","type":"PeerColor","comment":"New accent palette"}]},{"kind":"class","name":"channelAdminLogEventActionChangeWallpaper","type":"ChannelAdminLogEventAction","id":834362706,"comment":"The wallpaper was changed","arguments":[{"name":"prev_value","type":"WallPaper","comment":"Previous wallpaper"},{"name":"new_value","type":"WallPaper","comment":"New wallpaper"}]},{"kind":"class","name":"channelAdminLogEventActionChangeEmojiStatus","type":"ChannelAdminLogEventAction","id":1051328177,"comment":"The emoji status was changed","arguments":[{"name":"prev_value","type":"EmojiStatus","comment":"Previous emoji status"},{"name":"new_value","type":"EmojiStatus","comment":"New emoji status"}]},{"kind":"class","name":"channelAdminLogEventActionChangeEmojiStickerSet","type":"ChannelAdminLogEventAction","id":1188577451,"arguments":[{"name":"prev_stickerset","type":"InputStickerSet"},{"name":"new_stickerset","type":"InputStickerSet"}]},{"kind":"class","name":"channelAdminLogEvent","type":"ChannelAdminLogEvent","id":531458253,"comment":"Admin log event","arguments":[{"name":"id","type":"long","comment":"Event ID"},{"name":"date","type":"int","comment":"Date"},{"name":"user_id","type":"int53","comment":"User ID"},{"name":"action","type":"ChannelAdminLogEventAction","comment":"Action"}]},{"kind":"class","name":"channels.adminLogResults","type":"channels.AdminLogResults","id":3985307469,"comment":"Admin log events","arguments":[{"name":"events","type":"ChannelAdminLogEvent","typeModifiers":{"isVector":true},"comment":"Admin log events"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats mentioned in events"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in events"}]},{"kind":"class","name":"channelAdminLogEventsFilter","type":"ChannelAdminLogEventsFilter","id":3926948580,"comment":"Filter only certain admin log events","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"join","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"{@link RawChannelAdminLogEventActionParticipantJoin}, including {@link RawChannelAdminLogEventActionParticipantJoinByInvite} and {@link RawChannelAdminLogEventActionParticipantJoinByRequest}."},{"name":"leave","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"{@link RawChannelAdminLogEventActionParticipantLeave}"},{"name":"invite","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"{@link RawChannelAdminLogEventActionParticipantInvite}"},{"name":"ban","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"{@link RawChannelAdminLogEventActionParticipantToggleBan}"},{"name":"unban","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"{@link RawChannelAdminLogEventActionParticipantToggleBan}"},{"name":"kick","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"{@link RawChannelAdminLogEventActionParticipantToggleBan}"},{"name":"unkick","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"{@link RawChannelAdminLogEventActionParticipantToggleBan}"},{"name":"promote","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"{@link RawChannelAdminLogEventActionParticipantToggleAdmin}"},{"name":"demote","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"{@link RawChannelAdminLogEventActionParticipantToggleAdmin}"},{"name":"info","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"Info change events (when {@link RawChannelAdminLogEventActionChangeAbout}, {@link RawChannelAdminLogEventActionChangeLinkedChat}, {@link RawChannelAdminLogEventActionChangeLocation}, {@link RawChannelAdminLogEventActionChangePhoto}, {@link RawChannelAdminLogEventActionChangeStickerSet}, {@link RawChannelAdminLogEventActionChangeTitle} or {@link RawChannelAdminLogEventActionChangeUsername}, {@link RawChannelAdminLogEventActionToggleSlowMode}, {@link RawChannelAdminLogEventActionChangeHistoryTTL} settings of a channel gets modified)"},{"name":"settings","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"Settings change events ({@link RawChannelAdminLogEventActionToggleInvites}, {@link RawChannelAdminLogEventActionTogglePreHistoryHidden}, {@link RawChannelAdminLogEventActionToggleSignatures}, {@link RawChannelAdminLogEventActionDefaultBannedRights}, {@link RawChannelAdminLogEventActionToggleForum})"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"{@link RawChannelAdminLogEventActionUpdatePinned}"},{"name":"edit","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"{@link RawChannelAdminLogEventActionEditMessage}"},{"name":"delete","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"{@link RawChannelAdminLogEventActionDeleteMessage}"},{"name":"group_call","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Group call events"},{"name":"invites","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"Invite events"},{"name":"send","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"A message was posted in a channel"},{"name":"forums","type":"true","typeModifiers":{"predicate":"flags.17"},"comment":"Forum-related events"}]},{"kind":"class","name":"popularContact","type":"PopularContact","id":1558266229,"comment":"Popular contact","arguments":[{"name":"client_id","type":"long","comment":"Contact identifier"},{"name":"importers","type":"int","comment":"How many people imported this contact"}]},{"kind":"class","name":"messages.favedStickersNotModified","type":"messages.FavedStickers","id":2660214483,"comment":"No new favorited stickers were found","arguments":[]},{"kind":"class","name":"messages.favedStickers","type":"messages.FavedStickers","id":750063767,"comment":"Favorited stickers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"packs","type":"StickerPack","typeModifiers":{"isVector":true},"comment":"Emojis associated to stickers"},{"name":"stickers","type":"Document","typeModifiers":{"isVector":true},"comment":"Favorited stickers"}]},{"kind":"class","name":"recentMeUrlUnknown","type":"RecentMeUrl","id":1189204285,"comment":"Unknown t.me url","arguments":[{"name":"url","type":"string","comment":"URL"}]},{"kind":"class","name":"recentMeUrlUser","type":"RecentMeUrl","id":3106671074,"comment":"Recent t.me link to a user","arguments":[{"name":"url","type":"string","comment":"URL"},{"name":"user_id","type":"int53","comment":"User ID"}]},{"kind":"class","name":"recentMeUrlChat","type":"RecentMeUrl","id":3000660434,"comment":"Recent t.me link to a chat","arguments":[{"name":"url","type":"string","comment":"t.me URL"},{"name":"chat_id","type":"int53","comment":"Chat ID"}]},{"kind":"class","name":"recentMeUrlChatInvite","type":"RecentMeUrl","id":3947431965,"comment":"Recent t.me invite link to a chat","arguments":[{"name":"url","type":"string","comment":"t.me URL"},{"name":"chat_invite","type":"ChatInvite","comment":"Chat invitation"}]},{"kind":"class","name":"recentMeUrlStickerSet","type":"RecentMeUrl","id":3154794460,"comment":"Recent t.me stickerset installation URL","arguments":[{"name":"url","type":"string","comment":"t.me URL"},{"name":"set","type":"StickerSetCovered","comment":"Stickerset"}]},{"kind":"class","name":"help.recentMeUrls","type":"help.RecentMeUrls","id":235081943,"comment":"Recent t.me URLs","arguments":[{"name":"urls","type":"RecentMeUrl","typeModifiers":{"isVector":true},"comment":"URLs"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"inputSingleMedia","type":"InputSingleMedia","id":482797855,"comment":"A single media in an album or grouped media sent with {@link messages.RawSendMultiMediaRequest}.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"media","type":"InputMedia","comment":"The media"},{"name":"random_id","type":"long","comment":"Unique client media ID required to prevent message resending"},{"name":"message","type":"string","comment":"A caption for the media"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Message entities for styled text"}]},{"kind":"class","name":"webAuthorization","type":"WebAuthorization","id":2801333330,"comment":"Represents a bot logged in using the Telegram login widget","arguments":[{"name":"hash","type":"long","comment":"Authorization hash"},{"name":"bot_id","type":"int53","comment":"Bot ID"},{"name":"domain","type":"string","comment":"The domain name of the website on which the user has logged in."},{"name":"browser","type":"string","comment":"Browser user-agent"},{"name":"platform","type":"string","comment":"Platform"},{"name":"date_created","type":"int","comment":"When was the web session created"},{"name":"date_active","type":"int","comment":"When was the web session last active"},{"name":"ip","type":"string","comment":"IP address"},{"name":"region","type":"string","comment":"Region, determined from IP address"}]},{"kind":"class","name":"account.webAuthorizations","type":"account.WebAuthorizations","id":3981887996,"comment":"Web authorizations","arguments":[{"name":"authorizations","type":"WebAuthorization","typeModifiers":{"isVector":true},"comment":"Web authorization list"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"inputMessageID","type":"InputMessage","id":2792792866,"comment":"Message by ID","arguments":[{"name":"id","type":"int","comment":"Message ID"}]},{"kind":"class","name":"inputMessageReplyTo","type":"InputMessage","id":3134751637,"comment":"Message to which the specified message replies to","arguments":[{"name":"id","type":"int","comment":"ID of the message that replies to the message we need"}]},{"kind":"class","name":"inputMessagePinned","type":"InputMessage","id":2257003832,"comment":"Pinned message","arguments":[]},{"kind":"class","name":"inputMessageCallbackQuery","type":"InputMessage","id":2902071934,"comment":"Used by bots for fetching information about the message that originated a callback query","arguments":[{"name":"id","type":"int","comment":"Message ID"},{"name":"query_id","type":"long","comment":"Callback query ID"}]},{"kind":"class","name":"inputDialogPeer","type":"InputDialogPeer","id":4239064759,"comment":"A peer","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"}]},{"kind":"class","name":"inputDialogPeerFolder","type":"InputDialogPeer","id":1684014375,"comment":"All peers in a peer folder","arguments":[{"name":"folder_id","type":"int","comment":"Peer folder ID, for more info click here"}]},{"kind":"class","name":"dialogPeer","type":"DialogPeer","id":3849174789,"comment":"Peer","arguments":[{"name":"peer","type":"Peer","comment":"Peer"}]},{"kind":"class","name":"dialogPeerFolder","type":"DialogPeer","id":1363483106,"comment":"Peer folder","arguments":[{"name":"folder_id","type":"int","comment":"Peer folder ID, for more info click here"}]},{"kind":"class","name":"messages.foundStickerSetsNotModified","type":"messages.FoundStickerSets","id":223655517,"comment":"No further results were found","arguments":[]},{"kind":"class","name":"messages.foundStickerSets","type":"messages.FoundStickerSets","id":2331024850,"comment":"Found stickersets","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"sets","type":"StickerSetCovered","typeModifiers":{"isVector":true},"comment":"Found stickersets"}]},{"kind":"class","name":"fileHash","type":"FileHash","id":4087022428,"comment":"SHA256 Hash of an uploaded file, to be checked for validity after download","arguments":[{"name":"offset","type":"int53","comment":"Offset from where to start computing SHA-256 hash"},{"name":"limit","type":"int","comment":"Length"},{"name":"hash","type":"bytes","comment":"SHA-256 Hash of file chunk, to be checked for validity after download"}]},{"kind":"class","name":"inputClientProxy","type":"InputClientProxy","id":1968737087,"comment":"Info about an MTProxy used to connect.","arguments":[{"name":"address","type":"string","comment":"Proxy address"},{"name":"port","type":"int","comment":"Proxy port"}]},{"kind":"class","name":"help.termsOfServiceUpdateEmpty","type":"help.TermsOfServiceUpdate","id":3811614591,"comment":"No changes were made to telegram's terms of service","arguments":[{"name":"expires","type":"int","comment":"New TOS updates will have to be queried using {@link help.RawGetTermsOfServiceUpdateRequest} in expires seconds"}]},{"kind":"class","name":"help.termsOfServiceUpdate","type":"help.TermsOfServiceUpdate","id":686618977,"comment":"Info about an update of telegram's terms of service. If the terms of service are declined, then the {@link account.RawDeleteAccountRequest} method should be called with the reason \"Decline ToS update\"","arguments":[{"name":"expires","type":"int","comment":"New TOS updates will have to be queried using {@link help.RawGetTermsOfServiceUpdateRequest} in expires seconds"},{"name":"terms_of_service","type":"help.TermsOfService","comment":"New terms of service"}]},{"kind":"class","name":"inputSecureFileUploaded","type":"InputSecureFile","id":859091184,"comment":"Uploaded secure file, for more info see the passport docs ยป","arguments":[{"name":"id","type":"long","comment":"Secure file ID"},{"name":"parts","type":"int","comment":"Secure file part count"},{"name":"md5_checksum","type":"string","comment":"MD5 hash of encrypted uploaded file, to be checked server-side"},{"name":"file_hash","type":"bytes","comment":"File hash"},{"name":"secret","type":"bytes","comment":"Secret"}]},{"kind":"class","name":"inputSecureFile","type":"InputSecureFile","id":1399317950,"comment":"Pre-uploaded passport file, for more info see the passport docs ยป","arguments":[{"name":"id","type":"long","comment":"Secure file ID"},{"name":"access_hash","type":"long","comment":"Secure file access hash"}]},{"kind":"class","name":"secureFileEmpty","type":"SecureFile","id":1679398724,"comment":"Empty constructor","arguments":[]},{"kind":"class","name":"secureFile","type":"SecureFile","id":2097791614,"comment":"Secure passport file, for more info see the passport docs ยป","arguments":[{"name":"id","type":"long","comment":"ID"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"size","type":"int53","comment":"File size"},{"name":"dc_id","type":"int","comment":"DC ID"},{"name":"date","type":"int","comment":"Date of upload"},{"name":"file_hash","type":"bytes","comment":"File hash"},{"name":"secret","type":"bytes","comment":"Secret"}]},{"kind":"class","name":"secureData","type":"SecureData","id":2330640067,"comment":"Secure passport data, for more info see the passport docs ยป","arguments":[{"name":"data","type":"bytes","comment":"Data"},{"name":"data_hash","type":"bytes","comment":"Data hash"},{"name":"secret","type":"bytes","comment":"Secret"}]},{"kind":"class","name":"securePlainPhone","type":"SecurePlainData","id":2103482845,"comment":"Phone number to use in telegram passport: it must be verified, first ยป.","arguments":[{"name":"phone","type":"string","comment":"Phone number"}]},{"kind":"class","name":"securePlainEmail","type":"SecurePlainData","id":569137759,"comment":"Email address to use in telegram passport: it must be verified, first ยป.","arguments":[{"name":"email","type":"string","comment":"Email address"}]},{"kind":"class","name":"secureValueTypePersonalDetails","type":"SecureValueType","id":2636808675,"comment":"Personal details","arguments":[]},{"kind":"class","name":"secureValueTypePassport","type":"SecureValueType","id":1034709504,"comment":"Passport","arguments":[]},{"kind":"class","name":"secureValueTypeDriverLicense","type":"SecureValueType","id":115615172,"comment":"Driver's license","arguments":[]},{"kind":"class","name":"secureValueTypeIdentityCard","type":"SecureValueType","id":2698015819,"comment":"Identity card","arguments":[]},{"kind":"class","name":"secureValueTypeInternalPassport","type":"SecureValueType","id":2577698595,"comment":"Internal passport","arguments":[]},{"kind":"class","name":"secureValueTypeAddress","type":"SecureValueType","id":3420659238,"comment":"Address","arguments":[]},{"kind":"class","name":"secureValueTypeUtilityBill","type":"SecureValueType","id":4231435598,"comment":"Utility bill","arguments":[]},{"kind":"class","name":"secureValueTypeBankStatement","type":"SecureValueType","id":2299755533,"comment":"Bank statement","arguments":[]},{"kind":"class","name":"secureValueTypeRentalAgreement","type":"SecureValueType","id":2340959368,"comment":"Rental agreement","arguments":[]},{"kind":"class","name":"secureValueTypePassportRegistration","type":"SecureValueType","id":2581823594,"comment":"Internal registration passport","arguments":[]},{"kind":"class","name":"secureValueTypeTemporaryRegistration","type":"SecureValueType","id":3926060083,"comment":"Temporary registration","arguments":[]},{"kind":"class","name":"secureValueTypePhone","type":"SecureValueType","id":3005262555,"comment":"Phone","arguments":[]},{"kind":"class","name":"secureValueTypeEmail","type":"SecureValueType","id":2386339822,"comment":"Email","arguments":[]},{"kind":"class","name":"secureValue","type":"SecureValue","id":411017418,"comment":"Secure value","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"type","type":"SecureValueType","comment":"Secure passport value type"},{"name":"data","type":"SecureData","typeModifiers":{"predicate":"flags.0"},"comment":"Encrypted Telegram Passport element data"},{"name":"front_side","type":"SecureFile","typeModifiers":{"predicate":"flags.1"},"comment":"Encrypted passport file with the front side of the document"},{"name":"reverse_side","type":"SecureFile","typeModifiers":{"predicate":"flags.2"},"comment":"Encrypted passport file with the reverse side of the document"},{"name":"selfie","type":"SecureFile","typeModifiers":{"predicate":"flags.3"},"comment":"Encrypted passport file with a selfie of the user holding the document"},{"name":"translation","type":"SecureFile","typeModifiers":{"predicate":"flags.6","isVector":true},"comment":"Array of encrypted passport files with translated versions of the provided documents"},{"name":"files","type":"SecureFile","typeModifiers":{"predicate":"flags.4","isVector":true},"comment":"Array of encrypted passport files with photos the of the documents"},{"name":"plain_data","type":"SecurePlainData","typeModifiers":{"predicate":"flags.5"},"comment":"Plaintext verified passport data"},{"name":"hash","type":"bytes","comment":"Data hash"}]},{"kind":"class","name":"inputSecureValue","type":"InputSecureValue","id":3676426407,"comment":"Secure value, for more info see the passport docs ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"type","type":"SecureValueType","comment":"Secure passport value type"},{"name":"data","type":"SecureData","typeModifiers":{"predicate":"flags.0"},"comment":"Encrypted Telegram Passport element data"},{"name":"front_side","type":"InputSecureFile","typeModifiers":{"predicate":"flags.1"},"comment":"Encrypted passport file with the front side of the document"},{"name":"reverse_side","type":"InputSecureFile","typeModifiers":{"predicate":"flags.2"},"comment":"Encrypted passport file with the reverse side of the document"},{"name":"selfie","type":"InputSecureFile","typeModifiers":{"predicate":"flags.3"},"comment":"Encrypted passport file with a selfie of the user holding the document"},{"name":"translation","type":"InputSecureFile","typeModifiers":{"predicate":"flags.6","isVector":true},"comment":"Array of encrypted passport files with translated versions of the provided documents"},{"name":"files","type":"InputSecureFile","typeModifiers":{"predicate":"flags.4","isVector":true},"comment":"Array of encrypted passport files with photos the of the documents"},{"name":"plain_data","type":"SecurePlainData","typeModifiers":{"predicate":"flags.5"},"comment":"Plaintext verified passport data"}]},{"kind":"class","name":"secureValueHash","type":"SecureValueHash","id":3978218928,"comment":"Secure value hash","arguments":[{"name":"type","type":"SecureValueType","comment":"Secure value type"},{"name":"hash","type":"bytes","comment":"Hash"}]},{"kind":"class","name":"secureValueErrorData","type":"SecureValueError","id":3903065049,"comment":"Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes.","arguments":[{"name":"type","type":"SecureValueType","comment":"The section of the user's Telegram Passport which has the error, one of {@link RawSecureValueTypePersonalDetails}, {@link RawSecureValueTypePassport}, {@link RawSecureValueTypeDriverLicense}, {@link RawSecureValueTypeIdentityCard}, {@link RawSecureValueTypeInternalPassport}, {@link RawSecureValueTypeAddress}"},{"name":"data_hash","type":"bytes","comment":"Data hash"},{"name":"field","type":"string","comment":"Name of the data field which has the error"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureValueErrorFrontSide","type":"SecureValueError","id":12467706,"comment":"Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.","arguments":[{"name":"type","type":"SecureValueType","comment":"One of {@link RawSecureValueTypePassport}, {@link RawSecureValueTypeDriverLicense}, {@link RawSecureValueTypeIdentityCard}, {@link RawSecureValueTypeInternalPassport}"},{"name":"file_hash","type":"bytes","comment":"File hash"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureValueErrorReverseSide","type":"SecureValueError","id":2257201829,"comment":"Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes.","arguments":[{"name":"type","type":"SecureValueType","comment":"One of {@link RawSecureValueTypeDriverLicense}, {@link RawSecureValueTypeIdentityCard}"},{"name":"file_hash","type":"bytes","comment":"File hash"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureValueErrorSelfie","type":"SecureValueError","id":3845639894,"comment":"Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes.","arguments":[{"name":"type","type":"SecureValueType","comment":"One of {@link RawSecureValueTypePassport}, {@link RawSecureValueTypeDriverLicense}, {@link RawSecureValueTypeIdentityCard}, {@link RawSecureValueTypeInternalPassport}"},{"name":"file_hash","type":"bytes","comment":"File hash"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureValueErrorFile","type":"SecureValueError","id":2054162547,"comment":"Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.","arguments":[{"name":"type","type":"SecureValueType","comment":"One of {@link RawSecureValueTypeUtilityBill}, {@link RawSecureValueTypeBankStatement}, {@link RawSecureValueTypeRentalAgreement}, {@link RawSecureValueTypePassportRegistration}, {@link RawSecureValueTypeTemporaryRegistration}"},{"name":"file_hash","type":"bytes","comment":"File hash"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureValueErrorFiles","type":"SecureValueError","id":1717706985,"comment":"Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes.","arguments":[{"name":"type","type":"SecureValueType","comment":"One of {@link RawSecureValueTypeUtilityBill}, {@link RawSecureValueTypeBankStatement}, {@link RawSecureValueTypeRentalAgreement}, {@link RawSecureValueTypePassportRegistration}, {@link RawSecureValueTypeTemporaryRegistration}"},{"name":"file_hash","type":"bytes","typeModifiers":{"isVector":true},"comment":"File hash"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureValueError","type":"SecureValueError","id":2258466191,"comment":"Secure value error","arguments":[{"name":"type","type":"SecureValueType","comment":"Type of element which has the issue"},{"name":"hash","type":"bytes","comment":"Hash"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureValueErrorTranslationFile","type":"SecureValueError","id":2702460784,"comment":"Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.","arguments":[{"name":"type","type":"SecureValueType","comment":"One of {@link RawSecureValueTypePersonalDetails}, {@link RawSecureValueTypePassport}, {@link RawSecureValueTypeDriverLicense}, {@link RawSecureValueTypeIdentityCard}, {@link RawSecureValueTypeInternalPassport}, {@link RawSecureValueTypeUtilityBill}, {@link RawSecureValueTypeBankStatement}, {@link RawSecureValueTypeRentalAgreement}, {@link RawSecureValueTypePassportRegistration}, {@link RawSecureValueTypeTemporaryRegistration}"},{"name":"file_hash","type":"bytes","comment":"File hash"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureValueErrorTranslationFiles","type":"SecureValueError","id":878931416,"comment":"Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation changes.","arguments":[{"name":"type","type":"SecureValueType","comment":"One of {@link RawSecureValueTypePersonalDetails}, {@link RawSecureValueTypePassport}, {@link RawSecureValueTypeDriverLicense}, {@link RawSecureValueTypeIdentityCard}, {@link RawSecureValueTypeInternalPassport}, {@link RawSecureValueTypeUtilityBill}, {@link RawSecureValueTypeBankStatement}, {@link RawSecureValueTypeRentalAgreement}, {@link RawSecureValueTypePassportRegistration}, {@link RawSecureValueTypeTemporaryRegistration}"},{"name":"file_hash","type":"bytes","typeModifiers":{"isVector":true},"comment":"Hash"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureCredentialsEncrypted","type":"SecureCredentialsEncrypted","id":871426631,"comment":"Encrypted credentials required to decrypt telegram passport data.","arguments":[{"name":"data","type":"bytes","comment":"Encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication, as described in decrypting data ยป"},{"name":"hash","type":"bytes","comment":"Data hash for data authentication as described in decrypting data ยป"},{"name":"secret","type":"bytes","comment":"Secret, encrypted with the bot's public RSA key, required for data decryption as described in decrypting data ยป"}]},{"kind":"class","name":"account.authorizationForm","type":"account.AuthorizationForm","id":2905480408,"comment":"Telegram Passport authorization form","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"required_types","type":"SecureRequiredType","typeModifiers":{"isVector":true},"comment":"Required Telegram Passport documents"},{"name":"values","type":"SecureValue","typeModifiers":{"isVector":true},"comment":"Already submitted Telegram Passport documents"},{"name":"errors","type":"SecureValueError","typeModifiers":{"isVector":true},"comment":"Telegram Passport errors"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Info about the bot to which the form will be submitted"},{"name":"privacy_policy_url","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"URL of the service's privacy policy"}]},{"kind":"class","name":"account.sentEmailCode","type":"account.SentEmailCode","id":2166326607,"comment":"The sent email code","arguments":[{"name":"email_pattern","type":"string","comment":"The email (to which the code was sent) must match this pattern"},{"name":"length","type":"int","comment":"The length of the verification code"}]},{"kind":"class","name":"help.deepLinkInfoEmpty","type":"help.DeepLinkInfo","id":1722786150,"comment":"Deep link info empty","arguments":[]},{"kind":"class","name":"help.deepLinkInfo","type":"help.DeepLinkInfo","id":1783556146,"comment":"Deep link info, see the here for more details","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"update_app","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"An update of the app is required to parse this link"},{"name":"message","type":"string","comment":"Message to show to the user"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"}]},{"kind":"class","name":"savedPhoneContact","type":"SavedContact","id":289586518,"comment":"Saved contact","arguments":[{"name":"phone","type":"string","comment":"Phone number"},{"name":"first_name","type":"string","comment":"First name"},{"name":"last_name","type":"string","comment":"Last name"},{"name":"date","type":"int","comment":"Date added"}]},{"kind":"class","name":"account.takeout","type":"account.Takeout","id":1304052993,"comment":"Takeout info","arguments":[{"name":"id","type":"long","comment":"Takeout ID"}]},{"kind":"class","name":"passwordKdfAlgoUnknown","type":"PasswordKdfAlgo","id":3562713238,"comment":"Unknown KDF (most likely, the client is outdated and does not support the specified KDF algorithm)","arguments":[]},{"kind":"class","name":"passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow","type":"PasswordKdfAlgo","id":982592842,"comment":"This key derivation algorithm defines that SRP 2FA login must be used","arguments":[{"name":"salt1","type":"bytes","comment":"One of two salts used by the derivation function (see SRP 2FA login)"},{"name":"salt2","type":"bytes","comment":"One of two salts used by the derivation function (see SRP 2FA login)"},{"name":"g","type":"int","comment":"Base (see SRP 2FA login)"},{"name":"p","type":"bytes","comment":"2048-bit modulus (see SRP 2FA login)"}]},{"kind":"class","name":"securePasswordKdfAlgoUnknown","type":"SecurePasswordKdfAlgo","id":4883767,"comment":"Unknown KDF algo (most likely the client has to be updated)","arguments":[]},{"kind":"class","name":"securePasswordKdfAlgoPBKDF2HMACSHA512iter100000","type":"SecurePasswordKdfAlgo","id":3153255840,"comment":"PBKDF2 with SHA512 and 100000 iterations KDF algo","arguments":[{"name":"salt","type":"bytes","comment":"Salt"}]},{"kind":"class","name":"securePasswordKdfAlgoSHA512","type":"SecurePasswordKdfAlgo","id":2252807570,"comment":"SHA512 KDF algo","arguments":[{"name":"salt","type":"bytes","comment":"Salt"}]},{"kind":"class","name":"secureSecretSettings","type":"SecureSecretSettings","id":354925740,"comment":"Secure settings","arguments":[{"name":"secure_algo","type":"SecurePasswordKdfAlgo","comment":"Secure KDF algo"},{"name":"secure_secret","type":"bytes","comment":"Secure secret"},{"name":"secure_secret_id","type":"long","comment":"Secret ID"}]},{"kind":"class","name":"inputCheckPasswordEmpty","type":"InputCheckPasswordSRP","id":2558588504,"comment":"There is no password","arguments":[]},{"kind":"class","name":"inputCheckPasswordSRP","type":"InputCheckPasswordSRP","id":3531600002,"comment":"Constructor for checking the validity of a 2FA SRP password (see SRP)","arguments":[{"name":"srp_id","type":"long","comment":"SRP ID"},{"name":"A","type":"bytes","comment":"A parameter (see SRP)"},{"name":"M1","type":"bytes","comment":"M1 parameter (see SRP)"}]},{"kind":"class","name":"secureRequiredType","type":"SecureRequiredType","id":2191366618,"comment":"Required type","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"native_names","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Native names"},{"name":"selfie_required","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Is a selfie required"},{"name":"translation_required","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Is a translation required"},{"name":"type","type":"SecureValueType","comment":"Secure value type"}]},{"kind":"class","name":"secureRequiredTypeOneOf","type":"SecureRequiredType","id":41187252,"comment":"One of","arguments":[{"name":"types","type":"SecureRequiredType","typeModifiers":{"isVector":true},"comment":"Secure required value types"}]},{"kind":"class","name":"help.passportConfigNotModified","type":"help.PassportConfig","id":3216634967,"comment":"Password configuration not modified","arguments":[]},{"kind":"class","name":"help.passportConfig","type":"help.PassportConfig","id":2694370991,"comment":"Telegram passport configuration","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"},{"name":"countries_langs","type":"DataJSON","comment":"Localization"}]},{"kind":"class","name":"inputAppEvent","type":"InputAppEvent","id":488313413,"comment":"Event that occurred in the application.","arguments":[{"name":"time","type":"double","comment":"Client's exact timestamp for the event"},{"name":"type","type":"string","comment":"Type of event"},{"name":"peer","type":"long","comment":"Arbitrary numeric value for more convenient selection of certain event types, or events referring to a certain object"},{"name":"data","type":"JSONValue","comment":"Details of the event"}]},{"kind":"class","name":"jsonObjectValue","type":"JSONObjectValue","id":3235781593,"comment":"JSON key: value pair","arguments":[{"name":"key","type":"string","comment":"Key"},{"name":"value","type":"JSONValue","comment":"Value"}]},{"kind":"class","name":"jsonNull","type":"JSONValue","id":1064139624,"comment":"null JSON value","arguments":[]},{"kind":"class","name":"jsonBool","type":"JSONValue","id":3342098026,"comment":"JSON boolean value","arguments":[{"name":"value","type":"Bool","comment":"Value"}]},{"kind":"class","name":"jsonNumber","type":"JSONValue","id":736157604,"comment":"JSON numeric value","arguments":[{"name":"value","type":"double","comment":"Value"}]},{"kind":"class","name":"jsonString","type":"JSONValue","id":3072226938,"comment":"JSON string","arguments":[{"name":"value","type":"string","comment":"Value"}]},{"kind":"class","name":"jsonArray","type":"JSONValue","id":4148447075,"comment":"JSON array","arguments":[{"name":"value","type":"JSONValue","typeModifiers":{"isVector":true},"comment":"JSON values"}]},{"kind":"class","name":"jsonObject","type":"JSONValue","id":2579616925,"comment":"JSON object value","arguments":[{"name":"value","type":"JSONObjectValue","typeModifiers":{"isVector":true},"comment":"Values"}]},{"kind":"class","name":"pageTableCell","type":"PageTableCell","id":878078826,"comment":"Table cell","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"header","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Is this element part of the column header"},{"name":"align_center","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Horizontally centered block"},{"name":"align_right","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Right-aligned block"},{"name":"valign_middle","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Vertically centered block"},{"name":"valign_bottom","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Block vertically-aligned to the bottom"},{"name":"text","type":"RichText","typeModifiers":{"predicate":"flags.7"},"comment":"Content"},{"name":"colspan","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"For how many columns should this cell extend"},{"name":"rowspan","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"For how many rows should this cell extend"}]},{"kind":"class","name":"pageTableRow","type":"PageTableRow","id":3770729957,"comment":"Table row","arguments":[{"name":"cells","type":"PageTableCell","typeModifiers":{"isVector":true},"comment":"Table cells"}]},{"kind":"class","name":"pageCaption","type":"PageCaption","id":1869903447,"comment":"Page caption","arguments":[{"name":"text","type":"RichText","comment":"Caption"},{"name":"credit","type":"RichText","comment":"Credits"}]},{"kind":"class","name":"pageListItemText","type":"PageListItem","id":3106911949,"comment":"List item","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"pageListItemBlocks","type":"PageListItem","id":635466748,"comment":"List item","arguments":[{"name":"blocks","type":"PageBlock","typeModifiers":{"isVector":true},"comment":"Blocks"}]},{"kind":"class","name":"pageListOrderedItemText","type":"PageListOrderedItem","id":1577484359,"comment":"Ordered list of text items","arguments":[{"name":"num","type":"string","comment":"Number of element within ordered list"},{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"pageListOrderedItemBlocks","type":"PageListOrderedItem","id":2564655414,"comment":"Ordered list of IV blocks","arguments":[{"name":"num","type":"string","comment":"Number of element within ordered list"},{"name":"blocks","type":"PageBlock","typeModifiers":{"isVector":true},"comment":"Item contents"}]},{"kind":"class","name":"pageRelatedArticle","type":"PageRelatedArticle","id":3012615176,"comment":"Related article","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"url","type":"string","comment":"URL of article"},{"name":"webpage_id","type":"long","comment":"Webpage ID of generated IV preview"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Title"},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Description"},{"name":"photo_id","type":"long","typeModifiers":{"predicate":"flags.2"},"comment":"ID of preview photo"},{"name":"author","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Author name"},{"name":"published_date","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Date of publication"}]},{"kind":"class","name":"page","type":"Page","id":2556788493,"comment":"Instant view page","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"part","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Indicates that not full page preview is available to the client and it will need to fetch full Instant View from the server using {@link messages.RawGetWebPagePreviewRequest}."},{"name":"rtl","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the page contains RTL text"},{"name":"v2","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this is an IV v2 page"},{"name":"url","type":"string","comment":"Original page HTTP URL"},{"name":"blocks","type":"PageBlock","typeModifiers":{"isVector":true},"comment":"Page elements (like with HTML elements, only as TL constructors)"},{"name":"photos","type":"Photo","typeModifiers":{"isVector":true},"comment":"Photos in page"},{"name":"documents","type":"Document","typeModifiers":{"isVector":true},"comment":"Media in page"},{"name":"views","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"View count"}]},{"kind":"class","name":"help.supportName","type":"help.SupportName","id":2349199817,"comment":"Localized name for telegram support","arguments":[{"name":"name","type":"string","comment":"Localized name"}]},{"kind":"class","name":"help.userInfoEmpty","type":"help.UserInfo","id":4088278765,"comment":"Internal use","arguments":[]},{"kind":"class","name":"help.userInfo","type":"help.UserInfo","id":32192344,"comment":"Internal use","arguments":[{"name":"message","type":"string","comment":"Info"},{"name":"entities","type":"MessageEntity","typeModifiers":{"isVector":true},"comment":"Message entities for styled text"},{"name":"author","type":"string","comment":"Author"},{"name":"date","type":"int","comment":"Date"}]},{"kind":"class","name":"pollAnswer","id":4279689930,"type":"PollAnswer","arguments":[{"name":"text","type":"TextWithEntities","comment":"Textual representation of the answer"},{"name":"option","type":"bytes","comment":"The param that has to be passed to {@link messages.RawSendVoteRequest}."}],"comment":"A possible answer of a poll"},{"kind":"class","name":"poll","id":1484026161,"type":"Poll","arguments":[{"name":"id","type":"long","comment":"ID of the poll"},{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"closed","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the poll is closed and doesn't accept any more answers"},{"name":"public_voters","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether cast votes are publicly visible to all users (non-anonymous poll)"},{"name":"multiple_choice","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether multiple options can be chosen as answer"},{"name":"quiz","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this is a quiz (with wrong and correct answers, results shown in the return type)"},{"name":"question","type":"TextWithEntities","comment":"The question of the poll"},{"name":"answers","type":"PollAnswer","typeModifiers":{"isVector":true},"comment":"The possible answers, vote using {@link messages.RawSendVoteRequest}."},{"name":"close_period","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date."},{"name":"close_date","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"Point in time (UNIX timestamp in seconds) when the poll will be automatically closed. Must be at least 5 and no more than 600 seconds in the future; can't be used together with close_period."}],"comment":"Poll"},{"kind":"class","name":"pollAnswerVoters","type":"PollAnswerVoters","id":997055186,"comment":"A poll answer, and how users voted on it","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"chosen","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether we have chosen this answer"},{"name":"correct","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"For quizzes, whether the option we have chosen is correct"},{"name":"option","type":"bytes","comment":"The param that has to be passed to {@link messages.RawSendVoteRequest}."},{"name":"voters","type":"int","comment":"How many users voted for this option"}]},{"kind":"class","name":"pollResults","type":"PollResults","id":2061444128,"comment":"Results of poll","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"min","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Similar to min objects, used for poll constructors that are the same for all users so they don't have the option chosen by the current user (you can use {@link messages.RawGetPollResultsRequest} to get the full poll results)."},{"name":"results","type":"PollAnswerVoters","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Poll results"},{"name":"total_voters","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Total number of people that voted in the poll"},{"name":"recent_voters","type":"Peer","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"IDs of the last users that recently voted in the poll"},{"name":"solution","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"Explanation of quiz solution"},{"name":"solution_entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.4","isVector":true},"comment":"Message entities for styled text in quiz solution"}]},{"kind":"class","name":"chatOnlines","type":"ChatOnlines","id":4030849616,"comment":"Number of online users in a chat","arguments":[{"name":"onlines","type":"int","comment":"Number of online users"}]},{"kind":"class","name":"statsURL","type":"StatsURL","id":1202287072,"comment":"URL with chat statistics","arguments":[{"name":"url","type":"string","comment":"Chat statistics"}]},{"kind":"class","name":"chatAdminRights","type":"ChatAdminRights","id":1605510357,"comment":"Represents the rights of an admin in a channel/supergroup.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"change_info","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, allows the admin to modify the description of the channel/supergroup"},{"name":"post_messages","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, allows the admin to post messages in the channel"},{"name":"edit_messages","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, allows the admin to also edit messages from other admins in the channel"},{"name":"delete_messages","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, allows the admin to also delete messages from other admins in the channel"},{"name":"ban_users","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If set, allows the admin to ban users from the channel/supergroup"},{"name":"invite_users","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"If set, allows the admin to invite users in the channel/supergroup"},{"name":"pin_messages","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"If set, allows the admin to pin messages in the channel/supergroup"},{"name":"add_admins","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"If set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup"},{"name":"anonymous","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"Whether this admin is anonymous"},{"name":"manage_call","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"If set, allows the admin to change group call/livestream settings"},{"name":"other","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"Set this flag if none of the other flags are set, but you still want the user to be an admin: if this or any of the other flags are set, the admin can get the chat admin log, get chat statistics, get message statistics in channels, get channel members, see anonymous administrators in supergroups and ignore slow mode."},{"name":"manage_topics","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"If set, allows the admin to create, delete or modify forum topics ยป."},{"name":"post_stories","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"If set, allows the admin to post stories as the channel."},{"name":"edit_stories","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"If set, allows the admin to edit stories posted by the other admins of the channel."},{"name":"delete_stories","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"If set, allows the admin to delete stories posted by the other admins of the channel."}]},{"kind":"class","name":"chatBannedRights","type":"ChatBannedRights","id":2668758040,"comment":"Represents the rights of a normal user in a supergroup/channel/chat. In this case, the flags are inverted: if set, a flag does not allow a user to do X.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"view_messages","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, does not allow a user to view messages in a supergroup/channel/chat"},{"name":"send_messages","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, does not allow a user to send messages in a supergroup/chat"},{"name":"send_media","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, does not allow a user to send any media in a supergroup/chat"},{"name":"send_stickers","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, does not allow a user to send stickers in a supergroup/chat"},{"name":"send_gifs","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If set, does not allow a user to send gifs in a supergroup/chat"},{"name":"send_games","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"If set, does not allow a user to send games in a supergroup/chat"},{"name":"send_inline","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"If set, does not allow a user to use inline bots in a supergroup/chat."},{"name":"embed_links","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"If set, does not allow a user to embed links in the messages of a supergroup/chat"},{"name":"send_polls","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"If set, does not allow a user to send polls in a supergroup/chat"},{"name":"change_info","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"If set, does not allow any user to change the description of a supergroup/chat"},{"name":"invite_users","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"If set, does not allow any user to invite users in a supergroup/chat"},{"name":"pin_messages","type":"true","typeModifiers":{"predicate":"flags.17"},"comment":"If set, does not allow any user to pin messages in a supergroup/chat"},{"name":"manage_topics","type":"true","typeModifiers":{"predicate":"flags.18"},"comment":"If set, does not allow any user to create, delete or modify forum topics ยป."},{"name":"send_photos","type":"true","typeModifiers":{"predicate":"flags.19"},"comment":"If set, does not allow a user to send photos in a supergroup/chat."},{"name":"send_videos","type":"true","typeModifiers":{"predicate":"flags.20"},"comment":"If set, does not allow a user to send videos in a supergroup/chat."},{"name":"send_roundvideos","type":"true","typeModifiers":{"predicate":"flags.21"},"comment":"If set, does not allow a user to send round videos in a supergroup/chat."},{"name":"send_audios","type":"true","typeModifiers":{"predicate":"flags.22"},"comment":"If set, does not allow a user to send audio files in a supergroup/chat."},{"name":"send_voices","type":"true","typeModifiers":{"predicate":"flags.23"},"comment":"If set, does not allow a user to send voice messages in a supergroup/chat."},{"name":"send_docs","type":"true","typeModifiers":{"predicate":"flags.24"},"comment":"If set, does not allow a user to send documents in a supergroup/chat."},{"name":"send_plain","type":"true","typeModifiers":{"predicate":"flags.25"},"comment":"If set, does not allow a user to send text messages in a supergroup/chat."},{"name":"until_date","type":"int","comment":"Validity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days)."}]},{"kind":"class","name":"inputWallPaper","type":"InputWallPaper","id":3861952889,"comment":"Wallpaper","arguments":[{"name":"id","type":"long","comment":"Wallpaper ID"},{"name":"access_hash","type":"long","comment":"Access hash"}]},{"kind":"class","name":"inputWallPaperSlug","type":"InputWallPaper","id":1913199744,"comment":"Wallpaper by slug (a unique ID, obtained from a wallpaper link ยป)","arguments":[{"name":"slug","type":"string","comment":"Unique wallpaper ID"}]},{"kind":"class","name":"inputWallPaperNoFile","type":"InputWallPaper","id":2524595758,"comment":"Wallpaper with no file access hash, used for example when deleting (unsave=true) wallpapers using {@link account.RawSaveWallPaperRequest}, specifying just the wallpaper ID.","arguments":[{"name":"id","type":"long","comment":"Wallpaper ID"}]},{"kind":"class","name":"account.wallPapersNotModified","type":"account.WallPapers","id":471437699,"comment":"No new wallpapers were found","arguments":[]},{"kind":"class","name":"account.wallPapers","type":"account.WallPapers","id":3452142988,"comment":"Installed wallpapers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"wallpapers","type":"WallPaper","typeModifiers":{"isVector":true},"comment":"Wallpapers"}]},{"kind":"class","name":"codeSettings","type":"CodeSettings","id":2904898936,"comment":"Settings used by telegram servers for sending the confirm code.\n\nExample implementations: telegram for android, tdlib.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"allow_flashcall","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to allow phone verification via phone calls."},{"name":"current_number","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Pass true if the phone number is used on the current device. Ignored if allow_flashcall is not set."},{"name":"allow_app_hash","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If a token that will be included in eventually sent SMSs is required: required in newer versions of android, to use the android SMS receiver APIs"},{"name":"allow_missed_call","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether this device supports receiving the code using the {@link auth.RawCodeTypeMissedCall} method"},{"name":"allow_firebase","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Whether Firebase auth is supported"},{"name":"unknown_number","type":"true","typeModifiers":{"predicate":"flags.9"}},{"name":"logout_tokens","type":"bytes","typeModifiers":{"predicate":"flags.6","isVector":true},"comment":"Previously stored future auth tokens, see the documentation for more info ยป"},{"name":"token","type":"string","typeModifiers":{"predicate":"flags.8"},"comment":"Used only by official iOS apps for Firebase auth: device token for apple push."},{"name":"app_sandbox","type":"Bool","typeModifiers":{"predicate":"flags.8"},"comment":"Used only by official iOS apps for firebase auth: whether a sandbox-certificate will be used during transmission of the push notification."}]},{"kind":"class","name":"wallPaperSettings","type":"WallPaperSettings","id":925826256,"comment":"Wallpaper rendering information.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"blur","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"For image wallpapers ยป: if set, the JPEG must be downscaled to fit in 450x450 square and then box-blurred with radius 12."},{"name":"motion","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, the background needs to be slightly moved when the device is rotated."},{"name":"background_color","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Used for solid ยป, gradient ยป and freeform gradient ยป fills."},{"name":"second_background_color","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Used for gradient ยป and freeform gradient ยป fills."},{"name":"third_background_color","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"Used for freeform gradient ยป fills."},{"name":"fourth_background_color","type":"int","typeModifiers":{"predicate":"flags.6"},"comment":"Used for freeform gradient ยป fills."},{"name":"intensity","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Used for pattern wallpapers ยป."},{"name":"rotation","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Clockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45."},{"name":"emoticon","type":"string","typeModifiers":{"predicate":"flags.7"},"comment":"If set, this wallpaper can be used as a channel wallpaper and is represented by the specified UTF-8 emoji."}]},{"kind":"class","name":"autoDownloadSettings","type":"AutoDownloadSettings","id":3131405864,"comment":"Autodownload settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"disabled","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Disable automatic media downloads?"},{"name":"video_preload_large","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to preload the first seconds of videos larger than the specified limit"},{"name":"audio_preload_next","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to preload the next audio track when you're listening to music"},{"name":"phonecalls_less_data","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether to enable data saving mode in phone calls"},{"name":"stories_preload","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether to preload stories; in particular, the first {@link RawDocumentAttributeVideo}.preload_prefix_size bytes of story videos should be preloaded."},{"name":"photo_size_max","type":"int","comment":"Maximum size of photos to preload"},{"name":"video_size_max","type":"int53","comment":"Maximum size of videos to preload"},{"name":"file_size_max","type":"int53","comment":"Maximum size of other files to preload"},{"name":"video_upload_maxbitrate","type":"int","comment":"Maximum suggested bitrate for uploading videos"},{"name":"small_queue_active_operations_max","type":"int","comment":"A limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files smaller than 20MB."},{"name":"large_queue_active_operations_max","type":"int","comment":"A limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files bigger than 20MB."}]},{"kind":"class","name":"account.autoDownloadSettings","type":"account.AutoDownloadSettings","id":1674235686,"comment":"Media autodownload settings","arguments":[{"name":"low","type":"AutoDownloadSettings","comment":"Low data usage preset"},{"name":"medium","type":"AutoDownloadSettings","comment":"Medium data usage preset"},{"name":"high","type":"AutoDownloadSettings","comment":"High data usage preset"}]},{"kind":"class","name":"emojiKeyword","type":"EmojiKeyword","id":3585325561,"comment":"Emoji keyword","arguments":[{"name":"keyword","type":"string","comment":"Keyword"},{"name":"emoticons","type":"string","typeModifiers":{"isVector":true},"comment":"Emojis associated to keyword"}]},{"kind":"class","name":"emojiKeywordDeleted","type":"EmojiKeyword","id":594408994,"comment":"Deleted emoji keyword","arguments":[{"name":"keyword","type":"string","comment":"Keyword"},{"name":"emoticons","type":"string","typeModifiers":{"isVector":true},"comment":"Emojis that were associated to keyword"}]},{"kind":"class","name":"emojiKeywordsDifference","type":"EmojiKeywordsDifference","id":1556570557,"comment":"Changes to emoji keywords","arguments":[{"name":"lang_code","type":"string","comment":"Language code for keywords"},{"name":"from_version","type":"int","comment":"Previous emoji keyword list version"},{"name":"version","type":"int","comment":"Current version of emoji keyword list"},{"name":"keywords","type":"EmojiKeyword","typeModifiers":{"isVector":true},"comment":"Emojis associated to keywords"}]},{"kind":"class","name":"emojiURL","type":"EmojiURL","id":2775937949,"comment":"An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation","arguments":[{"name":"url","type":"string","comment":"An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation"}]},{"kind":"class","name":"emojiLanguage","type":"EmojiLanguage","id":3019592545,"comment":"Emoji language","arguments":[{"name":"lang_code","type":"string","comment":"Language code"}]},{"kind":"class","name":"folder","type":"Folder","id":4283715173,"comment":"Folder","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"autofill_new_broadcasts","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Automatically add new channels to this folder"},{"name":"autofill_public_groups","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Automatically add joined new public supergroups to this folder"},{"name":"autofill_new_correspondents","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Automatically add new private chats to this folder"},{"name":"id","type":"int","comment":"Folder ID"},{"name":"title","type":"string","comment":"Folder title"},{"name":"photo","type":"ChatPhoto","typeModifiers":{"predicate":"flags.3"},"comment":"Folder picture"}]},{"kind":"class","name":"inputFolderPeer","type":"InputFolderPeer","id":4224893590,"comment":"Peer in a folder","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"folder_id","type":"int","comment":"Peer folder ID, for more info click here"}]},{"kind":"class","name":"folderPeer","type":"FolderPeer","id":3921323624,"comment":"Peer in a folder","arguments":[{"name":"peer","type":"Peer","comment":"Folder peer info"},{"name":"folder_id","type":"int","comment":"Peer folder ID, for more info click here"}]},{"kind":"class","name":"messages.searchCounter","type":"messages.SearchCounter","id":3896830975,"comment":"Indicates how many results would be found by a {@link messages.RawSearchRequest} call with the same parameters","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"inexact","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, the results may be inexact"},{"name":"filter","type":"MessagesFilter","comment":"Provided message filter"},{"name":"count","type":"int","comment":"Number of results that were found server-side"}]},{"kind":"class","name":"urlAuthResultRequest","type":"UrlAuthResult","id":2463316494,"comment":"Details about the authorization request, for more info click here ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"request_write_access","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the bot would like to send messages to the user"},{"name":"bot","type":"User","comment":"Username of a bot, which will be used for user authorization. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details."},{"name":"domain","type":"string","comment":"The domain name of the website on which the user will log in."}]},{"kind":"class","name":"urlAuthResultAccepted","type":"UrlAuthResult","id":2408320590,"comment":"Details about an accepted authorization request, for more info click here ยป","arguments":[{"name":"url","type":"string","comment":"The URL name of the website on which the user has logged in."}]},{"kind":"class","name":"urlAuthResultDefault","type":"UrlAuthResult","id":2849430303,"comment":"Details about an accepted authorization request, for more info click here ยป","arguments":[]},{"kind":"class","name":"channelLocationEmpty","type":"ChannelLocation","id":3216354699,"comment":"No location (normal supergroup)","arguments":[]},{"kind":"class","name":"channelLocation","type":"ChannelLocation","id":547062491,"comment":"Geographical location of supergroup (geogroups)","arguments":[{"name":"geo_point","type":"GeoPoint","comment":"Geographical location of supergroup"},{"name":"address","type":"string","comment":"Textual description of the address"}]},{"kind":"class","name":"peerLocated","type":"PeerLocated","id":3393592157,"comment":"Peer geolocated nearby","arguments":[{"name":"peer","type":"Peer","comment":"Peer"},{"name":"expires","type":"int","comment":"Validity period of current data"},{"name":"distance","type":"int","comment":"Distance from the peer in meters"}]},{"kind":"class","name":"peerSelfLocated","type":"PeerLocated","id":4176226379,"comment":"Current peer","arguments":[{"name":"expires","type":"int","comment":"Expiry of geolocation info for current peer"}]},{"kind":"class","name":"restrictionReason","type":"RestrictionReason","id":3497176244,"comment":"Restriction reason.\n\nContains the reason why access to a certain object must be restricted. Clients are supposed to deny access to the channel if the platform field is equal to all or to the current platform (ios, android, wp, etc.). Platforms can be concatenated (ios-android, ios-wp), unknown platforms are to be ignored. The text is the error message that should be shown to the user.","arguments":[{"name":"platform","type":"string","comment":"Platform identifier (ios, android, wp, all, etc.), can be concatenated with a dash as separator (android-ios, ios-wp, etc)"},{"name":"reason","type":"string","comment":"Restriction reason (porno, terms, etc.)"},{"name":"text","type":"string","comment":"Error message to be shown to the user"}]},{"kind":"class","name":"inputTheme","type":"InputTheme","id":1012306921,"comment":"Theme","arguments":[{"name":"id","type":"long","comment":"ID"},{"name":"access_hash","type":"long","comment":"Access hash"}]},{"kind":"class","name":"inputThemeSlug","type":"InputTheme","id":4119399921,"comment":"Theme by theme ID","arguments":[{"name":"slug","type":"string","comment":"Unique theme ID obtained from a theme deep link ยป"}]},{"kind":"class","name":"theme","type":"Theme","id":2685298646,"comment":"Theme","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"creator","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the current user is the creator of this theme"},{"name":"default","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this is the default theme"},{"name":"for_chat","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether this theme is meant to be used as a chat theme"},{"name":"id","type":"long","comment":"Theme ID"},{"name":"access_hash","type":"long","comment":"Theme access hash"},{"name":"slug","type":"string","comment":"Unique theme ID"},{"name":"title","type":"string","comment":"Theme name"},{"name":"document","type":"Document","typeModifiers":{"predicate":"flags.2"},"comment":"Theme"},{"name":"settings","type":"ThemeSettings","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Theme settings"},{"name":"emoticon","type":"string","typeModifiers":{"predicate":"flags.6"},"comment":"Theme emoji"},{"name":"installs_count","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Installation count"}]},{"kind":"class","name":"account.themesNotModified","type":"account.Themes","id":4095653410,"comment":"No new themes were installed","arguments":[]},{"kind":"class","name":"account.themes","type":"account.Themes","id":2587724909,"comment":"Installed themes","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"themes","type":"Theme","typeModifiers":{"isVector":true},"comment":"Themes"}]},{"kind":"class","name":"auth.loginToken","type":"auth.LoginToken","id":1654593920,"comment":"Login token (for QR code login)","arguments":[{"name":"expires","type":"int","comment":"Expiration date of QR code"},{"name":"token","type":"bytes","comment":"Token to render in QR code"}]},{"kind":"class","name":"auth.loginTokenMigrateTo","type":"auth.LoginToken","id":110008598,"comment":"Repeat the query to the specified DC","arguments":[{"name":"dc_id","type":"int","comment":"DC ID"},{"name":"token","type":"bytes","comment":"Token to use for login"}]},{"kind":"class","name":"auth.loginTokenSuccess","type":"auth.LoginToken","id":957176926,"comment":"Login via token (QR code) succeeded!","arguments":[{"name":"authorization","type":"auth.Authorization","comment":"Authorization info"}]},{"kind":"class","name":"account.contentSettings","type":"account.ContentSettings","id":1474462241,"comment":"Sensitive content settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"sensitive_enabled","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether viewing of sensitive (NSFW) content is enabled"},{"name":"sensitive_can_change","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the current client can change the sensitive content settings to view NSFW content"}]},{"kind":"class","name":"messages.inactiveChats","type":"messages.InactiveChats","id":2837970629,"comment":"Inactive chat list","arguments":[{"name":"dates","type":"int","typeModifiers":{"isVector":true},"comment":"When was the chat last active"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chat list"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in the chat list"}]},{"kind":"class","name":"baseThemeClassic","type":"BaseTheme","id":3282117730,"comment":"Classic theme","arguments":[]},{"kind":"class","name":"baseThemeDay","type":"BaseTheme","id":4225242760,"comment":"Day theme","arguments":[]},{"kind":"class","name":"baseThemeNight","type":"BaseTheme","id":3081969320,"comment":"Night theme","arguments":[]},{"kind":"class","name":"baseThemeTinted","type":"BaseTheme","id":1834973166,"comment":"Tinted theme","arguments":[]},{"kind":"class","name":"baseThemeArctic","type":"BaseTheme","id":1527845466,"comment":"Arctic theme","arguments":[]},{"kind":"class","name":"inputThemeSettings","type":"InputThemeSettings","id":2413711439,"comment":"Theme settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"message_colors_animated","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, the freeform gradient fill needs to be animated on every sent message"},{"name":"base_theme","type":"BaseTheme","comment":"Default theme on which this theme is based"},{"name":"accent_color","type":"int","comment":"Accent color, ARGB format"},{"name":"outbox_accent_color","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Accent color of outgoing messages in ARGB format"},{"name":"message_colors","type":"int","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"The fill to be used as a background for outgoing messages, in RGB24 format.
If just one or two equal colors are provided, describes a solid fill of a background.
If two different colors are provided, describes the top and bottom colors of a 0-degree gradient.
If three or four colors are provided, describes a freeform gradient fill of a background."},{"name":"wallpaper","type":"InputWallPaper","typeModifiers":{"predicate":"flags.1"},"comment":"{@link RawInputWallPaper} or {@link RawInputWallPaper} when passing wallpaper files for image or pattern wallpapers, {@link RawInputWallPaperNoFile} with id=0 otherwise."},{"name":"wallpaper_settings","type":"WallPaperSettings","typeModifiers":{"predicate":"flags.1"},"comment":"Wallpaper settings."}]},{"kind":"class","name":"themeSettings","type":"ThemeSettings","id":4200117972,"comment":"Theme settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"message_colors_animated","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, the freeform gradient fill needs to be animated on every sent message."},{"name":"base_theme","type":"BaseTheme","comment":"Base theme"},{"name":"accent_color","type":"int","comment":"Accent color, ARGB format"},{"name":"outbox_accent_color","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Accent color of outgoing messages in ARGB format"},{"name":"message_colors","type":"int","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"The fill to be used as a background for outgoing messages, in RGB24 format.
If just one or two equal colors are provided, describes a solid fill of a background.
If two different colors are provided, describes the top and bottom colors of a 0-degree gradient.
If three or four colors are provided, describes a freeform gradient fill of a background."},{"name":"wallpaper","type":"WallPaper","typeModifiers":{"predicate":"flags.1"},"comment":"Wallpaper"}]},{"kind":"class","name":"webPageAttributeTheme","type":"WebPageAttribute","id":1421174295,"comment":"Page theme","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"documents","type":"Document","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Theme files"},{"name":"settings","type":"ThemeSettings","typeModifiers":{"predicate":"flags.1"},"comment":"Theme settings"}]},{"kind":"class","name":"webPageAttributeStory","type":"WebPageAttribute","id":781501415,"comment":"Webpage preview of a Telegram story","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"Peer","comment":"Peer that posted the story"},{"name":"id","type":"int","comment":"Story ID"},{"name":"story","type":"StoryItem","typeModifiers":{"predicate":"flags.0"},"comment":"May contain the story, if not the story should be fetched when and if needed using {@link stories.RawGetStoriesByIDRequest} with the above id and peer."}]},{"kind":"class","name":"webPageAttributeStickerSet","type":"WebPageAttribute","id":1355547603,"arguments":[{"name":"flags","type":"#"},{"name":"emojis","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"text_color","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"stickers","type":"Document","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"messages.votesList","type":"messages.VotesList","id":1218005070,"comment":"How users voted in a poll","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"count","type":"int","comment":"Total number of votes for all options (or only for the chosen option, if provided to {@link messages.RawGetPollVotesRequest})"},{"name":"votes","type":"MessagePeerVote","typeModifiers":{"isVector":true},"comment":"Vote info for each user"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Info about users that voted in the poll"},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Offset to use with the next {@link messages.RawGetPollVotesRequest} request, empty string if no more results are available."}]},{"kind":"class","name":"bankCardOpenUrl","type":"BankCardOpenUrl","id":4117234314,"comment":"Credit card info URL provided by the bank","arguments":[{"name":"url","type":"string","comment":"Info URL"},{"name":"name","type":"string","comment":"Bank name"}]},{"kind":"class","name":"payments.bankCardData","type":"payments.BankCardData","id":1042605427,"comment":"Credit card info, provided by the card's bank(s)","arguments":[{"name":"title","type":"string","comment":"Credit card title"},{"name":"open_urls","type":"BankCardOpenUrl","typeModifiers":{"isVector":true},"comment":"Info URL(s) provided by the card's bank(s)"}]},{"kind":"class","name":"dialogFilter","id":1605718587,"type":"DialogFilter","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"contacts","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to include all contacts in this folder"},{"name":"non_contacts","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to include all non-contacts in this folder"},{"name":"groups","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to include all groups in this folder"},{"name":"broadcasts","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether to include all channels in this folder"},{"name":"bots","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether to include all bots in this folder"},{"name":"exclude_muted","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"Whether to exclude muted chats from this folder"},{"name":"exclude_read","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"Whether to exclude read chats from this folder"},{"name":"exclude_archived","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"Whether to exclude archived chats from this folder"},{"name":"id","type":"int","comment":"Folder ID"},{"name":"title","type":"string","comment":"Folder name"},{"name":"emoticon","type":"string","typeModifiers":{"predicate":"flags.25"},"comment":"Emoji to use as icon for the folder."},{"name":"color","type":"int","typeModifiers":{"predicate":"flags.27"}},{"name":"pinned_peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"Pinned chats, folders can have unlimited pinned chats"},{"name":"include_peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"Include the following chats in this folder"},{"name":"exclude_peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"Exclude the following chats from this folder"}],"comment":"Dialog filter AKA folder"},{"kind":"class","name":"dialogFilterDefault","type":"DialogFilter","id":909284270,"comment":"Used only when reordering folders to indicate the default (all chats) folder.","arguments":[]},{"kind":"class","name":"dialogFilterChatlist","id":2682424996,"type":"DialogFilter","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_my_invites","type":"true","typeModifiers":{"predicate":"flags.26"},"comment":"Whether the current user has created some chat folder deep links ยป to share the folder as well."},{"name":"id","type":"int","comment":"ID of the folder"},{"name":"title","type":"string","comment":"Name of the folder"},{"name":"emoticon","type":"string","typeModifiers":{"predicate":"flags.25"},"comment":"Emoji to use as icon for the folder."},{"name":"color","type":"int","typeModifiers":{"predicate":"flags.27"}},{"name":"pinned_peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"Pinned chats, folders can have unlimited pinned chats"},{"name":"include_peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"Chats to include in the folder"}],"comment":"A folder imported using a chat folder deep link ยป."},{"kind":"class","name":"dialogFilterSuggested","type":"DialogFilterSuggested","id":2004110666,"comment":"Suggested folders","arguments":[{"name":"filter","type":"DialogFilter","comment":"Folder info"},{"name":"description","type":"string","comment":"Folder description"}]},{"kind":"class","name":"statsDateRangeDays","type":"StatsDateRangeDays","id":3057118639,"comment":"Channel statistics date range","arguments":[{"name":"min_date","type":"int","comment":"Initial date"},{"name":"max_date","type":"int","comment":"Final date"}]},{"kind":"class","name":"statsAbsValueAndPrev","type":"StatsAbsValueAndPrev","id":3410210014,"comment":"Statistics value couple; initial and final value for period of time currently in consideration","arguments":[{"name":"current","type":"double","comment":"Current value"},{"name":"previous","type":"double","comment":"Previous value"}]},{"kind":"class","name":"statsPercentValue","type":"StatsPercentValue","id":3419287520,"comment":"Channel statistics percentage.
\nCompute the percentage simply by doing part * total / 100","arguments":[{"name":"part","type":"double","comment":"Partial value"},{"name":"total","type":"double","comment":"Total value"}]},{"kind":"class","name":"statsGraphAsync","type":"StatsGraph","id":1244130093,"comment":"This channel statistics graph must be generated asynchronously using {@link stats.RawLoadAsyncGraphRequest} to reduce server load","arguments":[{"name":"token","type":"string","comment":"Token to use for fetching the async graph"}]},{"kind":"class","name":"statsGraphError","type":"StatsGraph","id":3202127906,"comment":"An error occurred while generating the statistics graph","arguments":[{"name":"error","type":"string","comment":"The error"}]},{"kind":"class","name":"statsGraph","type":"StatsGraph","id":2393138358,"comment":"Channel statistics graph","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"json","type":"DataJSON","comment":"Statistics data"},{"name":"zoom_token","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Zoom token"}]},{"kind":"class","name":"stats.broadcastStats","type":"stats.BroadcastStats","id":963421692,"comment":"Channel statistics.","arguments":[{"name":"period","type":"StatsDateRangeDays","comment":"Period in consideration"},{"name":"followers","type":"StatsAbsValueAndPrev","comment":"Follower count change for period in consideration"},{"name":"views_per_post","type":"StatsAbsValueAndPrev","comment":"total_viewcount/postcount, for posts posted during the period in consideration.
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)."},{"name":"shares_per_post","type":"StatsAbsValueAndPrev","comment":"total_sharecount/postcount, for posts posted during the period in consideration.
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)"},{"name":"reactions_per_post","type":"StatsAbsValueAndPrev","comment":"total_reactions/postcount, for posts posted during the period in consideration.
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)"},{"name":"views_per_story","type":"StatsAbsValueAndPrev","comment":"total_views/storycount, for posts posted during the period in consideration.
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)"},{"name":"shares_per_story","type":"StatsAbsValueAndPrev","comment":"total_shares/storycount, for posts posted during the period in consideration.
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)"},{"name":"reactions_per_story","type":"StatsAbsValueAndPrev","comment":"total_reactions/storycount, for posts posted during the period in consideration.
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)"},{"name":"enabled_notifications","type":"StatsPercentValue","comment":"Percentage of subscribers with enabled notifications"},{"name":"growth_graph","type":"StatsGraph","comment":"Channel growth graph (absolute subscriber count)"},{"name":"followers_graph","type":"StatsGraph","comment":"Followers growth graph (relative subscriber count)"},{"name":"mute_graph","type":"StatsGraph","comment":"Muted users graph (relative)"},{"name":"top_hours_graph","type":"StatsGraph","comment":"Views per hour graph (absolute)"},{"name":"interactions_graph","type":"StatsGraph","comment":"Interactions graph (absolute)"},{"name":"iv_interactions_graph","type":"StatsGraph","comment":"IV interactions graph (absolute)"},{"name":"views_by_source_graph","type":"StatsGraph","comment":"Views by source graph (absolute)"},{"name":"new_followers_by_source_graph","type":"StatsGraph","comment":"New followers by source graph (absolute)"},{"name":"languages_graph","type":"StatsGraph","comment":"Subscriber language graph (pie chart)"},{"name":"reactions_by_emotion_graph","type":"StatsGraph","comment":"A graph containing the number of reactions on posts categorized by emotion"},{"name":"story_interactions_graph","type":"StatsGraph","comment":"A graph containing the number of story views and shares"},{"name":"story_reactions_by_emotion_graph","type":"StatsGraph","comment":"A graph containing the number of reactions on stories categorized by emotion"},{"name":"recent_posts_interactions","type":"PostInteractionCounters","typeModifiers":{"isVector":true},"comment":"Detailed statistics about number of views and shares of recently sent messages and stories"}]},{"kind":"class","name":"help.promoDataEmpty","type":"help.PromoData","id":2566302837,"comment":"No PSA/MTProxy info is available","arguments":[{"name":"expires","type":"int","comment":"Re-fetch PSA/MTProxy info after the specified number of seconds"}]},{"kind":"class","name":"help.promoData","type":"help.PromoData","id":2352576831,"comment":"MTProxy/Public Service Announcement information","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"proxy","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"MTProxy-related channel"},{"name":"expires","type":"int","comment":"Expiry of PSA/MTProxy info"},{"name":"peer","type":"Peer","comment":"MTProxy/PSA peer"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chat info"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"User info"},{"name":"psa_type","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"PSA type"},{"name":"psa_message","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"PSA message"}]},{"kind":"class","name":"videoSize","type":"VideoSize","id":3727929492,"comment":"An animated profile picture in MPEG4 format","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"type","type":"string","comment":"u for animated profile pictures, and v for trimmed and downscaled video previews"},{"name":"w","type":"int","comment":"Video width"},{"name":"h","type":"int","comment":"Video height"},{"name":"size","type":"int","comment":"File size"},{"name":"video_start_ts","type":"double","typeModifiers":{"predicate":"flags.0"},"comment":"Timestamp that should be shown as static preview to the user (seconds)"}]},{"kind":"class","name":"videoSizeEmojiMarkup","type":"VideoSize","id":4166795580,"comment":"An animated profile picture based on a custom emoji sticker.","arguments":[{"name":"emoji_id","type":"long","comment":"Custom emoji ID: the custom emoji sticker is shown at the center of the profile picture and occupies at most 67% of it."},{"name":"background_colors","type":"int","typeModifiers":{"isVector":true},"comment":"1, 2, 3 or 4 RBG-24 colors used to generate a solid (1), gradient (2) or freeform gradient (3, 4) background, similar to how fill wallpapers are generated. The rotation angle for gradient backgrounds is 0."}]},{"kind":"class","name":"videoSizeStickerMarkup","type":"VideoSize","id":228623102,"comment":"An animated profile picture based on a sticker.","arguments":[{"name":"stickerset","type":"InputStickerSet","comment":"Stickerset"},{"name":"sticker_id","type":"long","comment":"Sticker ID"},{"name":"background_colors","type":"int","typeModifiers":{"isVector":true},"comment":"1, 2, 3 or 4 RBG-24 colors used to generate a solid (1), gradient (2) or freeform gradient (3, 4) background, similar to how fill wallpapers are generated. The rotation angle for gradient backgrounds is 0."}]},{"kind":"class","name":"statsGroupTopPoster","type":"StatsGroupTopPoster","id":2634330011,"comment":"Information about an active user in a supergroup","arguments":[{"name":"user_id","type":"int53","comment":"User ID"},{"name":"messages","type":"int","comment":"Number of messages for statistics period in consideration"},{"name":"avg_chars","type":"int","comment":"Average number of characters per message"}]},{"kind":"class","name":"statsGroupTopAdmin","type":"StatsGroupTopAdmin","id":3612888199,"comment":"Information about an active admin in a supergroup","arguments":[{"name":"user_id","type":"int53","comment":"User ID"},{"name":"deleted","type":"int","comment":"Number of deleted messages for statistics period in consideration"},{"name":"kicked","type":"int","comment":"Number of kicked users for statistics period in consideration"},{"name":"banned","type":"int","comment":"Number of banned users for statistics period in consideration"}]},{"kind":"class","name":"statsGroupTopInviter","type":"StatsGroupTopInviter","id":1398765469,"comment":"Information about an active supergroup inviter","arguments":[{"name":"user_id","type":"int53","comment":"User ID"},{"name":"invitations","type":"int","comment":"Number of invitations for statistics period in consideration"}]},{"kind":"class","name":"stats.megagroupStats","type":"stats.MegagroupStats","id":4018141462,"comment":"Supergroup statistics","arguments":[{"name":"period","type":"StatsDateRangeDays","comment":"Period in consideration"},{"name":"members","type":"StatsAbsValueAndPrev","comment":"Member count change for period in consideration"},{"name":"messages","type":"StatsAbsValueAndPrev","comment":"Message number change for period in consideration"},{"name":"viewers","type":"StatsAbsValueAndPrev","comment":"Number of users that viewed messages, for range in consideration"},{"name":"posters","type":"StatsAbsValueAndPrev","comment":"Number of users that posted messages, for range in consideration"},{"name":"growth_graph","type":"StatsGraph","comment":"Supergroup growth graph (absolute subscriber count)"},{"name":"members_graph","type":"StatsGraph","comment":"Members growth (relative subscriber count)"},{"name":"new_members_by_source_graph","type":"StatsGraph","comment":"New members by source graph"},{"name":"languages_graph","type":"StatsGraph","comment":"Subscriber language graph (pie chart)"},{"name":"messages_graph","type":"StatsGraph","comment":"Message activity graph (stacked bar graph, message type)"},{"name":"actions_graph","type":"StatsGraph","comment":"Group activity graph (deleted, modified messages, blocked users)"},{"name":"top_hours_graph","type":"StatsGraph","comment":"Activity per hour graph (absolute)"},{"name":"weekdays_graph","type":"StatsGraph","comment":"Activity per day of week graph (absolute)"},{"name":"top_posters","type":"StatsGroupTopPoster","typeModifiers":{"isVector":true},"comment":"Info about most active group members"},{"name":"top_admins","type":"StatsGroupTopAdmin","typeModifiers":{"isVector":true},"comment":"Info about most active group admins"},{"name":"top_inviters","type":"StatsGroupTopInviter","typeModifiers":{"isVector":true},"comment":"Info about most active group inviters"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Info about users mentioned in statistics"}]},{"kind":"class","name":"globalPrivacySettings","type":"GlobalPrivacySettings","id":1934380235,"comment":"Global privacy settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"archive_and_mute_new_noncontact_peers","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to archive and mute new chats from non-contacts"},{"name":"keep_archived_unmuted","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether unmuted chats will be kept in the Archive chat list when they get a new message."},{"name":"keep_archived_folders","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether unmuted chats that are always included or pinned in a folder, will be kept in the Archive chat list when they get a new message. Ignored if keep_archived_unmuted is set."},{"name":"hide_read_marks","type":"true","typeModifiers":{"predicate":"flags.3"}},{"name":"new_noncontact_peers_require_premium","type":"true","typeModifiers":{"predicate":"flags.4"}}]},{"kind":"class","name":"help.countryCode","type":"help.CountryCode","id":1107543535,"comment":"Country code and phone number pattern of a specific country","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"country_code","type":"string","comment":"ISO country code"},{"name":"prefixes","type":"string","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Possible phone prefixes"},{"name":"patterns","type":"string","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Phone patterns: for example, XXX XXX XXX"}]},{"kind":"class","name":"help.country","type":"help.Country","id":3280440867,"comment":"Name, ISO code, localized name and phone codes/patterns of a specific country","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"hidden","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this country should not be shown in the list"},{"name":"iso2","type":"string","comment":"ISO code of country"},{"name":"default_name","type":"string","comment":"Name of the country in the country's language"},{"name":"name","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Name of the country in the user's language, if different from the original name"},{"name":"country_codes","type":"help.CountryCode","typeModifiers":{"isVector":true},"comment":"Phone codes/patterns"}]},{"kind":"class","name":"help.countriesListNotModified","type":"help.CountriesList","id":2479628082,"comment":"The country list has not changed","arguments":[]},{"kind":"class","name":"help.countriesList","type":"help.CountriesList","id":2278585758,"comment":"Name, ISO code, localized name and phone codes/patterns of all available countries","arguments":[{"name":"countries","type":"help.Country","typeModifiers":{"isVector":true},"comment":"Name, ISO code, localized name and phone codes/patterns of all available countries"},{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}]},{"kind":"class","name":"messageViews","type":"MessageViews","id":1163625789,"comment":"View, forward counter + info about replies of a specific message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"views","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"View count of message"},{"name":"forwards","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Forward count of message"},{"name":"replies","type":"MessageReplies","typeModifiers":{"predicate":"flags.2"},"comment":"Reply and thread information of message"}]},{"kind":"class","name":"messages.messageViews","type":"messages.MessageViews","id":3066361155,"comment":"View, forward counter + info about replies","arguments":[{"name":"views","type":"MessageViews","typeModifiers":{"isVector":true},"comment":"View, forward counter + info about replies"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats mentioned in constructor"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in constructor"}]},{"kind":"class","name":"messages.discussionMessage","type":"messages.DiscussionMessage","id":2788431746,"comment":"Information about a message thread","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"The messages from which the thread starts. The messages are returned in reverse chronological order (i.e., in order of decreasing message ID)."},{"name":"max_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Message ID of latest reply in this thread"},{"name":"read_inbox_max_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Message ID of latest read incoming message in this thread"},{"name":"read_outbox_max_id","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Message ID of latest read outgoing message in this thread"},{"name":"unread_count","type":"int","comment":"Number of unread messages"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats mentioned in constructor"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in constructor"}]},{"kind":"class","name":"messageReplyHeader","type":"MessageReplyHeader","id":2948336091,"comment":"Message replies and thread information","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"reply_to_scheduled","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"This is a reply to a scheduled message."},{"name":"forum_topic","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this message was sent in a forum topic (except for the General topic)."},{"name":"quote","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"Whether this message is quoting a part of another message."},{"name":"reply_to_msg_id","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"ID of message to which this message is replying"},{"name":"reply_to_peer_id","type":"Peer","typeModifiers":{"predicate":"flags.0"},"comment":"For replies sent in channel discussion threads of which the current user is not a member, the discussion group ID"},{"name":"reply_from","type":"MessageFwdHeader","typeModifiers":{"predicate":"flags.5"},"comment":"When replying to a message sent by a certain peer to another chat, contains info about the peer that originally sent the message to that other chat."},{"name":"reply_media","type":"MessageMedia","typeModifiers":{"predicate":"flags.8"},"comment":"When replying to a media sent by a certain peer to another chat, contains the media of the replied-to message."},{"name":"reply_to_top_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"ID of the message that started this message thread"},{"name":"quote_text","type":"string","typeModifiers":{"predicate":"flags.6"},"comment":"Used to quote-reply to only a certain section (specified here) of the original message."},{"name":"quote_entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.7","isVector":true},"comment":"Message entities for styled text from the quote_text field."},{"name":"quote_offset","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Offset of the message quote_text within the original message (in UTF-16 code units)."}]},{"kind":"class","name":"messageReplyStoryHeader","id":240843065,"type":"MessageReplyHeader","arguments":[{"name":"peer","type":"Peer"},{"name":"story_id","type":"int","comment":"Story ID"}],"comment":"Represents a reply to a story"},{"kind":"class","name":"messageReplies","type":"MessageReplies","id":2211844034,"comment":"Info about the comment section of a channel post, or a simple message thread","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"comments","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this constructor contains information about the comment section of a channel post, or a simple message thread"},{"name":"replies","type":"int","comment":"Contains the total number of replies in this thread or comment section."},{"name":"replies_pts","type":"int","comment":"PTS of the message that started this thread."},{"name":"recent_repliers","type":"Peer","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"For channel post comments, contains information about the last few comment posters for a specific thread, to show a small list of commenter profile pictures in client previews."},{"name":"channel_id","type":"int53","typeModifiers":{"predicate":"flags.0"},"comment":"For channel post comments, contains the ID of the associated discussion supergroup"},{"name":"max_id","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"ID of the latest message in this thread or comment section."},{"name":"read_max_id","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Contains the ID of the latest read message in this thread or comment section."}]},{"kind":"class","name":"peerBlocked","type":"PeerBlocked","id":3908927508,"comment":"Information about a blocked peer","arguments":[{"name":"peer_id","type":"Peer","comment":"Peer ID"},{"name":"date","type":"int","comment":"When was the peer blocked"}]},{"kind":"class","name":"stats.messageStats","type":"stats.MessageStats","id":2145983508,"comment":"Message statistics","arguments":[{"name":"views_graph","type":"StatsGraph","comment":"Message view graph"},{"name":"reactions_by_emotion_graph","type":"StatsGraph","comment":"A graph containing the number of reactions on stories categorized by emotion"}]},{"kind":"class","name":"groupCallDiscarded","type":"GroupCall","id":2004925620,"comment":"An ended group call","arguments":[{"name":"id","type":"long","comment":"Group call ID"},{"name":"access_hash","type":"long","comment":"Group call access hash"},{"name":"duration","type":"int","comment":"Group call duration"}]},{"kind":"class","name":"groupCall","type":"GroupCall","id":3583468812,"comment":"Info about a group call or livestream","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"join_muted","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the user should be muted upon joining the call"},{"name":"can_change_join_muted","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the current user can change the value of the join_muted flag using {@link phone.RawToggleGroupCallSettingsRequest}"},{"name":"join_date_asc","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Specifies the ordering to use when locally sorting by date and displaying in the UI group call participants."},{"name":"schedule_start_subscribed","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"Whether we subscribed to the scheduled call"},{"name":"can_start_video","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"Whether you can start streaming video into the call"},{"name":"record_video_active","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"Whether the group call is currently being recorded"},{"name":"rtmp_stream","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"Whether RTMP streams are allowed"},{"name":"listeners_hidden","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"Whether the listeners list is hidden and cannot be fetched using {@link phone.RawGetGroupParticipantsRequest}. The phone.groupParticipants.count and groupCall.participants_count counters will still include listeners."},{"name":"id","type":"long","comment":"Group call ID"},{"name":"access_hash","type":"long","comment":"Group call access hash"},{"name":"participants_count","type":"int","comment":"Participant count"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Group call title"},{"name":"stream_dc_id","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"DC ID to be used for livestream chunks"},{"name":"record_start_date","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"When was the recording started"},{"name":"schedule_date","type":"int","typeModifiers":{"predicate":"flags.7"},"comment":"When is the call scheduled to start"},{"name":"unmuted_video_count","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Number of people currently streaming video into the call"},{"name":"unmuted_video_limit","type":"int","comment":"Maximum number of people allowed to stream video into the call"},{"name":"version","type":"int","comment":"Version"}]},{"kind":"class","name":"inputGroupCall","type":"InputGroupCall","id":3635053583,"comment":"Points to a specific group call","arguments":[{"name":"id","type":"long","comment":"Group call ID"},{"name":"access_hash","type":"long","comment":"Group call access hash"}]},{"kind":"class","name":"groupCallParticipant","type":"GroupCallParticipant","id":3953538814,"comment":"Info about a group call participant","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"muted","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the participant is muted"},{"name":"left","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the participant has left"},{"name":"can_self_unmute","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the participant can unmute themselves"},{"name":"just_joined","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether the participant has just joined"},{"name":"versioned","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"If set, and {@link RawUpdateGroupCallParticipants}.version < locally stored call.version, info about this participant should be ignored. If (...), and {@link RawUpdateGroupCallParticipants}.version > call.version+1, the participant list should be refetched using {@link phone.RawGetGroupParticipantsRequest}."},{"name":"min","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"If not set, the volume and muted_by_you fields can be safely used to overwrite locally cached information; otherwise, volume will contain valid information only if volume_by_admin is set both in the cache and in the received constructor."},{"name":"muted_by_you","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"Whether this participant was muted by the current user"},{"name":"volume_by_admin","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"Whether our volume can only changed by an admin"},{"name":"self","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"Whether this participant is the current user"},{"name":"video_joined","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"Whether this participant is currently broadcasting video"},{"name":"peer","type":"Peer","comment":"Peer information"},{"name":"date","type":"int","comment":"When did this participant join the group call"},{"name":"active_date","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"When was this participant last active in the group call"},{"name":"source","type":"int","comment":"Source ID"},{"name":"volume","type":"int","typeModifiers":{"predicate":"flags.7"},"comment":"Volume, if not set the volume is set to 100%."},{"name":"about","type":"string","typeModifiers":{"predicate":"flags.11"},"comment":"Info about this participant"},{"name":"raise_hand_rating","type":"long","typeModifiers":{"predicate":"flags.13"},"comment":"Specifies the UI visualization order of peers with raised hands: peers with a higher rating should be showed first in the list."},{"name":"video","type":"GroupCallParticipantVideo","typeModifiers":{"predicate":"flags.6"},"comment":"Info about the video stream the participant is currently broadcasting"},{"name":"presentation","type":"GroupCallParticipantVideo","typeModifiers":{"predicate":"flags.14"},"comment":"Info about the screen sharing stream the participant is currently broadcasting"}]},{"kind":"class","name":"phone.groupCall","type":"phone.GroupCall","id":2658302637,"comment":"Contains info about a group call, and partial info about its participants.","arguments":[{"name":"call","type":"GroupCall","comment":"Info about the group call"},{"name":"participants","type":"GroupCallParticipant","typeModifiers":{"isVector":true},"comment":"A partial list of participants."},{"name":"participants_next_offset","type":"string","comment":"Next offset to use when fetching the remaining participants using {@link phone.RawGetGroupParticipantsRequest}"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats mentioned in the participants vector"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in the participants vector"}]},{"kind":"class","name":"phone.groupParticipants","type":"phone.GroupParticipants","id":4101460406,"comment":"Info about the participants of a group call or livestream","arguments":[{"name":"count","type":"int","comment":"Number of participants"},{"name":"participants","type":"GroupCallParticipant","typeModifiers":{"isVector":true},"comment":"List of participants"},{"name":"next_offset","type":"string","comment":"If not empty, the specified list of participants is partial, and more participants can be fetched specifying this parameter as offset in {@link phone.RawGetGroupParticipantsRequest}."},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"},{"name":"version","type":"int","comment":"Version info"}]},{"kind":"class","name":"inlineQueryPeerTypeSameBotPM","type":"InlineQueryPeerType","id":813821341,"comment":"Peer type: private chat with the bot itself","arguments":[]},{"kind":"class","name":"inlineQueryPeerTypePM","type":"InlineQueryPeerType","id":2201751468,"comment":"Peer type: private chat","arguments":[]},{"kind":"class","name":"inlineQueryPeerTypeChat","type":"InlineQueryPeerType","id":3613836554,"comment":"Peer type: chat","arguments":[]},{"kind":"class","name":"inlineQueryPeerTypeMegagroup","type":"InlineQueryPeerType","id":1589952067,"comment":"Peer type: supergroup","arguments":[]},{"kind":"class","name":"inlineQueryPeerTypeBroadcast","type":"InlineQueryPeerType","id":1664413338,"comment":"Peer type: channel","arguments":[]},{"kind":"class","name":"inlineQueryPeerTypeBotPM","type":"InlineQueryPeerType","id":238759180,"comment":"Peer type: private chat with a bot.","arguments":[]},{"kind":"class","name":"messages.historyImport","type":"messages.HistoryImport","id":375566091,"comment":"ID of a specific chat import session, click here for more info ยป.","arguments":[{"name":"id","type":"long","comment":"History import ID"}]},{"kind":"class","name":"messages.historyImportParsed","type":"messages.HistoryImportParsed","id":1578088377,"comment":"Contains information about a chat export file generated by a foreign chat app, click here for more info.
\nIf neither the pm or group flags are set, the specified chat export was generated from a chat of unknown type.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pm","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"The chat export file was generated from a private chat."},{"name":"group","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"The chat export file was generated from a group chat."},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Title of the chat."}]},{"kind":"class","name":"messages.affectedFoundMessages","type":"messages.AffectedFoundMessages","id":4019011180,"comment":"Messages found and affected by changes","arguments":[{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"},{"name":"offset","type":"int","comment":"If bigger than zero, the request must be repeated to remove more messages"},{"name":"messages","type":"int","typeModifiers":{"isVector":true},"comment":"Affected message IDs"}]},{"kind":"class","name":"chatInviteImporter","type":"ChatInviteImporter","id":2354765785,"comment":"When and which user joined the chat using a chat invite","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"requested","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this user currently has a pending join request ยป"},{"name":"via_chatlist","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"The participant joined by importing a chat folder deep link ยป."},{"name":"user_id","type":"int53","comment":"The user"},{"name":"date","type":"int","comment":"When did the user join"},{"name":"about","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"For users with pending requests, contains bio of the user that requested to join"},{"name":"approved_by","type":"int53","typeModifiers":{"predicate":"flags.1"},"comment":"The administrator that approved the join request ยป of the user"}]},{"kind":"class","name":"messages.exportedChatInvites","type":"messages.ExportedChatInvites","id":3183881676,"comment":"Info about chat invites exported by a certain admin.","arguments":[{"name":"count","type":"int","comment":"Number of invites exported by the admin"},{"name":"invites","type":"ExportedChatInvite","typeModifiers":{"isVector":true},"comment":"Exported invites"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Info about the admin"}]},{"kind":"class","name":"messages.exportedChatInvite","type":"messages.ExportedChatInvite","id":410107472,"comment":"Info about a chat invite","arguments":[{"name":"invite","type":"ExportedChatInvite","comment":"Info about the chat invite"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"messages.exportedChatInviteReplaced","type":"messages.ExportedChatInvite","id":572915951,"comment":"The specified chat invite was replaced with another one","arguments":[{"name":"invite","type":"ExportedChatInvite","comment":"The replaced chat invite"},{"name":"new_invite","type":"ExportedChatInvite","comment":"The invite that replaces the previous invite"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"messages.chatInviteImporters","type":"messages.ChatInviteImporters","id":2176233482,"comment":"Info about the users that joined the chat using a specific chat invite","arguments":[{"name":"count","type":"int","comment":"Number of users that joined"},{"name":"importers","type":"ChatInviteImporter","typeModifiers":{"isVector":true},"comment":"The users that joined"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"The users that joined"}]},{"kind":"class","name":"chatAdminWithInvites","type":"ChatAdminWithInvites","id":4075613987,"comment":"Info about chat invites generated by admins.","arguments":[{"name":"admin_id","type":"int53","comment":"The admin"},{"name":"invites_count","type":"int","comment":"Number of invites generated by the admin"},{"name":"revoked_invites_count","type":"int","comment":"Number of revoked invites"}]},{"kind":"class","name":"messages.chatAdminsWithInvites","type":"messages.ChatAdminsWithInvites","id":3063640791,"comment":"Info about chat invites generated by admins.","arguments":[{"name":"admins","type":"ChatAdminWithInvites","typeModifiers":{"isVector":true},"comment":"Info about chat invites generated by admins."},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"messages.checkedHistoryImportPeer","type":"messages.CheckedHistoryImportPeer","id":2723014423,"comment":"Contains a confirmation text to be shown to the user, upon importing chat history, click here for more info ยป.","arguments":[{"name":"confirm_text","type":"string","comment":"A confirmation text to be shown to the user, upon importing chat history ยป."}]},{"kind":"class","name":"phone.joinAsPeers","type":"phone.JoinAsPeers","id":2951045695,"comment":"A list of peers that can be used to join a group call, presenting yourself as a specific user/channel.","arguments":[{"name":"peers","type":"Peer","typeModifiers":{"isVector":true},"comment":"Peers"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats mentioned in the peers vector"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in the peers vector"}]},{"kind":"class","name":"phone.exportedGroupCallInvite","type":"phone.ExportedGroupCallInvite","id":541839704,"comment":"An invite to a group call or livestream","arguments":[{"name":"link","type":"string","comment":"Invite link"}]},{"kind":"class","name":"groupCallParticipantVideoSourceGroup","type":"GroupCallParticipantVideoSourceGroup","id":3702593719,"comment":"Describes a group of video synchronization source identifiers","arguments":[{"name":"semantics","type":"string","comment":"SDP semantics"},{"name":"sources","type":"int","typeModifiers":{"isVector":true},"comment":"Source IDs"}]},{"kind":"class","name":"groupCallParticipantVideo","type":"GroupCallParticipantVideo","id":1735736008,"comment":"Info about a video stream","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"paused","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the stream is currently paused"},{"name":"endpoint","type":"string","comment":"Endpoint"},{"name":"source_groups","type":"GroupCallParticipantVideoSourceGroup","typeModifiers":{"isVector":true},"comment":"Source groups"},{"name":"audio_source","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Audio source ID"}]},{"kind":"class","name":"stickers.suggestedShortName","type":"stickers.SuggestedShortName","id":2248056895,"comment":"A suggested short name for a stickerpack","arguments":[{"name":"short_name","type":"string","comment":"Suggested short name"}]},{"kind":"class","name":"botCommandScopeDefault","type":"BotCommandScope","id":795652779,"comment":"The commands will be valid in all dialogs","arguments":[]},{"kind":"class","name":"botCommandScopeUsers","type":"BotCommandScope","id":1011811544,"comment":"The specified bot commands will only be valid in all private chats with users.","arguments":[]},{"kind":"class","name":"botCommandScopeChats","type":"BotCommandScope","id":1877059713,"comment":"The specified bot commands will be valid in all groups and supergroups.","arguments":[]},{"kind":"class","name":"botCommandScopeChatAdmins","type":"BotCommandScope","id":3114950762,"comment":"The specified bot commands will be valid only for chat administrators, in all groups and supergroups.","arguments":[]},{"kind":"class","name":"botCommandScopePeer","type":"BotCommandScope","id":3684534653,"comment":"The specified bot commands will be valid only in a specific dialog.","arguments":[{"name":"peer","type":"InputPeer","comment":"The dialog"}]},{"kind":"class","name":"botCommandScopePeerAdmins","type":"BotCommandScope","id":1071145937,"comment":"The specified bot commands will be valid for all admins of the specified group or supergroup.","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat"}]},{"kind":"class","name":"botCommandScopePeerUser","type":"BotCommandScope","id":169026035,"comment":"The specified bot commands will be valid only for a specific user in the specified group or supergroup.","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat"},{"name":"user_id","type":"InputUser","comment":"The user"}]},{"kind":"class","name":"account.resetPasswordFailedWait","type":"account.ResetPasswordResult","id":3816265825,"comment":"You recently requested a password reset that was canceled, please wait until the specified date before requesting another reset.","arguments":[{"name":"retry_date","type":"int","comment":"Wait until this date before requesting another reset."}]},{"kind":"class","name":"account.resetPasswordRequestedWait","type":"account.ResetPasswordResult","id":3924819069,"comment":"You successfully requested a password reset, please wait until the specified date before finalizing the reset.","arguments":[{"name":"until_date","type":"int","comment":"Wait until this date before finalizing the reset."}]},{"kind":"class","name":"account.resetPasswordOk","type":"account.ResetPasswordResult","id":3911636542,"comment":"The 2FA password was reset successfully.","arguments":[]},{"kind":"class","name":"sponsoredMessage","id":3186488678,"type":"SponsoredMessage","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"recommended","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether the message needs to be labeled as \"recommended\" instead of \"sponsored\""},{"name":"can_report","type":"true","typeModifiers":{"predicate":"flags.12"}},{"name":"random_id","type":"bytes","comment":"Message ID"},{"name":"url","type":"string"},{"name":"title","type":"string"},{"name":"message","type":"string","comment":"Sponsored message"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"},{"name":"photo","type":"Photo","typeModifiers":{"predicate":"flags.6"}},{"name":"color","type":"PeerColor","typeModifiers":{"predicate":"flags.13"}},{"name":"button_text","type":"string","comment":"Text of the sponsored message button."},{"name":"sponsor_info","type":"string","typeModifiers":{"predicate":"flags.7"},"comment":"If set, contains additional information about the sponsor to be shown along with the message."},{"name":"additional_info","type":"string","typeModifiers":{"predicate":"flags.8"},"comment":"If set, contains additional information about the sponsored message to be shown along with the message."}],"comment":"A sponsored message."},{"kind":"class","name":"messages.sponsoredMessages","type":"messages.SponsoredMessages","id":3387825543,"comment":"A set of sponsored messages associated to a channel","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"posts_between","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If set, specifies the minimum number of messages between shown sponsored messages; otherwise, only one sponsored message must be shown after all ordinary messages."},{"name":"messages","type":"SponsoredMessage","typeModifiers":{"isVector":true},"comment":"Sponsored messages"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats mentioned in the sponsored messages"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in the sponsored messages"}]},{"kind":"class","name":"messages.sponsoredMessagesEmpty","type":"messages.SponsoredMessages","id":406407439,"comment":"No sponsored messages are available.","arguments":[]},{"kind":"class","name":"searchResultsCalendarPeriod","type":"SearchResultsCalendarPeriod","id":3383776159,"comment":"Information about found messages sent on a specific day, used to split the messages in {@link messages.RawSearchResultsCalendar} constructors by days.\n\nMultiple searchResultsCalendarPeriod constructors are returned in {@link messages.RawSearchResultsCalendar}, each containing information about the first, last and total number of messages matching the filter that were sent on a specific day.","arguments":[{"name":"date","type":"int","comment":"The day this object is referring to."},{"name":"min_msg_id","type":"int","comment":"First message ID that was sent on this day."},{"name":"max_msg_id","type":"int","comment":"Last message ID that was sent on this day."},{"name":"count","type":"int","comment":"All messages that were sent on this day."}]},{"kind":"class","name":"messages.searchResultsCalendar","type":"messages.SearchResultsCalendar","id":343859772,"comment":"Information about found messages sent on a specific day","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"inexact","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates that the results may be inexact"},{"name":"count","type":"int","comment":"Total number of results matching query"},{"name":"min_date","type":"int","comment":"Starting timestamp of attached messages"},{"name":"min_msg_id","type":"int","comment":"Ending timestamp of attached messages"},{"name":"offset_id_offset","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Indicates the absolute position of messages[0] within the total result set with count count.
This is useful, for example, if we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}."},{"name":"periods","type":"SearchResultsCalendarPeriod","typeModifiers":{"isVector":true},"comment":"Used to split the messages by days: multiple SearchResultsCalendarPeriod constructors are returned, each containing information about the first, last and total number of messages matching the filter that were sent on a specific day.
This information can be easily used to split the returned messages by day."},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"Messages"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"searchResultPosition","type":"SearchResultsPosition","id":2137295719,"comment":"Information about a message in a specific position","arguments":[{"name":"msg_id","type":"int","comment":"Message ID"},{"name":"date","type":"int","comment":"When was the message sent"},{"name":"offset","type":"int","comment":"0-based message position in the full list of suitable messages"}]},{"kind":"class","name":"messages.searchResultsPositions","type":"messages.SearchResultsPositions","id":1404185519,"comment":"Information about sparse positions of messages","arguments":[{"name":"count","type":"int","comment":"Total number of found messages"},{"name":"positions","type":"SearchResultsPosition","typeModifiers":{"isVector":true},"comment":"List of message positions"}]},{"kind":"class","name":"channels.sendAsPeers","type":"channels.SendAsPeers","id":4103516358,"comment":"A list of peers that can be used to send messages in a specific group","arguments":[{"name":"peers","type":"SendAsPeer","typeModifiers":{"isVector":true},"comment":"Peers that can be used to send messages to the group"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"users.userFull","type":"users.UserFull","id":997004590,"comment":"Full user information","arguments":[{"name":"full_user","type":"UserFull","comment":"Full user information"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"messages.peerSettings","type":"messages.PeerSettings","id":1753266509,"comment":"Peer settings","arguments":[{"name":"settings","type":"PeerSettings","comment":"Peer settings"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"auth.loggedOut","type":"auth.LoggedOut","id":3282207583,"comment":"Future auth token ยป to be used on subsequent authorizations","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"future_auth_token","type":"bytes","typeModifiers":{"predicate":"flags.0"},"comment":"Future auth token ยป to be used on subsequent authorizations"}]},{"kind":"class","name":"reactionCount","type":"ReactionCount","id":2748435328,"comment":"Reactions","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"chosen_order","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates that the current user also sent this reaction.
The integer value indicates when was the reaction added: the bigger the value, the newer the reaction."},{"name":"reaction","type":"Reaction","comment":"The reaction."},{"name":"count","type":"int","comment":"Number of users that reacted with this emoji."}]},{"kind":"class","name":"messageReactions","type":"MessageReactions","id":1328256121,"comment":"Message reactions ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"min","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Similar to min objects, used for message reaction ยป constructors that are the same for all users so they don't have the reactions sent by the current user (you can use {@link messages.RawGetMessagesReactionsRequest} to get the full reaction info)."},{"name":"can_see_list","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether {@link messages.RawGetMessageReactionsListRequest} can be used to see how each specific peer reacted to the message"},{"name":"reactions_as_tags","type":"true","typeModifiers":{"predicate":"flags.3"}},{"name":"results","type":"ReactionCount","typeModifiers":{"isVector":true},"comment":"Reactions"},{"name":"recent_reactions","type":"MessagePeerReaction","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"List of recent peers and their reactions"}]},{"kind":"class","name":"messages.messageReactionsList","type":"messages.MessageReactionsList","id":834488621,"comment":"List of peers that reacted to a specific message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"count","type":"int","comment":"Total number of reactions matching query"},{"name":"reactions","type":"MessagePeerReaction","typeModifiers":{"isVector":true},"comment":"List of peers that reacted to a specific message"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates the next offset to use to load more results by invoking {@link messages.RawGetMessageReactionsListRequest}."}]},{"kind":"class","name":"availableReaction","type":"AvailableReaction","id":3229084673,"comment":"Animations associated with a message reaction","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"inactive","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If not set, the reaction can be added to new messages and enabled in chats."},{"name":"premium","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this reaction can only be used by Telegram Premium users"},{"name":"reaction","type":"string","comment":"Reaction emoji"},{"name":"title","type":"string","comment":"Reaction description"},{"name":"static_icon","type":"Document","comment":"Static icon for the reaction"},{"name":"appear_animation","type":"Document","comment":"The animated sticker to show when the user opens the reaction dropdown"},{"name":"select_animation","type":"Document","comment":"The animated sticker to show when the user hovers over the reaction"},{"name":"activate_animation","type":"Document","comment":"The animated sticker to show when the reaction is chosen and activated"},{"name":"effect_animation","type":"Document","comment":"The background effect (still an animated sticker) to play under the activate_animation, when the reaction is chosen and activated"},{"name":"around_animation","type":"Document","typeModifiers":{"predicate":"flags.1"},"comment":"The animation that plays around the button when you press an existing reaction (played together with center_icon)."},{"name":"center_icon","type":"Document","typeModifiers":{"predicate":"flags.1"},"comment":"The animation of the emoji inside the button when you press an existing reaction (played together with around_animation)."}]},{"kind":"class","name":"messages.availableReactionsNotModified","type":"messages.AvailableReactions","id":2668042583,"comment":"No new reactions are available","arguments":[]},{"kind":"class","name":"messages.availableReactions","type":"messages.AvailableReactions","id":1989032621,"comment":"Animations and metadata associated with message reactions ยป","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"},{"name":"reactions","type":"AvailableReaction","typeModifiers":{"isVector":true},"comment":"Animations and metadata associated with message reactions ยป"}]},{"kind":"class","name":"messagePeerReaction","type":"MessagePeerReaction","id":2356786748,"comment":"How a certain peer reacted to the message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"big","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the specified message reaction ยป should elicit a bigger and longer reaction"},{"name":"unread","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the reaction wasn't yet marked as read by the current user"},{"name":"my","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Starting from layer 159, {@link messages.RawSendReactionRequest} will send reactions from the peer (user or channel) specified using {@link messages.RawSaveDefaultSendAsRequest}.
If set, this flag indicates that this reaction was sent by us, even if the peer doesn't point to the current account."},{"name":"peer_id","type":"Peer","comment":"Peer that reacted to the message"},{"name":"date","type":"int","comment":"When was this reaction added"},{"name":"reaction","type":"Reaction","comment":"Reaction emoji"}]},{"kind":"class","name":"groupCallStreamChannel","type":"GroupCallStreamChannel","id":2162903215,"comment":"Info about an RTMP stream in a group call or livestream","arguments":[{"name":"channel","type":"int","comment":"Channel ID"},{"name":"scale","type":"int","comment":"Specifies the duration of the video segment to fetch in milliseconds, by bitshifting 1000 to the right scale times: duration_ms := 1000 >> scale."},{"name":"last_timestamp_ms","type":"long","comment":"Last seen timestamp to easily start fetching livestream chunks using {@link RawInputGroupCallStream}"}]},{"kind":"class","name":"phone.groupCallStreamChannels","type":"phone.GroupCallStreamChannels","id":3504636594,"comment":"Info about RTMP streams in a group call or livestream","arguments":[{"name":"channels","type":"GroupCallStreamChannel","typeModifiers":{"isVector":true},"comment":"RTMP streams"}]},{"kind":"class","name":"phone.groupCallStreamRtmpUrl","type":"phone.GroupCallStreamRtmpUrl","id":767505458,"comment":"RTMP URL and stream key to be used in streaming software","arguments":[{"name":"url","type":"string","comment":"RTMP URL"},{"name":"key","type":"string","comment":"Stream key"}]},{"kind":"class","name":"attachMenuBotIconColor","type":"AttachMenuBotIconColor","id":1165423600,"comment":"Represents an attachment menu icon color for bot mini apps ยป","arguments":[{"name":"name","type":"string","comment":"One of the following values:
light_icon - Color of the attachment menu icon (light mode)
light_text - Color of the attachment menu label, once selected (light mode)
dark_icon - Color of the attachment menu icon (dark mode)
dark_text - Color of the attachment menu label, once selected (dark mode)"},{"name":"color","type":"int","comment":"Color in RGB24 format"}]},{"kind":"class","name":"attachMenuBotIcon","type":"AttachMenuBotIcon","id":2997303403,"comment":"Represents an attachment menu icon for bot mini apps ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"name","type":"string","comment":"One of the following values: note that animated icons must be played when the user clicks on the button, activating the bot mini app.

default_static - Default attachment menu icon in SVG format
placeholder_static - Default placeholder for opened Web Apps in SVG format
ios_static - Attachment menu icon in SVG format for the official iOS app
ios_animated - Animated attachment menu icon in TGS format for the official iOS app
android_animated - Animated attachment menu icon in TGS format for the official Android app
macos_animated - Animated attachment menu icon in TGS format for the official native Mac OS app
ios_side_menu_static - Side menu icon in PNG format for the official iOS app
android_side_menu_static - Side menu icon in SVG format for the official android app
macos_side_menu_static - Side menu icon in PNG format for the official native Mac OS app"},{"name":"icon","type":"Document","comment":"The actual icon file."},{"name":"colors","type":"AttachMenuBotIconColor","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Attachment menu icon colors."}]},{"kind":"class","name":"attachMenuBot","type":"AttachMenuBot","id":3641544190,"comment":"Represents a bot mini app that can be launched from the attachment/side menu ยป\n\nAt least one of the show_in_attach_menu or the show_in_side_menu flags will always be set.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"inactive","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, before launching the mini app the client should ask the user to add the mini app to the attachment/side menu, and only if the user accepts, after invoking {@link messages.RawToggleBotInAttachMenuRequest} the app should be opened."},{"name":"has_settings","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Deprecated flag, can be ignored."},{"name":"request_write_access","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the bot would like to send messages to the user."},{"name":"show_in_attach_menu","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether, when installed, an attachment menu entry should be shown for the Mini App."},{"name":"show_in_side_menu","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether, when installed, an entry in the main view side menu should be shown for the Mini App."},{"name":"side_menu_disclaimer_needed","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"If inactive if set and the user hasn't previously accepted the third-party mini apps Terms of Service for this bot, when showing the mini app installation prompt, an additional mandatory checkbox to accept the mini apps TOS and a disclaimer indicating that this Mini App is not affiliated to Telegram should be shown."},{"name":"bot_id","type":"int53","comment":"Bot ID"},{"name":"short_name","type":"string","comment":"Attachment menu item name"},{"name":"peer_types","type":"AttachMenuPeerType","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"List of dialog types where this attachment menu entry should be shown"},{"name":"icons","type":"AttachMenuBotIcon","typeModifiers":{"isVector":true},"comment":"List of platform-specific static icons and animations to use for the attachment menu button"}]},{"kind":"class","name":"attachMenuBotsNotModified","type":"AttachMenuBots","id":4057500252,"comment":"The list of bot mini apps hasn't changed","arguments":[]},{"kind":"class","name":"attachMenuBots","type":"AttachMenuBots","id":1011024320,"comment":"Represents a list of bot mini apps that can be launched from the attachment menu ยป","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"bots","type":"AttachMenuBot","typeModifiers":{"isVector":true},"comment":"List of bot mini apps that can be launched from the attachment menu ยป"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Info about related users/bots"}]},{"kind":"class","name":"attachMenuBotsBot","type":"AttachMenuBotsBot","id":2478794367,"comment":"Represents a bot mini app that can be launched from the attachment menu ยป","arguments":[{"name":"bot","type":"AttachMenuBot","comment":"Represents a bot mini app that can be launched from the attachment menu ยป
"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Info about related users and bots"}]},{"kind":"class","name":"webViewResultUrl","type":"WebViewResult","id":202659196,"comment":"Contains the webview URL with appropriate theme and user info parameters added","arguments":[{"name":"query_id","type":"long","comment":"Webview session ID"},{"name":"url","type":"string","comment":"Webview URL to open"}]},{"kind":"class","name":"simpleWebViewResultUrl","type":"SimpleWebViewResult","id":2284811963,"comment":"Contains the webview URL with appropriate theme parameters added","arguments":[{"name":"url","type":"string","comment":"URL"}]},{"kind":"class","name":"webViewMessageSent","type":"WebViewMessageSent","id":211046684,"comment":"Info about a sent inline webview message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"msg_id","type":"InputBotInlineMessageID","typeModifiers":{"predicate":"flags.0"},"comment":"Message ID"}]},{"kind":"class","name":"botMenuButtonDefault","type":"BotMenuButton","id":1966318984,"comment":"Placeholder bot menu button never returned to users: see the docs for more info.","arguments":[]},{"kind":"class","name":"botMenuButtonCommands","type":"BotMenuButton","id":1113113093,"comment":"Bot menu button that opens the bot command list when clicked.","arguments":[]},{"kind":"class","name":"botMenuButton","type":"BotMenuButton","id":3350559974,"comment":"Bot menu button that opens a web app when clicked.","arguments":[{"name":"text","type":"string","comment":"Title to be displayed on the menu button instead of 'Menu'"},{"name":"url","type":"string","comment":"URL of a web app to open when the user clicks on the button"}]},{"kind":"class","name":"account.savedRingtonesNotModified","type":"account.SavedRingtones","id":4227262641,"comment":"The notification sound list hasn't changed.","arguments":[]},{"kind":"class","name":"account.savedRingtones","type":"account.SavedRingtones","id":3253284037,"comment":"A list of saved notification sounds","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"ringtones","type":"Document","typeModifiers":{"isVector":true},"comment":"Saved notification sounds"}]},{"kind":"class","name":"notificationSoundDefault","type":"NotificationSound","id":2548612798,"comment":"Indicates the default notification sound should be used","arguments":[]},{"kind":"class","name":"notificationSoundNone","type":"NotificationSound","id":1863070943,"comment":"No notification sound should be used","arguments":[]},{"kind":"class","name":"notificationSoundLocal","type":"NotificationSound","id":2198575844,"comment":"Indicates a specific local notification sound should be used","arguments":[{"name":"title","type":"string","comment":"Notification sound title"},{"name":"data","type":"string","comment":"Notification sound identifier (arbitrary data used by the client to identify a specific local notification sound)"}]},{"kind":"class","name":"notificationSoundRingtone","type":"NotificationSound","id":4285300809,"comment":"A specific previously uploaded notification sound should be used","arguments":[{"name":"id","type":"long","comment":"Document ID of notification sound uploaded using {@link account.RawUploadRingtoneRequest}"}]},{"kind":"class","name":"account.savedRingtone","type":"account.SavedRingtone","id":3072737133,"comment":"The notification sound was already in MP3 format and was saved without any modification","arguments":[]},{"kind":"class","name":"account.savedRingtoneConverted","type":"account.SavedRingtone","id":523271863,"comment":"The notification sound was not in MP3 format and was successfully converted and saved, use the returned Document to refer to the notification sound from now on","arguments":[{"name":"document","type":"Document","comment":"The converted notification sound"}]},{"kind":"class","name":"attachMenuPeerTypeSameBotPM","type":"AttachMenuPeerType","id":2104224014,"comment":"The bot attachment menu entry is available in the chat with the bot that offers it","arguments":[]},{"kind":"class","name":"attachMenuPeerTypeBotPM","type":"AttachMenuPeerType","id":3274439194,"comment":"The bot attachment menu entry is available in private chats with other bots (excluding the bot that offers the current attachment menu)","arguments":[]},{"kind":"class","name":"attachMenuPeerTypePM","type":"AttachMenuPeerType","id":4047950623,"comment":"The bot attachment menu entry is available in private chats with other users (not bots)","arguments":[]},{"kind":"class","name":"attachMenuPeerTypeChat","type":"AttachMenuPeerType","id":84480319,"comment":"The bot attachment menu entry is available in groups and supergroups","arguments":[]},{"kind":"class","name":"attachMenuPeerTypeBroadcast","type":"AttachMenuPeerType","id":2080104188,"comment":"The bot attachment menu entry is available in channels","arguments":[]},{"kind":"class","name":"inputInvoiceMessage","type":"InputInvoice","id":3317000281,"comment":"An invoice contained in a {@link RawMessageMediaInvoice} message.","arguments":[{"name":"peer","type":"InputPeer","comment":"Chat where the invoice was sent"},{"name":"msg_id","type":"int","comment":"Message ID"}]},{"kind":"class","name":"inputInvoiceSlug","type":"InputInvoice","id":3274099439,"comment":"An invoice slug taken from an invoice deep link or from the premium_invoice_slug app config parameter ยป","arguments":[{"name":"slug","type":"string","comment":"The invoice slug"}]},{"kind":"class","name":"inputInvoicePremiumGiftCode","type":"InputInvoice","id":2560125965,"comment":"Used if the user wishes to start a channel giveaway or send some giftcodes to members of a channel, in exchange for boosts.","arguments":[{"name":"purpose","type":"InputStorePaymentPurpose","comment":"Should be populated with {@link RawInputStorePaymentPremiumGiveaway} for giveaways and {@link RawInputStorePaymentPremiumGiftCode} for gifts."},{"name":"option","type":"PremiumGiftCodeOption","comment":"Should be populated with one of the giveaway options returned by {@link payments.RawGetPremiumGiftCodeOptionsRequest}, see the giveaways ยป documentation for more info."}]},{"kind":"class","name":"inputInvoiceStars","id":497236696,"type":"InputInvoice","arguments":[{"name":"option","type":"StarsTopupOption"}]},{"kind":"class","name":"payments.exportedInvoice","type":"payments.ExportedInvoice","id":2932919257,"comment":"Exported invoice deep link","arguments":[{"name":"url","type":"string","comment":"Exported invoice deep link"}]},{"kind":"class","name":"messages.transcribedAudio","type":"messages.TranscribedAudio","id":3485063511,"comment":"Transcribed text from a voice message ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pending","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the transcription is partial because audio transcription is still in progress, if set the user may receive further {@link RawUpdateTranscribedAudio} updates with the updated transcription."},{"name":"transcription_id","type":"long","comment":"Transcription ID"},{"name":"text","type":"string","comment":"Transcripted text"},{"name":"trial_remains_num","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"For non-Premium users, this flag will be set, indicating the remaining transcriptions in the free trial period."},{"name":"trial_remains_until_date","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"For non-Premium users, this flag will be set, indicating the date when the trial_remains_num counter will be reset to the maximum value of transcribe_audio_trial_weekly_number."}]},{"kind":"class","name":"help.premiumPromo","type":"help.PremiumPromo","id":1395946908,"comment":"Telegram Premium promotion information\n\nNote that the video_sections+videos fields are a list of videos, and the corresponding premium feature identifiers.
\nThey're equivalent to a section => video dictionary, with keys from video_section and values from videos.
\nThe keys in video_sections correspond to a specific feature identifier, and the associated promotional video should be shown when the associated feature row is clicked.","arguments":[{"name":"status_text","type":"string","comment":"Description of the current state of the user's Telegram Premium subscription"},{"name":"status_entities","type":"MessageEntity","typeModifiers":{"isVector":true},"comment":"Message entities for styled text"},{"name":"video_sections","type":"string","typeModifiers":{"isVector":true},"comment":"A list of premium feature identifiers ยป, associated to each video"},{"name":"videos","type":"Document","typeModifiers":{"isVector":true},"comment":"A list of videos"},{"name":"period_options","type":"PremiumSubscriptionOption","typeModifiers":{"isVector":true},"comment":"Telegram Premium subscription options"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Related user information"}]},{"kind":"class","name":"inputStorePaymentPremiumSubscription","type":"InputStorePaymentPurpose","id":2792693350,"comment":"Info about a Telegram Premium purchase","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"restore","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Pass true if this is a restore of a Telegram Premium purchase; only for the App Store"},{"name":"upgrade","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Pass true if this is an upgrade from a monthly subscription to a yearly subscription; only for App Store"}]},{"kind":"class","name":"inputStorePaymentGiftPremium","type":"InputStorePaymentPurpose","id":1634697192,"comment":"Info about a gifted Telegram Premium purchase","arguments":[{"name":"user_id","type":"InputUser","comment":"The user to which the Telegram Premium subscription was gifted"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"amount","type":"long","comment":"Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}]},{"kind":"class","name":"inputStorePaymentPremiumGiftCode","type":"InputStorePaymentPurpose","id":2743099199,"comment":"Used to gift Telegram Premium subscriptions only to some specific subscribers of a channel or to some of our contacts, see here ยป for more info on giveaways and gifts.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"users","type":"InputUser","typeModifiers":{"isVector":true},"comment":"The users that will receive the Telegram Premium subscriptions."},{"name":"boost_peer","type":"InputPeer","typeModifiers":{"predicate":"flags.0"},"comment":"If set, the gifts will be sent on behalf of a channel we are an admin of, which will also assign some boosts to it. Otherwise, the gift will be sent directly from the currently logged in users, and we will gain some extra boost slots. See here ยป for more info on giveaways and gifts."},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"amount","type":"long","comment":"Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}]},{"kind":"class","name":"inputStorePaymentPremiumGiveaway","type":"InputStorePaymentPurpose","id":369444042,"comment":"Used to pay for a giveaway, see here ยป for more info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"only_new_subscribers","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, only new subscribers starting from the giveaway creation date will be able to participate to the giveaway."},{"name":"winners_are_visible","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, giveaway winners are public and will be listed in a {@link RawMessageMediaGiveawayResults} message that will be automatically sent to the channel once the giveaway ends."},{"name":"boost_peer","type":"InputPeer","comment":"The channel starting the giveaway, that the user must join to participate, that will receive the giveaway boosts; see here ยป for more info on giveaways."},{"name":"additional_peers","type":"InputPeer","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Additional channels that the user must join to participate to the giveaway can be specified here."},{"name":"countries_iso2","type":"string","typeModifiers":{"predicate":"flags.2","isVector":true},"comment":"The set of users that can participate to the giveaway can be restricted by passing here an explicit whitelist of up to giveaway_countries_max countries, specified as two-letter ISO 3166-1 alpha-2 country codes."},{"name":"prize_description","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"Can contain a textual description of additional giveaway prizes."},{"name":"random_id","type":"long","comment":"Random ID to avoid resending the giveaway"},{"name":"until_date","type":"int","comment":"The end date of the giveaway, must be at most giveaway_period_max seconds in the future; see here ยป for more info on giveaways."},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"amount","type":"long","comment":"Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}]},{"kind":"class","name":"inputStorePaymentStars","id":1326377183,"type":"InputStorePaymentPurpose","arguments":[{"name":"flags","type":"#"},{"name":"stars","type":"long"},{"name":"currency","type":"string"},{"name":"amount","type":"long"}]},{"kind":"class","name":"premiumGiftOption","type":"PremiumGiftOption","id":1958953753,"comment":"Telegram Premium gift option","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"months","type":"int","comment":"Duration of gifted Telegram Premium subscription"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"amount","type":"long","comment":"Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"bot_url","type":"string","comment":"An invoice deep link ยป to an invoice for in-app payment, using the official Premium bot; may be empty if direct payment isn't available."},{"name":"store_product","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"An identifier for the App Store/Play Store product associated with the Premium gift."}]},{"kind":"class","name":"paymentFormMethod","type":"PaymentFormMethod","id":2298016283,"comment":"Represents an additional payment method","arguments":[{"name":"url","type":"string","comment":"URL to open in a webview to process the payment"},{"name":"title","type":"string","comment":"Payment method description"}]},{"kind":"class","name":"emojiStatusEmpty","type":"EmojiStatus","id":769727150,"comment":"No emoji status is set","arguments":[]},{"kind":"class","name":"emojiStatus","type":"EmojiStatus","id":2459656605,"comment":"An emoji status","arguments":[{"name":"document_id","type":"long","comment":"Custom emoji document ID"}]},{"kind":"class","name":"emojiStatusUntil","type":"EmojiStatus","id":4197492935,"comment":"An emoji status valid until the specified date","arguments":[{"name":"document_id","type":"long","comment":"Custom emoji document ID"},{"name":"until","type":"int","comment":"This status is valid until this date"}]},{"kind":"class","name":"account.emojiStatusesNotModified","type":"account.EmojiStatuses","id":3498894917,"comment":"The server-side list of emoji statuses hasn't changed","arguments":[]},{"kind":"class","name":"account.emojiStatuses","type":"account.EmojiStatuses","id":2428790737,"comment":"A list of emoji statuses","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"statuses","type":"EmojiStatus","typeModifiers":{"isVector":true},"comment":"Emoji statuses"}]},{"kind":"class","name":"reactionEmpty","type":"Reaction","id":2046153753,"comment":"No reaction","arguments":[]},{"kind":"class","name":"reactionEmoji","type":"Reaction","id":455247544,"comment":"Normal emoji message reaction","arguments":[{"name":"emoticon","type":"string","comment":"Emoji"}]},{"kind":"class","name":"reactionCustomEmoji","type":"Reaction","id":2302016627,"comment":"Custom emoji message reaction","arguments":[{"name":"document_id","type":"long","comment":"Custom emoji document ID"}]},{"kind":"class","name":"chatReactionsNone","type":"ChatReactions","id":3942396604,"comment":"No reactions are allowed","arguments":[]},{"kind":"class","name":"chatReactionsAll","type":"ChatReactions","id":1385335754,"comment":"All reactions or all non-custom reactions are allowed","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"allow_custom","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to allow custom reactions"}]},{"kind":"class","name":"chatReactionsSome","type":"ChatReactions","id":1713193015,"comment":"Some reactions are allowed","arguments":[{"name":"reactions","type":"Reaction","typeModifiers":{"isVector":true},"comment":"Allowed set of reactions: the reactions_in_chat_max configuration field indicates the maximum number of reactions that can be specified in this field."}]},{"kind":"class","name":"messages.reactionsNotModified","type":"messages.Reactions","id":2960120799,"comment":"The server-side list of message reactions hasn't changed","arguments":[]},{"kind":"class","name":"messages.reactions","type":"messages.Reactions","id":3942512406,"comment":"List of message reactions","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"reactions","type":"Reaction","typeModifiers":{"isVector":true},"comment":"Reactions"}]},{"kind":"class","name":"emailVerifyPurposeLoginSetup","type":"EmailVerifyPurpose","id":1128644211,"comment":"Email verification purpose: setup login email","arguments":[{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"phone_code_hash","type":"string","comment":"Phone code hash as specified by the documentation"}]},{"kind":"class","name":"emailVerifyPurposeLoginChange","type":"EmailVerifyPurpose","id":1383932651,"comment":"Email verification purpose: change login email","arguments":[]},{"kind":"class","name":"emailVerifyPurposePassport","type":"EmailVerifyPurpose","id":3153401477,"comment":"Verify an email for use in telegram passport","arguments":[]},{"kind":"class","name":"emailVerificationCode","type":"EmailVerification","id":2452510121,"comment":"Email verification code","arguments":[{"name":"code","type":"string","comment":"Received verification code"}]},{"kind":"class","name":"emailVerificationGoogle","type":"EmailVerification","id":3683688130,"comment":"Google ID email verification token","arguments":[{"name":"token","type":"string","comment":"Token"}]},{"kind":"class","name":"emailVerificationApple","type":"EmailVerification","id":2530243837,"comment":"Apple ID email verification token","arguments":[{"name":"token","type":"string","comment":"Token"}]},{"kind":"class","name":"account.emailVerified","type":"account.EmailVerified","id":731303195,"comment":"The email was verified correctly.","arguments":[{"name":"email","type":"string","comment":"The verified email address."}]},{"kind":"class","name":"account.emailVerifiedLogin","type":"account.EmailVerified","id":3787132257,"comment":"The email was verified correctly, and a login code was just sent to it.","arguments":[{"name":"email","type":"string","comment":"The verified email address."},{"name":"sent_code","type":"auth.SentCode","comment":"Info about the sent login code"}]},{"kind":"class","name":"premiumSubscriptionOption","type":"PremiumSubscriptionOption","id":1596792306,"comment":"Describes a Telegram Premium subscription option","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"current","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this subscription option is currently in use."},{"name":"can_purchase_upgrade","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this subscription option can be used to upgrade the existing Telegram Premium subscription. When upgrading Telegram Premium subscriptions bought through stores, make sure that the store transaction ID is equal to transaction, to avoid upgrading someone else's account, if the client is currently logged into multiple accounts."},{"name":"transaction","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Identifier of the last in-store transaction for the currently used subscription on the current account."},{"name":"months","type":"int","comment":"Duration of subscription in months"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"amount","type":"long","comment":"Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"bot_url","type":"string","comment":"Deep link used to initiate payment"},{"name":"store_product","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Store product ID, only for official apps"}]},{"kind":"class","name":"sendAsPeer","type":"SendAsPeer","id":3088871476,"comment":"Indicates a peer that can be used to send messages","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"premium_required","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether a Telegram Premium account is required to send messages as this peer"},{"name":"peer","type":"Peer","comment":"Peer"}]},{"kind":"class","name":"messageExtendedMediaPreview","type":"MessageExtendedMedia","id":2908916936,"comment":"Extended media preview","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"w","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Width"},{"name":"h","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Height"},{"name":"thumb","type":"PhotoSize","typeModifiers":{"predicate":"flags.1"},"comment":"Thumbnail"},{"name":"video_duration","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Video duration"}]},{"kind":"class","name":"messageExtendedMedia","type":"MessageExtendedMedia","id":3997670500,"comment":"Extended media","arguments":[{"name":"media","type":"MessageMedia","comment":"Media"}]},{"kind":"class","name":"stickerKeyword","type":"StickerKeyword","id":4244550300,"comment":"Keywords for a certain sticker","arguments":[{"name":"document_id","type":"long","comment":"Sticker ID"},{"name":"keyword","type":"string","typeModifiers":{"isVector":true},"comment":"Keywords"}]},{"kind":"class","name":"username","type":"Username","id":3020371527,"comment":"Contains information about a username.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"editable","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the username is editable, meaning it wasn't bought on fragment."},{"name":"active","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the username is active."},{"name":"username","type":"string","comment":"The username."}]},{"kind":"class","name":"forumTopicDeleted","type":"ForumTopic","id":37687451,"comment":"Represents a deleted forum topic.","arguments":[{"name":"id","type":"int","comment":"The ID of the deleted forum topic."}]},{"kind":"class","name":"forumTopic","type":"ForumTopic","id":1903173033,"comment":"Represents a forum topic.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"my","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the topic was created by the current user"},{"name":"closed","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the topic is closed (no messages can be sent to it)"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the topic is pinned"},{"name":"short","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether this constructor is a reduced version of the full topic information.
If set, only the my, closed, id, date, title, icon_color, icon_emoji_id and from_id parameters will contain valid information.
Reduced info is usually only returned in topic-related admin log events ยป and in the {@link messages.RawChannelMessages} constructor: if needed, full information can be fetched using {@link channels.RawGetForumTopicsByIDRequest}."},{"name":"hidden","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether the topic is hidden (only valid for the \"General\" topic, id=1)"},{"name":"id","type":"int","comment":"Topic ID"},{"name":"date","type":"int","comment":"Topic creation date"},{"name":"title","type":"string","comment":"Topic title"},{"name":"icon_color","type":"int","comment":"If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F."},{"name":"icon_emoji_id","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"ID of the custom emoji used as topic icon."},{"name":"top_message","type":"int","comment":"ID of the last message that was sent to this topic"},{"name":"read_inbox_max_id","type":"int","comment":"Position up to which all incoming messages are read."},{"name":"read_outbox_max_id","type":"int","comment":"Position up to which all outgoing messages are read."},{"name":"unread_count","type":"int","comment":"Number of unread messages"},{"name":"unread_mentions_count","type":"int","comment":"Number of unread mentions"},{"name":"unread_reactions_count","type":"int","comment":"Number of unread reactions to messages you sent"},{"name":"from_id","type":"Peer","comment":"ID of the peer that created the topic"},{"name":"notify_settings","type":"PeerNotifySettings","comment":"Notification settings"},{"name":"draft","type":"DraftMessage","typeModifiers":{"predicate":"flags.4"},"comment":"Message draft"}]},{"kind":"class","name":"messages.forumTopics","type":"messages.ForumTopics","id":913709011,"comment":"Contains information about multiple forum topics","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"order_by_create_date","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the returned topics are ordered by creation date; if set, pagination by offset_date should use {@link RawForumTopic}.date; otherwise topics are ordered by the last message date, so paginate by the date of the message referenced by {@link RawForumTopic}.top_message."},{"name":"count","type":"int","comment":"Total number of topics matching query; may be more than the topics contained in topics, in which case pagination is required."},{"name":"topics","type":"ForumTopic","typeModifiers":{"isVector":true},"comment":"Forum topics"},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"Related messages (contains the messages mentioned by {@link RawForumTopic}.top_message)."},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Related chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Related users"},{"name":"pts","type":"int","comment":"Event count after generation"}]},{"kind":"class","name":"defaultHistoryTTL","type":"DefaultHistoryTTL","id":1135897376,"comment":"Contains info about the default value of the Time-To-Live setting, applied to all new chats.","arguments":[{"name":"period","type":"int","comment":"Time-To-Live setting applied to all new chats."}]},{"kind":"class","name":"exportedContactToken","type":"ExportedContactToken","id":1103040667,"comment":"Describes a temporary profile link.","arguments":[{"name":"url","type":"string","comment":"The temporary profile link."},{"name":"expires","type":"int","comment":"Its expiration date"}]},{"kind":"class","name":"requestPeerTypeUser","type":"RequestPeerType","id":1597737472,"comment":"Choose a user.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"bot","type":"Bool","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to allow choosing only bots."},{"name":"premium","type":"Bool","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to allow choosing only Premium users."}]},{"kind":"class","name":"requestPeerTypeChat","type":"RequestPeerType","id":3387977243,"comment":"Choose a chat or supergroup","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"creator","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to allow only choosing chats or supergroups that were created by the current user."},{"name":"bot_participant","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether to allow only choosing chats or supergroups where the bot is a participant."},{"name":"has_username","type":"Bool","typeModifiers":{"predicate":"flags.3"},"comment":"If specified, allows only choosing channels with or without a username, according to the value of Bool."},{"name":"forum","type":"Bool","typeModifiers":{"predicate":"flags.4"},"comment":"If specified, allows only choosing chats or supergroups that are or aren't forums, according to the value of Bool."},{"name":"user_admin_rights","type":"ChatAdminRights","typeModifiers":{"predicate":"flags.1"},"comment":"If specified, allows only choosing chats or supergroups where the current user is an admin with at least the specified admin rights."},{"name":"bot_admin_rights","type":"ChatAdminRights","typeModifiers":{"predicate":"flags.2"},"comment":"If specified, allows only choosing chats or supergroups where the bot is an admin with at least the specified admin rights."}]},{"kind":"class","name":"requestPeerTypeBroadcast","type":"RequestPeerType","id":865857388,"comment":"Choose a channel","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"creator","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to allow only choosing channels that were created by the current user."},{"name":"has_username","type":"Bool","typeModifiers":{"predicate":"flags.3"},"comment":"If specified, allows only choosing channels with or without a username, according to the value of Bool."},{"name":"user_admin_rights","type":"ChatAdminRights","typeModifiers":{"predicate":"flags.1"},"comment":"If specified, allows only choosing channels where the current user is an admin with at least the specified admin rights."},{"name":"bot_admin_rights","type":"ChatAdminRights","typeModifiers":{"predicate":"flags.2"},"comment":"If specified, allows only choosing channels where the bot is an admin with at least the specified admin rights."}]},{"kind":"class","name":"emojiListNotModified","type":"EmojiList","id":1209970170,"comment":"The list of custom emojis hasn't changed.","arguments":[]},{"kind":"class","name":"emojiList","type":"EmojiList","id":2048790993,"comment":"Represents a list of custom emojis.","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"document_id","type":"long","typeModifiers":{"isVector":true},"comment":"Custom emoji IDs"}]},{"kind":"class","name":"emojiGroup","type":"EmojiGroup","id":2056961449,"comment":"Represents an emoji category.","arguments":[{"name":"title","type":"string","comment":"Category name, i.e. \"Animals\", \"Flags\", \"Faces\" and so on..."},{"name":"icon_emoji_id","type":"long","comment":"A single custom emoji used as preview for the category."},{"name":"emoticons","type":"string","typeModifiers":{"isVector":true},"comment":"A list of UTF-8 emojis, matching the category."}]},{"kind":"class","name":"emojiGroupGreeting","type":"EmojiGroup","id":2161274055,"arguments":[{"name":"title","type":"string"},{"name":"icon_emoji_id","type":"long"},{"name":"emoticons","type":"string","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"emojiGroupPremium","type":"EmojiGroup","id":154914612,"arguments":[{"name":"title","type":"string"},{"name":"icon_emoji_id","type":"long"}]},{"kind":"class","name":"messages.emojiGroupsNotModified","type":"messages.EmojiGroups","id":1874111879,"comment":"The list of emoji categories hasn't changed.","arguments":[]},{"kind":"class","name":"messages.emojiGroups","type":"messages.EmojiGroups","id":2283780427,"comment":"Represents a list of emoji categories.","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"},{"name":"groups","type":"EmojiGroup","typeModifiers":{"isVector":true},"comment":"A list of emoji categories."}]},{"kind":"class","name":"textWithEntities","type":"TextWithEntities","id":1964978502,"comment":"Styled text with message entities","arguments":[{"name":"text","type":"string","comment":"Text"},{"name":"entities","type":"MessageEntity","typeModifiers":{"isVector":true},"comment":"Message entities for styled text"}]},{"kind":"class","name":"messages.translateResult","type":"messages.TranslatedText","id":870003448,"comment":"Translated text with entities","arguments":[{"name":"result","type":"TextWithEntities","typeModifiers":{"isVector":true},"comment":"Text+entities, for each input message."}]},{"kind":"class","name":"autoSaveSettings","type":"AutoSaveSettings","id":3360175310,"comment":"Media autosave settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"photos","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether photos should be autosaved to the gallery."},{"name":"videos","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether videos should be autosaved to the gallery."},{"name":"video_max_size","type":"long","typeModifiers":{"predicate":"flags.2"},"comment":"If set, specifies a size limit for autosavable videos"}]},{"kind":"class","name":"autoSaveException","type":"AutoSaveException","id":2170563911,"comment":"Peer-specific media autosave settings","arguments":[{"name":"peer","type":"Peer","comment":"The peer"},{"name":"settings","type":"AutoSaveSettings","comment":"Media autosave settings"}]},{"kind":"class","name":"account.autoSaveSettings","type":"account.AutoSaveSettings","id":1279133341,"comment":"Contains media autosave settings","arguments":[{"name":"users_settings","type":"AutoSaveSettings","comment":"Default media autosave settings for private chats"},{"name":"chats_settings","type":"AutoSaveSettings","comment":"Default media autosave settings for groups and supergroups"},{"name":"broadcasts_settings","type":"AutoSaveSettings","comment":"Default media autosave settings for channels"},{"name":"exceptions","type":"AutoSaveException","typeModifiers":{"isVector":true},"comment":"Peer-specific granular autosave settings"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats mentioned in the peer-specific granular autosave settings"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in the peer-specific granular autosave settings"}]},{"kind":"class","name":"help.appConfigNotModified","type":"help.AppConfig","id":2094949405,"comment":"The client configuration parameters haven't changed","arguments":[]},{"kind":"class","name":"help.appConfig","type":"help.AppConfig","id":3709368366,"comment":"Contains various client configuration parameters","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"},{"name":"config","type":"JSONValue","comment":"Client configuration parameters"}]},{"kind":"class","name":"inputBotAppID","type":"InputBotApp","id":2837495162,"comment":"Used to fetch information about a named Mini App by its ID","arguments":[{"name":"id","type":"long","comment":"named Mini App ID."},{"name":"access_hash","type":"long","comment":"Access hash, obtained from the {@link RawBotApp} constructor."}]},{"kind":"class","name":"inputBotAppShortName","type":"InputBotApp","id":2425095175,"comment":"Used to fetch information about a named Mini App by its short name","arguments":[{"name":"bot_id","type":"InputUser","comment":"ID of the bot that owns the bot mini app"},{"name":"short_name","type":"string","comment":"Short name, obtained from a named Mini App deep link"}]},{"kind":"class","name":"botAppNotModified","type":"BotApp","id":1571189943,"comment":"Bot app info hasn't changed.","arguments":[]},{"kind":"class","name":"botApp","type":"BotApp","id":2516373974,"comment":"Contains information about a named Mini App.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"long","comment":"bot mini app ID"},{"name":"access_hash","type":"long","comment":"bot mini app access hash"},{"name":"short_name","type":"string","comment":"bot mini app short name, used to generate named Mini App deep links."},{"name":"title","type":"string","comment":"bot mini app title."},{"name":"description","type":"string","comment":"bot mini app description."},{"name":"photo","type":"Photo","comment":"bot mini app photo."},{"name":"document","type":"Document","typeModifiers":{"predicate":"flags.0"},"comment":"bot mini app animation."},{"name":"hash","type":"long","comment":"Hash to pass to {@link messages.RawGetBotAppRequest}, to avoid refetching bot app info if it hasn't changed."}]},{"kind":"class","name":"messages.botApp","type":"messages.BotApp","id":3947933173,"comment":"Contains information about a named Mini App","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"inactive","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the web app was never used by the user, and confirmation must be asked from the user before opening it."},{"name":"request_write_access","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"The bot is asking permission to send messages to the user: if the user agrees, set the write_allowed flag when invoking {@link messages.RawRequestAppWebViewRequest}."},{"name":"has_settings","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Deprecated flag, can be ignored."},{"name":"app","type":"BotApp","comment":"Bot app information"}]},{"kind":"class","name":"appWebViewResultUrl","type":"AppWebViewResult","id":1008422669,"comment":"Contains the link that must be used to open a named Mini App.","arguments":[{"name":"url","type":"string","comment":"The URL to open"}]},{"kind":"class","name":"inlineBotWebView","type":"InlineBotWebView","id":3044185557,"comment":"Specifies an inline mode mini app button, shown on top of the inline query results list.","arguments":[{"name":"text","type":"string","comment":"Text of the button"},{"name":"url","type":"string","comment":"Webapp URL"}]},{"kind":"class","name":"readParticipantDate","type":"ReadParticipantDate","id":1246753138,"comment":"Contains info about when a certain participant has read a message","arguments":[{"name":"user_id","type":"int53","comment":"User ID"},{"name":"date","type":"int","comment":"When the user read the message"}]},{"kind":"class","name":"inputChatlistDialogFilter","type":"InputChatlist","id":4091599411,"comment":"Folder ID","arguments":[{"name":"filter_id","type":"int","comment":"Folder ID"}]},{"kind":"class","name":"exportedChatlistInvite","type":"ExportedChatlistInvite","id":206668204,"comment":"Exported chat folder deep link ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"title","type":"string","comment":"Name of the link"},{"name":"url","type":"string","comment":"The chat folder deep link ยป."},{"name":"peers","type":"Peer","typeModifiers":{"isVector":true},"comment":"Peers to import"}]},{"kind":"class","name":"chatlists.exportedChatlistInvite","type":"chatlists.ExportedChatlistInvite","id":283567014,"comment":"Info about an exported chat folder deep link ยป.","arguments":[{"name":"filter","type":"DialogFilter","comment":"Folder ID"},{"name":"invite","type":"ExportedChatlistInvite","comment":"The exported chat folder deep link ยป."}]},{"kind":"class","name":"chatlists.exportedInvites","type":"chatlists.ExportedInvites","id":279670215,"comment":"Info about multiple chat folder deep links ยป.","arguments":[{"name":"invites","type":"ExportedChatlistInvite","typeModifiers":{"isVector":true},"comment":"The chat folder deep links ยป."},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Related chat information"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Related user information"}]},{"kind":"class","name":"chatlists.chatlistInviteAlready","type":"chatlists.ChatlistInvite","id":4203214425,"comment":"Updated info about a chat folder deep link ยป we already imported.","arguments":[{"name":"filter_id","type":"int","comment":"ID of the imported folder"},{"name":"missing_peers","type":"Peer","typeModifiers":{"isVector":true},"comment":"New peers to be imported"},{"name":"already_peers","type":"Peer","typeModifiers":{"isVector":true},"comment":"Peers that were already imported"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Related chat information"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Related user information"}]},{"kind":"class","name":"chatlists.chatlistInvite","type":"chatlists.ChatlistInvite","id":500007837,"comment":"Info about a chat folder deep link ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"title","type":"string","comment":"Name of the link"},{"name":"emoticon","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Emoji to use as icon for the folder."},{"name":"peers","type":"Peer","typeModifiers":{"isVector":true},"comment":"Supergroups and channels to join"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Related chat information"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Related user information"}]},{"kind":"class","name":"chatlists.chatlistUpdates","type":"chatlists.ChatlistUpdates","id":2478671757,"comment":"Updated information about a chat folder deep link ยป.","arguments":[{"name":"missing_peers","type":"Peer","typeModifiers":{"isVector":true},"comment":"New peers to join"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Related chat information"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Related user information"}]},{"kind":"class","name":"bots.botInfo","type":"bots.BotInfo","id":3903288752,"comment":"Localized information about a bot.","arguments":[{"name":"name","type":"string","comment":"Bot name"},{"name":"about","type":"string","comment":"Bot about text"},{"name":"description","type":"string","comment":"Bot description"}]},{"kind":"class","name":"messagePeerVote","type":"MessagePeerVote","id":3066834268,"comment":"How a peer voted in a poll","arguments":[{"name":"peer","type":"Peer","comment":"Peer ID"},{"name":"option","type":"bytes","comment":"The option chosen by the peer"},{"name":"date","type":"int","comment":"When did the peer cast the vote"}]},{"kind":"class","name":"messagePeerVoteInputOption","type":"MessagePeerVote","id":1959634180,"comment":"How a peer voted in a poll (reduced constructor, returned if an option was provided to {@link messages.RawGetPollVotesRequest})","arguments":[{"name":"peer","type":"Peer","comment":"The peer that voted for the queried option"},{"name":"date","type":"int","comment":"When did the peer cast the vote"}]},{"kind":"class","name":"messagePeerVoteMultiple","type":"MessagePeerVote","id":1177089766,"comment":"How a peer voted in a multiple-choice poll","arguments":[{"name":"peer","type":"Peer","comment":"Peer ID"},{"name":"options","type":"bytes","typeModifiers":{"isVector":true},"comment":"Options chosen by the peer"},{"name":"date","type":"int","comment":"When did the peer cast their votes"}]},{"kind":"class","name":"storyViews","type":"StoryViews","id":2371443926,"comment":"Aggregated view and reaction information of a story.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_viewers","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, indicates that the viewers list is currently viewable, and was not yet deleted because the story has expired while the user didn't have a Premium account."},{"name":"views_count","type":"int","comment":"View counter of the story"},{"name":"forwards_count","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Forward counter of the story"},{"name":"reactions","type":"ReactionCount","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"All reactions sent to this story"},{"name":"reactions_count","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Number of reactions added to the story"},{"name":"recent_viewers","type":"int53","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"User IDs of some recent viewers of the story"}]},{"kind":"class","name":"storyItemDeleted","type":"StoryItem","id":1374088783,"comment":"Represents a previously active story, that was deleted","arguments":[{"name":"id","type":"int","comment":"Story ID"}]},{"kind":"class","name":"storyItemSkipped","type":"StoryItem","id":4289579283,"comment":"Represents an active story, whose full information was omitted for space and performance reasons; use {@link stories.RawGetStoriesByIDRequest} to fetch full info about the skipped story when and if needed.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"close_friends","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"Whether this story can only be viewed by our close friends, see here ยป for more info"},{"name":"id","type":"int","comment":"Story ID"},{"name":"date","type":"int","comment":"When was the story posted."},{"name":"expire_date","type":"int","comment":"When does the story expire."}]},{"kind":"class","name":"storyItem","id":2041735716,"type":"StoryItem","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether this story is pinned on the user's profile"},{"name":"public","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Whether this story is public and can be viewed by everyone"},{"name":"close_friends","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"Whether this story can only be viewed by our close friends, see here ยป for more info"},{"name":"min","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"Full information about this story was omitted for space and performance reasons; use {@link stories.RawGetStoriesByIDRequest} to fetch full info about this story when and if needed."},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"Whether this story is protected and thus cannot be forwarded; clients should also prevent users from saving attached media (i.e. videos should only be streamed, photos should be kept in RAM, et cetera)."},{"name":"edited","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"Indicates whether the story was edited."},{"name":"contacts","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"Whether this story can only be viewed by our contacts"},{"name":"selected_contacts","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"Whether this story can only be viewed by a select list of our contacts"},{"name":"out","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"indicates whether we sent this story."},{"name":"id","type":"int","comment":"ID of the story."},{"name":"date","type":"int","comment":"When was the story posted."},{"name":"from_id","type":"Peer","typeModifiers":{"predicate":"flags.18"}},{"name":"fwd_from","type":"StoryFwdHeader","typeModifiers":{"predicate":"flags.17"},"comment":"For reposted stories ยป, contains info about the original story."},{"name":"expire_date","type":"int","comment":"When does the story expire."},{"name":"caption","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Story caption."},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"},{"name":"media","type":"MessageMedia","comment":"Story media."},{"name":"media_areas","type":"MediaArea","typeModifiers":{"predicate":"flags.14","isVector":true},"comment":"List of media areas, see here ยป for more info on media areas."},{"name":"privacy","type":"PrivacyRule","typeModifiers":{"predicate":"flags.2","isVector":true},"comment":"Privacy rules indicating who can and can't view this story"},{"name":"views","type":"StoryViews","typeModifiers":{"predicate":"flags.3"},"comment":"View date and reaction information"},{"name":"sent_reaction","type":"Reaction","typeModifiers":{"predicate":"flags.15"},"comment":"The reaction we sent."}],"comment":"Represents a story."},{"kind":"class","name":"stories.allStoriesNotModified","type":"stories.AllStories","id":291044926,"comment":"The list of active (or active and hidden) stories has not changed.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"state","type":"string","comment":"State to use to ask for updates"},{"name":"stealth_mode","type":"StoriesStealthMode","comment":"Current stealth mode information"}]},{"kind":"class","name":"stories.allStories","type":"stories.AllStories","id":1862033025,"comment":"Full list of active (or active and hidden) stories.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_more","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether more results can be fetched as described here ยป."},{"name":"count","type":"int","comment":"Total number of active (or active and hidden) stories"},{"name":"state","type":"string","comment":"State to use for pagination"},{"name":"peer_stories","type":"PeerStories","typeModifiers":{"isVector":true},"comment":"Stories"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"},{"name":"stealth_mode","type":"StoriesStealthMode","comment":"Current stealth mode information"}]},{"kind":"class","name":"stories.stories","id":1673780490,"type":"stories.Stories","arguments":[{"name":"flags","type":"#"},{"name":"count","type":"int","comment":"Total number of stories that can be fetched"},{"name":"stories","type":"StoryItem","typeModifiers":{"isVector":true},"comment":"Stories"},{"name":"pinned_to_top","type":"int","typeModifiers":{"predicate":"flags.0","isVector":true}},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}],"comment":"List of stories"},{"kind":"class","name":"storyView","type":"StoryView","id":2965236421,"comment":"Story view date and reaction information","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"blocked","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether we have completely blocked this user, including from viewing more of our stories."},{"name":"blocked_my_stories_from","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether we have blocked this user from viewing more of our stories."},{"name":"user_id","type":"int53","comment":"The user that viewed the story"},{"name":"date","type":"int","comment":"When did the user view the story"},{"name":"reaction","type":"Reaction","typeModifiers":{"predicate":"flags.2"},"comment":"If present, contains the reaction that the user left on the story"}]},{"kind":"class","name":"storyViewPublicForward","type":"StoryView","id":2424530699,"comment":"A certain peer has forwarded the story as a message to a public chat or channel.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"blocked","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether we have completely blocked this user, including from viewing more of our stories."},{"name":"blocked_my_stories_from","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether we have blocked this user from viewing more of our stories."},{"name":"message","type":"Message","comment":"The message with the forwarded story."}]},{"kind":"class","name":"storyViewPublicRepost","type":"StoryView","id":3178549065,"comment":"A certain peer has reposted the story.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"blocked","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether we have completely blocked this user, including from viewing more of our stories."},{"name":"blocked_my_stories_from","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether we have blocked this user from viewing more of our stories."},{"name":"peer_id","type":"Peer","comment":"The peer that reposted the story."},{"name":"story","type":"StoryItem","comment":"The reposted story."}]},{"kind":"class","name":"stories.storyViewsList","type":"stories.StoryViewsList","id":1507299269,"comment":"Reaction and view counters for a story","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"count","type":"int","comment":"Total number of results that can be fetched"},{"name":"views_count","type":"int","comment":"Total number of story views"},{"name":"forwards_count","type":"int","comment":"Total number of story forwards/reposts"},{"name":"reactions_count","type":"int","comment":"Number of reactions that were added to the story"},{"name":"views","type":"StoryView","typeModifiers":{"isVector":true},"comment":"Story view date and reaction information"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Offset for pagination"}]},{"kind":"class","name":"stories.storyViews","type":"stories.StoryViews","id":3734957341,"comment":"Reaction and view counters for a list of stories","arguments":[{"name":"views","type":"StoryViews","typeModifiers":{"isVector":true},"comment":"View date and reaction information of multiple stories"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"inputReplyToMessage","type":"InputReplyTo","id":583071445,"comment":"Reply to a message.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"reply_to_msg_id","type":"int","comment":"The message ID to reply to."},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"This field must contain the topic ID only when replying to messages in forum topics different from the \"General\" topic (i.e. reply_to_msg_id is set and reply_to_msg_id != topicID and topicID != 1).
If the replied-to message is deleted before the method finishes execution, the value in this field will be used to send the message to the correct topic, instead of the \"General\" topic."},{"name":"reply_to_peer_id","type":"InputPeer","typeModifiers":{"predicate":"flags.1"},"comment":"Used to reply to messages sent to another chat (specified here), can only be used for non-protected chats and messages."},{"name":"quote_text","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Used to quote-reply to only a certain section (specified here) of the original message. The maximum UTF-8 length for quotes is specified in the quote_length_max config key."},{"name":"quote_entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Message entities for styled text from the quote_text field."},{"name":"quote_offset","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Offset of the message quote_text within the original message (in UTF-16 code units)."}]},{"kind":"class","name":"inputReplyToStory","id":1484862010,"type":"InputReplyTo","arguments":[{"name":"peer","type":"InputPeer"},{"name":"story_id","type":"int","comment":"ID of the story to reply to."}],"comment":"Reply to a story."},{"kind":"class","name":"exportedStoryLink","type":"ExportedStoryLink","id":1070138683,"comment":"Represents a story deep link.","arguments":[{"name":"link","type":"string","comment":"The story deep link."}]},{"kind":"class","name":"storiesStealthMode","type":"StoriesStealthMode","id":1898850301,"comment":"Information about the current stealth mode session.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"active_until_date","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"The date up to which stealth mode will be active."},{"name":"cooldown_until_date","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"The date starting from which the user will be allowed to re-enable stealth mode again."}]},{"kind":"class","name":"mediaAreaCoordinates","type":"MediaAreaCoordinates","id":64088654,"comment":"Coordinates and size of a clicable rectangular area on top of a story.","arguments":[{"name":"x","type":"double","comment":"The abscissa of the rectangle's center, as a percentage of the media width (0-100)."},{"name":"y","type":"double","comment":"The ordinate of the rectangle's center, as a percentage of the media height (0-100)."},{"name":"w","type":"double","comment":"The width of the rectangle, as a percentage of the media width (0-100)."},{"name":"h","type":"double","comment":"The height of the rectangle, as a percentage of the media height (0-100)."},{"name":"rotation","type":"double","comment":"Clockwise rotation angle of the rectangle, in degrees (0-360)."}]},{"kind":"class","name":"mediaAreaVenue","type":"MediaArea","id":3196246940,"comment":"Represents a location tag attached to a story, with additional venue information.","arguments":[{"name":"coordinates","type":"MediaAreaCoordinates","comment":"The size and location of the media area corresponding to the location sticker on top of the story media."},{"name":"geo","type":"GeoPoint","comment":"Coordinates of the venue"},{"name":"title","type":"string","comment":"Venue name"},{"name":"address","type":"string","comment":"Address"},{"name":"provider","type":"string","comment":"Venue provider: currently only \"foursquare\" and \"gplaces\" need to be supported."},{"name":"venue_id","type":"string","comment":"Venue ID in the provider's database"},{"name":"venue_type","type":"string","comment":"Venue type in the provider's database"}]},{"kind":"class","name":"inputMediaAreaVenue","type":"MediaArea","id":2994872703,"comment":"Represents a location tag attached to a story, with additional venue information.","arguments":[{"name":"coordinates","type":"MediaAreaCoordinates","comment":"The size and location of the media area corresponding to the location sticker on top of the story media."},{"name":"query_id","type":"long","comment":"The query_id from {@link messages.RawBotResults}, see here ยป for more info."},{"name":"result_id","type":"string","comment":"The id of the chosen result, see here ยป for more info."}]},{"kind":"class","name":"mediaAreaGeoPoint","type":"MediaArea","id":3750443810,"comment":"Represents a geolocation tag attached to a story.","arguments":[{"name":"coordinates","type":"MediaAreaCoordinates","comment":"The size and position of the media area corresponding to the location sticker on top of the story media."},{"name":"geo","type":"GeoPoint","comment":"Coordinates of the geolocation tag."}]},{"kind":"class","name":"mediaAreaSuggestedReaction","type":"MediaArea","id":340088945,"comment":"Represents a reaction bubble.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the reaction bubble has a dark background."},{"name":"flipped","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the reaction bubble is mirrored (see here ยป for more info)."},{"name":"coordinates","type":"MediaAreaCoordinates","comment":"The coordinates of the media area corresponding to the reaction button."},{"name":"reaction","type":"Reaction","comment":"The reaction that should be sent when this area is clicked."}]},{"kind":"class","name":"mediaAreaChannelPost","type":"MediaArea","id":1996756655,"comment":"Represents a channel post.","arguments":[{"name":"coordinates","type":"MediaAreaCoordinates","comment":"The size and location of the media area corresponding to the location sticker on top of the story media."},{"name":"channel_id","type":"int53","comment":"The channel that posted the message"},{"name":"msg_id","type":"int","comment":"ID of the channel message"}]},{"kind":"class","name":"inputMediaAreaChannelPost","type":"MediaArea","id":577893055,"comment":"Represents a channel post","arguments":[{"name":"coordinates","type":"MediaAreaCoordinates","comment":"The size and location of the media area corresponding to the location sticker on top of the story media."},{"name":"channel","type":"InputChannel","comment":"The channel that posted the message"},{"name":"msg_id","type":"int","comment":"ID of the channel message"}]},{"kind":"class","name":"peerStories","type":"PeerStories","id":2587224473,"comment":"Stories associated to a peer","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"Peer","comment":"The peer"},{"name":"max_read_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If set, contains the ID of the maximum read story"},{"name":"stories","type":"StoryItem","typeModifiers":{"isVector":true},"comment":"Stories"}]},{"kind":"class","name":"stories.peerStories","type":"stories.PeerStories","id":3404105576,"comment":"Active story list of a specific peer.","arguments":[{"name":"stories","type":"PeerStories","comment":"Stories"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"messages.webPage","type":"messages.WebPage","id":4250800829,"comment":"Represents an Instant View webpage.","arguments":[{"name":"webpage","type":"WebPage","comment":"The instant view webpage."},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats mentioned in the webpage."},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in the webpage."}]},{"kind":"class","name":"premiumGiftCodeOption","type":"PremiumGiftCodeOption","id":629052971,"comment":"Contains info about a giveaway/gift option.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"users","type":"int","comment":"Number of users which will be able to activate the gift codes."},{"name":"months","type":"int","comment":"Duration in months of each gifted Telegram Premium subscription."},{"name":"store_product","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Identifier of the store product associated with the option, official apps only."},{"name":"store_quantity","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Number of times the store product must be paid"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"amount","type":"long","comment":"Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}]},{"kind":"class","name":"payments.checkedGiftCode","type":"payments.CheckedGiftCode","id":675942550,"comment":"Contains info about a Telegram Premium giftcode link.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"via_giveaway","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this giftcode was created by a giveaway."},{"name":"from_id","type":"Peer","typeModifiers":{"predicate":"flags.4"},"comment":"The peer that created the gift code."},{"name":"giveaway_msg_id","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Message ID of the giveaway in the channel specified in from_id."},{"name":"to_id","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"The destination user of the gift."},{"name":"date","type":"int","comment":"Creation date of the gift code."},{"name":"months","type":"int","comment":"Duration in months of the gifted Telegram Premium subscription."},{"name":"used_date","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"When was the giftcode imported, if it was imported."},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"payments.giveawayInfo","type":"payments.GiveawayInfo","id":1130879648,"comment":"Contains info about an ongoing giveaway.\n\nIf neither the participating, joined_too_early_date, admin_disallowed_chat_id or disallowed_country flags are set, the user is not currently participating in the giveaway but could participate by joining all the channels specified in the {@link RawMessageMediaGiveaway}.channels field.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"participating","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"The current user is participating in the giveaway."},{"name":"preparing_results","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, the giveaway has ended and the results are being prepared."},{"name":"start_date","type":"int","comment":"When was the giveaway started"},{"name":"joined_too_early_date","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"The current user can't participate in the giveaway, because they were already a member of the channel when the giveaway started, and the only_new_subscribers was set when starting the giveaway."},{"name":"admin_disallowed_chat_id","type":"long","typeModifiers":{"predicate":"flags.2"},"comment":"If set, the current user can't participate in the giveaway, because they are an administrator in one of the channels (ID specified in this flag) that created the giveaway."},{"name":"disallowed_country","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"If set, the current user can't participate in this giveaway, because their phone number is from the specified disallowed country (specified as a two-letter ISO 3166-1 alpha-2 country code)."}]},{"kind":"class","name":"payments.giveawayInfoResults","type":"payments.GiveawayInfo","id":13456752,"comment":"A giveaway has ended.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"winner","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether we're one of the winners of this giveaway."},{"name":"refunded","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the giveaway was canceled and was fully refunded."},{"name":"start_date","type":"int","comment":"Start date of the giveaway"},{"name":"gift_code_slug","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"If we're one of the winners of this giveaway, contains the Premium gift code, see here ยป for more info on the full giveaway flow."},{"name":"finish_date","type":"int","comment":"End date of the giveaway. May be bigger than the end date specified in parameters of the giveaway."},{"name":"winners_count","type":"int","comment":"Number of winners in the giveaway"},{"name":"activated_count","type":"int","comment":"Number of winners, which activated their gift codes."}]},{"kind":"class","name":"prepaidGiveaway","type":"PrepaidGiveaway","id":2991824212,"comment":"Contains info about a prepaid giveaway ยป.","arguments":[{"name":"id","type":"long","comment":"Prepaid giveaway ID."},{"name":"months","type":"int","comment":"Duration in months of each gifted Telegram Premium subscription."},{"name":"quantity","type":"int","comment":"Number of given away Telegram Premium subscriptions."},{"name":"date","type":"int","comment":"Payment date."}]},{"kind":"class","name":"boost","type":"Boost","id":706514033,"comment":"Info about one or more boosts applied by a specific user.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"gift","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this boost was applied because the channel directly gifted a subscription to the user."},{"name":"giveaway","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this boost was applied because the user was chosen in a giveaway started by the channel."},{"name":"unclaimed","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, the user hasn't yet invoked {@link payments.RawApplyGiftCodeRequest} to claim a subscription gifted directly or in a giveaway by the channel."},{"name":"id","type":"string","comment":"Unique ID for this set of boosts."},{"name":"user_id","type":"int53","typeModifiers":{"predicate":"flags.0"},"comment":"ID of the user that applied the boost."},{"name":"giveaway_msg_id","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"The message ID of the giveaway"},{"name":"date","type":"int","comment":"When was the boost applied"},{"name":"expires","type":"int","comment":"When does the boost expire"},{"name":"used_gift_slug","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"The created Telegram Premium gift code, only set if either gift or giveaway are set AND it is either a gift code for the currently logged in user or if it was already claimed."},{"name":"multiplier","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"If set, this boost counts as multiplier boosts, otherwise it counts as a single boost."}]},{"kind":"class","name":"premium.boostsList","type":"premium.BoostsList","id":2264424764,"comment":"List of boosts that were applied to a peer by multiple users.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"count","type":"int","comment":"Total number of results"},{"name":"boosts","type":"Boost","typeModifiers":{"isVector":true},"comment":"Boosts"},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Offset that can be used for pagination."},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"myBoost","type":"MyBoost","id":3293069660,"comment":"Contains information about a single boost slot ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"slot","type":"int","comment":"Boost slot ID ยป"},{"name":"peer","type":"Peer","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates this slot is currently occupied, i.e. we are boosting this peer.
Note that we can assign multiple boost slots to the same peer."},{"name":"date","type":"int","comment":"When (unixtime) we started boosting the peer, 0 otherwise."},{"name":"expires","type":"int","comment":"Indicates the (unixtime) expiration date of the boost in peer (0 if peer is not set)."},{"name":"cooldown_until_date","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"If peer is set, indicates the (unixtime) date after which this boost can be reassigned to another channel."}]},{"kind":"class","name":"premium.myBoosts","type":"premium.MyBoosts","id":2598512866,"comment":"A list of peers we are currently boosting, and how many boost slots we have left.","arguments":[{"name":"my_boosts","type":"MyBoost","typeModifiers":{"isVector":true},"comment":"Info about boosted peers and remaining boost slots."},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Referenced chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Referenced users"}]},{"kind":"class","name":"premium.boostsStatus","type":"premium.BoostsStatus","id":1230586490,"comment":"Contains info about the current boost status of a peer.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"my_boost","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether we're currently boosting this channel, my_boost_slots will also be set."},{"name":"level","type":"int","comment":"The current boost level of the channel."},{"name":"current_level_boosts","type":"int","comment":"The number of boosts acquired so far in the current level."},{"name":"boosts","type":"int","comment":"Total number of boosts acquired so far."},{"name":"gift_boosts","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"The number of boosts acquired from created Telegram Premium gift codes and giveaways; only returned to channel admins."},{"name":"next_level_boosts","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Total number of boosts needed to reach the next level; if absent, the next level isn't available."},{"name":"premium_audience","type":"StatsPercentValue","typeModifiers":{"predicate":"flags.1"},"comment":"Only returned to channel admins: contains the approximated number of Premium users subscribed to the channel, related to the total number of subscribers."},{"name":"boost_url","type":"string","comment":"Boost deep link ยป that can be used to boost the chat."},{"name":"prepaid_giveaways","type":"PrepaidGiveaway","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"A list of prepaid giveaways available for the chat; only returned to channel admins."},{"name":"my_boost_slots","type":"int","typeModifiers":{"predicate":"flags.2","isVector":true},"comment":"Indicates which of our boost slots we've assigned to this peer (populated if my_boost is set)."}]},{"kind":"class","name":"storyFwdHeader","type":"StoryFwdHeader","id":3089555792,"comment":"Contains info about the original poster of a reposted story.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"modified","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the story media was modified before reposting it (for example by overlaying a round video with a reaction)."},{"name":"from","type":"Peer","typeModifiers":{"predicate":"flags.0"},"comment":"Peer that originally posted the story; will be empty for stories forwarded from a user with forwards privacy enabled, in which case from_name will be set, instead."},{"name":"from_name","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Will be set for stories forwarded from a user with forwards privacy enabled, in which case from will also be empty."},{"name":"story_id","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":", contains the story ID"}]},{"kind":"class","name":"postInteractionCountersMessage","type":"PostInteractionCounters","id":3875901055,"comment":"Interaction counters for a message.","arguments":[{"name":"msg_id","type":"int","comment":"Message ID"},{"name":"views","type":"int","comment":"Number of views"},{"name":"forwards","type":"int","comment":"Number of forwards to public channels"},{"name":"reactions","type":"int","comment":"Number of reactions"}]},{"kind":"class","name":"postInteractionCountersStory","type":"PostInteractionCounters","id":2319978023,"comment":"Interaction counters for a story.","arguments":[{"name":"story_id","type":"int","comment":"Story ID"},{"name":"views","type":"int","comment":"Number of views"},{"name":"forwards","type":"int","comment":"Number of forwards and reposts to public chats and channels"},{"name":"reactions","type":"int","comment":"Number of reactions"}]},{"kind":"class","name":"stats.storyStats","type":"stats.StoryStats","id":1355613820,"comment":"Contains statistics about a story.","arguments":[{"name":"views_graph","type":"StatsGraph","comment":"A graph containing the number of story views and shares"},{"name":"reactions_by_emotion_graph","type":"StatsGraph","comment":"A bar graph containing the number of story reactions categorized by \"emotion\" (i.e. Positive, Negative, Other, etc...)"}]},{"kind":"class","name":"publicForwardMessage","type":"PublicForward","id":32685898,"comment":"Contains info about a forward of a story as a message.","arguments":[{"name":"message","type":"Message","comment":"Info about the message with the reposted story."}]},{"kind":"class","name":"publicForwardStory","type":"PublicForward","id":3992169936,"comment":"Contains info about a forward of a story as a repost by a public channel.","arguments":[{"name":"peer","type":"Peer","comment":"The channel that reposted the story."},{"name":"story","type":"StoryItem","comment":"The reposted story (may be different from the original story)."}]},{"kind":"class","name":"stats.publicForwards","type":"stats.PublicForwards","id":2466479648,"comment":"Contains info about the forwards of a story as a message to public chats and reposts by public channels.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"count","type":"int","comment":"Total number of results"},{"name":"forwards","type":"PublicForward","typeModifiers":{"isVector":true},"comment":"Info about the forwards of a story."},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Offset used for pagination."},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"peerColor","type":"PeerColor","id":3041614543,"comment":"Represents a color palette ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"color","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Color palette ID, see here ยป for more info; if not set, the default palette should be used."},{"name":"background_emoji_id","type":"long","typeModifiers":{"predicate":"flags.1"},"comment":"Optional custom emoji ID used to generate the pattern."}]},{"kind":"class","name":"help.peerColorSet","type":"help.PeerColorSet","id":639736408,"comment":"Represents a color palette that can be used in message accents ยป.","arguments":[{"name":"colors","type":"int","typeModifiers":{"isVector":true},"comment":"A list of 1-3 colors in RGB format, describing the accent color."}]},{"kind":"class","name":"help.peerColorProfileSet","type":"help.PeerColorSet","id":1987928555,"comment":"Represents a color palette that can be used in profile pages ยป.","arguments":[{"name":"palette_colors","type":"int","typeModifiers":{"isVector":true},"comment":"A list of 1-2 colors in RGB format, shown in the color palette settings to describe the current palette."},{"name":"bg_colors","type":"int","typeModifiers":{"isVector":true},"comment":"A list of 1-2 colors in RGB format describing the colors used to generate the actual background used in the profile page."},{"name":"story_colors","type":"int","typeModifiers":{"isVector":true},"comment":"A list of 2 colors in RGB format describing the colors of the gradient used for the unread active story indicator around the profile photo."}]},{"kind":"class","name":"help.peerColorOption","id":2917953214,"type":"help.PeerColorOption","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"hidden","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this palette should not be displayed as an option to the user when choosing a palette to apply to profile pages or message accents."},{"name":"color_id","type":"int","comment":"Palette ID."},{"name":"colors","type":"help.PeerColorSet","typeModifiers":{"predicate":"flags.1"},"comment":"Light mode palette.
Will be empty for IDs 0 to 6 inclusive, in which case a palette containing a single color from the following colors should be used: red, orange, violet, green, cyan, blue, pink for indexes 0 to 6."},{"name":"dark_colors","type":"help.PeerColorSet","typeModifiers":{"predicate":"flags.2"},"comment":"Dark mode palette. Optional, defaults to the palette in colors (or the autogenerated palette for IDs 0 to 6) if absent."},{"name":"channel_min_level","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Channels can use this palette only after reaching at least the boost level specified in this field."},{"name":"group_min_level","type":"int","typeModifiers":{"predicate":"flags.4"}}],"comment":"Contains info about a color palette ยป."},{"kind":"class","name":"help.peerColorsNotModified","type":"help.PeerColors","id":732034510,"comment":"The list of color palettes has not changed.","arguments":[]},{"kind":"class","name":"help.peerColors","type":"help.PeerColors","id":16313608,"comment":"Contains info about multiple color palettes ยป.","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"},{"name":"colors","type":"help.PeerColorOption","typeModifiers":{"isVector":true},"comment":"Usable color palettes."}]},{"kind":"class","name":"storyReaction","type":"StoryReaction","id":1620104917,"comment":"How a certain peer reacted to a story","arguments":[{"name":"peer_id","type":"Peer","comment":"The peer"},{"name":"date","type":"int","comment":"Reaction date"},{"name":"reaction","type":"Reaction","comment":"The reaction"}]},{"kind":"class","name":"storyReactionPublicForward","type":"StoryReaction","id":3148555843,"comment":"A certain peer has forwarded the story as a message to a public chat or channel.","arguments":[{"name":"message","type":"Message","comment":"The message with the forwarded story."}]},{"kind":"class","name":"storyReactionPublicRepost","type":"StoryReaction","id":3486322451,"comment":"A certain peer has reposted the story.","arguments":[{"name":"peer_id","type":"Peer","comment":"The peer that reposted the story."},{"name":"story","type":"StoryItem","comment":"The reposted story."}]},{"kind":"class","name":"stories.storyReactionsList","type":"stories.StoryReactionsList","id":2858383516,"comment":"List of peers that reacted to or intercated with a specific story","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"count","type":"int","comment":"Total number of reactions matching query"},{"name":"reactions","type":"StoryReaction","typeModifiers":{"isVector":true},"comment":"List of peers that reacted to or interacted with a specific story"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates the next offset to use to load more results by invoking {@link stories.RawGetStoryReactionsListRequest}."}]},{"kind":"class","name":"savedDialog","type":"SavedDialog","id":3179793260,"comment":"Represents a saved dialog ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Is the dialog pinned"},{"name":"peer","type":"Peer","comment":"The dialog"},{"name":"top_message","type":"int","comment":"The latest message ID"}]},{"kind":"class","name":"messages.savedDialogs","type":"messages.SavedDialogs","id":4164608545,"comment":"Represents some saved message dialogs ยป.","arguments":[{"name":"dialogs","type":"SavedDialog","typeModifiers":{"isVector":true},"comment":"Saved message dialogs ยป."},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"List of last messages from each saved dialog"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"messages.savedDialogsSlice","type":"messages.SavedDialogs","id":1153080793,"comment":"Incomplete list of saved message dialogs ยป with messages and auxiliary data.","arguments":[{"name":"count","type":"int","comment":"Total number of saved message dialogs"},{"name":"dialogs","type":"SavedDialog","typeModifiers":{"isVector":true},"comment":"List of saved message dialogs"},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"List of last messages from dialogs"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"messages.savedDialogsNotModified","type":"messages.SavedDialogs","id":3223285736,"comment":"The saved dialogs haven't changed","arguments":[{"name":"count","type":"int","comment":"Number of saved dialogs found server-side by the query"}]},{"kind":"class","name":"savedReactionTag","type":"SavedReactionTag","id":3413112872,"arguments":[{"name":"flags","type":"#"},{"name":"reaction","type":"Reaction"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"count","type":"int"}]},{"kind":"class","name":"messages.savedReactionTagsNotModified","type":"messages.SavedReactionTags","id":2291882479,"arguments":[]},{"kind":"class","name":"messages.savedReactionTags","type":"messages.SavedReactionTags","id":844731658,"arguments":[{"name":"tags","type":"SavedReactionTag","typeModifiers":{"isVector":true}},{"name":"hash","type":"long"}]},{"kind":"class","name":"outboxReadDate","type":"OutboxReadDate","id":1001931436,"arguments":[{"name":"date","type":"int"}]},{"kind":"class","name":"smsjobs.eligibleToJoin","type":"smsjobs.EligibilityToJoin","id":3700114639,"arguments":[{"name":"terms_url","type":"string"},{"name":"monthly_sent_sms","type":"int"}]},{"kind":"class","name":"smsjobs.status","type":"smsjobs.Status","id":720277905,"arguments":[{"name":"flags","type":"#"},{"name":"allow_international","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"recent_sent","type":"int"},{"name":"recent_since","type":"int"},{"name":"recent_remains","type":"int"},{"name":"total_sent","type":"int"},{"name":"total_since","type":"int"},{"name":"last_gift_slug","type":"string","typeModifiers":{"predicate":"flags.1"}},{"name":"terms_url","type":"string"}]},{"kind":"class","name":"smsJob","type":"SmsJob","id":3869372088,"arguments":[{"name":"job_id","type":"string"},{"name":"phone_number","type":"string"},{"name":"text","type":"string"}]},{"kind":"class","name":"businessWeeklyOpen","type":"BusinessWeeklyOpen","id":302717625,"arguments":[{"name":"start_minute","type":"int"},{"name":"end_minute","type":"int"}]},{"kind":"class","name":"businessWorkHours","type":"BusinessWorkHours","id":2358423704,"arguments":[{"name":"flags","type":"#"},{"name":"open_now","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"timezone_id","type":"string"},{"name":"weekly_open","type":"BusinessWeeklyOpen","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"businessLocation","type":"BusinessLocation","id":2891717367,"arguments":[{"name":"flags","type":"#"},{"name":"geo_point","type":"GeoPoint","typeModifiers":{"predicate":"flags.0"}},{"name":"address","type":"string"}]},{"kind":"class","name":"inputBusinessRecipients","type":"InputBusinessRecipients","id":1871393450,"arguments":[{"name":"flags","type":"#"},{"name":"existing_chats","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"new_chats","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"contacts","type":"true","typeModifiers":{"predicate":"flags.2"}},{"name":"non_contacts","type":"true","typeModifiers":{"predicate":"flags.3"}},{"name":"exclude_selected","type":"true","typeModifiers":{"predicate":"flags.5"}},{"name":"users","type":"InputUser","typeModifiers":{"predicate":"flags.4","isVector":true}}]},{"kind":"class","name":"businessRecipients","type":"BusinessRecipients","id":554733559,"arguments":[{"name":"flags","type":"#"},{"name":"existing_chats","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"new_chats","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"contacts","type":"true","typeModifiers":{"predicate":"flags.2"}},{"name":"non_contacts","type":"true","typeModifiers":{"predicate":"flags.3"}},{"name":"exclude_selected","type":"true","typeModifiers":{"predicate":"flags.5"}},{"name":"users","type":"int53","typeModifiers":{"predicate":"flags.4","isVector":true}}]},{"kind":"class","name":"businessAwayMessageScheduleAlways","type":"BusinessAwayMessageSchedule","id":3384402617,"arguments":[]},{"kind":"class","name":"businessAwayMessageScheduleOutsideWorkHours","type":"BusinessAwayMessageSchedule","id":3287479553,"arguments":[]},{"kind":"class","name":"businessAwayMessageScheduleCustom","type":"BusinessAwayMessageSchedule","id":3427638988,"arguments":[{"name":"start_date","type":"int"},{"name":"end_date","type":"int"}]},{"kind":"class","name":"inputBusinessGreetingMessage","type":"InputBusinessGreetingMessage","id":26528571,"arguments":[{"name":"shortcut_id","type":"int"},{"name":"recipients","type":"InputBusinessRecipients"},{"name":"no_activity_days","type":"int"}]},{"kind":"class","name":"businessGreetingMessage","type":"BusinessGreetingMessage","id":3843664811,"arguments":[{"name":"shortcut_id","type":"int"},{"name":"recipients","type":"BusinessRecipients"},{"name":"no_activity_days","type":"int"}]},{"kind":"class","name":"inputBusinessAwayMessage","type":"InputBusinessAwayMessage","id":2200008160,"arguments":[{"name":"flags","type":"#"},{"name":"offline_only","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"shortcut_id","type":"int"},{"name":"schedule","type":"BusinessAwayMessageSchedule"},{"name":"recipients","type":"InputBusinessRecipients"}]},{"kind":"class","name":"businessAwayMessage","type":"BusinessAwayMessage","id":4011158108,"arguments":[{"name":"flags","type":"#"},{"name":"offline_only","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"shortcut_id","type":"int"},{"name":"schedule","type":"BusinessAwayMessageSchedule"},{"name":"recipients","type":"BusinessRecipients"}]},{"kind":"class","name":"timezone","type":"Timezone","id":4287793653,"arguments":[{"name":"id","type":"string"},{"name":"name","type":"string"},{"name":"utc_offset","type":"int"}]},{"kind":"class","name":"help.timezonesListNotModified","type":"help.TimezonesList","id":2533820620,"arguments":[]},{"kind":"class","name":"help.timezonesList","type":"help.TimezonesList","id":2071260529,"arguments":[{"name":"timezones","type":"Timezone","typeModifiers":{"isVector":true}},{"name":"hash","type":"int"}]},{"kind":"class","name":"quickReply","type":"QuickReply","id":110563371,"arguments":[{"name":"shortcut_id","type":"int"},{"name":"shortcut","type":"string"},{"name":"top_message","type":"int"},{"name":"count","type":"int"}]},{"kind":"class","name":"inputQuickReplyShortcut","type":"InputQuickReplyShortcut","id":609840449,"arguments":[{"name":"shortcut","type":"string"}]},{"kind":"class","name":"inputQuickReplyShortcutId","type":"InputQuickReplyShortcut","id":18418929,"arguments":[{"name":"shortcut_id","type":"int"}]},{"kind":"class","name":"messages.quickReplies","type":"messages.QuickReplies","id":3331155605,"arguments":[{"name":"quick_replies","type":"QuickReply","typeModifiers":{"isVector":true}},{"name":"messages","type":"Message","typeModifiers":{"isVector":true}},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true}},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"messages.quickRepliesNotModified","type":"messages.QuickReplies","id":1603398491,"arguments":[]},{"kind":"class","name":"connectedBot","type":"ConnectedBot","id":3171321345,"arguments":[{"name":"flags","type":"#"},{"name":"can_reply","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"bot_id","type":"int53"},{"name":"recipients","type":"BusinessBotRecipients"}]},{"kind":"class","name":"account.connectedBots","type":"account.ConnectedBots","id":400029819,"arguments":[{"name":"connected_bots","type":"ConnectedBot","typeModifiers":{"isVector":true}},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"messages.dialogFilters","type":"messages.DialogFilters","id":718878489,"arguments":[{"name":"flags","type":"#"},{"name":"tags_enabled","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"filters","type":"DialogFilter","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"birthday","type":"Birthday","id":1821253126,"arguments":[{"name":"flags","type":"#"},{"name":"day","type":"int"},{"name":"month","type":"int"},{"name":"year","type":"int","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"class","name":"botBusinessConnection","type":"BotBusinessConnection","id":2305045428,"arguments":[{"name":"flags","type":"#"},{"name":"can_reply","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"disabled","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"connection_id","type":"string"},{"name":"user_id","type":"int53"},{"name":"dc_id","type":"int"},{"name":"date","type":"int"}]},{"kind":"class","name":"inputBusinessIntro","type":"InputBusinessIntro","id":163867085,"arguments":[{"name":"flags","type":"#"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"sticker","type":"InputDocument","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"class","name":"businessIntro","type":"BusinessIntro","id":1510606445,"arguments":[{"name":"flags","type":"#"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"sticker","type":"Document","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"class","name":"messages.myStickers","type":"messages.MyStickers","id":4211040925,"arguments":[{"name":"count","type":"int"},{"name":"sets","type":"StickerSetCovered","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"inputCollectibleUsername","type":"InputCollectible","id":3818152105,"arguments":[{"name":"username","type":"string"}]},{"kind":"class","name":"inputCollectiblePhone","type":"InputCollectible","id":2732725412,"arguments":[{"name":"phone","type":"string"}]},{"kind":"class","name":"fragment.collectibleInfo","type":"fragment.CollectibleInfo","id":1857945489,"arguments":[{"name":"purchase_date","type":"int"},{"name":"currency","type":"string"},{"name":"amount","type":"long"},{"name":"crypto_currency","type":"string"},{"name":"crypto_amount","type":"long"},{"name":"url","type":"string"}]},{"kind":"class","name":"inputBusinessBotRecipients","type":"InputBusinessBotRecipients","id":3303379486,"arguments":[{"name":"flags","type":"#"},{"name":"existing_chats","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"new_chats","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"contacts","type":"true","typeModifiers":{"predicate":"flags.2"}},{"name":"non_contacts","type":"true","typeModifiers":{"predicate":"flags.3"}},{"name":"exclude_selected","type":"true","typeModifiers":{"predicate":"flags.5"}},{"name":"users","type":"InputUser","typeModifiers":{"predicate":"flags.4","isVector":true}},{"name":"exclude_users","type":"InputUser","typeModifiers":{"predicate":"flags.6","isVector":true}}]},{"kind":"class","name":"businessBotRecipients","type":"BusinessBotRecipients","id":3096245107,"arguments":[{"name":"flags","type":"#"},{"name":"existing_chats","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"new_chats","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"contacts","type":"true","typeModifiers":{"predicate":"flags.2"}},{"name":"non_contacts","type":"true","typeModifiers":{"predicate":"flags.3"}},{"name":"exclude_selected","type":"true","typeModifiers":{"predicate":"flags.5"}},{"name":"users","type":"int53","typeModifiers":{"predicate":"flags.4","isVector":true}},{"name":"exclude_users","type":"int53","typeModifiers":{"predicate":"flags.6","isVector":true}}]},{"kind":"class","name":"contactBirthday","type":"ContactBirthday","id":496600883,"arguments":[{"name":"contact_id","type":"int53"},{"name":"birthday","type":"Birthday"}]},{"kind":"class","name":"contacts.contactBirthdays","type":"contacts.ContactBirthdays","id":290452237,"arguments":[{"name":"contacts","type":"ContactBirthday","typeModifiers":{"isVector":true}},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"missingInvitee","type":"MissingInvitee","id":1653379620,"arguments":[{"name":"flags","type":"#"},{"name":"premium_would_allow_invite","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"premium_required_for_pm","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"user_id","type":"int53"}]},{"kind":"class","name":"messages.invitedUsers","type":"messages.InvitedUsers","id":2136862630,"arguments":[{"name":"updates","type":"Updates"},{"name":"missing_invitees","type":"MissingInvitee","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"inputBusinessChatLink","type":"InputBusinessChatLink","id":292003751,"arguments":[{"name":"flags","type":"#"},{"name":"message","type":"string"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.0","isVector":true}},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"}}]},{"kind":"class","name":"businessChatLink","type":"BusinessChatLink","id":3031328367,"arguments":[{"name":"flags","type":"#"},{"name":"link","type":"string"},{"name":"message","type":"string"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.0","isVector":true}},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"}},{"name":"views","type":"int"}]},{"kind":"class","name":"account.businessChatLinks","type":"account.BusinessChatLinks","id":3963855569,"arguments":[{"name":"links","type":"BusinessChatLink","typeModifiers":{"isVector":true}},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true}},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"account.resolvedBusinessChatLinks","type":"account.ResolvedBusinessChatLinks","id":2586029857,"arguments":[{"name":"flags","type":"#"},{"name":"peer","type":"Peer"},{"name":"message","type":"string"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.0","isVector":true}},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true}},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"requestedPeerUser","type":"RequestedPeer","id":3593466986,"arguments":[{"name":"flags","type":"#"},{"name":"user_id","type":"int53"},{"name":"first_name","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"last_name","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"username","type":"string","typeModifiers":{"predicate":"flags.1"}},{"name":"photo","type":"Photo","typeModifiers":{"predicate":"flags.2"}}]},{"kind":"class","name":"requestedPeerChat","type":"RequestedPeer","id":1929860175,"arguments":[{"name":"flags","type":"#"},{"name":"chat_id","type":"int53"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"photo","type":"Photo","typeModifiers":{"predicate":"flags.2"}}]},{"kind":"class","name":"requestedPeerChannel","type":"RequestedPeer","id":2342781924,"arguments":[{"name":"flags","type":"#"},{"name":"channel_id","type":"int53"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"username","type":"string","typeModifiers":{"predicate":"flags.1"}},{"name":"photo","type":"Photo","typeModifiers":{"predicate":"flags.2"}}]},{"kind":"class","name":"sponsoredMessageReportOption","type":"SponsoredMessageReportOption","id":1124938064,"arguments":[{"name":"text","type":"string"},{"name":"option","type":"bytes"}]},{"kind":"class","name":"channels.sponsoredMessageReportResultChooseOption","type":"channels.SponsoredMessageReportResult","id":2221907522,"arguments":[{"name":"title","type":"string"},{"name":"options","type":"SponsoredMessageReportOption","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"channels.sponsoredMessageReportResultAdsHidden","type":"channels.SponsoredMessageReportResult","id":1044107055,"arguments":[]},{"kind":"class","name":"channels.sponsoredMessageReportResultReported","type":"channels.SponsoredMessageReportResult","id":2910423113,"arguments":[]},{"kind":"class","name":"stats.broadcastRevenueStats","id":1409802903,"type":"stats.BroadcastRevenueStats","arguments":[{"name":"top_hours_graph","type":"StatsGraph"},{"name":"revenue_graph","type":"StatsGraph"},{"name":"balances","type":"BroadcastRevenueBalances"},{"name":"usd_rate","type":"double"}]},{"kind":"class","name":"stats.broadcastRevenueWithdrawalUrl","type":"stats.BroadcastRevenueWithdrawalUrl","id":3966080823,"arguments":[{"name":"url","type":"string"}]},{"kind":"class","name":"broadcastRevenueTransactionProceeds","type":"BroadcastRevenueTransaction","id":1434332356,"arguments":[{"name":"amount","type":"long"},{"name":"from_date","type":"int"},{"name":"to_date","type":"int"}]},{"kind":"class","name":"broadcastRevenueTransactionWithdrawal","type":"BroadcastRevenueTransaction","id":1515784568,"arguments":[{"name":"flags","type":"#"},{"name":"pending","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"failed","type":"true","typeModifiers":{"predicate":"flags.2"}},{"name":"amount","type":"long"},{"name":"date","type":"int"},{"name":"provider","type":"string"},{"name":"transaction_date","type":"int","typeModifiers":{"predicate":"flags.1"}},{"name":"transaction_url","type":"string","typeModifiers":{"predicate":"flags.1"}}]},{"kind":"class","name":"broadcastRevenueTransactionRefund","type":"BroadcastRevenueTransaction","id":1121127726,"arguments":[{"name":"amount","type":"long"},{"name":"date","type":"int"},{"name":"provider","type":"string"}]},{"kind":"class","name":"stats.broadcastRevenueTransactions","type":"stats.BroadcastRevenueTransactions","id":2266334310,"arguments":[{"name":"count","type":"int"},{"name":"transactions","type":"BroadcastRevenueTransaction","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"reactionNotificationsFromContacts","type":"ReactionNotificationsFrom","id":3133384218,"arguments":[]},{"kind":"class","name":"reactionNotificationsFromAll","type":"ReactionNotificationsFrom","id":1268654752,"arguments":[]},{"kind":"class","name":"reactionsNotifySettings","type":"ReactionsNotifySettings","id":1457736048,"arguments":[{"name":"flags","type":"#"},{"name":"messages_notify_from","type":"ReactionNotificationsFrom","typeModifiers":{"predicate":"flags.0"}},{"name":"stories_notify_from","type":"ReactionNotificationsFrom","typeModifiers":{"predicate":"flags.1"}},{"name":"sound","type":"NotificationSound"},{"name":"show_previews","type":"Bool"}]},{"kind":"class","name":"broadcastRevenueBalances","type":"BroadcastRevenueBalances","id":2218324422,"arguments":[{"name":"current_balance","type":"long"},{"name":"available_balance","type":"long"},{"name":"overall_revenue","type":"long"}]},{"kind":"class","name":"availableEffect","id":2479088254,"type":"AvailableEffect","arguments":[{"name":"flags","type":"#"},{"name":"premium_required","type":"true","typeModifiers":{"predicate":"flags.2"}},{"name":"id","type":"long"},{"name":"emoticon","type":"string"},{"name":"static_icon_id","type":"long","typeModifiers":{"predicate":"flags.0"}},{"name":"effect_sticker_id","type":"long"},{"name":"effect_animation_id","type":"long","typeModifiers":{"predicate":"flags.1"}}]},{"kind":"class","name":"messages.availableEffectsNotModified","id":3522009691,"type":"messages.AvailableEffects","arguments":[]},{"kind":"class","name":"messages.availableEffects","id":3185271150,"type":"messages.AvailableEffects","arguments":[{"name":"hash","type":"int"},{"name":"effects","type":"AvailableEffect","typeModifiers":{"isVector":true}},{"name":"documents","type":"Document","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"factCheck","id":3097230543,"type":"FactCheck","arguments":[{"name":"flags","type":"#"},{"name":"need_check","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"country","type":"string","typeModifiers":{"predicate":"flags.1"}},{"name":"text","type":"TextWithEntities","typeModifiers":{"predicate":"flags.1"}},{"name":"hash","type":"long"}]},{"kind":"class","name":"starsTransactionPeerUnsupported","id":2515714020,"type":"StarsTransactionPeer","arguments":[]},{"kind":"class","name":"starsTransactionPeerAppStore","id":3025646453,"type":"StarsTransactionPeer","arguments":[]},{"kind":"class","name":"starsTransactionPeerPlayMarket","id":2069236235,"type":"StarsTransactionPeer","arguments":[]},{"kind":"class","name":"starsTransactionPeerPremiumBot","id":621656824,"type":"StarsTransactionPeer","arguments":[]},{"kind":"class","name":"starsTransactionPeerFragment","id":3912227074,"type":"StarsTransactionPeer","arguments":[]},{"kind":"class","name":"starsTransactionPeer","id":3624771933,"type":"StarsTransactionPeer","arguments":[{"name":"peer","type":"Peer"}]},{"kind":"class","name":"starsTopupOption","id":198776256,"type":"StarsTopupOption","arguments":[{"name":"flags","type":"#"},{"name":"extended","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"stars","type":"long"},{"name":"store_product","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"currency","type":"string"},{"name":"amount","type":"long"}]},{"kind":"class","name":"starsTransaction","id":3429923250,"type":"StarsTransaction","arguments":[{"name":"flags","type":"#"},{"name":"refund","type":"true","typeModifiers":{"predicate":"flags.3"}},{"name":"id","type":"string"},{"name":"stars","type":"long"},{"name":"date","type":"int"},{"name":"peer","type":"StarsTransactionPeer"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.1"}},{"name":"photo","type":"WebDocument","typeModifiers":{"predicate":"flags.2"}}]},{"kind":"class","name":"payments.starsStatus","id":2364862048,"type":"payments.StarsStatus","arguments":[{"name":"flags","type":"#"},{"name":"balance","type":"long"},{"name":"history","type":"StarsTransaction","typeModifiers":{"isVector":true}},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true}},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"updateGroupInvitePrivacyForbidden","type":"Update","id":3438316246,"comment":"0-N updates of this type may be returned only when invoking {@link messages.RawAddChatUserRequest}, {@link channels.RawInviteToChannelRequest} or {@link messages.RawCreateChatRequest}: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link can be shared with the user, instead.","arguments":[{"name":"user_id","type":"int53","comment":"ID of the user we couldn't add."}]},{"kind":"class","name":"sponsoredWebPage","type":"SponsoredWebPage","id":1035529315,"comment":"Represents a sponsored website.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"url","type":"string","comment":"Web page URL."},{"name":"site_name","type":"string","comment":"Website name."},{"name":"photo","type":"Photo","typeModifiers":{"predicate":"flags.0"},"comment":"Optional image preview."}]},{"kind":"class","name":"mtcute.dummyUpdate","id":614906126,"type":"Update","arguments":[{"name":"pts","type":"int"},{"name":"pts_count","type":"int"},{"name":"channel_id","type":"int53"}]},{"kind":"class","name":"mtcute.dummyInputPeerMinUser","id":2240546338,"type":"InputPeer","arguments":[{"name":"user_id","type":"int"}]},{"kind":"class","name":"mtcute.dummyInputPeerMinChannel","id":1796171926,"type":"InputPeer","arguments":[{"name":"channel_id","type":"int"}]},{"kind":"method","name":"test.useConfigSimple","id":4189565501,"type":"help.ConfigSimple","arguments":[],"typeModifiers":{"constructorId":1515793004}},{"kind":"method","name":"test.parseInputAppEvent","id":3138226161,"type":"InputAppEvent","arguments":[],"typeModifiers":{"constructorId":488313413}},{"kind":"method","name":"invokeWithBusinessConnectionPrefix","id":3710427022,"type":"Error","arguments":[{"name":"connection_id","type":"string"}],"typeModifiers":{"constructorId":3300522427}},{"kind":"method","name":"invokeWithGooglePlayIntegrityPrefix","id":502868356,"type":"Error","arguments":[{"name":"nonce","type":"string"},{"name":"token","type":"string"}],"typeModifiers":{"constructorId":3300522427}},{"kind":"method","name":"invokeWithApnsSecretPrefix","id":229528824,"type":"Error","arguments":[{"name":"nonce","type":"string"},{"name":"secret","type":"string"}],"typeModifiers":{"constructorId":3300522427}},{"kind":"method","name":"invokeAfterMsg","type":"X","id":3416209197,"comment":"Invokes a query after successful completion of one of the previous queries.","generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"msg_id","type":"long","comment":"Message identifier on which a current query depends"},{"name":"query","type":"!X","comment":"The query itself"}],"available":"both"},{"kind":"method","name":"invokeAfterMsgs","type":"X","id":1036301552,"comment":"Invokes a query after a successful completion of previous queries","generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"msg_ids","type":"long","typeModifiers":{"isVector":true},"comment":"List of messages on which a current query depends"},{"name":"query","type":"!X","comment":"The query itself"}],"available":"both"},{"kind":"method","name":"initConnection","type":"X","id":3251461801,"comment":"Initialize connection","generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"api_id","type":"int","comment":"Application identifier (see. App configuration)"},{"name":"device_model","type":"string","comment":"Device model"},{"name":"system_version","type":"string","comment":"Operation system version"},{"name":"app_version","type":"string","comment":"Application version"},{"name":"system_lang_code","type":"string","comment":"Code for the language used on the device's OS, ISO 639-1 standard"},{"name":"lang_pack","type":"string","comment":"Language pack to use"},{"name":"lang_code","type":"string","comment":"Code for the language used on the client, ISO 639-1 standard"},{"name":"proxy","type":"InputClientProxy","typeModifiers":{"predicate":"flags.0"},"comment":"Info about an MTProto proxy"},{"name":"params","type":"JSONValue","typeModifiers":{"predicate":"flags.1"},"comment":"Additional initConnection parameters.
For now, only the tz_offset field is supported, for specifying timezone offset in seconds."},{"name":"query","type":"!X","comment":"The query itself"}],"throws":[{"code":400,"name":"CONNECTION_LAYER_INVALID","comment":"Layer invalid."}],"available":"both"},{"kind":"method","name":"invokeWithLayer","type":"X","id":3667594509,"comment":"Invoke the specified query using the specified API layer","generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"layer","type":"int","comment":"The layer to use"},{"name":"query","type":"!X","comment":"The query"}],"throws":[{"code":400,"name":"AUTH_BYTES_INVALID","comment":"The provided authorization is invalid."},{"code":400,"name":"CDN_METHOD_INVALID","comment":"You can't call this method in a CDN DC."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"CONNECTION_API_ID_INVALID","comment":"The provided API id is invalid."},{"code":406,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."}],"available":"both"},{"kind":"method","name":"invokeWithoutUpdates","type":"X","id":3214170551,"comment":"Invoke a request without subscribing the used connection for updates (this is enabled by default for file queries).","generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"query","type":"!X","comment":"The query"}],"available":"both"},{"kind":"method","name":"invokeWithMessagesRange","type":"X","id":911373810,"comment":"Invoke with the given message range","generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"range","type":"MessageRange","comment":"Message range"},{"name":"query","type":"!X","comment":"Query"}],"available":"both"},{"kind":"method","name":"invokeWithTakeout","type":"X","id":2896821550,"comment":"Invoke a method within a takeout session, see here ยป for more info.","generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"takeout_id","type":"long","comment":"Takeout session ID ยป"},{"name":"query","type":"!X","comment":"Query"}],"available":"both"},{"kind":"method","name":"invokeWithBusinessConnection","type":"X","id":3710427022,"generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"connection_id","type":"string"},{"name":"query","type":"!X"}]},{"kind":"method","name":"invokeWithGooglePlayIntegrity","id":502868356,"type":"X","arguments":[{"name":"nonce","type":"string"},{"name":"token","type":"string"},{"name":"query","type":"!X"}],"generics":[{"name":"X","type":"Type"}]},{"kind":"method","name":"invokeWithApnsSecret","id":229528824,"type":"X","arguments":[{"name":"nonce","type":"string"},{"name":"secret","type":"string"},{"name":"query","type":"!X"}],"generics":[{"name":"X","type":"Type"}]},{"kind":"method","name":"auth.sendCode","type":"auth.SentCode","id":2792825935,"comment":"Send the verification code for login","arguments":[{"name":"phone_number","type":"string","comment":"Phone number in international format"},{"name":"api_id","type":"int","comment":"Application identifier (see App configuration)"},{"name":"api_hash","type":"string","comment":"Application secret hash (see App configuration)"},{"name":"settings","type":"CodeSettings","comment":"Settings for the code type to send"}],"throws":[{"code":400,"name":"API_ID_INVALID","comment":"API ID invalid."},{"code":400,"name":"API_ID_PUBLISHED_FLOOD","comment":"This API id was published somewhere, you can't use it now."},{"code":500,"name":"AUTH_RESTART","comment":"Restart the authorization process."},{"code":400,"name":"PHONE_NUMBER_APP_SIGNUP_FORBIDDEN","comment":"You can't sign up using this app."},{"code":400,"name":"PHONE_NUMBER_BANNED","comment":"The provided phone number is banned from telegram."},{"code":400,"name":"PHONE_NUMBER_FLOOD","comment":"You asked for the code too many times."},{"code":406,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."},{"code":406,"name":"PHONE_PASSWORD_FLOOD","comment":"You have tried logging in too many times."},{"code":400,"name":"PHONE_PASSWORD_PROTECTED","comment":"This phone is password protected."},{"code":400,"name":"SMS_CODE_CREATE_FAILED","comment":"An error occurred while creating the SMS code."}],"available":"user"},{"kind":"method","name":"auth.signUp","id":2865215255,"type":"auth.Authorization","arguments":[{"name":"flags","type":"#"},{"name":"no_joined_notifications","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"phone_number","type":"string","comment":"Phone number in the international format"},{"name":"phone_code_hash","type":"string","comment":"SMS-message ID"},{"name":"first_name","type":"string","comment":"New user first name"},{"name":"last_name","type":"string","comment":"New user last name"}],"comment":"Registers a validated phone number in the system.","throws":[{"code":400,"name":"FIRSTNAME_INVALID","comment":"The first name is invalid."},{"code":400,"name":"LASTNAME_INVALID","comment":"The last name is invalid."},{"code":400,"name":"PHONE_CODE_EMPTY","comment":"phone_code is missing."},{"code":400,"name":"PHONE_CODE_EXPIRED","comment":"The phone code you provided has expired."},{"code":400,"name":"PHONE_CODE_INVALID","comment":"The provided phone code is invalid."},{"code":400,"name":"PHONE_NUMBER_FLOOD","comment":"You asked for the code too many times."},{"code":406,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."},{"code":400,"name":"PHONE_NUMBER_OCCUPIED","comment":"The phone number is already in use."}],"available":"user"},{"kind":"method","name":"auth.signIn","type":"auth.Authorization","id":2371004753,"comment":"Signs in a user with a validated phone number.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"phone_number","type":"string","comment":"Phone number in the international format"},{"name":"phone_code_hash","type":"string","comment":"SMS-message ID, obtained from {@link auth.RawSendCodeRequest}"},{"name":"phone_code","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Valid numerical code from the SMS-message"},{"name":"email_verification","type":"EmailVerification","typeModifiers":{"predicate":"flags.1"},"comment":"Email verification code or token"}],"throws":[{"code":500,"name":"AUTH_RESTART","comment":"Restart the authorization process."},{"code":400,"name":"PHONE_CODE_EMPTY","comment":"phone_code is missing."},{"code":400,"name":"PHONE_CODE_EXPIRED","comment":"The phone code you provided has expired."},{"code":400,"name":"PHONE_CODE_INVALID","comment":"The provided phone code is invalid."},{"code":406,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."},{"code":400,"name":"PHONE_NUMBER_UNOCCUPIED","comment":"The phone number is not yet being used."},{"code":500,"name":"SIGN_IN_FAILED","comment":"Failure while signing in."}],"available":"user"},{"kind":"method","name":"auth.logOut","type":"auth.LoggedOut","typeModifiers":{"constructorId":3282207583},"id":1047706137,"comment":"Logs out the user.","arguments":[],"available":"both"},{"kind":"method","name":"auth.resetAuthorizations","type":"Bool","id":2678787354,"comment":"Terminates all user's authorized sessions except for the current one.\n\nAfter calling this method it is necessary to reregister the current device using the method {@link account.RawRegisterDeviceRequest}","arguments":[],"throws":[{"code":406,"name":"FRESH_RESET_AUTHORISATION_FORBIDDEN","comment":"You can't logout other sessions if less than 24 hours have passed since you logged on the current session."}],"available":"user"},{"kind":"method","name":"auth.exportAuthorization","type":"auth.ExportedAuthorization","typeModifiers":{"constructorId":3023364792},"id":3854565325,"comment":"Returns data for copying authorization to another data-center.","arguments":[{"name":"dc_id","type":"int","comment":"Number of a target data-center"}],"throws":[{"code":400,"name":"DC_ID_INVALID","comment":"The provided DC ID is invalid."}],"available":"both"},{"kind":"method","name":"auth.importAuthorization","type":"auth.Authorization","id":2776268205,"comment":"Logs in a user using a key transmitted from their native data-center.","arguments":[{"name":"id","type":"long","comment":"User ID"},{"name":"bytes","type":"bytes","comment":"Authorization key"}],"throws":[{"code":400,"name":"AUTH_BYTES_INVALID","comment":"The provided authorization is invalid."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"both"},{"kind":"method","name":"auth.bindTempAuthKey","type":"Bool","id":3453233669,"comment":"Binds a temporary authorization key temp_auth_key_id to the permanent authorization key perm_auth_key_id. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one.\n\nFor more information, see Perfect Forward Secrecy.","arguments":[{"name":"perm_auth_key_id","type":"long","comment":"Permanent auth_key_id to bind to"},{"name":"nonce","type":"long","comment":"Random long from Binding message contents"},{"name":"expires_at","type":"int","comment":"UNIX timestamp in seconds to invalidate temporary key, see Binding message contents"},{"name":"encrypted_message","type":"bytes","comment":"See Generating encrypted_message"}],"throws":[{"code":400,"name":"ENCRYPTED_MESSAGE_INVALID","comment":"Encrypted message invalid."},{"code":400,"name":"TEMP_AUTH_KEY_ALREADY_BOUND","comment":"The passed temporary key is already bound to another perm_auth_key_id."},{"code":400,"name":"TEMP_AUTH_KEY_EMPTY","comment":"No temporary auth key provided."}],"available":"both"},{"kind":"method","name":"auth.importBotAuthorization","type":"auth.Authorization","id":1738800940,"comment":"Login as a bot","arguments":[{"name":"flags","type":"int","comment":"Reserved for future use"},{"name":"api_id","type":"int","comment":"Application identifier (see. App configuration)"},{"name":"api_hash","type":"string","comment":"Application identifier hash (see. App configuration)"},{"name":"bot_auth_token","type":"string","comment":"Bot token (see bots)"}],"throws":[{"code":400,"name":"ACCESS_TOKEN_EXPIRED","comment":"Access token expired."},{"code":400,"name":"ACCESS_TOKEN_INVALID","comment":"Access token invalid."},{"code":400,"name":"API_ID_INVALID","comment":"API ID invalid."},{"code":400,"name":"API_ID_PUBLISHED_FLOOD","comment":"This API id was published somewhere, you can't use it now."}],"available":"both"},{"kind":"method","name":"auth.checkPassword","type":"auth.Authorization","id":3515567382,"comment":"Try logging to an account protected by a 2FA password.","arguments":[{"name":"password","type":"InputCheckPasswordSRP","comment":"The account's password (see SRP)"}],"throws":[{"code":400,"name":"PASSWORD_HASH_INVALID","comment":"The provided password hash is invalid."},{"code":400,"name":"SRP_ID_INVALID","comment":"Invalid SRP ID provided."},{"code":400,"name":"SRP_PASSWORD_CHANGED","comment":"Password has changed."}],"available":"user"},{"kind":"method","name":"auth.requestPasswordRecovery","type":"auth.PasswordRecovery","typeModifiers":{"constructorId":326715557},"id":3633822822,"comment":"Request recovery code of a 2FA password, only for accounts with a recovery email configured.","arguments":[],"throws":[{"code":400,"name":"PASSWORD_EMPTY","comment":"The provided password is empty."},{"code":400,"name":"PASSWORD_RECOVERY_NA","comment":"No email was set, can't recover password via email."}],"available":"user"},{"kind":"method","name":"auth.recoverPassword","type":"auth.Authorization","id":923364464,"comment":"Reset the 2FA password using the recovery code sent using {@link auth.RawRequestPasswordRecoveryRequest}.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"code","type":"string","comment":"Code received via email"},{"name":"new_settings","type":"account.PasswordInputSettings","typeModifiers":{"predicate":"flags.0"},"comment":"New password"}],"throws":[{"code":400,"name":"CODE_EMPTY","comment":"The provided code is empty."},{"code":400,"name":"NEW_SETTINGS_INVALID","comment":"The new password settings are invalid."}],"available":"user"},{"kind":"method","name":"auth.resendCode","id":3403969827,"type":"auth.SentCode","arguments":[{"name":"flags","type":"#"},{"name":"phone_number","type":"string","comment":"The phone number"},{"name":"phone_code_hash","type":"string","comment":"The phone code hash obtained from {@link auth.RawSendCodeRequest}"},{"name":"reason","type":"string","typeModifiers":{"predicate":"flags.0"}}],"comment":"Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see login for more info.","throws":[{"code":400,"name":"PHONE_CODE_EMPTY","comment":"phone_code is missing."},{"code":400,"name":"PHONE_CODE_EXPIRED","comment":"The phone code you provided has expired."},{"code":400,"name":"PHONE_CODE_HASH_EMPTY","comment":"phone_code_hash is missing."},{"code":406,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."},{"code":406,"name":"SEND_CODE_UNAVAILABLE","comment":"Returned when all available options for this type of number were already used (e.g. flash-call, then SMS, then this error might be returned to trigger a second resend)."}],"available":"user"},{"kind":"method","name":"auth.cancelCode","type":"Bool","id":520357240,"comment":"Cancel the login verification code","arguments":[{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"phone_code_hash","type":"string","comment":"Phone code hash from {@link auth.RawSendCodeRequest}"}],"throws":[{"code":400,"name":"PHONE_CODE_EXPIRED","comment":"The phone code you provided has expired."},{"code":406,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."}],"available":"user"},{"kind":"method","name":"auth.dropTempAuthKeys","type":"Bool","id":2387124616,"comment":"Delete all temporary authorization keys except for the ones specified","arguments":[{"name":"except_auth_keys","type":"long","typeModifiers":{"isVector":true},"comment":"The auth keys that shouldn't be dropped."}],"available":"both"},{"kind":"method","name":"auth.exportLoginToken","type":"auth.LoginToken","id":3084944894,"comment":"Generate a login token, for login via QR code.
\nThe generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken deep link ยป in the QR code.\n\nFor more info, see login via QR code.","arguments":[{"name":"api_id","type":"int","comment":"Application identifier (see. App configuration)"},{"name":"api_hash","type":"string","comment":"Application identifier hash (see. App configuration)"},{"name":"except_ids","type":"long","typeModifiers":{"isVector":true},"comment":"List of already logged-in user IDs, to prevent logging in twice with the same user"}],"throws":[{"code":400,"name":"API_ID_INVALID","comment":"API ID invalid."},{"code":400,"name":"API_ID_PUBLISHED_FLOOD","comment":"This API id was published somewhere, you can't use it now."}],"available":"user"},{"kind":"method","name":"auth.importLoginToken","type":"auth.LoginToken","id":2511101156,"comment":"Login using a redirected login token, generated in case of DC mismatch during QR code login.\n\nFor more info, see login via QR code.","arguments":[{"name":"token","type":"bytes","comment":"Login token"}],"throws":[{"code":400,"name":"AUTH_TOKEN_ALREADY_ACCEPTED","comment":"The specified auth token was already accepted."},{"code":400,"name":"AUTH_TOKEN_EXPIRED","comment":"The authorization token has expired."},{"code":400,"name":"AUTH_TOKEN_INVALID","comment":"The specified auth token is invalid."},{"code":400,"name":"AUTH_TOKEN_INVALIDX","comment":"The specified auth token is invalid."}],"available":"user"},{"kind":"method","name":"auth.acceptLoginToken","type":"Authorization","typeModifiers":{"constructorId":2902578717},"id":3902057805,"comment":"Accept QR code login token, logging in the app that generated it.\n\nReturns info about the new session.\n\nFor more info, see login via QR code.","arguments":[{"name":"token","type":"bytes","comment":"Login token embedded in QR code, for more info, see login via QR code."}],"throws":[{"code":400,"name":"AUTH_TOKEN_ALREADY_ACCEPTED","comment":"The specified auth token was already accepted."},{"code":400,"name":"AUTH_TOKEN_EXCEPTION","comment":"An error occurred while importing the auth token."},{"code":400,"name":"AUTH_TOKEN_EXPIRED","comment":"The authorization token has expired."},{"code":400,"name":"AUTH_TOKEN_INVALIDX","comment":"The specified auth token is invalid."}],"available":"user"},{"kind":"method","name":"auth.checkRecoveryPassword","type":"Bool","id":221691769,"comment":"Check if the 2FA recovery code sent using {@link auth.RawRequestPasswordRecoveryRequest} is valid, before passing it to {@link auth.RawRecoverPasswordRequest}.","arguments":[{"name":"code","type":"string","comment":"Code received via email"}],"throws":[{"code":400,"name":"PASSWORD_RECOVERY_EXPIRED","comment":"The recovery code has expired."}],"available":"user"},{"kind":"method","name":"auth.importWebTokenAuthorization","type":"auth.Authorization","id":767062953,"comment":"Login by importing an authorization token","arguments":[{"name":"api_id","type":"int","comment":"API ID"},{"name":"api_hash","type":"string","comment":"API hash"},{"name":"web_auth_token","type":"string","comment":"The authorization token"}],"throws":[{"code":400,"name":"API_ID_INVALID","comment":"API ID invalid."}],"available":"user"},{"kind":"method","name":"auth.requestFirebaseSms","id":2386109982,"type":"Bool","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"phone_code_hash","type":"string","comment":"Phone code hash returned by {@link auth.RawSendCodeRequest}"},{"name":"safety_net_token","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"On Android, a JWS object obtained as described in the auth documentation ยป"},{"name":"play_integrity_token","type":"string","typeModifiers":{"predicate":"flags.2"}},{"name":"ios_push_secret","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Secret token received via an apple push notification"}],"comment":"Request an SMS code via Firebase.","throws":[{"code":400,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."}],"available":"user"},{"kind":"method","name":"auth.resetLoginEmail","type":"auth.SentCode","id":2123760019,"comment":"Reset the login email ยป.","arguments":[{"name":"phone_number","type":"string","comment":"Phone number of the account"},{"name":"phone_code_hash","type":"string","comment":"Phone code hash, obtained as described in the documentation ยป"}],"throws":[{"code":400,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."},{"code":400,"name":"TASK_ALREADY_EXISTS","comment":"An email reset was already requested."}],"available":"user"},{"kind":"method","name":"auth.reportMissingCode","type":"Bool","id":3416125430,"arguments":[{"name":"phone_number","type":"string"},{"name":"phone_code_hash","type":"string"},{"name":"mnc","type":"string"}]},{"kind":"method","name":"account.registerDevice","type":"Bool","id":3968205178,"comment":"Register device to receive PUSH notifications","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"no_muted","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Avoid receiving (silent and invisible background) notifications. Useful to save battery."},{"name":"token_type","type":"int","comment":"Device token type, see PUSH updates for the possible values."},{"name":"token","type":"string","comment":"Device token, see PUSH updates for the possible values."},{"name":"app_sandbox","type":"Bool","comment":"If true is transmitted, a sandbox-certificate will be used during transmission."},{"name":"secret","type":"bytes","comment":"For FCM and APNS VoIP, optional encryption key used to encrypt push notifications"},{"name":"other_uids","type":"int53","typeModifiers":{"isVector":true},"comment":"List of user identifiers of other users currently using the client"}],"throws":[{"code":400,"name":"TOKEN_EMPTY","comment":"The specified token is empty."},{"code":400,"name":"TOKEN_INVALID","comment":"The provided token is invalid."},{"code":400,"name":"TOKEN_TYPE_INVALID","comment":"The specified token type is invalid."},{"code":400,"name":"WEBPUSH_AUTH_INVALID","comment":"The specified web push authentication secret is invalid."},{"code":400,"name":"WEBPUSH_KEY_INVALID","comment":"The specified web push elliptic curve Diffie-Hellman public key is invalid."},{"code":400,"name":"WEBPUSH_TOKEN_INVALID","comment":"The specified web push token is invalid."}],"available":"user"},{"kind":"method","name":"account.unregisterDevice","type":"Bool","id":1779249670,"comment":"Deletes a device by its token, stops sending PUSH-notifications to it.","arguments":[{"name":"token_type","type":"int","comment":"Device token type, see PUSH updates for the possible values."},{"name":"token","type":"string","comment":"Device token, see PUSH updates for the possible values."},{"name":"other_uids","type":"int53","typeModifiers":{"isVector":true},"comment":"List of user identifiers of other users currently using the client"}],"throws":[{"code":400,"name":"TOKEN_INVALID","comment":"The provided token is invalid."}],"available":"user"},{"kind":"method","name":"account.updateNotifySettings","type":"Bool","id":2227067795,"comment":"Edits notification settings from a given user/group, from all users/all groups.","arguments":[{"name":"peer","type":"InputNotifyPeer","comment":"Notification source"},{"name":"settings","type":"InputPeerNotifySettings","comment":"Notification settings"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"SETTINGS_INVALID","comment":"Invalid settings were provided."}],"available":"user"},{"kind":"method","name":"account.getNotifySettings","type":"PeerNotifySettings","typeModifiers":{"constructorId":2573347852},"id":313765169,"comment":"Gets current notification settings for a given user/group, from all users/all groups.","arguments":[{"name":"peer","type":"InputNotifyPeer","comment":"Notification source"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"account.resetNotifySettings","type":"Bool","id":3682473799,"comment":"Resets all notification settings from users and groups.","arguments":[],"available":"user"},{"kind":"method","name":"account.updateProfile","type":"User","id":2018596725,"comment":"Updates user profile.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"first_name","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"New user first name"},{"name":"last_name","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"New user last name"},{"name":"about","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"New bio"}],"throws":[{"code":400,"name":"ABOUT_TOO_LONG","comment":"About string too long."},{"code":400,"name":"FIRSTNAME_INVALID","comment":"The first name is invalid."}],"available":"user"},{"kind":"method","name":"account.updateStatus","type":"Bool","id":1713919532,"comment":"Updates online user status.","arguments":[{"name":"offline","type":"Bool","comment":"If true is transmitted, user status will change to {@link RawUserStatusOffline}."}],"available":"user"},{"kind":"method","name":"account.getWallPapers","type":"account.WallPapers","id":127302966,"comment":"Returns a list of available wallpapers.","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.reportPeer","type":"Bool","id":3317316998,"comment":"Report a peer for violation of telegram's Terms of Service","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer to report"},{"name":"reason","type":"ReportReason","comment":"The reason why this peer is being reported"},{"name":"message","type":"string","comment":"Comment for report moderation"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"account.checkUsername","type":"Bool","id":655677548,"comment":"Validates a username and checks availability.","arguments":[{"name":"username","type":"string","comment":"username
Accepted characters: A-z (case-insensitive), 0-9 and underscores.
Length: 5-32 characters."}],"throws":[{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."},{"code":400,"name":"USERNAME_OCCUPIED","comment":"The provided username is already occupied."},{"code":400,"name":"USERNAME_PURCHASE_AVAILABLE","comment":"The specified username can be purchased on https://fragment.com."}],"available":"user"},{"kind":"method","name":"account.updateUsername","type":"User","id":1040964988,"comment":"Changes username for the current user.","arguments":[{"name":"username","type":"string","comment":"username or empty string if username is to be removed
Accepted characters: a-z (case-insensitive), 0-9 and underscores.
Length: 5-32 characters."}],"throws":[{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."},{"code":400,"name":"USERNAME_NOT_MODIFIED","comment":"The username was not modified."},{"code":400,"name":"USERNAME_OCCUPIED","comment":"The provided username is already occupied."},{"code":400,"name":"USERNAME_PURCHASE_AVAILABLE","comment":"The specified username can be purchased on https://fragment.com."}],"available":"user"},{"kind":"method","name":"account.getPrivacy","type":"account.PrivacyRules","typeModifiers":{"constructorId":1352683077},"id":3671837008,"comment":"Get privacy settings of current account","arguments":[{"name":"key","type":"InputPrivacyKey","comment":"Peer category whose privacy settings should be fetched"}],"throws":[{"code":400,"name":"PRIVACY_KEY_INVALID","comment":"The privacy key is invalid."}],"available":"user"},{"kind":"method","name":"account.setPrivacy","type":"account.PrivacyRules","typeModifiers":{"constructorId":1352683077},"id":3388480744,"comment":"Change privacy settings of current account","arguments":[{"name":"key","type":"InputPrivacyKey","comment":"New privacy rule"},{"name":"rules","type":"InputPrivacyRule","typeModifiers":{"isVector":true},"comment":"Peers to which the privacy rule will apply."}],"throws":[{"code":400,"name":"PRIVACY_KEY_INVALID","comment":"The privacy key is invalid."},{"code":400,"name":"PRIVACY_TOO_LONG","comment":"Too many privacy rules were specified, the current limit is 1000."},{"code":400,"name":"PRIVACY_VALUE_INVALID","comment":"The specified privacy rule combination is invalid."}],"available":"user"},{"kind":"method","name":"account.deleteAccount","type":"Bool","id":2730545012,"comment":"Delete the user's account from the telegram servers.\n\nCan also be used to delete the account of a user that provided the login code, but forgot the 2FA password and no recovery method is configured, see here ยป for more info on password recovery, and here ยป for more info on account deletion.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"reason","type":"string","comment":"Why is the account being deleted, can be empty"},{"name":"password","type":"InputCheckPasswordSRP","typeModifiers":{"predicate":"flags.0"},"comment":"2FA password: this field can be omitted even for accounts with 2FA enabled: in this case account account deletion will be delayed by 7 days as specified in the docs ยป"}],"throws":[{"code":420,"name":"2FA_CONFIRM_WAIT_%d","comment":"Since this account is active and protected by a 2FA password, we will delete it in 1 week for security purposes. You can cancel this process at any time, you'll be able to reset your account in %d seconds."}],"available":"user"},{"kind":"method","name":"account.getAccountTTL","type":"AccountDaysTTL","typeModifiers":{"constructorId":3100684255},"id":150761757,"comment":"Get days to live of account","arguments":[],"available":"user"},{"kind":"method","name":"account.setAccountTTL","type":"Bool","id":608323678,"comment":"Set account self-destruction period","arguments":[{"name":"ttl","type":"AccountDaysTTL","comment":"Time to live in days"}],"throws":[{"code":400,"name":"TTL_DAYS_INVALID","comment":"The provided TTL is invalid."}],"available":"user"},{"kind":"method","name":"account.sendChangePhoneCode","type":"auth.SentCode","id":2186758885,"comment":"Verify a new phone number to associate to the current account","arguments":[{"name":"phone_number","type":"string","comment":"New phone number"},{"name":"settings","type":"CodeSettings","comment":"Phone code settings"}],"throws":[{"code":406,"name":"FRESH_CHANGE_PHONE_FORBIDDEN","comment":"You can't change phone number right after logging in, please wait at least 24 hours."},{"code":400,"name":"PHONE_NUMBER_BANNED","comment":"The provided phone number is banned from telegram."},{"code":406,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."},{"code":400,"name":"PHONE_NUMBER_OCCUPIED","comment":"The phone number is already in use."}],"available":"user"},{"kind":"method","name":"account.changePhone","type":"User","id":1891839707,"comment":"Change the phone number of the current account","arguments":[{"name":"phone_number","type":"string","comment":"New phone number"},{"name":"phone_code_hash","type":"string","comment":"Phone code hash received when calling {@link account.RawSendChangePhoneCodeRequest}"},{"name":"phone_code","type":"string","comment":"Phone code received when calling {@link account.RawSendChangePhoneCodeRequest}"}],"throws":[{"code":400,"name":"PHONE_CODE_EMPTY","comment":"phone_code is missing."},{"code":400,"name":"PHONE_CODE_EXPIRED","comment":"The phone code you provided has expired."},{"code":406,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."},{"code":400,"name":"PHONE_NUMBER_OCCUPIED","comment":"The phone number is already in use."}],"available":"user"},{"kind":"method","name":"account.updateDeviceLocked","type":"Bool","id":954152242,"comment":"When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications.","arguments":[{"name":"period","type":"int","comment":"Inactivity period after which to start hiding message texts in PUSH notifications."}],"available":"user"},{"kind":"method","name":"account.getAuthorizations","type":"account.Authorizations","typeModifiers":{"constructorId":1275039392},"id":3810574680,"comment":"Get logged-in sessions","arguments":[],"available":"user"},{"kind":"method","name":"account.resetAuthorization","type":"Bool","id":3749180348,"comment":"Log out an active authorized session by its hash","arguments":[{"name":"hash","type":"long","comment":"Session hash"}],"throws":[{"code":406,"name":"FRESH_RESET_AUTHORISATION_FORBIDDEN","comment":"You can't logout other sessions if less than 24 hours have passed since you logged on the current session."},{"code":400,"name":"HASH_INVALID","comment":"The provided hash is invalid."}],"available":"user"},{"kind":"method","name":"account.getPassword","type":"account.Password","typeModifiers":{"constructorId":2507886843},"id":1418342645,"comment":"Obtain configuration for two-factor authorization with password","arguments":[],"available":"user"},{"kind":"method","name":"account.getPasswordSettings","type":"account.PasswordSettings","typeModifiers":{"constructorId":2589733861},"id":2631199481,"comment":"Get private info associated to the password info (recovery email, telegram passport info & so on)","arguments":[{"name":"password","type":"InputCheckPasswordSRP","comment":"The password (see SRP)"}],"throws":[{"code":400,"name":"PASSWORD_HASH_INVALID","comment":"The provided password hash is invalid."}],"available":"user"},{"kind":"method","name":"account.updatePasswordSettings","type":"Bool","id":2778402863,"comment":"Set a new 2FA password","arguments":[{"name":"password","type":"InputCheckPasswordSRP","comment":"The old password (see SRP)"},{"name":"new_settings","type":"account.PasswordInputSettings","comment":"The new password (see SRP)"}],"throws":[{"code":400,"name":"EMAIL_INVALID","comment":"The specified email is invalid."},{"code":400,"name":"EMAIL_UNCONFIRMED","comment":"Email unconfirmed."},{"code":400,"name":"EMAIL_UNCONFIRMED_%d","comment":"The provided email isn't confirmed, %d is the length of the verification code that was just sent to the email: use {@link account.RawVerifyEmailRequest} to enter the received verification code and enable the recovery email."},{"code":400,"name":"NEW_SALT_INVALID","comment":"The new salt is invalid."},{"code":400,"name":"NEW_SETTINGS_EMPTY","comment":"No password is set on the current account, and no new password was specified in new_settings."},{"code":400,"name":"NEW_SETTINGS_INVALID","comment":"The new password settings are invalid."},{"code":400,"name":"PASSWORD_HASH_INVALID","comment":"The provided password hash is invalid."},{"code":400,"name":"SRP_ID_INVALID","comment":"Invalid SRP ID provided."},{"code":400,"name":"SRP_PASSWORD_CHANGED","comment":"Password has changed."}],"available":"user"},{"kind":"method","name":"account.sendConfirmPhoneCode","type":"auth.SentCode","id":457157256,"comment":"Send confirmation code to cancel account deletion, for more info click here ยป","arguments":[{"name":"hash","type":"string","comment":"The hash from the service notification, for more info click here ยป"},{"name":"settings","type":"CodeSettings","comment":"Phone code settings"}],"throws":[{"code":400,"name":"HASH_INVALID","comment":"The provided hash is invalid."}],"available":"user"},{"kind":"method","name":"account.confirmPhone","type":"Bool","id":1596029123,"comment":"Confirm a phone number to cancel account deletion, for more info click here ยป","arguments":[{"name":"phone_code_hash","type":"string","comment":"Phone code hash, for more info click here ยป"},{"name":"phone_code","type":"string","comment":"SMS code, for more info click here ยป"}],"throws":[{"code":400,"name":"CODE_HASH_INVALID","comment":"Code hash invalid."},{"code":400,"name":"PHONE_CODE_EMPTY","comment":"phone_code is missing."}],"available":"user"},{"kind":"method","name":"account.getTmpPassword","type":"account.TmpPassword","typeModifiers":{"constructorId":3680828724},"id":1151208273,"comment":"Get temporary payment password","arguments":[{"name":"password","type":"InputCheckPasswordSRP","comment":"SRP password parameters"},{"name":"period","type":"int","comment":"Time during which the temporary password will be valid, in seconds; should be between 60 and 86400"}],"throws":[{"code":400,"name":"PASSWORD_HASH_INVALID","comment":"The provided password hash is invalid."},{"code":400,"name":"TMP_PASSWORD_DISABLED","comment":"The temporary password is disabled."}],"available":"user"},{"kind":"method","name":"account.getWebAuthorizations","type":"account.WebAuthorizations","typeModifiers":{"constructorId":3981887996},"id":405695855,"comment":"Get web login widget authorizations","arguments":[],"available":"user"},{"kind":"method","name":"account.resetWebAuthorization","type":"Bool","id":755087855,"comment":"Log out an active web telegram login session","arguments":[{"name":"hash","type":"long","comment":"{@link RawWebAuthorization} hash"}],"throws":[{"code":400,"name":"HASH_INVALID","comment":"The provided hash is invalid."}],"available":"user"},{"kind":"method","name":"account.resetWebAuthorizations","type":"Bool","id":1747789204,"comment":"Reset all active web telegram login sessions","arguments":[],"available":"user"},{"kind":"method","name":"account.getAllSecureValues","type":"SecureValue","typeModifiers":{"isVector":true,"constructorId":411017418},"id":2995305597,"comment":"Get all saved Telegram Passport documents, for more info see the passport docs ยป","arguments":[],"available":"user"},{"kind":"method","name":"account.getSecureValue","type":"SecureValue","typeModifiers":{"isVector":true,"constructorId":411017418},"id":1936088002,"comment":"Get saved Telegram Passport document, for more info see the passport docs ยป","arguments":[{"name":"types","type":"SecureValueType","typeModifiers":{"isVector":true},"comment":"Requested value types"}],"available":"user"},{"kind":"method","name":"account.saveSecureValue","type":"SecureValue","typeModifiers":{"constructorId":411017418},"id":2308956957,"comment":"Securely save Telegram Passport document, for more info see the passport docs ยป","arguments":[{"name":"value","type":"InputSecureValue","comment":"Secure value, for more info see the passport docs ยป"},{"name":"secure_secret_id","type":"long","comment":"Passport secret hash, for more info see the passport docs ยป"}],"throws":[{"code":400,"name":"PASSWORD_REQUIRED","comment":"A 2FA password must be configured to use Telegram Passport."}],"available":"user"},{"kind":"method","name":"account.deleteSecureValue","type":"Bool","id":3095444555,"comment":"Delete stored Telegram Passport documents, for more info see the passport docs ยป","arguments":[{"name":"types","type":"SecureValueType","typeModifiers":{"isVector":true},"comment":"Document types to delete"}],"available":"user"},{"kind":"method","name":"account.getAuthorizationForm","type":"account.AuthorizationForm","typeModifiers":{"constructorId":2905480408},"id":2838059386,"comment":"Returns a Telegram Passport authorization form for sharing data with a service","arguments":[{"name":"bot_id","type":"int53","comment":"User identifier of the service's bot"},{"name":"scope","type":"string","comment":"Telegram Passport element types requested by the service"},{"name":"public_key","type":"string","comment":"Service's public key"}],"throws":[{"code":400,"name":"PUBLIC_KEY_REQUIRED","comment":"A public key is required."}],"available":"user"},{"kind":"method","name":"account.acceptAuthorization","type":"Bool","id":4092415091,"comment":"Sends a Telegram Passport authorization form, effectively sharing data with the service","arguments":[{"name":"bot_id","type":"int53","comment":"Bot ID"},{"name":"scope","type":"string","comment":"Telegram Passport element types requested by the service"},{"name":"public_key","type":"string","comment":"Service's public key"},{"name":"value_hashes","type":"SecureValueHash","typeModifiers":{"isVector":true},"comment":"Types of values sent and their hashes"},{"name":"credentials","type":"SecureCredentialsEncrypted","comment":"Encrypted values"}],"available":"user"},{"kind":"method","name":"account.sendVerifyPhoneCode","type":"auth.SentCode","id":2778945273,"comment":"Send the verification phone code for telegram passport.","arguments":[{"name":"phone_number","type":"string","comment":"The phone number to verify"},{"name":"settings","type":"CodeSettings","comment":"Phone code settings"}],"throws":[{"code":400,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."}],"available":"user"},{"kind":"method","name":"account.verifyPhone","type":"Bool","id":1305716726,"comment":"Verify a phone number for telegram passport.","arguments":[{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"phone_code_hash","type":"string","comment":"Phone code hash received from the call to {@link account.RawSendVerifyPhoneCodeRequest}"},{"name":"phone_code","type":"string","comment":"Code received after the call to {@link account.RawSendVerifyPhoneCodeRequest}"}],"throws":[{"code":400,"name":"PHONE_CODE_EMPTY","comment":"phone_code is missing."},{"code":400,"name":"PHONE_CODE_EXPIRED","comment":"The phone code you provided has expired."},{"code":400,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."}],"available":"user"},{"kind":"method","name":"account.sendVerifyEmailCode","type":"account.SentEmailCode","typeModifiers":{"constructorId":2166326607},"id":2564831163,"comment":"Send an email verification code.","arguments":[{"name":"purpose","type":"EmailVerifyPurpose","comment":"Verification purpose."},{"name":"email","type":"string","comment":"The email where to send the code."}],"throws":[{"code":400,"name":"EMAIL_INVALID","comment":"The specified email is invalid."},{"code":400,"name":"EMAIL_NOT_SETUP","comment":"In order to change the login email with emailVerifyPurposeLoginChange, an existing login email must already be set using emailVerifyPurposeLoginSetup."},{"code":400,"name":"PHONE_HASH_EXPIRED","comment":"An invalid or expired phone_code_hash was provided."},{"code":400,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."}],"available":"user"},{"kind":"method","name":"account.verifyEmail","type":"account.EmailVerified","id":53322959,"comment":"Verify an email address.","arguments":[{"name":"purpose","type":"EmailVerifyPurpose","comment":"Verification purpose"},{"name":"verification","type":"EmailVerification","comment":"Email verification code or token"}],"throws":[{"code":400,"name":"EMAIL_INVALID","comment":"The specified email is invalid."},{"code":400,"name":"EMAIL_VERIFY_EXPIRED","comment":"The verification email has expired."}],"available":"user"},{"kind":"method","name":"account.initTakeoutSession","type":"account.Takeout","typeModifiers":{"constructorId":1304052993},"id":2398350000,"comment":"Initialize a takeout session, see here ยป for more info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"contacts","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to export contacts"},{"name":"message_users","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to export messages in private chats"},{"name":"message_chats","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to export messages in basic groups"},{"name":"message_megagroups","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether to export messages in supergroups"},{"name":"message_channels","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether to export messages in channels"},{"name":"files","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether to export files"},{"name":"file_max_size","type":"int53","typeModifiers":{"predicate":"flags.5"},"comment":"Maximum size of files to export"}],"throws":[{"code":420,"name":"TAKEOUT_INIT_DELAY_%d","comment":"Sorry, for security reasons, you will be able to begin downloading your data in %d seconds. We have notified all your devices about the export request to make sure it's authorized and to give you time to react if it's not."}],"available":"user"},{"kind":"method","name":"account.finishTakeoutSession","type":"Bool","id":489050862,"comment":"Terminate a takeout session, see here ยป for more info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"success","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Data exported successfully"}],"throws":[{"code":403,"name":"TAKEOUT_REQUIRED","comment":"A takeout session needs to be initialized first, see here ยป for more info."}],"available":"user"},{"kind":"method","name":"account.confirmPasswordEmail","type":"Bool","id":2413762848,"comment":"Verify an email to use as 2FA recovery method.","arguments":[{"name":"code","type":"string","comment":"The phone code that was received after setting a recovery email"}],"throws":[{"code":400,"name":"CODE_INVALID","comment":"Code invalid."},{"code":400,"name":"EMAIL_HASH_EXPIRED","comment":"Email hash expired."}],"available":"user"},{"kind":"method","name":"account.resendPasswordEmail","type":"Bool","id":2055154197,"comment":"Resend the code to verify an email to use as 2FA recovery method.","arguments":[],"throws":[{"code":400,"name":"EMAIL_HASH_EXPIRED","comment":"Email hash expired."}],"available":"user"},{"kind":"method","name":"account.cancelPasswordEmail","type":"Bool","id":3251361206,"comment":"Cancel the code that was sent to verify an email to use as 2FA recovery method.","arguments":[],"throws":[{"code":400,"name":"EMAIL_HASH_EXPIRED","comment":"Email hash expired."}],"available":"user"},{"kind":"method","name":"account.getContactSignUpNotification","type":"Bool","id":2668087080,"comment":"Whether the user will receive notifications when contacts sign up","arguments":[],"available":"user"},{"kind":"method","name":"account.setContactSignUpNotification","type":"Bool","id":3488890721,"comment":"Toggle contact sign up notifications","arguments":[{"name":"silent","type":"Bool","comment":"Whether to disable contact sign up notifications"}],"available":"user"},{"kind":"method","name":"account.getNotifyExceptions","type":"Updates","id":1398240377,"comment":"Returns list of chats with non-default notification settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"compare_sound","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, chats with non-default sound will be returned"},{"name":"compare_stories","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, chats with non-default notification settings for stories will be returned"},{"name":"peer","type":"InputNotifyPeer","typeModifiers":{"predicate":"flags.0"},"comment":"If specified, only chats of the specified category will be returned"}],"available":"user"},{"kind":"method","name":"account.getWallPaper","type":"WallPaper","id":4237155306,"comment":"Get info about a certain wallpaper","arguments":[{"name":"wallpaper","type":"InputWallPaper","comment":"The wallpaper to get info about"}],"throws":[{"code":400,"name":"WALLPAPER_INVALID","comment":"The specified wallpaper is invalid."}],"available":"user"},{"kind":"method","name":"account.uploadWallPaper","type":"WallPaper","id":3818557187,"comment":"Create and upload a new wallpaper","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"for_chat","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set this flag when uploading wallpapers to be passed to {@link messages.RawSetChatWallPaperRequest}."},{"name":"file","type":"InputFile","comment":"The JPG/PNG wallpaper"},{"name":"mime_type","type":"string","comment":"MIME type of uploaded wallpaper"},{"name":"settings","type":"WallPaperSettings","comment":"Wallpaper settings"}],"throws":[{"code":400,"name":"WALLPAPER_FILE_INVALID","comment":"The specified wallpaper file is invalid."},{"code":400,"name":"WALLPAPER_MIME_INVALID","comment":"The specified wallpaper MIME type is invalid."}],"available":"user"},{"kind":"method","name":"account.saveWallPaper","type":"Bool","id":1817860919,"comment":"Install/uninstall wallpaper","arguments":[{"name":"wallpaper","type":"InputWallPaper","comment":"Wallpaper to install or uninstall"},{"name":"unsave","type":"Bool","comment":"Uninstall wallpaper?"},{"name":"settings","type":"WallPaperSettings","comment":"Wallpaper settings"}],"throws":[{"code":400,"name":"WALLPAPER_INVALID","comment":"The specified wallpaper is invalid."}],"available":"user"},{"kind":"method","name":"account.installWallPaper","type":"Bool","id":4276967273,"comment":"Install wallpaper","arguments":[{"name":"wallpaper","type":"InputWallPaper","comment":"Wallpaper to install"},{"name":"settings","type":"WallPaperSettings","comment":"Wallpaper settings"}],"throws":[{"code":400,"name":"WALLPAPER_INVALID","comment":"The specified wallpaper is invalid."}],"available":"user"},{"kind":"method","name":"account.resetWallPapers","type":"Bool","id":3141244932,"comment":"Delete all installed wallpapers, reverting to the default wallpaper set.","arguments":[],"available":"user"},{"kind":"method","name":"account.getAutoDownloadSettings","type":"account.AutoDownloadSettings","typeModifiers":{"constructorId":1674235686},"id":1457130303,"comment":"Get media autodownload settings","arguments":[],"available":"user"},{"kind":"method","name":"account.saveAutoDownloadSettings","type":"Bool","id":1995661875,"comment":"Change media autodownload settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"low","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to save media in the low data usage preset"},{"name":"high","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to save media in the high data usage preset"},{"name":"settings","type":"AutoDownloadSettings","comment":"Media autodownload settings"}],"available":"user"},{"kind":"method","name":"account.uploadTheme","type":"Document","id":473805619,"comment":"Upload theme","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"file","type":"InputFile","comment":"Previously uploaded theme file with platform-specific colors for UI components, can be left unset when creating themes that only modify the wallpaper or accent colors."},{"name":"thumb","type":"InputFile","typeModifiers":{"predicate":"flags.0"},"comment":"Thumbnail"},{"name":"file_name","type":"string","comment":"File name"},{"name":"mime_type","type":"string","comment":"MIME type, must be application/x-tgtheme-{format}, where format depends on the client"}],"throws":[{"code":400,"name":"THEME_FILE_INVALID","comment":"Invalid theme file provided."}],"available":"user"},{"kind":"method","name":"account.createTheme","type":"Theme","typeModifiers":{"constructorId":2685298646},"id":1697530880,"comment":"Create a theme","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"slug","type":"string","comment":"Unique theme ID used to generate theme deep links, can be empty to autogenerate a random ID."},{"name":"title","type":"string","comment":"Theme name"},{"name":"document","type":"InputDocument","typeModifiers":{"predicate":"flags.2"},"comment":"Theme file"},{"name":"settings","type":"InputThemeSettings","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Theme settings, multiple values can be provided for the different base themes (day/night mode, etc)."}],"throws":[{"code":400,"name":"THEME_MIME_INVALID","comment":"The theme's MIME type is invalid."},{"code":400,"name":"THEME_TITLE_INVALID","comment":"The specified theme title is invalid."}],"available":"user"},{"kind":"method","name":"account.updateTheme","type":"Theme","typeModifiers":{"constructorId":2685298646},"id":737414348,"comment":"Update theme","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"format","type":"string","comment":"Theme format, a string that identifies the theming engines supported by the client"},{"name":"theme","type":"InputTheme","comment":"Theme to update"},{"name":"slug","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Unique theme ID"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Theme name"},{"name":"document","type":"InputDocument","typeModifiers":{"predicate":"flags.2"},"comment":"Theme file"},{"name":"settings","type":"InputThemeSettings","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Theme settings"}],"throws":[{"code":400,"name":"THEME_INVALID","comment":"Invalid theme provided."}],"available":"user"},{"kind":"method","name":"account.saveTheme","type":"Bool","id":4065792108,"comment":"Save a theme","arguments":[{"name":"theme","type":"InputTheme","comment":"Theme to save"},{"name":"unsave","type":"Bool","comment":"Unsave"}],"available":"user"},{"kind":"method","name":"account.installTheme","type":"Bool","id":3341269819,"comment":"Install a theme","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to install the dark version"},{"name":"theme","type":"InputTheme","typeModifiers":{"predicate":"flags.1"},"comment":"Theme to install"},{"name":"format","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Theme format, a string that identifies the theming engines supported by the client"},{"name":"base_theme","type":"BaseTheme","typeModifiers":{"predicate":"flags.3"},"comment":"Indicates a basic theme provided by all clients"}],"available":"user"},{"kind":"method","name":"account.getTheme","type":"Theme","typeModifiers":{"constructorId":2685298646},"id":978872812,"comment":"Get theme information","arguments":[{"name":"format","type":"string","comment":"Theme format, a string that identifies the theming engines supported by the client"},{"name":"theme","type":"InputTheme","comment":"Theme"}],"throws":[{"code":400,"name":"THEME_FORMAT_INVALID","comment":"Invalid theme format provided."},{"code":400,"name":"THEME_INVALID","comment":"Invalid theme provided."}],"available":"user"},{"kind":"method","name":"account.getThemes","type":"account.Themes","id":1913054296,"comment":"Get installed themes","arguments":[{"name":"format","type":"string","comment":"Theme format, a string that identifies the theming engines supported by the client"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.setContentSettings","type":"Bool","id":3044323691,"comment":"Set sensitive content settings (for viewing or hiding NSFW content)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"sensitive_enabled","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Enable NSFW content"}],"throws":[{"code":403,"name":"SENSITIVE_CHANGE_FORBIDDEN","comment":"You can't change your sensitive content settings."}],"available":"user"},{"kind":"method","name":"account.getContentSettings","type":"account.ContentSettings","typeModifiers":{"constructorId":1474462241},"id":2342210990,"comment":"Get sensitive content settings","arguments":[],"available":"user"},{"kind":"method","name":"account.getMultiWallPapers","type":"WallPaper","typeModifiers":{"isVector":true},"id":1705865692,"comment":"Get info about multiple wallpapers","arguments":[{"name":"wallpapers","type":"InputWallPaper","typeModifiers":{"isVector":true},"comment":"Wallpapers to fetch info about"}],"throws":[{"code":400,"name":"WALLPAPER_INVALID","comment":"The specified wallpaper is invalid."}],"available":"user"},{"kind":"method","name":"account.getGlobalPrivacySettings","type":"GlobalPrivacySettings","typeModifiers":{"constructorId":1934380235},"id":3945483510,"comment":"Get global privacy settings","arguments":[],"available":"user"},{"kind":"method","name":"account.setGlobalPrivacySettings","type":"GlobalPrivacySettings","typeModifiers":{"constructorId":1934380235},"id":517647042,"comment":"Set global privacy settings","arguments":[{"name":"settings","type":"GlobalPrivacySettings","comment":"Global privacy settings"}],"throws":[{"code":400,"name":"AUTOARCHIVE_NOT_AVAILABLE","comment":"The autoarchive setting is not available at this time: please check the value of the autoarchive_setting_available field in client config ยป before calling this method."}],"available":"user"},{"kind":"method","name":"account.reportProfilePhoto","type":"Bool","id":4203529973,"comment":"Report a profile photo of a dialog","arguments":[{"name":"peer","type":"InputPeer","comment":"The dialog"},{"name":"photo_id","type":"InputPhoto","comment":"Dialog photo ID"},{"name":"reason","type":"ReportReason","comment":"Report reason"},{"name":"message","type":"string","comment":"Comment for report moderation"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"account.resetPassword","type":"account.ResetPasswordResult","id":2466827803,"comment":"Initiate a 2FA password reset: can only be used if the user is already logged-in, see here for more info ยป","arguments":[],"throws":[{"code":400,"name":"PASSWORD_EMPTY","comment":"The provided password is empty."}],"available":"user"},{"kind":"method","name":"account.declinePasswordReset","type":"Bool","id":1284770294,"comment":"Abort a pending 2FA password reset, see here for more info ยป","arguments":[],"throws":[{"code":400,"name":"RESET_REQUEST_MISSING","comment":"No password reset is in progress."}],"available":"user"},{"kind":"method","name":"account.getChatThemes","type":"account.Themes","id":3594051209,"comment":"Get all available chat themes ยป.","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.setAuthorizationTTL","type":"Bool","id":3213466272,"comment":"Set time-to-live of current session","arguments":[{"name":"authorization_ttl_days","type":"int","comment":"Time-to-live of current session in days"}],"throws":[{"code":406,"name":"FRESH_RESET_AUTHORISATION_FORBIDDEN","comment":"You can't logout other sessions if less than 24 hours have passed since you logged on the current session."},{"code":400,"name":"TTL_DAYS_INVALID","comment":"The provided TTL is invalid."}],"available":"user"},{"kind":"method","name":"account.changeAuthorizationSettings","type":"Bool","id":1089766498,"comment":"Change settings related to a session.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"confirmed","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, confirms a newly logged in session ยป."},{"name":"hash","type":"long","comment":"Session ID from the {@link RawAuthorization} constructor, fetchable using {@link account.RawGetAuthorizationsRequest}"},{"name":"encrypted_requests_disabled","type":"Bool","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to enable or disable receiving encrypted chats: if the flag is not set, the previous setting is not changed"},{"name":"call_requests_disabled","type":"Bool","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to enable or disable receiving calls: if the flag is not set, the previous setting is not changed"}],"throws":[{"code":400,"name":"HASH_INVALID","comment":"The provided hash is invalid."}],"available":"user"},{"kind":"method","name":"account.getSavedRingtones","type":"account.SavedRingtones","id":3784319624,"comment":"Fetch saved notification sounds","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.saveRingtone","type":"account.SavedRingtone","id":1038768899,"comment":"Save or remove saved notification sound.\n\nIf the notification sound is already in MP3 format, {@link account.RawSavedRingtone} will be returned.
\nOtherwise, it will be automatically converted and a {@link account.RawSavedRingtoneConverted} will be returned, containing a new {@link RawDocument} object that should be used to refer to the ringtone from now on (ie when deleting it using the unsave parameter, or when downloading it).","arguments":[{"name":"id","type":"InputDocument","comment":"Notification sound uploaded using {@link account.RawUploadRingtoneRequest}"},{"name":"unsave","type":"Bool","comment":"Whether to add or delete the notification sound"}],"available":"user"},{"kind":"method","name":"account.uploadRingtone","type":"Document","id":2199552930,"comment":"Upload notification sound, use {@link account.RawSaveRingtoneRequest} to convert it and add it to the list of saved notification sounds.","arguments":[{"name":"file","type":"InputFile","comment":"Notification sound"},{"name":"file_name","type":"string","comment":"File name"},{"name":"mime_type","type":"string","comment":"MIME type of file"}],"available":"user"},{"kind":"method","name":"account.updateEmojiStatus","type":"Bool","id":4224966251,"comment":"Set an emoji status","arguments":[{"name":"emoji_status","type":"EmojiStatus","comment":"Emoji status to set"}],"throws":[{"code":400,"name":"DOCUMENT_INVALID","comment":"The specified document is invalid."}],"available":"user"},{"kind":"method","name":"account.getDefaultEmojiStatuses","type":"account.EmojiStatuses","id":3598005126,"comment":"Get a list of default suggested emoji statuses","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.getRecentEmojiStatuses","type":"account.EmojiStatuses","id":257392901,"comment":"Get recently used emoji statuses","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.clearRecentEmojiStatuses","type":"Bool","id":404757166,"comment":"Clears list of recently used emoji statuses","arguments":[],"available":"user"},{"kind":"method","name":"account.reorderUsernames","type":"Bool","id":4015001259,"comment":"Reorder usernames associated with the currently logged-in user.","arguments":[{"name":"order","type":"string","typeModifiers":{"isVector":true},"comment":"The new order for active usernames. All active usernames must be specified."}],"throws":[{"code":400,"name":"ORDER_INVALID","comment":"The specified username order is invalid."}],"available":"user"},{"kind":"method","name":"account.toggleUsername","type":"Bool","id":1490465654,"comment":"Activate or deactivate a purchased fragment.com username associated to the currently logged-in user.","arguments":[{"name":"username","type":"string","comment":"Username"},{"name":"active","type":"Bool","comment":"Whether to activate or deactivate it"}],"throws":[{"code":400,"name":"USERNAMES_ACTIVE_TOO_MUCH","comment":"The maximum number of active usernames was reached."},{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."}],"available":"user"},{"kind":"method","name":"account.getDefaultProfilePhotoEmojis","type":"EmojiList","id":3799319336,"comment":"Get a set of suggested custom emoji stickers that can be used as profile picture","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.getDefaultGroupPhotoEmojis","type":"EmojiList","id":2438488238,"comment":"Get a set of suggested custom emoji stickers that can be used as group picture","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.getAutoSaveSettings","type":"account.AutoSaveSettings","typeModifiers":{"constructorId":1279133341},"id":2915810522,"comment":"Get autosave settings","arguments":[],"available":"user"},{"kind":"method","name":"account.saveAutoSaveSettings","type":"Bool","id":3600515937,"comment":"Modify autosave settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"users","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the new settings should affect all private chats"},{"name":"chats","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the new settings should affect all groups"},{"name":"broadcasts","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the new settings should affect all channels"},{"name":"peer","type":"InputPeer","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the new settings should affect a specific peer"},{"name":"settings","type":"AutoSaveSettings","comment":"The new autosave settings"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"both"},{"kind":"method","name":"account.deleteAutoSaveExceptions","type":"Bool","id":1404829728,"comment":"Clear all peer-specific autosave settings.","arguments":[],"available":"user"},{"kind":"method","name":"account.invalidateSignInCodes","type":"Bool","id":3398101178,"comment":"Invalidate the specified login codes, see here ยป for more info.","arguments":[{"name":"codes","type":"string","typeModifiers":{"isVector":true},"comment":"The login codes to invalidate."}],"available":"user"},{"kind":"method","name":"account.updateColor","type":"Bool","id":2096079197,"comment":"Update the accent color and background custom emoji ยป of the current account.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"for_profile","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed."},{"name":"color","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"ID of the accent color palette ยป to use (not RGB24, see here ยป for more info)."},{"name":"background_emoji_id","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"Custom emoji ID used in the accent color pattern."}],"throws":[{"code":400,"name":"COLOR_INVALID","comment":"The specified color palette ID was invalid."}],"available":"user"},{"kind":"method","name":"account.getDefaultBackgroundEmojis","type":"EmojiList","id":2785720782,"comment":"Get a set of suggested custom emoji stickers that can be used in an accent color pattern.","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.getChannelDefaultEmojiStatuses","type":"account.EmojiStatuses","id":1999087573,"comment":"Get a list of default suggested channel emoji statuses.","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.getChannelRestrictedStatusEmojis","type":"EmojiList","id":900325589,"comment":"Returns fetch the full list of custom emoji IDs ยป that cannot be used in channel emoji statuses ยป.","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.updateBusinessWorkHours","type":"Bool","id":1258348646,"arguments":[{"name":"flags","type":"#"},{"name":"business_work_hours","type":"BusinessWorkHours","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"account.updateBusinessLocation","type":"Bool","id":2657817370,"arguments":[{"name":"flags","type":"#"},{"name":"geo_point","type":"InputGeoPoint","typeModifiers":{"predicate":"flags.1"}},{"name":"address","type":"string","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"account.updateBusinessGreetingMessage","type":"Bool","id":1724755908,"arguments":[{"name":"flags","type":"#"},{"name":"message","type":"InputBusinessGreetingMessage","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"account.updateBusinessAwayMessage","type":"Bool","id":2724888485,"arguments":[{"name":"flags","type":"#"},{"name":"message","type":"InputBusinessAwayMessage","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"account.updateConnectedBot","type":"Updates","id":1138250269,"arguments":[{"name":"flags","type":"#"},{"name":"can_reply","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"deleted","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"bot","type":"InputUser"},{"name":"recipients","type":"InputBusinessBotRecipients"}]},{"kind":"method","name":"account.getConnectedBots","type":"account.ConnectedBots","typeModifiers":{"constructorId":400029819},"id":1319421967,"arguments":[]},{"kind":"method","name":"account.getBotBusinessConnection","type":"Updates","id":1990746736,"arguments":[{"name":"connection_id","type":"string"}]},{"kind":"method","name":"account.updateBusinessIntro","type":"Bool","id":2786381876,"arguments":[{"name":"flags","type":"#"},{"name":"intro","type":"InputBusinessIntro","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"account.toggleConnectedBotPaused","type":"Bool","id":1684934807,"arguments":[{"name":"peer","type":"InputPeer"},{"name":"paused","type":"Bool"}]},{"kind":"method","name":"account.disablePeerConnectedBot","type":"Bool","id":1581481689,"arguments":[{"name":"peer","type":"InputPeer"}]},{"kind":"method","name":"account.updateBirthday","type":"Bool","id":3429764113,"arguments":[{"name":"flags","type":"#"},{"name":"birthday","type":"Birthday","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"account.createBusinessChatLink","type":"BusinessChatLink","typeModifiers":{"constructorId":3031328367},"id":2287068814,"arguments":[{"name":"link","type":"InputBusinessChatLink"}]},{"kind":"method","name":"account.editBusinessChatLink","type":"BusinessChatLink","typeModifiers":{"constructorId":3031328367},"id":2352222383,"arguments":[{"name":"slug","type":"string"},{"name":"link","type":"InputBusinessChatLink"}]},{"kind":"method","name":"account.deleteBusinessChatLink","type":"Bool","id":1611085428,"arguments":[{"name":"slug","type":"string"}]},{"kind":"method","name":"account.getBusinessChatLinks","type":"account.BusinessChatLinks","typeModifiers":{"constructorId":3963855569},"id":1869667809,"arguments":[]},{"kind":"method","name":"account.resolveBusinessChatLink","type":"account.ResolvedBusinessChatLinks","typeModifiers":{"constructorId":2586029857},"id":1418913262,"arguments":[{"name":"slug","type":"string"}]},{"kind":"method","name":"account.updatePersonalChannel","type":"Bool","id":3645048288,"arguments":[{"name":"channel","type":"InputChannel"}]},{"kind":"method","name":"account.toggleSponsoredMessages","type":"Bool","id":3118048141,"arguments":[{"name":"enabled","type":"Bool"}]},{"kind":"method","name":"account.getReactionsNotifySettings","type":"ReactionsNotifySettings","typeModifiers":{"constructorId":1457736048},"id":115172684,"arguments":[]},{"kind":"method","name":"account.setReactionsNotifySettings","type":"ReactionsNotifySettings","typeModifiers":{"constructorId":1457736048},"id":829220168,"arguments":[{"name":"settings","type":"ReactionsNotifySettings"}]},{"kind":"method","name":"users.getUsers","type":"User","typeModifiers":{"isVector":true},"id":227648840,"comment":"Returns basic user info according to their identifiers.","arguments":[{"name":"id","type":"InputUser","typeModifiers":{"isVector":true},"comment":"List of user identifiers"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"FROM_MESSAGE_BOT_DISABLED","comment":"Bots can't use fromMessage min constructors."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."}],"available":"both"},{"kind":"method","name":"users.getFullUser","type":"users.UserFull","typeModifiers":{"constructorId":997004590},"id":3054459160,"comment":"Returns extended user info by ID.","arguments":[{"name":"id","type":"InputUser","comment":"User ID"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USERNAME_OCCUPIED","comment":"The provided username is already occupied."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"both"},{"kind":"method","name":"users.setSecureValueErrors","type":"Bool","id":2429064373,"comment":"Notify the user that the sent passport data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change).\n\nUse this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues.","arguments":[{"name":"id","type":"InputUser","comment":"The user"},{"name":"errors","type":"SecureValueError","typeModifiers":{"isVector":true},"comment":"Errors"}],"throws":[{"code":403,"name":"USER_BOT_INVALID","comment":"User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts."},{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"bot"},{"kind":"method","name":"users.getIsPremiumRequiredToContact","type":"Bool","typeModifiers":{"isVector":true},"id":2787289616,"arguments":[{"name":"id","type":"InputUser","typeModifiers":{"isVector":true}}]},{"kind":"method","name":"contacts.getContactIDs","type":"int","typeModifiers":{"isVector":true},"id":2061264541,"comment":"Get the telegram IDs of all contacts.
\nReturns an array of Telegram user IDs for all contacts (0 if a contact does not have an associated Telegram account or have hidden their account using privacy settings).","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"contacts.getStatuses","type":"ContactStatus","typeModifiers":{"isVector":true,"constructorId":383348795},"id":3299038190,"comment":"Use this method to obtain the online statuses of all contacts with an accessible associated Telegram account.","arguments":[],"available":"user"},{"kind":"method","name":"contacts.getContacts","type":"contacts.Contacts","id":1574346258,"comment":"Returns the current user's contact list.","arguments":[{"name":"hash","type":"long","comment":"If there already is a full contact list on the client, a hash of a the list of contact IDs in ascending order may be passed in this parameter. If the contact set was not changed, {@link contacts.RawContactsNotModified} will be returned."}],"available":"user"},{"kind":"method","name":"contacts.importContacts","type":"contacts.ImportedContacts","typeModifiers":{"constructorId":2010127419},"id":746589157,"comment":"Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info.\n\nUse {@link contacts.RawAddContactRequest} to add Telegram contacts without actually using their phone number.","arguments":[{"name":"contacts","type":"InputContact","typeModifiers":{"isVector":true},"comment":"List of contacts to import"}],"available":"user"},{"kind":"method","name":"contacts.deleteContacts","type":"Updates","id":157945344,"comment":"Deletes several contacts from the list.","arguments":[{"name":"id","type":"InputUser","typeModifiers":{"isVector":true},"comment":"User ID list"}],"available":"user"},{"kind":"method","name":"contacts.deleteByPhones","type":"Bool","id":269745566,"comment":"Delete contacts by phone number","arguments":[{"name":"phones","type":"string","typeModifiers":{"isVector":true},"comment":"Phone numbers"}],"available":"user"},{"kind":"method","name":"contacts.block","type":"Bool","id":774801204,"comment":"Adds a peer to a blocklist, see here ยป for more info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"my_stories_from","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the peer should be added to the story blocklist; if not set, the peer will be added to the main blocklist, see here ยป for more info."},{"name":"id","type":"InputPeer","comment":"Peer"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CONTACT_ID_INVALID","comment":"The provided contact ID is invalid."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"contacts.unblock","type":"Bool","id":3041973032,"comment":"Deletes a peer from a blocklist, see here ยป for more info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"my_stories_from","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the peer should be removed from the story blocklist; if not set, the peer will be removed from the main blocklist, see here ยป for more info."},{"name":"id","type":"InputPeer","comment":"Peer"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CONTACT_ID_INVALID","comment":"The provided contact ID is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"contacts.getBlocked","type":"contacts.Blocked","id":2592509824,"comment":"Returns the list of blocked users.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"my_stories_from","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to fetch the story blocklist; if not set, will fetch the main blocklist. See here ยป for differences between the two."},{"name":"offset","type":"int","comment":"The number of list elements to be skipped"},{"name":"limit","type":"int","comment":"The number of list elements to be returned"}],"available":"user"},{"kind":"method","name":"contacts.search","type":"contacts.Found","typeModifiers":{"constructorId":3004386717},"id":301470424,"comment":"Returns users found by username substring.","arguments":[{"name":"q","type":"string","comment":"Target substring"},{"name":"limit","type":"int","comment":"Maximum number of users to be returned"}],"throws":[{"code":400,"name":"QUERY_TOO_SHORT","comment":"The query string is too short."},{"code":400,"name":"SEARCH_QUERY_EMPTY","comment":"The search query is empty."}],"available":"user"},{"kind":"method","name":"contacts.resolveUsername","type":"contacts.ResolvedPeer","typeModifiers":{"constructorId":2131196633},"id":4181511075,"comment":"Resolve a @username to get peer info","arguments":[{"name":"username","type":"string","comment":"@username to resolve"}],"throws":[{"code":400,"name":"CONNECTION_LAYER_INVALID","comment":"Layer invalid."},{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."},{"code":400,"name":"USERNAME_NOT_OCCUPIED","comment":"The provided username is not occupied."}],"available":"both"},{"kind":"method","name":"contacts.getTopPeers","type":"contacts.TopPeers","id":2536798390,"comment":"Get most used peers","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"correspondents","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Users we've chatted most frequently with"},{"name":"bots_pm","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Most used bots"},{"name":"bots_inline","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Most used inline bots"},{"name":"phone_calls","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Most frequently called users"},{"name":"forward_users","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Users to which the users often forwards messages to"},{"name":"forward_chats","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Chats to which the users often forwards messages to"},{"name":"groups","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"Often-opened groups and supergroups"},{"name":"channels","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"Most frequently visited channels"},{"name":"offset","type":"int","comment":"Offset for pagination"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":400,"name":"TYPES_EMPTY","comment":"No top peer type was provided."}],"available":"user"},{"kind":"method","name":"contacts.resetTopPeerRating","type":"Bool","id":451113900,"comment":"Reset rating of top peer","arguments":[{"name":"category","type":"TopPeerCategory","comment":"Top peer category"},{"name":"peer","type":"InputPeer","comment":"Peer whose rating should be reset"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"contacts.resetSaved","type":"Bool","id":2274703345,"comment":"Removes all contacts without an associated Telegram account.","arguments":[],"available":"user"},{"kind":"method","name":"contacts.getSaved","type":"SavedContact","typeModifiers":{"isVector":true,"constructorId":289586518},"id":2196890527,"comment":"Get all contacts, requires a takeout session, see here ยป for more info.","arguments":[],"throws":[{"code":403,"name":"TAKEOUT_REQUIRED","comment":"A takeout session needs to be initialized first, see here ยป for more info."}],"available":"user"},{"kind":"method","name":"contacts.toggleTopPeers","type":"Bool","id":2232729050,"comment":"Enable/disable top peers","arguments":[{"name":"enabled","type":"Bool","comment":"Enable/disable"}],"available":"user"},{"kind":"method","name":"contacts.addContact","type":"Updates","id":3908330448,"comment":"Add an existing telegram user as contact.\n\nUse {@link contacts.RawImportContactsRequest} to add contacts by phone number, without knowing their Telegram ID.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"add_phone_privacy_exception","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Allow the other user to see our phone number?"},{"name":"id","type":"InputUser","comment":"Telegram ID of the other user"},{"name":"first_name","type":"string","comment":"First name"},{"name":"last_name","type":"string","comment":"Last name"},{"name":"phone","type":"string","comment":"User's phone number, may be omitted to simply add the user to the contact list, without a phone number."}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CONTACT_ID_INVALID","comment":"The provided contact ID is invalid."},{"code":400,"name":"CONTACT_NAME_EMPTY","comment":"Contact name empty."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"contacts.acceptContact","type":"Updates","id":4164002319,"comment":"If the add contact action bar is active, add that user as contact","arguments":[{"name":"id","type":"InputUser","comment":"The user to add as contact"}],"throws":[{"code":400,"name":"CONTACT_ADD_MISSING","comment":"Contact to add is missing."},{"code":400,"name":"CONTACT_ID_INVALID","comment":"The provided contact ID is invalid."},{"code":400,"name":"CONTACT_REQ_MISSING","comment":"Missing contact request."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"contacts.getLocated","type":"Updates","id":3544759364,"comment":"Get users and geochats near you, see here ยป for more info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"background","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"While the geolocation of the current user is public, clients should update it in the background every half-an-hour or so, while setting this flag.
Do this only if the new location is more than 1 KM away from the previous one, or if the previous location is unknown."},{"name":"geo_point","type":"InputGeoPoint","comment":"Geolocation"},{"name":"self_expires","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If set, the geolocation of the current user will be public for the specified number of seconds; pass 0x7fffffff to disable expiry, 0 to make the current geolocation private; if the flag isn't set, no changes will be applied."}],"throws":[{"code":400,"name":"GEO_POINT_INVALID","comment":"Invalid geoposition provided."},{"code":406,"name":"USERPIC_PRIVACY_REQUIRED","comment":"You need to disable privacy settings for your profile picture in order to make your geolocation public."},{"code":406,"name":"USERPIC_UPLOAD_REQUIRED","comment":"You must have a profile picture to publish your geolocation."}],"available":"user"},{"kind":"method","name":"contacts.blockFromReplies","type":"Updates","id":698914348,"comment":"Stop getting notifications about discussion replies of a certain user in @replies","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"delete_message","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to delete the specified message as well"},{"name":"delete_history","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to delete all @replies messages from this user as well"},{"name":"report_spam","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to also report this user for spam"},{"name":"msg_id","type":"int","comment":"ID of the message in the @replies chat"}],"throws":[{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"contacts.resolvePhone","type":"contacts.ResolvedPeer","typeModifiers":{"constructorId":2131196633},"id":2331591492,"comment":"Resolve a phone number to get user info, if their privacy settings allow it.","arguments":[{"name":"phone","type":"string","comment":"Phone number in international format, possibly obtained from a phone number deep link."}],"throws":[{"code":400,"name":"PHONE_NOT_OCCUPIED","comment":"No user is associated to the specified phone number."}],"available":"user"},{"kind":"method","name":"contacts.exportContactToken","type":"ExportedContactToken","typeModifiers":{"constructorId":1103040667},"id":4167385127,"comment":"Generates a temporary profile link for the currently logged-in user.","arguments":[],"available":"both"},{"kind":"method","name":"contacts.importContactToken","type":"User","id":318789512,"comment":"Obtain user info from a temporary profile link.","arguments":[{"name":"token","type":"string","comment":"The token extracted from the temporary profile link."}],"throws":[{"code":400,"name":"IMPORT_TOKEN_INVALID","comment":"The specified token is invalid."}],"available":"both"},{"kind":"method","name":"contacts.editCloseFriends","type":"Bool","id":3127313904,"comment":"Edit the close friends list, see here ยป for more info.","arguments":[{"name":"id","type":"int53","typeModifiers":{"isVector":true},"comment":"Full list of user IDs of close friends, see here for more info."}],"available":"user"},{"kind":"method","name":"contacts.setBlocked","type":"Bool","id":2496027766,"comment":"Replace the contents of an entire blocklist, see here for more info ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"my_stories_from","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to edit the story blocklist; if not set, will edit the main blocklist. See here ยป for differences between the two."},{"name":"id","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"Full content of the blocklist."},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"available":"user"},{"kind":"method","name":"contacts.getBirthdays","type":"contacts.ContactBirthdays","typeModifiers":{"constructorId":290452237},"id":3673008228,"arguments":[]},{"kind":"method","name":"messages.getMessages","type":"messages.Messages","id":1673946374,"comment":"Returns the list of messages by their IDs.","arguments":[{"name":"id","type":"InputMessage","typeModifiers":{"isVector":true},"comment":"Message ID list"}],"available":"both"},{"kind":"method","name":"messages.getDialogs","type":"messages.Dialogs","id":2700397391,"comment":"Returns the current user dialog list.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"exclude_pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Exclude pinned dialogs"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Peer folder ID, for more info click here"},{"name":"offset_date","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here (top_message ID used for pagination)"},{"name":"offset_peer","type":"InputPeer","comment":"Offset peer for pagination"},{"name":"limit","type":"int","comment":"Number of list elements to be returned"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"FOLDER_ID_INVALID","comment":"Invalid folder ID."},{"code":400,"name":"OFFSET_PEER_ID_INVALID","comment":"The provided offset peer is invalid."}],"available":"user"},{"kind":"method","name":"messages.getHistory","type":"messages.Messages","id":1143203525,"comment":"Returns the conversation history with one interlocutor / within a chat","arguments":[{"name":"peer","type":"InputPeer","comment":"Target peer"},{"name":"offset_id","type":"int","comment":"Only return messages starting from the specified message ID"},{"name":"offset_date","type":"int","comment":"Only return messages sent before the specified date"},{"name":"add_offset","type":"int","comment":"Number of list elements to be skipped, negative values are also accepted."},{"name":"limit","type":"int","comment":"Number of results to return"},{"name":"max_id","type":"int","comment":"If a positive value was transferred, the method will return only messages with IDs less than max_id"},{"name":"min_id","type":"int","comment":"If a positive value was transferred, the method will return only messages with IDs more than min_id"},{"name":"hash","type":"long","comment":"Result hash"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"TAKEOUT_INVALID","comment":"The specified takeout ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.search","id":703497338,"type":"messages.Messages","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"User or chat, histories with which are searched, or {@link RawInputPeerEmpty} constructor to search in all private chats and normal groups (not channels) ยป. Use {@link messages.RawSearchGlobalRequest} to search globally in all chats, groups, supergroups and channels."},{"name":"q","type":"string","comment":"Text search request"},{"name":"from_id","type":"InputPeer","typeModifiers":{"predicate":"flags.0"},"comment":"Only return messages sent by the specified user ID"},{"name":"saved_peer_id","type":"InputPeer","typeModifiers":{"predicate":"flags.2"},"comment":"Search within the saved message dialog ยป with this ID."},{"name":"saved_reaction","type":"Reaction","typeModifiers":{"predicate":"flags.3","isVector":true}},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Thread ID"},{"name":"filter","type":"MessagesFilter","comment":"Filter to return only specified message types"},{"name":"min_date","type":"int","comment":"If a positive value was transferred, only messages with a sending date bigger than the transferred one will be returned"},{"name":"max_date","type":"int","comment":"If a positive value was transferred, only messages with a sending date smaller than the transferred one will be returned"},{"name":"offset_id","type":"int","comment":"Only return messages starting from the specified message ID"},{"name":"add_offset","type":"int","comment":"Additional offset"},{"name":"limit","type":"int","comment":"Number of results to return"},{"name":"max_id","type":"int","comment":"Maximum message ID to return"},{"name":"min_id","type":"int","comment":"Minimum message ID to return"},{"name":"hash","type":"long","comment":"Hash"}],"comment":"Search for messages.","throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"FROM_PEER_INVALID","comment":"The specified from_id is invalid."},{"code":400,"name":"INPUT_FILTER_INVALID","comment":"The specified filter is invalid."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PEER_ID_NOT_SUPPORTED","comment":"The provided peer ID is not supported."},{"code":400,"name":"SEARCH_QUERY_EMPTY","comment":"The search query is empty."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.readHistory","type":"messages.AffectedMessages","typeModifiers":{"constructorId":2228326789},"id":238054714,"comment":"Marks message history as read.","arguments":[{"name":"peer","type":"InputPeer","comment":"Target user or group"},{"name":"max_id","type":"int","comment":"If a positive value is passed, only messages with identifiers less or equal than the given one will be read"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.deleteHistory","type":"messages.AffectedHistory","typeModifiers":{"constructorId":3025955281},"id":2962199082,"comment":"Deletes communication history.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"just_clear","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Just clear history for the current user, without actually removing messages for every chat user"},{"name":"revoke","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to delete the message history for all chat participants"},{"name":"peer","type":"InputPeer","comment":"User or chat, communication history of which will be deleted"},{"name":"max_id","type":"int","comment":"Maximum ID of message to delete"},{"name":"min_date","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Delete all messages newer than this UNIX timestamp"},{"name":"max_date","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Delete all messages older than this UNIX timestamp"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_REVOKE_DATE_UNSUPPORTED","comment":"min_date and max_date are not available for using with non-user peers."},{"code":400,"name":"MAX_DATE_INVALID","comment":"The specified maximum date is invalid."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"MIN_DATE_INVALID","comment":"The specified minimum date is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.deleteMessages","type":"messages.AffectedMessages","typeModifiers":{"constructorId":2228326789},"id":3851326930,"comment":"Deletes messages by their identifiers.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"revoke","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to delete messages for all participants of the chat"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"Message ID list"}],"throws":[{"code":403,"name":"MESSAGE_DELETE_FORBIDDEN","comment":"You can't delete one of the messages you tried to delete, most likely because it is a service message."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."}],"available":"both"},{"kind":"method","name":"messages.receivedMessages","type":"ReceivedNotifyMessage","typeModifiers":{"isVector":true,"constructorId":2743383929},"id":94983360,"comment":"Confirms receipt of messages by a client, cancels PUSH-notification sending.","arguments":[{"name":"max_id","type":"int","comment":"Maximum message ID available in a client."}],"available":"user"},{"kind":"method","name":"messages.setTyping","type":"Bool","id":1486110434,"comment":"Sends a current user typing event (see SendMessageAction for all event types) to a conversation partner or group.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Target user or group"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Topic ID"},{"name":"action","type":"SendMessageAction","comment":"Type of action"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":403,"name":"GROUPCALL_FORBIDDEN","comment":"The group call has already ended."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."},{"code":403,"name":"USER_IS_BLOCKED","comment":"You were blocked by this user."},{"code":400,"name":"USER_IS_BOT","comment":"Bots can't send messages to other bots."}],"available":"both"},{"kind":"method","name":"messages.sendMessage","id":2554304325,"type":"Updates","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"no_webpage","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Set this flag to disable generation of the webpage preview"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Send this message silently (no notifications for the receivers)"},{"name":"background","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Send this message as background message"},{"name":"clear_draft","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Clear the draft field"},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have content protection enabled"},{"name":"update_stickersets_order","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"Whether to move used stickersets to top, see here for more info on this flag ยป"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"peer","type":"InputPeer","comment":"The destination where the message will be sent"},{"name":"reply_to","type":"InputReplyTo","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates that the message should be sent in reply to the specified message or story."},{"name":"message","type":"string","comment":"The message"},{"name":"random_id","type":"long","comment":"Unique client message ID required to prevent message resending"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Reply markup for sending bot buttons"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Message entities for sending styled text"},{"name":"schedule_date","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Scheduled message date for scheduled messages"},{"name":"send_as","type":"InputPeer","typeModifiers":{"predicate":"flags.13"},"comment":"Send this message as the specified peer"},{"name":"quick_reply_shortcut","type":"InputQuickReplyShortcut","typeModifiers":{"predicate":"flags.17"}},{"name":"effect","type":"long","typeModifiers":{"predicate":"flags.18"}}],"comment":"Sends a message to a chat","throws":[{"code":400,"name":"ADMIN_RIGHTS_EMPTY","comment":"The chatAdminRights constructor passed in keyboardButtonRequestPeer.peer_type.user_admin_rights has no rights set (i.e. flags is 0)."},{"code":400,"name":"BOT_DOMAIN_INVALID","comment":"Bot domain invalid."},{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."},{"code":400,"name":"BUTTON_DATA_INVALID","comment":"The data of one or more of the buttons you provided is invalid."},{"code":400,"name":"BUTTON_TYPE_INVALID","comment":"The type of one or more of the buttons you provided is invalid."},{"code":400,"name":"BUTTON_URL_INVALID","comment":"Button URL invalid."},{"code":400,"name":"BUTTON_USER_PRIVACY_RESTRICTED","comment":"The privacy setting of the user specified in a {@link RawInputKeyboardButtonUserProfile} button do not allow creating such a button."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_GUEST_SEND_FORBIDDEN","comment":"You join the discussion group before commenting, see here ยป for more info."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_RESTRICTED","comment":"You can't send messages in this chat, you were restricted."},{"code":403,"name":"CHAT_SEND_PLAIN_FORBIDDEN","comment":"You can't send non-media (text) messages in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"DOCUMENT_INVALID","comment":"The specified document is invalid."},{"code":400,"name":"ENCRYPTION_DECLINED","comment":"The secret chat was declined."},{"code":400,"name":"ENTITIES_TOO_LONG","comment":"You provided too many styled message entities."},{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":400,"name":"ENTITY_MENTION_USER_INVALID","comment":"You mentioned an invalid user."},{"code":400,"name":"FROM_MESSAGE_BOT_DISABLED","comment":"Bots can't use fromMessage min constructors."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MESSAGE_EMPTY","comment":"The provided message is empty."},{"code":400,"name":"MESSAGE_TOO_LONG","comment":"The provided message is too long."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":500,"name":"MSG_WAIT_FAILED","comment":"A waiting call returned an error."},{"code":406,"name":"PAYMENT_UNSUPPORTED","comment":"A detailed description of the error will be received separately as described here ยป."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PINNED_DIALOGS_TOO_MUCH","comment":"Too many pinned dialogs."},{"code":400,"name":"POLL_OPTION_INVALID","comment":"Invalid poll option provided."},{"code":406,"name":"PRIVACY_PREMIUM_REQUIRED","comment":"You need a Telegram Premium subscription to send a message to this user."},{"code":500,"name":"RANDOM_ID_DUPLICATE","comment":"You provided a random ID that was already used."},{"code":400,"name":"REPLY_MARKUP_INVALID","comment":"The provided reply markup is invalid."},{"code":400,"name":"REPLY_MARKUP_TOO_LONG","comment":"The specified reply_markup is too long."},{"code":400,"name":"REPLY_TO_INVALID","comment":"The specified reply_to field is invalid."},{"code":400,"name":"REPLY_TO_USER_INVALID","comment":"The replied-to user is invalid."},{"code":400,"name":"SCHEDULE_BOT_NOT_ALLOWED","comment":"Bots cannot schedule messages."},{"code":400,"name":"SCHEDULE_DATE_TOO_LATE","comment":"You can't schedule a message this far in the future."},{"code":400,"name":"SCHEDULE_STATUS_PRIVATE","comment":"Can't schedule until user is online, if the user's last seen timestamp is hidden by their privacy settings."},{"code":400,"name":"SCHEDULE_TOO_MUCH","comment":"There are too many scheduled messages."},{"code":400,"name":"SEND_AS_PEER_INVALID","comment":"You can't send messages as the specified peer."},{"code":420,"name":"SLOWMODE_WAIT_%d","comment":"Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat."},{"code":400,"name":"STORY_ID_INVALID","comment":"The specified story ID is invalid."},{"code":406,"name":"TOPIC_CLOSED","comment":"This topic was closed, you can't send messages to it anymore."},{"code":406,"name":"TOPIC_DELETED","comment":"The specified topic was deleted."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."},{"code":403,"name":"USER_IS_BLOCKED","comment":"You were blocked by this user."},{"code":400,"name":"USER_IS_BOT","comment":"Bots can't send messages to other bots."},{"code":400,"name":"WC_CONVERT_URL_INVALID","comment":"WC convert URL invalid."},{"code":400,"name":"YOU_BLOCKED_USER","comment":"You blocked this user."}],"available":"both"},{"kind":"method","name":"messages.sendMedia","id":2018673486,"type":"Updates","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Send message silently (no notification should be triggered)"},{"name":"background","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Send message in background"},{"name":"clear_draft","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Clear the draft"},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have content protection enabled"},{"name":"update_stickersets_order","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"Whether to move used stickersets to top, see here for more info on this flag ยป"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"peer","type":"InputPeer","comment":"Destination"},{"name":"reply_to","type":"InputReplyTo","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates that the message should be sent in reply to the specified message or story."},{"name":"media","type":"InputMedia","comment":"Attached media"},{"name":"message","type":"string","comment":"Caption"},{"name":"random_id","type":"long","comment":"Random ID to avoid resending the same message"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Reply markup for bot keyboards"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Message entities for styled text"},{"name":"schedule_date","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Scheduled message date for scheduled messages"},{"name":"send_as","type":"InputPeer","typeModifiers":{"predicate":"flags.13"},"comment":"Send this message as the specified peer"},{"name":"quick_reply_shortcut","type":"InputQuickReplyShortcut","typeModifiers":{"predicate":"flags.17"}},{"name":"effect","type":"long","typeModifiers":{"predicate":"flags.18"}}],"comment":"Send a media","throws":[{"code":400,"name":"BOT_PAYMENTS_DISABLED","comment":"Please enable bot payments in botfather before calling this method."},{"code":400,"name":"BROADCAST_PUBLIC_VOTERS_FORBIDDEN","comment":"You can't forward polls with public voters."},{"code":400,"name":"BUTTON_DATA_INVALID","comment":"The data of one or more of the buttons you provided is invalid."},{"code":400,"name":"BUTTON_TYPE_INVALID","comment":"The type of one or more of the buttons you provided is invalid."},{"code":400,"name":"BUTTON_URL_INVALID","comment":"Button URL invalid."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_FORWARDS_RESTRICTED","comment":"You can't forward messages from a protected chat."},{"code":403,"name":"CHAT_GUEST_SEND_FORBIDDEN","comment":"You join the discussion group before commenting, see here ยป for more info."},{"code":400,"name":"CHAT_RESTRICTED","comment":"You can't send messages in this chat, you were restricted."},{"code":403,"name":"CHAT_SEND_AUDIOS_FORBIDDEN","comment":"You can't send audio messages in this chat."},{"code":403,"name":"CHAT_SEND_DOCS_FORBIDDEN","comment":"You can't send documents in this chat."},{"code":403,"name":"CHAT_SEND_GIFS_FORBIDDEN","comment":"You can't send gifs in this chat."},{"code":403,"name":"CHAT_SEND_MEDIA_FORBIDDEN","comment":"You can't send media in this chat."},{"code":403,"name":"CHAT_SEND_PHOTOS_FORBIDDEN","comment":"You can't send photos in this chat."},{"code":403,"name":"CHAT_SEND_PLAIN_FORBIDDEN","comment":"You can't send non-media (text) messages in this chat."},{"code":403,"name":"CHAT_SEND_POLL_FORBIDDEN","comment":"You can't send polls in this chat."},{"code":403,"name":"CHAT_SEND_STICKERS_FORBIDDEN","comment":"You can't send stickers in this chat."},{"code":403,"name":"CHAT_SEND_VIDEOS_FORBIDDEN","comment":"You can't send videos in this chat."},{"code":403,"name":"CHAT_SEND_VOICES_FORBIDDEN","comment":"You can't send voice recordings in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"CURRENCY_TOTAL_AMOUNT_INVALID","comment":"The total amount of all prices is invalid."},{"code":400,"name":"DOCUMENT_INVALID","comment":"The specified document is invalid."},{"code":400,"name":"EMOTICON_INVALID","comment":"The specified emoji is invalid."},{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":400,"name":"EXTERNAL_URL_INVALID","comment":"External URL invalid."},{"code":400,"name":"FILE_PARTS_INVALID","comment":"The number of file parts is invalid."},{"code":400,"name":"FILE_PART_LENGTH_INVALID","comment":"The length of a file part is invalid."},{"code":400,"name":"FILE_REFERENCE_EMPTY","comment":"An empty file reference was specified."},{"code":400,"name":"FILE_REFERENCE_EXPIRED","comment":"File reference expired, it must be refetched as described in the documentation."},{"code":400,"name":"GAME_BOT_INVALID","comment":"Bots can't send another bot's game."},{"code":400,"name":"IMAGE_PROCESS_FAILED","comment":"Failure while processing image."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MD5_CHECKSUM_INVALID","comment":"The MD5 checksums do not match."},{"code":400,"name":"MEDIA_CAPTION_TOO_LONG","comment":"The caption is too long."},{"code":400,"name":"MEDIA_EMPTY","comment":"The provided media object is invalid."},{"code":400,"name":"MEDIA_INVALID","comment":"Media invalid."},{"code":400,"name":"MESSAGE_EMPTY","comment":"The provided message is empty."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PAYMENT_PROVIDER_INVALID","comment":"The specified payment provider is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PHOTO_EXT_INVALID","comment":"The extension of the photo is invalid."},{"code":400,"name":"PHOTO_INVALID_DIMENSIONS","comment":"The photo dimensions are invalid."},{"code":400,"name":"PHOTO_SAVE_FILE_INVALID","comment":"Internal issues, try again later."},{"code":400,"name":"POLL_ANSWERS_INVALID","comment":"Invalid poll answers were provided."},{"code":400,"name":"POLL_ANSWER_INVALID","comment":"One of the poll answers is not acceptable."},{"code":400,"name":"POLL_OPTION_DUPLICATE","comment":"Duplicate poll options provided."},{"code":400,"name":"POLL_OPTION_INVALID","comment":"Invalid poll option provided."},{"code":400,"name":"POLL_QUESTION_INVALID","comment":"One of the poll questions is not acceptable."},{"code":403,"name":"PREMIUM_ACCOUNT_REQUIRED","comment":"A premium account is required to execute this action."},{"code":400,"name":"QUIZ_CORRECT_ANSWERS_EMPTY","comment":"No correct quiz answer was specified."},{"code":400,"name":"QUIZ_CORRECT_ANSWERS_TOO_MUCH","comment":"You specified too many correct answers in a quiz, quizzes can only have one right answer!"},{"code":400,"name":"QUIZ_CORRECT_ANSWER_INVALID","comment":"An invalid value was provided to the correct_answers field."},{"code":400,"name":"QUIZ_MULTIPLE_INVALID","comment":"Quizzes can't have the multiple_choice flag set!"},{"code":500,"name":"RANDOM_ID_DUPLICATE","comment":"You provided a random ID that was already used."},{"code":400,"name":"REPLY_MARKUP_BUY_EMPTY","comment":"Reply markup for buy button empty."},{"code":400,"name":"REPLY_MARKUP_INVALID","comment":"The provided reply markup is invalid."},{"code":400,"name":"REPLY_MARKUP_TOO_LONG","comment":"The specified reply_markup is too long."},{"code":400,"name":"SCHEDULE_BOT_NOT_ALLOWED","comment":"Bots cannot schedule messages."},{"code":400,"name":"SCHEDULE_DATE_TOO_LATE","comment":"You can't schedule a message this far in the future."},{"code":400,"name":"SCHEDULE_TOO_MUCH","comment":"There are too many scheduled messages."},{"code":400,"name":"SEND_AS_PEER_INVALID","comment":"You can't send messages as the specified peer."},{"code":420,"name":"SLOWMODE_WAIT_%d","comment":"Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat."},{"code":406,"name":"TOPIC_CLOSED","comment":"This topic was closed, you can't send messages to it anymore."},{"code":406,"name":"TOPIC_DELETED","comment":"The specified topic was deleted."},{"code":400,"name":"TTL_MEDIA_INVALID","comment":"Invalid media Time To Live was provided."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."},{"code":403,"name":"USER_IS_BLOCKED","comment":"You were blocked by this user."},{"code":400,"name":"USER_IS_BOT","comment":"Bots can't send messages to other bots."},{"code":400,"name":"VIDEO_CONTENT_TYPE_INVALID","comment":"The video's content type is invalid."},{"code":400,"name":"VOICE_MESSAGES_FORBIDDEN","comment":"This user's privacy settings forbid you from sending voice messages."},{"code":400,"name":"WEBDOCUMENT_MIME_INVALID","comment":"Invalid webdocument mime type provided."},{"code":400,"name":"WEBPAGE_CURL_FAILED","comment":"Failure while fetching the webpage with cURL."},{"code":400,"name":"WEBPAGE_MEDIA_EMPTY","comment":"Webpage media empty."},{"code":400,"name":"WEBPAGE_NOT_FOUND","comment":"A preview for the specified webpage url could not be generated."},{"code":400,"name":"WEBPAGE_URL_INVALID","comment":"The specified webpage url is invalid."},{"code":400,"name":"YOU_BLOCKED_USER","comment":"You blocked this user."}],"available":"both"},{"kind":"method","name":"messages.forwardMessages","id":3573781000,"type":"Updates","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether to send messages silently (no notification will be triggered on the destination clients)"},{"name":"background","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether to send the message in background"},{"name":"with_my_score","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"When forwarding games, whether to include your score in the game"},{"name":"drop_author","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"Whether to forward messages without quoting the original author"},{"name":"drop_media_captions","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"Whether to strip captions from media"},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Only for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn't have content protection enabled"},{"name":"from_peer","type":"InputPeer","comment":"Source of messages"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of messages"},{"name":"random_id","type":"long","typeModifiers":{"isVector":true},"comment":"Random ID to prevent resending of messages"},{"name":"to_peer","type":"InputPeer","comment":"Destination peer"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.9"},"comment":"Destination forum topic"},{"name":"schedule_date","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Scheduled message date for scheduled messages"},{"name":"send_as","type":"InputPeer","typeModifiers":{"predicate":"flags.13"},"comment":"Forward the messages as the specified peer"},{"name":"quick_reply_shortcut","type":"InputQuickReplyShortcut","typeModifiers":{"predicate":"flags.17"}}],"comment":"Forwards messages by their IDs.","throws":[{"code":400,"name":"BROADCAST_PUBLIC_VOTERS_FORBIDDEN","comment":"You can't forward polls with public voters."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":406,"name":"CHAT_FORWARDS_RESTRICTED","comment":"You can't forward messages from a protected chat."},{"code":403,"name":"CHAT_GUEST_SEND_FORBIDDEN","comment":"You join the discussion group before commenting, see here ยป for more info."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_RESTRICTED","comment":"You can't send messages in this chat, you were restricted."},{"code":403,"name":"CHAT_SEND_AUDIOS_FORBIDDEN","comment":"You can't send audio messages in this chat."},{"code":403,"name":"CHAT_SEND_DOCS_FORBIDDEN","comment":"You can't send documents in this chat."},{"code":403,"name":"CHAT_SEND_GAME_FORBIDDEN","comment":"You can't send a game to this chat."},{"code":403,"name":"CHAT_SEND_GIFS_FORBIDDEN","comment":"You can't send gifs in this chat."},{"code":403,"name":"CHAT_SEND_MEDIA_FORBIDDEN","comment":"You can't send media in this chat."},{"code":403,"name":"CHAT_SEND_PHOTOS_FORBIDDEN","comment":"You can't send photos in this chat."},{"code":403,"name":"CHAT_SEND_PLAIN_FORBIDDEN","comment":"You can't send non-media (text) messages in this chat."},{"code":403,"name":"CHAT_SEND_POLL_FORBIDDEN","comment":"You can't send polls in this chat."},{"code":403,"name":"CHAT_SEND_STICKERS_FORBIDDEN","comment":"You can't send stickers in this chat."},{"code":403,"name":"CHAT_SEND_VIDEOS_FORBIDDEN","comment":"You can't send videos in this chat."},{"code":403,"name":"CHAT_SEND_VOICES_FORBIDDEN","comment":"You can't send voice recordings in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"GROUPED_MEDIA_INVALID","comment":"Invalid grouped media."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MEDIA_EMPTY","comment":"The provided media object is invalid."},{"code":400,"name":"MESSAGE_IDS_EMPTY","comment":"No message ids were provided."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":406,"name":"PAYMENT_UNSUPPORTED","comment":"A detailed description of the error will be received separately as described here ยป."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"QUIZ_ANSWER_MISSING","comment":"You can forward a quiz while hiding the original author only after choosing an option in the quiz."},{"code":500,"name":"RANDOM_ID_DUPLICATE","comment":"You provided a random ID that was already used."},{"code":400,"name":"RANDOM_ID_INVALID","comment":"A provided random ID is invalid."},{"code":400,"name":"SCHEDULE_BOT_NOT_ALLOWED","comment":"Bots cannot schedule messages."},{"code":400,"name":"SCHEDULE_DATE_TOO_LATE","comment":"You can't schedule a message this far in the future."},{"code":400,"name":"SCHEDULE_TOO_MUCH","comment":"There are too many scheduled messages."},{"code":400,"name":"SEND_AS_PEER_INVALID","comment":"You can't send messages as the specified peer."},{"code":400,"name":"SLOWMODE_MULTI_MSGS_DISABLED","comment":"Slowmode is enabled, you cannot forward multiple messages to this group."},{"code":420,"name":"SLOWMODE_WAIT_%d","comment":"Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat."},{"code":406,"name":"TOPIC_CLOSED","comment":"This topic was closed, you can't send messages to it anymore."},{"code":406,"name":"TOPIC_DELETED","comment":"The specified topic was deleted."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."},{"code":403,"name":"USER_IS_BLOCKED","comment":"You were blocked by this user."},{"code":400,"name":"USER_IS_BOT","comment":"Bots can't send messages to other bots."},{"code":403,"name":"VOICE_MESSAGES_FORBIDDEN","comment":"This user's privacy settings forbid you from sending voice messages."},{"code":400,"name":"YOU_BLOCKED_USER","comment":"You blocked this user."}],"available":"both"},{"kind":"method","name":"messages.reportSpam","type":"Bool","id":3474297563,"comment":"Report a new incoming chat for spam, if the {@link RawPeerSettings} of the chat allow us to do that","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer to report"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getPeerSettings","type":"messages.PeerSettings","typeModifiers":{"constructorId":1753266509},"id":4024018594,"comment":"Get peer settings","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.report","type":"Bool","id":2303961934,"comment":"Report a message in a chat for violation of telegram's Terms of Service","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of messages to report"},{"name":"reason","type":"ReportReason","comment":"Why are these messages being reported"},{"name":"message","type":"string","comment":"Comment for report moderation"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getChats","type":"messages.Chats","id":1240027791,"comment":"Returns chat basic info on their IDs.","arguments":[{"name":"id","type":"int53","typeModifiers":{"isVector":true},"comment":"List of chat IDs"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"both"},{"kind":"method","name":"messages.getFullChat","type":"messages.ChatFull","typeModifiers":{"constructorId":3856126364},"id":2930772788,"comment":"Get full info about a basic group.","arguments":[{"name":"chat_id","type":"int53","comment":"Basic group ID."}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"both"},{"kind":"method","name":"messages.editChatTitle","type":"Updates","id":1937260541,"comment":"Changes chat name and sends a service message on it.","arguments":[{"name":"chat_id","type":"int53","comment":"Chat ID"},{"name":"title","type":"string","comment":"New chat name, different from the old one"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"CHAT_TITLE_EMPTY","comment":"No chat title provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"both"},{"kind":"method","name":"messages.editChatPhoto","type":"Updates","id":903730804,"comment":"Changes chat photo and sends a service message on it","arguments":[{"name":"chat_id","type":"int53","comment":"Chat ID"},{"name":"photo","type":"InputChatPhoto","comment":"Photo to be set"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"IMAGE_PROCESS_FAILED","comment":"Failure while processing image."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PHOTO_CROP_SIZE_SMALL","comment":"Photo is too small."},{"code":400,"name":"PHOTO_EXT_INVALID","comment":"The extension of the photo is invalid."},{"code":400,"name":"PHOTO_INVALID","comment":"Photo invalid."}],"available":"both"},{"kind":"method","name":"messages.addChatUser","id":3418804487,"type":"messages.InvitedUsers","arguments":[{"name":"chat_id","type":"int53","comment":"Chat ID"},{"name":"user_id","type":"InputUser","comment":"User ID to be added"},{"name":"fwd_limit","type":"int","comment":"Number of last messages to be forwarded"}],"typeModifiers":{"constructorId":2136862630},"comment":"Adds a user to a chat and sends a service message on it.\n\nMay also return 0-N updates of type {@link RawUpdateGroupInvitePrivacyForbidden}: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link can be shared with the user, instead.","throws":[{"code":400,"name":"BOT_GROUPS_BLOCKED","comment":"This bot can't be added to groups."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USERS_TOO_MUCH","comment":"The maximum number of users has been exceeded (to create a chat, for example)."},{"code":400,"name":"USER_ALREADY_PARTICIPANT","comment":"The user is already in the group."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."},{"code":400,"name":"USER_IS_BLOCKED","comment":"You were blocked by this user."},{"code":403,"name":"USER_NOT_MUTUAL_CONTACT","comment":"The provided user is not a mutual contact."},{"code":403,"name":"USER_PRIVACY_RESTRICTED","comment":"The user's privacy settings do not allow you to do this."},{"code":400,"name":"YOU_BLOCKED_USER","comment":"You blocked this user."}],"available":"user"},{"kind":"method","name":"messages.deleteChatUser","type":"Updates","id":2719505579,"comment":"Deletes a user from a chat and sends a service message on it.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"revoke_history","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Remove the entire chat history of the specified user in this chat."},{"name":"chat_id","type":"int53","comment":"Chat ID"},{"name":"user_id","type":"InputUser","comment":"User ID to be deleted"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."},{"code":400,"name":"USER_NOT_PARTICIPANT","comment":"You're not a member of this supergroup/channel."}],"available":"both"},{"kind":"method","name":"messages.createChat","id":2463030740,"type":"messages.InvitedUsers","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"users","type":"InputUser","typeModifiers":{"isVector":true},"comment":"List of user IDs to be invited"},{"name":"title","type":"string","comment":"Chat name"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Time-to-live of all messages that will be sent in the chat: once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. You can use {@link messages.RawSetDefaultHistoryTTLRequest} to edit this value later."}],"typeModifiers":{"constructorId":2136862630},"comment":"Creates a new chat.\n\nMay also return 0-N updates of type {@link RawUpdateGroupInvitePrivacyForbidden}: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link can be shared with the user, instead.","throws":[{"code":500,"name":"CHAT_ID_GENERATE_FAILED","comment":"Failure while generating the chat ID."},{"code":400,"name":"CHAT_INVALID","comment":"Invalid chat."},{"code":400,"name":"CHAT_TITLE_EMPTY","comment":"No chat title provided."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"TTL_PERIOD_INVALID","comment":"The specified TTL period is invalid."},{"code":400,"name":"USERS_TOO_FEW","comment":"Not enough users (to create a chat, for example)."},{"code":406,"name":"USER_RESTRICTED","comment":"You're spamreported, you can't create channels or chats."}],"available":"user"},{"kind":"method","name":"messages.getDhConfig","type":"messages.DhConfig","id":651135312,"comment":"Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.","arguments":[{"name":"version","type":"int","comment":"Value of the version parameter from {@link messages.RawDhConfig}, available at the client"},{"name":"random_length","type":"int","comment":"Length of the required random sequence"}],"throws":[{"code":400,"name":"RANDOM_LENGTH_INVALID","comment":"Random length invalid."}],"available":"user"},{"kind":"method","name":"messages.requestEncryption","type":"EncryptedChat","id":4132286275,"comment":"Sends a request to start a secret chat to the user.","arguments":[{"name":"user_id","type":"InputUser","comment":"User ID"},{"name":"random_id","type":"int","comment":"Unique client request ID required to prevent resending. This also doubles as the chat ID."},{"name":"g_a","type":"bytes","comment":"A = g ^ a mod p, see Wikipedia"}],"throws":[{"code":400,"name":"DH_G_A_INVALID","comment":"g_a invalid."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.acceptEncryption","type":"EncryptedChat","id":1035731989,"comment":"Confirms creation of a secret chat","arguments":[{"name":"peer","type":"InputEncryptedChat","comment":"Secret chat ID"},{"name":"g_b","type":"bytes","comment":"B = g ^ b mod p, see Wikipedia"},{"name":"key_fingerprint","type":"long","comment":"64-bit fingerprint of the received key"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"ENCRYPTION_ALREADY_ACCEPTED","comment":"Secret chat already accepted."},{"code":400,"name":"ENCRYPTION_ALREADY_DECLINED","comment":"The secret chat was already declined."}],"available":"user"},{"kind":"method","name":"messages.discardEncryption","type":"Bool","id":4086541984,"comment":"Cancels a request for creation and/or delete info on secret chat.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"delete_history","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to delete the entire chat history for the other user as well"},{"name":"chat_id","type":"int","comment":"Secret chat ID"}],"throws":[{"code":400,"name":"CHAT_ID_EMPTY","comment":"The provided chat ID is empty."},{"code":400,"name":"ENCRYPTION_ALREADY_ACCEPTED","comment":"Secret chat already accepted."},{"code":400,"name":"ENCRYPTION_ALREADY_DECLINED","comment":"The secret chat was already declined."},{"code":400,"name":"ENCRYPTION_ID_INVALID","comment":"The provided secret chat ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.setEncryptedTyping","type":"Bool","id":2031374829,"comment":"Send typing event by the current user to a secret chat.","arguments":[{"name":"peer","type":"InputEncryptedChat","comment":"Secret chat ID"},{"name":"typing","type":"Bool","comment":"Typing.
Possible values:
true, if the user started typing and more than 5 seconds have passed since the last request
false, if the user stopped typing"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."}],"available":"user"},{"kind":"method","name":"messages.readEncryptedHistory","type":"Bool","id":2135648522,"comment":"Marks message history within a secret chat as read.","arguments":[{"name":"peer","type":"InputEncryptedChat","comment":"Secret chat ID"},{"name":"max_date","type":"int","comment":"Maximum date value for received messages in history"}],"throws":[{"code":400,"name":"MAX_DATE_INVALID","comment":"The specified maximum date is invalid."},{"code":400,"name":"MSG_WAIT_FAILED","comment":"A waiting call returned an error."}],"available":"user"},{"kind":"method","name":"messages.sendEncrypted","type":"messages.SentEncryptedMessage","id":1157265941,"comment":"Sends a text message to a secret chat.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Send encrypted message without a notification"},{"name":"peer","type":"InputEncryptedChat","comment":"Secret chat ID"},{"name":"random_id","type":"long","comment":"Unique client message ID, necessary to avoid message resending"},{"name":"data","type":"bytes","comment":"TL-serialization of DecryptedMessage type, encrypted with a key that was created during chat initialization"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"DATA_INVALID","comment":"Encrypted data invalid."},{"code":400,"name":"DATA_TOO_LONG","comment":"Data too long."},{"code":400,"name":"ENCRYPTION_DECLINED","comment":"The secret chat was declined."},{"code":500,"name":"MSG_WAIT_FAILED","comment":"A waiting call returned an error."},{"code":403,"name":"USER_IS_BLOCKED","comment":"You were blocked by this user."}],"available":"user"},{"kind":"method","name":"messages.sendEncryptedFile","type":"messages.SentEncryptedMessage","id":1431914525,"comment":"Sends a message with a file attachment to a secret chat","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to send the file without triggering a notification"},{"name":"peer","type":"InputEncryptedChat","comment":"Secret chat ID"},{"name":"random_id","type":"long","comment":"Unique client message ID necessary to prevent message resending"},{"name":"data","type":"bytes","comment":"TL-serialization of DecryptedMessage type, encrypted with a key generated during chat initialization"},{"name":"file","type":"InputEncryptedFile","comment":"File attachment for the secret chat"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"DATA_TOO_LONG","comment":"Data too long."},{"code":400,"name":"ENCRYPTION_DECLINED","comment":"The secret chat was declined."},{"code":400,"name":"FILE_EMTPY","comment":"An empty file was provided."},{"code":400,"name":"MD5_CHECKSUM_INVALID","comment":"The MD5 checksums do not match."},{"code":400,"name":"MSG_WAIT_FAILED","comment":"A waiting call returned an error."}],"available":"user"},{"kind":"method","name":"messages.sendEncryptedService","type":"messages.SentEncryptedMessage","id":852769188,"comment":"Sends a service message to a secret chat.","arguments":[{"name":"peer","type":"InputEncryptedChat","comment":"Secret chat ID"},{"name":"random_id","type":"long","comment":"Unique client message ID required to prevent message resending"},{"name":"data","type":"bytes","comment":"TL-serialization of DecryptedMessage type, encrypted with a key generated during chat initialization"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"DATA_INVALID","comment":"Encrypted data invalid."},{"code":400,"name":"ENCRYPTION_DECLINED","comment":"The secret chat was declined."},{"code":400,"name":"ENCRYPTION_ID_INVALID","comment":"The provided secret chat ID is invalid."},{"code":500,"name":"MSG_WAIT_FAILED","comment":"A waiting call returned an error."},{"code":403,"name":"USER_DELETED","comment":"You can't send this secret message because the other participant deleted their account."},{"code":403,"name":"USER_IS_BLOCKED","comment":"You were blocked by this user."}],"available":"user"},{"kind":"method","name":"messages.receivedQueue","type":"long","typeModifiers":{"isVector":true},"id":1436924774,"comment":"Confirms receipt of messages in a secret chat by client, cancels push notifications.
\nThe method returns a list of random_ids of messages for which push notifications were cancelled.","arguments":[{"name":"max_qts","type":"int","comment":"Maximum qts value available at the client"}],"throws":[{"code":400,"name":"MAX_QTS_INVALID","comment":"The specified max_qts is invalid."},{"code":500,"name":"MSG_WAIT_FAILED","comment":"A waiting call returned an error."}],"available":"user"},{"kind":"method","name":"messages.reportEncryptedSpam","type":"Bool","id":1259113487,"comment":"Report a secret chat for spam","arguments":[{"name":"peer","type":"InputEncryptedChat","comment":"The secret chat to report"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."}],"available":"user"},{"kind":"method","name":"messages.readMessageContents","type":"messages.AffectedMessages","typeModifiers":{"constructorId":2228326789},"id":916930423,"comment":"Notifies the sender about the recipient having listened a voice message or watched a video.","arguments":[{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"Message ID list"}],"available":"user"},{"kind":"method","name":"messages.getStickers","type":"messages.Stickers","id":3584414625,"comment":"Get stickers by emoji","arguments":[{"name":"emoticon","type":"string","comment":"The emoji"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":400,"name":"EMOTICON_EMPTY","comment":"The emoji is empty."}],"available":"user"},{"kind":"method","name":"messages.getAllStickers","type":"messages.AllStickers","id":3097534888,"comment":"Get all installed stickers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getWebPagePreview","type":"MessageMedia","id":2338894028,"comment":"Get preview of webpage","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"message","type":"string","comment":"Message from which to extract the preview"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Message entities for styled text"}],"throws":[{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":400,"name":"MESSAGE_EMPTY","comment":"The provided message is empty."}],"available":"user"},{"kind":"method","name":"messages.exportChatInvite","type":"ExportedChatInvite","id":2687296981,"comment":"Export an invite link for a chat","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"legacy_revoke_permanent","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Legacy flag, reproducing legacy behavior of this method: if set, revokes all previous links before creating a new one. Kept for bot API BC, should not be used by modern clients."},{"name":"request_needed","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether admin confirmation is required before admitting each separate user into the chat"},{"name":"peer","type":"InputPeer","comment":"Chat"},{"name":"expire_date","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Expiration date"},{"name":"usage_limit","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Maximum number of users that can join using this link"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"Description of the invite link, visible only to administrators"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"EXPIRE_DATE_INVALID","comment":"The specified expiration date is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USAGE_LIMIT_INVALID","comment":"The specified usage limit is invalid."}],"available":"both"},{"kind":"method","name":"messages.checkChatInvite","type":"ChatInvite","id":1051570619,"comment":"Check the validity of a chat invite link and get basic info about it","arguments":[{"name":"hash","type":"string","comment":"Invite hash from chat invite deep link ยป."}],"throws":[{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"INVITE_HASH_EMPTY","comment":"The invite hash is empty."},{"code":406,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."},{"code":400,"name":"INVITE_HASH_INVALID","comment":"The invite hash is invalid."}],"available":"user"},{"kind":"method","name":"messages.importChatInvite","type":"Updates","id":1817183516,"comment":"Import a chat invite and join a private chat/supergroup/channel","arguments":[{"name":"hash","type":"string","comment":"hash from a chat invite deep link"}],"throws":[{"code":400,"name":"CHANNELS_TOO_MUCH","comment":"You have joined too many channels/supergroups."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_INVALID","comment":"Invalid chat."},{"code":400,"name":"INVITE_HASH_EMPTY","comment":"The invite hash is empty."},{"code":406,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."},{"code":400,"name":"INVITE_HASH_INVALID","comment":"The invite hash is invalid."},{"code":400,"name":"INVITE_REQUEST_SENT","comment":"You have successfully requested to join this chat or channel."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USERS_TOO_MUCH","comment":"The maximum number of users has been exceeded (to create a chat, for example)."},{"code":400,"name":"USER_ALREADY_PARTICIPANT","comment":"The user is already in the group."},{"code":400,"name":"USER_CHANNELS_TOO_MUCH","comment":"One of the users you tried to add is already in too many channels/supergroups."}],"available":"user"},{"kind":"method","name":"messages.getStickerSet","type":"messages.StickerSet","id":3365989492,"comment":"Get info about a stickerset","arguments":[{"name":"stickerset","type":"InputStickerSet","comment":"Stickerset"},{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":400,"name":"EMOTICON_STICKERPACK_MISSING","comment":"inputStickerSetDice.emoji cannot be empty."},{"code":406,"name":"STICKERSET_INVALID","comment":"The provided sticker set is invalid."}],"available":"both"},{"kind":"method","name":"messages.installStickerSet","type":"messages.StickerSetInstallResult","id":3348096096,"comment":"Install a stickerset","arguments":[{"name":"stickerset","type":"InputStickerSet","comment":"Stickerset to install"},{"name":"archived","type":"Bool","comment":"Whether to archive stickerset"}],"throws":[{"code":406,"name":"STICKERSET_INVALID","comment":"The provided sticker set is invalid."}],"available":"user"},{"kind":"method","name":"messages.uninstallStickerSet","type":"Bool","id":4184757726,"comment":"Uninstall a stickerset","arguments":[{"name":"stickerset","type":"InputStickerSet","comment":"The stickerset to uninstall"}],"throws":[{"code":406,"name":"STICKERSET_INVALID","comment":"The provided sticker set is invalid."}],"available":"user"},{"kind":"method","name":"messages.startBot","type":"Updates","id":3873403768,"comment":"Start a conversation with a bot using a deep linking parameter","arguments":[{"name":"bot","type":"InputUser","comment":"The bot"},{"name":"peer","type":"InputPeer","comment":"The chat where to start the bot, can be the bot's private chat or a group"},{"name":"random_id","type":"long","comment":"Random ID to avoid resending the same message"},{"name":"start_param","type":"string","comment":"Deep linking parameter"}],"throws":[{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":500,"name":"RANDOM_ID_DUPLICATE","comment":"You provided a random ID that was already used."},{"code":400,"name":"START_PARAM_EMPTY","comment":"The start parameter is empty."},{"code":400,"name":"START_PARAM_INVALID","comment":"Start parameter invalid."},{"code":400,"name":"START_PARAM_TOO_LONG","comment":"Start parameter is too long."}],"available":"user"},{"kind":"method","name":"messages.getMessagesViews","type":"messages.MessageViews","typeModifiers":{"constructorId":3066361155},"id":1468322785,"comment":"Get and increase the view counter of a message sent or forwarded from a channel","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the message was found"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"ID of message"},{"name":"increment","type":"Bool","comment":"Whether to mark the message as viewed and increment the view counter"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.editChatAdmin","type":"Bool","id":2824589762,"comment":"Make a user admin in a basic group.","arguments":[{"name":"chat_id","type":"int53","comment":"The ID of the group"},{"name":"user_id","type":"InputUser","comment":"The user to make admin"},{"name":"is_admin","type":"Bool","comment":"Whether to make them admin"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."},{"code":400,"name":"USER_NOT_PARTICIPANT","comment":"You're not a member of this supergroup/channel."}],"available":"user"},{"kind":"method","name":"messages.migrateChat","type":"Updates","id":2726777625,"comment":"Turn a basic group into a supergroup","arguments":[{"name":"chat_id","type":"int53","comment":"Basic group to migrate"}],"throws":[{"code":400,"name":"CHANNELS_TOO_MUCH","comment":"You have joined too many channels/supergroups."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":500,"name":"CHAT_INVALID","comment":"Invalid chat."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.searchGlobal","type":"messages.Messages","id":1271290010,"comment":"Search for messages and peers globally","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"broadcasts_only","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Peer folder ID, for more info click here"},{"name":"q","type":"string","comment":"Query"},{"name":"filter","type":"MessagesFilter","comment":"Global search filter"},{"name":"min_date","type":"int","comment":"If a positive value was specified, the method will return only messages with date bigger than min_date"},{"name":"max_date","type":"int","comment":"If a positive value was transferred, the method will return only messages with date smaller than max_date"},{"name":"offset_rate","type":"int","comment":"Initially 0, then set to the {@link messages.RawMessagesSlice}"},{"name":"offset_peer","type":"InputPeer","comment":"Offsets for pagination, for more info click here"},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Offsets for pagination, for more info click here"}],"throws":[{"code":400,"name":"FOLDER_ID_INVALID","comment":"Invalid folder ID."},{"code":400,"name":"SEARCH_QUERY_EMPTY","comment":"The search query is empty."}],"available":"user"},{"kind":"method","name":"messages.reorderStickerSets","type":"Bool","id":2016638777,"comment":"Reorder installed stickersets","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"masks","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Reorder mask stickersets"},{"name":"emojis","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Reorder custom emoji stickersets"},{"name":"order","type":"long","typeModifiers":{"isVector":true},"comment":"New stickerset order by stickerset IDs"}],"available":"user"},{"kind":"method","name":"messages.getDocumentByHash","type":"Document","id":2985428511,"comment":"Get a document by its SHA256 hash, mainly used for gifs","arguments":[{"name":"sha256","type":"bytes","comment":"SHA256 of file"},{"name":"size","type":"int53","comment":"Size of the file in bytes"},{"name":"mime_type","type":"string","comment":"Mime type"}],"throws":[{"code":400,"name":"SHA256_HASH_INVALID","comment":"The provided SHA256 hash is invalid."}],"available":"both"},{"kind":"method","name":"messages.getSavedGifs","type":"messages.SavedGifs","id":1559270965,"comment":"Get saved GIFs","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.saveGif","type":"Bool","id":846868683,"comment":"Add GIF to saved gifs list","arguments":[{"name":"id","type":"InputDocument","comment":"GIF to save"},{"name":"unsave","type":"Bool","comment":"Whether to remove GIF from saved gifs list"}],"throws":[{"code":400,"name":"GIF_ID_INVALID","comment":"The provided GIF ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.getInlineBotResults","type":"messages.BotResults","typeModifiers":{"constructorId":3760321270},"id":1364105629,"comment":"Query an inline bot","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"bot","type":"InputUser","comment":"The bot to query"},{"name":"peer","type":"InputPeer","comment":"The currently opened chat"},{"name":"geo_point","type":"InputGeoPoint","typeModifiers":{"predicate":"flags.0"},"comment":"The geolocation, if requested"},{"name":"query","type":"string","comment":"The query"},{"name":"offset","type":"string","comment":"The offset within the results, will be passed directly as-is to the bot."}],"throws":[{"code":400,"name":"BOT_INLINE_DISABLED","comment":"This bot can't be used in inline mode."},{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."},{"code":400,"name":"BOT_RESPONSE_TIMEOUT","comment":"A timeout occurred while fetching data from the bot."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":-503,"name":"Timeout","comment":"Timeout while fetching data."}],"available":"user"},{"kind":"method","name":"messages.setInlineBotResults","type":"Bool","id":3138561049,"comment":"Answer an inline query, for bots only","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"gallery","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set this flag if the results are composed of media files"},{"name":"private","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Set this flag if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query"},{"name":"query_id","type":"long","comment":"Unique identifier for the answered query"},{"name":"results","type":"InputBotInlineResult","typeModifiers":{"isVector":true},"comment":"Vector of results for the inline query"},{"name":"cache_time","type":"int","comment":"The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300."},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes."},{"name":"switch_pm","type":"InlineBotSwitchPM","typeModifiers":{"predicate":"flags.3"},"comment":"If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to a private chat with the bot and sends the bot a start message with a certain parameter."},{"name":"switch_webview","type":"InlineBotWebView","typeModifiers":{"predicate":"flags.4"},"comment":"If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to the specified inline mode mini app."}],"throws":[{"code":400,"name":"ARTICLE_TITLE_EMPTY","comment":"The title of the article is empty."},{"code":400,"name":"AUDIO_CONTENT_URL_EMPTY","comment":"The remote URL specified in the content field is empty."},{"code":400,"name":"AUDIO_TITLE_EMPTY","comment":"An empty audio title was provided."},{"code":400,"name":"BUTTON_DATA_INVALID","comment":"The data of one or more of the buttons you provided is invalid."},{"code":400,"name":"BUTTON_TYPE_INVALID","comment":"The type of one or more of the buttons you provided is invalid."},{"code":400,"name":"BUTTON_URL_INVALID","comment":"Button URL invalid."},{"code":400,"name":"DOCUMENT_INVALID","comment":"The specified document is invalid."},{"code":400,"name":"FILE_CONTENT_TYPE_INVALID","comment":"File content-type is invalid."},{"code":400,"name":"FILE_TITLE_EMPTY","comment":"An empty file title was specified."},{"code":400,"name":"GIF_CONTENT_TYPE_INVALID","comment":"GIF content-type invalid."},{"code":400,"name":"MESSAGE_EMPTY","comment":"The provided message is empty."},{"code":400,"name":"MESSAGE_TOO_LONG","comment":"The provided message is too long."},{"code":400,"name":"NEXT_OFFSET_INVALID","comment":"The specified offset is longer than 64 bytes."},{"code":400,"name":"PHOTO_CONTENT_TYPE_INVALID","comment":"Photo mime-type invalid."},{"code":400,"name":"PHOTO_CONTENT_URL_EMPTY","comment":"Photo URL invalid."},{"code":400,"name":"PHOTO_INVALID","comment":"Photo invalid."},{"code":400,"name":"PHOTO_THUMB_URL_EMPTY","comment":"Photo thumbnail URL is empty."},{"code":400,"name":"QUERY_ID_INVALID","comment":"The query ID is invalid."},{"code":400,"name":"REPLY_MARKUP_INVALID","comment":"The provided reply markup is invalid."},{"code":400,"name":"RESULTS_TOO_MUCH","comment":"Too many results were provided."},{"code":400,"name":"RESULT_ID_DUPLICATE","comment":"You provided a duplicate result ID."},{"code":400,"name":"RESULT_ID_INVALID","comment":"One of the specified result IDs is invalid."},{"code":400,"name":"RESULT_TYPE_INVALID","comment":"Result type invalid."},{"code":400,"name":"SEND_MESSAGE_MEDIA_INVALID","comment":"Invalid media provided."},{"code":400,"name":"SEND_MESSAGE_TYPE_INVALID","comment":"The message type is invalid."},{"code":400,"name":"START_PARAM_EMPTY","comment":"The start parameter is empty."},{"code":400,"name":"START_PARAM_INVALID","comment":"Start parameter invalid."},{"code":400,"name":"STICKER_DOCUMENT_INVALID","comment":"The specified sticker document is invalid."},{"code":400,"name":"SWITCH_PM_TEXT_EMPTY","comment":"The switch_pm.text field was empty."},{"code":400,"name":"URL_INVALID","comment":"Invalid URL provided."},{"code":403,"name":"USER_BOT_INVALID","comment":"User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts."},{"code":400,"name":"VIDEO_TITLE_EMPTY","comment":"The specified video title is empty."},{"code":400,"name":"WEBDOCUMENT_INVALID","comment":"Invalid webdocument URL provided."},{"code":400,"name":"WEBDOCUMENT_MIME_INVALID","comment":"Invalid webdocument mime type provided."},{"code":400,"name":"WEBDOCUMENT_SIZE_TOO_BIG","comment":"Webdocument is too big!"},{"code":400,"name":"WEBDOCUMENT_URL_INVALID","comment":"The specified webdocument URL is invalid."}],"available":"bot"},{"kind":"method","name":"messages.sendInlineBotResult","id":1052698730,"type":"Updates","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether to send the message silently (no notification will be triggered on the other client)"},{"name":"background","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether to send the message in background"},{"name":"clear_draft","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Whether to clear the draft"},{"name":"hide_via","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"Whether to hide the via @botname in the resulting message (only for bot usernames encountered in the {@link RawConfig})"},{"name":"peer","type":"InputPeer","comment":"Destination"},{"name":"reply_to","type":"InputReplyTo","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates that the message should be sent in reply to the specified message or story."},{"name":"random_id","type":"long","comment":"Random ID to avoid resending the same query"},{"name":"query_id","type":"long","comment":"Query ID from {@link messages.RawGetInlineBotResultsRequest}"},{"name":"id","type":"string","comment":"Result ID from {@link messages.RawGetInlineBotResultsRequest}"},{"name":"schedule_date","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Scheduled message date for scheduled messages"},{"name":"send_as","type":"InputPeer","typeModifiers":{"predicate":"flags.13"},"comment":"Send this message as the specified peer"},{"name":"quick_reply_shortcut","type":"InputQuickReplyShortcut","typeModifiers":{"predicate":"flags.17"}}],"comment":"Send a result obtained using {@link messages.RawGetInlineBotResultsRequest}.","throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_GUEST_SEND_FORBIDDEN","comment":"You join the discussion group before commenting, see here ยป for more info."},{"code":400,"name":"CHAT_RESTRICTED","comment":"You can't send messages in this chat, you were restricted."},{"code":403,"name":"CHAT_SEND_AUDIOS_FORBIDDEN","comment":"You can't send audio messages in this chat."},{"code":403,"name":"CHAT_SEND_GAME_FORBIDDEN","comment":"You can't send a game to this chat."},{"code":403,"name":"CHAT_SEND_GIFS_FORBIDDEN","comment":"You can't send gifs in this chat."},{"code":403,"name":"CHAT_SEND_INLINE_FORBIDDEN","comment":"You can't send inline messages in this group."},{"code":403,"name":"CHAT_SEND_MEDIA_FORBIDDEN","comment":"You can't send media in this chat."},{"code":403,"name":"CHAT_SEND_PHOTOS_FORBIDDEN","comment":"You can't send photos in this chat."},{"code":403,"name":"CHAT_SEND_PLAIN_FORBIDDEN","comment":"You can't send non-media (text) messages in this chat."},{"code":403,"name":"CHAT_SEND_STICKERS_FORBIDDEN","comment":"You can't send stickers in this chat."},{"code":403,"name":"CHAT_SEND_VOICES_FORBIDDEN","comment":"You can't send voice recordings in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":400,"name":"INLINE_RESULT_EXPIRED","comment":"The inline query expired."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MEDIA_EMPTY","comment":"The provided media object is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"QUERY_ID_EMPTY","comment":"The query ID is empty."},{"code":500,"name":"RANDOM_ID_DUPLICATE","comment":"You provided a random ID that was already used."},{"code":400,"name":"RESULT_ID_EMPTY","comment":"Result ID empty."},{"code":400,"name":"RESULT_ID_INVALID","comment":"One of the specified result IDs is invalid."},{"code":400,"name":"SCHEDULE_DATE_TOO_LATE","comment":"You can't schedule a message this far in the future."},{"code":400,"name":"SCHEDULE_TOO_MUCH","comment":"There are too many scheduled messages."},{"code":500,"name":"SEND_MEDIA_INVALID","comment":"The specified media is invalid."},{"code":420,"name":"SLOWMODE_WAIT_%d","comment":"Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat."},{"code":400,"name":"TOPIC_DELETED","comment":"The specified topic was deleted."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."},{"code":400,"name":"VOICE_MESSAGES_FORBIDDEN","comment":"This user's privacy settings forbid you from sending voice messages."},{"code":400,"name":"WEBPAGE_CURL_FAILED","comment":"Failure while fetching the webpage with cURL."},{"code":400,"name":"WEBPAGE_MEDIA_EMPTY","comment":"Webpage media empty."},{"code":400,"name":"YOU_BLOCKED_USER","comment":"You blocked this user."}],"available":"user"},{"kind":"method","name":"messages.getMessageEditData","type":"messages.MessageEditData","typeModifiers":{"constructorId":649453030},"id":4255550774,"comment":"Find out if a media message's caption can be edited","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the media was sent"},{"name":"id","type":"int","comment":"ID of message"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":403,"name":"MESSAGE_AUTHOR_REQUIRED","comment":"Message author required."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.editMessage","id":3755032581,"type":"Updates","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"no_webpage","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Disable webpage preview"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"peer","type":"InputPeer","comment":"Where was the message sent"},{"name":"id","type":"int","comment":"ID of the message to edit"},{"name":"message","type":"string","typeModifiers":{"predicate":"flags.11"},"comment":"New message"},{"name":"media","type":"InputMedia","typeModifiers":{"predicate":"flags.14"},"comment":"New attached media"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Reply markup for inline keyboards"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Message entities for styled text"},{"name":"schedule_date","type":"int","typeModifiers":{"predicate":"flags.15"},"comment":"Scheduled message date for scheduled messages"},{"name":"quick_reply_shortcut_id","type":"int","typeModifiers":{"predicate":"flags.17"}}],"comment":"Edit message","throws":[{"code":400,"name":"BOT_DOMAIN_INVALID","comment":"Bot domain invalid."},{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."},{"code":400,"name":"BUTTON_DATA_INVALID","comment":"The data of one or more of the buttons you provided is invalid."},{"code":400,"name":"BUTTON_TYPE_INVALID","comment":"The type of one or more of the buttons you provided is invalid."},{"code":400,"name":"BUTTON_URL_INVALID","comment":"Button URL invalid."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_FORWARDS_RESTRICTED","comment":"You can't forward messages from a protected chat."},{"code":403,"name":"CHAT_SEND_GIFS_FORBIDDEN","comment":"You can't send gifs in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"DOCUMENT_INVALID","comment":"The specified document is invalid."},{"code":400,"name":"ENTITIES_TOO_LONG","comment":"You provided too many styled message entities."},{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":400,"name":"FILE_PARTS_INVALID","comment":"The number of file parts is invalid."},{"code":400,"name":"IMAGE_PROCESS_FAILED","comment":"Failure while processing image."},{"code":403,"name":"INLINE_BOT_REQUIRED","comment":"Only the inline bot can edit message."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MEDIA_CAPTION_TOO_LONG","comment":"The caption is too long."},{"code":400,"name":"MEDIA_EMPTY","comment":"The provided media object is invalid."},{"code":400,"name":"MEDIA_GROUPED_INVALID","comment":"You tried to send media of different types in an album."},{"code":400,"name":"MEDIA_INVALID","comment":"Media invalid."},{"code":400,"name":"MEDIA_NEW_INVALID","comment":"The new media is invalid."},{"code":400,"name":"MEDIA_PREV_INVALID","comment":"Previous media invalid."},{"code":400,"name":"MEDIA_TTL_INVALID","comment":"The specified media TTL is invalid."},{"code":403,"name":"MESSAGE_AUTHOR_REQUIRED","comment":"Message author required."},{"code":400,"name":"MESSAGE_EDIT_TIME_EXPIRED","comment":"You can't edit this message anymore, too much time has passed since its creation."},{"code":400,"name":"MESSAGE_EMPTY","comment":"The provided message is empty."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"MESSAGE_NOT_MODIFIED","comment":"The provided message data is identical to the previous message data, the message wasn't modified."},{"code":400,"name":"MESSAGE_TOO_LONG","comment":"The provided message is too long."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":500,"name":"MSG_WAIT_FAILED","comment":"A waiting call returned an error."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"REPLY_MARKUP_INVALID","comment":"The provided reply markup is invalid."},{"code":400,"name":"REPLY_MARKUP_TOO_LONG","comment":"The specified reply_markup is too long."},{"code":400,"name":"SCHEDULE_DATE_INVALID","comment":"Invalid schedule date provided."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."}],"available":"both"},{"kind":"method","name":"messages.editInlineBotMessage","type":"Bool","id":2203418042,"comment":"Edit an inline bot message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"no_webpage","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Disable webpage preview"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"id","type":"InputBotInlineMessageID","comment":"Sent inline message ID"},{"name":"message","type":"string","typeModifiers":{"predicate":"flags.11"},"comment":"Message"},{"name":"media","type":"InputMedia","typeModifiers":{"predicate":"flags.14"},"comment":"Media"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Reply markup for inline keyboards"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Message entities for styled text"}],"throws":[{"code":400,"name":"BUTTON_DATA_INVALID","comment":"The data of one or more of the buttons you provided is invalid."},{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"MESSAGE_NOT_MODIFIED","comment":"The provided message data is identical to the previous message data, the message wasn't modified."}],"available":"both"},{"kind":"method","name":"messages.getBotCallbackAnswer","type":"messages.BotCallbackAnswer","typeModifiers":{"constructorId":911761060},"id":2470627847,"comment":"Press an inline callback button and get a callback answer from the bot","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"game","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this is a \"play game\" button"},{"name":"peer","type":"InputPeer","comment":"Where was the inline keyboard sent"},{"name":"msg_id","type":"int","comment":"ID of the Message with the inline keyboard"},{"name":"data","type":"bytes","typeModifiers":{"predicate":"flags.0"},"comment":"Callback data"},{"name":"password","type":"InputCheckPasswordSRP","typeModifiers":{"predicate":"flags.2"},"comment":"For buttons {@link RawKeyboardButtonCallback}, the SRP payload generated using SRP."}],"throws":[{"code":400,"name":"BOT_RESPONSE_TIMEOUT","comment":"A timeout occurred while fetching data from the bot."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"DATA_INVALID","comment":"Encrypted data invalid."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":-503,"name":"Timeout","comment":"Timeout while fetching data."}],"available":"user"},{"kind":"method","name":"messages.setBotCallbackAnswer","type":"Bool","id":3582923530,"comment":"Set the callback answer to a user button press (bots only)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"alert","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to show the message as a popup instead of a toast notification"},{"name":"query_id","type":"long","comment":"Query ID"},{"name":"message","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Popup to show"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"URL to open"},{"name":"cache_time","type":"int","comment":"Cache validity"}],"throws":[{"code":400,"name":"MESSAGE_TOO_LONG","comment":"The provided message is too long."},{"code":400,"name":"QUERY_ID_INVALID","comment":"The query ID is invalid."},{"code":400,"name":"URL_INVALID","comment":"Invalid URL provided."},{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."}],"available":"bot"},{"kind":"method","name":"messages.getPeerDialogs","type":"messages.PeerDialogs","typeModifiers":{"constructorId":863093588},"id":3832593661,"comment":"Get dialog info of specified peers","arguments":[{"name":"peers","type":"InputDialogPeer","typeModifiers":{"isVector":true},"comment":"Peers"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.saveDraft","type":"Bool","id":2146678790,"comment":"Save a message draft associated to a chat.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"no_webpage","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Disable generation of the webpage preview"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"reply_to","type":"InputReplyTo","typeModifiers":{"predicate":"flags.4"},"comment":"If set, indicates that the message should be sent in reply to the specified message or story."},{"name":"peer","type":"InputPeer","comment":"Destination of the message that should be sent"},{"name":"message","type":"string","comment":"The draft"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Message entities for styled text"},{"name":"media","type":"InputMedia","typeModifiers":{"predicate":"flags.5"},"comment":"Attached media"}],"throws":[{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getAllDrafts","type":"Updates","id":1782549861,"comment":"Return all message drafts.
\nReturns all the latest {@link RawUpdateDraftMessage} updates related to all chats with drafts.","arguments":[],"available":"user"},{"kind":"method","name":"messages.getFeaturedStickers","type":"messages.FeaturedStickers","id":1685588756,"comment":"Get featured stickers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.readFeaturedStickers","type":"Bool","id":1527873830,"comment":"Mark new featured stickers as read","arguments":[{"name":"id","type":"long","typeModifiers":{"isVector":true},"comment":"IDs of stickersets to mark as read"}],"available":"user"},{"kind":"method","name":"messages.getRecentStickers","type":"messages.RecentStickers","id":2645114939,"comment":"Get recent stickers","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"attached","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Get stickers recently attached to photo or video files"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.saveRecentSticker","type":"Bool","id":958863608,"comment":"Add/remove sticker from recent stickers list","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"attached","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to add/remove stickers recently attached to photo or video files"},{"name":"id","type":"InputDocument","comment":"Sticker"},{"name":"unsave","type":"Bool","comment":"Whether to save or unsave the sticker"}],"throws":[{"code":400,"name":"STICKER_ID_INVALID","comment":"The provided sticker ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.clearRecentStickers","type":"Bool","id":2308530221,"comment":"Clear recent stickers","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"attached","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set this flag to clear the list of stickers recently attached to photo or video files"}],"available":"user"},{"kind":"method","name":"messages.getArchivedStickers","type":"messages.ArchivedStickers","typeModifiers":{"constructorId":1338747336},"id":1475442322,"comment":"Get all archived stickers","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"masks","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Get mask stickers"},{"name":"emojis","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Get custom emoji stickers"},{"name":"offset_id","type":"long","comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"available":"user"},{"kind":"method","name":"messages.getMaskStickers","type":"messages.AllStickers","id":1678738104,"comment":"Get installed mask stickers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getAttachedStickers","type":"StickerSetCovered","typeModifiers":{"isVector":true},"id":3428542412,"comment":"Get stickers attached to a photo or video","arguments":[{"name":"media","type":"InputStickeredMedia","comment":"Stickered media"}],"available":"user"},{"kind":"method","name":"messages.setGameScore","type":"Updates","id":2398678208,"comment":"Use this method to set the score of the specified user in a game sent as a normal message (bots only).","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"edit_message","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set this flag if the game message should be automatically edited to include the current scoreboard"},{"name":"force","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters"},{"name":"peer","type":"InputPeer","comment":"Unique identifier of target chat"},{"name":"id","type":"int","comment":"Identifier of the sent message"},{"name":"user_id","type":"InputUser","comment":"User identifier"},{"name":"score","type":"int","comment":"New score"}],"throws":[{"code":400,"name":"BOT_SCORE_NOT_MODIFIED","comment":"The score wasn't modified."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"SCORE_INVALID","comment":"The specified game score is invalid."},{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."}],"available":"bot"},{"kind":"method","name":"messages.setInlineGameScore","type":"Bool","id":363700068,"comment":"Use this method to set the score of the specified user in a game sent as an inline message (bots only).","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"edit_message","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set this flag if the game message should be automatically edited to include the current scoreboard"},{"name":"force","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters"},{"name":"id","type":"InputBotInlineMessageID","comment":"ID of the inline message"},{"name":"user_id","type":"InputUser","comment":"User identifier"},{"name":"score","type":"int","comment":"New score"}],"throws":[{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."}],"available":"bot"},{"kind":"method","name":"messages.getGameHighScores","type":"messages.HighScores","typeModifiers":{"constructorId":2587622809},"id":3894568093,"comment":"Get highscores of a game","arguments":[{"name":"peer","type":"InputPeer","comment":"Where was the game sent"},{"name":"id","type":"int","comment":"ID of message with game media attachment"},{"name":"user_id","type":"InputUser","comment":"Get high scores made by a certain user"}],"throws":[{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."}],"available":"bot"},{"kind":"method","name":"messages.getInlineGameHighScores","type":"messages.HighScores","typeModifiers":{"constructorId":2587622809},"id":258170395,"comment":"Get highscores of a game sent using an inline bot","arguments":[{"name":"id","type":"InputBotInlineMessageID","comment":"ID of inline message"},{"name":"user_id","type":"InputUser","comment":"Get high scores of a certain user"}],"throws":[{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."}],"available":"bot"},{"kind":"method","name":"messages.getCommonChats","type":"messages.Chats","id":3826032900,"comment":"Get chats in common with a user","arguments":[{"name":"user_id","type":"InputUser","comment":"User ID"},{"name":"max_id","type":"int53","comment":"Maximum ID of chat to return (see pagination)"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.getWebPage","type":"messages.WebPage","typeModifiers":{"constructorId":4250800829},"id":2375455395,"comment":"Get instant view page","arguments":[{"name":"url","type":"string","comment":"URL of IV page to fetch"},{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":400,"name":"WC_CONVERT_URL_INVALID","comment":"WC convert URL invalid."}],"available":"user"},{"kind":"method","name":"messages.toggleDialogPin","type":"Bool","id":2805064279,"comment":"Pin/unpin a dialog","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to pin or unpin the dialog"},{"name":"peer","type":"InputDialogPeer","comment":"The dialog to pin"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"PEER_HISTORY_EMPTY","comment":"You can't pin an empty chat with a user."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PINNED_DIALOGS_TOO_MUCH","comment":"Too many pinned dialogs."}],"available":"user"},{"kind":"method","name":"messages.reorderPinnedDialogs","type":"Bool","id":991616823,"comment":"Reorder pinned dialogs","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"force","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, dialogs pinned server-side but not present in the order field will be unpinned."},{"name":"folder_id","type":"int","comment":"Peer folder ID, for more info click here"},{"name":"order","type":"InputDialogPeer","typeModifiers":{"isVector":true},"comment":"New dialog order"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getPinnedDialogs","type":"messages.PeerDialogs","typeModifiers":{"constructorId":863093588},"id":3602468338,"comment":"Get pinned dialogs","arguments":[{"name":"folder_id","type":"int","comment":"Peer folder ID, for more info click here"}],"throws":[{"code":400,"name":"FOLDER_ID_INVALID","comment":"Invalid folder ID."}],"available":"user"},{"kind":"method","name":"messages.setBotShippingResults","type":"Bool","id":3858133754,"comment":"If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an {@link RawUpdateBotShippingQuery} update. Use this method to reply to shipping queries.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"query_id","type":"long","comment":"Unique identifier for the query to be answered"},{"name":"error","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Error message in human readable form that explains why it is impossible to complete the order (e.g. \"Sorry, delivery to your desired address is unavailable\"). Telegram will display this message to the user."},{"name":"shipping_options","type":"ShippingOption","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"A vector of available shipping options."}],"throws":[{"code":400,"name":"QUERY_ID_INVALID","comment":"The query ID is invalid."}],"available":"both"},{"kind":"method","name":"messages.setBotPrecheckoutResults","type":"Bool","id":163765653,"comment":"Once the user has confirmed their payment and shipping details, the bot receives an {@link RawUpdateBotPrecheckoutQuery} update.
\nUse this method to respond to such pre-checkout queries.
\nNote: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"success","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Set this flag if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order, otherwise do not set it, and set the error field, instead"},{"name":"query_id","type":"long","comment":"Unique identifier for the query to be answered"},{"name":"error","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Required if the success isn't set. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. \"Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!\"). Telegram will display this message to the user."}],"throws":[{"code":400,"name":"ERROR_TEXT_EMPTY","comment":"The provided error message is empty."}],"available":"both"},{"kind":"method","name":"messages.uploadMedia","id":345405816,"type":"MessageMedia","arguments":[{"name":"flags","type":"#"},{"name":"business_connection_id","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"peer","type":"InputPeer","comment":"The chat, can be {@link RawInputPeerEmpty} for bots and {@link RawInputPeerSelf} for users."},{"name":"media","type":"InputMedia","comment":"File uploaded in chunks as described in files ยป"}],"comment":"Upload a file and associate it to a chat (without actually sending it to the chat)","throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_RESTRICTED","comment":"You can't send messages in this chat, you were restricted."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"FILE_PARTS_INVALID","comment":"The number of file parts is invalid."},{"code":400,"name":"FILE_PART_LENGTH_INVALID","comment":"The length of a file part is invalid."},{"code":400,"name":"IMAGE_PROCESS_FAILED","comment":"Failure while processing image."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MEDIA_INVALID","comment":"Media invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PHOTO_EXT_INVALID","comment":"The extension of the photo is invalid."},{"code":400,"name":"PHOTO_INVALID_DIMENSIONS","comment":"The photo dimensions are invalid."},{"code":400,"name":"PHOTO_SAVE_FILE_INVALID","comment":"Internal issues, try again later."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."},{"code":400,"name":"WEBPAGE_CURL_FAILED","comment":"Failure while fetching the webpage with cURL."}],"available":"both"},{"kind":"method","name":"messages.sendScreenshotNotification","type":"Updates","id":2705348631,"comment":"Notify the other user in a private chat that a screenshot of the chat was taken","arguments":[{"name":"peer","type":"InputPeer","comment":"Other user"},{"name":"reply_to","type":"InputReplyTo","comment":"Indicates the message that was screenshotted (the specified message ID can also be 0 to avoid indicating any specific message)."},{"name":"random_id","type":"long","comment":"Random ID to avoid message resending"}],"throws":[{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"REPLY_MESSAGE_ID_INVALID","comment":"The specified reply-to message ID is invalid."},{"code":400,"name":"STORY_ID_INVALID","comment":"The specified story ID is invalid."},{"code":400,"name":"YOU_BLOCKED_USER","comment":"You blocked this user."}],"available":"user"},{"kind":"method","name":"messages.getFavedStickers","type":"messages.FavedStickers","id":82946729,"comment":"Get faved stickers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.faveSticker","type":"Bool","id":3120547163,"comment":"Mark or unmark a sticker as favorite","arguments":[{"name":"id","type":"InputDocument","comment":"Sticker in question"},{"name":"unfave","type":"Bool","comment":"Whether to add or remove a sticker from favorites"}],"throws":[{"code":400,"name":"STICKER_ID_INVALID","comment":"The provided sticker ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.getUnreadMentions","type":"messages.Messages","id":4043827088,"comment":"Get unread messages where we were mentioned","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer where to look for mentions"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If set, considers only messages within the specified forum topic"},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"add_offset","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"},{"name":"max_id","type":"int","comment":"Maximum message ID to return, see pagination"},{"name":"min_id","type":"int","comment":"Minimum message ID to return, see pagination"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.readMentions","type":"messages.AffectedHistory","typeModifiers":{"constructorId":3025955281},"id":921026381,"comment":"Mark mentions as read","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Dialog"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Mark as read only mentions within the specified forum topic"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getRecentLocations","type":"messages.Messages","id":1881817312,"comment":"Get live location history of a certain user","arguments":[{"name":"peer","type":"InputPeer","comment":"User"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.sendMultiMedia","id":934757205,"type":"Updates","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether to send the album silently (no notification triggered)"},{"name":"background","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Send in background?"},{"name":"clear_draft","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Whether to clear drafts"},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have content protection enabled"},{"name":"update_stickersets_order","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"Whether to move used stickersets to top, see here for more info on this flag ยป"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"peer","type":"InputPeer","comment":"The destination chat"},{"name":"reply_to","type":"InputReplyTo","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates that the message should be sent in reply to the specified message or story."},{"name":"multi_media","type":"InputSingleMedia","typeModifiers":{"isVector":true},"comment":"The medias to send: note that they must be separately uploaded using {@link messages.RawUploadMediaRequest} first, using raw inputMediaUploaded* constructors is not supported."},{"name":"schedule_date","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Scheduled message date for scheduled messages"},{"name":"send_as","type":"InputPeer","typeModifiers":{"predicate":"flags.13"},"comment":"Send this message as the specified peer"},{"name":"quick_reply_shortcut","type":"InputQuickReplyShortcut","typeModifiers":{"predicate":"flags.17"}},{"name":"effect","type":"long","typeModifiers":{"predicate":"flags.18"}}],"comment":"Send an album or grouped media","throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_FORWARDS_RESTRICTED","comment":"You can't forward messages from a protected chat."},{"code":403,"name":"CHAT_SEND_MEDIA_FORBIDDEN","comment":"You can't send media in this chat."},{"code":403,"name":"CHAT_SEND_PHOTOS_FORBIDDEN","comment":"You can't send photos in this chat."},{"code":403,"name":"CHAT_SEND_VIDEOS_FORBIDDEN","comment":"You can't send videos in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":400,"name":"MEDIA_CAPTION_TOO_LONG","comment":"The caption is too long."},{"code":400,"name":"MEDIA_EMPTY","comment":"The provided media object is invalid."},{"code":400,"name":"MEDIA_INVALID","comment":"Media invalid."},{"code":400,"name":"MULTI_MEDIA_TOO_LONG","comment":"Too many media files for album."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":500,"name":"RANDOM_ID_DUPLICATE","comment":"You provided a random ID that was already used."},{"code":400,"name":"RANDOM_ID_EMPTY","comment":"Random ID empty."},{"code":400,"name":"SCHEDULE_DATE_TOO_LATE","comment":"You can't schedule a message this far in the future."},{"code":400,"name":"SCHEDULE_TOO_MUCH","comment":"There are too many scheduled messages."},{"code":400,"name":"SEND_AS_PEER_INVALID","comment":"You can't send messages as the specified peer."},{"code":420,"name":"SLOWMODE_WAIT_%d","comment":"Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat."},{"code":400,"name":"TOPIC_CLOSED","comment":"This topic was closed, you can't send messages to it anymore."},{"code":400,"name":"TOPIC_DELETED","comment":"The specified topic was deleted."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."}],"available":"both"},{"kind":"method","name":"messages.uploadEncryptedFile","type":"EncryptedFile","id":1347929239,"comment":"Upload encrypted file and associate it to a secret chat","arguments":[{"name":"peer","type":"InputEncryptedChat","comment":"The secret chat to associate the file to"},{"name":"file","type":"InputEncryptedFile","comment":"The file"}],"available":"user"},{"kind":"method","name":"messages.searchStickerSets","type":"messages.FoundStickerSets","id":896555914,"comment":"Search for stickersets","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"exclude_featured","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Exclude featured stickersets from results"},{"name":"q","type":"string","comment":"Query string"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getSplitRanges","type":"MessageRange","typeModifiers":{"isVector":true,"constructorId":182649427},"id":486505992,"comment":"Get message ranges for saving the user's chat history","arguments":[],"available":"user"},{"kind":"method","name":"messages.markDialogUnread","type":"Bool","id":3263617423,"comment":"Manually mark dialog as unread","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"unread","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Mark as unread/read"},{"name":"peer","type":"InputDialogPeer","comment":"Dialog"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getDialogUnreadMarks","type":"DialogPeer","typeModifiers":{"isVector":true},"id":585256482,"comment":"Get dialogs manually marked as unread","arguments":[],"available":"user"},{"kind":"method","name":"messages.clearAllDrafts","type":"Bool","id":2119757468,"comment":"Clear all drafts.","arguments":[],"available":"user"},{"kind":"method","name":"messages.updatePinnedMessage","type":"Updates","id":3534419948,"comment":"Pin a message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Pin the message silently, without triggering a notification"},{"name":"unpin","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the message should unpinned or pinned"},{"name":"pm_oneside","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the message should only be pinned on the local side of a one-to-one chat"},{"name":"peer","type":"InputPeer","comment":"The peer where to pin the message"},{"name":"id","type":"int","comment":"The message to pin or unpin"}],"throws":[{"code":400,"name":"BOT_ONESIDE_NOT_AVAIL","comment":"Bots can't pin messages in PM just for themselves."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PIN_RESTRICTED","comment":"You can't pin messages."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."}],"available":"both"},{"kind":"method","name":"messages.sendVote","type":"Updates","id":283795844,"comment":"Vote in a {@link RawPoll}\n\nStarting from layer 159, the vote will be sent from the peer specified using {@link messages.RawSaveDefaultSendAsRequest}.","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat where the poll was sent"},{"name":"msg_id","type":"int","comment":"The message ID of the poll"},{"name":"options","type":"bytes","typeModifiers":{"isVector":true},"comment":"The options that were chosen"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"MESSAGE_POLL_CLOSED","comment":"Poll closed."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"OPTIONS_TOO_MUCH","comment":"Too many options provided."},{"code":400,"name":"OPTION_INVALID","comment":"Invalid option selected."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"REVOTE_NOT_ALLOWED","comment":"You cannot change your vote."}],"available":"user"},{"kind":"method","name":"messages.getPollResults","type":"Updates","id":1941660731,"comment":"Get poll results","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the poll was found"},{"name":"msg_id","type":"int","comment":"Message ID of poll message"}],"throws":[{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getOnlines","type":"ChatOnlines","typeModifiers":{"constructorId":4030849616},"id":1848369232,"comment":"Get count of online users in a chat","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.editChatAbout","type":"Bool","id":3740665751,"comment":"Edit the description of a group/supergroup/channel.","arguments":[{"name":"peer","type":"InputPeer","comment":"The group/supergroup/channel."},{"name":"about","type":"string","comment":"The new description"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ABOUT_NOT_MODIFIED","comment":"About text has not changed."},{"code":400,"name":"CHAT_ABOUT_TOO_LONG","comment":"Chat about too long."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"both"},{"kind":"method","name":"messages.editChatDefaultBannedRights","type":"Updates","id":2777049921,"comment":"Edit the default banned rights of a channel/supergroup/group.","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer"},{"name":"banned_rights","type":"ChatBannedRights","comment":"The new global rights"}],"throws":[{"code":400,"name":"BANNED_RIGHTS_INVALID","comment":"You provided some invalid flags in the banned rights."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"UNTIL_DATE_INVALID","comment":"Invalid until date provided."}],"available":"both"},{"kind":"method","name":"messages.getEmojiKeywords","type":"EmojiKeywordsDifference","typeModifiers":{"constructorId":1556570557},"id":899735650,"comment":"Get localized emoji keywords ยป.","arguments":[{"name":"lang_code","type":"string","comment":"Language code"}],"available":"user"},{"kind":"method","name":"messages.getEmojiKeywordsDifference","type":"EmojiKeywordsDifference","typeModifiers":{"constructorId":1556570557},"id":352892591,"comment":"Get changed emoji keywords ยป.","arguments":[{"name":"lang_code","type":"string","comment":"Language code"},{"name":"from_version","type":"int","comment":"Previous stored emoji keyword list version"}],"available":"user"},{"kind":"method","name":"messages.getEmojiKeywordsLanguages","type":"EmojiLanguage","typeModifiers":{"isVector":true,"constructorId":3019592545},"id":1318675378,"comment":"Obtain a list of related languages that must be used when fetching emoji keyword lists ยป.\n\nUsually the method will return the passed language codes (if localized) + en + some language codes for similar languages (if applicable).","arguments":[{"name":"lang_codes","type":"string","typeModifiers":{"isVector":true},"comment":"The user's language codes"}],"available":"user"},{"kind":"method","name":"messages.getEmojiURL","type":"EmojiURL","typeModifiers":{"constructorId":2775937949},"id":3585149990,"comment":"Returns an HTTP URL which can be used to automatically log in into translation platform and suggest new emoji keywords ยป. The URL will be valid for 30 seconds after generation.","arguments":[{"name":"lang_code","type":"string","comment":"Language code for which the emoji keywords will be suggested"}],"available":"user"},{"kind":"method","name":"messages.getSearchCounters","type":"messages.SearchCounter","typeModifiers":{"isVector":true,"constructorId":3896830975},"id":465367808,"comment":"Get the number of results that would be found by a {@link messages.RawSearchRequest} call with the same parameters","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer where to search"},{"name":"saved_peer_id","type":"InputPeer","typeModifiers":{"predicate":"flags.2"},"comment":"Search within the saved message dialog ยป with this ID."},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If set, consider only messages within the specified forum topic"},{"name":"filters","type":"MessagesFilter","typeModifiers":{"isVector":true},"comment":"Search filters"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.requestUrlAuth","type":"UrlAuthResult","id":428848198,"comment":"Get more info about a Seamless Telegram Login authorization request, for more info click here ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","typeModifiers":{"predicate":"flags.1"},"comment":"Peer where the message is located"},{"name":"msg_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"The message"},{"name":"button_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"The ID of the button with the authorization request"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"URL used for link URL authorization, click here for more info ยป"}],"available":"user"},{"kind":"method","name":"messages.acceptUrlAuth","type":"UrlAuthResult","id":2972479781,"comment":"Use this to accept a Seamless Telegram Login authorization request, for more info click here ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"write_allowed","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set this flag to allow the bot to send messages to you (if requested)"},{"name":"peer","type":"InputPeer","typeModifiers":{"predicate":"flags.1"},"comment":"The location of the message"},{"name":"msg_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Message ID of the message with the login button"},{"name":"button_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"ID of the login button"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"URL used for link URL authorization, click here for more info ยป"}],"available":"user"},{"kind":"method","name":"messages.hidePeerSettingsBar","type":"Bool","id":1336717624,"comment":"Should be called after the user hides the report spam/add as contact bar of a new chat, effectively prevents the user from executing the actions specified in the action bar ยป.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"}],"available":"user"},{"kind":"method","name":"messages.getScheduledHistory","type":"messages.Messages","id":4111889931,"comment":"Get scheduled messages","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getScheduledMessages","type":"messages.Messages","id":3183150180,"comment":"Get scheduled messages","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of scheduled messages"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.sendScheduledMessages","type":"Updates","id":3174597898,"comment":"Send scheduled messages right away","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"Scheduled message IDs"}],"throws":[{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.deleteScheduledMessages","type":"Updates","id":1504586518,"comment":"Delete scheduled messages","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"Scheduled message IDs"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getPollVotes","type":"messages.VotesList","typeModifiers":{"constructorId":1218005070},"id":3094231054,"comment":"Get poll results for non-anonymous polls","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Chat where the poll was sent"},{"name":"id","type":"int","comment":"Message ID"},{"name":"option","type":"bytes","typeModifiers":{"predicate":"flags.0"},"comment":"Get only results for the specified poll option"},{"name":"offset","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Offset for results, taken from the next_offset field of {@link messages.RawVotesList}, initially an empty string.
Note: if no more results are available, the method call will return an empty next_offset; thus, avoid providing the next_offset returned in {@link messages.RawVotesList} if it is empty, to avoid an infinite loop."},{"name":"limit","type":"int","comment":"Number of results to return"}],"throws":[{"code":403,"name":"BROADCAST_FORBIDDEN","comment":"Channel poll voters and reactions cannot be fetched to prevent deanonymization."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":403,"name":"POLL_VOTE_REQUIRED","comment":"Cast a vote in the poll before calling this method."}],"available":"user"},{"kind":"method","name":"messages.toggleStickerSets","type":"Bool","id":3037016042,"comment":"Apply changes to multiple stickersets","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"uninstall","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Uninstall the specified stickersets"},{"name":"archive","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Archive the specified stickersets"},{"name":"unarchive","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Unarchive the specified stickersets"},{"name":"stickersets","type":"InputStickerSet","typeModifiers":{"isVector":true},"comment":"Stickersets to act upon"}],"available":"user"},{"kind":"method","name":"messages.getDialogFilters","id":4023684233,"type":"messages.DialogFilters","arguments":[],"typeModifiers":{"constructorId":718878489},"comment":"Get folders","available":"user"},{"kind":"method","name":"messages.getSuggestedDialogFilters","type":"DialogFilterSuggested","typeModifiers":{"isVector":true,"constructorId":2004110666},"id":2728186924,"comment":"Get suggested folders","arguments":[],"available":"user"},{"kind":"method","name":"messages.updateDialogFilter","type":"Bool","id":450142282,"comment":"Update folder","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"int","comment":"Folder ID"},{"name":"filter","type":"DialogFilter","typeModifiers":{"predicate":"flags.0"},"comment":"Folder info"}],"throws":[{"code":400,"name":"CHATLIST_EXCLUDE_INVALID","comment":"The specified exclude_peers are invalid."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"FILTER_ID_INVALID","comment":"The specified filter ID is invalid."},{"code":400,"name":"FILTER_INCLUDE_EMPTY","comment":"The include_peers vector of the filter is empty."},{"code":400,"name":"FILTER_TITLE_EMPTY","comment":"The title field of the filter is empty."}],"available":"user"},{"kind":"method","name":"messages.updateDialogFiltersOrder","type":"Bool","id":3311649252,"comment":"Reorder folders","arguments":[{"name":"order","type":"int","typeModifiers":{"isVector":true},"comment":"New folder order"}],"available":"user"},{"kind":"method","name":"messages.getOldFeaturedStickers","type":"messages.FeaturedStickers","id":2127598753,"comment":"Method for fetching previously featured stickers","arguments":[{"name":"offset","type":"int","comment":"Offset"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getReplies","type":"messages.Messages","id":584962828,"comment":"Get messages in a reply thread","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"msg_id","type":"int","comment":"Message ID"},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"offset_date","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"add_offset","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"},{"name":"max_id","type":"int","comment":"If a positive value was transferred, the method will return only messages with ID smaller than max_id"},{"name":"min_id","type":"int","comment":"If a positive value was transferred, the method will return only messages with ID bigger than min_id"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"TOPIC_ID_INVALID","comment":"The specified topic ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.getDiscussionMessage","type":"messages.DiscussionMessage","typeModifiers":{"constructorId":2788431746},"id":1147761405,"comment":"Get discussion message from the associated discussion group of a channel to show it on top of the comment section, without actually joining the group","arguments":[{"name":"peer","type":"InputPeer","comment":"Channel ID"},{"name":"msg_id","type":"int","comment":"Message ID"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"TOPIC_ID_INVALID","comment":"The specified topic ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.readDiscussion","type":"Bool","id":4147227124,"comment":"Mark a thread as read","arguments":[{"name":"peer","type":"InputPeer","comment":"Group ID"},{"name":"msg_id","type":"int","comment":"ID of message that started the thread"},{"name":"read_max_id","type":"int","comment":"ID up to which thread messages were read"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.unpinAllMessages","type":"messages.AffectedHistory","typeModifiers":{"constructorId":3025955281},"id":3995253160,"comment":"Unpin all pinned messages","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Chat where to unpin"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Forum topic where to unpin"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."}],"available":"both"},{"kind":"method","name":"messages.deleteChat","type":"Bool","id":1540419152,"comment":"Delete a chat","arguments":[{"name":"chat_id","type":"int53","comment":"Chat ID"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.deletePhoneCallHistory","type":"messages.AffectedFoundMessages","typeModifiers":{"constructorId":4019011180},"id":4190888969,"comment":"Delete the entire phone call history.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"revoke","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to remove phone call history for participants as well"}],"available":"user"},{"kind":"method","name":"messages.checkHistoryImport","type":"messages.HistoryImportParsed","typeModifiers":{"constructorId":1578088377},"id":1140726259,"comment":"Obtains information about a chat export file, generated by a foreign chat app, click here for more info about imported chats ยป.","arguments":[{"name":"import_head","type":"string","comment":"Beginning of the message file; up to 100 lines."}],"throws":[{"code":400,"name":"IMPORT_FORMAT_UNRECOGNIZED","comment":"The specified chat export file was exported from an unsupported chat app."}],"available":"user"},{"kind":"method","name":"messages.initHistoryImport","type":"messages.HistoryImport","typeModifiers":{"constructorId":375566091},"id":873008187,"comment":"Import chat history from a foreign chat app into a specific Telegram chat, click here for more info about imported chats ยป.","arguments":[{"name":"peer","type":"InputPeer","comment":"The Telegram chat where the history should be imported."},{"name":"file","type":"InputFile","comment":"File with messages to import."},{"name":"media_count","type":"int","comment":"Number of media files associated with the chat that will be uploaded using {@link messages.RawUploadImportedMediaRequest}."}],"throws":[{"code":400,"name":"IMPORT_FILE_INVALID","comment":"The specified chat export file is invalid."},{"code":400,"name":"IMPORT_FORMAT_UNRECOGNIZED","comment":"The specified chat export file was exported from an unsupported chat app."},{"code":406,"name":"PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_%dMIN","comment":"Import for this chat is already in progress, wait %d minutes before starting a new one."}],"available":"user"},{"kind":"method","name":"messages.uploadImportedMedia","type":"MessageMedia","id":713433234,"comment":"Upload a media file associated with an imported chat, click here for more info ยป.","arguments":[{"name":"peer","type":"InputPeer","comment":"The Telegram chat where the media will be imported"},{"name":"import_id","type":"long","comment":"Identifier of a history import session, returned by {@link messages.RawInitHistoryImportRequest}"},{"name":"file_name","type":"string","comment":"File name"},{"name":"media","type":"InputMedia","comment":"Media metadata"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."}],"available":"user"},{"kind":"method","name":"messages.startHistoryImport","type":"Bool","id":3023958852,"comment":"Complete the history import process, importing all messages into the chat.
\nTo be called only after initializing the import with {@link messages.RawInitHistoryImportRequest} and uploading all files using {@link messages.RawUploadImportedMediaRequest}.","arguments":[{"name":"peer","type":"InputPeer","comment":"The Telegram chat where the messages should be imported, click here for more info ยป"},{"name":"import_id","type":"long","comment":"Identifier of a history import session, returned by {@link messages.RawInitHistoryImportRequest}."}],"throws":[{"code":400,"name":"IMPORT_ID_INVALID","comment":"The specified import ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.getExportedChatInvites","type":"messages.ExportedChatInvites","typeModifiers":{"constructorId":3183881676},"id":2729812982,"comment":"Get info about the chat invites of a specific chat","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"revoked","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether to fetch revoked chat invites"},{"name":"peer","type":"InputPeer","comment":"Chat"},{"name":"admin_id","type":"InputUser","comment":"Whether to only fetch chat invites from this admin"},{"name":"offset_date","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Offsets for pagination, for more info click here"},{"name":"offset_link","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"ADMIN_ID_INVALID","comment":"The specified admin ID is invalid."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getExportedChatInvite","type":"messages.ExportedChatInvite","id":1937010524,"comment":"Get info about a chat invite","arguments":[{"name":"peer","type":"InputPeer","comment":"Chat"},{"name":"link","type":"string","comment":"Invite link"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.editExportedChatInvite","type":"messages.ExportedChatInvite","id":3184144245,"comment":"Edit an exported chat invite","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"revoked","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to revoke the chat invite"},{"name":"peer","type":"InputPeer","comment":"Chat"},{"name":"link","type":"string","comment":"Invite link"},{"name":"expire_date","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"New expiration date"},{"name":"usage_limit","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Maximum number of users that can join using this link"},{"name":"request_needed","type":"Bool","typeModifiers":{"predicate":"flags.3"},"comment":"Whether admin confirmation is required before admitting each separate user into the chat"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"Description of the invite link, visible only to administrators"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_INVITE_PERMANENT","comment":"You can't set an expiration date on permanent invite links."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":403,"name":"EDIT_BOT_INVITE_FORBIDDEN","comment":"Normal users can't edit invites that were created by bots."},{"code":400,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USAGE_LIMIT_INVALID","comment":"The specified usage limit is invalid."}],"available":"both"},{"kind":"method","name":"messages.deleteRevokedExportedChatInvites","type":"Bool","id":1452833749,"comment":"Delete all revoked chat invites","arguments":[{"name":"peer","type":"InputPeer","comment":"Chat"},{"name":"admin_id","type":"InputUser","comment":"ID of the admin that originally generated the revoked chat invites"}],"throws":[{"code":400,"name":"ADMIN_ID_INVALID","comment":"The specified admin ID is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.deleteExportedChatInvite","type":"Bool","id":3563365419,"comment":"Delete a chat invite","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"link","type":"string","comment":"Invite link"}],"throws":[{"code":400,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."},{"code":400,"name":"INVITE_REVOKED_MISSING","comment":"The specified invite link was already revoked or is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getAdminsWithInvites","type":"messages.ChatAdminsWithInvites","typeModifiers":{"constructorId":3063640791},"id":958457583,"comment":"Get info about chat invites generated by admins.","arguments":[{"name":"peer","type":"InputPeer","comment":"Chat"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getChatInviteImporters","type":"messages.ChatInviteImporters","typeModifiers":{"constructorId":2176233482},"id":3741637966,"comment":"Get info about the users that joined the chat using a specific chat invite","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"requested","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, only returns info about users with pending join requests ยป"},{"name":"peer","type":"InputPeer","comment":"Chat"},{"name":"link","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Invite link"},{"name":"q","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Search for a user in the pending join requests ยป list: only available when the requested flag is set, cannot be used together with a specific link."},{"name":"offset_date","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"offset_user","type":"InputUser","comment":"User ID for pagination: if set, offset_date must also be set."},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"SEARCH_WITH_LINK_NOT_SUPPORTED","comment":"You cannot provide a search query and an invite link at the same time."}],"available":"user"},{"kind":"method","name":"messages.setHistoryTTL","type":"Updates","id":3087949796,"comment":"Set maximum Time-To-Live of all messages in the specified chat","arguments":[{"name":"peer","type":"InputPeer","comment":"The dialog"},{"name":"period","type":"int","comment":"Automatically delete all messages sent in the chat after this many seconds"}],"throws":[{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"TTL_PERIOD_INVALID","comment":"The specified TTL period is invalid."}],"available":"user"},{"kind":"method","name":"messages.checkHistoryImportPeer","type":"messages.CheckedHistoryImportPeer","typeModifiers":{"constructorId":2723014423},"id":1573261059,"comment":"Check whether chat history exported from another chat app can be imported into a specific Telegram chat, click here for more info ยป.\n\nIf the check succeeds, and no RPC errors are returned, a messages.CheckedHistoryImportPeer constructor will be returned, with a confirmation text to be shown to the user, before actually initializing the import.","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat where we want to import history ยป."}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_NOT_MUTUAL_CONTACT","comment":"The provided user is not a mutual contact."}],"available":"user"},{"kind":"method","name":"messages.setChatTheme","type":"Updates","id":3862683967,"comment":"Change the chat theme of a certain chat","arguments":[{"name":"peer","type":"InputPeer","comment":"Private chat where to change theme"},{"name":"emoticon","type":"string","comment":"Emoji, identifying a specific chat theme; a list of chat themes can be fetched using {@link account.RawGetChatThemesRequest}"}],"throws":[{"code":400,"name":"EMOJI_INVALID","comment":"The specified theme emoji is valid."},{"code":400,"name":"EMOJI_NOT_MODIFIED","comment":"The theme wasn't changed."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getMessageReadParticipants","type":"ReadParticipantDate","typeModifiers":{"isVector":true,"constructorId":1246753138},"id":834782287,"comment":"Get which users read a specific message: only available for groups and supergroups with less than chat_read_mark_size_threshold members, read receipts will be stored for chat_read_mark_expire_period seconds after the message was sent, see client configuration for more info ยป.","arguments":[{"name":"peer","type":"InputPeer","comment":"Dialog"},{"name":"msg_id","type":"int","comment":"Message ID"}],"throws":[{"code":400,"name":"CHAT_TOO_BIG","comment":"This method is not available for groups with more than chat_read_mark_size_threshold members, see client configuration ยป."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"MSG_TOO_OLD","comment":"chat_read_mark_expire_period seconds have passed since the message was sent, read receipts were deleted."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getSearchResultsCalendar","type":"messages.SearchResultsCalendar","typeModifiers":{"constructorId":343859772},"id":1789130429,"comment":"Returns information about the next messages of the specified type in the chat split by days.\n\nReturns the results in reverse chronological order.
\nCan return partial results for the last returned day.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer where to search"},{"name":"saved_peer_id","type":"InputPeer","typeModifiers":{"predicate":"flags.2"},"comment":"Search within the saved message dialog ยป with this ID."},{"name":"filter","type":"MessagesFilter","comment":"Message filter, {@link RawInputMessagesFilterEmpty}, {@link RawInputMessagesFilterMyMentions} filters are not supported by this method."},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"offset_date","type":"int","comment":"Offsets for pagination, for more info click here"}],"throws":[{"code":400,"name":"FILTER_NOT_SUPPORTED","comment":"The specified filter cannot be used in this context."}],"available":"user"},{"kind":"method","name":"messages.getSearchResultsPositions","type":"messages.SearchResultsPositions","typeModifiers":{"constructorId":1404185519},"id":2625580816,"comment":"Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation.\n\nReturns the results in reverse chronological order (i.e., in order of decreasing message_id).","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer where to search"},{"name":"saved_peer_id","type":"InputPeer","typeModifiers":{"predicate":"flags.2"},"comment":"Search within the saved message dialog ยป with this ID."},{"name":"filter","type":"MessagesFilter","comment":"Message filter, {@link RawInputMessagesFilterEmpty}, {@link RawInputMessagesFilterMyMentions} filters are not supported by this method."},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"available":"user"},{"kind":"method","name":"messages.hideChatJoinRequest","type":"Updates","id":2145904661,"comment":"Dismiss or approve a chat join request related to a specific chat or channel.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"approved","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to dismiss or approve the chat join request ยป"},{"name":"peer","type":"InputPeer","comment":"The chat or channel"},{"name":"user_id","type":"InputUser","comment":"The user whose join request ยป should be dismissed or approved"}],"throws":[{"code":400,"name":"CHANNELS_TOO_MUCH","comment":"You have joined too many channels/supergroups."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"HIDE_REQUESTER_MISSING","comment":"The join request was missing or was already handled."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_ALREADY_PARTICIPANT","comment":"The user is already in the group."},{"code":403,"name":"USER_CHANNELS_TOO_MUCH","comment":"One of the users you tried to add is already in too many channels/supergroups."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"both"},{"kind":"method","name":"messages.hideAllChatJoinRequests","type":"Updates","id":3766875370,"comment":"Dismiss or approve all join requests related to a specific chat or channel.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"approved","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to dismiss or approve all chat join requests ยป"},{"name":"peer","type":"InputPeer","comment":"The chat or channel"},{"name":"link","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Only dismiss or approve join requests ยป initiated using this invite link"}],"throws":[{"code":400,"name":"CHANNELS_TOO_MUCH","comment":"You have joined too many channels/supergroups."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"HIDE_REQUESTER_MISSING","comment":"The join request was missing or was already handled."},{"code":400,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_CHANNELS_TOO_MUCH","comment":"One of the users you tried to add is already in too many channels/supergroups."}],"available":"user"},{"kind":"method","name":"messages.toggleNoForwards","type":"Updates","id":2971578274,"comment":"Enable or disable content protection on a channel or chat","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat or channel"},{"name":"enabled","type":"Bool","comment":"Enable or disable content protection"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.saveDefaultSendAs","type":"Bool","id":3439189910,"comment":"Change the default peer that should be used when sending messages, reactions, poll votes to a specific group","arguments":[{"name":"peer","type":"InputPeer","comment":"Group"},{"name":"send_as","type":"InputPeer","comment":"The default peer that should be used when sending messages to the group"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"SEND_AS_PEER_INVALID","comment":"You can't send messages as the specified peer."}],"available":"user"},{"kind":"method","name":"messages.sendReaction","type":"Updates","id":3540875476,"comment":"React to message.\n\nStarting from layer 159, the reaction will be sent from the peer specified using {@link messages.RawSaveDefaultSendAsRequest}.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"big","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether a bigger and longer reaction should be shown"},{"name":"add_to_recent","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to add this reaction to the recent reactions list ยป."},{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"msg_id","type":"int","comment":"Message ID to react to"},{"name":"reaction","type":"Reaction","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"A list of reactions"}],"throws":[{"code":403,"name":"ANONYMOUS_REACTIONS_DISABLED","comment":"Sorry, anonymous administrators cannot leave reactions or participate in polls."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"CUSTOM_REACTIONS_TOO_MANY","comment":"Too many custom reactions were specified."},{"code":400,"name":"DOCUMENT_INVALID","comment":"The specified document is invalid."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"MESSAGE_NOT_MODIFIED","comment":"The provided message data is identical to the previous message data, the message wasn't modified."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":403,"name":"PREMIUM_ACCOUNT_REQUIRED","comment":"A premium account is required to execute this action."},{"code":400,"name":"REACTIONS_TOO_MANY","comment":"The message already has exactly reactions_uniq_max reaction emojis, you can't react with a new emoji, see the docs for more info ยป."},{"code":400,"name":"REACTION_EMPTY","comment":"Empty reaction provided."},{"code":400,"name":"REACTION_INVALID","comment":"The specified reaction is invalid."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."}],"available":"user"},{"kind":"method","name":"messages.getMessagesReactions","type":"Updates","id":2344259814,"comment":"Get message reactions ยป","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"Message IDs"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."}],"available":"user"},{"kind":"method","name":"messages.getMessageReactionsList","type":"messages.MessageReactionsList","typeModifiers":{"constructorId":834488621},"id":1176190792,"comment":"Get message reaction list, along with the sender of each reaction.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"id","type":"int","comment":"Message ID"},{"name":"reaction","type":"Reaction","typeModifiers":{"predicate":"flags.0"},"comment":"Get only reactions of this type"},{"name":"offset","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Offset for pagination (taken from the next_offset field of the returned messages.MessageReactionsList); empty in the first request."},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":403,"name":"BROADCAST_FORBIDDEN","comment":"Channel poll voters and reactions cannot be fetched to prevent deanonymization."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"messages.setChatAvailableReactions","id":1511328724,"type":"Updates","arguments":[{"name":"flags","type":"#"},{"name":"peer","type":"InputPeer","comment":"Group where to apply changes"},{"name":"available_reactions","type":"ChatReactions","comment":"Allowed reaction emojis"},{"name":"reactions_limit","type":"int","typeModifiers":{"predicate":"flags.0"}}],"comment":"Change the set of message reactions ยป that can be used in a certain group, supergroup or channel","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getAvailableReactions","type":"messages.AvailableReactions","id":417243308,"comment":"Obtain available message reactions ยป","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.setDefaultReaction","type":"Bool","id":1330094102,"comment":"Change default emoji reaction to use in the quick reaction menu: the value is synced across devices and can be fetched using {@link help.RawGetConfigRequest}.","arguments":[{"name":"reaction","type":"Reaction","comment":"New emoji reaction"}],"throws":[{"code":400,"name":"REACTION_INVALID","comment":"The specified reaction is invalid."}],"available":"user"},{"kind":"method","name":"messages.translateText","type":"messages.TranslatedText","typeModifiers":{"constructorId":870003448},"id":1662529584,"comment":"Translate a given text.\n\nStyled text entities will only be preserved for Telegram Premium users.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","typeModifiers":{"predicate":"flags.0"},"comment":"If the text is a chat message, the peer ID"},{"name":"id","type":"int","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"A list of message IDs to translate"},{"name":"text","type":"TextWithEntities","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"A list of styled messages to translate"},{"name":"to_lang","type":"string","comment":"Two-letter ISO 639-1 language code of the language to which the message is translated"}],"throws":[{"code":400,"name":"INPUT_TEXT_EMPTY","comment":"The specified text is empty."},{"code":400,"name":"INPUT_TEXT_TOO_LONG","comment":"The specified text is too long."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"TO_LANG_INVALID","comment":"The specified destination language is invalid."}],"available":"user"},{"kind":"method","name":"messages.getUnreadReactions","type":"messages.Messages","id":841173339,"comment":"Get unread reactions to messages you sent","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If set, considers only reactions to messages within the specified forum topic"},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"add_offset","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"},{"name":"max_id","type":"int","comment":"Only return reactions for messages up until this message ID"},{"name":"min_id","type":"int","comment":"Only return reactions for messages starting from this message ID"}],"available":"user"},{"kind":"method","name":"messages.readReactions","type":"messages.AffectedHistory","typeModifiers":{"constructorId":3025955281},"id":1420459918,"comment":"Mark message reactions ยป as read","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Mark as read only reactions to messages within the specified forum topic"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.searchSentMedia","type":"messages.Messages","id":276705696,"comment":"View and search recently sent media.
\nThis method does not support pagination.","arguments":[{"name":"q","type":"string","comment":"Optional search query"},{"name":"filter","type":"MessagesFilter","comment":"Message filter"},{"name":"limit","type":"int","comment":"Maximum number of results to return (max 100)."}],"throws":[{"code":400,"name":"FILTER_NOT_SUPPORTED","comment":"The specified filter cannot be used in this context."}],"available":"user"},{"kind":"method","name":"messages.getAttachMenuBots","type":"AttachMenuBots","id":385663691,"comment":"Returns installed attachment menu bot mini apps ยป","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getAttachMenuBot","type":"AttachMenuBotsBot","typeModifiers":{"constructorId":2478794367},"id":1998676370,"comment":"Returns attachment menu entry for a bot mini app that can be launched from the attachment menu ยป","arguments":[{"name":"bot","type":"InputUser","comment":"Bot ID"}],"throws":[{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."}],"available":"user"},{"kind":"method","name":"messages.toggleBotInAttachMenu","type":"Bool","id":1777704297,"comment":"Enable or disable web bot attachment menu ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"write_allowed","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the user authorizes the bot to write messages to them, if requested by {@link RawAttachMenuBot}.request_write_access"},{"name":"bot","type":"InputUser","comment":"Bot ID"},{"name":"enabled","type":"Bool","comment":"Toggle"}],"available":"user"},{"kind":"method","name":"messages.requestWebView","type":"WebViewResult","typeModifiers":{"constructorId":202659196},"id":647873217,"comment":"Open a bot mini app, sending over user information after user confirmation.\n\nAfter calling this method, until the user closes the webview, {@link messages.RawProlongWebViewRequest} must be called every 60 seconds.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"from_bot_menu","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether the webview was opened by clicking on the bot's menu button ยป."},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is {@link messages.RawSendWebViewResultMessageRequest} should be sent silently (no notifications for the receivers)."},{"name":"peer","type":"InputPeer","comment":"Dialog where the web app is being opened, and where the resulting message will be sent (see the docs for more info ยป)."},{"name":"bot","type":"InputUser","comment":"Bot that owns the web app"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Web app URL"},{"name":"start_param","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"If the web app was opened from the attachment menu using a attachment menu deep link, start_param should contain the data from the startattach parameter."},{"name":"theme_params","type":"DataJSON","typeModifiers":{"predicate":"flags.2"},"comment":"Theme parameters ยป"},{"name":"platform","type":"string","comment":"Short name of the application; 0-64 English letters, digits, and underscores"},{"name":"reply_to","type":"InputReplyTo","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates that the inline message that will be sent by the bot on behalf of the user once the web app interaction is {@link messages.RawSendWebViewResultMessageRequest} should be sent in reply to the specified message or story."},{"name":"send_as","type":"InputPeer","typeModifiers":{"predicate":"flags.13"},"comment":"Open the web app as the specified peer, sending the resulting the message as the specified peer."}],"throws":[{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."},{"code":400,"name":"BOT_WEBVIEW_DISABLED","comment":"ย "},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"YOU_BLOCKED_USER","comment":"You blocked this user."}],"available":"user"},{"kind":"method","name":"messages.prolongWebView","type":"Bool","id":2966952579,"comment":"Indicate to the server (from the user side) that the user is still using a web app.\n\nIf the method returns a QUERY_ID_INVALID error, the webview must be closed.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is {@link messages.RawSendWebViewResultMessageRequest} should be sent silently (no notifications for the receivers)."},{"name":"peer","type":"InputPeer","comment":"Dialog where the web app was opened."},{"name":"bot","type":"InputUser","comment":"Bot that owns the web app"},{"name":"query_id","type":"long","comment":"Web app interaction ID obtained from {@link messages.RawRequestWebViewRequest}"},{"name":"reply_to","type":"InputReplyTo","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates that the inline message that will be sent by the bot on behalf of the user once the web app interaction is {@link messages.RawSendWebViewResultMessageRequest} should be sent in reply to the specified message or story."},{"name":"send_as","type":"InputPeer","typeModifiers":{"predicate":"flags.13"},"comment":"Open the web app as the specified peer"}],"available":"user"},{"kind":"method","name":"messages.requestSimpleWebView","type":"SimpleWebViewResult","typeModifiers":{"constructorId":2284811963},"id":440815626,"comment":"Open a bot mini app.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"from_switch_webview","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the webapp was opened by clicking on the switch_webview button shown on top of the inline results list returned by {@link messages.RawGetInlineBotResultsRequest}."},{"name":"from_side_menu","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Set this flag if opening the Mini App from the installed side menu entry ยป or from a Mini App link ยป."},{"name":"bot","type":"InputUser","comment":"Bot that owns the mini app"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Web app URL, if opening from a keyboard button or inline result"},{"name":"start_param","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"Start parameter, if opening from a Mini App link ยป."},{"name":"theme_params","type":"DataJSON","typeModifiers":{"predicate":"flags.0"},"comment":"Theme parameters ยป"},{"name":"platform","type":"string","comment":"Short name of the application; 0-64 English letters, digits, and underscores"}],"available":"user"},{"kind":"method","name":"messages.sendWebViewResultMessage","type":"WebViewMessageSent","typeModifiers":{"constructorId":211046684},"id":172168437,"comment":"Terminate webview interaction started with {@link messages.RawRequestWebViewRequest}, sending the specified message to the chat on behalf of the user.","arguments":[{"name":"bot_query_id","type":"string","comment":"Webview interaction ID obtained from {@link messages.RawRequestWebViewRequest}"},{"name":"result","type":"InputBotInlineResult","comment":"Message to send"}],"throws":[{"code":400,"name":"QUERY_ID_INVALID","comment":"The query ID is invalid."}],"available":"both"},{"kind":"method","name":"messages.sendWebViewData","type":"Updates","id":3691135688,"comment":"Used by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it.","arguments":[{"name":"bot","type":"InputUser","comment":"Bot that owns the web app"},{"name":"random_id","type":"long","comment":"Unique client message ID to prevent duplicate sending of the same event"},{"name":"button_text","type":"string","comment":"Text of the {@link RawKeyboardButtonSimpleWebView} that was pressed to open the web app."},{"name":"data","type":"string","comment":"Data to relay to the bot, obtained from a web_app_data_send JS event."}],"available":"user"},{"kind":"method","name":"messages.transcribeAudio","type":"messages.TranscribedAudio","typeModifiers":{"constructorId":3485063511},"id":647928393,"comment":"Transcribe voice message","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer ID where the voice message was sent"},{"name":"msg_id","type":"int","comment":"Voice message ID"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":403,"name":"PREMIUM_ACCOUNT_REQUIRED","comment":"A premium account is required to execute this action."},{"code":400,"name":"TRANSCRIPTION_FAILED","comment":"Audio transcription failed."}],"available":"user"},{"kind":"method","name":"messages.rateTranscribedAudio","type":"Bool","id":2132608815,"comment":"Rate transcribed voice message","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the voice message was sent"},{"name":"msg_id","type":"int","comment":"Message ID"},{"name":"transcription_id","type":"long","comment":"Transcription ID"},{"name":"good","type":"Bool","comment":"Whether the transcription was correct"}],"available":"user"},{"kind":"method","name":"messages.getCustomEmojiDocuments","type":"Document","typeModifiers":{"isVector":true},"id":3651866452,"comment":"Fetch custom emoji stickers ยป.\n\nReturns a list of {@link RawDocument} with the animated custom emoji in TGS format, and a {@link RawDocumentAttributeCustomEmoji} attribute with the original emoji and info about the emoji stickerset this custom emoji belongs to.","arguments":[{"name":"document_id","type":"long","typeModifiers":{"isVector":true},"comment":"Custom emoji IDs from a {@link RawMessageEntityCustomEmoji}."}],"available":"both"},{"kind":"method","name":"messages.getEmojiStickers","type":"messages.AllStickers","id":4227637647,"comment":"Gets the list of currently installed custom emoji stickersets.","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getFeaturedEmojiStickers","type":"messages.FeaturedStickers","id":248473398,"comment":"Gets featured custom emoji stickersets.","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.reportReaction","type":"Bool","id":1063567478,"comment":"Report a message reaction","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the message was sent"},{"name":"id","type":"int","comment":"Message ID"},{"name":"reaction_peer","type":"InputPeer","comment":"Peer that sent the reaction"}],"throws":[{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.getTopReactions","type":"messages.Reactions","id":3145803194,"comment":"Got popular message reactions","arguments":[{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getRecentReactions","type":"messages.Reactions","id":960896434,"comment":"Get recently used message reactions","arguments":[{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.clearRecentReactions","type":"Bool","id":2650730420,"comment":"Clear recently used message reactions","arguments":[],"available":"user"},{"kind":"method","name":"messages.getExtendedMedia","type":"Updates","id":2230847508,"comment":"Get information about extended media","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"Message IDs"}],"available":"user"},{"kind":"method","name":"messages.setDefaultHistoryTTL","type":"Bool","id":2662667333,"comment":"Changes the default value of the Time-To-Live setting, applied to all new chats.","arguments":[{"name":"period","type":"int","comment":"The new default Time-To-Live of all messages sent in new chats."}],"available":"both"},{"kind":"method","name":"messages.getDefaultHistoryTTL","type":"DefaultHistoryTTL","typeModifiers":{"constructorId":1135897376},"id":1703637384,"comment":"Gets the default value of the Time-To-Live setting, applied to all new chats.","arguments":[],"available":"both"},{"kind":"method","name":"messages.sendBotRequestedPeer","type":"Updates","id":2444415072,"comment":"Send one or more chosen peers, as requested by a {@link RawKeyboardButtonRequestPeer} button.","arguments":[{"name":"peer","type":"InputPeer","comment":"The bot that sent the {@link RawKeyboardButtonRequestPeer} button."},{"name":"msg_id","type":"int","comment":"ID of the message that contained the reply keyboard with the {@link RawKeyboardButtonRequestPeer} button."},{"name":"button_id","type":"int","comment":"The button_id field from the {@link RawKeyboardButtonRequestPeer} constructor."},{"name":"requested_peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"The chosen peers."}],"available":"user"},{"kind":"method","name":"messages.getEmojiGroups","type":"messages.EmojiGroups","id":1955122779,"comment":"Represents a list of emoji categories, to be used when selecting custom emojis.","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"both"},{"kind":"method","name":"messages.getEmojiStatusGroups","type":"messages.EmojiGroups","id":785209037,"comment":"Represents a list of emoji categories, to be used when selecting custom emojis to set as custom emoji status.","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"both"},{"kind":"method","name":"messages.getEmojiProfilePhotoGroups","type":"messages.EmojiGroups","id":564480243,"comment":"Represents a list of emoji categories, to be used when selecting custom emojis to set as profile picture.","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"both"},{"kind":"method","name":"messages.searchCustomEmoji","type":"EmojiList","id":739360983,"comment":"Look for custom emojis associated to a UTF8 emoji","arguments":[{"name":"emoticon","type":"string","comment":"The emoji"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":400,"name":"EMOTICON_EMPTY","comment":"The emoji is empty."}],"available":"both"},{"kind":"method","name":"messages.togglePeerTranslations","type":"Bool","id":3833378169,"comment":"Show or hide the real-time chat translation popup for a certain chat","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"disabled","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to disable or enable the real-time chat translation popup"},{"name":"peer","type":"InputPeer","comment":"The peer"}],"available":"both"},{"kind":"method","name":"messages.getBotApp","type":"messages.BotApp","typeModifiers":{"constructorId":3947933173},"id":889046467,"comment":"Obtain information about a named Mini App","arguments":[{"name":"app","type":"InputBotApp","comment":"Bot app information obtained from a named Mini App deep link ยป."},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":400,"name":"BOT_APP_INVALID","comment":"The specified bot app is invalid."}],"available":"user"},{"kind":"method","name":"messages.requestAppWebView","type":"AppWebViewResult","typeModifiers":{"constructorId":1008422669},"id":2354723644,"comment":"Open a bot mini app from a named Mini App deep link, sending over user information after user confirmation.\n\nAfter calling this method, until the user closes the webview, {@link messages.RawProlongWebViewRequest} must be called every 60 seconds.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"write_allowed","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set this flag if the bot is asking permission to send messages to the user as specified in the named Mini App deep link docs, and the user agreed."},{"name":"peer","type":"InputPeer","comment":"If the client has clicked on the link in a Telegram chat, pass the chat's peer information; otherwise pass the bot's peer information, instead."},{"name":"app","type":"InputBotApp","comment":"The app obtained by invoking {@link messages.RawGetBotAppRequest} as specified in the named Mini App deep link docs."},{"name":"start_param","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"If the startapp query string parameter is present in the named Mini App deep link, pass it to start_param."},{"name":"theme_params","type":"DataJSON","typeModifiers":{"predicate":"flags.2"},"comment":"Theme parameters ยป"},{"name":"platform","type":"string","comment":"Short name of the application; 0-64 English letters, digits, and underscores"}],"throws":[{"code":400,"name":"BOT_APP_INVALID","comment":"The specified bot app is invalid."},{"code":400,"name":"BOT_APP_SHORTNAME_INVALID","comment":"The specified bot app short name is invalid."}],"available":"user"},{"kind":"method","name":"messages.setChatWallPaper","type":"Updates","id":2415577825,"comment":"Set a custom wallpaper ยป in a specific private chat with another user.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"for_both","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Only for Premium users, sets the specified wallpaper for both users of the chat, without requiring confirmation from the other user."},{"name":"revert","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If we don't like the new wallpaper the other user of the chat has chosen for us using the for_both flag, we can re-set our previous wallpaper just on our side using this flag."},{"name":"peer","type":"InputPeer","comment":"The private chat where the wallpaper will be set"},{"name":"wallpaper","type":"InputWallPaper","typeModifiers":{"predicate":"flags.0"},"comment":"The wallpaper ยป, obtained as described in the wallpaper documentation ยป; must not be provided when installing a wallpaper obtained from a {@link RawMessageActionSetChatWallPaper} service message (id must be provided, instead)."},{"name":"settings","type":"WallPaperSettings","typeModifiers":{"predicate":"flags.2"},"comment":"Wallpaper settings, obtained as described in the wallpaper documentation ยป or from {@link RawMessageActionSetChatWallPaper}.wallpaper.settings."},{"name":"id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"If the wallpaper was obtained from a {@link RawMessageActionSetChatWallPaper} service message, must contain the ID of that message."}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"WALLPAPER_INVALID","comment":"The specified wallpaper is invalid."},{"code":400,"name":"WALLPAPER_NOT_FOUND","comment":"The specified wallpaper could not be found."}],"available":"both"},{"kind":"method","name":"messages.searchEmojiStickerSets","type":"messages.FoundStickerSets","id":2461288780,"comment":"Search for custom emoji stickersets ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"exclude_featured","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Exclude featured stickersets from results"},{"name":"q","type":"string","comment":"Query string"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getSavedDialogs","type":"messages.SavedDialogs","id":1401016858,"comment":"Returns the current saved dialog list, see here ยป for more info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"exclude_pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Exclude pinned dialogs"},{"name":"offset_date","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here (top_message ID used for pagination)"},{"name":"offset_peer","type":"InputPeer","comment":"Offset peer for pagination"},{"name":"limit","type":"int","comment":"Number of list elements to be returned"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getSavedHistory","type":"messages.Messages","id":1033519437,"comment":"Returns saved messages ยป forwarded from a specific peer","arguments":[{"name":"peer","type":"InputPeer","comment":"Target peer"},{"name":"offset_id","type":"int","comment":"Only return messages starting from the specified message ID"},{"name":"offset_date","type":"int","comment":"Only return messages sent before the specified date"},{"name":"add_offset","type":"int","comment":"Number of list elements to be skipped, negative values are also accepted."},{"name":"limit","type":"int","comment":"Number of results to return"},{"name":"max_id","type":"int","comment":"If a positive value was transferred, the method will return only messages with IDs less than max_id"},{"name":"min_id","type":"int","comment":"If a positive value was transferred, the method will return only messages with IDs more than min_id"},{"name":"hash","type":"long","comment":"Result hash"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.deleteSavedHistory","type":"messages.AffectedHistory","typeModifiers":{"constructorId":3025955281},"id":1855459371,"comment":"Deletes messages forwarded from a specific peer to saved messages ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer, whose messages will be deleted from saved messages ยป"},{"name":"max_id","type":"int","comment":"Maximum ID of message to delete"},{"name":"min_date","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Delete all messages newer than this UNIX timestamp"},{"name":"max_date","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Delete all messages older than this UNIX timestamp"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getPinnedSavedDialogs","type":"messages.SavedDialogs","id":3594360032,"comment":"Get pinned saved dialogs, see here ยป for more info.","arguments":[],"available":"user"},{"kind":"method","name":"messages.toggleSavedDialogPin","type":"Bool","id":2894183390,"comment":"Pin or unpin a saved message dialog ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to pin or unpin the dialog"},{"name":"peer","type":"InputDialogPeer","comment":"The dialog to pin"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.reorderPinnedSavedDialogs","type":"Bool","id":2339464583,"comment":"Reorder pinned saved message dialogs ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"force","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, dialogs pinned server-side but not present in the order field will be unpinned."},{"name":"order","type":"InputDialogPeer","typeModifiers":{"isVector":true},"comment":"New dialog order"}],"available":"user"},{"kind":"method","name":"messages.getSavedReactionTags","type":"messages.SavedReactionTags","id":909631579,"arguments":[{"name":"flags","type":"#"},{"name":"peer","type":"InputPeer","typeModifiers":{"predicate":"flags.0"}},{"name":"hash","type":"long"}]},{"kind":"method","name":"messages.updateSavedReactionTag","type":"Bool","id":1613331948,"arguments":[{"name":"flags","type":"#"},{"name":"reaction","type":"Reaction"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"messages.getDefaultTagReactions","type":"messages.Reactions","id":3187225640,"arguments":[{"name":"hash","type":"long"}]},{"kind":"method","name":"messages.getOutboxReadDate","type":"OutboxReadDate","typeModifiers":{"constructorId":1001931436},"id":2353790557,"arguments":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"}]},{"kind":"method","name":"messages.getQuickReplies","type":"messages.QuickReplies","id":3565417128,"arguments":[{"name":"hash","type":"long"}]},{"kind":"method","name":"messages.reorderQuickReplies","type":"Bool","id":1613961479,"arguments":[{"name":"order","type":"int","typeModifiers":{"isVector":true}}]},{"kind":"method","name":"messages.checkQuickReplyShortcut","type":"Bool","id":4057005011,"arguments":[{"name":"shortcut","type":"string"}]},{"kind":"method","name":"messages.editQuickReplyShortcut","type":"Bool","id":1543519471,"arguments":[{"name":"shortcut_id","type":"int"},{"name":"shortcut","type":"string"}]},{"kind":"method","name":"messages.deleteQuickReplyShortcut","type":"Bool","id":1019234112,"arguments":[{"name":"shortcut_id","type":"int"}]},{"kind":"method","name":"messages.getQuickReplyMessages","type":"messages.Messages","id":2493814211,"arguments":[{"name":"flags","type":"#"},{"name":"shortcut_id","type":"int"},{"name":"id","type":"int","typeModifiers":{"predicate":"flags.0","isVector":true}},{"name":"hash","type":"long"}]},{"kind":"method","name":"messages.sendQuickReplyMessages","type":"Updates","id":1819610593,"arguments":[{"name":"peer","type":"InputPeer"},{"name":"shortcut_id","type":"int"},{"name":"id","type":"int","typeModifiers":{"isVector":true}},{"name":"random_id","type":"long","typeModifiers":{"isVector":true}}]},{"kind":"method","name":"messages.deleteQuickReplyMessages","type":"Updates","id":3775260944,"arguments":[{"name":"shortcut_id","type":"int"},{"name":"id","type":"int","typeModifiers":{"isVector":true}}]},{"kind":"method","name":"messages.toggleDialogFilterTags","type":"Bool","id":4247640649,"arguments":[{"name":"enabled","type":"Bool"}]},{"kind":"method","name":"messages.getMyStickers","type":"messages.MyStickers","typeModifiers":{"constructorId":4211040925},"id":3501580796,"arguments":[{"name":"offset_id","type":"long"},{"name":"limit","type":"int"}]},{"kind":"method","name":"messages.getEmojiStickerGroups","type":"messages.EmojiGroups","id":500711669,"arguments":[{"name":"hash","type":"int"}]},{"kind":"method","name":"messages.getAvailableEffects","id":3735161401,"type":"messages.AvailableEffects","arguments":[{"name":"hash","type":"int"}]},{"kind":"method","name":"messages.editFactCheck","id":92925557,"type":"Updates","arguments":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"text","type":"TextWithEntities"}]},{"kind":"method","name":"messages.deleteFactCheck","id":3520762892,"type":"Updates","arguments":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"}]},{"kind":"method","name":"messages.getFactCheck","id":3117270510,"type":"FactCheck","arguments":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int","typeModifiers":{"isVector":true}}],"typeModifiers":{"isVector":true,"constructorId":3097230543}},{"kind":"method","name":"updates.getState","type":"updates.State","typeModifiers":{"constructorId":2775329342},"id":3990128682,"comment":"Returns a current state of updates.","arguments":[],"available":"both"},{"kind":"method","name":"updates.getDifference","type":"updates.Difference","id":432207715,"comment":"Get new updates.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pts","type":"int","comment":"PTS, see updates."},{"name":"pts_limit","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"PTS limit"},{"name":"pts_total_limit","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"For fast updating: if provided and pts + pts_total_limit < remote pts, {@link updates.RawDifferenceTooLong} will be returned.
Simply tells the server to not return the difference if it is bigger than pts_total_limit
If the remote pts is too big (> ~4000000), this field will default to 1000000"},{"name":"date","type":"int","comment":"date, see updates."},{"name":"qts","type":"int","comment":"QTS, see updates."},{"name":"qts_limit","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"QTS limit"}],"throws":[{"code":400,"name":"CDN_METHOD_INVALID","comment":"You can't call this method in a CDN DC."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"DATE_EMPTY","comment":"Date empty."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PERSISTENT_TIMESTAMP_EMPTY","comment":"Persistent timestamp empty."},{"code":400,"name":"PERSISTENT_TIMESTAMP_INVALID","comment":"Persistent timestamp invalid."},{"code":500,"name":"RANDOM_ID_DUPLICATE","comment":"You provided a random ID that was already used."},{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."},{"code":400,"name":"USER_NOT_PARTICIPANT","comment":"You're not a member of this supergroup/channel."}],"available":"both"},{"kind":"method","name":"updates.getChannelDifference","type":"updates.ChannelDifference","id":51854712,"comment":"Returns the difference between the current state of updates of a certain channel and transmitted.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"force","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set to true to skip some possibly unneeded updates and reduce server-side load"},{"name":"channel","type":"InputChannel","comment":"The channel"},{"name":"filter","type":"ChannelMessagesFilter","comment":"Messsage filter"},{"name":"pts","type":"int","comment":"Persistent timestamp (see updates)"},{"name":"limit","type":"int","comment":"How many updates to fetch, max 100000
Ordinary (non-bot) users are supposed to pass 10-100"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHANNEL_PUBLIC_GROUP_NA","comment":"channel/supergroup not available."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"FROM_MESSAGE_BOT_DISABLED","comment":"Bots can't use fromMessage min constructors."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PERSISTENT_TIMESTAMP_EMPTY","comment":"Persistent timestamp empty."},{"code":400,"name":"PERSISTENT_TIMESTAMP_INVALID","comment":"Persistent timestamp invalid."},{"code":500,"name":"PERSISTENT_TIMESTAMP_OUTDATED","comment":"Channel internal replication issues, try again later (treat this like an RPC_CALL_FAIL)."},{"code":400,"name":"PINNED_DIALOGS_TOO_MUCH","comment":"Too many pinned dialogs."},{"code":400,"name":"RANGES_INVALID","comment":"Invalid range provided."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."}],"available":"both"},{"kind":"method","name":"photos.updateProfilePhoto","type":"photos.Photo","typeModifiers":{"constructorId":539045032},"id":166207545,"comment":"Installs a previously uploaded photo as a profile photo.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"fallback","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings."},{"name":"bot","type":"InputUser","typeModifiers":{"predicate":"flags.1"},"comment":"Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user."},{"name":"id","type":"InputPhoto","comment":"Input photo"}],"throws":[{"code":400,"name":"ALBUM_PHOTOS_TOO_MANY","comment":"You have uploaded too many profile photos, delete some before retrying."},{"code":400,"name":"FILE_PARTS_INVALID","comment":"The number of file parts is invalid."},{"code":400,"name":"IMAGE_PROCESS_FAILED","comment":"Failure while processing image."},{"code":400,"name":"LOCATION_INVALID","comment":"The provided location is invalid."},{"code":400,"name":"PHOTO_CROP_SIZE_SMALL","comment":"Photo is too small."},{"code":400,"name":"PHOTO_EXT_INVALID","comment":"The extension of the photo is invalid."},{"code":400,"name":"PHOTO_ID_INVALID","comment":"Photo ID invalid."}],"available":"both"},{"kind":"method","name":"photos.uploadProfilePhoto","type":"photos.Photo","typeModifiers":{"constructorId":539045032},"id":59286453,"comment":"Updates current user profile photo.\n\nThe file, video and video_emoji_markup flags are mutually exclusive.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"fallback","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings."},{"name":"bot","type":"InputUser","typeModifiers":{"predicate":"flags.5"},"comment":"Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user."},{"name":"file","type":"InputFile","typeModifiers":{"predicate":"flags.0"},"comment":"Profile photo"},{"name":"video","type":"InputFile","typeModifiers":{"predicate":"flags.1"},"comment":"Animated profile picture video"},{"name":"video_start_ts","type":"double","typeModifiers":{"predicate":"flags.2"},"comment":"Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if video or video_emoji_markup is set."},{"name":"video_emoji_markup","type":"VideoSize","typeModifiers":{"predicate":"flags.4"},"comment":"Animated sticker profile picture, must contain either a {@link RawVideoSizeEmojiMarkup} or a {@link RawVideoSizeStickerMarkup} constructor."}],"throws":[{"code":400,"name":"ALBUM_PHOTOS_TOO_MANY","comment":"You have uploaded too many profile photos, delete some before retrying."},{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."},{"code":400,"name":"EMOJI_MARKUP_INVALID","comment":"The specified video_emoji_markup was invalid."},{"code":400,"name":"FILE_PARTS_INVALID","comment":"The number of file parts is invalid."},{"code":400,"name":"IMAGE_PROCESS_FAILED","comment":"Failure while processing image."},{"code":400,"name":"PHOTO_CROP_FILE_MISSING","comment":"Photo crop file missing."},{"code":400,"name":"PHOTO_CROP_SIZE_SMALL","comment":"Photo is too small."},{"code":400,"name":"PHOTO_EXT_INVALID","comment":"The extension of the photo is invalid."},{"code":400,"name":"PHOTO_FILE_MISSING","comment":"Profile photo file missing."},{"code":400,"name":"PHOTO_INVALID","comment":"Photo invalid."},{"code":400,"name":"STICKER_MIME_INVALID","comment":"The specified sticker MIME type is invalid."},{"code":400,"name":"VIDEO_FILE_INVALID","comment":"The specified video file is invalid."}],"available":"both"},{"kind":"method","name":"photos.deletePhotos","type":"long","typeModifiers":{"isVector":true},"id":2278522671,"comment":"Deletes profile photos. The method returns a list of successfully deleted photo IDs.","arguments":[{"name":"id","type":"InputPhoto","typeModifiers":{"isVector":true},"comment":"Input photos to delete"}],"available":"user"},{"kind":"method","name":"photos.getUserPhotos","type":"photos.Photos","id":2446144168,"comment":"Returns the list of user photos.","arguments":[{"name":"user_id","type":"InputUser","comment":"User ID"},{"name":"offset","type":"int","comment":"Number of list elements to be skipped"},{"name":"max_id","type":"long","comment":"If a positive value was transferred, the method will return only photos with IDs less than the set one. This parameter is often useful when refetching file references ยป, as in conjuction with limit=1 and offset=-1 the {@link RawPhoto} object with the id specified in max_id can be fetched."},{"name":"limit","type":"int","comment":"Number of list elements to be returned"}],"throws":[{"code":400,"name":"MAX_ID_INVALID","comment":"The provided max ID is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"both"},{"kind":"method","name":"photos.uploadContactProfilePhoto","type":"photos.Photo","typeModifiers":{"constructorId":539045032},"id":3779873393,"comment":"Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.\n\nThe file, video and video_emoji_markup flags are mutually exclusive.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"suggest","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, will send a {@link RawMessageActionSuggestProfilePhoto} service message to user_id, suggesting them to use the specified profile picture; otherwise, will set a personal profile picture for the user (only visible to the current user)."},{"name":"save","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If set, removes a previously set personal profile picture (does not affect suggested profile pictures, to remove them simply deleted the {@link RawMessageActionSuggestProfilePhoto} service message with {@link messages.RawDeleteMessagesRequest})."},{"name":"user_id","type":"InputUser","comment":"The contact"},{"name":"file","type":"InputFile","typeModifiers":{"predicate":"flags.0"},"comment":"Profile photo"},{"name":"video","type":"InputFile","typeModifiers":{"predicate":"flags.1"},"comment":"Animated profile picture video"},{"name":"video_start_ts","type":"double","typeModifiers":{"predicate":"flags.2"},"comment":"Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if video or video_emoji_markup is set."},{"name":"video_emoji_markup","type":"VideoSize","typeModifiers":{"predicate":"flags.5"},"comment":"Animated sticker profile picture, must contain either a {@link RawVideoSizeEmojiMarkup} or a {@link RawVideoSizeStickerMarkup} constructor."}],"throws":[{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"both"},{"kind":"method","name":"upload.saveFilePart","type":"Bool","id":3003426337,"comment":"Saves a part of file for further sending to one of the methods.","arguments":[{"name":"file_id","type":"long","comment":"Random file identifier created by the client"},{"name":"file_part","type":"int","comment":"Numerical order of a part"},{"name":"bytes","type":"bytes","comment":"Binary data, content of a part"}],"throws":[{"code":400,"name":"FILE_PART_EMPTY","comment":"The provided file part is empty."},{"code":400,"name":"FILE_PART_INVALID","comment":"The file part number is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"both"},{"kind":"method","name":"upload.getFile","type":"upload.File","id":3193124286,"comment":"Returns content of a whole file or its part.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"precise","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Disable some checks on limit and offset values, useful for example to stream videos by keyframes"},{"name":"cdn_supported","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the current client supports CDN downloads"},{"name":"location","type":"InputFileLocation","comment":"File location"},{"name":"offset","type":"int53","comment":"Number of bytes to be skipped"},{"name":"limit","type":"int","comment":"Number of bytes to be returned"}],"throws":[{"code":400,"name":"CDN_METHOD_INVALID","comment":"You can't call this method in a CDN DC."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":406,"name":"FILEREF_UPGRADE_NEEDED","comment":"The client has to be updated in order to support file references."},{"code":400,"name":"FILE_ID_INVALID","comment":"The provided file id is invalid."},{"code":400,"name":"FILE_REFERENCE_*","comment":"The file reference expired, it must be refreshed."},{"code":400,"name":"FILE_REFERENCE_EXPIRED","comment":"File reference expired, it must be refetched as described in the documentation."},{"code":400,"name":"LIMIT_INVALID","comment":"The provided limit is invalid."},{"code":400,"name":"LOCATION_INVALID","comment":"The provided location is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"OFFSET_INVALID","comment":"The provided offset is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"both"},{"kind":"method","name":"upload.saveBigFilePart","type":"Bool","id":3732629309,"comment":"Saves a part of a large file (over 10 MB in size) to be later passed to one of the methods.","arguments":[{"name":"file_id","type":"long","comment":"Random file id, created by the client"},{"name":"file_part","type":"int","comment":"Part sequence number"},{"name":"file_total_parts","type":"int","comment":"Total number of parts"},{"name":"bytes","type":"bytes","comment":"Binary data, part contents"}],"throws":[{"code":400,"name":"FILE_PARTS_INVALID","comment":"The number of file parts is invalid."},{"code":400,"name":"FILE_PART_EMPTY","comment":"The provided file part is empty."},{"code":400,"name":"FILE_PART_INVALID","comment":"The file part number is invalid."},{"code":400,"name":"FILE_PART_SIZE_CHANGED","comment":"Provided file part size has changed."},{"code":400,"name":"FILE_PART_SIZE_INVALID","comment":"The provided file part size is invalid."},{"code":400,"name":"FILE_PART_TOO_BIG","comment":"The uploaded file part is too big."}],"available":"both"},{"kind":"method","name":"upload.getWebFile","type":"upload.WebFile","typeModifiers":{"constructorId":568808380},"id":619086221,"comment":"Returns content of a web file, by proxying the request through telegram, see the webfile docs for more info.\n\nNote: the query must be sent to the DC specified in the webfile_dc_id MTProto configuration field.","arguments":[{"name":"location","type":"InputWebFileLocation","comment":"The file to download"},{"name":"offset","type":"int","comment":"Number of bytes to be skipped"},{"name":"limit","type":"int","comment":"Number of bytes to be returned"}],"throws":[{"code":400,"name":"DOCUMENT_INVALID","comment":"The specified document is invalid."},{"code":400,"name":"LOCATION_INVALID","comment":"The provided location is invalid."}],"available":"user"},{"kind":"method","name":"upload.getCdnFile","type":"upload.CdnFile","id":962554330,"comment":"Download a CDN file.","arguments":[{"name":"file_token","type":"bytes","comment":"File token"},{"name":"offset","type":"int53","comment":"Offset of chunk to download"},{"name":"limit","type":"int","comment":"Length of chunk to download"}],"available":"user"},{"kind":"method","name":"upload.reuploadCdnFile","type":"FileHash","typeModifiers":{"isVector":true,"constructorId":4087022428},"id":2603046056,"comment":"Request a reupload of a certain file to a CDN DC.","arguments":[{"name":"file_token","type":"bytes","comment":"File token"},{"name":"request_token","type":"bytes","comment":"Request token"}],"throws":[{"code":400,"name":"CDN_METHOD_INVALID","comment":"You can't call this method in a CDN DC."},{"code":500,"name":"CDN_UPLOAD_TIMEOUT","comment":"A server-side timeout occurred while reuploading the file to the CDN DC."},{"code":400,"name":"FILE_TOKEN_INVALID","comment":"The specified file token is invalid."},{"code":400,"name":"RSA_DECRYPT_FAILED","comment":"Internal RSA decryption failed."}],"available":"both"},{"kind":"method","name":"upload.getCdnFileHashes","type":"FileHash","typeModifiers":{"isVector":true,"constructorId":4087022428},"id":2447130417,"comment":"Get SHA256 hashes for verifying downloaded CDN files","arguments":[{"name":"file_token","type":"bytes","comment":"File"},{"name":"offset","type":"int53","comment":"Offset from which to start getting hashes"}],"throws":[{"code":400,"name":"CDN_METHOD_INVALID","comment":"You can't call this method in a CDN DC."},{"code":400,"name":"FILE_TOKEN_INVALID","comment":"The specified file token is invalid."},{"code":400,"name":"RSA_DECRYPT_FAILED","comment":"Internal RSA decryption failed."}],"available":"both"},{"kind":"method","name":"upload.getFileHashes","type":"FileHash","typeModifiers":{"isVector":true,"constructorId":4087022428},"id":2438371370,"comment":"Get SHA256 hashes for verifying downloaded files","arguments":[{"name":"location","type":"InputFileLocation","comment":"File"},{"name":"offset","type":"int53","comment":"Offset from which to get file hashes"}],"throws":[{"code":400,"name":"LOCATION_INVALID","comment":"The provided location is invalid."}],"available":"both"},{"kind":"method","name":"help.getConfig","type":"Config","typeModifiers":{"constructorId":3424265246},"id":3304659051,"comment":"Returns current configuration, including data center configuration.","arguments":[],"throws":[{"code":400,"name":"CONNECTION_API_ID_INVALID","comment":"The provided API id is invalid."},{"code":400,"name":"CONNECTION_APP_VERSION_EMPTY","comment":"App version is empty."},{"code":400,"name":"CONNECTION_LAYER_INVALID","comment":"Layer invalid."},{"code":400,"name":"DATA_INVALID","comment":"Encrypted data invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."},{"code":403,"name":"USER_PRIVACY_RESTRICTED","comment":"The user's privacy settings do not allow you to do this."}],"available":"both"},{"kind":"method","name":"help.getNearestDc","type":"NearestDc","typeModifiers":{"constructorId":2384074613},"id":531836966,"comment":"Returns info on data center nearest to the user.","arguments":[],"available":"user"},{"kind":"method","name":"help.getAppUpdate","type":"help.AppUpdate","id":1378703997,"comment":"Returns information on update availability for the current application.","arguments":[{"name":"source","type":"string","comment":"Source"}],"available":"user"},{"kind":"method","name":"help.getInviteText","type":"help.InviteText","typeModifiers":{"constructorId":415997816},"id":1295590211,"comment":"Returns localized text of a text message with an invitation.","arguments":[],"available":"user"},{"kind":"method","name":"help.getSupport","type":"help.Support","typeModifiers":{"constructorId":398898678},"id":2631862477,"comment":"Returns the support user for the \"ask a question\" feature.","arguments":[],"available":"user"},{"kind":"method","name":"help.setBotUpdatesStatus","type":"Bool","id":3961704397,"comment":"Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only","arguments":[{"name":"pending_updates_count","type":"int","comment":"Number of pending updates"},{"name":"message","type":"string","comment":"Error message, if present"}],"available":"bot"},{"kind":"method","name":"help.getCdnConfig","type":"CdnConfig","typeModifiers":{"constructorId":1462101002},"id":1375900482,"comment":"Get configuration for CDN file downloads.","arguments":[],"available":"both"},{"kind":"method","name":"help.getRecentMeUrls","type":"help.RecentMeUrls","typeModifiers":{"constructorId":235081943},"id":1036054804,"comment":"Get recently used t.me links.\n\nWhen installing official applications from \"Download Telegram\" buttons present in t.me pages, a referral parameter is passed to applications after installation.
\nIf, after downloading the application, the user creates a new account (instead of logging into an existing one), the referral parameter should be imported using this method, which returns the t.me pages the user recently opened, before installing Telegram.","arguments":[{"name":"referer","type":"string","comment":"Referrer"}],"available":"user"},{"kind":"method","name":"help.getTermsOfServiceUpdate","type":"help.TermsOfServiceUpdate","id":749019089,"comment":"Look for updates of telegram's terms of service","arguments":[],"available":"user"},{"kind":"method","name":"help.acceptTermsOfService","type":"Bool","id":4000511898,"comment":"Accept the new terms of service","arguments":[{"name":"id","type":"DataJSON","comment":"ID of terms of service"}],"throws":[{"code":400,"name":"DATA_JSON_INVALID","comment":"The provided JSON data is invalid."}],"available":"user"},{"kind":"method","name":"help.getDeepLinkInfo","type":"help.DeepLinkInfo","id":1072547679,"comment":"Get info about an unsupported deep link, see here for more info ยป.","arguments":[{"name":"path","type":"string","comment":"Path component of a tg: link"}],"available":"user"},{"kind":"method","name":"help.getAppConfig","type":"help.AppConfig","id":1642330196,"comment":"Get app-specific configuration, see client configuration for more info on the result.","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"help.saveAppLog","type":"Bool","id":1862465352,"comment":"Saves logs of application on the server.","arguments":[{"name":"events","type":"InputAppEvent","typeModifiers":{"isVector":true},"comment":"List of input events"}],"available":"user"},{"kind":"method","name":"help.getPassportConfig","type":"help.PassportConfig","id":3328290056,"comment":"Get passport configuration","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"help.getSupportName","type":"help.SupportName","typeModifiers":{"constructorId":2349199817},"id":3546343212,"comment":"Get localized name of the telegram support user","arguments":[],"throws":[{"code":403,"name":"USER_INVALID","comment":"Invalid user provided."}],"available":"user"},{"kind":"method","name":"help.getUserInfo","type":"help.UserInfo","id":59377875,"comment":"Can only be used by TSF members to obtain internal information.","arguments":[{"name":"user_id","type":"InputUser","comment":"User ID"}],"throws":[{"code":403,"name":"USER_INVALID","comment":"Invalid user provided."}],"available":"user"},{"kind":"method","name":"help.editUserInfo","type":"help.UserInfo","id":1723407216,"comment":"Internal use","arguments":[{"name":"user_id","type":"InputUser","comment":"User"},{"name":"message","type":"string","comment":"Message"},{"name":"entities","type":"MessageEntity","typeModifiers":{"isVector":true},"comment":"Message entities for styled text"}],"throws":[{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":403,"name":"USER_INVALID","comment":"Invalid user provided."}],"available":"user"},{"kind":"method","name":"help.getPromoData","type":"help.PromoData","id":3231151137,"comment":"Get MTProxy/Public Service Announcement information","arguments":[],"available":"user"},{"kind":"method","name":"help.hidePromoData","type":"Bool","id":505748629,"comment":"Hide MTProxy/Public Service Announcement information","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer to hide"}],"available":"user"},{"kind":"method","name":"help.dismissSuggestion","type":"Bool","id":4111317665,"comment":"Dismiss a suggestion, see here for more info ยป.","arguments":[{"name":"peer","type":"InputPeer","comment":"In the case of pending suggestions in {@link RawChannelFull}, the channel ID."},{"name":"suggestion","type":"string","comment":"Suggestion, see here for more info ยป."}],"available":"user"},{"kind":"method","name":"help.getCountriesList","type":"help.CountriesList","id":1935116200,"comment":"Get name, ISO code, localized name and phone codes/patterns of all available countries","arguments":[{"name":"lang_code","type":"string","comment":"Language code of the current user"},{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"help.getPremiumPromo","type":"help.PremiumPromo","typeModifiers":{"constructorId":1395946908},"id":3088815060,"comment":"Get Telegram Premium promotion information","arguments":[],"available":"user"},{"kind":"method","name":"help.getPeerColors","type":"help.PeerColors","id":3665884207,"comment":"Get the set of accent color palettes ยป that can be used for message accents.","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"help.getPeerProfileColors","type":"help.PeerColors","id":2882513405,"comment":"Get the set of accent color palettes ยป that can be used in profile page backgrounds.","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"help.getTimezonesList","type":"help.TimezonesList","id":1236468288,"arguments":[{"name":"hash","type":"int"}]},{"kind":"method","name":"channels.readHistory","type":"Bool","id":3423619383,"comment":"Mark channel/supergroup history as read","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup"},{"name":"max_id","type":"int","comment":"ID of message up to which messages should be marked as read"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"channels.deleteMessages","type":"messages.AffectedMessages","typeModifiers":{"constructorId":2228326789},"id":2227305806,"comment":"Delete messages in a channel/supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of messages to delete"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"MESSAGE_DELETE_FORBIDDEN","comment":"You can't delete one of the messages you tried to delete, most likely because it is a service message."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"both"},{"kind":"method","name":"channels.reportSpam","type":"Bool","id":4098523925,"comment":"Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup"},{"name":"participant","type":"InputPeer","comment":"Participant whose messages should be reported"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of spam messages"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"user"},{"kind":"method","name":"channels.getMessages","type":"messages.Messages","id":2911672867,"comment":"Get channel/supergroup messages","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup"},{"name":"id","type":"InputMessage","typeModifiers":{"isVector":true},"comment":"IDs of messages to get"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MESSAGE_IDS_EMPTY","comment":"No message ids were provided."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."}],"available":"both"},{"kind":"method","name":"channels.getParticipants","type":"channels.ChannelParticipants","id":2010044880,"comment":"Get the participants of a supergroup/channel","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel"},{"name":"filter","type":"ChannelParticipantsFilter","comment":"Which participant types to fetch"},{"name":"offset","type":"int","comment":"Offset"},{"name":"limit","type":"int","comment":"Limit"},{"name":"hash","type":"long","comment":"Hash"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"both"},{"kind":"method","name":"channels.getParticipant","type":"channels.ChannelParticipant","typeModifiers":{"constructorId":3753378583},"id":2695589062,"comment":"Get info about a channel/supergroup participant","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup"},{"name":"participant","type":"InputPeer","comment":"Participant to get info about"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PARTICIPANT_ID_INVALID","comment":"The specified participant ID is invalid."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."},{"code":400,"name":"USER_NOT_PARTICIPANT","comment":"You're not a member of this supergroup/channel."}],"available":"both"},{"kind":"method","name":"channels.getChannels","type":"messages.Chats","id":176122811,"comment":"Get info about channels/supergroups","arguments":[{"name":"id","type":"InputChannel","typeModifiers":{"isVector":true},"comment":"IDs of channels/supergroups to get info about"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."}],"available":"both"},{"kind":"method","name":"channels.getFullChannel","type":"messages.ChatFull","typeModifiers":{"constructorId":3856126364},"id":141781513,"comment":"Get full info about a supergroup, gigagroup or channel","arguments":[{"name":"channel","type":"InputChannel","comment":"The channel, supergroup or gigagroup to get info about"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHANNEL_PUBLIC_GROUP_NA","comment":"channel/supergroup not available."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"both"},{"kind":"method","name":"channels.createChannel","type":"Updates","id":2432722695,"comment":"Create a supergroup/channel.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"broadcast","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to create a channel"},{"name":"megagroup","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to create a supergroup"},{"name":"for_import","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the supergroup is being created to import messages from a foreign chat service using {@link messages.RawInitHistoryImportRequest}"},{"name":"forum","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether to create a forum"},{"name":"title","type":"string","comment":"Channel title"},{"name":"about","type":"string","comment":"Channel description"},{"name":"geo_point","type":"InputGeoPoint","typeModifiers":{"predicate":"flags.2"},"comment":"Geogroup location, see here ยป for more info on geogroups."},{"name":"address","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Geogroup address, see here ยป for more info on geogroups."},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Time-to-live of all messages that will be sent in the supergroup: once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. You can use {@link messages.RawSetDefaultHistoryTTLRequest} to edit this value later."}],"throws":[{"code":400,"name":"ADDRESS_INVALID","comment":"The specified geopoint address is invalid."},{"code":400,"name":"CHANNELS_ADMIN_LOCATED_TOO_MUCH","comment":"The user has reached the limit of public geogroups."},{"code":400,"name":"CHANNELS_TOO_MUCH","comment":"You have joined too many channels/supergroups."},{"code":400,"name":"CHAT_ABOUT_TOO_LONG","comment":"Chat about too long."},{"code":500,"name":"CHAT_INVALID","comment":"Invalid chat."},{"code":400,"name":"CHAT_TITLE_EMPTY","comment":"No chat title provided."},{"code":400,"name":"TTL_PERIOD_INVALID","comment":"The specified TTL period is invalid."},{"code":406,"name":"USER_RESTRICTED","comment":"You're spamreported, you can't create channels or chats."}],"available":"user"},{"kind":"method","name":"channels.editAdmin","type":"Updates","id":3543959810,"comment":"Modify the admin rights of a user in a supergroup/channel.","arguments":[{"name":"channel","type":"InputChannel","comment":"The supergroup/channel."},{"name":"user_id","type":"InputUser","comment":"The ID of the user whose admin rights should be modified"},{"name":"admin_rights","type":"ChatAdminRights","comment":"The admin rights"},{"name":"rank","type":"string","comment":"Indicates the role (rank) of the admin in the group: just an arbitrary string"}],"throws":[{"code":400,"name":"ADMINS_TOO_MUCH","comment":"There are too many admins."},{"code":400,"name":"ADMIN_RANK_EMOJI_NOT_ALLOWED","comment":"An admin rank cannot contain emojis."},{"code":400,"name":"ADMIN_RANK_INVALID","comment":"The specified admin rank is invalid."},{"code":400,"name":"BOTS_TOO_MUCH","comment":"There are too many bots in this chat/channel."},{"code":400,"name":"BOT_CHANNELS_NA","comment":"Bots can't edit admin privileges."},{"code":400,"name":"BOT_GROUPS_BLOCKED","comment":"This bot can't be added to groups."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_INVITE_REQUIRED","comment":"You do not have the rights to do this."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":406,"name":"FRESH_CHANGE_ADMINS_FORBIDDEN","comment":"You were just elected admin, you can't add or modify other admins yet."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":403,"name":"RIGHT_FORBIDDEN","comment":"Your admin rights do not allow you to do this."},{"code":400,"name":"USERS_TOO_MUCH","comment":"The maximum number of users has been exceeded (to create a chat, for example)."},{"code":400,"name":"USER_BLOCKED","comment":"User blocked."},{"code":403,"name":"USER_CHANNELS_TOO_MUCH","comment":"One of the users you tried to add is already in too many channels/supergroups."},{"code":400,"name":"USER_CREATOR","comment":"You can't leave this channel, because you're its creator."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."},{"code":403,"name":"USER_NOT_MUTUAL_CONTACT","comment":"The provided user is not a mutual contact."},{"code":403,"name":"USER_PRIVACY_RESTRICTED","comment":"The user's privacy settings do not allow you to do this."},{"code":403,"name":"USER_RESTRICTED","comment":"You're spamreported, you can't create channels or chats."}],"available":"both"},{"kind":"method","name":"channels.editTitle","type":"Updates","id":1450044624,"comment":"Edit the name of a channel/supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup"},{"name":"title","type":"string","comment":"New name"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"CHAT_TITLE_EMPTY","comment":"No chat title provided."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."}],"available":"both"},{"kind":"method","name":"channels.editPhoto","type":"Updates","id":4046346185,"comment":"Change the photo of a channel/supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup whose photo should be edited"},{"name":"photo","type":"InputChatPhoto","comment":"New photo"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"FILE_PARTS_INVALID","comment":"The number of file parts is invalid."},{"code":400,"name":"FILE_REFERENCE_INVALID","comment":"The specified file reference is invalid."},{"code":400,"name":"IMAGE_PROCESS_FAILED","comment":"Failure while processing image."},{"code":400,"name":"PHOTO_CROP_SIZE_SMALL","comment":"Photo is too small."},{"code":400,"name":"PHOTO_EXT_INVALID","comment":"The extension of the photo is invalid."},{"code":400,"name":"PHOTO_INVALID","comment":"Photo invalid."},{"code":400,"name":"STICKER_MIME_INVALID","comment":"The specified sticker MIME type is invalid."}],"available":"both"},{"kind":"method","name":"channels.checkUsername","type":"Bool","id":283557164,"comment":"Check if a username is free and can be assigned to a channel/supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"The channel/supergroup that will assigned the specified username"},{"name":"username","type":"string","comment":"The username to check"}],"throws":[{"code":400,"name":"CHANNELS_ADMIN_PUBLIC_TOO_MUCH","comment":"You're admin of too many public channels, make some channels private to change the username of this channel."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."},{"code":400,"name":"USERNAME_OCCUPIED","comment":"The provided username is already occupied."},{"code":400,"name":"USERNAME_PURCHASE_AVAILABLE","comment":"The specified username can be purchased on https://fragment.com."}],"available":"user"},{"kind":"method","name":"channels.updateUsername","type":"Bool","id":890549214,"comment":"Change or remove the username of a supergroup/channel","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel"},{"name":"username","type":"string","comment":"New username, pass an empty string to remove the username"}],"throws":[{"code":400,"name":"CHANNELS_ADMIN_PUBLIC_TOO_MUCH","comment":"You're admin of too many public channels, make some channels private to change the username of this channel."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."},{"code":400,"name":"USERNAME_NOT_MODIFIED","comment":"The username was not modified."},{"code":400,"name":"USERNAME_OCCUPIED","comment":"The provided username is already occupied."},{"code":400,"name":"USERNAME_PURCHASE_AVAILABLE","comment":"The specified username can be purchased on https://fragment.com."}],"available":"user"},{"kind":"method","name":"channels.joinChannel","type":"Updates","id":615851205,"comment":"Join a channel/supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup to join"}],"throws":[{"code":400,"name":"CHANNELS_TOO_MUCH","comment":"You have joined too many channels/supergroups."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_INVALID","comment":"Invalid chat."},{"code":400,"name":"INVITE_HASH_EMPTY","comment":"The invite hash is empty."},{"code":406,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."},{"code":400,"name":"INVITE_HASH_INVALID","comment":"The invite hash is invalid."},{"code":400,"name":"INVITE_REQUEST_SENT","comment":"You have successfully requested to join this chat or channel."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USERS_TOO_MUCH","comment":"The maximum number of users has been exceeded (to create a chat, for example)."},{"code":400,"name":"USER_ALREADY_PARTICIPANT","comment":"The user is already in the group."},{"code":400,"name":"USER_CHANNELS_TOO_MUCH","comment":"One of the users you tried to add is already in too many channels/supergroups."}],"available":"user"},{"kind":"method","name":"channels.leaveChannel","type":"Updates","id":4164332181,"comment":"Leave a channel/supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup to leave"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHANNEL_PUBLIC_GROUP_NA","comment":"channel/supergroup not available."},{"code":400,"name":"CHAT_INVALID","comment":"Invalid chat."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."},{"code":400,"name":"USER_CREATOR","comment":"You can't leave this channel, because you're its creator."},{"code":400,"name":"USER_NOT_PARTICIPANT","comment":"You're not a member of this supergroup/channel."}],"available":"both"},{"kind":"method","name":"channels.inviteToChannel","id":3387112788,"type":"messages.InvitedUsers","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup"},{"name":"users","type":"InputUser","typeModifiers":{"isVector":true},"comment":"Users to invite"}],"typeModifiers":{"constructorId":2136862630},"comment":"Invite users to a channel/supergroup\n\nMay also return 0-N updates of type {@link RawUpdateGroupInvitePrivacyForbidden}: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link can be shared with the user, instead.","throws":[{"code":400,"name":"BOTS_TOO_MUCH","comment":"There are too many bots in this chat/channel."},{"code":400,"name":"BOT_GROUPS_BLOCKED","comment":"This bot can't be added to groups."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_INVALID","comment":"Invalid chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USERS_TOO_MUCH","comment":"The maximum number of users has been exceeded (to create a chat, for example)."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."},{"code":400,"name":"USER_BLOCKED","comment":"User blocked."},{"code":400,"name":"USER_BOT","comment":"Bots can only be admins in channels."},{"code":403,"name":"USER_CHANNELS_TOO_MUCH","comment":"One of the users you tried to add is already in too many channels/supergroups."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."},{"code":400,"name":"USER_KICKED","comment":"This user was kicked from this supergroup/channel."},{"code":403,"name":"USER_NOT_MUTUAL_CONTACT","comment":"The provided user is not a mutual contact."},{"code":403,"name":"USER_PRIVACY_RESTRICTED","comment":"The user's privacy settings do not allow you to do this."}],"available":"user"},{"kind":"method","name":"channels.deleteChannel","type":"Updates","id":3222347747,"comment":"Delete a channel/supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup to delete"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":406,"name":"CHANNEL_TOO_LARGE","comment":"Channel is too large to be deleted; this error is issued when trying to delete channels with more than 1000 members (subject to change)."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."}],"available":"user"},{"kind":"method","name":"channels.exportMessageLink","type":"ExportedMessageLink","typeModifiers":{"constructorId":1571494644},"id":3862932971,"comment":"Get link and embed info of a message in a channel/supergroup","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"grouped","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to include other grouped media (for albums)"},{"name":"thread","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to also include a thread ID, if available, inside of the link"},{"name":"channel","type":"InputChannel","comment":"Channel"},{"name":"id","type":"int","comment":"Message ID"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"channels.toggleSignatures","type":"Updates","id":527021574,"comment":"Enable/disable message signatures in channels","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel"},{"name":"enabled","type":"Bool","comment":"Value"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."}],"available":"user"},{"kind":"method","name":"channels.getAdminedPublicChannels","type":"messages.Chats","id":4172297903,"comment":"Get channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the {@link RawConfig} for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of their channels/supergroups/geogroups.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"by_location","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Get geogroups"},{"name":"check_limit","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set and the user has reached the limit of owned public channels/supergroups/geogroups, instead of returning the channel list one of the specified errors will be returned.
Useful to check if a new public channel can indeed be created, even before asking the user to enter a channel username to use in {@link channels.RawCheckUsernameRequest}/{@link channels.RawUpdateUsernameRequest}."},{"name":"for_personal","type":"true","typeModifiers":{"predicate":"flags.2"}}],"throws":[{"code":400,"name":"CHANNELS_ADMIN_LOCATED_TOO_MUCH","comment":"The user has reached the limit of public geogroups."},{"code":400,"name":"CHANNELS_ADMIN_PUBLIC_TOO_MUCH","comment":"You're admin of too many public channels, make some channels private to change the username of this channel."}],"available":"user"},{"kind":"method","name":"channels.editBanned","type":"Updates","id":2531708289,"comment":"Ban/unban/kick a user in a supergroup/channel.","arguments":[{"name":"channel","type":"InputChannel","comment":"The supergroup/channel."},{"name":"participant","type":"InputPeer","comment":"Participant to ban"},{"name":"banned_rights","type":"ChatBannedRights","comment":"The banned rights"}],"throws":[{"code":406,"name":"BANNED_RIGHTS_INVALID","comment":"You provided some invalid flags in the banned rights."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PARTICIPANT_ID_INVALID","comment":"The specified participant ID is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_ADMIN_INVALID","comment":"You're not an admin."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"both"},{"kind":"method","name":"channels.getAdminLog","type":"channels.AdminLogResults","typeModifiers":{"constructorId":3985307469},"id":870184064,"comment":"Get the admin log of a channel/supergroup","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel","type":"InputChannel","comment":"Channel"},{"name":"q","type":"string","comment":"Search query, can be empty"},{"name":"events_filter","type":"ChannelAdminLogEventsFilter","typeModifiers":{"predicate":"flags.0"},"comment":"Event filter"},{"name":"admins","type":"InputUser","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Only show events from these admins"},{"name":"max_id","type":"long","comment":"Maximum ID of message to return (see pagination)"},{"name":"min_id","type":"long","comment":"Minimum ID of message to return (see pagination)"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"channels.setStickers","type":"Bool","id":3935085817,"comment":"Associate a stickerset to the supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup"},{"name":"stickerset","type":"InputStickerSet","comment":"The stickerset to associate"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"PARTICIPANTS_TOO_FEW","comment":"Not enough participants."},{"code":406,"name":"STICKERSET_OWNER_ANONYMOUS","comment":"Provided stickerset can't be installed as group stickerset to prevent admin deanonymization."}],"available":"both"},{"kind":"method","name":"channels.readMessageContents","type":"Bool","id":3937786936,"comment":"Mark channel/supergroup message contents as read","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of messages whose contents should be marked as read"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"channels.deleteHistory","type":"Updates","id":2611648071,"comment":"Delete the history of a supergroup","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"for_everyone","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the history should be deleted for everyone"},{"name":"channel","type":"InputChannel","comment":"Supergroup whose history must be deleted"},{"name":"max_id","type":"int","comment":"ID of message up to which the history must be deleted"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PARICIPANT_MISSING","comment":"The current user is not in the channel."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHANNEL_TOO_BIG","comment":"This channel has too many participants (>1000) to be deleted."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."}],"available":"user"},{"kind":"method","name":"channels.togglePreHistoryHidden","type":"Updates","id":3938171212,"comment":"Hide/unhide message history for new channel/supergroup users","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup"},{"name":"enabled","type":"Bool","comment":"Hide/unhide"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_LINK_EXISTS","comment":"The chat is public, you can't hide the history to new users."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"FORUM_ENABLED","comment":"You can't execute the specified action because the group is a forum, disable forum functionality to continue."}],"available":"user"},{"kind":"method","name":"channels.getLeftChannels","type":"messages.Chats","id":2202135744,"comment":"Get a list of channels/supergroups we left, requires a takeout session, see here ยป for more info.","arguments":[{"name":"offset","type":"int","comment":"Offset for pagination"}],"throws":[{"code":403,"name":"TAKEOUT_REQUIRED","comment":"A takeout session needs to be initialized first, see here ยป for more info."}],"available":"user"},{"kind":"method","name":"channels.getGroupsForDiscussion","type":"messages.Chats","id":4124758904,"comment":"Get all groups that can be used as discussion groups.\n\nReturned basic group chats must be first upgraded to supergroups before they can be set as a discussion group.
\nTo set a returned supergroup as a discussion group, access to its old messages must be enabled using {@link channels.RawTogglePreHistoryHiddenRequest}, first.","arguments":[],"available":"user"},{"kind":"method","name":"channels.setDiscussionGroup","type":"Bool","id":1079520178,"comment":"Associate a group to a channel as discussion group for that channel","arguments":[{"name":"broadcast","type":"InputChannel","comment":"Channel"},{"name":"group","type":"InputChannel","comment":"Discussion group to associate to the channel"}],"throws":[{"code":400,"name":"BROADCAST_ID_INVALID","comment":"Broadcast ID invalid."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"LINK_NOT_MODIFIED","comment":"Discussion link not modified."},{"code":400,"name":"MEGAGROUP_ID_INVALID","comment":"Invalid supergroup ID."},{"code":400,"name":"MEGAGROUP_PREHISTORY_HIDDEN","comment":"Group with hidden history for new members can't be set as discussion groups."}],"available":"user"},{"kind":"method","name":"channels.editCreator","type":"Updates","id":2402864415,"comment":"Transfer channel ownership","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel"},{"name":"user_id","type":"InputUser","comment":"New channel owner"},{"name":"password","type":"InputCheckPasswordSRP","comment":"2FA password of account"}],"throws":[{"code":400,"name":"CHANNELS_ADMIN_PUBLIC_TOO_MUCH","comment":"You're admin of too many public channels, make some channels private to change the username of this channel."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"PASSWORD_HASH_INVALID","comment":"The provided password hash is invalid."},{"code":400,"name":"PASSWORD_MISSING","comment":"You must enable 2FA in order to transfer ownership of a channel."},{"code":400,"name":"PASSWORD_TOO_FRESH_%d","comment":"The password was modified less than 24 hours ago, try again in %d seconds."},{"code":400,"name":"SESSION_TOO_FRESH_%d","comment":"This session was created less than 24 hours ago, try again in %d seconds."},{"code":400,"name":"SRP_ID_INVALID","comment":"Invalid SRP ID provided."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"user"},{"kind":"method","name":"channels.editLocation","type":"Bool","id":1491484525,"comment":"Edit location of geo group, see here ยป for more info on geogroups.","arguments":[{"name":"channel","type":"InputChannel","comment":"Geogroup"},{"name":"geo_point","type":"InputGeoPoint","comment":"New geolocation"},{"name":"address","type":"string","comment":"Address string"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"MEGAGROUP_GEO_REQUIRED","comment":"This method can only be invoked on a geogroup."},{"code":400,"name":"MEGAGROUP_REQUIRED","comment":"You can only use this method on a supergroup."}],"available":"user"},{"kind":"method","name":"channels.toggleSlowMode","type":"Updates","id":3990134512,"comment":"Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds","arguments":[{"name":"channel","type":"InputChannel","comment":"The supergroup"},{"name":"seconds","type":"int","comment":"Users will only be able to send one message every seconds seconds, 0 to disable the limitation"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"SECONDS_INVALID","comment":"Invalid duration provided."}],"available":"user"},{"kind":"method","name":"channels.getInactiveChannels","type":"messages.InactiveChats","typeModifiers":{"constructorId":2837970629},"id":300429806,"comment":"Get inactive channels and supergroups","arguments":[],"available":"user"},{"kind":"method","name":"channels.convertToGigagroup","type":"Updates","id":187239529,"comment":"Convert a supergroup to a gigagroup, when requested by channel suggestions.","arguments":[{"name":"channel","type":"InputChannel","comment":"The supergroup to convert"}],"throws":[{"code":400,"name":"CHANNEL_ID_INVALID","comment":"The specified supergroup ID is invalid."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"FORUM_ENABLED","comment":"You can't execute the specified action because the group is a forum, disable forum functionality to continue."},{"code":400,"name":"PARTICIPANTS_TOO_FEW","comment":"Not enough participants."}],"available":"user"},{"kind":"method","name":"channels.viewSponsoredMessage","type":"Bool","id":3199130516,"comment":"Mark a specific sponsored message as read","arguments":[{"name":"channel","type":"InputChannel","comment":"Peer"},{"name":"random_id","type":"bytes","comment":"Message ID"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."}],"available":"user"},{"kind":"method","name":"channels.getSponsoredMessages","type":"messages.SponsoredMessages","id":3961589695,"comment":"Get a list of sponsored messages","arguments":[{"name":"channel","type":"InputChannel","comment":"Peer"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"channels.getSendAs","type":"channels.SendAsPeers","typeModifiers":{"constructorId":4103516358},"id":231174382,"comment":"Obtains a list of peers that can be used to send messages in a specific group","arguments":[{"name":"peer","type":"InputPeer","comment":"The group where we intend to send messages"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"channels.deleteParticipantHistory","type":"messages.AffectedHistory","typeModifiers":{"constructorId":3025955281},"id":913655003,"comment":"Delete all messages sent by a specific participant of a given supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup"},{"name":"participant","type":"InputPeer","comment":"The participant whose messages should be deleted"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PARTICIPANT_ID_INVALID","comment":"The specified participant ID is invalid."}],"available":"user"},{"kind":"method","name":"channels.toggleJoinToSend","type":"Updates","id":3838547328,"comment":"Set whether all users should join a discussion group in order to comment on a post ยป","arguments":[{"name":"channel","type":"InputChannel","comment":"Discussion group"},{"name":"enabled","type":"Bool","comment":"Toggle"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."}],"available":"user"},{"kind":"method","name":"channels.toggleJoinRequest","type":"Updates","id":1277789622,"comment":"Set whether all users should request admin approval to join the group ยป.","arguments":[{"name":"channel","type":"InputChannel","comment":"Group"},{"name":"enabled","type":"Bool","comment":"Toggle"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"CHAT_PUBLIC_REQUIRED","comment":"You can only enable join requests in public groups."}],"available":"user"},{"kind":"method","name":"channels.reorderUsernames","type":"Bool","id":3025988893,"comment":"Reorder active usernames","arguments":[{"name":"channel","type":"InputChannel","comment":"The supergroup or channel"},{"name":"order","type":"string","typeModifiers":{"isVector":true},"comment":"The new order for active usernames. All active usernames must be specified."}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."}],"available":"both"},{"kind":"method","name":"channels.toggleUsername","type":"Bool","id":1358053637,"comment":"Activate or deactivate a purchased fragment.com username associated to a supergroup or channel we own.","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup or channel"},{"name":"username","type":"string","comment":"Username"},{"name":"active","type":"Bool","comment":"Whether to activate or deactivate the username"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"USERNAMES_ACTIVE_TOO_MUCH","comment":"The maximum number of active usernames was reached."},{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."}],"available":"both"},{"kind":"method","name":"channels.deactivateAllUsernames","type":"Bool","id":170155475,"comment":"Disable all purchased usernames of a supergroup or channel","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup or channel"}],"available":"both"},{"kind":"method","name":"channels.toggleForum","type":"Updates","id":2754186025,"comment":"Enable or disable forum functionality in a supergroup.","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup ID"},{"name":"enabled","type":"Bool","comment":"Enable or disable forum functionality"}],"throws":[{"code":400,"name":"CHAT_DISCUSSION_UNALLOWED","comment":"You can't enable forum topics in a discussion group linked to a channel."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."}],"available":"both"},{"kind":"method","name":"channels.createForumTopic","type":"Updates","id":4094427684,"comment":"Create a forum topic; requires manage_topics rights.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel","type":"InputChannel","comment":"The forum"},{"name":"title","type":"string","comment":"Topic title (maximum UTF-8 length: 128)"},{"name":"icon_color","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F."},{"name":"icon_emoji_id","type":"long","typeModifiers":{"predicate":"flags.3"},"comment":"ID of the custom emoji used as topic icon. Telegram Premium users can use any custom emoji, other users can only use the custom emojis contained in the {@link RawInputStickerSetEmojiDefaultTopicIcons} emoji pack."},{"name":"random_id","type":"long","comment":"Unique client message ID to prevent duplicate sending of the same event"},{"name":"send_as","type":"InputPeer","typeModifiers":{"predicate":"flags.2"},"comment":"Create the topic as the specified peer"}],"throws":[{"code":400,"name":"CHANNEL_FORUM_MISSING","comment":"This supergroup is not a forum."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":403,"name":"PREMIUM_ACCOUNT_REQUIRED","comment":"A premium account is required to execute this action."},{"code":400,"name":"TOPIC_TITLE_EMPTY","comment":"The specified topic title is empty."}],"available":"both"},{"kind":"method","name":"channels.getForumTopics","type":"messages.ForumTopics","typeModifiers":{"constructorId":913709011},"id":233136337,"comment":"Get topics of a forum","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel","type":"InputChannel","comment":"Supergroup"},{"name":"q","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Search query"},{"name":"offset_date","type":"int","comment":"Offsets for pagination, for more info click here, date of the last message of the last found topic. Use 0 or any date in the future to get results from the last topic."},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here, ID of the last message of the last found topic (or initially 0)."},{"name":"offset_topic","type":"int","comment":"Offsets for pagination, for more info click here, ID of the last found topic (or initially 0)."},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination. For optimal performance, the number of returned topics is chosen by the server and can be smaller than the specified limit."}],"throws":[{"code":400,"name":"CHANNEL_FORUM_MISSING","comment":"This supergroup is not a forum."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."}],"available":"user"},{"kind":"method","name":"channels.getForumTopicsByID","type":"messages.ForumTopics","typeModifiers":{"constructorId":913709011},"id":2961383097,"comment":"Get forum topics by their ID","arguments":[{"name":"channel","type":"InputChannel","comment":"Forum"},{"name":"topics","type":"int","typeModifiers":{"isVector":true},"comment":"Topic IDs"}],"throws":[{"code":400,"name":"CHANNEL_FORUM_MISSING","comment":"This supergroup is not a forum."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"TOPICS_EMPTY","comment":"You specified no topic IDs."}],"available":"both"},{"kind":"method","name":"channels.editForumTopic","type":"Updates","id":4108296581,"comment":"Edit forum topic; requires manage_topics rights.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel","type":"InputChannel","comment":"Supergroup"},{"name":"topic_id","type":"int","comment":"Topic ID"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"If present, will update the topic title (maximum UTF-8 length: 128)."},{"name":"icon_emoji_id","type":"long","typeModifiers":{"predicate":"flags.1"},"comment":"If present, updates the custom emoji used as topic icon. Telegram Premium users can use any custom emoji, other users can only use the custom emojis contained in the {@link RawInputStickerSetEmojiDefaultTopicIcons} emoji pack. Pass 0 to switch to the fallback topic icon."},{"name":"closed","type":"Bool","typeModifiers":{"predicate":"flags.2"},"comment":"If present, will update the open/closed status of the topic."},{"name":"hidden","type":"Bool","typeModifiers":{"predicate":"flags.3"},"comment":"If present, will hide/unhide the topic (only valid for the \"General\" topic, id=1)."}],"throws":[{"code":400,"name":"CHANNEL_FORUM_MISSING","comment":"This supergroup is not a forum."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"DOCUMENT_INVALID","comment":"The specified document is invalid."},{"code":400,"name":"GENERAL_MODIFY_ICON_FORBIDDEN","comment":"You can't modify the icon of the \"General\" topic."},{"code":400,"name":"TOPIC_CLOSE_SEPARATELY","comment":"The close flag cannot be provided together with any of the other flags."},{"code":400,"name":"TOPIC_HIDE_SEPARATELY","comment":"The hide flag cannot be provided together with any of the other flags."},{"code":400,"name":"TOPIC_ID_INVALID","comment":"The specified topic ID is invalid."},{"code":400,"name":"TOPIC_NOT_MODIFIED","comment":"The updated topic info is equal to the current topic info, nothing was changed."}],"available":"both"},{"kind":"method","name":"channels.updatePinnedForumTopic","type":"Updates","id":1814925350,"comment":"Pin or unpin forum topics","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup ID"},{"name":"topic_id","type":"int","comment":"Forum topic ID"},{"name":"pinned","type":"Bool","comment":"Whether to pin or unpin the topic"}],"available":"both"},{"kind":"method","name":"channels.deleteTopicHistory","type":"messages.AffectedHistory","typeModifiers":{"constructorId":3025955281},"id":876830509,"comment":"Delete message history of a forum topic","arguments":[{"name":"channel","type":"InputChannel","comment":"Forum"},{"name":"top_msg_id","type":"int","comment":"Topic ID"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"TOPIC_ID_INVALID","comment":"The specified topic ID is invalid."}],"available":"both"},{"kind":"method","name":"channels.reorderPinnedForumTopics","type":"Updates","id":693150095,"comment":"Reorder pinned forum topics","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"force","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If not set, the order of only the topics present both server-side and in order will be changed (i.e. mentioning topics not pinned server-side in order will not pin them, and not mentioning topics pinned server-side will not unpin them).
If set, the entire server-side pinned topic list will be replaced with order (i.e. mentioning topics not pinned server-side in order will pin them, and not mentioning topics pinned server-side will unpin them)"},{"name":"channel","type":"InputChannel","comment":"Supergroup ID"},{"name":"order","type":"int","typeModifiers":{"isVector":true},"comment":"Topic IDs ยป"}],"available":"both"},{"kind":"method","name":"channels.toggleAntiSpam","type":"Updates","id":1760814315,"comment":"Enable or disable the native antispam system.","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup ID. The specified supergroup must have at least telegram_antispam_group_size_min members to enable antispam functionality, as specified by the client configuration parameters."},{"name":"enabled","type":"Bool","comment":"Enable or disable the native antispam system."}],"throws":[{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."}],"available":"both"},{"kind":"method","name":"channels.reportAntiSpamFalsePositive","type":"Bool","id":2823857811,"comment":"Report a native antispam false positive","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup ID"},{"name":"msg_id","type":"int","comment":"Message ID that was mistakenly deleted by the native antispam system, taken from the admin log"}],"available":"both"},{"kind":"method","name":"channels.toggleParticipantsHidden","type":"Updates","id":1785624660,"comment":"Hide or display the participants list in a supergroup.\n\nThe supergroup must have at least hidden_members_group_size_min participants in order to use this method, as specified by the client configuration parameters ยป.","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup ID"},{"name":"enabled","type":"Bool","comment":"If true, will hide the participants list; otherwise will unhide it."}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"PARTICIPANTS_TOO_FEW","comment":"Not enough participants."}],"available":"both"},{"kind":"method","name":"channels.clickSponsoredMessage","type":"Bool","id":414170259,"comment":"Informs the server that the user has either:","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel where the sponsored message was posted"},{"name":"random_id","type":"bytes","comment":"Message ID"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."}],"available":"user"},{"kind":"method","name":"channels.updateColor","type":"Updates","id":3635033713,"comment":"Update the accent color and background custom emoji ยป of a channel.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"for_profile","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed."},{"name":"channel","type":"InputChannel","comment":"Channel whose accent color should be changed."},{"name":"color","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"ID of the accent color palette ยป to use (not RGB24, see here ยป for more info); if not set, the default palette is used."},{"name":"background_emoji_id","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"Custom emoji ID used in the accent color pattern."}],"throws":[{"code":400,"name":"BOOSTS_REQUIRED","comment":"The specified channel must first be boosted by its users in order to perform this action."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."}],"available":"user"},{"kind":"method","name":"channels.toggleViewForumAsMessages","type":"Updates","id":2537077525,"comment":"Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a \"View as messages\" setting in the local client: this setting only affects the current account, and is synced to other logged in sessions using this method.\n\nInvoking this method will update the value of the view_forum_as_messages flag of {@link RawChannelFull} or {@link RawDialog} and emit an {@link RawUpdateChannelViewForumAsMessages}.","arguments":[{"name":"channel","type":"InputChannel","comment":"The forum"},{"name":"enabled","type":"Bool","comment":"The new value of the view_forum_as_messages flag."}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."}],"available":"user"},{"kind":"method","name":"channels.getChannelRecommendations","id":631707458,"type":"messages.Chats","arguments":[{"name":"flags","type":"#"},{"name":"channel","type":"InputChannel","typeModifiers":{"predicate":"flags.0"},"comment":"The method will return channels related to the passed channel."}],"comment":"Obtain a list of similarly themed public channels, selected based on similarities in their subscriber bases.","throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."}],"available":"user"},{"kind":"method","name":"channels.updateEmojiStatus","type":"Updates","id":4040418984,"comment":"Set an emoji status for a channel.","arguments":[{"name":"channel","type":"InputChannel","comment":"The channel, must have at least channel_emoji_status_level_min boosts."},{"name":"emoji_status","type":"EmojiStatus","comment":"Emoji status to set"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."}],"available":"user"},{"kind":"method","name":"channels.setBoostsToUnblockRestrictions","type":"Updates","id":2906234094,"arguments":[{"name":"channel","type":"InputChannel"},{"name":"boosts","type":"int"}]},{"kind":"method","name":"channels.setEmojiStickers","type":"Bool","id":1020866743,"arguments":[{"name":"channel","type":"InputChannel"},{"name":"stickerset","type":"InputStickerSet"}]},{"kind":"method","name":"channels.reportSponsoredMessage","type":"channels.SponsoredMessageReportResult","id":2945447609,"arguments":[{"name":"channel","type":"InputChannel"},{"name":"random_id","type":"bytes"},{"name":"option","type":"bytes"}]},{"kind":"method","name":"channels.restrictSponsoredMessages","type":"Updates","id":2598966553,"arguments":[{"name":"channel","type":"InputChannel"},{"name":"restricted","type":"Bool"}]},{"kind":"method","name":"channels.searchPosts","id":3516897403,"type":"messages.Messages","arguments":[{"name":"hashtag","type":"string"},{"name":"offset_rate","type":"int"},{"name":"offset_peer","type":"InputPeer"},{"name":"offset_id","type":"int"},{"name":"limit","type":"int"}]},{"kind":"method","name":"bots.sendCustomRequest","type":"DataJSON","typeModifiers":{"constructorId":2104790276},"id":2854709741,"comment":"Sends a custom request; for bots only","arguments":[{"name":"custom_method","type":"string","comment":"The method name"},{"name":"params","type":"DataJSON","comment":"JSON-serialized method parameters"}],"throws":[{"code":400,"name":"DATA_JSON_INVALID","comment":"The provided JSON data is invalid."},{"code":400,"name":"METHOD_INVALID","comment":"The specified method is invalid."},{"code":403,"name":"USER_BOT_INVALID","comment":"User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts."}],"available":"bot"},{"kind":"method","name":"bots.answerWebhookJSONQuery","type":"Bool","id":3860938573,"comment":"Answers a custom query; for bots only","arguments":[{"name":"query_id","type":"long","comment":"Identifier of a custom query"},{"name":"data","type":"DataJSON","comment":"JSON-serialized answer to the query"}],"throws":[{"code":400,"name":"DATA_JSON_INVALID","comment":"The provided JSON data is invalid."},{"code":400,"name":"QUERY_ID_INVALID","comment":"The query ID is invalid."},{"code":403,"name":"USER_BOT_INVALID","comment":"User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts."}],"available":"bot"},{"kind":"method","name":"bots.setBotCommands","type":"Bool","id":85399130,"comment":"Set bot command list","arguments":[{"name":"scope","type":"BotCommandScope","comment":"Command scope"},{"name":"lang_code","type":"string","comment":"Language code"},{"name":"commands","type":"BotCommand","typeModifiers":{"isVector":true},"comment":"Bot commands"}],"throws":[{"code":400,"name":"BOT_COMMAND_DESCRIPTION_INVALID","comment":"The specified command description is invalid."},{"code":400,"name":"BOT_COMMAND_INVALID","comment":"The specified command is invalid."},{"code":400,"name":"LANG_CODE_INVALID","comment":"The specified language code is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"bot"},{"kind":"method","name":"bots.resetBotCommands","type":"Bool","id":1032708345,"comment":"Clear bot commands for the specified bot scope and language code","arguments":[{"name":"scope","type":"BotCommandScope","comment":"Command scope"},{"name":"lang_code","type":"string","comment":"Language code"}],"throws":[{"code":400,"name":"LANG_CODE_INVALID","comment":"The specified language code is invalid."}],"available":"both"},{"kind":"method","name":"bots.getBotCommands","type":"BotCommand","typeModifiers":{"isVector":true,"constructorId":3262826695},"id":3813412310,"comment":"Obtain a list of bot commands for the specified bot scope and language code","arguments":[{"name":"scope","type":"BotCommandScope","comment":"Command scope"},{"name":"lang_code","type":"string","comment":"Language code"}],"throws":[{"code":400,"name":"USER_BOT_INVALID","comment":"User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts."}],"available":"both"},{"kind":"method","name":"bots.setBotMenuButton","type":"Bool","id":1157944655,"comment":"Sets the menu button action ยป for a given user or for all users","arguments":[{"name":"user_id","type":"InputUser","comment":"User ID"},{"name":"button","type":"BotMenuButton","comment":"Bot menu button action"}],"throws":[{"code":400,"name":"BUTTON_TEXT_INVALID","comment":"The specified button text is invalid."},{"code":400,"name":"BUTTON_URL_INVALID","comment":"Button URL invalid."}],"available":"both"},{"kind":"method","name":"bots.getBotMenuButton","type":"BotMenuButton","id":2623597352,"comment":"Gets the menu button action for a given user or for all users, previously set using {@link bots.RawSetBotMenuButtonRequest}; users can see this information in the {@link RawBotInfo} constructor.","arguments":[{"name":"user_id","type":"InputUser","comment":"User ID or empty for the default menu button."}],"throws":[{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."}],"available":"bot"},{"kind":"method","name":"bots.setBotBroadcastDefaultAdminRights","type":"Bool","id":2021942497,"comment":"Set the default suggested admin rights for bots being added as admins to channels, see here for more info on how to handle them ยป.","arguments":[{"name":"admin_rights","type":"ChatAdminRights","comment":"Admin rights"}],"throws":[{"code":400,"name":"RIGHTS_NOT_MODIFIED","comment":"The new admin rights are equal to the old rights, no change was made."}],"available":"both"},{"kind":"method","name":"bots.setBotGroupDefaultAdminRights","type":"Bool","id":2455685610,"comment":"Set the default suggested admin rights for bots being added as admins to groups, see here for more info on how to handle them ยป.","arguments":[{"name":"admin_rights","type":"ChatAdminRights","comment":"Admin rights"}],"throws":[{"code":400,"name":"RIGHTS_NOT_MODIFIED","comment":"The new admin rights are equal to the old rights, no change was made."},{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."}],"available":"bot"},{"kind":"method","name":"bots.setBotInfo","type":"Bool","id":282013987,"comment":"Set localized name, about text and description of a bot (or of the current account, if called by a bot).","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"bot","type":"InputUser","typeModifiers":{"predicate":"flags.2"},"comment":"If called by a user, must contain the peer of a bot we own."},{"name":"lang_code","type":"string","comment":"Language code, if left empty update the fallback about text and description"},{"name":"name","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"New bot name"},{"name":"about","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"New about text"},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"New description"}],"throws":[{"code":400,"name":"USER_BOT_INVALID","comment":"User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts."}],"available":"both"},{"kind":"method","name":"bots.getBotInfo","type":"bots.BotInfo","typeModifiers":{"constructorId":3903288752},"id":3705214205,"comment":"Get localized name, about text and description of a bot (or of the current account, if called by a bot).","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"bot","type":"InputUser","typeModifiers":{"predicate":"flags.0"},"comment":"If called by a user, must contain the peer of a bot we own."},{"name":"lang_code","type":"string","comment":"Language code, if left empty this method will return the fallback about text and description."}],"throws":[{"code":400,"name":"LANG_CODE_INVALID","comment":"The specified language code is invalid."},{"code":400,"name":"USER_BOT_INVALID","comment":"User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts."}],"available":"both"},{"kind":"method","name":"bots.reorderUsernames","type":"Bool","id":2533994946,"comment":"Reorder usernames associated to a bot we own.","arguments":[{"name":"bot","type":"InputUser","comment":"The bot"},{"name":"order","type":"string","typeModifiers":{"isVector":true},"comment":"The new order for active usernames. All active usernames must be specified."}],"throws":[{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."}],"available":"both"},{"kind":"method","name":"bots.toggleUsername","type":"Bool","id":87861619,"comment":"Activate or deactivate a purchased fragment.com username associated to a bot we own.","arguments":[{"name":"bot","type":"InputUser","comment":"The bot"},{"name":"username","type":"string","comment":"Username"},{"name":"active","type":"Bool","comment":"Whether to activate or deactivate it"}],"throws":[{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."}],"available":"both"},{"kind":"method","name":"bots.canSendMessage","type":"Bool","id":324662502,"comment":"Check whether the specified bot can send us messages","arguments":[{"name":"bot","type":"InputUser","comment":"The bot"}],"throws":[{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."}],"available":"user"},{"kind":"method","name":"bots.allowSendMessage","type":"Updates","id":4046644207,"comment":"Allow the specified bot to send us messages","arguments":[{"name":"bot","type":"InputUser","comment":"The bot"}],"throws":[{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."}],"available":"user"},{"kind":"method","name":"bots.invokeWebViewCustomMethod","type":"DataJSON","typeModifiers":{"constructorId":2104790276},"id":142591463,"comment":"Send a custom request from a mini bot app, triggered by a web_app_invoke_custom_method event ยป.\n\nThe response should be sent using a custom_method_invoked event, see here ยป for more info on the flow.","arguments":[{"name":"bot","type":"InputUser","comment":"Identifier of the bot associated to the mini bot app"},{"name":"custom_method","type":"string","comment":"Identifier of the custom method to invoke"},{"name":"params","type":"DataJSON","comment":"Method parameters"}],"throws":[{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."}],"available":"user"},{"kind":"method","name":"payments.getPaymentForm","type":"payments.PaymentForm","id":924093883,"comment":"Get a payment form","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"invoice","type":"InputInvoice","comment":"Invoice"},{"name":"theme_params","type":"DataJSON","typeModifiers":{"predicate":"flags.0"},"comment":"A JSON object with the following keys, containing color theme information (integers, RGB24) to pass to the payment provider, to apply in eventual verification pages:
bg_color - Background color
text_color - Text color
hint_color - Hint text color
link_color - Link color
button_color - Button color
button_text_color - Button text color"}],"throws":[{"code":400,"name":"BOOST_PEER_INVALID","comment":"The specified boost_peer is invalid."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"SLUG_INVALID","comment":"The specified invoice slug is invalid."},{"code":400,"name":"UNTIL_DATE_INVALID","comment":"Invalid until date provided."}],"available":"user"},{"kind":"method","name":"payments.getPaymentReceipt","type":"payments.PaymentReceipt","id":611897804,"comment":"Get payment receipt","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer where the payment receipt was sent"},{"name":"msg_id","type":"int","comment":"Message ID of receipt"}],"throws":[{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."}],"available":"user"},{"kind":"method","name":"payments.validateRequestedInfo","type":"payments.ValidatedRequestedInfo","typeModifiers":{"constructorId":3510966403},"id":3066622251,"comment":"Submit requested order information for validation","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"save","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Save order information to re-use it for future orders"},{"name":"invoice","type":"InputInvoice","comment":"Invoice"},{"name":"info","type":"PaymentRequestedInfo","comment":"Requested order information"}],"throws":[{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."}],"available":"user"},{"kind":"method","name":"payments.sendPaymentForm","type":"payments.PaymentResult","id":755192367,"comment":"Send compiled payment form","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"form_id","type":"long","comment":"Form ID"},{"name":"invoice","type":"InputInvoice","comment":"Invoice"},{"name":"requested_info_id","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"ID of saved and validated {@link payments.RawValidatedRequestedInfo}"},{"name":"shipping_option_id","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Chosen shipping option ID"},{"name":"credentials","type":"InputPaymentCredentials","comment":"Payment credentials"},{"name":"tip_amount","type":"long","typeModifiers":{"predicate":"flags.2"},"comment":"Tip, in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}],"throws":[{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."}],"available":"user"},{"kind":"method","name":"payments.getSavedInfo","type":"payments.SavedInfo","typeModifiers":{"constructorId":4220511292},"id":578650699,"comment":"Get saved payment information","arguments":[],"available":"user"},{"kind":"method","name":"payments.clearSavedInfo","type":"Bool","id":3627905217,"comment":"Clear saved payment information","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"credentials","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Remove saved payment credentials"},{"name":"info","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Clear the last order settings saved by the user"}],"available":"user"},{"kind":"method","name":"payments.getBankCardData","type":"payments.BankCardData","typeModifiers":{"constructorId":1042605427},"id":779736953,"comment":"Get info about a credit card","arguments":[{"name":"number","type":"string","comment":"Credit card number"}],"throws":[{"code":400,"name":"BANK_CARD_NUMBER_INVALID","comment":"The specified card number is invalid."}],"available":"user"},{"kind":"method","name":"payments.exportInvoice","type":"payments.ExportedInvoice","typeModifiers":{"constructorId":2932919257},"id":261206117,"comment":"Generate an invoice deep link","arguments":[{"name":"invoice_media","type":"InputMedia","comment":"Invoice"}],"throws":[{"code":400,"name":"CURRENCY_TOTAL_AMOUNT_INVALID","comment":"The total amount of all prices is invalid."},{"code":400,"name":"INVOICE_PAYLOAD_INVALID","comment":"The specified invoice payload is invalid."},{"code":400,"name":"MEDIA_INVALID","comment":"Media invalid."},{"code":400,"name":"PAYMENT_PROVIDER_INVALID","comment":"The specified payment provider is invalid."}],"available":"both"},{"kind":"method","name":"payments.assignAppStoreTransaction","type":"Updates","id":2163045501,"comment":"Informs server about a purchase made through the App Store: for official applications only.","arguments":[{"name":"receipt","type":"bytes","comment":"Receipt"},{"name":"purpose","type":"InputStorePaymentPurpose","comment":"Payment purpose"}],"available":"user"},{"kind":"method","name":"payments.assignPlayMarketTransaction","type":"Updates","id":3757920467,"comment":"Informs server about a purchase made through the Play Store: for official applications only.","arguments":[{"name":"receipt","type":"DataJSON","comment":"Receipt"},{"name":"purpose","type":"InputStorePaymentPurpose","comment":"Payment purpose"}],"available":"user"},{"kind":"method","name":"payments.canPurchasePremium","type":"Bool","id":2680266422,"comment":"Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase, official apps only.","arguments":[{"name":"purpose","type":"InputStorePaymentPurpose","comment":"Payment purpose"}],"available":"user"},{"kind":"method","name":"payments.getPremiumGiftCodeOptions","type":"PremiumGiftCodeOption","typeModifiers":{"isVector":true,"constructorId":629052971},"id":660060756,"comment":"Obtain a list of Telegram Premium giveaway/gift code ยป options.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"boost_peer","type":"InputPeer","typeModifiers":{"predicate":"flags.0"},"comment":"The channel that will start the giveaway"}],"available":"user"},{"kind":"method","name":"payments.checkGiftCode","type":"payments.CheckedGiftCode","typeModifiers":{"constructorId":675942550},"id":2387719361,"comment":"Obtain information about a Telegram Premium giftcode ยป","arguments":[{"name":"slug","type":"string","comment":"The giftcode to check"}],"throws":[{"code":400,"name":"GIFT_SLUG_INVALID","comment":"The specified slug is invalid."}],"available":"user"},{"kind":"method","name":"payments.applyGiftCode","type":"Updates","id":4142032980,"comment":"Apply a Telegram Premium giftcode ยป","arguments":[{"name":"slug","type":"string","comment":"The code to apply"}],"throws":[{"code":400,"name":"GIFT_SLUG_EXPIRED","comment":"The specified gift slug has expired."},{"code":400,"name":"GIFT_SLUG_INVALID","comment":"The specified slug is invalid."},{"code":420,"name":"PREMIUM_SUB_ACTIVE_UNTIL_%d","comment":"You already have a premium subscription active until unixtime %d ."}],"available":"user"},{"kind":"method","name":"payments.getGiveawayInfo","type":"payments.GiveawayInfo","id":4095972389,"comment":"Obtain information about a Telegram Premium giveaway ยป.","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer where the giveaway was posted."},{"name":"msg_id","type":"int","comment":"Message ID of the {@link RawMessageActionGiveawayLaunch} service message"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"payments.launchPrepaidGiveaway","type":"Updates","id":1609928480,"comment":"Launch a prepaid giveaway ยป.","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer where to launch the giveaway."},{"name":"giveaway_id","type":"long","comment":"The prepaid giveaway ID."},{"name":"purpose","type":"InputStorePaymentPurpose","comment":"Giveway parameters"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"payments.getStarsTopupOptions","id":3222194131,"type":"StarsTopupOption","arguments":[],"typeModifiers":{"isVector":true,"constructorId":198776256}},{"kind":"method","name":"payments.getStarsStatus","id":273665959,"type":"payments.StarsStatus","arguments":[{"name":"peer","type":"InputPeer"}],"typeModifiers":{"constructorId":2364862048}},{"kind":"method","name":"payments.getStarsTransactions","id":1731904249,"type":"payments.StarsStatus","arguments":[{"name":"flags","type":"#"},{"name":"inbound","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"outbound","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"peer","type":"InputPeer"},{"name":"offset","type":"string"}],"typeModifiers":{"constructorId":2364862048}},{"kind":"method","name":"payments.sendStarsForm","id":45839133,"type":"payments.PaymentResult","arguments":[{"name":"flags","type":"#"},{"name":"form_id","type":"long"},{"name":"invoice","type":"InputInvoice"}]},{"kind":"method","name":"payments.refundStarsCharge","id":632196938,"type":"Updates","arguments":[{"name":"user_id","type":"InputUser"},{"name":"charge_id","type":"string"}]},{"kind":"method","name":"stickers.createStickerSet","type":"messages.StickerSet","id":2418125671,"comment":"Create a stickerset, bots only.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"masks","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this is a mask stickerset"},{"name":"emojis","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether this is a custom emoji stickerset."},{"name":"text_color","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether the color of TGS custom emojis contained in this set should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context. For custom emoji stickersets only."},{"name":"user_id","type":"InputUser","comment":"Stickerset owner"},{"name":"title","type":"string","comment":"Stickerset name, 1-64 chars"},{"name":"short_name","type":"string","comment":"Short name of sticker set, to be used in sticker deep links ยป. Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and, if called by a bot, must end in \"_by_\". is case insensitive. 1-64 characters."},{"name":"thumb","type":"InputDocument","typeModifiers":{"predicate":"flags.2"},"comment":"Thumbnail"},{"name":"stickers","type":"InputStickerSetItem","typeModifiers":{"isVector":true},"comment":"Stickers"},{"name":"software","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Used when importing stickers using the sticker import SDKs, specifies the name of the software that created the stickers"},{"name":"animated","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this is an animated stickerset"},{"name":"videos","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether this is a video stickerset"}],"throws":[{"code":400,"name":"PACK_SHORT_NAME_INVALID","comment":"Short pack name invalid."},{"code":400,"name":"PACK_SHORT_NAME_OCCUPIED","comment":"A stickerpack with this name already exists."},{"code":400,"name":"PACK_TITLE_INVALID","comment":"The stickerpack title is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"STICKERS_EMPTY","comment":"No sticker provided."},{"code":400,"name":"STICKER_EMOJI_INVALID","comment":"Sticker emoji invalid."},{"code":400,"name":"STICKER_FILE_INVALID","comment":"Sticker file invalid."},{"code":400,"name":"STICKER_GIF_DIMENSIONS","comment":"The specified video sticker has invalid dimensions."},{"code":400,"name":"STICKER_PNG_DIMENSIONS","comment":"Sticker png dimensions invalid."},{"code":400,"name":"STICKER_PNG_NOPNG","comment":"One of the specified stickers is not a valid PNG file."},{"code":400,"name":"STICKER_TGS_NODOC","comment":"You must send the animated sticker as a document."},{"code":400,"name":"STICKER_TGS_NOTGS","comment":"Invalid TGS sticker provided."},{"code":400,"name":"STICKER_THUMB_PNG_NOPNG","comment":"Incorrect stickerset thumb file provided, PNG / WEBP expected."},{"code":400,"name":"STICKER_THUMB_TGS_NOTGS","comment":"Incorrect stickerset TGS thumb file provided."},{"code":400,"name":"STICKER_VIDEO_BIG","comment":"The specified video sticker is too big."},{"code":400,"name":"STICKER_VIDEO_NODOC","comment":"You must send the video sticker as a document."},{"code":400,"name":"STICKER_VIDEO_NOWEBM","comment":"The specified video sticker is not in webm format."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"both"},{"kind":"method","name":"stickers.removeStickerFromSet","type":"messages.StickerSet","id":4151709521,"comment":"Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.","arguments":[{"name":"sticker","type":"InputDocument","comment":"The sticker to remove"}],"throws":[{"code":400,"name":"BOT_MISSING","comment":"Only bots can call this method, please use @stickers if you're a user."},{"code":400,"name":"STICKER_INVALID","comment":"The provided sticker is invalid."}],"available":"both"},{"kind":"method","name":"stickers.changeStickerPosition","type":"messages.StickerSet","id":4290172106,"comment":"Changes the absolute position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot","arguments":[{"name":"sticker","type":"InputDocument","comment":"The sticker"},{"name":"position","type":"int","comment":"The new position of the sticker, zero-based"}],"throws":[{"code":400,"name":"STICKER_INVALID","comment":"The provided sticker is invalid."}],"available":"both"},{"kind":"method","name":"stickers.addStickerToSet","type":"messages.StickerSet","id":2253651646,"comment":"Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot.","arguments":[{"name":"stickerset","type":"InputStickerSet","comment":"The stickerset"},{"name":"sticker","type":"InputStickerSetItem","comment":"The sticker"}],"throws":[{"code":400,"name":"BOT_MISSING","comment":"Only bots can call this method, please use @stickers if you're a user."},{"code":400,"name":"STICKERPACK_STICKERS_TOO_MUCH","comment":"There are too many stickers in this stickerpack, you can't add any more."},{"code":406,"name":"STICKERSET_INVALID","comment":"The provided sticker set is invalid."},{"code":400,"name":"STICKERS_TOO_MUCH","comment":"There are too many stickers in this stickerpack, you can't add any more."},{"code":400,"name":"STICKER_PNG_NOPNG","comment":"One of the specified stickers is not a valid PNG file."},{"code":400,"name":"STICKER_TGS_NOTGS","comment":"Invalid TGS sticker provided."}],"available":"both"},{"kind":"method","name":"stickers.setStickerSetThumb","type":"messages.StickerSet","id":2808763282,"comment":"Set stickerset thumbnail","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"stickerset","type":"InputStickerSet","comment":"Stickerset"},{"name":"thumb","type":"InputDocument","typeModifiers":{"predicate":"flags.0"},"comment":"Thumbnail (only for normal stickersets, not custom emoji stickersets)."},{"name":"thumb_document_id","type":"long","typeModifiers":{"predicate":"flags.1"},"comment":"Only for custom emoji stickersets, ID of a custom emoji present in the set to use as thumbnail; pass 0 to fallback to the first custom emoji of the set."}],"throws":[{"code":400,"name":"STICKERSET_INVALID","comment":"The provided sticker set is invalid."},{"code":400,"name":"STICKER_THUMB_PNG_NOPNG","comment":"Incorrect stickerset thumb file provided, PNG / WEBP expected."},{"code":400,"name":"STICKER_THUMB_TGS_NOTGS","comment":"Incorrect stickerset TGS thumb file provided."}],"available":"both"},{"kind":"method","name":"stickers.checkShortName","type":"Bool","id":676017721,"comment":"Check whether the given short name is available","arguments":[{"name":"short_name","type":"string","comment":"Short name"}],"throws":[{"code":400,"name":"SHORT_NAME_INVALID","comment":"The specified short name is invalid."},{"code":400,"name":"SHORT_NAME_OCCUPIED","comment":"The specified short name is already in use."}],"available":"user"},{"kind":"method","name":"stickers.suggestShortName","type":"stickers.SuggestedShortName","typeModifiers":{"constructorId":2248056895},"id":1303364867,"comment":"Suggests a short name for a given stickerpack name","arguments":[{"name":"title","type":"string","comment":"Sticker pack name"}],"throws":[{"code":400,"name":"TITLE_INVALID","comment":"The specified stickerpack title is invalid."}],"available":"user"},{"kind":"method","name":"stickers.changeSticker","type":"messages.StickerSet","id":4115889852,"comment":"Update the keywords, emojis or mask coordinates of a sticker, bots only.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"sticker","type":"InputDocument","comment":"The sticker"},{"name":"emoji","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"If set, updates the emoji list associated to the sticker"},{"name":"mask_coords","type":"MaskCoords","typeModifiers":{"predicate":"flags.1"},"comment":"If set, updates the mask coordinates"},{"name":"keywords","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"If set, updates the sticker keywords (separated by commas). Can't be provided for mask stickers."}],"throws":[{"code":400,"name":"BOT_MISSING","comment":"Only bots can call this method, please use @stickers if you're a user."},{"code":400,"name":"STICKER_INVALID","comment":"The provided sticker is invalid."}],"available":"both"},{"kind":"method","name":"stickers.renameStickerSet","type":"messages.StickerSet","id":306912256,"comment":"Renames a stickerset, bots only.","arguments":[{"name":"stickerset","type":"InputStickerSet","comment":"Stickerset to rename"},{"name":"title","type":"string","comment":"New stickerset title"}],"throws":[{"code":400,"name":"STICKERSET_INVALID","comment":"The provided sticker set is invalid."}],"available":"both"},{"kind":"method","name":"stickers.deleteStickerSet","type":"Bool","id":2272281492,"comment":"Deletes a stickerset we created, bots only.","arguments":[{"name":"stickerset","type":"InputStickerSet","comment":"Stickerset to delete"}],"throws":[{"code":400,"name":"BOT_MISSING","comment":"Only bots can call this method, please use @stickers if you're a user."},{"code":400,"name":"STICKERSET_INVALID","comment":"The provided sticker set is invalid."}],"available":"both"},{"kind":"method","name":"stickers.replaceSticker","type":"messages.StickerSet","id":1184253338,"arguments":[{"name":"sticker","type":"InputDocument"},{"name":"new_sticker","type":"InputStickerSetItem"}]},{"kind":"method","name":"phone.getCallConfig","type":"DataJSON","typeModifiers":{"constructorId":2104790276},"id":1430593449,"comment":"Get phone call configuration to be passed to libtgvoip's shared config","arguments":[],"available":"user"},{"kind":"method","name":"phone.requestCall","type":"phone.PhoneCall","typeModifiers":{"constructorId":3968000320},"id":1124046573,"comment":"Start a telegram phone call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to start a video call"},{"name":"user_id","type":"InputUser","comment":"Destination of the phone call"},{"name":"random_id","type":"int","comment":"Random ID to avoid resending the same object"},{"name":"g_a_hash","type":"bytes","comment":"Parameter for E2E encryption key exchange ยป"},{"name":"protocol","type":"PhoneCallProtocol","comment":"Phone call settings"}],"throws":[{"code":400,"name":"CALL_PROTOCOL_FLAGS_INVALID","comment":"Call protocol flags invalid."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"PARTICIPANT_VERSION_OUTDATED","comment":"The other participant does not use an up to date telegram client with support for calls."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."},{"code":403,"name":"USER_IS_BLOCKED","comment":"You were blocked by this user."},{"code":403,"name":"USER_PRIVACY_RESTRICTED","comment":"The user's privacy settings do not allow you to do this."}],"available":"user"},{"kind":"method","name":"phone.acceptCall","type":"phone.PhoneCall","typeModifiers":{"constructorId":3968000320},"id":1003664544,"comment":"Accept incoming call","arguments":[{"name":"peer","type":"InputPhoneCall","comment":"The call to accept"},{"name":"g_b","type":"bytes","comment":"Parameter for E2E encryption key exchange ยป"},{"name":"protocol","type":"PhoneCallProtocol","comment":"Phone call settings"}],"throws":[{"code":400,"name":"CALL_ALREADY_ACCEPTED","comment":"The call was already accepted."},{"code":400,"name":"CALL_ALREADY_DECLINED","comment":"The call was already declined."},{"code":500,"name":"CALL_OCCUPY_FAILED","comment":"The call failed because the user is already making another call."},{"code":400,"name":"CALL_PEER_INVALID","comment":"The provided call peer object is invalid."},{"code":406,"name":"CALL_PROTOCOL_COMPAT_LAYER_INVALID","comment":"The other side of the call does not support any of the VoIP protocols supported by the local client, as specified by the protocol.layer and protocol.library_versions fields."},{"code":400,"name":"CALL_PROTOCOL_FLAGS_INVALID","comment":"Call protocol flags invalid."}],"available":"user"},{"kind":"method","name":"phone.confirmCall","type":"phone.PhoneCall","typeModifiers":{"constructorId":3968000320},"id":788404002,"comment":"Complete phone call E2E encryption key exchange ยป","arguments":[{"name":"peer","type":"InputPhoneCall","comment":"The phone call"},{"name":"g_a","type":"bytes","comment":"Parameter for E2E encryption key exchange ยป"},{"name":"key_fingerprint","type":"long","comment":"Key fingerprint"},{"name":"protocol","type":"PhoneCallProtocol","comment":"Phone call settings"}],"throws":[{"code":400,"name":"CALL_ALREADY_DECLINED","comment":"The call was already declined."},{"code":400,"name":"CALL_PEER_INVALID","comment":"The provided call peer object is invalid."}],"available":"user"},{"kind":"method","name":"phone.receivedCall","type":"Bool","id":399855457,"comment":"Optional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended.","arguments":[{"name":"peer","type":"InputPhoneCall","comment":"The phone call we're currently in"}],"throws":[{"code":400,"name":"CALL_ALREADY_DECLINED","comment":"The call was already declined."},{"code":400,"name":"CALL_PEER_INVALID","comment":"The provided call peer object is invalid."}],"available":"user"},{"kind":"method","name":"phone.discardCall","type":"Updates","id":2999697856,"comment":"Refuse or end running call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this is a video call"},{"name":"peer","type":"InputPhoneCall","comment":"The phone call"},{"name":"duration","type":"int","comment":"Call duration"},{"name":"reason","type":"PhoneCallDiscardReason","comment":"Why was the call discarded"},{"name":"connection_id","type":"long","comment":"Preferred libtgvoip relay ID"}],"throws":[{"code":400,"name":"CALL_ALREADY_ACCEPTED","comment":"The call was already accepted."},{"code":500,"name":"CALL_OCCUPY_FAILED","comment":"The call failed because the user is already making another call."},{"code":400,"name":"CALL_PEER_INVALID","comment":"The provided call peer object is invalid."}],"available":"user"},{"kind":"method","name":"phone.setCallRating","type":"Updates","id":1508562471,"comment":"Rate a call, returns info about the rating message sent to the official VoIP bot.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"user_initiative","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the user decided on their own initiative to rate the call"},{"name":"peer","type":"InputPhoneCall","comment":"The call to rate"},{"name":"rating","type":"int","comment":"Rating in 1-5 stars"},{"name":"comment","type":"string","comment":"An additional comment"}],"throws":[{"code":400,"name":"CALL_PEER_INVALID","comment":"The provided call peer object is invalid."}],"available":"user"},{"kind":"method","name":"phone.saveCallDebug","type":"Bool","id":662363518,"comment":"Send phone call debug data to server","arguments":[{"name":"peer","type":"InputPhoneCall","comment":"Phone call"},{"name":"debug","type":"DataJSON","comment":"Debug statistics obtained from libtgvoip"}],"throws":[{"code":400,"name":"CALL_PEER_INVALID","comment":"The provided call peer object is invalid."},{"code":400,"name":"DATA_JSON_INVALID","comment":"The provided JSON data is invalid."}],"available":"user"},{"kind":"method","name":"phone.sendSignalingData","type":"Bool","id":4286223235,"comment":"Send VoIP signaling data","arguments":[{"name":"peer","type":"InputPhoneCall","comment":"Phone call"},{"name":"data","type":"bytes","comment":"Signaling payload"}],"available":"user"},{"kind":"method","name":"phone.createGroupCall","type":"Updates","id":1221445336,"comment":"Create a group call or livestream","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"rtmp_stream","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether RTMP stream support should be enabled: only the group/supergroup/channel owner can use this flag."},{"name":"peer","type":"InputPeer","comment":"Associate the group call or livestream to the provided group/supergroup/channel"},{"name":"random_id","type":"int","comment":"Unique client message ID required to prevent creation of duplicate group calls"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Call title"},{"name":"schedule_date","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"For scheduled group call or livestreams, the absolute date when the group call will start"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CREATE_CALL_FAILED","comment":"An error occurred while creating the call."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"SCHEDULE_DATE_INVALID","comment":"Invalid schedule date provided."}],"available":"user"},{"kind":"method","name":"phone.joinGroupCall","type":"Updates","id":2972909435,"comment":"Join a group call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"muted","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, the user will be muted by default upon joining."},{"name":"video_stopped","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, the user's video will be disabled by default upon joining."},{"name":"call","type":"InputGroupCall","comment":"The group call"},{"name":"join_as","type":"InputPeer","comment":"Join the group call, presenting yourself as the specified user/channel"},{"name":"invite_hash","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"The invitation hash from the invite link ยป, if provided allows speaking in a livestream or muted group chat."},{"name":"params","type":"DataJSON","comment":"WebRTC parameters"}],"throws":[{"code":400,"name":"DATA_JSON_INVALID","comment":"The provided JSON data is invalid."},{"code":403,"name":"GROUPCALL_FORBIDDEN","comment":"The group call has already ended."},{"code":400,"name":"GROUPCALL_INVALID","comment":"The specified group call is invalid."},{"code":400,"name":"GROUPCALL_SSRC_DUPLICATE_MUCH","comment":"The app needs to retry joining the group call with a new SSRC value."},{"code":400,"name":"JOIN_AS_PEER_INVALID","comment":"The specified peer cannot be used to join a group call."}],"available":"user"},{"kind":"method","name":"phone.leaveGroupCall","type":"Updates","id":1342404601,"comment":"Leave a group call","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call"},{"name":"source","type":"int","comment":"Your source ID"}],"available":"user"},{"kind":"method","name":"phone.inviteToGroupCall","type":"Updates","id":2067345760,"comment":"Invite a set of users to a group call.","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call"},{"name":"users","type":"InputUser","typeModifiers":{"isVector":true},"comment":"The users to invite."}],"throws":[{"code":403,"name":"GROUPCALL_FORBIDDEN","comment":"The group call has already ended."},{"code":400,"name":"GROUPCALL_INVALID","comment":"The specified group call is invalid."},{"code":400,"name":"INVITE_FORBIDDEN_WITH_JOINAS","comment":"If the user has anonymously joined a group call as a channel, they can't invite other users to the group call because that would cause deanonymization, because the invite would be sent using the original user ID, not the anonymized channel ID."},{"code":400,"name":"USER_ALREADY_INVITED","comment":"You have already invited this user."}],"available":"user"},{"kind":"method","name":"phone.discardGroupCall","type":"Updates","id":2054648117,"comment":"Terminate a group call","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call to terminate"}],"throws":[{"code":400,"name":"GROUPCALL_ALREADY_DISCARDED","comment":"The group call was already discarded."},{"code":403,"name":"GROUPCALL_FORBIDDEN","comment":"The group call has already ended."},{"code":400,"name":"GROUPCALL_INVALID","comment":"The specified group call is invalid."}],"available":"user"},{"kind":"method","name":"phone.toggleGroupCallSettings","type":"Updates","id":1958458429,"comment":"Change group call settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"reset_invite_hash","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Invalidate existing invite links"},{"name":"call","type":"InputGroupCall","comment":"Group call"},{"name":"join_muted","type":"Bool","typeModifiers":{"predicate":"flags.0"},"comment":"Whether all users will that join this group call are muted by default upon joining the group call"}],"throws":[{"code":400,"name":"GROUPCALL_NOT_MODIFIED","comment":"Group call settings weren't modified."}],"available":"user"},{"kind":"method","name":"phone.getGroupCall","type":"phone.GroupCall","typeModifiers":{"constructorId":2658302637},"id":68699611,"comment":"Get info about a group call","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":403,"name":"GROUPCALL_FORBIDDEN","comment":"The group call has already ended."},{"code":400,"name":"GROUPCALL_INVALID","comment":"The specified group call is invalid."}],"available":"user"},{"kind":"method","name":"phone.getGroupParticipants","type":"phone.GroupParticipants","typeModifiers":{"constructorId":4101460406},"id":3310934187,"comment":"Get group call participants","arguments":[{"name":"call","type":"InputGroupCall","comment":"Group call"},{"name":"ids","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"If specified, will fetch group participant info about the specified peers"},{"name":"sources","type":"int","typeModifiers":{"isVector":true},"comment":"If specified, will fetch group participant info about the specified WebRTC source IDs"},{"name":"offset","type":"string","comment":"Offset for results, taken from the next_offset field of {@link phone.RawGroupParticipants}, initially an empty string.
Note: if no more results are available, the method call will return an empty next_offset; thus, avoid providing the next_offset returned in {@link phone.RawGroupParticipants} if it is empty, to avoid an infinite loop."},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"available":"user"},{"kind":"method","name":"phone.checkGroupCall","type":"int","typeModifiers":{"isVector":true},"id":3046963575,"comment":"Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs.
\nReturns an intersection of the source IDs specified in sources, and the source IDs currently being forwarded by the SFU.","arguments":[{"name":"call","type":"InputGroupCall","comment":"Group call"},{"name":"sources","type":"int","typeModifiers":{"isVector":true},"comment":"Source IDs"}],"throws":[{"code":400,"name":"GROUPCALL_JOIN_MISSING","comment":"You haven't joined this group call."}],"available":"user"},{"kind":"method","name":"phone.toggleGroupCallRecord","type":"Updates","id":4045981448,"comment":"Start or stop recording a group call: the recorded audio and video streams will be automatically sent to Saved messages (the chat with ourselves).","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"start","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to start or stop recording"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to also record video streams"},{"name":"call","type":"InputGroupCall","comment":"The group call or livestream"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Recording title"},{"name":"video_portrait","type":"Bool","typeModifiers":{"predicate":"flags.2"},"comment":"If video stream recording is enabled, whether to record in portrait or landscape mode"}],"throws":[{"code":403,"name":"GROUPCALL_FORBIDDEN","comment":"The group call has already ended."},{"code":400,"name":"GROUPCALL_NOT_MODIFIED","comment":"Group call settings weren't modified."}],"available":"user"},{"kind":"method","name":"phone.editGroupCallParticipant","type":"Updates","id":2770811583,"comment":"Edit information about a given group call participant\n\nNote: flags.N?Bool parameters can have three possible values:","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"call","type":"InputGroupCall","comment":"The group call"},{"name":"participant","type":"InputPeer","comment":"The group call participant (can also be the user itself)"},{"name":"muted","type":"Bool","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to mute or unmute the specified participant"},{"name":"volume","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"New volume"},{"name":"raise_hand","type":"Bool","typeModifiers":{"predicate":"flags.2"},"comment":"Raise or lower hand"},{"name":"video_stopped","type":"Bool","typeModifiers":{"predicate":"flags.3"},"comment":"Start or stop the video stream"},{"name":"video_paused","type":"Bool","typeModifiers":{"predicate":"flags.4"},"comment":"Pause or resume the video stream"},{"name":"presentation_paused","type":"Bool","typeModifiers":{"predicate":"flags.5"},"comment":"Pause or resume the screen sharing stream"}],"throws":[{"code":403,"name":"GROUPCALL_FORBIDDEN","comment":"The group call has already ended."},{"code":400,"name":"PARTICIPANT_JOIN_MISSING","comment":"Trying to enable a presentation, when the user hasn't joined the Video Chat with {@link phone.RawJoinGroupCallRequest}."},{"code":400,"name":"USER_VOLUME_INVALID","comment":"The specified user volume is invalid."}],"available":"user"},{"kind":"method","name":"phone.editGroupCallTitle","type":"Updates","id":480685066,"comment":"Edit the title of a group call or livestream","arguments":[{"name":"call","type":"InputGroupCall","comment":"Group call"},{"name":"title","type":"string","comment":"New title"}],"throws":[{"code":403,"name":"GROUPCALL_FORBIDDEN","comment":"The group call has already ended."}],"available":"user"},{"kind":"method","name":"phone.getGroupCallJoinAs","type":"phone.JoinAsPeers","typeModifiers":{"constructorId":2951045695},"id":4017889594,"comment":"Get a list of peers that can be used to join a group call, presenting yourself as a specific user/channel.","arguments":[{"name":"peer","type":"InputPeer","comment":"The dialog whose group call or livestream we're trying to join"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"phone.exportGroupCallInvite","type":"phone.ExportedGroupCallInvite","typeModifiers":{"constructorId":541839704},"id":3869926527,"comment":"Get an invite link for a group call or livestream","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"can_self_unmute","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"For livestreams or muted group chats, if set, users that join using this link will be able to speak without explicitly requesting permission by (for example by raising their hand)."},{"name":"call","type":"InputGroupCall","comment":"The group call"}],"throws":[{"code":403,"name":"PUBLIC_CHANNEL_MISSING","comment":"You can only export group call invite links for public chats or channels."}],"available":"user"},{"kind":"method","name":"phone.toggleGroupCallStartSubscription","type":"Updates","id":563885286,"comment":"Subscribe or unsubscribe to a scheduled group call","arguments":[{"name":"call","type":"InputGroupCall","comment":"Scheduled group call"},{"name":"subscribed","type":"Bool","comment":"Enable or disable subscription"}],"throws":[{"code":403,"name":"GROUPCALL_ALREADY_STARTED","comment":"The groupcall has already started, you can join directly using {@link phone.RawJoinGroupCallRequest}."}],"available":"user"},{"kind":"method","name":"phone.startScheduledGroupCall","type":"Updates","id":1451287362,"comment":"Start a scheduled group call.","arguments":[{"name":"call","type":"InputGroupCall","comment":"The scheduled group call"}],"available":"user"},{"kind":"method","name":"phone.saveDefaultGroupCallJoinAs","type":"Bool","id":1465786252,"comment":"Set the default peer that will be used to join a group call in a specific dialog.","arguments":[{"name":"peer","type":"InputPeer","comment":"The dialog"},{"name":"join_as","type":"InputPeer","comment":"The default peer that will be used to join group calls in this dialog, presenting yourself as a specific user/channel."}],"throws":[{"code":400,"name":"JOIN_AS_PEER_INVALID","comment":"The specified peer cannot be used to join a group call."}],"available":"user"},{"kind":"method","name":"phone.joinGroupCallPresentation","type":"Updates","id":3421137860,"comment":"Start screen sharing in a call","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call"},{"name":"params","type":"DataJSON","comment":"WebRTC parameters"}],"throws":[{"code":403,"name":"PARTICIPANT_JOIN_MISSING","comment":"Trying to enable a presentation, when the user hasn't joined the Video Chat with {@link phone.RawJoinGroupCallRequest}."}],"available":"user"},{"kind":"method","name":"phone.leaveGroupCallPresentation","type":"Updates","id":475058500,"comment":"Stop screen sharing in a group call","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call"}],"available":"user"},{"kind":"method","name":"phone.getGroupCallStreamChannels","type":"phone.GroupCallStreamChannels","typeModifiers":{"constructorId":3504636594},"id":447879488,"comment":"Get info about RTMP streams in a group call or livestream.
\nThis method should be invoked to the same group/channel-related DC used for downloading livestream chunks.
\nAs usual, the media DC is preferred, if available.","arguments":[{"name":"call","type":"InputGroupCall","comment":"Group call or livestream"}],"throws":[{"code":400,"name":"GROUPCALL_INVALID","comment":"The specified group call is invalid."},{"code":400,"name":"GROUPCALL_JOIN_MISSING","comment":"You haven't joined this group call."}],"available":"user"},{"kind":"method","name":"phone.getGroupCallStreamRtmpUrl","type":"phone.GroupCallStreamRtmpUrl","typeModifiers":{"constructorId":767505458},"id":3736316863,"comment":"Get RTMP URL and stream key for RTMP livestreams. Can be used even before creating the actual RTMP livestream with {@link phone.RawCreateGroupCallRequest} (the rtmp_stream flag must be set).","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer to livestream into"},{"name":"revoke","type":"Bool","comment":"Whether to revoke the previous stream key or simply return the existing one"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."}],"available":"user"},{"kind":"method","name":"phone.saveCallLog","type":"Bool","id":1092913030,"comment":"Save phone call debug information","arguments":[{"name":"peer","type":"InputPhoneCall","comment":"Phone call"},{"name":"file","type":"InputFile","comment":"Logs"}],"available":"user"},{"kind":"method","name":"langpack.getLangPack","type":"LangPackDifference","typeModifiers":{"constructorId":4085629430},"id":4075959050,"comment":"Get localization pack strings","arguments":[{"name":"lang_pack","type":"string","comment":"Language pack name, usually obtained from a language pack link"},{"name":"lang_code","type":"string","comment":"Language code"}],"throws":[{"code":400,"name":"LANG_CODE_NOT_SUPPORTED","comment":"The specified language code is not supported."},{"code":400,"name":"LANG_PACK_INVALID","comment":"The provided language pack is invalid."}],"available":"user"},{"kind":"method","name":"langpack.getStrings","type":"LangPackString","typeModifiers":{"isVector":true},"id":4025104387,"comment":"Get strings from a language pack","arguments":[{"name":"lang_pack","type":"string","comment":"Language pack name, usually obtained from a language pack link"},{"name":"lang_code","type":"string","comment":"Language code"},{"name":"keys","type":"string","typeModifiers":{"isVector":true},"comment":"Strings to get"}],"throws":[{"code":400,"name":"LANG_CODE_NOT_SUPPORTED","comment":"The specified language code is not supported."},{"code":400,"name":"LANG_PACK_INVALID","comment":"The provided language pack is invalid."}],"available":"user"},{"kind":"method","name":"langpack.getDifference","type":"LangPackDifference","typeModifiers":{"constructorId":4085629430},"id":3449309861,"comment":"Get new strings in language pack","arguments":[{"name":"lang_pack","type":"string","comment":"Language pack"},{"name":"lang_code","type":"string","comment":"Language code"},{"name":"from_version","type":"int","comment":"Previous localization pack version"}],"throws":[{"code":400,"name":"LANG_PACK_INVALID","comment":"The provided language pack is invalid."}],"available":"user"},{"kind":"method","name":"langpack.getLanguages","type":"LangPackLanguage","typeModifiers":{"isVector":true,"constructorId":4006239459},"id":1120311183,"comment":"Get information about all languages in a localization pack","arguments":[{"name":"lang_pack","type":"string","comment":"Language pack"}],"throws":[{"code":400,"name":"LANG_PACK_INVALID","comment":"The provided language pack is invalid."}],"available":"user"},{"kind":"method","name":"langpack.getLanguage","type":"LangPackLanguage","typeModifiers":{"constructorId":4006239459},"id":1784243458,"comment":"Get information about a language in a localization pack","arguments":[{"name":"lang_pack","type":"string","comment":"Language pack name, usually obtained from a language pack link"},{"name":"lang_code","type":"string","comment":"Language code"}],"throws":[{"code":400,"name":"LANG_CODE_NOT_SUPPORTED","comment":"The specified language code is not supported."},{"code":400,"name":"LANG_PACK_INVALID","comment":"The provided language pack is invalid."}],"available":"user"},{"kind":"method","name":"folders.editPeerFolders","type":"Updates","id":1749536939,"comment":"Edit peers in peer folder","arguments":[{"name":"folder_peers","type":"InputFolderPeer","typeModifiers":{"isVector":true},"comment":"New peer list"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"FOLDER_ID_INVALID","comment":"Invalid folder ID."}],"available":"user"},{"kind":"method","name":"stats.getBroadcastStats","type":"stats.BroadcastStats","typeModifiers":{"constructorId":963421692},"id":2873246746,"comment":"Get channel statistics","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to enable dark theme for graph colors"},{"name":"channel","type":"InputChannel","comment":"The channel"}],"throws":[{"code":400,"name":"BROADCAST_REQUIRED","comment":"This method can only be called on a channel, please use stats.getMegagroupStats for supergroups."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."}],"available":"user"},{"kind":"method","name":"stats.loadAsyncGraph","type":"StatsGraph","id":1646092192,"comment":"Load channel statistics graph asynchronously","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"token","type":"string","comment":"Graph token from {@link RawStatsGraphAsync} constructor"},{"name":"x","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"Zoom value, if required"}],"throws":[{"code":400,"name":"GRAPH_EXPIRED_RELOAD","comment":"This graph has expired, please obtain a new graph token."},{"code":400,"name":"GRAPH_INVALID_RELOAD","comment":"Invalid graph token provided, please reload the stats and provide the updated token."},{"code":400,"name":"GRAPH_OUTDATED_RELOAD","comment":"The graph is outdated, please get a new async token using stats.getBroadcastStats."}],"available":"user"},{"kind":"method","name":"stats.getMegagroupStats","type":"stats.MegagroupStats","typeModifiers":{"constructorId":4018141462},"id":3705636359,"comment":"Get supergroup statistics","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to enable dark theme for graph colors"},{"name":"channel","type":"InputChannel","comment":"Supergroup ID"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"MEGAGROUP_REQUIRED","comment":"You can only use this method on a supergroup."}],"available":"user"},{"kind":"method","name":"stats.getMessagePublicForwards","type":"stats.PublicForwards","typeModifiers":{"constructorId":2466479648},"id":1595212100,"comment":"Obtains a list of messages, indicating to which other public channels was a channel message forwarded.
\nWill return a list of {@link RawMessage} with peer_id equal to the public channel to which this message was forwarded.","arguments":[{"name":"channel","type":"InputChannel","comment":"Source channel"},{"name":"msg_id","type":"int","comment":"Source message ID"},{"name":"offset","type":"string","comment":"Offset for pagination, empty string on first call, then use the next_offset field of the returned constructor (if present, otherwise no more results are available)."},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stats.getMessageStats","type":"stats.MessageStats","typeModifiers":{"constructorId":2145983508},"id":3068175349,"comment":"Get message statistics","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to enable dark theme for graph colors"},{"name":"channel","type":"InputChannel","comment":"Channel ID"},{"name":"msg_id","type":"int","comment":"Message ID"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stats.getStoryStats","type":"stats.StoryStats","typeModifiers":{"constructorId":1355613820},"id":927985472,"comment":"Get statistics for a certain story.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to enable the dark theme for graph colors"},{"name":"peer","type":"InputPeer","comment":"The peer that posted the story"},{"name":"id","type":"int","comment":"Story ID"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stats.getStoryPublicForwards","type":"stats.PublicForwards","typeModifiers":{"constructorId":2466479648},"id":2789441270,"comment":"Obtain forwards of a story as a message to public chats and reposts by public channels.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the story was originally posted"},{"name":"id","type":"int","comment":"Story ID"},{"name":"offset","type":"string","comment":"Offset for pagination, from {@link stats.RawPublicForwards}.next_offset."},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stats.getBroadcastRevenueStats","type":"stats.BroadcastRevenueStats","typeModifiers":{"constructorId":1409802903},"id":1977595505,"arguments":[{"name":"flags","type":"#"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"channel","type":"InputChannel"}]},{"kind":"method","name":"stats.getBroadcastRevenueWithdrawalUrl","type":"stats.BroadcastRevenueWithdrawalUrl","typeModifiers":{"constructorId":3966080823},"id":711323507,"arguments":[{"name":"channel","type":"InputChannel"},{"name":"password","type":"InputCheckPasswordSRP"}]},{"kind":"method","name":"stats.getBroadcastRevenueTransactions","type":"stats.BroadcastRevenueTransactions","typeModifiers":{"constructorId":2266334310},"id":6891535,"arguments":[{"name":"channel","type":"InputChannel"},{"name":"offset","type":"int"},{"name":"limit","type":"int"}]},{"kind":"method","name":"chatlists.exportChatlistInvite","type":"chatlists.ExportedChatlistInvite","typeModifiers":{"constructorId":283567014},"id":2222081934,"comment":"Export a folder ยป, creating a chat folder deep link ยป.","arguments":[{"name":"chatlist","type":"InputChatlist","comment":"The folder to export"},{"name":"title","type":"string","comment":"An optional name for the link"},{"name":"peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"The list of channels, group and supergroups to share with the link. Basic groups will automatically be converted to supergroups when invoking the method."}],"throws":[{"code":400,"name":"FILTER_ID_INVALID","comment":"The specified filter ID is invalid."},{"code":400,"name":"FILTER_NOT_SUPPORTED","comment":"The specified filter cannot be used in this context."},{"code":400,"name":"INVITES_TOO_MUCH","comment":"The maximum number of per-folder invites specified by the chatlist_invites_limit_default/chatlist_invites_limit_premium client configuration parameters ยป was reached."},{"code":400,"name":"PEERS_LIST_EMPTY","comment":"The specified list of peers is empty."}],"available":"user"},{"kind":"method","name":"chatlists.deleteExportedInvite","type":"Bool","id":1906072670,"comment":"Delete a previously created chat folder deep link ยป.","arguments":[{"name":"chatlist","type":"InputChatlist","comment":"The related folder"},{"name":"slug","type":"string","comment":"slug obtained from the chat folder deep link ยป."}],"throws":[{"code":400,"name":"FILTER_ID_INVALID","comment":"The specified filter ID is invalid."}],"available":"both"},{"kind":"method","name":"chatlists.editExportedInvite","type":"ExportedChatlistInvite","typeModifiers":{"constructorId":206668204},"id":1698543165,"comment":"Edit a chat folder deep link ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"chatlist","type":"InputChatlist","comment":"Folder ID"},{"name":"slug","type":"string","comment":"slug obtained from the chat folder deep link ยป."},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"If set, sets a new name for the link"},{"name":"peers","type":"InputPeer","typeModifiers":{"predicate":"flags.2","isVector":true},"comment":"If set, changes the list of peers shared with the link"}],"throws":[{"code":400,"name":"FILTER_ID_INVALID","comment":"The specified filter ID is invalid."}],"available":"both"},{"kind":"method","name":"chatlists.getExportedInvites","type":"chatlists.ExportedInvites","typeModifiers":{"constructorId":279670215},"id":3456359043,"comment":"List all chat folder deep links ยป associated to a folder","arguments":[{"name":"chatlist","type":"InputChatlist","comment":"The folder"}],"available":"both"},{"kind":"method","name":"chatlists.checkChatlistInvite","type":"chatlists.ChatlistInvite","id":1103171583,"comment":"Obtain information about a chat folder deep link ยป.","arguments":[{"name":"slug","type":"string","comment":"slug obtained from the chat folder deep link ยป"}],"throws":[{"code":400,"name":"INVITE_SLUG_EMPTY","comment":"The specified invite slug is empty."},{"code":400,"name":"INVITE_SLUG_EXPIRED","comment":"The specified chat folder link has expired."}],"available":"both"},{"kind":"method","name":"chatlists.joinChatlistInvite","type":"Updates","id":2796675994,"comment":"Import a chat folder deep link ยป, joining some or all the chats in the folder.","arguments":[{"name":"slug","type":"string","comment":"slug obtained from a chat folder deep link ยป."},{"name":"peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"List of new chats to join, fetched using {@link chatlists.RawCheckChatlistInviteRequest} and filtered as specified in the documentation ยป."}],"throws":[{"code":400,"name":"FILTER_INCLUDE_EMPTY","comment":"The include_peers vector of the filter is empty."},{"code":400,"name":"INVITE_SLUG_EMPTY","comment":"The specified invite slug is empty."},{"code":400,"name":"INVITE_SLUG_EXPIRED","comment":"The specified chat folder link has expired."}],"available":"both"},{"kind":"method","name":"chatlists.getChatlistUpdates","type":"chatlists.ChatlistUpdates","typeModifiers":{"constructorId":2478671757},"id":2302776609,"comment":"Fetch new chats associated with an imported chat folder deep link ยป. Must be invoked at most every chatlist_update_period seconds (as per the related client configuration parameter ยป).","arguments":[{"name":"chatlist","type":"InputChatlist","comment":"The folder"}],"throws":[{"code":400,"name":"FILTER_ID_INVALID","comment":"The specified filter ID is invalid."},{"code":400,"name":"INPUT_CHATLIST_INVALID","comment":"The specified folder is invalid."}],"available":"both"},{"kind":"method","name":"chatlists.joinChatlistUpdates","type":"Updates","id":3767138549,"comment":"Join channels and supergroups recently added to a chat folder deep link ยป.","arguments":[{"name":"chatlist","type":"InputChatlist","comment":"The folder"},{"name":"peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"List of new chats to join, fetched using {@link chatlists.RawGetChatlistUpdatesRequest} and filtered as specified in the documentation ยป."}],"available":"both"},{"kind":"method","name":"chatlists.hideChatlistUpdates","type":"Bool","id":1726252795,"comment":"Dismiss new pending peers recently added to a chat folder deep link ยป.","arguments":[{"name":"chatlist","type":"InputChatlist","comment":"The folder"}],"available":"both"},{"kind":"method","name":"chatlists.getLeaveChatlistSuggestions","type":"Peer","typeModifiers":{"isVector":true},"id":4257011476,"comment":"Returns identifiers of pinned or always included chats from a chat folder imported using a chat folder deep link ยป, which are suggested to be left when the chat folder is deleted.","arguments":[{"name":"chatlist","type":"InputChatlist","comment":"Folder ID"}],"available":"both"},{"kind":"method","name":"chatlists.leaveChatlist","type":"Updates","id":1962598714,"comment":"Delete a folder imported using a chat folder deep link ยป","arguments":[{"name":"chatlist","type":"InputChatlist","comment":"Folder ID"},{"name":"peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"Also leave the specified channels and groups"}],"available":"both"},{"kind":"method","name":"stories.canSendStory","type":"Bool","id":3353337821,"comment":"Check whether we can post stories as the specified peer.","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer from which we wish to post stories."}],"throws":[{"code":400,"name":"BOOSTS_REQUIRED","comment":"The specified channel must first be boosted by its users in order to perform this action."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PREMIUM_ACCOUNT_REQUIRED","comment":"A premium account is required to execute this action."},{"code":400,"name":"STORIES_TOO_MUCH","comment":"You have hit the maximum active stories limit as specified by the story_expiring_limit_* client configuration parameters: you should buy a Premium subscription, delete an active story, or wait for the oldest story to expire."},{"code":400,"name":"STORY_SEND_FLOOD_MONTHLY_%d","comment":"You've hit the monthly story limit as specified by the stories_sent_monthly_limit_* client configuration parameters: wait for the specified number of seconds before posting a new story."},{"code":400,"name":"STORY_SEND_FLOOD_WEEKLY_%d","comment":"You've hit the weekly story limit as specified by the stories_sent_weekly_limit_* client configuration parameters: wait for the specified number of seconds before posting a new story."}],"available":"user"},{"kind":"method","name":"stories.sendStory","type":"Updates","id":3840305483,"comment":"Uploads a Telegram Story.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to add the story to the profile automatically upon expiration. If not set, the story will only be added to the archive, see here ยป for more info."},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If set, disables forwards, screenshots, and downloads."},{"name":"fwd_modified","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Set this flag when reposting stories with fwd_from_id+fwd_from_id, if the media was modified before reposting."},{"name":"peer","type":"InputPeer","comment":"The peer to send the story as."},{"name":"media","type":"InputMedia","comment":"The story media."},{"name":"media_areas","type":"MediaArea","typeModifiers":{"predicate":"flags.5","isVector":true},"comment":"Media areas associated to the story, see here ยป for more info."},{"name":"caption","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Story caption."},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text, if allowed by the stories_entities client configuration parameter ยป."},{"name":"privacy_rules","type":"InputPrivacyRule","typeModifiers":{"isVector":true},"comment":"Privacy rules for the story, indicating who can or can't view the story."},{"name":"random_id","type":"long","comment":"Unique client message ID required to prevent message resending."},{"name":"period","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Period after which the story is moved to archive (and to the profile if pinned is set), in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise."},{"name":"fwd_from_id","type":"InputPeer","typeModifiers":{"predicate":"flags.6"},"comment":"If set, indicates that this story is a repost of story with ID fwd_from_story posted by the peer in fwd_from_id."},{"name":"fwd_from_story","type":"int","typeModifiers":{"predicate":"flags.6"},"comment":"If set, indicates that this story is a repost of story with ID fwd_from_story posted by the peer in fwd_from_id."}],"throws":[{"code":400,"name":"IMAGE_PROCESS_FAILED","comment":"Failure while processing image."},{"code":400,"name":"MEDIA_EMPTY","comment":"The provided media object is invalid."},{"code":400,"name":"MEDIA_FILE_INVALID","comment":"The specified media file is invalid."},{"code":400,"name":"MEDIA_TYPE_INVALID","comment":"The specified media type cannot be used in stories."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PREMIUM_ACCOUNT_REQUIRED","comment":"A premium account is required to execute this action."},{"code":400,"name":"STORIES_TOO_MUCH","comment":"You have hit the maximum active stories limit as specified by the story_expiring_limit_* client configuration parameters: you should buy a Premium subscription, delete an active story, or wait for the oldest story to expire."},{"code":400,"name":"STORY_PERIOD_INVALID","comment":"The specified story period is invalid for this account."},{"code":400,"name":"VENUE_ID_INVALID","comment":"The specified venue ID is invalid."}],"available":"user"},{"kind":"method","name":"stories.editStory","type":"Updates","id":3045308998,"comment":"Edit an uploaded story","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer where the story was posted."},{"name":"id","type":"int","comment":"ID of story to edit."},{"name":"media","type":"InputMedia","typeModifiers":{"predicate":"flags.0"},"comment":"If specified, replaces the story media."},{"name":"media_areas","type":"MediaArea","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Media areas associated to the story, see here ยป for more info."},{"name":"caption","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"If specified, replaces the story caption."},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text in the caption, if allowed by the stories_entities client configuration parameter ยป."},{"name":"privacy_rules","type":"InputPrivacyRule","typeModifiers":{"predicate":"flags.2","isVector":true},"comment":"If specified, alters the privacy settings ยป of the story, changing who can or can't view the story."}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"STORY_NOT_MODIFIED","comment":"The new story information you passed is equal to the previous story information, thus it wasn't modified."}],"available":"user"},{"kind":"method","name":"stories.deleteStories","type":"int","typeModifiers":{"isVector":true},"id":2925124447,"comment":"Deletes some posted stories.","arguments":[{"name":"peer","type":"InputPeer","comment":"Channel/user from where to delete stories."},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of stories to delete."}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stories.togglePinned","type":"int","typeModifiers":{"isVector":true},"id":2591400431,"comment":"Pin or unpin one or more stories","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where to pin or unpin stories"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of stories to pin or unpin"},{"name":"pinned","type":"Bool","comment":"Whether to pin or unpin the stories"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stories.getAllStories","type":"stories.AllStories","id":4004566565,"comment":"Fetch the List of active (or active and hidden) stories, see here ยป for more info on watching stories.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"next","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If next and state are both set, uses the passed state to paginate to the next results; if neither state nor next are set, fetches the initial page; if state is set and next is not set, check for changes in the active/hidden peerset, see here ยป for more info on the full flow."},{"name":"hidden","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, fetches the hidden active story list, otherwise fetches the active story list, see here ยป for more info on the full flow."},{"name":"state","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"If next and state are both set, uses the passed state to paginate to the next results; if neither state nor next are set, fetches the initial page; if state is set and next is not set, check for changes in the active/hidden peerset, see here ยป for more info on the full flow."}],"available":"user"},{"kind":"method","name":"stories.getPinnedStories","type":"stories.Stories","typeModifiers":{"constructorId":1673780490},"id":1478600156,"comment":"Fetch the stories pinned on a peer's profile.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer whose pinned stories should be fetched"},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"user"},{"kind":"method","name":"stories.getStoriesArchive","type":"stories.Stories","typeModifiers":{"constructorId":1673780490},"id":3023380502,"comment":"Fetch the story archive ยป of a peer we control.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer whose archived stories should be fetched"},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stories.getStoriesByID","type":"stories.Stories","typeModifiers":{"constructorId":1673780490},"id":1467271796,"comment":"Obtain full info about a set of stories by their IDs.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the stories were posted"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"Story IDs"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"STORIES_NEVER_CREATED","comment":"This peer hasn't ever posted any stories."},{"code":400,"name":"STORY_ID_EMPTY","comment":"You specified no story IDs."}],"available":"user"},{"kind":"method","name":"stories.toggleAllStoriesHidden","type":"Bool","id":2082822084,"comment":"Hide the active stories of a specific peer, preventing them from being displayed on the action bar on the homescreen.","arguments":[{"name":"hidden","type":"Bool","comment":"Whether to hide or unhide all active stories of the peer"}],"available":"user"},{"kind":"method","name":"stories.readStories","type":"int","typeModifiers":{"isVector":true},"id":2773932744,"comment":"Mark all stories up to a certain ID as read, for a given peer; will emit an {@link RawUpdateReadStories} update to all logged-in sessions.","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer whose stories should be marked as read."},{"name":"max_id","type":"int","comment":"Mark all stories up to and including this ID as read"}],"throws":[{"code":400,"name":"MAX_ID_INVALID","comment":"The provided max ID is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"STORIES_NEVER_CREATED","comment":"This peer hasn't ever posted any stories."}],"available":"user"},{"kind":"method","name":"stories.incrementStoryViews","type":"Bool","id":2986511099,"comment":"Increment the view counter of one or more stories.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the stories were posted."},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of the stories (maximum 200 at a time)."}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"STORY_ID_EMPTY","comment":"You specified no story IDs."}],"available":"user"},{"kind":"method","name":"stories.getStoryViewsList","type":"stories.StoryViewsList","typeModifiers":{"constructorId":1507299269},"id":2127707223,"comment":"Obtain the list of users that have viewed a specific story we posted","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"just_contacts","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to only fetch view reaction/views made by our contacts"},{"name":"reactions_first","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to return {@link RawStoryView} info about users that reacted to the story (i.e. if set, the server will first sort results by view date as usual, and then also additionally sort the list by putting {@link RawStoryView}s with an associated reaction first in the list). Ignored if forwards_first is set."},{"name":"forwards_first","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date."},{"name":"peer","type":"InputPeer","comment":"Peer where the story was posted"},{"name":"q","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Search for specific peers"},{"name":"id","type":"int","comment":"Story ID"},{"name":"offset","type":"string","comment":"Offset for pagination, obtained from {@link stories.RawStoryViewsList}.next_offset"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"STORY_ID_INVALID","comment":"The specified story ID is invalid."}],"available":"user"},{"kind":"method","name":"stories.getStoriesViews","type":"stories.StoryViews","typeModifiers":{"constructorId":3734957341},"id":685862088,"comment":"Obtain info about the view count, forward count, reactions and recent viewers of one or more stories.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer whose stories should be fetched"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"Story IDs"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"STORY_ID_EMPTY","comment":"You specified no story IDs."}],"available":"user"},{"kind":"method","name":"stories.exportStoryLink","type":"ExportedStoryLink","typeModifiers":{"constructorId":1070138683},"id":2072899360,"comment":"Generate a story deep link for a specific story","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the story was posted"},{"name":"id","type":"int","comment":"Story ID"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"STORY_ID_EMPTY","comment":"You specified no story IDs."},{"code":400,"name":"USER_PUBLIC_MISSING","comment":"Cannot generate a link to stories posted by a peer without a username."}],"available":"user"},{"kind":"method","name":"stories.report","type":"Bool","id":421788300,"comment":"Report a story.","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer that uploaded the story."},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of the stories to report."},{"name":"reason","type":"ReportReason","comment":"Why are these storeis being reported."},{"name":"message","type":"string","comment":"Comment for report moderation"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stories.activateStealthMode","type":"Updates","id":1471926630,"comment":"Activates stories stealth mode, see here ยป for more info.\n\nWill return an {@link RawUpdateStoriesStealthMode}.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"past","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to erase views from any stories opened in the past stories_stealth_past_period seconds ยป, as specified by the client configuration."},{"name":"future","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to hide future story views for the next stories_stealth_future_period seconds ยป, as specified by the client configuration."}],"available":"user"},{"kind":"method","name":"stories.sendReaction","type":"Updates","id":2144810674,"comment":"React to a story.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"add_to_recent","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to add this reaction to the recent reactions list ยป."},{"name":"peer","type":"InputPeer","comment":"The peer that sent the story"},{"name":"story_id","type":"int","comment":"ID of the story to react to"},{"name":"reaction","type":"Reaction","comment":"Reaction"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"REACTION_INVALID","comment":"The specified reaction is invalid."},{"code":400,"name":"STORY_ID_EMPTY","comment":"You specified no story IDs."}],"available":"user"},{"kind":"method","name":"stories.getPeerStories","type":"stories.PeerStories","typeModifiers":{"constructorId":3404105576},"id":743103056,"comment":"Fetch the full active story list of a specific peer.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer whose stories should be fetched"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stories.getAllReadPeerStories","type":"Updates","id":2606426105,"comment":"Obtain the latest read story ID for all peers when first logging in, returned as a list of {@link RawUpdateReadStories} updates, see here ยป for more info.","arguments":[],"available":"user"},{"kind":"method","name":"stories.getPeerMaxIDs","type":"int","typeModifiers":{"isVector":true},"id":1398375363,"comment":"Get the IDs of the maximum read stories for a set of peers.","arguments":[{"name":"id","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"Peers"}],"available":"user"},{"kind":"method","name":"stories.getChatsToSend","type":"messages.Chats","id":2775223136,"comment":"Obtain a list of channels where the user can post stories","arguments":[],"available":"user"},{"kind":"method","name":"stories.togglePeerStoriesHidden","type":"Bool","id":3171161540,"comment":"Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see here ยป for more info.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer whose stories should be (un)hidden."},{"name":"hidden","type":"Bool","comment":"Whether to hide or unhide stories."}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stories.getStoryReactionsList","type":"stories.StoryReactionsList","typeModifiers":{"constructorId":2858383516},"id":3115485215,"comment":"Get the reaction and interaction list of a story posted to a channel, along with the sender of each reaction.\n\nCan only be used by channel admins.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"forwards_first","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date."},{"name":"peer","type":"InputPeer","comment":"Channel"},{"name":"id","type":"int","comment":"Story ID"},{"name":"reaction","type":"Reaction","typeModifiers":{"predicate":"flags.0"},"comment":"Get only reactions of this type"},{"name":"offset","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Offset for pagination (taken from the next_offset field of the returned stories.StoryReactionsList); empty in the first request."},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stories.togglePinnedToTop","type":"Bool","id":187268763,"arguments":[{"name":"peer","type":"InputPeer"},{"name":"id","type":"int","typeModifiers":{"isVector":true}}]},{"kind":"method","name":"premium.getBoostsList","type":"premium.BoostsList","typeModifiers":{"constructorId":2264424764},"id":1626764896,"comment":"Obtains info about the boosts that were applied to a certain channel (admins only)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"gifts","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to return only info about boosts received from gift codes and giveaways created by the channel ยป"},{"name":"peer","type":"InputPeer","comment":"The channel"},{"name":"offset","type":"string","comment":"Offset for pagination, obtained from {@link premium.RawBoostsList}.next_offset"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"premium.getMyBoosts","type":"premium.MyBoosts","typeModifiers":{"constructorId":2598512866},"id":199719754,"comment":"Obtain which peers are we currently boosting, and how many boost slots we have left.","arguments":[],"available":"user"},{"kind":"method","name":"premium.applyBoost","type":"premium.MyBoosts","typeModifiers":{"constructorId":2598512866},"id":1803396934,"comment":"Apply one or more boosts ยป to a peer.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"slots","type":"int","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Which boost slots to assign to this peer."},{"name":"peer","type":"InputPeer","comment":"The peer to boost."}],"throws":[{"code":400,"name":"BOOSTS_EMPTY","comment":"No boost slots were specified."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"SLOTS_EMPTY","comment":"The specified slot list is empty."}],"available":"user"},{"kind":"method","name":"premium.getBoostsStatus","type":"premium.BoostsStatus","typeModifiers":{"constructorId":1230586490},"id":70197089,"comment":"Gets the current number of boosts of a channel.","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer."}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"premium.getUserBoosts","type":"premium.BoostsList","typeModifiers":{"constructorId":2264424764},"id":965037343,"comment":"Returns the lists of boost that were applied to a channel by a specific user (admins only)","arguments":[{"name":"peer","type":"InputPeer","comment":"The channel"},{"name":"user_id","type":"InputUser","comment":"The user"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"both"},{"kind":"method","name":"smsjobs.isEligibleToJoin","type":"smsjobs.EligibilityToJoin","typeModifiers":{"constructorId":3700114639},"id":249313744,"arguments":[]},{"kind":"method","name":"smsjobs.join","type":"Bool","id":2806959661,"arguments":[]},{"kind":"method","name":"smsjobs.leave","type":"Bool","id":2560142707,"arguments":[]},{"kind":"method","name":"smsjobs.updateSettings","type":"Bool","id":155164863,"arguments":[{"name":"flags","type":"#"},{"name":"allow_international","type":"true","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"smsjobs.getStatus","type":"smsjobs.Status","typeModifiers":{"constructorId":720277905},"id":279353576,"arguments":[]},{"kind":"method","name":"smsjobs.getSmsJob","type":"SmsJob","typeModifiers":{"constructorId":3869372088},"id":2005766191,"arguments":[{"name":"job_id","type":"string"}]},{"kind":"method","name":"smsjobs.finishJob","type":"Bool","id":1327415076,"arguments":[{"name":"flags","type":"#"},{"name":"job_id","type":"string"},{"name":"error","type":"string","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"fragment.getCollectibleInfo","type":"fragment.CollectibleInfo","typeModifiers":{"constructorId":1857945489},"id":3189671354,"arguments":[{"name":"collectible","type":"InputCollectible"}]}],"u":{"Error":"An object containing a query error.","InputFileLocation":"Defines the location of a file for download.","InputPeer":"Peer","InputUser":"Defines a user for subsequent interaction.","InputContact":"Object defines a contact from the user's phone book.","InputFile":"Defines a file uploaded by the client.","InputMedia":"Defines media content of a message.","InputChatPhoto":"Defines a new group profile photo.","InputGeoPoint":"Defines a GeoPoint.","InputPhoto":"Defines a photo for further interaction.","Peer":"Chat partner or group.","storage.FileType":"Object describes the file type.","User":"Object defines a user.","UserProfilePhoto":"Object contains info on the user's profile photo.","UserStatus":"User online status","Chat":"Object defines a group.","ChatFull":"Full info about a channel, supergroup, gigagroup or basic group.","ChatParticipant":"Details of a group member.","ChatParticipants":"Object contains info on group members.","ChatPhoto":"Object defines a group profile photo.","Message":"Object describing a message.","MessageMedia":"Media","MessageAction":"Object describing actions connected to a service message.","Dialog":"Chat info.","Photo":"Object describes a photo.","PhotoSize":"Location of a certain size of a picture","GeoPoint":"Object defines a GeoPoint.","auth.SentCode":"Contains info on a confirmation code message sent via SMS, phone call or Telegram.","auth.Authorization":"Object contains info on user authorization.","auth.ExportedAuthorization":"Exported authorization","InputNotifyPeer":"Object defines the set of users and/or groups that generate notifications.","InputPeerNotifySettings":"Notifications settings.","PeerNotifySettings":"Notification settings.","PeerSettings":"List of actions that are possible when interacting with this user, to be shown as suggested actions in the chat bar","WallPaper":"Object contains info on a wallpaper.","ReportReason":"Report reason","UserFull":"Object contains extended user info.","Contact":"A contact of the current user.","ImportedContact":"Object contains info on a successfully imported contact.","ContactStatus":"Contact status: online / offline.","contacts.Contacts":"Info on the current user's contact list.","contacts.ImportedContacts":"Object contains info on successfully imported contacts.","contacts.Blocked":"Info on users from the current user's black list.","messages.Dialogs":"Object contains a list of chats with messages and auxiliary data.","messages.Messages":"Object contains information on list of messages with auxiliary data.","messages.Chats":"Object contains list of chats with auxiliary data.","messages.ChatFull":"Full info about a channel, supergroup, gigagroup or basic group.","messages.AffectedHistory":"Object contains info on affected part of communication history with the user or in a chat.","MessagesFilter":"Object describes message filter.","Update":"Object contains info on events occurred.","updates.State":"Object contains info on state for further updates.","updates.Difference":"Occurred changes.","Updates":"Object which is perceived by the client without a call on its part when an event occurs.","photos.Photos":"Object contains list of photos with auxiliary data.","photos.Photo":"Photo with auxiliary data.","upload.File":"Contains info on file.","DcOption":"Information for connection to data center.","Config":"Object contains info on API configuring parameters.","NearestDc":"Object contains info on nearest data center.","help.AppUpdate":"Contains info on app update availability.","help.InviteText":"Object contains info on the text of a message with an invitation.","EncryptedChat":"Object contains info on an encrypted chat.","InputEncryptedChat":"Object sets an encrypted chat ID.","EncryptedFile":"Seta an encrypted file.","InputEncryptedFile":"Object sets encrypted file for attachment","EncryptedMessage":"Object contains encrypted message.","messages.DhConfig":"Contains Diffie-Hellman key generation protocol parameters.","messages.SentEncryptedMessage":"Contains info on message sent to an encrypted chat.","InputDocument":"Defines a document for subsequent interaction.","Document":"A document.","help.Support":"Info about the support user, relevant to the current user.","NotifyPeer":"Object defines the set of users and/or groups that generate notifications.","SendMessageAction":"User actions. Use this to provide users with detailed info about their chat partner's actions: typing or sending attachments of all kinds.","contacts.Found":"Object contains info on users found by name substring and auxiliary data.","InputPrivacyKey":"Privacy keys together with privacy rules ยป indicate what can or can't someone do and are specified by a PrivacyKey constructor, and its input counterpart InputPrivacyKey.\n\nSee the privacy documentation ยป for more info.","PrivacyKey":"Privacy keys together with privacy rules ยป indicate what can or can't someone do and are specified by a PrivacyKey constructor, and its input counterpart InputPrivacyKey.\n\nSee the privacy documentation ยป for more info.","InputPrivacyRule":"Privacy rules indicate who can or can't do something and are specified by a PrivacyRule, and its input counterpart InputPrivacyRule.\n\nSee the privacy documentation ยป for more info.","PrivacyRule":"Privacy rules together with privacy keys indicate what can or can't someone do and are specified by a PrivacyRule constructor, and its input counterpart InputPrivacyRule.\n\nSee the privacy documentation ยป for more info.","account.PrivacyRules":"Privacy rules","AccountDaysTTL":"Time-to-live of current account","DocumentAttribute":"Various possible attributes of a document (used to define if it's a sticker, a GIF, a video, a mask sticker, an image, an audio, and so on)","messages.Stickers":"Stickers","StickerPack":"Stickerpack","messages.AllStickers":"All stickers","messages.AffectedMessages":"Messages affected by changes","WebPage":"Instant View webpage preview","Authorization":"Represents a logged-in session","account.Authorizations":"Logged-in sessions","account.Password":"Configuration for two-factor authorization","account.PasswordSettings":"Private info associated to the password info (recovery email, telegram passport info & so on)","account.PasswordInputSettings":"Constructor for setting up a new 2FA SRP password","auth.PasswordRecovery":"Recovery info of a 2FA password, only for accounts with a recovery email configured.","ReceivedNotifyMessage":"Confirmation of message receipt","ExportedChatInvite":"Exported chat invite","ChatInvite":"Chat invite","InputStickerSet":"Represents a stickerset","StickerSet":"Represents a stickerset (stickerpack)","messages.StickerSet":"Stickerset","BotCommand":"Describes a bot command that can be used in a chat","BotInfo":"Info about bots (available bot commands, etc)","KeyboardButton":"Bot or inline keyboard buttons","KeyboardButtonRow":"Bot or inline keyboard rows","ReplyMarkup":"Reply markup for bot and inline keyboards","MessageEntity":"Message entities, representing styled text in a message","InputChannel":"Represents a channel","contacts.ResolvedPeer":"Peer returned after resolving a @username","MessageRange":"Indicates a range of chat messages","updates.ChannelDifference":"Contains the difference (new messages) between our local channel state and the remote state","ChannelMessagesFilter":"Filter for fetching only certain types of channel messages","ChannelParticipant":"Channel participant","ChannelParticipantsFilter":"Filter for fetching channel participants","channels.ChannelParticipants":"Channel/supergroup participants","channels.ChannelParticipant":"Channel participant","help.TermsOfService":"Contains info about the latest telegram Terms Of Service.","messages.SavedGifs":"Saved GIFs","InputBotInlineMessage":"Represents a sent inline message from the perspective of a bot","InputBotInlineResult":"Inline bot result","BotInlineMessage":"Inline message","BotInlineResult":"Results of an inline query","messages.BotResults":"Result of a query to an inline bot","ExportedMessageLink":"HTTP link and embed info of channel message","MessageFwdHeader":"Info about a forwarded message","auth.CodeType":"Type of verification code that will be sent next if you call the resendCode method","auth.SentCodeType":"Type of the verification code that was sent","messages.BotCallbackAnswer":"Callback answer of bot","messages.MessageEditData":"Message edit data for media","InputBotInlineMessageID":"Represents a sent inline message from the perspective of a bot","InlineBotSwitchPM":"The bot requested the user to message them in private","messages.PeerDialogs":"List of dialogs","TopPeer":"Top peer","TopPeerCategory":"Top peer category","TopPeerCategoryPeers":"Top peers by top peer category","contacts.TopPeers":"Top peers","DraftMessage":"Represents a message draft.","messages.FeaturedStickers":"Featured stickers","messages.RecentStickers":"Recent stickers","messages.ArchivedStickers":"Archived stickers","messages.StickerSetInstallResult":"Result of stickerset installation process","StickerSetCovered":"Stickerset preview","MaskCoords":"Mask coordinates (if this is a mask sticker, attached to a photo)","InputStickeredMedia":"Represents a media with attached stickers","Game":"Indicates an already sent game","InputGame":"A game to send","HighScore":"Game high score","messages.HighScores":"High scores (in games)","RichText":"Rich text","PageBlock":"Represents an instant view page element","PhoneCallDiscardReason":"Why was the phone call discarded?","DataJSON":"Represent a JSON-encoded object","LabeledPrice":"Labeled pricetag","Invoice":"Invoice","PaymentCharge":"Charged payment","PostAddress":"Shipping address","PaymentRequestedInfo":"Requested payment info","PaymentSavedCredentials":"Saved payment credentials","WebDocument":"Remote document","InputWebDocument":"Specifies a document that will have to be downloaded from the URL by the telegram servers","InputWebFileLocation":"Location of remote file","upload.WebFile":"Remote file","payments.PaymentForm":"Payment form","payments.ValidatedRequestedInfo":"Validated requested info","payments.PaymentResult":"Payment result","payments.PaymentReceipt":"Payment receipt","payments.SavedInfo":"Saved payment info","InputPaymentCredentials":"Payment credentials","account.TmpPassword":"Temporary password","ShippingOption":"Shipping options","InputStickerSetItem":"Sticker","InputPhoneCall":"Phone call","PhoneCall":"Phone call","PhoneConnection":"Phone call connection","PhoneCallProtocol":"Phone call protocol","phone.PhoneCall":"Phone call","upload.CdnFile":"Represents the download status of a CDN file","CdnPublicKey":"Public key to use only during handshakes to CDN DCs.","CdnConfig":"Configuration for CDN file downloads.","LangPackString":"Language pack string","LangPackDifference":"Language pack changes","LangPackLanguage":"Language pack language","ChannelAdminLogEventAction":"Channel admin log event","ChannelAdminLogEvent":"An event in a channel admin log","channels.AdminLogResults":"Admin log events","ChannelAdminLogEventsFilter":"Filter for fetching events in the channel admin log","PopularContact":"Popular contact","messages.FavedStickers":"Favorited stickers","RecentMeUrl":"Recent t.me urls","help.RecentMeUrls":"Recent t.me URLs","InputSingleMedia":"A single media in an album or grouped media sent with {@link messages.RawSendMultiMediaRequest}.","WebAuthorization":"Web authorization","account.WebAuthorizations":"Web authorizations","InputMessage":"A message","InputDialogPeer":"Peer, or all peers in a certain folder","DialogPeer":"Peer, or all peers in a folder","messages.FoundStickerSets":"Found stickersets","FileHash":"Hash of an uploaded file, to be checked for validity after download","InputClientProxy":"Info about an MTProxy used to connect.","help.TermsOfServiceUpdate":"Update of Telegram's terms of service","InputSecureFile":"Secure passport file, for more info see the passport docs ยป","SecureFile":"Secure passport file, for more info see the passport docs ยป","SecureData":"Secure passport data, for more info see the passport docs ยป","SecurePlainData":"Plaintext verified passport data.","SecureValueType":"Secure value type","SecureValue":"Secure Telegram Passport value","InputSecureValue":"Secure value, for more info see the passport docs ยป","SecureValueHash":"Secure value hash","SecureValueError":"Secure value error","SecureCredentialsEncrypted":"Encrypted secure credentials","account.AuthorizationForm":"Authorization form","account.SentEmailCode":"The email code that was sent","help.DeepLinkInfo":"Contains information about an unsupported deep link ยป","SavedContact":"Saved contact","account.Takeout":"Takeout info","PasswordKdfAlgo":"Key derivation function to use when generating the password hash for SRP two-factor authorization","SecurePasswordKdfAlgo":"KDF algorithm to use for computing telegram passport hash","SecureSecretSettings":"Telegram passport settings","InputCheckPasswordSRP":"Constructors for checking the validity of a 2FA SRP password","SecureRequiredType":"Required secure file type","help.PassportConfig":"Telegram passport configuration","InputAppEvent":"Object contains info about an event that occurred in the application.","JSONObjectValue":"JSON key: value pair","JSONValue":"JSON value","PageTableCell":"Represents a table in an instant view table","PageTableRow":"Table row","PageCaption":"Page caption","PageListItem":"Item in block list","PageListOrderedItem":"Represents an instant view ordered list","PageRelatedArticle":"Related articles","Page":"Instant view page","help.SupportName":"Get localized name for support user","help.UserInfo":"User info","PollAnswer":"Indicates a possible answer to a poll.","Poll":"Indicates a poll message","PollAnswerVoters":"How users voted on a certain poll answer","PollResults":"Results of poll","ChatOnlines":"Number of online users in a chat","StatsURL":"URL with chat statistics","ChatAdminRights":"Represents the rights of an admin in a channel/supergroup.","ChatBannedRights":"Represents the rights of a normal user in a supergroup/channel/chat.","InputWallPaper":"Wallpaper","account.WallPapers":"Wallpapers","CodeSettings":"Settings for the code type to send","WallPaperSettings":"Wallpaper rendering information.","AutoDownloadSettings":"Media autodownload settings","account.AutoDownloadSettings":"Media autodownload settings","EmojiKeyword":"Emoji keyword","EmojiKeywordsDifference":"New emoji keywords","EmojiURL":"Emoji URL","EmojiLanguage":"Emoji language","Folder":"A folder","InputFolderPeer":"Peer in a folder","FolderPeer":"Peer associated to folder","messages.SearchCounter":"Number of results that would be returned by a search","UrlAuthResult":"URL authorization result","ChannelLocation":"Geographical location of supergroup (geogroups)","PeerLocated":"Geolocated peer","RestrictionReason":"Restriction reason","InputTheme":"Cloud theme","Theme":"Cloud theme","account.Themes":"Installed themes","auth.LoginToken":"Login token (for QR code login)","account.ContentSettings":"Sensitive content settings","messages.InactiveChats":"Inactive chat list","BaseTheme":"Basic theme settings","InputThemeSettings":"Theme settings","ThemeSettings":"Theme settings","WebPageAttribute":"Webpage attributes","messages.VotesList":"How users voted in a poll","BankCardOpenUrl":"Credit card info URL provided by the bank","payments.BankCardData":"Credit card info, provided by the card's bank(s)","DialogFilter":"Dialog filter (folder ยป)","DialogFilterSuggested":"Suggested dialog filters (folder ยป)","StatsDateRangeDays":"Channel statistics date range","StatsAbsValueAndPrev":"Channel statistics value pair","StatsPercentValue":"Channel statistics percentage","StatsGraph":"Channel statistics graph","stats.BroadcastStats":"Channel statistics","help.PromoData":"Info about pinned MTProxy or Public Service Announcement peers.","VideoSize":"Represents an animated video thumbnail","StatsGroupTopPoster":"Most active user in a supergroup","StatsGroupTopAdmin":"Most active admin in a supergroup","StatsGroupTopInviter":"Most active inviter in a supergroup","stats.MegagroupStats":"Supergroup statistics","GlobalPrivacySettings":"Global privacy settings","help.CountryCode":"Country code and phone number pattern of a specific country","help.Country":"Name, ISO code, localized name and phone codes/patterns of a specific country","help.CountriesList":"Name, ISO code, localized name and phone codes/patterns of all available countries","MessageViews":"View, forward counter + info about replies of a specific message","messages.MessageViews":"View, forward counter + info about replies","messages.DiscussionMessage":"Info about a message thread","MessageReplyHeader":"Reply information","MessageReplies":"Info about post comments (for channels) or message replies (for groups)","PeerBlocked":"Info about a blocked user","stats.MessageStats":"Message statistics","GroupCall":"A group call","InputGroupCall":"Indicates a group call","GroupCallParticipant":"Info about a group call participant","phone.GroupCall":"Contains info about a group call, and partial info about its participants.","phone.GroupParticipants":"Info about the participants of a group call or livestream","InlineQueryPeerType":"Inline query peer type.","messages.HistoryImport":"Identifier of a history import session, click here for more info ยป.","messages.HistoryImportParsed":"Contains information about a chat export file, generated by a foreign chat app.","messages.AffectedFoundMessages":"Messages found and affected by changes","ChatInviteImporter":"When and which user joined the chat using a chat invite","messages.ExportedChatInvites":"Info about chat invites exported by a certain admin.","messages.ExportedChatInvite":"Contains info about a chat invite, and eventually a pointer to the newest chat invite.","messages.ChatInviteImporters":"List of users that imported a chat invitation link.","ChatAdminWithInvites":"Info about chat invites generated by admins.","messages.ChatAdminsWithInvites":"Info about chat invites generated by admins.","messages.CheckedHistoryImportPeer":"Contains a confirmation text to be shown to the user, upon importing chat history, click here for more info ยป.","phone.JoinAsPeers":"A list of peers that can be used to join a group call, presenting yourself as a specific user/channel.","phone.ExportedGroupCallInvite":"An exported group call invitation.","GroupCallParticipantVideoSourceGroup":"Describes a group of video synchronization source identifiers","GroupCallParticipantVideo":"Info about a video stream","stickers.SuggestedShortName":"A suggested short name for the specified stickerpack","BotCommandScope":"Represents a scope where the bot commands, specified using {@link bots.RawSetBotCommandsRequest} will be valid.","account.ResetPasswordResult":"Result of an {@link account.RawResetPasswordRequest} request.","SponsoredMessage":"A sponsored message","messages.SponsoredMessages":"A set of sponsored messages associated with a channel","SearchResultsCalendarPeriod":"Information about found messages sent on a specific day, used to split the messages in {@link messages.RawSearchResultsCalendar} constructors by days.","messages.SearchResultsCalendar":"Information about found messages sent on a specific day","SearchResultsPosition":"Information about a message in a specific position","messages.SearchResultsPositions":"Information about sparse positions of messages","channels.SendAsPeers":"A list of peers that can be used to send messages in a specific group","users.UserFull":"Full user information, with attached context peers for reactions","messages.PeerSettings":"Peer settings","auth.LoggedOut":"Future auth token ยป to be used on subsequent authorizations","ReactionCount":"Number of users that reacted with a certain emoji","MessageReactions":"Message reactions ยป","messages.MessageReactionsList":"List of peers that reacted to a specific message","AvailableReaction":"Animations associated with a message reaction","messages.AvailableReactions":"Animations and metadata associated with message reactions ยป","MessagePeerReaction":"How a certain peer reacted to the message","GroupCallStreamChannel":"Info about an RTMP stream in a group call or livestream","phone.GroupCallStreamChannels":"Info about RTMP streams in a group call or livestream","phone.GroupCallStreamRtmpUrl":"RTMP URL and stream key to be used in streaming software","AttachMenuBotIconColor":"Represents an attachment menu icon color for bot mini apps ยป","AttachMenuBotIcon":"Represents an attachment menu icon for bot mini apps ยป","AttachMenuBot":"Represents a bot mini app that can be launched from the attachment menu ยป","AttachMenuBots":"Represents a list of bot mini apps that can be launched from the attachment menu ยป","AttachMenuBotsBot":"Represents a bot mini app that can be launched from the attachment menu ยป","WebViewResult":"Contains the webview URL with appropriate theme and user info parameters added","SimpleWebViewResult":"Contains the webview URL with appropriate theme parameters added","WebViewMessageSent":"Contains information about an inline message sent by a Web App on behalf of a user.","BotMenuButton":"Indicates the action to execute when pressing the in-UI menu button for bots","account.SavedRingtones":"Contains a list of saved notification sounds","NotificationSound":"Represents a notification sound","account.SavedRingtone":"Contains information about a saved notification sound","AttachMenuPeerType":"Indicates a supported peer type for a bot mini app attachment menu","InputInvoice":"An invoice","payments.ExportedInvoice":"Exported invoice","messages.TranscribedAudio":"Transcribed text from a voice message","help.PremiumPromo":"Telegram Premium promotion information","InputStorePaymentPurpose":"Info about a Telegram Premium purchase","PremiumGiftOption":"Telegram Premium gift option","PaymentFormMethod":"Represents a payment method","EmojiStatus":"Emoji status","account.EmojiStatuses":"A list of emoji statuses","Reaction":"Message reaction","ChatReactions":"Available chat reactions","messages.Reactions":"A set of message reactions","EmailVerifyPurpose":"Email verification purpose","EmailVerification":"Email verification code or token","account.EmailVerified":"Email verification status","PremiumSubscriptionOption":"Telegram Premium subscription option","SendAsPeer":"Indicates a peer that can be used to send messages","MessageExtendedMedia":"Extended media","StickerKeyword":"Keywords for a certain sticker","Username":"Contains information about a username","ForumTopic":"Contains information about a forum topic","messages.ForumTopics":"Contains information about multiple forum topics","DefaultHistoryTTL":"Contains info about the default value of the Time-To-Live setting, applied to all new chats.","ExportedContactToken":"Describes a temporary profile link.","RequestPeerType":"Filtering criteria to use for the peer selection list shown to the user.","EmojiList":"Represents a list of custom emojis.","EmojiGroup":"Represents an emoji category.","messages.EmojiGroups":"Represents a list of emoji categories.","TextWithEntities":"Styled text with message entities","messages.TranslatedText":"Translated text with entities.","AutoSaveSettings":"Media autosave settings","AutoSaveException":"Peer-specific autosave settings","account.AutoSaveSettings":"Contains media autosave settings","help.AppConfig":"Contains various client configuration parameters","InputBotApp":"Used to fetch information about a named Mini App","BotApp":"Contains information about a named Mini App.","messages.BotApp":"Contains information about a named Mini App","AppWebViewResult":"Contains the link that must be used to open a named Mini App.","InlineBotWebView":"Specifies an inline mode mini app button, shown on top of the inline query results list.","ReadParticipantDate":"Contains info about when a certain participant has read a message","InputChatlist":"Represents a folder","ExportedChatlistInvite":"An exported chat folder deep link ยป.","chatlists.ExportedChatlistInvite":"Exported chat folder deep link ยป.","chatlists.ExportedInvites":"A list of exported chat folder deep links ยป.","chatlists.ChatlistInvite":"Info about a chat folder deep link ยป.","chatlists.ChatlistUpdates":"Updated info about a chat folder deep link ยป.","bots.BotInfo":"Localized name, about text and description of a bot.","MessagePeerVote":"How a user voted in a poll","StoryViews":"Aggregated view and reaction information of a story","StoryItem":"Represents a Telegram Story","stories.AllStories":"Full list of active (or active and hidden) stories.","stories.Stories":"List of stories","StoryView":"Story view date and reaction information","stories.StoryViewsList":"Reaction and view counters for a story","stories.StoryViews":"Reaction and view counters for a list of stories","InputReplyTo":"Contains info about a message or story to reply to.","ExportedStoryLink":"Represents a story deep link","StoriesStealthMode":"Story stealth mode status","MediaAreaCoordinates":"Coordinates and size of a clicable rectangular area on top of a story.","MediaArea":"Represents a story media area ยป","PeerStories":"Stories associated to a peer","stories.PeerStories":"Active story list of a specific peer.","messages.WebPage":"Contains an instant view webpage.","PremiumGiftCodeOption":"Giveaway option.","payments.CheckedGiftCode":"Info about a Telegram Premium Giftcode.","payments.GiveawayInfo":"Info about a Telegram Premium Giveaway.","PrepaidGiveaway":"Contains info about a prepaid giveaway ยป.","Boost":"Info about one or more boosts applied by a specific user.","premium.BoostsList":"List of boosts that were applied to a peer by multiple users.","MyBoost":"Contains information about a single boost slot ยป.","premium.MyBoosts":"A list of peers we are currently boosting, and how many boost slots we have left.","premium.BoostsStatus":"Contains info about the current boost status of a peer.","StoryFwdHeader":"Contains info about the original poster of a reposted story.","PostInteractionCounters":"Interaction counters","stats.StoryStats":"Contains statistics about a story.","PublicForward":"Contains info about the forwards of a story as a message to public chats and reposts by public channels.","stats.PublicForwards":"Contains info about the forwards of a story as a message to public chats and reposts by public channels.","PeerColor":"Represents a color palette ยป.","help.PeerColorSet":"Contains info about a color palette ยป.","help.PeerColorOption":"Contains info about a color palette ยป.","help.PeerColors":"Contains info about multiple color palettes ยป.","StoryReaction":"How a certain peer reacted to or interacted with a story","stories.StoryReactionsList":"List of peers that reacted to a specific story","SavedDialog":"Represents a saved message dialog ยป.","messages.SavedDialogs":"Represents some saved message dialogs ยป.","SponsoredWebPage":"Represents a sponsored website."}} \ No newline at end of file +{"l":182,"e":[{"kind":"class","name":"error","type":"Error","id":3300522427,"comment":"Error.","arguments":[{"name":"code","type":"int","comment":"Error code"},{"name":"text","type":"string","comment":"Message"}]},{"kind":"class","name":"ipPort","id":3560156531,"type":"IpPort","arguments":[{"name":"ipv4","type":"int"},{"name":"port","type":"int"}]},{"kind":"class","name":"ipPortSecret","id":932718150,"type":"IpPort","arguments":[{"name":"ipv4","type":"int"},{"name":"port","type":"int"},{"name":"secret","type":"bytes"}]},{"kind":"class","name":"accessPointRule","id":1182381663,"type":"AccessPointRule","arguments":[{"name":"phone_prefix_rules","type":"string"},{"name":"dc_id","type":"int"},{"name":"ips","type":"IpPort","typeModifiers":{"isBareVector":true}}]},{"kind":"class","name":"help.configSimple","id":1515793004,"type":"help.ConfigSimple","arguments":[{"name":"date","type":"int"},{"name":"expires","type":"int"},{"name":"rules","type":"AccessPointRule","typeModifiers":{"isBareVector":true}}]},{"kind":"class","name":"inputPeerPhotoFileLocationLegacy","id":668375447,"type":"InputFileLocation","arguments":[{"name":"flags","type":"#"},{"name":"big","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"peer","type":"InputPeer"},{"name":"volume_id","type":"long"},{"name":"local_id","type":"int"}]},{"kind":"class","name":"inputStickerSetThumbLegacy","id":230353641,"type":"InputFileLocation","arguments":[{"name":"stickerset","type":"InputStickerSet"},{"name":"volume_id","type":"long"},{"name":"local_id","type":"int"}]},{"kind":"class","name":"inputPeerEmpty","type":"InputPeer","id":2134579434,"comment":"An empty constructor, no user or chat is defined.","arguments":[]},{"kind":"class","name":"inputPeerSelf","type":"InputPeer","id":2107670217,"comment":"Defines the current user.","arguments":[]},{"kind":"class","name":"inputPeerChat","type":"InputPeer","id":900291769,"comment":"Defines a chat for further interaction.","arguments":[{"name":"chat_id","type":"int53","comment":"Chat identifier"}]},{"kind":"class","name":"inputPeerUser","type":"InputPeer","id":3723011404,"comment":"Defines a user for further interaction.","arguments":[{"name":"user_id","type":"int53","comment":"User identifier"},{"name":"access_hash","type":"long","comment":"access_hash value from the {@link RawUser} constructor"}]},{"kind":"class","name":"inputPeerChannel","type":"InputPeer","id":666680316,"comment":"Defines a channel for further interaction.","arguments":[{"name":"channel_id","type":"int53","comment":"Channel identifier"},{"name":"access_hash","type":"long","comment":"access_hash value from the {@link RawChannel} constructor"}]},{"kind":"class","name":"inputPeerUserFromMessage","type":"InputPeer","id":2826635804,"comment":"Defines a min user that was seen in a certain message of a certain chat.","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat where the user was seen"},{"name":"msg_id","type":"int","comment":"The message ID"},{"name":"user_id","type":"int53","comment":"The identifier of the user that was seen"}]},{"kind":"class","name":"inputPeerChannelFromMessage","type":"InputPeer","id":3173648448,"comment":"Defines a min channel that was seen in a certain message of a certain chat.","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat where the channel's message was seen"},{"name":"msg_id","type":"int","comment":"The message ID"},{"name":"channel_id","type":"int53","comment":"The identifier of the channel that was seen"}]},{"kind":"class","name":"inputUserEmpty","type":"InputUser","id":3112732367,"comment":"Empty constructor, does not define a user.","arguments":[]},{"kind":"class","name":"inputUserSelf","type":"InputUser","id":4156666175,"comment":"Defines the current user.","arguments":[]},{"kind":"class","name":"inputUser","type":"InputUser","id":4061223110,"comment":"Defines a user for further interaction.","arguments":[{"name":"user_id","type":"int53","comment":"User identifier"},{"name":"access_hash","type":"long","comment":"access_hash value from the {@link RawUser} constructor"}]},{"kind":"class","name":"inputUserFromMessage","type":"InputUser","id":497305826,"comment":"Defines a min user that was seen in a certain message of a certain chat.","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat where the user was seen"},{"name":"msg_id","type":"int","comment":"The message ID"},{"name":"user_id","type":"int53","comment":"The identifier of the user that was seen"}]},{"kind":"class","name":"inputPhoneContact","type":"InputContact","id":4086478836,"comment":"Phone contact.","arguments":[{"name":"client_id","type":"long","comment":"An arbitrary 64-bit integer: it should be set, for example, to an incremental number when using {@link contacts.RawImportContactsRequest}, in order to retry importing only the contacts that weren't imported successfully, according to the client_ids returned in {@link contacts.RawImportedContacts}.retry_contacts."},{"name":"phone","type":"string","comment":"Phone number"},{"name":"first_name","type":"string","comment":"Contact's first name"},{"name":"last_name","type":"string","comment":"Contact's last name"}]},{"kind":"class","name":"inputFile","type":"InputFile","id":4113560191,"comment":"Defines a file saved in parts using the method {@link upload.RawSaveFilePartRequest}.","arguments":[{"name":"id","type":"long","comment":"Random file identifier created by the client"},{"name":"parts","type":"int","comment":"Number of parts saved"},{"name":"name","type":"string","comment":"Full name of the file"},{"name":"md5_checksum","type":"string","comment":"In case the file's md5-hash was passed, contents of the file will be checked prior to use"}]},{"kind":"class","name":"inputFileBig","type":"InputFile","id":4199484341,"comment":"Assigns a big file (over 10 MB in size), saved in part using the method {@link upload.RawSaveBigFilePartRequest}.","arguments":[{"name":"id","type":"long","comment":"Random file id, created by the client"},{"name":"parts","type":"int","comment":"Number of parts saved"},{"name":"name","type":"string","comment":"Full file name"}]},{"kind":"class","name":"inputMediaEmpty","type":"InputMedia","id":2523198847,"comment":"Empty media content of a message.","arguments":[]},{"kind":"class","name":"inputMediaUploadedPhoto","type":"InputMedia","id":505969924,"comment":"Photo","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"spoiler","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this media should be hidden behind a spoiler warning"},{"name":"file","type":"InputFile","comment":"The uploaded file"},{"name":"stickers","type":"InputDocument","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Attached mask stickers"},{"name":"ttl_seconds","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Time to live in seconds of self-destructing photo"}]},{"kind":"class","name":"inputMediaPhoto","type":"InputMedia","id":3015312949,"comment":"Forwarded photo","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"spoiler","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this media should be hidden behind a spoiler warning"},{"name":"id","type":"InputPhoto","comment":"Photo to be forwarded"},{"name":"ttl_seconds","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Time to live in seconds of self-destructing photo"}]},{"kind":"class","name":"inputMediaGeoPoint","type":"InputMedia","id":4190388548,"comment":"Map.","arguments":[{"name":"geo_point","type":"InputGeoPoint","comment":"GeoPoint"}]},{"kind":"class","name":"inputMediaContact","type":"InputMedia","id":4171988475,"comment":"Phone book contact","arguments":[{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"first_name","type":"string","comment":"Contact's first name"},{"name":"last_name","type":"string","comment":"Contact's last name"},{"name":"vcard","type":"string","comment":"Contact vcard"}]},{"kind":"class","name":"inputMediaUploadedDocument","type":"InputMedia","id":1530447553,"comment":"New document","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"nosound_video","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the specified document is a video file with no audio tracks (a GIF animation (even as MPEG4), for example)"},{"name":"force_file","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Force the media file to be uploaded as document"},{"name":"spoiler","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether this media should be hidden behind a spoiler warning"},{"name":"file","type":"InputFile","comment":"The uploaded file"},{"name":"thumb","type":"InputFile","typeModifiers":{"predicate":"flags.2"},"comment":"Thumbnail of the document, uploaded as for the file"},{"name":"mime_type","type":"string","comment":"MIME type of document"},{"name":"attributes","type":"DocumentAttribute","typeModifiers":{"isVector":true},"comment":"Attributes that specify the type of the document (video, audio, voice, sticker, etc.)"},{"name":"stickers","type":"InputDocument","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Attached stickers"},{"name":"ttl_seconds","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Time to live in seconds of self-destructing document"}]},{"kind":"class","name":"inputMediaDocument","type":"InputMedia","id":860303448,"comment":"Forwarded document","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"spoiler","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this media should be hidden behind a spoiler warning"},{"name":"id","type":"InputDocument","comment":"The document to be forwarded."},{"name":"ttl_seconds","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Time to live of self-destructing document"},{"name":"query","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Text query or emoji that was used by the user to find this sticker or GIF: used to improve search result relevance."}]},{"kind":"class","name":"inputMediaVenue","type":"InputMedia","id":3242007569,"comment":"Can be used to send a venue geolocation.","arguments":[{"name":"geo_point","type":"InputGeoPoint","comment":"Geolocation"},{"name":"title","type":"string","comment":"Venue name"},{"name":"address","type":"string","comment":"Physical address of the venue"},{"name":"provider","type":"string","comment":"Venue provider: currently only \"foursquare\" and \"gplaces\" (Google Places) need to be supported"},{"name":"venue_id","type":"string","comment":"Venue ID in the provider's database"},{"name":"venue_type","type":"string","comment":"Venue type in the provider's database"}]},{"kind":"class","name":"inputMediaPhotoExternal","type":"InputMedia","id":3854302746,"comment":"New photo that will be uploaded by the server using the specified URL","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"spoiler","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this media should be hidden behind a spoiler warning"},{"name":"url","type":"string","comment":"URL of the photo"},{"name":"ttl_seconds","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Self-destruct time to live of photo"}]},{"kind":"class","name":"inputMediaDocumentExternal","type":"InputMedia","id":4216511641,"comment":"Document that will be downloaded by the telegram servers","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"spoiler","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this media should be hidden behind a spoiler warning"},{"name":"url","type":"string","comment":"URL of the document"},{"name":"ttl_seconds","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Self-destruct time to live of document"}]},{"kind":"class","name":"inputMediaGame","type":"InputMedia","id":3544138739,"comment":"A game","arguments":[{"name":"id","type":"InputGame","comment":"The game to forward"}]},{"kind":"class","name":"inputMediaInvoice","id":1080028941,"type":"InputMedia","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"title","type":"string","comment":"Product name, 1-32 characters"},{"name":"description","type":"string","comment":"Product description, 1-255 characters"},{"name":"photo","type":"InputWebDocument","typeModifiers":{"predicate":"flags.0"},"comment":"URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for."},{"name":"invoice","type":"Invoice","comment":"The actual invoice"},{"name":"payload","type":"bytes","comment":"Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes."},{"name":"provider","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Payments provider token, obtained via Botfather"},{"name":"provider_data","type":"DataJSON","comment":"JSON-encoded data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider."},{"name":"start_param","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Unique bot deep links start parameter. If present, forwarded copies of the sent message will have a URL button with a deep link to the bot (instead of a Pay button), with the value used as the start parameter. If absent, forwarded copies of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice."},{"name":"extended_media","type":"InputMedia","typeModifiers":{"predicate":"flags.2"},"comment":"Extended media"}],"comment":"Generated invoice of a bot payment"},{"kind":"class","name":"inputMediaGeoLive","type":"InputMedia","id":2535434307,"comment":"Live geolocation","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"stopped","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether sending of the geolocation was stopped"},{"name":"geo_point","type":"InputGeoPoint","comment":"Current geolocation"},{"name":"heading","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"For live locations, a direction in which the location moves, in degrees; 1-360."},{"name":"period","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Validity period of the current location"},{"name":"proximity_notification_radius","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)"}]},{"kind":"class","name":"inputMediaPoll","type":"InputMedia","id":261416433,"comment":"A poll","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"poll","type":"Poll","comment":"The poll to send"},{"name":"correct_answers","type":"bytes","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Correct answer IDs (for quiz polls)"},{"name":"solution","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Explanation of quiz solution"},{"name":"solution_entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"}]},{"kind":"class","name":"inputMediaDice","type":"InputMedia","id":3866083195,"comment":"Send a dice-based animated sticker","arguments":[{"name":"emoticon","type":"string","comment":"The emoji, for now \"๐Ÿ€\", \"๐ŸŽฒ\" and \"๐ŸŽฏ\" are supported"}]},{"kind":"class","name":"inputMediaStory","type":"InputMedia","id":2315114360,"comment":"Forwarded story","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the story was posted"},{"name":"id","type":"int","comment":"Story ID"}]},{"kind":"class","name":"inputMediaWebPage","type":"InputMedia","id":3256584265,"comment":"Specifies options that will be used to generate the link preview for the caption, or even a standalone link preview without an attached message.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"force_large_media","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, specifies that a large media preview should be used."},{"name":"force_small_media","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, specifies that a small media preview should be used."},{"name":"optional","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If not set, a WEBPAGE_NOT_FOUND RPC error will be emitted if a webpage preview cannot be generated for the specified url; otherwise, no error will be emitted (unless the provided message is also empty, in which case a MESSAGE_EMPTY will be emitted, instead)."},{"name":"url","type":"string","comment":"The URL to use for the link preview."}]},{"kind":"class","name":"inputChatPhotoEmpty","type":"InputChatPhoto","id":480546647,"comment":"Empty constructor, remove group photo.","arguments":[]},{"kind":"class","name":"inputChatUploadedPhoto","type":"InputChatPhoto","id":3184373440,"comment":"New photo to be set as group profile photo.\n\nThe file, video and video_emoji_markup flags are mutually exclusive.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"file","type":"InputFile","typeModifiers":{"predicate":"flags.0"},"comment":"File saved in parts using the method {@link upload.RawSaveFilePartRequest}"},{"name":"video","type":"InputFile","typeModifiers":{"predicate":"flags.1"},"comment":"Square video for animated profile picture"},{"name":"video_start_ts","type":"double","typeModifiers":{"predicate":"flags.2"},"comment":"Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if video or video_emoji_markup is set."},{"name":"video_emoji_markup","type":"VideoSize","typeModifiers":{"predicate":"flags.3"},"comment":"Animated sticker profile picture, must contain either a {@link RawVideoSizeEmojiMarkup} or a {@link RawVideoSizeStickerMarkup} constructor."}]},{"kind":"class","name":"inputChatPhoto","type":"InputChatPhoto","id":2303962423,"comment":"Existing photo to be set as a chat profile photo.","arguments":[{"name":"id","type":"InputPhoto","comment":"Existing photo"}]},{"kind":"class","name":"inputGeoPointEmpty","type":"InputGeoPoint","id":3837862870,"comment":"Empty GeoPoint constructor.","arguments":[]},{"kind":"class","name":"inputGeoPoint","type":"InputGeoPoint","id":1210199983,"comment":"Defines a GeoPoint by its coordinates.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"lat","type":"double","comment":"Latitude"},{"name":"long","type":"double","comment":"Longitude"},{"name":"accuracy_radius","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"The estimated horizontal accuracy of the location, in meters; as defined by the sender."}]},{"kind":"class","name":"inputPhotoEmpty","type":"InputPhoto","id":483901197,"comment":"Empty constructor.","arguments":[]},{"kind":"class","name":"inputPhoto","type":"InputPhoto","id":1001634122,"comment":"Defines a photo for further interaction.","arguments":[{"name":"id","type":"long","comment":"Photo identifier"},{"name":"access_hash","type":"long","comment":"access_hash value from the {@link RawPhoto} constructor"},{"name":"file_reference","type":"bytes","comment":"File reference"}]},{"kind":"class","name":"inputFileLocation","type":"InputFileLocation","id":3755650017,"comment":"DEPRECATED location of a photo","arguments":[{"name":"volume_id","type":"long","comment":"Server volume"},{"name":"local_id","type":"int","comment":"File identifier"},{"name":"secret","type":"long","comment":"Check sum to access the file"},{"name":"file_reference","type":"bytes","comment":"File reference"}]},{"kind":"class","name":"inputEncryptedFileLocation","type":"InputFileLocation","id":4112735573,"comment":"Location of encrypted secret chat file.","arguments":[{"name":"id","type":"long","comment":"File ID, id parameter value from {@link RawEncryptedFile}"},{"name":"access_hash","type":"long","comment":"Checksum, access_hash parameter value from {@link RawEncryptedFile}"}]},{"kind":"class","name":"inputDocumentFileLocation","type":"InputFileLocation","id":3134223748,"comment":"Document location (video, voice, audio, basically every type except photo)","arguments":[{"name":"id","type":"long","comment":"Document ID"},{"name":"access_hash","type":"long","comment":"access_hash parameter from the {@link RawDocument} constructor"},{"name":"file_reference","type":"bytes","comment":"File reference"},{"name":"thumb_size","type":"string","comment":"Thumbnail size to download the thumbnail"}]},{"kind":"class","name":"inputSecureFileLocation","type":"InputFileLocation","id":3418877480,"comment":"Location of encrypted telegram passport file.","arguments":[{"name":"id","type":"long","comment":"File ID, id parameter value from {@link RawSecureFile}"},{"name":"access_hash","type":"long","comment":"Checksum, access_hash parameter value from {@link RawSecureFile}"}]},{"kind":"class","name":"inputTakeoutFileLocation","type":"InputFileLocation","id":700340377,"comment":"Used to download a JSON file that will contain all personal data related to features that do not have a specialized takeout method yet, see here ยป for more info on the takeout API.","arguments":[]},{"kind":"class","name":"inputPhotoFileLocation","type":"InputFileLocation","id":1075322878,"comment":"Use this object to download a photo with {@link upload.RawGetFileRequest} method","arguments":[{"name":"id","type":"long","comment":"Photo ID, obtained from the {@link RawPhoto} object"},{"name":"access_hash","type":"long","comment":"Photo's access hash, obtained from the {@link RawPhoto} object"},{"name":"file_reference","type":"bytes","comment":"File reference"},{"name":"thumb_size","type":"string","comment":"The PhotoSize to download: must be set to the type field of the desired PhotoSize object of the {@link RawPhoto}"}]},{"kind":"class","name":"inputPhotoLegacyFileLocation","type":"InputFileLocation","id":3627312883,"comment":"DEPRECATED legacy photo file location","arguments":[{"name":"id","type":"long","comment":"Photo ID"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"file_reference","type":"bytes","comment":"File reference"},{"name":"volume_id","type":"long","comment":"Volume ID"},{"name":"local_id","type":"int","comment":"Local ID"},{"name":"secret","type":"long","comment":"Secret"}]},{"kind":"class","name":"inputPeerPhotoFileLocation","type":"InputFileLocation","id":925204121,"comment":"Location of profile photo of channel/group/supergroup/user","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"big","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to download the high-quality version of the picture"},{"name":"peer","type":"InputPeer","comment":"The peer whose profile picture should be downloaded"},{"name":"photo_id","type":"long","comment":"Photo ID"}]},{"kind":"class","name":"inputStickerSetThumb","type":"InputFileLocation","id":2642736091,"comment":"Location of stickerset thumbnail (see files)","arguments":[{"name":"stickerset","type":"InputStickerSet","comment":"Sticker set"},{"name":"thumb_version","type":"int","comment":"Thumbnail version"}]},{"kind":"class","name":"inputGroupCallStream","type":"InputFileLocation","id":93890858,"comment":"Chunk of a livestream","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"call","type":"InputGroupCall","comment":"Livestream info"},{"name":"time_ms","type":"long","comment":"Timestamp in milliseconds"},{"name":"scale","type":"int","comment":"Specifies the duration of the video segment to fetch in milliseconds, by bitshifting 1000 to the right scale times: duration_ms := 1000 >> scale"},{"name":"video_channel","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Selected video channel"},{"name":"video_quality","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Selected video quality (0 = lowest, 1 = medium, 2 = best)"}]},{"kind":"class","name":"peerUser","type":"Peer","id":1498486562,"comment":"Chat partner","arguments":[{"name":"user_id","type":"int53","comment":"User identifier"}]},{"kind":"class","name":"peerChat","type":"Peer","id":918946202,"comment":"Group.","arguments":[{"name":"chat_id","type":"int53","comment":"Group identifier"}]},{"kind":"class","name":"peerChannel","type":"Peer","id":2728736542,"comment":"Channel/supergroup","arguments":[{"name":"channel_id","type":"int53","comment":"Channel ID"}]},{"kind":"class","name":"storage.fileUnknown","type":"storage.FileType","id":2861972229,"comment":"Unknown type.","arguments":[]},{"kind":"class","name":"storage.filePartial","type":"storage.FileType","id":1086091090,"comment":"Part of a bigger file.","arguments":[]},{"kind":"class","name":"storage.fileJpeg","type":"storage.FileType","id":8322574,"comment":"JPEG image. MIME type: image/jpeg.","arguments":[]},{"kind":"class","name":"storage.fileGif","type":"storage.FileType","id":3403786975,"comment":"GIF image. MIME type: image/gif.","arguments":[]},{"kind":"class","name":"storage.filePng","type":"storage.FileType","id":172975040,"comment":"PNG image. MIME type: image/png.","arguments":[]},{"kind":"class","name":"storage.filePdf","type":"storage.FileType","id":2921222285,"comment":"PDF document image. MIME type: application/pdf.","arguments":[]},{"kind":"class","name":"storage.fileMp3","type":"storage.FileType","id":1384777335,"comment":"Mp3 audio. MIME type: audio/mpeg.","arguments":[]},{"kind":"class","name":"storage.fileMov","type":"storage.FileType","id":1258941372,"comment":"Quicktime video. MIME type: video/quicktime.","arguments":[]},{"kind":"class","name":"storage.fileMp4","type":"storage.FileType","id":3016663268,"comment":"MPEG-4 video. MIME type: video/mp4.","arguments":[]},{"kind":"class","name":"storage.fileWebp","type":"storage.FileType","id":276907596,"comment":"WEBP image. MIME type: image/webp.","arguments":[]},{"kind":"class","name":"userEmpty","type":"User","id":3552332666,"comment":"Empty constructor, non-existent user.","arguments":[{"name":"id","type":"int53","comment":"User identifier or 0"}]},{"kind":"class","name":"user","type":"User","id":559694904,"comment":"Indicates info about a certain user","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"self","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"Whether this user indicates the currently logged in user"},{"name":"contact","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"Whether this user is a contact"},{"name":"mutual_contact","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"Whether this user is a mutual contact"},{"name":"deleted","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"Whether the account of this user was deleted"},{"name":"bot","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Is this user a bot?"},{"name":"bot_chat_history","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"Can the bot see all messages in groups?"},{"name":"bot_nochats","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"Can the bot be added to groups?"},{"name":"verified","type":"true","typeModifiers":{"predicate":"flags.17"},"comment":"Whether this user is verified"},{"name":"restricted","type":"true","typeModifiers":{"predicate":"flags.18"},"comment":"Access to this user must be restricted for the reason specified in restriction_reason"},{"name":"min","type":"true","typeModifiers":{"predicate":"flags.20"},"comment":"See min"},{"name":"bot_inline_geo","type":"true","typeModifiers":{"predicate":"flags.21"},"comment":"Whether the bot can request our geolocation in inline mode"},{"name":"support","type":"true","typeModifiers":{"predicate":"flags.23"},"comment":"Whether this is an official support user"},{"name":"scam","type":"true","typeModifiers":{"predicate":"flags.24"},"comment":"This may be a scam user"},{"name":"apply_min_photo","type":"true","typeModifiers":{"predicate":"flags.25"},"comment":"If set, the profile picture for this user should be refetched"},{"name":"fake","type":"true","typeModifiers":{"predicate":"flags.26"},"comment":"If set, this user was reported by many users as a fake or scam user: be careful when interacting with them."},{"name":"bot_attach_menu","type":"true","typeModifiers":{"predicate":"flags.27"},"comment":"Whether this bot offers an attachment menu web app"},{"name":"premium","type":"true","typeModifiers":{"predicate":"flags.28"},"comment":"Whether this user is a Telegram Premium user"},{"name":"attach_menu_enabled","type":"true","typeModifiers":{"predicate":"flags.29"},"comment":"Whether we installed the attachment menu web app offered by this bot"},{"name":"flags2","type":"#","comment":"Flags, see TL conditional fields"},{"name":"bot_can_edit","type":"true","typeModifiers":{"predicate":"flags2.1"},"comment":"Whether we can edit the profile picture, name, about text and description of this bot because we own it."},{"name":"close_friend","type":"true","typeModifiers":{"predicate":"flags2.2"},"comment":"Whether we marked this user as a close friend, see here ยป for more info"},{"name":"stories_hidden","type":"true","typeModifiers":{"predicate":"flags2.3"},"comment":"Whether we have hidden ยป all active stories of this user."},{"name":"stories_unavailable","type":"true","typeModifiers":{"predicate":"flags2.4"},"comment":"No stories from this user are visible."},{"name":"contact_require_premium","type":"true","typeModifiers":{"predicate":"flags2.10"}},{"name":"bot_business","type":"true","typeModifiers":{"predicate":"flags2.11"}},{"name":"id","type":"int53","comment":"ID of the user"},{"name":"access_hash","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"Access hash of the user"},{"name":"first_name","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"First name"},{"name":"last_name","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Last name"},{"name":"username","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Username"},{"name":"phone","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"Phone number"},{"name":"photo","type":"UserProfilePhoto","typeModifiers":{"predicate":"flags.5"},"comment":"Profile picture of user"},{"name":"status","type":"UserStatus","typeModifiers":{"predicate":"flags.6"},"comment":"Online status of user"},{"name":"bot_info_version","type":"int","typeModifiers":{"predicate":"flags.14"},"comment":"Version of the {@link RawUserFull}, incremented every time it changes"},{"name":"restriction_reason","type":"RestrictionReason","typeModifiers":{"predicate":"flags.18","isVector":true},"comment":"Contains the reason why access to this user must be restricted."},{"name":"bot_inline_placeholder","type":"string","typeModifiers":{"predicate":"flags.19"},"comment":"Inline placeholder for this inline bot"},{"name":"lang_code","type":"string","typeModifiers":{"predicate":"flags.22"},"comment":"Language code of the user"},{"name":"emoji_status","type":"EmojiStatus","typeModifiers":{"predicate":"flags.30"},"comment":"Emoji status"},{"name":"usernames","type":"Username","typeModifiers":{"predicate":"flags2.0","isVector":true},"comment":"Additional usernames"},{"name":"stories_max_id","type":"int","typeModifiers":{"predicate":"flags2.5"},"comment":"ID of the maximum read story."},{"name":"color","type":"PeerColor","typeModifiers":{"predicate":"flags2.8"},"comment":"The user's accent color."},{"name":"profile_color","type":"PeerColor","typeModifiers":{"predicate":"flags2.9"},"comment":"The user's profile color."}]},{"kind":"class","name":"userProfilePhotoEmpty","type":"UserProfilePhoto","id":1326562017,"comment":"Profile photo has not been set, or was hidden.","arguments":[]},{"kind":"class","name":"userProfilePhoto","type":"UserProfilePhoto","id":2194798342,"comment":"User profile photo.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_video","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether an animated profile picture is available for this user"},{"name":"personal","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this profile photo is only visible to us (i.e. it was set using {@link photos.RawUploadContactProfilePhotoRequest})."},{"name":"photo_id","type":"long","comment":"Identifier of the respective photo"},{"name":"stripped_thumb","type":"bytes","typeModifiers":{"predicate":"flags.1"},"comment":"Stripped thumbnail"},{"name":"dc_id","type":"int","comment":"DC ID where the photo is stored"}]},{"kind":"class","name":"userStatusEmpty","type":"UserStatus","id":164646985,"comment":"User status has not been set yet.","arguments":[]},{"kind":"class","name":"userStatusOnline","type":"UserStatus","id":3988339017,"comment":"Online status of the user.","arguments":[{"name":"expires","type":"int","comment":"Time to expiration of the current online status"}]},{"kind":"class","name":"userStatusOffline","type":"UserStatus","id":9203775,"comment":"The user's offline status.","arguments":[{"name":"was_online","type":"int","comment":"Time the user was last seen online"}]},{"kind":"class","name":"userStatusRecently","id":2065268168,"type":"UserStatus","arguments":[{"name":"flags","type":"#"},{"name":"by_me","type":"true","typeModifiers":{"predicate":"flags.0"}}],"comment":"Online status: last seen recently"},{"kind":"class","name":"userStatusLastWeek","id":1410997530,"type":"UserStatus","arguments":[{"name":"flags","type":"#"},{"name":"by_me","type":"true","typeModifiers":{"predicate":"flags.0"}}],"comment":"Online status: last seen last week"},{"kind":"class","name":"userStatusLastMonth","id":1703516023,"type":"UserStatus","arguments":[{"name":"flags","type":"#"},{"name":"by_me","type":"true","typeModifiers":{"predicate":"flags.0"}}],"comment":"Online status: last seen last month"},{"kind":"class","name":"chatEmpty","type":"Chat","id":693512293,"comment":"Empty constructor, group doesn't exist","arguments":[{"name":"id","type":"int53","comment":"Group identifier"}]},{"kind":"class","name":"chat","type":"Chat","id":1103884886,"comment":"Info about a group","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"creator","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the current user is the creator of the group"},{"name":"left","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the current user has left the group"},{"name":"deactivated","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether the group was migrated"},{"name":"call_active","type":"true","typeModifiers":{"predicate":"flags.23"},"comment":"Whether a group call is currently active"},{"name":"call_not_empty","type":"true","typeModifiers":{"predicate":"flags.24"},"comment":"Whether there's anyone in the group call"},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.25"},"comment":"Whether this group is protected, thus does not allow forwarding messages from it"},{"name":"id","type":"int53","comment":"ID of the group"},{"name":"title","type":"string","comment":"Title"},{"name":"photo","type":"ChatPhoto","comment":"Chat photo"},{"name":"participants_count","type":"int","comment":"Participant count"},{"name":"date","type":"int","comment":"Date of creation of the group"},{"name":"version","type":"int","comment":"Used in basic groups to reorder updates and make sure that all of them were received."},{"name":"migrated_to","type":"InputChannel","typeModifiers":{"predicate":"flags.6"},"comment":"Means this chat was upgraded to a supergroup"},{"name":"admin_rights","type":"ChatAdminRights","typeModifiers":{"predicate":"flags.14"},"comment":"Admin rights of the user in the group"},{"name":"default_banned_rights","type":"ChatBannedRights","typeModifiers":{"predicate":"flags.18"},"comment":"Default banned rights of all users in the group"}]},{"kind":"class","name":"chatForbidden","type":"Chat","id":1704108455,"comment":"A group to which the user has no access. E.g., because the user was kicked from the group.","arguments":[{"name":"id","type":"int53","comment":"User identifier"},{"name":"title","type":"string","comment":"Group name"}]},{"kind":"class","name":"channel","type":"Chat","id":179174543,"comment":"Channel/supergroup info","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"creator","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the current user is the creator of this channel"},{"name":"left","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the current user has left or is not a member of this channel"},{"name":"broadcast","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Is this a channel?"},{"name":"verified","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Is this channel verified by telegram?"},{"name":"megagroup","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"Is this a supergroup?"},{"name":"restricted","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"Whether viewing/writing in this channel for a reason (see restriction_reason"},{"name":"signatures","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"Whether signatures are enabled (channels)"},{"name":"min","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"See min"},{"name":"scam","type":"true","typeModifiers":{"predicate":"flags.19"},"comment":"This channel/supergroup is probably a scam"},{"name":"has_link","type":"true","typeModifiers":{"predicate":"flags.20"},"comment":"Whether this channel has a private join link"},{"name":"has_geo","type":"true","typeModifiers":{"predicate":"flags.21"},"comment":"Whether this channel has a geo position"},{"name":"slowmode_enabled","type":"true","typeModifiers":{"predicate":"flags.22"},"comment":"Whether slow mode is enabled for groups to prevent flood in chat"},{"name":"call_active","type":"true","typeModifiers":{"predicate":"flags.23"},"comment":"Whether a group call or livestream is currently active"},{"name":"call_not_empty","type":"true","typeModifiers":{"predicate":"flags.24"},"comment":"Whether there's anyone in the group call or livestream"},{"name":"fake","type":"true","typeModifiers":{"predicate":"flags.25"},"comment":"If set, this supergroup/channel was reported by many users as a fake or scam: be careful when interacting with it."},{"name":"gigagroup","type":"true","typeModifiers":{"predicate":"flags.26"},"comment":"Whether this supergroup is a gigagroup"},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.27"},"comment":"Whether this channel or group is protected, thus does not allow forwarding messages from it"},{"name":"join_to_send","type":"true","typeModifiers":{"predicate":"flags.28"},"comment":"Whether a user needs to join the supergroup before they can send messages: can be false only for discussion groups ยป, toggle using {@link channels.RawToggleJoinToSendRequest}"},{"name":"join_request","type":"true","typeModifiers":{"predicate":"flags.29"},"comment":"Whether a user's join request will have to be approved by administrators, toggle using {@link channels.RawToggleJoinRequestRequest}"},{"name":"forum","type":"true","typeModifiers":{"predicate":"flags.30"},"comment":"Whether this supergroup is a forum"},{"name":"flags2","type":"#","comment":"Flags, see TL conditional fields"},{"name":"stories_hidden","type":"true","typeModifiers":{"predicate":"flags2.1"},"comment":"Whether we have hidden all stories posted by this channel ยป."},{"name":"stories_hidden_min","type":"true","typeModifiers":{"predicate":"flags2.2"},"comment":"If set, indicates that the stories_hidden flag was not populated, and its value must cannot be relied on; use the previously cached value, or re-fetch the constructor using {@link channels.RawGetChannelsRequest} to obtain the latest value of the stories_hidden flag."},{"name":"stories_unavailable","type":"true","typeModifiers":{"predicate":"flags2.3"},"comment":"No stories from the channel are visible."},{"name":"id","type":"int53","comment":"ID of the channel"},{"name":"access_hash","type":"long","typeModifiers":{"predicate":"flags.13"},"comment":"Access hash"},{"name":"title","type":"string","comment":"Title"},{"name":"username","type":"string","typeModifiers":{"predicate":"flags.6"},"comment":"Username"},{"name":"photo","type":"ChatPhoto","comment":"Profile photo"},{"name":"date","type":"int","comment":"Date when the user joined the supergroup/channel, or if the user isn't a member, its creation date"},{"name":"restriction_reason","type":"RestrictionReason","typeModifiers":{"predicate":"flags.9","isVector":true},"comment":"Contains the reason why access to this channel must be restricted."},{"name":"admin_rights","type":"ChatAdminRights","typeModifiers":{"predicate":"flags.14"},"comment":"Admin rights of the user in this channel (see rights)"},{"name":"banned_rights","type":"ChatBannedRights","typeModifiers":{"predicate":"flags.15"},"comment":"Banned rights of the user in this channel (see rights)"},{"name":"default_banned_rights","type":"ChatBannedRights","typeModifiers":{"predicate":"flags.18"},"comment":"Default chat rights (see rights)"},{"name":"participants_count","type":"int","typeModifiers":{"predicate":"flags.17"},"comment":"Participant count"},{"name":"usernames","type":"Username","typeModifiers":{"predicate":"flags2.0","isVector":true},"comment":"Additional usernames"},{"name":"stories_max_id","type":"int","typeModifiers":{"predicate":"flags2.4"},"comment":"ID of the maximum read story."},{"name":"color","type":"PeerColor","typeModifiers":{"predicate":"flags2.7"},"comment":"The channel's accent color."},{"name":"profile_color","type":"PeerColor","typeModifiers":{"predicate":"flags2.8"},"comment":"The channel's profile color."},{"name":"emoji_status","type":"EmojiStatus","typeModifiers":{"predicate":"flags2.9"},"comment":"Emoji status"},{"name":"level","type":"int","typeModifiers":{"predicate":"flags2.10"},"comment":"Boost level"}]},{"kind":"class","name":"channelForbidden","type":"Chat","id":399807445,"comment":"Indicates a channel/supergroup we can't access because we were banned, or for some other reason.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"broadcast","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Is this a channel"},{"name":"megagroup","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"Is this a supergroup"},{"name":"id","type":"int53","comment":"Channel ID"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"title","type":"string","comment":"Title"},{"name":"until_date","type":"int","typeModifiers":{"predicate":"flags.16"},"comment":"The ban is valid until the specified date"}]},{"kind":"class","name":"chatFull","id":640893467,"type":"ChatFull","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"can_set_username","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Can we change the username of this chat"},{"name":"has_scheduled","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"Whether scheduled messages are available"},{"name":"translations_disabled","type":"true","typeModifiers":{"predicate":"flags.19"},"comment":"Whether the real-time chat translation popup should be hidden."},{"name":"id","type":"int53","comment":"ID of the chat"},{"name":"about","type":"string","comment":"About string for this chat"},{"name":"participants","type":"ChatParticipants","comment":"Participant list"},{"name":"chat_photo","type":"Photo","typeModifiers":{"predicate":"flags.2"},"comment":"Chat photo"},{"name":"notify_settings","type":"PeerNotifySettings","comment":"Notification settings"},{"name":"exported_invite","type":"ExportedChatInvite","typeModifiers":{"predicate":"flags.13"},"comment":"Chat invite"},{"name":"bot_info","type":"BotInfo","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Info about bots that are in this chat"},{"name":"pinned_msg_id","type":"int","typeModifiers":{"predicate":"flags.6"},"comment":"Message ID of the last pinned message"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.11"},"comment":"Peer folder ID, for more info click here"},{"name":"call","type":"InputGroupCall","typeModifiers":{"predicate":"flags.12"},"comment":"Group call information"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.14"},"comment":"Time-To-Live of messages sent by the current user to this chat"},{"name":"groupcall_default_join_as","type":"Peer","typeModifiers":{"predicate":"flags.15"},"comment":"When using {@link phone.RawGetGroupCallJoinAsRequest} to get a list of peers that can be used to join a group call, this field indicates the peer that should be selected by default."},{"name":"theme_emoticon","type":"string","typeModifiers":{"predicate":"flags.16"},"comment":"Emoji representing a specific chat theme"},{"name":"requests_pending","type":"int","typeModifiers":{"predicate":"flags.17"},"comment":"Pending join requests ยป"},{"name":"recent_requesters","type":"long","typeModifiers":{"predicate":"flags.17","isVector":true},"comment":"IDs of users who requested to join recently"},{"name":"available_reactions","type":"ChatReactions","typeModifiers":{"predicate":"flags.18"},"comment":"Allowed message reactions ยป"},{"name":"reactions_limit","type":"int","typeModifiers":{"predicate":"flags.20"}}],"comment":"Full info about a basic group."},{"kind":"class","name":"channelFull","id":3148559501,"type":"ChatFull","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"can_view_participants","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Can we view the participant list?"},{"name":"can_set_username","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Can we set the channel's username?"},{"name":"can_set_stickers","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Can we {@link channels.RawSetStickersRequest} a stickerpack to the supergroup?"},{"name":"hidden_prehistory","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"Is the history before we joined hidden to us?"},{"name":"can_set_location","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"Can we set the geolocation of this group (for geogroups)"},{"name":"has_scheduled","type":"true","typeModifiers":{"predicate":"flags.19"},"comment":"Whether scheduled messages are available"},{"name":"can_view_stats","type":"true","typeModifiers":{"predicate":"flags.20"},"comment":"Can the user view channel/supergroup statistics"},{"name":"blocked","type":"true","typeModifiers":{"predicate":"flags.22"},"comment":"Whether any anonymous admin of this supergroup was blocked: if set, you won't receive messages from anonymous group admins in discussion replies via @replies"},{"name":"flags2","type":"#","comment":"Flags, see TL conditional fields"},{"name":"can_delete_channel","type":"true","typeModifiers":{"predicate":"flags2.0"},"comment":"Can we delete this channel?"},{"name":"antispam","type":"true","typeModifiers":{"predicate":"flags2.1"},"comment":"Whether native antispam functionality is enabled in this supergroup."},{"name":"participants_hidden","type":"true","typeModifiers":{"predicate":"flags2.2"},"comment":"Whether the participant list is hidden."},{"name":"translations_disabled","type":"true","typeModifiers":{"predicate":"flags2.3"},"comment":"Whether the real-time chat translation popup should be hidden."},{"name":"stories_pinned_available","type":"true","typeModifiers":{"predicate":"flags2.5"},"comment":"Whether this user has some pinned stories."},{"name":"view_forum_as_messages","type":"true","typeModifiers":{"predicate":"flags2.6"},"comment":"Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a \"View as messages\" setting in the local client.
This setting only affects the current account, and is synced to other logged in sessions using the {@link channels.RawToggleViewForumAsMessagesRequest} method; invoking this method will update the value of this flag."},{"name":"restricted_sponsored","type":"true","typeModifiers":{"predicate":"flags2.11"}},{"name":"can_view_revenue","type":"true","typeModifiers":{"predicate":"flags2.12"}},{"name":"id","type":"int53","comment":"ID of the channel"},{"name":"about","type":"string","comment":"Info about the channel"},{"name":"participants_count","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Number of participants of the channel"},{"name":"admins_count","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Number of channel admins"},{"name":"kicked_count","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Number of users kicked from the channel"},{"name":"banned_count","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Number of users banned from the channel"},{"name":"online_count","type":"int","typeModifiers":{"predicate":"flags.13"},"comment":"Number of users currently online"},{"name":"read_inbox_max_id","type":"int","comment":"Position up to which all incoming messages are read."},{"name":"read_outbox_max_id","type":"int","comment":"Position up to which all outgoing messages are read."},{"name":"unread_count","type":"int","comment":"Count of unread messages"},{"name":"chat_photo","type":"Photo","comment":"Channel picture"},{"name":"notify_settings","type":"PeerNotifySettings","comment":"Notification settings"},{"name":"exported_invite","type":"ExportedChatInvite","typeModifiers":{"predicate":"flags.23"},"comment":"Invite link"},{"name":"bot_info","type":"BotInfo","typeModifiers":{"isVector":true},"comment":"Info about bots in the channel/supergroup"},{"name":"migrated_from_chat_id","type":"long","typeModifiers":{"predicate":"flags.4"},"comment":"The chat ID from which this group was migrated"},{"name":"migrated_from_max_id","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"The message ID in the original chat at which this group was migrated"},{"name":"pinned_msg_id","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"Message ID of the last pinned message"},{"name":"stickerset","type":"StickerSet","typeModifiers":{"predicate":"flags.8"},"comment":"Associated stickerset"},{"name":"available_min_id","type":"int","typeModifiers":{"predicate":"flags.9"},"comment":"Identifier of a maximum unavailable message in a channel due to hidden history."},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.11"},"comment":"Peer folder ID, for more info click here"},{"name":"linked_chat_id","type":"int53","typeModifiers":{"predicate":"flags.14"},"comment":"ID of the linked discussion chat for channels"},{"name":"location","type":"ChannelLocation","typeModifiers":{"predicate":"flags.15"},"comment":"Location of the geo group"},{"name":"slowmode_seconds","type":"int","typeModifiers":{"predicate":"flags.17"},"comment":"If specified, users in supergroups will only be able to send one message every slowmode_seconds seconds"},{"name":"slowmode_next_send_date","type":"int","typeModifiers":{"predicate":"flags.18"},"comment":"Indicates when the user will be allowed to send another message in the supergroup (unixtime)"},{"name":"stats_dc","type":"int","typeModifiers":{"predicate":"flags.12"},"comment":"If set, specifies the DC to use for fetching channel statistics"},{"name":"pts","type":"int","comment":"Latest PTS for this channel"},{"name":"call","type":"InputGroupCall","typeModifiers":{"predicate":"flags.21"},"comment":"Livestream or group call information"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.24"},"comment":"Time-To-Live of messages in this channel or supergroup"},{"name":"pending_suggestions","type":"string","typeModifiers":{"predicate":"flags.25","isVector":true},"comment":"A list of suggested actions for the supergroup admin, see here for more info ยป."},{"name":"groupcall_default_join_as","type":"Peer","typeModifiers":{"predicate":"flags.26"},"comment":"When using {@link phone.RawGetGroupCallJoinAsRequest} to get a list of peers that can be used to join a group call, this field indicates the peer that should be selected by default."},{"name":"theme_emoticon","type":"string","typeModifiers":{"predicate":"flags.27"},"comment":"Emoji representing a specific chat theme"},{"name":"requests_pending","type":"int","typeModifiers":{"predicate":"flags.28"},"comment":"Pending join requests ยป"},{"name":"recent_requesters","type":"long","typeModifiers":{"predicate":"flags.28","isVector":true},"comment":"IDs of users who requested to join recently"},{"name":"default_send_as","type":"Peer","typeModifiers":{"predicate":"flags.29"},"comment":"Default peer used for sending messages to this channel"},{"name":"available_reactions","type":"ChatReactions","typeModifiers":{"predicate":"flags.30"},"comment":"Allowed message reactions ยป"},{"name":"reactions_limit","type":"int","typeModifiers":{"predicate":"flags2.13"}},{"name":"stories","type":"PeerStories","typeModifiers":{"predicate":"flags2.4"},"comment":"Channel stories"},{"name":"wallpaper","type":"WallPaper","typeModifiers":{"predicate":"flags2.7"},"comment":"Wallpaper"},{"name":"boosts_applied","type":"int","typeModifiers":{"predicate":"flags2.8"}},{"name":"boosts_unrestrict","type":"int","typeModifiers":{"predicate":"flags2.9"}},{"name":"emojiset","type":"StickerSet","typeModifiers":{"predicate":"flags2.10"}}],"comment":"Full info about a channel, supergroup or gigagroup."},{"kind":"class","name":"chatParticipant","type":"ChatParticipant","id":3224190983,"comment":"Group member.","arguments":[{"name":"user_id","type":"int53","comment":"Member user ID"},{"name":"inviter_id","type":"int53","comment":"ID of the user that added the member to the group"},{"name":"date","type":"int","comment":"Date added to the group"}]},{"kind":"class","name":"chatParticipantCreator","type":"ChatParticipant","id":3832270564,"comment":"Represents the creator of the group","arguments":[{"name":"user_id","type":"int53","comment":"ID of the user that created the group"}]},{"kind":"class","name":"chatParticipantAdmin","type":"ChatParticipant","id":2694004571,"comment":"Chat admin","arguments":[{"name":"user_id","type":"int53","comment":"ID of a group member that is admin"},{"name":"inviter_id","type":"int53","comment":"ID of the user that added the member to the group"},{"name":"date","type":"int","comment":"Date when the user was added"}]},{"kind":"class","name":"chatParticipantsForbidden","type":"ChatParticipants","id":2271466465,"comment":"Info on members is unavailable","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"chat_id","type":"int53","comment":"Group ID"},{"name":"self_participant","type":"ChatParticipant","typeModifiers":{"predicate":"flags.0"},"comment":"Info about the group membership of the current user"}]},{"kind":"class","name":"chatParticipants","type":"ChatParticipants","id":1018991608,"comment":"Group members.","arguments":[{"name":"chat_id","type":"int53","comment":"Group identifier"},{"name":"participants","type":"ChatParticipant","typeModifiers":{"isVector":true},"comment":"List of group members"},{"name":"version","type":"int","comment":"Group version number"}]},{"kind":"class","name":"chatPhotoEmpty","type":"ChatPhoto","id":935395612,"comment":"Group photo is not set.","arguments":[]},{"kind":"class","name":"chatPhoto","type":"ChatPhoto","id":476978193,"comment":"Group profile photo.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_video","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the user has an animated profile picture"},{"name":"photo_id","type":"long","comment":"Photo ID"},{"name":"stripped_thumb","type":"bytes","typeModifiers":{"predicate":"flags.1"},"comment":"Stripped thumbnail"},{"name":"dc_id","type":"int","comment":"DC where this photo is stored"}]},{"kind":"class","name":"messageEmpty","type":"Message","id":2426849924,"comment":"Empty constructor, non-existent message.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"int","comment":"Message identifier"},{"name":"peer_id","type":"Peer","typeModifiers":{"predicate":"flags.0"},"comment":"Peer ID, the chat where this message was sent"}]},{"kind":"class","name":"message","id":2486456898,"type":"Message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"out","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Is this an outgoing message"},{"name":"mentioned","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether we were mentioned in this message"},{"name":"media_unread","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether there are unread media attachments in this message"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"Whether this is a silent message (no notification triggered)"},{"name":"post","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Whether this is a channel post"},{"name":"from_scheduled","type":"true","typeModifiers":{"predicate":"flags.18"},"comment":"Whether this is a scheduled message"},{"name":"legacy","type":"true","typeModifiers":{"predicate":"flags.19"},"comment":"This is a legacy message: it has to be refetched with the new layer"},{"name":"edit_hide","type":"true","typeModifiers":{"predicate":"flags.21"},"comment":"Whether the message should be shown as not modified to the user, even if an edit date is present"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.24"},"comment":"Whether this message is pinned"},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.26"},"comment":"Whether this message is protected and thus cannot be forwarded; clients should also prevent users from saving attached media (i.e. videos should only be streamed, photos should be kept in RAM, et cetera)."},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.27"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"flags2","type":"#"},{"name":"offline","type":"true","typeModifiers":{"predicate":"flags2.1"}},{"name":"id","type":"int","comment":"ID of the message"},{"name":"from_id","type":"Peer","typeModifiers":{"predicate":"flags.8"},"comment":"ID of the sender of the message"},{"name":"from_boosts_applied","type":"int","typeModifiers":{"predicate":"flags.29"}},{"name":"peer_id","type":"Peer","comment":"Peer ID, the chat where this message was sent"},{"name":"saved_peer_id","type":"Peer","typeModifiers":{"predicate":"flags.28"},"comment":"Messages fetched from a saved messages dialog ยป will have peer={@link RawInputPeerSelf} and the saved_peer_id flag set to the ID of the saved dialog.
"},{"name":"fwd_from","type":"MessageFwdHeader","typeModifiers":{"predicate":"flags.2"},"comment":"Info about forwarded messages"},{"name":"via_bot_id","type":"int53","typeModifiers":{"predicate":"flags.11"},"comment":"ID of the inline bot that generated the message"},{"name":"via_business_bot_id","type":"int53","typeModifiers":{"predicate":"flags2.0"}},{"name":"reply_to","type":"MessageReplyHeader","typeModifiers":{"predicate":"flags.3"},"comment":"Reply information"},{"name":"date","type":"int","comment":"Date of the message"},{"name":"message","type":"string","comment":"The message"},{"name":"media","type":"MessageMedia","typeModifiers":{"predicate":"flags.9"},"comment":"Media attachment"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.6"},"comment":"Reply markup (bot/inline keyboards)"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.7","isVector":true},"comment":"Message entities for styled text"},{"name":"views","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"View count for channel posts"},{"name":"forwards","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Forward counter"},{"name":"replies","type":"MessageReplies","typeModifiers":{"predicate":"flags.23"},"comment":"Info about post comments (for channels) or message replies (for groups)"},{"name":"edit_date","type":"int","typeModifiers":{"predicate":"flags.15"},"comment":"Last edit date of this message"},{"name":"post_author","type":"string","typeModifiers":{"predicate":"flags.16"},"comment":"Name of the author of this message for channel posts (with signatures enabled)"},{"name":"grouped_id","type":"long","typeModifiers":{"predicate":"flags.17"},"comment":"Multiple media messages sent using {@link messages.RawSendMultiMediaRequest} with the same grouped ID indicate an album or media group"},{"name":"reactions","type":"MessageReactions","typeModifiers":{"predicate":"flags.20"},"comment":"Reactions to this message"},{"name":"restriction_reason","type":"RestrictionReason","typeModifiers":{"predicate":"flags.22","isVector":true},"comment":"Contains the reason why access to this message must be restricted."},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.25"},"comment":"Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well."},{"name":"quick_reply_shortcut_id","type":"int","typeModifiers":{"predicate":"flags.30"}},{"name":"effect","type":"long","typeModifiers":{"predicate":"flags2.2"}},{"name":"factcheck","type":"FactCheck","typeModifiers":{"predicate":"flags2.3"}}],"comment":"A message"},{"kind":"class","name":"messageService","type":"Message","id":721967202,"comment":"Indicates a service message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"out","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the message is outgoing"},{"name":"mentioned","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether we were mentioned in the message"},{"name":"media_unread","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether the message contains unread media"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"Whether the message is silent"},{"name":"post","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Whether it's a channel post"},{"name":"legacy","type":"true","typeModifiers":{"predicate":"flags.19"},"comment":"This is a legacy message: it has to be refetched with the new layer"},{"name":"id","type":"int","comment":"Message ID"},{"name":"from_id","type":"Peer","typeModifiers":{"predicate":"flags.8"},"comment":"ID of the sender of this message"},{"name":"peer_id","type":"Peer","comment":"Sender of service message"},{"name":"reply_to","type":"MessageReplyHeader","typeModifiers":{"predicate":"flags.3"},"comment":"Reply (thread) information"},{"name":"date","type":"int","comment":"Message date"},{"name":"action","type":"MessageAction","comment":"Event connected with the service message"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.25"},"comment":"Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well."}]},{"kind":"class","name":"messageMediaEmpty","type":"MessageMedia","id":1038967584,"comment":"Empty constructor.","arguments":[]},{"kind":"class","name":"messageMediaPhoto","type":"MessageMedia","id":1766936791,"comment":"Attached photo.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"spoiler","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this media should be hidden behind a spoiler warning"},{"name":"photo","type":"Photo","typeModifiers":{"predicate":"flags.0"},"comment":"Photo"},{"name":"ttl_seconds","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Time to live in seconds of self-destructing photo"}]},{"kind":"class","name":"messageMediaGeo","type":"MessageMedia","id":1457575028,"comment":"Attached map.","arguments":[{"name":"geo","type":"GeoPoint","comment":"GeoPoint"}]},{"kind":"class","name":"messageMediaContact","type":"MessageMedia","id":1882335561,"comment":"Attached contact.","arguments":[{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"first_name","type":"string","comment":"Contact's first name"},{"name":"last_name","type":"string","comment":"Contact's last name"},{"name":"vcard","type":"string","comment":"VCARD of contact"},{"name":"user_id","type":"int53","comment":"User identifier or 0, if the user with the given phone number is not registered"}]},{"kind":"class","name":"messageMediaUnsupported","type":"MessageMedia","id":2676290718,"comment":"Current version of the client does not support this media type.","arguments":[]},{"kind":"class","name":"messageMediaDocument","type":"MessageMedia","id":1291114285,"comment":"Document (video, audio, voice, sticker, any media type except photo)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"nopremium","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played."},{"name":"spoiler","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether this media should be hidden behind a spoiler warning"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether this is a video."},{"name":"round","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Whether this is a round video."},{"name":"voice","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"Whether this is a voice message."},{"name":"document","type":"Document","typeModifiers":{"predicate":"flags.0"},"comment":"Attached document"},{"name":"alt_document","type":"Document","typeModifiers":{"predicate":"flags.5"},"comment":"Currently only used for story videos, may contain an alternative version of the story video, explicitly encoded using H.264 (in MPEG4 transport) at a lower resolution than document."},{"name":"ttl_seconds","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Time to live of self-destructing document"}]},{"kind":"class","name":"messageMediaWebPage","type":"MessageMedia","id":3723562043,"comment":"Preview of webpage","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"force_large_media","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, specifies that a large media preview should be used."},{"name":"force_small_media","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, specifies that a small media preview should be used."},{"name":"manual","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, indicates that the URL used for the webpage preview was specified manually using {@link RawInputMediaWebPage}, and may not be related to any of the URLs specified in the message."},{"name":"safe","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If set, the webpage can be opened directly without user confirmation; otherwise, user confirmation is required, showing the exact URL that will be opened."},{"name":"webpage","type":"WebPage","comment":"Webpage preview"}]},{"kind":"class","name":"messageMediaVenue","type":"MessageMedia","id":784356159,"comment":"Venue","arguments":[{"name":"geo","type":"GeoPoint","comment":"Geolocation of venue"},{"name":"title","type":"string","comment":"Venue name"},{"name":"address","type":"string","comment":"Address"},{"name":"provider","type":"string","comment":"Venue provider: currently only \"foursquare\" and \"gplaces\" (Google Places) need to be supported"},{"name":"venue_id","type":"string","comment":"Venue ID in the provider's database"},{"name":"venue_type","type":"string","comment":"Venue type in the provider's database"}]},{"kind":"class","name":"messageMediaGame","type":"MessageMedia","id":4256272392,"comment":"Telegram game","arguments":[{"name":"game","type":"Game","comment":"Game"}]},{"kind":"class","name":"messageMediaInvoice","type":"MessageMedia","id":4138027219,"comment":"Invoice","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"shipping_address_requested","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the shipping address was requested"},{"name":"test","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this is an example invoice"},{"name":"title","type":"string","comment":"Product name, 1-32 characters"},{"name":"description","type":"string","comment":"Product description, 1-255 characters"},{"name":"photo","type":"WebDocument","typeModifiers":{"predicate":"flags.0"},"comment":"URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for."},{"name":"receipt_msg_id","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Message ID of receipt: if set, clients should change the text of the first {@link RawKeyboardButtonBuy} button always attached to the {@link RawMessage} to a localized version of the word Receipt"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"total_amount","type":"long","comment":"Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"start_param","type":"string","comment":"Unique bot deep-linking parameter that can be used to generate this invoice"},{"name":"extended_media","type":"MessageExtendedMedia","typeModifiers":{"predicate":"flags.4"},"comment":"Extended media"}]},{"kind":"class","name":"messageMediaGeoLive","type":"MessageMedia","id":3108030054,"comment":"Indicates a live geolocation","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"geo","type":"GeoPoint","comment":"Geolocation"},{"name":"heading","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"For live locations, a direction in which the location moves, in degrees; 1-360"},{"name":"period","type":"int","comment":"Validity period of provided geolocation"},{"name":"proximity_notification_radius","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)."}]},{"kind":"class","name":"messageMediaPoll","type":"MessageMedia","id":1272375192,"comment":"Poll","arguments":[{"name":"poll","type":"Poll","comment":"The poll"},{"name":"results","type":"PollResults","comment":"The results of the poll"}]},{"kind":"class","name":"messageMediaDice","type":"MessageMedia","id":1065280907,"comment":"Dice-based animated sticker","arguments":[{"name":"value","type":"int","comment":"Dice value"},{"name":"emoticon","type":"string","comment":"The emoji, for now \"๐Ÿ€\", \"๐ŸŽฒ\" and \"๐ŸŽฏ\" are supported"}]},{"kind":"class","name":"messageMediaStory","type":"MessageMedia","id":1758159491,"comment":"Represents a forwarded story or a story mention.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"via_mention","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, indicates that this someone has mentioned us in this story (i.e. by tagging us in the description) or vice versa, we have mentioned the other peer (if the message is outgoing)."},{"name":"peer","type":"Peer","comment":"Peer that posted the story."},{"name":"id","type":"int","comment":"Story ID"},{"name":"story","type":"StoryItem","typeModifiers":{"predicate":"flags.0"},"comment":"The story itself, if absent fetch it using {@link stories.RawGetStoriesByIDRequest} and the peer/id parameters specified above."}]},{"kind":"class","name":"messageMediaGiveaway","type":"MessageMedia","id":3668805040,"comment":"Contains info about a giveaway, see here ยป for more info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"only_new_subscribers","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, only new subscribers starting from the giveaway creation date will be able to participate to the giveaway."},{"name":"winners_are_visible","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, giveaway winners are public and will be listed in a {@link RawMessageMediaGiveawayResults} message that will be automatically sent to the channel once the giveaway ends."},{"name":"channels","type":"int53","typeModifiers":{"isVector":true},"comment":"The channels that the user must join to participate in the giveaway."},{"name":"countries_iso2","type":"string","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"If set, only users residing in these countries can participate in the giveaway, (specified as a list of two-letter ISO 3166-1 alpha-2 country codes); otherwise there are no country-based limitations."},{"name":"prize_description","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Can contain a textual description of additional giveaway prizes."},{"name":"quantity","type":"int","comment":"Number of Telegram Premium subscriptions given away."},{"name":"months","type":"int","comment":"Duration in months of each Telegram Premium subscription in the giveaway."},{"name":"until_date","type":"int","comment":"The end date of the giveaway."}]},{"kind":"class","name":"messageMediaGiveawayResults","type":"MessageMedia","id":3331919976,"comment":"A giveaway with public winners has finished, this constructor contains info about the winners.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"only_new_subscribers","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, only new subscribers starting from the giveaway creation date participated in the giveaway."},{"name":"refunded","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, the giveaway was canceled and was fully refunded."},{"name":"channel_id","type":"long","comment":"ID of the channel that was automatically boosted by the winners of the giveaway for duration of the Premium subscription."},{"name":"additional_peers_count","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Number of other channels that participated in the giveaway."},{"name":"launch_msg_id","type":"int","comment":"Identifier of the message with the giveaway in channel_id."},{"name":"winners_count","type":"int","comment":"Total number of winners in the giveaway."},{"name":"unclaimed_count","type":"int","comment":"Number of not-yet-claimed prizes."},{"name":"winners","type":"long","typeModifiers":{"isVector":true},"comment":"Up to 100 user identifiers of the winners of the giveaway."},{"name":"months","type":"int","comment":"Duration in months of each Telegram Premium subscription in the giveaway."},{"name":"prize_description","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Can contain a textual description of additional giveaway prizes."},{"name":"until_date","type":"int","comment":"Point in time (UNIX timestamp in seconds) when the winners were selected. May be bigger than winners selection date specified in initial parameters of the giveaway."}]},{"kind":"class","name":"messageActionEmpty","type":"MessageAction","id":3064919984,"comment":"Empty constructor.","arguments":[]},{"kind":"class","name":"messageActionChatCreate","type":"MessageAction","id":3175599021,"comment":"Group created","arguments":[{"name":"title","type":"string","comment":"Group name"},{"name":"users","type":"int53","typeModifiers":{"isVector":true},"comment":"List of group members"}]},{"kind":"class","name":"messageActionChatEditTitle","type":"MessageAction","id":3047280218,"comment":"Group name changed.","arguments":[{"name":"title","type":"string","comment":"New group name"}]},{"kind":"class","name":"messageActionChatEditPhoto","type":"MessageAction","id":2144015272,"comment":"Group profile changed","arguments":[{"name":"photo","type":"Photo","comment":"New group profile photo"}]},{"kind":"class","name":"messageActionChatDeletePhoto","type":"MessageAction","id":2514746351,"comment":"Group profile photo removed.","arguments":[]},{"kind":"class","name":"messageActionChatAddUser","type":"MessageAction","id":365886720,"comment":"New member in the group","arguments":[{"name":"users","type":"int53","typeModifiers":{"isVector":true},"comment":"Users that were invited to the chat"}]},{"kind":"class","name":"messageActionChatDeleteUser","type":"MessageAction","id":2755604684,"comment":"User left the group.","arguments":[{"name":"user_id","type":"int53","comment":"Leaving user ID"}]},{"kind":"class","name":"messageActionChatJoinedByLink","type":"MessageAction","id":51520707,"comment":"A user joined the chat via an invite link","arguments":[{"name":"inviter_id","type":"int53","comment":"ID of the user that created the invite link"}]},{"kind":"class","name":"messageActionChannelCreate","type":"MessageAction","id":2513611922,"comment":"The channel was created","arguments":[{"name":"title","type":"string","comment":"Original channel/supergroup title"}]},{"kind":"class","name":"messageActionChatMigrateTo","type":"MessageAction","id":3775102866,"comment":"Indicates the chat was migrated to the specified supergroup","arguments":[{"name":"channel_id","type":"int53","comment":"The supergroup it was migrated to"}]},{"kind":"class","name":"messageActionChannelMigrateFrom","type":"MessageAction","id":3929622761,"comment":"Indicates the channel was migrated from the specified chat","arguments":[{"name":"title","type":"string","comment":"The old chat title"},{"name":"chat_id","type":"int53","comment":"The old chat ID"}]},{"kind":"class","name":"messageActionPinMessage","type":"MessageAction","id":2495428845,"comment":"A message was pinned","arguments":[]},{"kind":"class","name":"messageActionHistoryClear","type":"MessageAction","id":2679813636,"comment":"Chat history was cleared","arguments":[]},{"kind":"class","name":"messageActionGameScore","type":"MessageAction","id":2460428406,"comment":"Someone scored in a game","arguments":[{"name":"game_id","type":"long","comment":"Game ID"},{"name":"score","type":"int","comment":"Score"}]},{"kind":"class","name":"messageActionPaymentSentMe","type":"MessageAction","id":2402399015,"comment":"A user just sent a payment to me (a bot)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"recurring_init","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this is the first payment of a recurring payment we just subscribed to"},{"name":"recurring_used","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this payment is part of a recurring payment"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"total_amount","type":"long","comment":"Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"payload","type":"bytes","comment":"Bot specified invoice payload"},{"name":"info","type":"PaymentRequestedInfo","typeModifiers":{"predicate":"flags.0"},"comment":"Order info provided by the user"},{"name":"shipping_option_id","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Identifier of the shipping option chosen by the user"},{"name":"charge","type":"PaymentCharge","comment":"Provider payment identifier"}]},{"kind":"class","name":"messageActionPaymentSent","type":"MessageAction","id":2518040406,"comment":"A payment was sent","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"recurring_init","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this is the first payment of a recurring payment we just subscribed to"},{"name":"recurring_used","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this payment is part of a recurring payment"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"total_amount","type":"long","comment":"Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"invoice_slug","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"An invoice slug taken from an invoice deep link or from the premium_invoice_slug app config parameter ยป"}]},{"kind":"class","name":"messageActionPhoneCall","type":"MessageAction","id":2162236031,"comment":"A phone call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Is this a video call?"},{"name":"call_id","type":"long","comment":"Call ID"},{"name":"reason","type":"PhoneCallDiscardReason","typeModifiers":{"predicate":"flags.0"},"comment":"If the call has ended, the reason why it ended"},{"name":"duration","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Duration of the call in seconds"}]},{"kind":"class","name":"messageActionScreenshotTaken","type":"MessageAction","id":1200788123,"comment":"A screenshot of the chat was taken","arguments":[]},{"kind":"class","name":"messageActionCustomAction","type":"MessageAction","id":4209418070,"comment":"Custom action (most likely not supported by the current layer, an upgrade might be needed)","arguments":[{"name":"message","type":"string","comment":"Action message"}]},{"kind":"class","name":"messageActionBotAllowed","type":"MessageAction","id":3306608249,"comment":"We have given the bot permission to send us direct messages.\n\nThe optional fields specify how did we authorize the bot to send us messages.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"attach_menu","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"We have authorized the bot to send us messages by installing the bot's attachment menu."},{"name":"from_request","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"We have allowed the bot to send us messages using {@link bots.RawAllowSendMessageRequest}."},{"name":"domain","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"We have authorized the bot to send us messages by logging into a website via Telegram Login ยป; this field contains the domain name of the website on which the user has logged in."},{"name":"app","type":"BotApp","typeModifiers":{"predicate":"flags.2"},"comment":"We have authorized the bot to send us messages by opening the specified bot mini app."}]},{"kind":"class","name":"messageActionSecureValuesSentMe","type":"MessageAction","id":455635795,"comment":"Secure telegram passport values were received","arguments":[{"name":"values","type":"SecureValue","typeModifiers":{"isVector":true},"comment":"Vector with information about documents and other Telegram Passport elements that were shared with the bot"},{"name":"credentials","type":"SecureCredentialsEncrypted","comment":"Encrypted credentials required to decrypt the data"}]},{"kind":"class","name":"messageActionSecureValuesSent","type":"MessageAction","id":3646710100,"comment":"Request for secure telegram passport values was sent","arguments":[{"name":"types","type":"SecureValueType","typeModifiers":{"isVector":true},"comment":"Secure value types"}]},{"kind":"class","name":"messageActionContactSignUp","type":"MessageAction","id":4092747638,"comment":"A contact just signed up to telegram","arguments":[]},{"kind":"class","name":"messageActionGeoProximityReached","type":"MessageAction","id":2564871831,"comment":"A user of the chat is now in proximity of another user","arguments":[{"name":"from_id","type":"Peer","comment":"The user or chat that is now in proximity of to_id"},{"name":"to_id","type":"Peer","comment":"The user or chat that subscribed to live geolocation proximity alerts"},{"name":"distance","type":"int","comment":"Distance, in meters (0-100000)"}]},{"kind":"class","name":"messageActionGroupCall","type":"MessageAction","id":2047704898,"comment":"The group call has ended","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"call","type":"InputGroupCall","comment":"Group call"},{"name":"duration","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Group call duration"}]},{"kind":"class","name":"messageActionInviteToGroupCall","type":"MessageAction","id":1345295095,"comment":"A set of users was invited to the group call","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call"},{"name":"users","type":"int53","typeModifiers":{"isVector":true},"comment":"The invited users"}]},{"kind":"class","name":"messageActionSetMessagesTTL","type":"MessageAction","id":1007897979,"comment":"The Time-To-Live of messages in this chat was changed.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"period","type":"int","comment":"New Time-To-Live of all messages sent in this chat; if 0, autodeletion was disabled."},{"name":"auto_setting_from","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"If set, the chat TTL setting was set not due to a manual change by one of participants, but automatically because one of the participants has the {@link messages.RawSetDefaultHistoryTTLRequest}. For example, when a user writes to us for the first time and we have set a default messages TTL of 1 week, this service message (with auto_setting_from=our_userid) will be emitted before our first message."}]},{"kind":"class","name":"messageActionGroupCallScheduled","type":"MessageAction","id":3013637729,"comment":"A group call was scheduled","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call"},{"name":"schedule_date","type":"int","comment":"When is this group call scheduled to start"}]},{"kind":"class","name":"messageActionSetChatTheme","type":"MessageAction","id":2860016453,"comment":"The chat theme was changed","arguments":[{"name":"emoticon","type":"string","comment":"The emoji that identifies a chat theme"}]},{"kind":"class","name":"messageActionChatJoinedByRequest","type":"MessageAction","id":3955008459,"comment":"A user was accepted into the group by an admin","arguments":[]},{"kind":"class","name":"messageActionWebViewDataSentMe","type":"MessageAction","id":1205698681,"comment":"Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (bot side service message).","arguments":[{"name":"text","type":"string","comment":"Text of the {@link RawKeyboardButtonSimpleWebView} that was pressed to open the web app."},{"name":"data","type":"string","comment":"Relayed data."}]},{"kind":"class","name":"messageActionWebViewDataSent","type":"MessageAction","id":3032714421,"comment":"Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (user side service message).\n\nClients should display a service message with the text Data from the ยซ$textยป button was transferred to the bot.","arguments":[{"name":"text","type":"string","comment":"Text of the {@link RawKeyboardButtonSimpleWebView} that was pressed to open the web app."}]},{"kind":"class","name":"messageActionGiftPremium","type":"MessageAction","id":3359468268,"comment":"Info about a gifted Telegram Premium subscription","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"amount","type":"long","comment":"Price of the gift in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"months","type":"int","comment":"Duration of the gifted Telegram Premium subscription"},{"name":"crypto_currency","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"If the gift was bought using a cryptocurrency, the cryptocurrency name."},{"name":"crypto_amount","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"If the gift was bought using a cryptocurrency, price of the gift in the smallest units of a cryptocurrency."}]},{"kind":"class","name":"messageActionTopicCreate","type":"MessageAction","id":228168278,"comment":"A forum topic was created.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"title","type":"string","comment":"Topic name."},{"name":"icon_color","type":"int","comment":"If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F."},{"name":"icon_emoji_id","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"ID of the custom emoji used as topic icon."}]},{"kind":"class","name":"messageActionTopicEdit","type":"MessageAction","id":3230943264,"comment":"Forum topic information was edited.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"New topic title."},{"name":"icon_emoji_id","type":"long","typeModifiers":{"predicate":"flags.1"},"comment":"ID of the new custom emoji used as topic icon, or if it was removed."},{"name":"closed","type":"Bool","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the topic was opened or closed."},{"name":"hidden","type":"Bool","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the topic was hidden or unhidden (only valid for the \"General\" topic, id=1)."}]},{"kind":"class","name":"messageActionSuggestProfilePhoto","type":"MessageAction","id":1474192222,"comment":"A new profile picture was suggested using {@link photos.RawUploadContactProfilePhotoRequest}.","arguments":[{"name":"photo","type":"Photo","comment":"The photo that the user suggested we set as profile picture."}]},{"kind":"class","name":"messageActionRequestedPeer","type":"MessageAction","id":827428507,"comment":"Contains info about one or more peers that the user shared with the bot after clicking on a {@link RawKeyboardButtonRequestPeer} button.","arguments":[{"name":"button_id","type":"int","comment":"button_id contained in the {@link RawKeyboardButtonRequestPeer}"},{"name":"peers","type":"Peer","typeModifiers":{"isVector":true},"comment":"The shared peers"}]},{"kind":"class","name":"messageActionSetChatWallPaper","type":"MessageAction","id":1348510708,"comment":"The wallpaper ยป of the current chat was changed.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"same","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates the user applied a wallpaper ยป previously sent by the other user in a {@link RawMessageActionSetChatWallPaper} message."},{"name":"for_both","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, indicates the wallpaper was forcefully applied for both sides, without explicit confirmation from the other side.
If the message is incoming, and we did not like the new wallpaper the other user has chosen for us, we can re-set our previous wallpaper just on our side, by invoking {@link messages.RawSetChatWallPaperRequest}, providing only the revert flag (and obviously the peer parameter)."},{"name":"wallpaper","type":"WallPaper","comment":"New wallpaper"}]},{"kind":"class","name":"messageActionGiftCode","type":"MessageAction","id":1737240073,"comment":"Contains a Telegram Premium giftcode link.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"via_giveaway","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, this gift code was received from a giveaway ยป started by a channel we're subscribed to."},{"name":"unclaimed","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, the link was not redeemed yet."},{"name":"boost_peer","type":"Peer","typeModifiers":{"predicate":"flags.1"},"comment":"Identifier of the channel that created the gift code either directly or through a giveaway: if we import this giftcode link, we will also automatically boost this channel."},{"name":"months","type":"int","comment":"Duration in months of the gifted Telegram Premium subscription."},{"name":"slug","type":"string","comment":"Slug of the Telegram Premium giftcode link"},{"name":"currency","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Three-letter ISO 4217 currency code"},{"name":"amount","type":"long","typeModifiers":{"predicate":"flags.2"},"comment":"Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"crypto_currency","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"If set, the gift was made using the specified cryptocurrency."},{"name":"crypto_amount","type":"long","typeModifiers":{"predicate":"flags.3"},"comment":"If crypto_currency is set, contains the paid amount, in the smallest units of the cryptocurrency."}]},{"kind":"class","name":"messageActionGiveawayLaunch","type":"MessageAction","id":858499565,"comment":"A giveaway was started.","arguments":[]},{"kind":"class","name":"messageActionGiveawayResults","type":"MessageAction","id":715107781,"comment":"A giveaway has ended.","arguments":[{"name":"winners_count","type":"int","comment":"Number of winners in the giveaway"},{"name":"unclaimed_count","type":"int","comment":"Number of undistributed prizes"}]},{"kind":"class","name":"messageActionBoostApply","type":"MessageAction","id":3422726765,"arguments":[{"name":"boosts","type":"int"}]},{"kind":"class","name":"messageActionRequestedPeerSentMe","type":"MessageAction","id":2477987912,"arguments":[{"name":"button_id","type":"int"},{"name":"peers","type":"RequestedPeer","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"dialog","type":"Dialog","id":3582593222,"comment":"Chat","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Is the dialog pinned"},{"name":"unread_mark","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the chat was manually marked as unread"},{"name":"view_forum_as_messages","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a \"View as messages\" setting in the local client.
This setting only affects the current account, and is synced to other logged in sessions using the {@link channels.RawToggleViewForumAsMessagesRequest} method; invoking this method will update the value of this flag."},{"name":"peer","type":"Peer","comment":"The chat"},{"name":"top_message","type":"int","comment":"The latest message ID"},{"name":"read_inbox_max_id","type":"int","comment":"Position up to which all incoming messages are read."},{"name":"read_outbox_max_id","type":"int","comment":"Position up to which all outgoing messages are read."},{"name":"unread_count","type":"int","comment":"Number of unread messages"},{"name":"unread_mentions_count","type":"int","comment":"Number of unread mentions"},{"name":"unread_reactions_count","type":"int","comment":"Number of unread reactions to messages you sent"},{"name":"notify_settings","type":"PeerNotifySettings","comment":"Notification settings"},{"name":"pts","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"PTS"},{"name":"draft","type":"DraftMessage","typeModifiers":{"predicate":"flags.1"},"comment":"Message draft"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Peer folder ID, for more info click here"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"Time-to-live of all messages sent in this dialog"}]},{"kind":"class","name":"dialogFolder","type":"Dialog","id":1908216652,"comment":"Dialog in folder","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Is this folder pinned"},{"name":"folder","type":"Folder","comment":"The folder"},{"name":"peer","type":"Peer","comment":"Peer in folder"},{"name":"top_message","type":"int","comment":"Latest message ID of dialog"},{"name":"unread_muted_peers_count","type":"int","comment":"Number of unread muted peers in folder"},{"name":"unread_unmuted_peers_count","type":"int","comment":"Number of unread unmuted peers in folder"},{"name":"unread_muted_messages_count","type":"int","comment":"Number of unread messages from muted peers in folder"},{"name":"unread_unmuted_messages_count","type":"int","comment":"Number of unread messages from unmuted peers in folder"}]},{"kind":"class","name":"photoEmpty","type":"Photo","id":590459437,"comment":"Empty constructor, non-existent photo","arguments":[{"name":"id","type":"long","comment":"Photo identifier"}]},{"kind":"class","name":"photo","type":"Photo","id":4212750949,"comment":"Photo","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_stickers","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the photo has mask stickers attached to it"},{"name":"id","type":"long","comment":"ID"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"file_reference","type":"bytes","comment":"file reference"},{"name":"date","type":"int","comment":"Date of upload"},{"name":"sizes","type":"PhotoSize","typeModifiers":{"isVector":true},"comment":"Available sizes for download"},{"name":"video_sizes","type":"VideoSize","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"For animated profiles, the MPEG4 videos"},{"name":"dc_id","type":"int","comment":"DC ID to use for download"}]},{"kind":"class","name":"photoSizeEmpty","type":"PhotoSize","id":236446268,"comment":"Empty constructor. Image with this thumbnail is unavailable.","arguments":[{"name":"type","type":"string","comment":"Thumbnail type ยป"}]},{"kind":"class","name":"photoSize","type":"PhotoSize","id":1976012384,"comment":"Image description.","arguments":[{"name":"type","type":"string","comment":"Thumbnail type ยป"},{"name":"w","type":"int","comment":"Image width"},{"name":"h","type":"int","comment":"Image height"},{"name":"size","type":"int","comment":"File size"}]},{"kind":"class","name":"photoCachedSize","type":"PhotoSize","id":35527382,"comment":"Description of an image and its content.","arguments":[{"name":"type","type":"string","comment":"Thumbnail type"},{"name":"w","type":"int","comment":"Image width"},{"name":"h","type":"int","comment":"Image height"},{"name":"bytes","type":"bytes","comment":"Binary data, file content"}]},{"kind":"class","name":"photoStrippedSize","type":"PhotoSize","id":3769678894,"comment":"A low-resolution compressed JPG payload","arguments":[{"name":"type","type":"string","comment":"Thumbnail type"},{"name":"bytes","type":"bytes","comment":"Thumbnail data, see here for more info on decompression ยป"}]},{"kind":"class","name":"photoSizeProgressive","type":"PhotoSize","id":4198431637,"comment":"Progressively encoded photosize","arguments":[{"name":"type","type":"string","comment":"Photosize type ยป"},{"name":"w","type":"int","comment":"Photo width"},{"name":"h","type":"int","comment":"Photo height"},{"name":"sizes","type":"int","typeModifiers":{"isVector":true},"comment":"Sizes of progressive JPEG file prefixes, which can be used to preliminarily show the image."}]},{"kind":"class","name":"photoPathSize","type":"PhotoSize","id":3626061121,"comment":"Messages with animated stickers can have a compressed svg (< 300 bytes) to show the outline of the sticker before fetching the actual lottie animation.","arguments":[{"name":"type","type":"string","comment":"Always j"},{"name":"bytes","type":"bytes","comment":"Compressed SVG path payload, see here for decompression instructions"}]},{"kind":"class","name":"geoPointEmpty","type":"GeoPoint","id":286776671,"comment":"Empty constructor.","arguments":[]},{"kind":"class","name":"geoPoint","type":"GeoPoint","id":2997024355,"comment":"GeoPoint.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"long","type":"double","comment":"Longitude"},{"name":"lat","type":"double","comment":"Latitude"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"accuracy_radius","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"The estimated horizontal accuracy of the location, in meters; as defined by the sender."}]},{"kind":"class","name":"auth.sentCode","type":"auth.SentCode","id":1577067778,"comment":"Contains info about a sent verification code.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"type","type":"auth.SentCodeType","comment":"Phone code type"},{"name":"phone_code_hash","type":"string","comment":"Phone code hash, to be stored and later re-used with {@link auth.RawSignInRequest}"},{"name":"next_type","type":"auth.CodeType","typeModifiers":{"predicate":"flags.1"},"comment":"Phone code type that will be sent next, if the phone code is not received within timeout seconds: to send it use {@link auth.RawResendCodeRequest}"},{"name":"timeout","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Timeout for reception of the phone code"}]},{"kind":"class","name":"auth.sentCodeSuccess","type":"auth.SentCode","id":596704836,"comment":"The user successfully authorized using future auth tokens","arguments":[{"name":"authorization","type":"auth.Authorization","comment":"Authorization info"}]},{"kind":"class","name":"auth.authorization","type":"auth.Authorization","id":782418132,"comment":"Contains user authorization info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"setup_password_required","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Suggests the user to set up a 2-step verification password to be able to log in again"},{"name":"otherwise_relogin_days","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Iff setup_password_required is set and the user declines to set a 2-step verification password, they will be able to log into their account via SMS again only after this many days pass."},{"name":"tmp_sessions","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Temporary passport sessions"},{"name":"future_auth_token","type":"bytes","typeModifiers":{"predicate":"flags.2"},"comment":"A future auth token"},{"name":"user","type":"User","comment":"Info on authorized user"}]},{"kind":"class","name":"auth.authorizationSignUpRequired","type":"auth.Authorization","id":1148485274,"comment":"An account with this phone number doesn't exist on telegram: the user has to enter basic information and sign up","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"terms_of_service","type":"help.TermsOfService","typeModifiers":{"predicate":"flags.0"},"comment":"Telegram's terms of service: the user must read and accept the terms of service before signing up to telegram"}]},{"kind":"class","name":"auth.exportedAuthorization","type":"auth.ExportedAuthorization","id":3023364792,"comment":"Data for copying of authorization between data centers.","arguments":[{"name":"id","type":"long","comment":"current user identifier"},{"name":"bytes","type":"bytes","comment":"authorizes key"}]},{"kind":"class","name":"inputNotifyPeer","type":"InputNotifyPeer","id":3099351820,"comment":"Notifications generated by a certain user or group.","arguments":[{"name":"peer","type":"InputPeer","comment":"User or group"}]},{"kind":"class","name":"inputNotifyUsers","type":"InputNotifyPeer","id":423314455,"comment":"Notifications generated by all users.","arguments":[]},{"kind":"class","name":"inputNotifyChats","type":"InputNotifyPeer","id":1251338318,"comment":"Notifications generated by all groups.","arguments":[]},{"kind":"class","name":"inputNotifyBroadcasts","type":"InputNotifyPeer","id":2983951486,"comment":"All channels","arguments":[]},{"kind":"class","name":"inputNotifyForumTopic","type":"InputNotifyPeer","id":1548122514,"comment":"Notifications generated by a topic in a forum.","arguments":[{"name":"peer","type":"InputPeer","comment":"Forum ID"},{"name":"top_msg_id","type":"int","comment":"Topic ID"}]},{"kind":"class","name":"inputPeerNotifySettings","type":"InputPeerNotifySettings","id":3402328802,"comment":"Notification settings.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"show_previews","type":"Bool","typeModifiers":{"predicate":"flags.0"},"comment":"If the text of the message shall be displayed in notification"},{"name":"silent","type":"Bool","typeModifiers":{"predicate":"flags.1"},"comment":"Peer was muted?"},{"name":"mute_until","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Date until which all notifications shall be switched off"},{"name":"sound","type":"NotificationSound","typeModifiers":{"predicate":"flags.3"},"comment":"Identifier of an audio file to play for notifications."},{"name":"stories_muted","type":"Bool","typeModifiers":{"predicate":"flags.6"},"comment":"Whether story notifications should be disabled."},{"name":"stories_hide_sender","type":"Bool","typeModifiers":{"predicate":"flags.7"},"comment":"Whether the sender name should be displayed in story notifications."},{"name":"stories_sound","type":"NotificationSound","typeModifiers":{"predicate":"flags.8"},"comment":"Identifier of an audio file to play for story notifications."}]},{"kind":"class","name":"peerNotifySettings","type":"PeerNotifySettings","id":2573347852,"comment":"Notification settings.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"show_previews","type":"Bool","typeModifiers":{"predicate":"flags.0"},"comment":"(Ternary value) If set, indicates whether or not to display previews of messages in notifications; otherwise the default behavior should be used."},{"name":"silent","type":"Bool","typeModifiers":{"predicate":"flags.1"},"comment":"(Ternary value) If set, indicates whether to mute or unmute the peer; otherwise the default behavior should be used."},{"name":"mute_until","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Mute all notifications until this date"},{"name":"ios_sound","type":"NotificationSound","typeModifiers":{"predicate":"flags.3"},"comment":"Notification sound for the official iOS application"},{"name":"android_sound","type":"NotificationSound","typeModifiers":{"predicate":"flags.4"},"comment":"Notification sound for the official android application"},{"name":"other_sound","type":"NotificationSound","typeModifiers":{"predicate":"flags.5"},"comment":"Notification sound for other applications"},{"name":"stories_muted","type":"Bool","typeModifiers":{"predicate":"flags.6"},"comment":"Whether story notifications should be disabled."},{"name":"stories_hide_sender","type":"Bool","typeModifiers":{"predicate":"flags.7"},"comment":"Whether the sender name should be displayed in story notifications."},{"name":"stories_ios_sound","type":"NotificationSound","typeModifiers":{"predicate":"flags.8"},"comment":"Sound for story notifications on the official iOS application"},{"name":"stories_android_sound","type":"NotificationSound","typeModifiers":{"predicate":"flags.9"},"comment":"Sound for story notifications on the official Android application"},{"name":"stories_other_sound","type":"NotificationSound","typeModifiers":{"predicate":"flags.10"},"comment":"Sound for story notifications on other applications"}]},{"kind":"class","name":"peerSettings","id":2899733598,"type":"PeerSettings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"report_spam","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether we can still report the user for spam"},{"name":"add_contact","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether we can add the user as contact"},{"name":"block_contact","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether we can block the user"},{"name":"share_contact","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether we can share the user's contact"},{"name":"need_contacts_exception","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether a special exception for contacts is needed"},{"name":"report_geo","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether we can report a geo group as irrelevant for this location"},{"name":"autoarchived","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Whether this peer was automatically archived according to {@link RawGlobalPrivacySettings} and can be unarchived"},{"name":"invite_members","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"If set, this is a recently created group chat to which new members can be invited"},{"name":"request_chat_broadcast","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"This flag is set if request_chat_title and request_chat_date fields are set and the join request ยป is related to a channel (otherwise if only the request fields are set, the join request ยป is related to a chat)."},{"name":"business_bot_paused","type":"true","typeModifiers":{"predicate":"flags.11"}},{"name":"business_bot_can_reply","type":"true","typeModifiers":{"predicate":"flags.12"}},{"name":"geo_distance","type":"int","typeModifiers":{"predicate":"flags.6"},"comment":"Distance in meters between us and this peer"},{"name":"request_chat_title","type":"string","typeModifiers":{"predicate":"flags.9"},"comment":"If set, this is a private chat with an administrator of a chat or channel to which the user sent a join request, and this field contains the chat/channel's title."},{"name":"request_chat_date","type":"int","typeModifiers":{"predicate":"flags.9"},"comment":"If set, this is a private chat with an administrator of a chat or channel to which the user sent a join request, and this field contains the timestamp when the join request ยป was sent."},{"name":"business_bot_id","type":"int53","typeModifiers":{"predicate":"flags.13"}},{"name":"business_bot_manage_url","type":"string","typeModifiers":{"predicate":"flags.13"}}],"comment":"List of actions that are possible when interacting with this user, to be shown as suggested actions in the chat action bar ยป, see here ยป for more info."},{"kind":"class","name":"wallPaper","type":"WallPaper","id":2755118061,"comment":"Represents a wallpaper based on an image.","arguments":[{"name":"id","type":"long","comment":"Identifier"},{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"creator","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether we created this wallpaper"},{"name":"default","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this is the default wallpaper"},{"name":"pattern","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this is a pattern wallpaper ยป"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether this wallpaper should be used in dark mode."},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"slug","type":"string","comment":"Unique wallpaper ID, used when generating wallpaper links or importing wallpaper links."},{"name":"document","type":"Document","comment":"The actual wallpaper"},{"name":"settings","type":"WallPaperSettings","typeModifiers":{"predicate":"flags.2"},"comment":"Info on how to generate the wallpaper, according to these instructions ยป."}]},{"kind":"class","name":"wallPaperNoFile","type":"WallPaper","id":3766501654,"comment":"Represents a wallpaper only based on colors/gradients.","arguments":[{"name":"id","type":"long","comment":"Wallpaper ID"},{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"default","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this is the default wallpaper"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether this wallpaper should be used in dark mode."},{"name":"settings","type":"WallPaperSettings","typeModifiers":{"predicate":"flags.2"},"comment":"Info on how to generate the wallpaper."}]},{"kind":"class","name":"inputReportReasonSpam","type":"ReportReason","id":1490799288,"comment":"Report for spam","arguments":[]},{"kind":"class","name":"inputReportReasonViolence","type":"ReportReason","id":505595789,"comment":"Report for violence","arguments":[]},{"kind":"class","name":"inputReportReasonPornography","type":"ReportReason","id":777640226,"comment":"Report for pornography","arguments":[]},{"kind":"class","name":"inputReportReasonChildAbuse","type":"ReportReason","id":2918469347,"comment":"Report for child abuse","arguments":[]},{"kind":"class","name":"inputReportReasonOther","type":"ReportReason","id":3252986545,"comment":"Other","arguments":[]},{"kind":"class","name":"inputReportReasonCopyright","type":"ReportReason","id":2609510714,"comment":"Report for copyrighted content","arguments":[]},{"kind":"class","name":"inputReportReasonGeoIrrelevant","type":"ReportReason","id":3688169197,"comment":"Report an irrelevant geo group","arguments":[]},{"kind":"class","name":"inputReportReasonFake","type":"ReportReason","id":4124956391,"comment":"Report for impersonation","arguments":[]},{"kind":"class","name":"inputReportReasonIllegalDrugs","type":"ReportReason","id":177124030,"comment":"Report for illegal drugs","arguments":[]},{"kind":"class","name":"inputReportReasonPersonalDetails","type":"ReportReason","id":2663876157,"comment":"Report for divulgation of personal details","arguments":[]},{"kind":"class","name":"userFull","id":3432609568,"type":"UserFull","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"blocked","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether you have blocked this user"},{"name":"phone_calls_available","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether this user can make VoIP calls"},{"name":"phone_calls_private","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether this user's privacy settings allow you to call them"},{"name":"can_pin_message","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Whether you can pin messages in the chat with this user, you can do this only for a chat with yourself"},{"name":"has_scheduled","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"Whether scheduled messages are available"},{"name":"video_calls_available","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"Whether the user can receive video calls"},{"name":"voice_messages_forbidden","type":"true","typeModifiers":{"predicate":"flags.20"},"comment":"Whether this user doesn't allow sending voice messages in a private chat with them"},{"name":"translations_disabled","type":"true","typeModifiers":{"predicate":"flags.23"},"comment":"Whether the real-time chat translation popup should be hidden."},{"name":"stories_pinned_available","type":"true","typeModifiers":{"predicate":"flags.26"},"comment":"Whether this user has some pinned stories."},{"name":"blocked_my_stories_from","type":"true","typeModifiers":{"predicate":"flags.27"},"comment":"Whether we've blocked this user, preventing them from seeing our stories ยป."},{"name":"wallpaper_overridden","type":"true","typeModifiers":{"predicate":"flags.28"},"comment":"Whether the other user has chosen a custom wallpaper for us using {@link messages.RawSetChatWallPaperRequest} and the for_both flag, see here ยป for more info."},{"name":"contact_require_premium","type":"true","typeModifiers":{"predicate":"flags.29"}},{"name":"read_dates_private","type":"true","typeModifiers":{"predicate":"flags.30"}},{"name":"flags2","type":"#"},{"name":"sponsored_enabled","type":"true","typeModifiers":{"predicate":"flags2.7"}},{"name":"id","type":"int53","comment":"User ID"},{"name":"about","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Bio of the user"},{"name":"settings","type":"PeerSettings","comment":"Peer settings"},{"name":"personal_photo","type":"Photo","typeModifiers":{"predicate":"flags.21"},"comment":"Personal profile photo, to be shown instead of profile_photo."},{"name":"profile_photo","type":"Photo","typeModifiers":{"predicate":"flags.2"},"comment":"Profile photo"},{"name":"fallback_photo","type":"Photo","typeModifiers":{"predicate":"flags.22"},"comment":"Fallback profile photo, displayed if no photo is present in profile_photo or personal_photo, due to privacy settings."},{"name":"notify_settings","type":"PeerNotifySettings","comment":"Notification settings"},{"name":"bot_info","type":"BotInfo","typeModifiers":{"predicate":"flags.3"},"comment":"For bots, info about the bot (bot commands, etc)"},{"name":"pinned_msg_id","type":"int","typeModifiers":{"predicate":"flags.6"},"comment":"Message ID of the last pinned message"},{"name":"common_chats_count","type":"int","comment":"Chats in common with this user"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.11"},"comment":"Peer folder ID, for more info click here"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.14"},"comment":"Time To Live of all messages in this chat; once a message is this many seconds old, it must be deleted."},{"name":"theme_emoticon","type":"string","typeModifiers":{"predicate":"flags.15"},"comment":"Emoji associated with chat theme"},{"name":"private_forward_name","type":"string","typeModifiers":{"predicate":"flags.16"},"comment":"Anonymized text to be shown instead of the user's name on forwarded messages"},{"name":"bot_group_admin_rights","type":"ChatAdminRights","typeModifiers":{"predicate":"flags.17"},"comment":"A suggested set of administrator rights for the bot, to be shown when adding the bot as admin to a group, see here for more info on how to handle them ยป."},{"name":"bot_broadcast_admin_rights","type":"ChatAdminRights","typeModifiers":{"predicate":"flags.18"},"comment":"A suggested set of administrator rights for the bot, to be shown when adding the bot as admin to a channel, see here for more info on how to handle them ยป."},{"name":"premium_gifts","type":"PremiumGiftOption","typeModifiers":{"predicate":"flags.19","isVector":true},"comment":"Telegram Premium subscriptions gift options"},{"name":"wallpaper","type":"WallPaper","typeModifiers":{"predicate":"flags.24"},"comment":"Wallpaper to use in the private chat with the user."},{"name":"stories","type":"PeerStories","typeModifiers":{"predicate":"flags.25"},"comment":"Active stories ยป"},{"name":"business_work_hours","type":"BusinessWorkHours","typeModifiers":{"predicate":"flags2.0"}},{"name":"business_location","type":"BusinessLocation","typeModifiers":{"predicate":"flags2.1"}},{"name":"business_greeting_message","type":"BusinessGreetingMessage","typeModifiers":{"predicate":"flags2.2"}},{"name":"business_away_message","type":"BusinessAwayMessage","typeModifiers":{"predicate":"flags2.3"}},{"name":"business_intro","type":"BusinessIntro","typeModifiers":{"predicate":"flags2.4"}},{"name":"birthday","type":"Birthday","typeModifiers":{"predicate":"flags2.5"}},{"name":"personal_channel_id","type":"int53","typeModifiers":{"predicate":"flags2.6"}},{"name":"personal_channel_message","type":"int","typeModifiers":{"predicate":"flags2.6"}}],"comment":"Extended user info"},{"kind":"class","name":"contact","type":"Contact","id":341499403,"comment":"A contact of the current user that is registered in the system.","arguments":[{"name":"user_id","type":"int53","comment":"User identifier"},{"name":"mutual","type":"Bool","comment":"Current user is in the user's contact list"}]},{"kind":"class","name":"importedContact","type":"ImportedContact","id":3242081360,"comment":"Successfully imported contact.","arguments":[{"name":"user_id","type":"int53","comment":"User identifier"},{"name":"client_id","type":"long","comment":"The contact's client identifier (passed to one of the InputContact constructors)"}]},{"kind":"class","name":"contactStatus","type":"ContactStatus","id":383348795,"comment":"Contact status: online / offline.","arguments":[{"name":"user_id","type":"int53","comment":"User identifier"},{"name":"status","type":"UserStatus","comment":"Online status"}]},{"kind":"class","name":"contacts.contactsNotModified","type":"contacts.Contacts","id":3075189202,"comment":"Contact list on the server is the same as the list on the client.","arguments":[]},{"kind":"class","name":"contacts.contacts","type":"contacts.Contacts","id":3941105218,"comment":"The current user's contact list and info on users.","arguments":[{"name":"contacts","type":"Contact","typeModifiers":{"isVector":true},"comment":"Contact list"},{"name":"saved_count","type":"int","comment":"Number of contacts that were saved successfully"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"User list"}]},{"kind":"class","name":"contacts.importedContacts","type":"contacts.ImportedContacts","id":2010127419,"comment":"Info on successfully imported contacts.","arguments":[{"name":"imported","type":"ImportedContact","typeModifiers":{"isVector":true},"comment":"List of successfully imported contacts"},{"name":"popular_invites","type":"PopularContact","typeModifiers":{"isVector":true},"comment":"Popular contacts"},{"name":"retry_contacts","type":"long","typeModifiers":{"isVector":true},"comment":"List of contact ids that could not be imported due to system limitation and will need to be imported at a later date."},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users"}]},{"kind":"class","name":"contacts.blocked","type":"contacts.Blocked","id":182326673,"comment":"Full list of blocked users.","arguments":[{"name":"blocked","type":"PeerBlocked","typeModifiers":{"isVector":true},"comment":"List of blocked users"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Blocked chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users"}]},{"kind":"class","name":"contacts.blockedSlice","type":"contacts.Blocked","id":3781575060,"comment":"Incomplete list of blocked users.","arguments":[{"name":"count","type":"int","comment":"Total number of elements in the list"},{"name":"blocked","type":"PeerBlocked","typeModifiers":{"isVector":true},"comment":"List of blocked users"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Blocked chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users"}]},{"kind":"class","name":"messages.dialogs","type":"messages.Dialogs","id":364538944,"comment":"Full list of chats with messages and auxiliary data.","arguments":[{"name":"dialogs","type":"Dialog","typeModifiers":{"isVector":true},"comment":"List of chats"},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"List of last messages from each chat"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of groups mentioned in the chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users mentioned in messages and groups"}]},{"kind":"class","name":"messages.dialogsSlice","type":"messages.Dialogs","id":1910543603,"comment":"Incomplete list of dialogs with messages and auxiliary data.","arguments":[{"name":"count","type":"int","comment":"Total number of dialogs"},{"name":"dialogs","type":"Dialog","typeModifiers":{"isVector":true},"comment":"List of dialogs"},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"List of last messages from dialogs"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of chats mentioned in dialogs"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users mentioned in messages and chats"}]},{"kind":"class","name":"messages.dialogsNotModified","type":"messages.Dialogs","id":4041467286,"comment":"Dialogs haven't changed","arguments":[{"name":"count","type":"int","comment":"Number of dialogs found server-side by the query"}]},{"kind":"class","name":"messages.messages","type":"messages.Messages","id":2356252295,"comment":"Full list of messages with auxiliary data.","arguments":[{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"List of messages"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of chats mentioned in dialogs"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users mentioned in messages and chats"}]},{"kind":"class","name":"messages.messagesSlice","type":"messages.Messages","id":978610270,"comment":"Incomplete list of messages and auxiliary data.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"inexact","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, indicates that the results may be inexact"},{"name":"count","type":"int","comment":"Total number of messages in the list"},{"name":"next_rate","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Rate to use in the offset_rate parameter in the next call to {@link messages.RawSearchGlobalRequest}"},{"name":"offset_id_offset","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Indicates the absolute position of messages[0] within the total result set with count count.
This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}."},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"List of messages"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of chats mentioned in messages"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users mentioned in messages and chats"}]},{"kind":"class","name":"messages.channelMessages","type":"messages.Messages","id":3346446926,"comment":"Channel messages","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"inexact","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, returned results may be inexact"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"count","type":"int","comment":"Total number of results were found server-side (may not be all included here)"},{"name":"offset_id_offset","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Indicates the absolute position of messages[0] within the total result set with count count.
This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}."},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"Found messages"},{"name":"topics","type":"ForumTopic","typeModifiers":{"isVector":true},"comment":"Forum topic information"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"messages.messagesNotModified","type":"messages.Messages","id":1951620897,"comment":"No new messages matching the query were found","arguments":[{"name":"count","type":"int","comment":"Number of results found server-side by the given query"}]},{"kind":"class","name":"messages.chats","type":"messages.Chats","id":1694474197,"comment":"List of chats with auxiliary data.","arguments":[{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of chats"}]},{"kind":"class","name":"messages.chatsSlice","type":"messages.Chats","id":2631405892,"comment":"Partial list of chats, more would have to be fetched with pagination","arguments":[{"name":"count","type":"int","comment":"Total number of results that were found server-side (not all are included in chats)"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats"}]},{"kind":"class","name":"messages.chatFull","type":"messages.ChatFull","id":3856126364,"comment":"Full info about a channel, supergroup, gigagroup or basic group.","arguments":[{"name":"full_chat","type":"ChatFull","comment":"Full info"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"messages.affectedHistory","type":"messages.AffectedHistory","id":3025955281,"comment":"Affected part of communication history with the user or in a chat.","arguments":[{"name":"pts","type":"int","comment":"Number of events occurred in a text box"},{"name":"pts_count","type":"int","comment":"Number of affected events"},{"name":"offset","type":"int","comment":"If a parameter contains positive value, it is necessary to repeat the method call using the given value; during the proceeding of all the history the value itself shall gradually decrease"}]},{"kind":"class","name":"inputMessagesFilterEmpty","type":"MessagesFilter","id":1474492012,"comment":"Filter is absent.","arguments":[]},{"kind":"class","name":"inputMessagesFilterPhotos","type":"MessagesFilter","id":2517214492,"comment":"Filter for messages containing photos.","arguments":[]},{"kind":"class","name":"inputMessagesFilterVideo","type":"MessagesFilter","id":2680163941,"comment":"Filter for messages containing videos.","arguments":[]},{"kind":"class","name":"inputMessagesFilterPhotoVideo","type":"MessagesFilter","id":1458172132,"comment":"Filter for messages containing photos or videos.","arguments":[]},{"kind":"class","name":"inputMessagesFilterDocument","type":"MessagesFilter","id":2665345416,"comment":"Filter for messages containing documents.","arguments":[]},{"kind":"class","name":"inputMessagesFilterUrl","type":"MessagesFilter","id":2129714567,"comment":"Return only messages containing URLs","arguments":[]},{"kind":"class","name":"inputMessagesFilterGif","type":"MessagesFilter","id":4291323271,"comment":"Return only messages containing gifs","arguments":[]},{"kind":"class","name":"inputMessagesFilterVoice","type":"MessagesFilter","id":1358283666,"comment":"Return only messages containing voice notes","arguments":[]},{"kind":"class","name":"inputMessagesFilterMusic","type":"MessagesFilter","id":928101534,"comment":"Return only messages containing audio files","arguments":[]},{"kind":"class","name":"inputMessagesFilterChatPhotos","type":"MessagesFilter","id":975236280,"comment":"Return only chat photo changes","arguments":[]},{"kind":"class","name":"inputMessagesFilterPhoneCalls","type":"MessagesFilter","id":2160695144,"comment":"Return only phone calls","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"missed","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Return only missed phone calls"}]},{"kind":"class","name":"inputMessagesFilterRoundVoice","type":"MessagesFilter","id":2054952868,"comment":"Return only round videos and voice notes","arguments":[]},{"kind":"class","name":"inputMessagesFilterRoundVideo","type":"MessagesFilter","id":3041516115,"comment":"Return only round videos","arguments":[]},{"kind":"class","name":"inputMessagesFilterMyMentions","type":"MessagesFilter","id":3254314650,"comment":"Return only messages where the current user was mentioned.","arguments":[]},{"kind":"class","name":"inputMessagesFilterGeo","type":"MessagesFilter","id":3875695885,"comment":"Return only messages containing geolocations","arguments":[]},{"kind":"class","name":"inputMessagesFilterContacts","type":"MessagesFilter","id":3764575107,"comment":"Return only messages containing contacts","arguments":[]},{"kind":"class","name":"inputMessagesFilterPinned","type":"MessagesFilter","id":464520273,"comment":"Fetch only pinned messages","arguments":[]},{"kind":"class","name":"updateNewMessage","type":"Update","id":522914557,"comment":"New message in a private chat or in a basic group.","arguments":[{"name":"message","type":"Message","comment":"Message"},{"name":"pts","type":"int","comment":"New quantity of actions in a message box"},{"name":"pts_count","type":"int","comment":"Number of generated events"}]},{"kind":"class","name":"updateMessageID","type":"Update","id":1318109142,"comment":"Sent message with random_id client identifier was assigned an identifier.","arguments":[{"name":"id","type":"int","comment":"id identifier of a respective Message"},{"name":"random_id","type":"long","comment":"Previously transferred client random_id identifier"}]},{"kind":"class","name":"updateDeleteMessages","type":"Update","id":2718806245,"comment":"Messages were deleted.","arguments":[{"name":"messages","type":"int","typeModifiers":{"isVector":true},"comment":"List of identifiers of deleted messages"},{"name":"pts","type":"int","comment":"New quality of actions in a message box"},{"name":"pts_count","type":"int","comment":"Number of generated events"}]},{"kind":"class","name":"updateUserTyping","type":"Update","id":3223225727,"comment":"The user is preparing a message; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing","arguments":[{"name":"user_id","type":"int53","comment":"User id"},{"name":"action","type":"SendMessageAction","comment":"Action type"}]},{"kind":"class","name":"updateChatUserTyping","type":"Update","id":2202565360,"comment":"The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing","arguments":[{"name":"chat_id","type":"int53","comment":"Group id"},{"name":"from_id","type":"Peer","comment":"Peer that started typing (can be the chat itself, in case of anonymous admins)."},{"name":"action","type":"SendMessageAction","comment":"Type of action"}]},{"kind":"class","name":"updateChatParticipants","type":"Update","id":125178264,"comment":"Composition of chat participants changed.","arguments":[{"name":"participants","type":"ChatParticipants","comment":"Updated chat participants"}]},{"kind":"class","name":"updateUserStatus","type":"Update","id":3854432478,"comment":"Contact status update.","arguments":[{"name":"user_id","type":"int53","comment":"User identifier"},{"name":"status","type":"UserStatus","comment":"New status"}]},{"kind":"class","name":"updateUserName","type":"Update","id":2810480932,"comment":"Changes the user's first name, last name and username.","arguments":[{"name":"user_id","type":"int53","comment":"User identifier"},{"name":"first_name","type":"string","comment":"New first name. Corresponds to the new value of real_first_name field of the {@link RawUserFull} constructor."},{"name":"last_name","type":"string","comment":"New last name. Corresponds to the new value of real_last_name field of the {@link RawUserFull} constructor."},{"name":"usernames","type":"Username","typeModifiers":{"isVector":true},"comment":"Usernames."}]},{"kind":"class","name":"updateNewAuthorization","type":"Update","id":2303831023,"comment":"A new session logged into the current user's account through an unknown device.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"unconfirmed","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the session is unconfirmed, see here ยป for more info."},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"date","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Authorization date"},{"name":"device","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Name of device, for example Android"},{"name":"location","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Location, for example USA, NY (IP=1.2.3.4)"}]},{"kind":"class","name":"updateNewEncryptedMessage","type":"Update","id":314359194,"comment":"New encrypted message.","arguments":[{"name":"message","type":"EncryptedMessage","comment":"Message"},{"name":"qts","type":"int","comment":"New qts value, see updates ยป for more info."}]},{"kind":"class","name":"updateEncryptedChatTyping","type":"Update","id":386986326,"comment":"Interlocutor is typing a message in an encrypted chat. Update period is 6 second. If upon this time there is no repeated update, it shall be considered that the interlocutor stopped typing.","arguments":[{"name":"chat_id","type":"int","comment":"Chat ID"}]},{"kind":"class","name":"updateEncryption","type":"Update","id":3030575245,"comment":"Change of state in an encrypted chat.","arguments":[{"name":"chat","type":"EncryptedChat","comment":"Encrypted chat"},{"name":"date","type":"int","comment":"Date of change"}]},{"kind":"class","name":"updateEncryptedMessagesRead","type":"Update","id":956179895,"comment":"Communication history in an encrypted chat was marked as read.","arguments":[{"name":"chat_id","type":"int","comment":"Chat ID"},{"name":"max_date","type":"int","comment":"Maximum value of data for read messages"},{"name":"date","type":"int","comment":"Time when messages were read"}]},{"kind":"class","name":"updateChatParticipantAdd","type":"Update","id":1037718609,"comment":"New group member.","arguments":[{"name":"chat_id","type":"int53","comment":"Group ID"},{"name":"user_id","type":"int53","comment":"ID of the new member"},{"name":"inviter_id","type":"int53","comment":"ID of the user, who added member to the group"},{"name":"date","type":"int","comment":"When was the participant added"},{"name":"version","type":"int","comment":"Chat version number"}]},{"kind":"class","name":"updateChatParticipantDelete","type":"Update","id":3811523959,"comment":"A member has left the group.","arguments":[{"name":"chat_id","type":"int53","comment":"Group ID"},{"name":"user_id","type":"int53","comment":"ID of the user"},{"name":"version","type":"int","comment":"Used in basic groups to reorder updates and make sure that all of them was received."}]},{"kind":"class","name":"updateDcOptions","type":"Update","id":2388564083,"comment":"Changes in the data center configuration options.","arguments":[{"name":"dc_options","type":"DcOption","typeModifiers":{"isVector":true},"comment":"New connection options"}]},{"kind":"class","name":"updateNotifySettings","type":"Update","id":3200411887,"comment":"Changes in notification settings.","arguments":[{"name":"peer","type":"NotifyPeer","comment":"Notification source"},{"name":"notify_settings","type":"PeerNotifySettings","comment":"New notification settings"}]},{"kind":"class","name":"updateServiceNotification","type":"Update","id":3957614617,"comment":"A service message for the user.\n\nThe app must show the message to the user upon receiving this update. In case the popup parameter was passed, the text message must be displayed in a popup alert immediately upon receipt. It is recommended to handle the text as you would an ordinary message in terms of highlighting links, etc. The message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications).","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"popup","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, the message must be displayed in a popup."},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"inbox_date","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"When was the notification received
The message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications)."},{"name":"type","type":"string","comment":"String, identical in format and contents to the type field in API errors. Describes type of service message. It is acceptable to ignore repeated messages of the same type within a short period of time (15 minutes)."},{"name":"message","type":"string","comment":"Message text"},{"name":"media","type":"MessageMedia","comment":"Media content (optional)"},{"name":"entities","type":"MessageEntity","typeModifiers":{"isVector":true},"comment":"Message entities for styled text"}]},{"kind":"class","name":"updatePrivacy","type":"Update","id":3996854058,"comment":"Privacy rules were changed","arguments":[{"name":"key","type":"PrivacyKey","comment":"Peers to which the privacy rules apply"},{"name":"rules","type":"PrivacyRule","typeModifiers":{"isVector":true},"comment":"New privacy rules"}]},{"kind":"class","name":"updateUserPhone","type":"Update","id":88680979,"comment":"A user's phone number was changed","arguments":[{"name":"user_id","type":"int53","comment":"User ID"},{"name":"phone","type":"string","comment":"New phone number"}]},{"kind":"class","name":"updateReadHistoryInbox","type":"Update","id":2627162079,"comment":"Incoming messages were read","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Peer folder ID, for more info click here"},{"name":"peer","type":"Peer","comment":"Peer"},{"name":"max_id","type":"int","comment":"Maximum ID of messages read"},{"name":"still_unread_count","type":"int","comment":"Number of messages that are still unread"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updateReadHistoryOutbox","type":"Update","id":791617983,"comment":"Outgoing messages were read","arguments":[{"name":"peer","type":"Peer","comment":"Peer"},{"name":"max_id","type":"int","comment":"Maximum ID of read outgoing messages"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updateWebPage","type":"Update","id":2139689491,"comment":"An instant view webpage preview was generated","arguments":[{"name":"webpage","type":"WebPage","comment":"Webpage preview"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updateReadMessagesContents","type":"Update","id":4163006849,"comment":"Contents of messages in the common message box were read","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"messages","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of read messages"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"},{"name":"date","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"When was the last message in messages marked as read."}]},{"kind":"class","name":"updateChannelTooLong","type":"Update","id":277713951,"comment":"There are new updates in the specified channel, the client must fetch them.
\nIf the difference is too long or if the channel isn't currently in the states, start fetching from the specified pts.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel_id","type":"int53","comment":"The channel"},{"name":"pts","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"The PTS."}]},{"kind":"class","name":"updateChannel","type":"Update","id":1666927625,"comment":"A new channel or supergroup is available, or info about an existing channel has changed and must be refeteched.","arguments":[{"name":"channel_id","type":"int53","comment":"Channel ID"}]},{"kind":"class","name":"updateNewChannelMessage","type":"Update","id":1656358105,"comment":"A new message was sent in a channel/supergroup","arguments":[{"name":"message","type":"Message","comment":"New message"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updateReadChannelInbox","type":"Update","id":2452516368,"comment":"Incoming messages in a channel/supergroup were read","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Peer folder ID, for more info click here"},{"name":"channel_id","type":"int53","comment":"Channel/supergroup ID"},{"name":"max_id","type":"int","comment":"Position up to which all incoming messages are read."},{"name":"still_unread_count","type":"int","comment":"Count of messages weren't read yet"},{"name":"pts","type":"int","comment":"Event count after generation"}]},{"kind":"class","name":"updateDeleteChannelMessages","type":"Update","id":3274529554,"comment":"Some messages in a supergroup/channel were deleted","arguments":[{"name":"channel_id","type":"int53","comment":"Channel ID"},{"name":"messages","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of messages that were deleted"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updateChannelMessageViews","type":"Update","id":4062620680,"comment":"The view counter of a message in a channel has changed","arguments":[{"name":"channel_id","type":"int53","comment":"Channel ID"},{"name":"id","type":"int","comment":"ID of the message"},{"name":"views","type":"int","comment":"New view counter"}]},{"kind":"class","name":"updateChatParticipantAdmin","type":"Update","id":3620364706,"comment":"Admin permissions of a user in a basic group were changed","arguments":[{"name":"chat_id","type":"int53","comment":"Chat ID"},{"name":"user_id","type":"int53","comment":"ID of the (de)admined user"},{"name":"is_admin","type":"Bool","comment":"Whether the user was rendered admin"},{"name":"version","type":"int","comment":"Used in basic groups to reorder updates and make sure that all of them was received."}]},{"kind":"class","name":"updateNewStickerSet","type":"Update","id":1753886890,"comment":"A new stickerset was installed","arguments":[{"name":"stickerset","type":"messages.StickerSet","comment":"The installed stickerset"}]},{"kind":"class","name":"updateStickerSetsOrder","type":"Update","id":196268545,"comment":"The order of stickersets was changed","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"masks","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the updated stickers are mask stickers"},{"name":"emojis","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the updated stickers are custom emoji stickers"},{"name":"order","type":"long","typeModifiers":{"isVector":true},"comment":"New sticker order by sticker ID"}]},{"kind":"class","name":"updateStickerSets","type":"Update","id":834816008,"comment":"Installed stickersets have changed, the client should refetch them as described in the docs.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"masks","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether mask stickersets have changed"},{"name":"emojis","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the list of installed custom emoji stickersets has changed"}]},{"kind":"class","name":"updateSavedGifs","type":"Update","id":2473931806,"comment":"The saved gif list has changed, the client should refetch it using {@link messages.RawGetSavedGifsRequest}","arguments":[]},{"kind":"class","name":"updateBotInlineQuery","type":"Update","id":1232025500,"comment":"An incoming inline query","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"query_id","type":"long","comment":"Query ID"},{"name":"user_id","type":"int53","comment":"User that sent the query"},{"name":"query","type":"string","comment":"Text of query"},{"name":"geo","type":"GeoPoint","typeModifiers":{"predicate":"flags.0"},"comment":"Attached geolocation"},{"name":"peer_type","type":"InlineQueryPeerType","typeModifiers":{"predicate":"flags.1"},"comment":"Type of the chat from which the inline query was sent."},{"name":"offset","type":"string","comment":"Offset to navigate through results"}]},{"kind":"class","name":"updateBotInlineSend","type":"Update","id":317794823,"comment":"The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"user_id","type":"int53","comment":"The user that chose the result"},{"name":"query","type":"string","comment":"The query that was used to obtain the result"},{"name":"geo","type":"GeoPoint","typeModifiers":{"predicate":"flags.0"},"comment":"Optional. Sender location, only for bots that require user location"},{"name":"id","type":"string","comment":"The unique identifier for the result that was chosen"},{"name":"msg_id","type":"InputBotInlineMessageID","typeModifiers":{"predicate":"flags.1"},"comment":"Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message."}]},{"kind":"class","name":"updateEditChannelMessage","type":"Update","id":457133559,"comment":"A message was edited in a channel/supergroup","arguments":[{"name":"message","type":"Message","comment":"The new message"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updateBotCallbackQuery","type":"Update","id":3117401229,"comment":"A callback button was pressed, and the button data was sent to the bot that created the button","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"query_id","type":"long","comment":"Query ID"},{"name":"user_id","type":"int53","comment":"ID of the user that pressed the button"},{"name":"peer","type":"Peer","comment":"Chat where the inline keyboard was sent"},{"name":"msg_id","type":"int","comment":"Message ID"},{"name":"chat_instance","type":"long","comment":"Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games."},{"name":"data","type":"bytes","typeModifiers":{"predicate":"flags.0"},"comment":"Callback data"},{"name":"game_short_name","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Short name of a Game to be returned, serves as the unique identifier for the game"}]},{"kind":"class","name":"updateEditMessage","type":"Update","id":3825430691,"comment":"A message was edited","arguments":[{"name":"message","type":"Message","comment":"The new edited message"},{"name":"pts","type":"int","comment":"PTS"},{"name":"pts_count","type":"int","comment":"PTS count"}]},{"kind":"class","name":"updateInlineBotCallbackQuery","type":"Update","id":1763610706,"comment":"This notification is received by bots when a button is pressed","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"query_id","type":"long","comment":"Query ID"},{"name":"user_id","type":"int53","comment":"ID of the user that pressed the button"},{"name":"msg_id","type":"InputBotInlineMessageID","comment":"ID of the inline message with the button"},{"name":"chat_instance","type":"long","comment":"Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games."},{"name":"data","type":"bytes","typeModifiers":{"predicate":"flags.0"},"comment":"Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field."},{"name":"game_short_name","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Short name of a Game to be returned, serves as the unique identifier for the game"}]},{"kind":"class","name":"updateReadChannelOutbox","type":"Update","id":3076495785,"comment":"Outgoing messages in a channel/supergroup were read","arguments":[{"name":"channel_id","type":"int53","comment":"Channel/supergroup ID"},{"name":"max_id","type":"int","comment":"Position up to which all outgoing messages are read."}]},{"kind":"class","name":"updateDraftMessage","type":"Update","id":457829485,"comment":"Notifies a change of a message draft.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"Peer","comment":"The peer to which the draft is associated"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"ID of the forum topic to which the draft is associated"},{"name":"draft","type":"DraftMessage","comment":"The draft"}]},{"kind":"class","name":"updateReadFeaturedStickers","type":"Update","id":1461528386,"comment":"Some featured stickers were marked as read","arguments":[]},{"kind":"class","name":"updateRecentStickers","type":"Update","id":2588027936,"comment":"The recent sticker list was updated","arguments":[]},{"kind":"class","name":"updateConfig","type":"Update","id":2720652550,"comment":"The server-side configuration has changed; the client should re-fetch the config using {@link help.RawGetConfigRequest}","arguments":[]},{"kind":"class","name":"updatePtsChanged","type":"Update","id":861169551,"comment":"Common message box sequence PTS has changed, state has to be refetched using updates.getState","arguments":[]},{"kind":"class","name":"updateChannelWebPage","type":"Update","id":791390623,"comment":"A webpage preview of a link in a channel/supergroup message was generated","arguments":[{"name":"channel_id","type":"int53","comment":"Channel/supergroup ID"},{"name":"webpage","type":"WebPage","comment":"Generated webpage preview"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updateDialogPinned","type":"Update","id":1852826908,"comment":"A dialog was pinned/unpinned","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the dialog was pinned"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Peer folder ID, for more info click here"},{"name":"peer","type":"DialogPeer","comment":"The dialog"}]},{"kind":"class","name":"updatePinnedDialogs","type":"Update","id":4195302562,"comment":"Pinned dialogs were updated","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Peer folder ID, for more info click here"},{"name":"order","type":"DialogPeer","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"New order of pinned dialogs"}]},{"kind":"class","name":"updateBotWebhookJSON","type":"Update","id":2199371971,"comment":"A new incoming event; for bots only","arguments":[{"name":"data","type":"DataJSON","comment":"The event"}]},{"kind":"class","name":"updateBotWebhookJSONQuery","type":"Update","id":2610053286,"comment":"A new incoming query; for bots only","arguments":[{"name":"query_id","type":"long","comment":"Query identifier"},{"name":"data","type":"DataJSON","comment":"Query data"},{"name":"timeout","type":"int","comment":"Query timeout"}]},{"kind":"class","name":"updateBotShippingQuery","type":"Update","id":3048144253,"comment":"This object contains information about an incoming shipping query.","arguments":[{"name":"query_id","type":"long","comment":"Unique query identifier"},{"name":"user_id","type":"int53","comment":"User who sent the query"},{"name":"payload","type":"bytes","comment":"Bot specified invoice payload"},{"name":"shipping_address","type":"PostAddress","comment":"User specified shipping address"}]},{"kind":"class","name":"updateBotPrecheckoutQuery","type":"Update","id":2359990934,"comment":"This object contains information about an incoming pre-checkout query.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"query_id","type":"long","comment":"Unique query identifier"},{"name":"user_id","type":"int53","comment":"User who sent the query"},{"name":"payload","type":"bytes","comment":"Bot specified invoice payload"},{"name":"info","type":"PaymentRequestedInfo","typeModifiers":{"predicate":"flags.0"},"comment":"Order info provided by the user"},{"name":"shipping_option_id","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Identifier of the shipping option chosen by the user"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"total_amount","type":"long","comment":"Total amount in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}]},{"kind":"class","name":"updatePhoneCall","type":"Update","id":2869914398,"comment":"An incoming phone call","arguments":[{"name":"phone_call","type":"PhoneCall","comment":"Phone call"}]},{"kind":"class","name":"updateLangPackTooLong","type":"Update","id":1180041828,"comment":"A language pack has changed, the client should manually fetch the changed strings using {@link langpack.RawGetDifferenceRequest}","arguments":[{"name":"lang_code","type":"string","comment":"Language code"}]},{"kind":"class","name":"updateLangPack","type":"Update","id":1442983757,"comment":"Language pack updated","arguments":[{"name":"difference","type":"LangPackDifference","comment":"Changed strings"}]},{"kind":"class","name":"updateFavedStickers","type":"Update","id":3843135853,"comment":"The list of favorited stickers was changed, the client should call {@link messages.RawGetFavedStickersRequest} to refetch the new list","arguments":[]},{"kind":"class","name":"updateChannelReadMessagesContents","type":"Update","id":3928556893,"comment":"The specified channel/supergroup messages were read","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel_id","type":"int53","comment":"Channel/supergroup ID"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Forum topic ID."},{"name":"messages","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of messages that were read"}]},{"kind":"class","name":"updateContactsReset","type":"Update","id":1887741886,"comment":"All contacts were deleted","arguments":[]},{"kind":"class","name":"updateChannelAvailableMessages","type":"Update","id":2990524056,"comment":"The history of a channel/supergroup was hidden.","arguments":[{"name":"channel_id","type":"int53","comment":"Channel/supergroup ID"},{"name":"available_min_id","type":"int","comment":"Identifier of a maximum unavailable message in a channel due to hidden history."}]},{"kind":"class","name":"updateDialogUnreadMark","type":"Update","id":3781450179,"comment":"The manual unread mark of a chat was changed","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"unread","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Was the chat marked or unmarked as read"},{"name":"peer","type":"DialogPeer","comment":"The dialog"}]},{"kind":"class","name":"updateMessagePoll","type":"Update","id":2896258427,"comment":"The results of a poll have changed","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"poll_id","type":"long","comment":"Poll ID"},{"name":"poll","type":"Poll","typeModifiers":{"predicate":"flags.0"},"comment":"If the server knows the client hasn't cached this poll yet, the poll itself"},{"name":"results","type":"PollResults","comment":"New poll results"}]},{"kind":"class","name":"updateChatDefaultBannedRights","type":"Update","id":1421875280,"comment":"Default banned rights in a normal chat were updated","arguments":[{"name":"peer","type":"Peer","comment":"The chat"},{"name":"default_banned_rights","type":"ChatBannedRights","comment":"New default banned rights"},{"name":"version","type":"int","comment":"Version"}]},{"kind":"class","name":"updateFolderPeers","type":"Update","id":422972864,"comment":"The peer list of a peer folder was updated","arguments":[{"name":"folder_peers","type":"FolderPeer","typeModifiers":{"isVector":true},"comment":"New peer list"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updatePeerSettings","type":"Update","id":1786671974,"comment":"Settings of a certain peer have changed","arguments":[{"name":"peer","type":"Peer","comment":"The peer"},{"name":"settings","type":"PeerSettings","comment":"Associated peer settings"}]},{"kind":"class","name":"updatePeerLocated","type":"Update","id":3031420848,"comment":"List of peers near you was updated","arguments":[{"name":"peers","type":"PeerLocated","typeModifiers":{"isVector":true},"comment":"Geolocated peer list update"}]},{"kind":"class","name":"updateNewScheduledMessage","type":"Update","id":967122427,"comment":"A message was added to the schedule queue of a chat","arguments":[{"name":"message","type":"Message","comment":"Message"}]},{"kind":"class","name":"updateDeleteScheduledMessages","type":"Update","id":2424728814,"comment":"Some scheduled messages were deleted from the schedule queue of a chat","arguments":[{"name":"peer","type":"Peer","comment":"Peer"},{"name":"messages","type":"int","typeModifiers":{"isVector":true},"comment":"Deleted scheduled messages"}]},{"kind":"class","name":"updateTheme","type":"Update","id":2182544291,"comment":"A cloud theme was updated","arguments":[{"name":"theme","type":"Theme","comment":"Theme"}]},{"kind":"class","name":"updateGeoLiveViewed","type":"Update","id":2267003193,"comment":"Live geo position message was viewed","arguments":[{"name":"peer","type":"Peer","comment":"The user that viewed the live geo position"},{"name":"msg_id","type":"int","comment":"Message ID of geo position message"}]},{"kind":"class","name":"updateLoginToken","type":"Update","id":1448076945,"comment":"A login token (for login via QR code) was accepted.","arguments":[]},{"kind":"class","name":"updateMessagePollVote","type":"Update","id":619974263,"comment":"A specific peer has voted in a poll","arguments":[{"name":"poll_id","type":"long","comment":"Poll ID"},{"name":"peer","type":"Peer","comment":"The peer that voted in the poll"},{"name":"options","type":"bytes","typeModifiers":{"isVector":true},"comment":"Chosen option(s)"},{"name":"qts","type":"int","comment":"New qts value, see updates ยป for more info."}]},{"kind":"class","name":"updateDialogFilter","type":"Update","id":654302845,"comment":"A new folder was added","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"int","comment":"Folder ID"},{"name":"filter","type":"DialogFilter","typeModifiers":{"predicate":"flags.0"},"comment":"Folder info"}]},{"kind":"class","name":"updateDialogFilterOrder","type":"Update","id":2782339333,"comment":"New folder order","arguments":[{"name":"order","type":"int","typeModifiers":{"isVector":true},"comment":"Ordered folder IDs"}]},{"kind":"class","name":"updateDialogFilters","type":"Update","id":889491791,"comment":"Clients should update folder info","arguments":[]},{"kind":"class","name":"updatePhoneCallSignalingData","type":"Update","id":643940105,"comment":"Incoming phone call signaling payload","arguments":[{"name":"phone_call_id","type":"long","comment":"Phone call ID"},{"name":"data","type":"bytes","comment":"Signaling payload"}]},{"kind":"class","name":"updateChannelMessageForwards","type":"Update","id":3533318132,"comment":"The forward counter of a message in a channel has changed","arguments":[{"name":"channel_id","type":"int53","comment":"Channel ID"},{"name":"id","type":"int","comment":"ID of the message"},{"name":"forwards","type":"int","comment":"New forward counter"}]},{"kind":"class","name":"updateReadChannelDiscussionInbox","type":"Update","id":3601962310,"comment":"Incoming comments in a discussion thread were marked as read","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel_id","type":"int53","comment":"Discussion group ID"},{"name":"top_msg_id","type":"int","comment":"ID of the group message that started the thread (message in linked discussion group)"},{"name":"read_max_id","type":"int","comment":"Message ID of latest read incoming message for this thread"},{"name":"broadcast_id","type":"int53","typeModifiers":{"predicate":"flags.0"},"comment":"If set, contains the ID of the channel that contains the post that started the comment thread in the discussion group (channel_id)"},{"name":"broadcast_post","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If set, contains the ID of the channel post that started the comment thread"}]},{"kind":"class","name":"updateReadChannelDiscussionOutbox","type":"Update","id":1767677564,"comment":"Outgoing comments in a discussion thread were marked as read","arguments":[{"name":"channel_id","type":"int53","comment":"Supergroup ID"},{"name":"top_msg_id","type":"int","comment":"ID of the group message that started the thread"},{"name":"read_max_id","type":"int","comment":"Message ID of latest read outgoing message for this thread"}]},{"kind":"class","name":"updatePeerBlocked","type":"Update","id":3957356370,"comment":"We blocked a peer, see here ยป for more info on blocklists.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"blocked","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the peer was blocked or unblocked"},{"name":"blocked_my_stories_from","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the peer was added/removed to/from the story blocklist; if not set, this update affects the main blocklist, see here ยป for more info."},{"name":"peer_id","type":"Peer","comment":"The (un)blocked peer"}]},{"kind":"class","name":"updateChannelUserTyping","type":"Update","id":2357774627,"comment":"A user is typing in a supergroup, channel or message thread","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel_id","type":"int53","comment":"Channel ID"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Thread ID"},{"name":"from_id","type":"Peer","comment":"The peer that is typing"},{"name":"action","type":"SendMessageAction","comment":"Whether the user is typing, sending a media or doing something else"}]},{"kind":"class","name":"updatePinnedMessages","type":"Update","id":3984976565,"comment":"Some messages were pinned in a chat","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the messages were pinned or unpinned"},{"name":"peer","type":"Peer","comment":"Peer"},{"name":"messages","type":"int","typeModifiers":{"isVector":true},"comment":"Message IDs"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updatePinnedChannelMessages","type":"Update","id":1538885128,"comment":"Messages were pinned/unpinned in a channel/supergroup","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the messages were pinned or unpinned"},{"name":"channel_id","type":"int53","comment":"Channel ID"},{"name":"messages","type":"int","typeModifiers":{"isVector":true},"comment":"Messages"},{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"updateChat","type":"Update","id":4170869326,"comment":"A new chat is available","arguments":[{"name":"chat_id","type":"int53","comment":"Chat ID"}]},{"kind":"class","name":"updateGroupCallParticipants","type":"Update","id":4075543374,"comment":"The participant list of a certain group call has changed","arguments":[{"name":"call","type":"InputGroupCall","comment":"Group call"},{"name":"participants","type":"GroupCallParticipant","typeModifiers":{"isVector":true},"comment":"New participant list"},{"name":"version","type":"int","comment":"Version"}]},{"kind":"class","name":"updateGroupCall","type":"Update","id":347227392,"comment":"A new groupcall was started","arguments":[{"name":"chat_id","type":"int53","comment":"The channel/supergroup where this group call or livestream takes place"},{"name":"call","type":"GroupCall","comment":"Info about the group call or livestream"}]},{"kind":"class","name":"updatePeerHistoryTTL","type":"Update","id":3147544997,"comment":"The Time-To-Live for messages sent by the current user in a specific chat has changed","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"Peer","comment":"The chat"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"The new Time-To-Live"}]},{"kind":"class","name":"updateChatParticipant","type":"Update","id":3498534458,"comment":"A user has joined or left a specific chat","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"chat_id","type":"int53","comment":"Chat ID"},{"name":"date","type":"int","comment":"When did this event occur"},{"name":"actor_id","type":"int53","comment":"User that triggered the change (inviter, admin that kicked the user, or the even the user_id itself)"},{"name":"user_id","type":"int53","comment":"User that was affected by the change"},{"name":"prev_participant","type":"ChatParticipant","typeModifiers":{"predicate":"flags.0"},"comment":"Previous participant info (empty if this participant just joined)"},{"name":"new_participant","type":"ChatParticipant","typeModifiers":{"predicate":"flags.1"},"comment":"New participant info (empty if this participant just left)"},{"name":"invite","type":"ExportedChatInvite","typeModifiers":{"predicate":"flags.2"},"comment":"The invite that was used to join the group"},{"name":"qts","type":"int","comment":"New qts value, see updates ยป for more info."}]},{"kind":"class","name":"updateChannelParticipant","type":"Update","id":2556246715,"comment":"A participant has left, joined, was banned or admined in a channel or supergroup.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"via_chatlist","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the participant joined using a chat folder deep link ยป."},{"name":"channel_id","type":"int53","comment":"Channel ID"},{"name":"date","type":"int","comment":"Date of the event"},{"name":"actor_id","type":"int53","comment":"User that triggered the change (inviter, admin that kicked the user, or the even the user_id itself)"},{"name":"user_id","type":"int53","comment":"User that was affected by the change"},{"name":"prev_participant","type":"ChannelParticipant","typeModifiers":{"predicate":"flags.0"},"comment":"Previous participant status"},{"name":"new_participant","type":"ChannelParticipant","typeModifiers":{"predicate":"flags.1"},"comment":"New participant status"},{"name":"invite","type":"ExportedChatInvite","typeModifiers":{"predicate":"flags.2"},"comment":"Chat invite used to join the channel/supergroup"},{"name":"qts","type":"int","comment":"New qts value, see updates ยป for more info."}]},{"kind":"class","name":"updateBotStopped","type":"Update","id":3297184329,"comment":"A bot was stopped or re-started.","arguments":[{"name":"user_id","type":"int53","comment":"The user ID"},{"name":"date","type":"int","comment":"When did this action occur"},{"name":"stopped","type":"Bool","comment":"Whether the bot was stopped or started"},{"name":"qts","type":"int","comment":"New qts value, see updates ยป for more info."}]},{"kind":"class","name":"updateGroupCallConnection","type":"Update","id":192428418,"comment":"New WebRTC parameters","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"presentation","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Are these parameters related to the screen capture session currently in progress?"},{"name":"params","type":"DataJSON","comment":"WebRTC parameters"}]},{"kind":"class","name":"updateBotCommands","type":"Update","id":1299263278,"comment":"The command set of a certain bot in a certain chat has changed.","arguments":[{"name":"peer","type":"Peer","comment":"The affected chat"},{"name":"bot_id","type":"int53","comment":"ID of the bot that changed its command set"},{"name":"commands","type":"BotCommand","typeModifiers":{"isVector":true},"comment":"New bot commands"}]},{"kind":"class","name":"updatePendingJoinRequests","type":"Update","id":1885586395,"comment":"Someone has requested to join a chat or channel","arguments":[{"name":"peer","type":"Peer","comment":"Chat or channel"},{"name":"requests_pending","type":"int","comment":"Number of pending join requests ยป for the chat or channel"},{"name":"recent_requesters","type":"int53","typeModifiers":{"isVector":true},"comment":"IDs of users that have recently requested to join"}]},{"kind":"class","name":"updateBotChatInviteRequester","type":"Update","id":299870598,"comment":"Someone has requested to join a chat or channel (bots only, users will receive an {@link RawUpdatePendingJoinRequests}, instead)","arguments":[{"name":"peer","type":"Peer","comment":"The chat or channel in question"},{"name":"date","type":"int","comment":"When was the join request ยป made"},{"name":"user_id","type":"int53","comment":"The user ID that is asking to join the chat or channel"},{"name":"about","type":"string","comment":"Bio of the user"},{"name":"invite","type":"ExportedChatInvite","comment":"Chat invite link that was used by the user to send the join request ยป"},{"name":"qts","type":"int","comment":"QTS event sequence identifier"}]},{"kind":"class","name":"updateMessageReactions","type":"Update","id":1578843320,"comment":"New message reactions ยป are available","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"Peer","comment":"Peer"},{"name":"msg_id","type":"int","comment":"Message ID"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Forum topic ID"},{"name":"reactions","type":"MessageReactions","comment":"Reactions"}]},{"kind":"class","name":"updateAttachMenuBots","type":"Update","id":397910539,"comment":"The list of installed attachment menu entries ยป has changed, use {@link messages.RawGetAttachMenuBotsRequest} to fetch the updated list.","arguments":[]},{"kind":"class","name":"updateWebViewResultSent","type":"Update","id":361936797,"comment":"Indicates to a bot that a webview was closed and an inline message was sent on behalf of the user using {@link messages.RawSendWebViewResultMessageRequest}","arguments":[{"name":"query_id","type":"long","comment":"Web app interaction ID"}]},{"kind":"class","name":"updateBotMenuButton","type":"Update","id":347625491,"comment":"The menu button behavior for the specified bot has changed","arguments":[{"name":"bot_id","type":"int53","comment":"Bot ID"},{"name":"button","type":"BotMenuButton","comment":"New menu button"}]},{"kind":"class","name":"updateSavedRingtones","type":"Update","id":1960361625,"comment":"The list of saved notification sounds has changed, use {@link account.RawGetSavedRingtonesRequest} to fetch the new list.","arguments":[]},{"kind":"class","name":"updateTranscribedAudio","type":"Update","id":8703322,"comment":"A pending voice message transcription ยป initiated with {@link messages.RawTranscribeAudioRequest} was updated.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pending","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this transcription is still pending and further {@link RawUpdateTranscribedAudio} about it will be sent in the future."},{"name":"peer","type":"Peer","comment":"Peer of the transcribed message"},{"name":"msg_id","type":"int","comment":"Transcribed message ID"},{"name":"transcription_id","type":"long","comment":"Transcription ID"},{"name":"text","type":"string","comment":"Transcribed text"}]},{"kind":"class","name":"updateReadFeaturedEmojiStickers","type":"Update","id":4216080748,"comment":"Some featured custom emoji stickers were marked as read","arguments":[]},{"kind":"class","name":"updateUserEmojiStatus","type":"Update","id":674706841,"comment":"The emoji status of a certain user has changed","arguments":[{"name":"user_id","type":"int53","comment":"User ID"},{"name":"emoji_status","type":"EmojiStatus","comment":"New emoji status"}]},{"kind":"class","name":"updateRecentEmojiStatuses","type":"Update","id":821314523,"comment":"The list of recent emoji statuses has changed","arguments":[]},{"kind":"class","name":"updateRecentReactions","type":"Update","id":1870160884,"comment":"The list of recent message reactions has changed","arguments":[]},{"kind":"class","name":"updateMoveStickerSetToTop","type":"Update","id":2264715141,"comment":"A stickerset was just moved to top, see here for more info ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"masks","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"This update is referring to a mask stickerset"},{"name":"emojis","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"This update is referring to a custom emoji stickerset"},{"name":"stickerset","type":"long","comment":"Stickerset ID"}]},{"kind":"class","name":"updateMessageExtendedMedia","type":"Update","id":1517529484,"comment":"Extended media update","arguments":[{"name":"peer","type":"Peer","comment":"Peer"},{"name":"msg_id","type":"int","comment":"Message ID"},{"name":"extended_media","type":"MessageExtendedMedia","comment":"Extended media"}]},{"kind":"class","name":"updateChannelPinnedTopic","type":"Update","id":422509539,"comment":"A forum topic ยป was pinned or unpinned.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the topic was pinned or unpinned"},{"name":"channel_id","type":"int53","comment":"The forum ID"},{"name":"topic_id","type":"int","comment":"The topic ID"}]},{"kind":"class","name":"updateChannelPinnedTopics","type":"Update","id":4263085570,"comment":"The pinned topics of a forum have changed.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel_id","type":"int53","comment":"Forum ID."},{"name":"order","type":"int","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Ordered list containing the IDs of all pinned topics."}]},{"kind":"class","name":"updateUser","type":"Update","id":542282808,"comment":"User information was updated, it must be refetched using {@link users.RawGetFullUserRequest}.","arguments":[{"name":"user_id","type":"int53","comment":"User ID"}]},{"kind":"class","name":"updateAutoSaveSettings","type":"Update","id":3959795863,"comment":"Media autosave settings have changed and must be refetched using {@link account.RawGetAutoSaveSettingsRequest}.","arguments":[]},{"kind":"class","name":"updateStory","type":"Update","id":1974712216,"comment":"A new story was posted.","arguments":[{"name":"peer","type":"Peer","comment":"ID of the poster."},{"name":"story","type":"StoryItem","comment":"The story that was posted."}]},{"kind":"class","name":"updateReadStories","type":"Update","id":4149121835,"comment":"Stories of a specific peer were marked as read.","arguments":[{"name":"peer","type":"Peer","comment":"The peer"},{"name":"max_id","type":"int","comment":"ID of the last story that was marked as read"}]},{"kind":"class","name":"updateStoryID","type":"Update","id":468923833,"comment":"A story was successfully uploaded.\n\nOnce a story is successfully uploaded, an {@link RawUpdateStoryID} will be returned, indicating the story ID (id) that was attributed to the story (like for messages, random_id indicates the random_id that was passed to {@link stories.RawSendStoryRequest}: this way, you can tell which story was assigned a specific id by checking which {@link stories.RawSendStoryRequest} call has the returned random_id).","arguments":[{"name":"id","type":"int","comment":"The id that was attributed to the story."},{"name":"random_id","type":"long","comment":"The random_id that was passed to {@link stories.RawSendStoryRequest}."}]},{"kind":"class","name":"updateStoriesStealthMode","type":"Update","id":738741697,"comment":"Indicates that stories stealth mode was activated.","arguments":[{"name":"stealth_mode","type":"StoriesStealthMode","comment":"Information about the current stealth mode session."}]},{"kind":"class","name":"updateSentStoryReaction","type":"Update","id":2103604867,"comment":"Indicates we reacted to a story ยป.","arguments":[{"name":"peer","type":"Peer","comment":"The peer that sent the story"},{"name":"story_id","type":"int","comment":"ID of the story we reacted to"},{"name":"reaction","type":"Reaction","comment":"The reaction that was sent"}]},{"kind":"class","name":"updateBotChatBoost","type":"Update","id":2421019804,"comment":"A channel boost has changed (bots only)","arguments":[{"name":"peer","type":"Peer","comment":"Channel"},{"name":"boost","type":"Boost","comment":"New boost information"},{"name":"qts","type":"int","comment":"QTS event sequence identifier"}]},{"kind":"class","name":"updateChannelViewForumAsMessages","type":"Update","id":129403168,"comment":"Users may also choose to display messages from all topics as if they were sent to a normal group, using a \"View as messages\" setting in the local client.
\nThis setting only affects the current account, and is synced to other logged in sessions using the {@link channels.RawToggleViewForumAsMessagesRequest} method; invoking this method will update the value of the view_forum_as_messages flag of {@link RawChannelFull} or {@link RawDialog} and emit an {@link RawUpdateChannelViewForumAsMessages}.","arguments":[{"name":"channel_id","type":"int53","comment":"The forum ID"},{"name":"enabled","type":"Bool","comment":"The new value of the toggle."}]},{"kind":"class","name":"updatePeerWallpaper","type":"Update","id":2923368477,"comment":"The wallpaper ยป of a given peer has changed.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"wallpaper_overridden","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the other user has chosen a custom wallpaper for us using {@link messages.RawSetChatWallPaperRequest} and the for_both flag, see here ยป for more info."},{"name":"peer","type":"Peer","comment":"The peer where the wallpaper has changed."},{"name":"wallpaper","type":"WallPaper","typeModifiers":{"predicate":"flags.0"},"comment":"The new wallpaper, if none the wallpaper was removed and the default wallpaper should be used."}]},{"kind":"class","name":"updateBotMessageReaction","type":"Update","id":2887898062,"comment":"Bots only: a user has changed their reactions on a message with public reactions.","arguments":[{"name":"peer","type":"Peer","comment":"Peer of the reacted-to message."},{"name":"msg_id","type":"int","comment":"ID of the reacted-to message."},{"name":"date","type":"int","comment":"Date of the change."},{"name":"actor","type":"Peer","comment":"The user that (un)reacted to the message."},{"name":"old_reactions","type":"Reaction","typeModifiers":{"isVector":true},"comment":"Old reactions"},{"name":"new_reactions","type":"Reaction","typeModifiers":{"isVector":true},"comment":"New reactions"},{"name":"qts","type":"int","comment":"QTS event sequence identifier"}]},{"kind":"class","name":"updateBotMessageReactions","type":"Update","id":164329305,"comment":"Bots only: the number of reactions on a message with anonymous reactions has changed.","arguments":[{"name":"peer","type":"Peer","comment":"Peer of the reacted-to message."},{"name":"msg_id","type":"int","comment":"ID of the reacted-to message."},{"name":"date","type":"int","comment":"Date of the change."},{"name":"reactions","type":"ReactionCount","typeModifiers":{"isVector":true},"comment":"New reaction counters."},{"name":"qts","type":"int","comment":"QTS event sequence identifier"}]},{"kind":"class","name":"updateSavedDialogPinned","type":"Update","id":2930744948,"comment":"A saved message dialog was pinned/unpinned","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the dialog was pinned"},{"name":"peer","type":"DialogPeer","comment":"The dialog"}]},{"kind":"class","name":"updatePinnedSavedDialogs","type":"Update","id":1751942566,"comment":"Pinned saved dialogs ยป were updated","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"order","type":"DialogPeer","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"New order of pinned saved dialogs"}]},{"kind":"class","name":"updateSavedReactionTags","type":"Update","id":969307186,"arguments":[]},{"kind":"class","name":"updateSmsJob","type":"Update","id":4049758676,"arguments":[{"name":"job_id","type":"string"}]},{"kind":"class","name":"updateQuickReplies","type":"Update","id":4182182578,"arguments":[{"name":"quick_replies","type":"QuickReply","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"updateNewQuickReply","type":"Update","id":4114458391,"arguments":[{"name":"quick_reply","type":"QuickReply"}]},{"kind":"class","name":"updateDeleteQuickReply","type":"Update","id":1407644140,"arguments":[{"name":"shortcut_id","type":"int"}]},{"kind":"class","name":"updateQuickReplyMessage","type":"Update","id":1040518415,"arguments":[{"name":"message","type":"Message"}]},{"kind":"class","name":"updateDeleteQuickReplyMessages","type":"Update","id":1450174413,"arguments":[{"name":"shortcut_id","type":"int"},{"name":"messages","type":"int","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"updateBotBusinessConnect","type":"Update","id":2330315130,"arguments":[{"name":"connection","type":"BotBusinessConnection"},{"name":"qts","type":"int"}]},{"kind":"class","name":"updateBotNewBusinessMessage","type":"Update","id":2648388732,"arguments":[{"name":"flags","type":"#"},{"name":"connection_id","type":"string"},{"name":"message","type":"Message"},{"name":"reply_to_message","type":"Message","typeModifiers":{"predicate":"flags.0"}},{"name":"qts","type":"int"}]},{"kind":"class","name":"updateBotEditBusinessMessage","type":"Update","id":132077692,"arguments":[{"name":"flags","type":"#"},{"name":"connection_id","type":"string"},{"name":"message","type":"Message"},{"name":"reply_to_message","type":"Message","typeModifiers":{"predicate":"flags.0"}},{"name":"qts","type":"int"}]},{"kind":"class","name":"updateBotDeleteBusinessMessage","type":"Update","id":2687146030,"arguments":[{"name":"connection_id","type":"string"},{"name":"peer","type":"Peer"},{"name":"messages","type":"int","typeModifiers":{"isVector":true}},{"name":"qts","type":"int"}]},{"kind":"class","name":"updateNewStoryReaction","type":"Update","id":405070859,"arguments":[{"name":"story_id","type":"int"},{"name":"peer","type":"Peer"},{"name":"reaction","type":"Reaction"}]},{"kind":"class","name":"updateBroadcastRevenueTransactions","type":"Update","id":3755565557,"arguments":[{"name":"peer","type":"Peer"},{"name":"balances","type":"BroadcastRevenueBalances"}]},{"kind":"class","name":"updateStarsBalance","type":"Update","id":263737752,"arguments":[{"name":"balance","type":"long"}]},{"kind":"class","name":"updateBusinessBotCallbackQuery","id":513998247,"type":"Update","arguments":[{"name":"flags","type":"#"},{"name":"query_id","type":"long"},{"name":"user_id","type":"int53"},{"name":"connection_id","type":"string"},{"name":"message","type":"Message"},{"name":"reply_to_message","type":"Message","typeModifiers":{"predicate":"flags.2"}},{"name":"chat_instance","type":"long"},{"name":"data","type":"bytes","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"class","name":"updateStarsRevenueStatus","id":2776936473,"type":"Update","arguments":[{"name":"peer","type":"Peer"},{"name":"status","type":"StarsRevenueStatus"}]},{"kind":"class","name":"updates.state","type":"updates.State","id":2775329342,"comment":"Updates state.","arguments":[{"name":"pts","type":"int","comment":"Number of events occurred in a text box"},{"name":"qts","type":"int","comment":"Position in a sequence of updates in secret chats. For further details refer to article secret chats"},{"name":"date","type":"int","comment":"Date of condition"},{"name":"seq","type":"int","comment":"Number of sent updates"},{"name":"unread_count","type":"int","comment":"Number of unread messages"}]},{"kind":"class","name":"updates.differenceEmpty","type":"updates.Difference","id":1567990072,"comment":"No events.","arguments":[{"name":"date","type":"int","comment":"Current date"},{"name":"seq","type":"int","comment":"Number of sent updates"}]},{"kind":"class","name":"updates.difference","type":"updates.Difference","id":16030880,"comment":"Full list of occurred events.","arguments":[{"name":"new_messages","type":"Message","typeModifiers":{"isVector":true},"comment":"List of new messages"},{"name":"new_encrypted_messages","type":"EncryptedMessage","typeModifiers":{"isVector":true},"comment":"List of new encrypted secret chat messages"},{"name":"other_updates","type":"Update","typeModifiers":{"isVector":true},"comment":"List of updates"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of chats mentioned in events"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users mentioned in events"},{"name":"state","type":"updates.State","comment":"Current state"}]},{"kind":"class","name":"updates.differenceSlice","type":"updates.Difference","id":2835028353,"comment":"Incomplete list of occurred events.","arguments":[{"name":"new_messages","type":"Message","typeModifiers":{"isVector":true},"comment":"List of new messages"},{"name":"new_encrypted_messages","type":"EncryptedMessage","typeModifiers":{"isVector":true},"comment":"New messages from the encrypted event sequence"},{"name":"other_updates","type":"Update","typeModifiers":{"isVector":true},"comment":"List of updates"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of chats mentioned in events"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users mentioned in events"},{"name":"intermediate_state","type":"updates.State","comment":"Intermediary state"}]},{"kind":"class","name":"updates.differenceTooLong","type":"updates.Difference","id":1258196845,"comment":"The difference is too long, and the specified state must be used to refetch updates.","arguments":[{"name":"pts","type":"int","comment":"The new state to use."}]},{"kind":"class","name":"updatesTooLong","type":"Updates","id":3809980286,"comment":"Too many updates, it is necessary to execute {@link updates.RawGetDifferenceRequest}.","arguments":[]},{"kind":"class","name":"updateShortMessage","type":"Updates","id":826001400,"comment":"Info about a message sent to (received from) another user","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"out","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the message is outgoing"},{"name":"mentioned","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether we were mentioned in the message"},{"name":"media_unread","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether there are some unread mentions in this message"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"If true, the message is a silent message, no notifications should be triggered"},{"name":"id","type":"int","comment":"The message ID"},{"name":"user_id","type":"int53","comment":"The ID of the sender (if outgoing will be the ID of the destination) of the message"},{"name":"message","type":"string","comment":"The message"},{"name":"pts","type":"int","comment":"PTS"},{"name":"pts_count","type":"int","comment":"PTS count"},{"name":"date","type":"int","comment":"date"},{"name":"fwd_from","type":"MessageFwdHeader","typeModifiers":{"predicate":"flags.2"},"comment":"Info about a forwarded message"},{"name":"via_bot_id","type":"int53","typeModifiers":{"predicate":"flags.11"},"comment":"Info about the inline bot used to generate this message"},{"name":"reply_to","type":"MessageReplyHeader","typeModifiers":{"predicate":"flags.3"},"comment":"Reply and thread information"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.7","isVector":true},"comment":"Entities for styled text"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.25"},"comment":"Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well."}]},{"kind":"class","name":"updateShortChatMessage","type":"Updates","id":1299050149,"comment":"Shortened constructor containing info on one new incoming text message from a chat","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"out","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the message is outgoing"},{"name":"mentioned","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether we were mentioned in this message"},{"name":"media_unread","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether the message contains some unread mentions"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"If true, the message is a silent message, no notifications should be triggered"},{"name":"id","type":"int","comment":"ID of the message"},{"name":"from_id","type":"int53","comment":"ID of the sender of the message"},{"name":"chat_id","type":"int53","comment":"ID of the chat where the message was sent"},{"name":"message","type":"string","comment":"Message"},{"name":"pts","type":"int","comment":"PTS"},{"name":"pts_count","type":"int","comment":"PTS count"},{"name":"date","type":"int","comment":"date"},{"name":"fwd_from","type":"MessageFwdHeader","typeModifiers":{"predicate":"flags.2"},"comment":"Info about a forwarded message"},{"name":"via_bot_id","type":"int53","typeModifiers":{"predicate":"flags.11"},"comment":"Info about the inline bot used to generate this message"},{"name":"reply_to","type":"MessageReplyHeader","typeModifiers":{"predicate":"flags.3"},"comment":"Reply (thread) information"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.7","isVector":true},"comment":"Entities for styled text"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.25"},"comment":"Time To Live of the message, once updateShortChatMessage.date+updateShortChatMessage.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well."}]},{"kind":"class","name":"updateShort","type":"Updates","id":2027216577,"comment":"Shortened constructor containing info on one update not requiring auxiliary data","arguments":[{"name":"update","type":"Update","comment":"Update"},{"name":"date","type":"int","comment":"Date of event"}]},{"kind":"class","name":"updatesCombined","type":"Updates","id":1918567619,"comment":"Constructor for a group of updates.","arguments":[{"name":"updates","type":"Update","typeModifiers":{"isVector":true},"comment":"List of updates"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users mentioned in updates"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of chats mentioned in updates"},{"name":"date","type":"int","comment":"Current date"},{"name":"seq_start","type":"int","comment":"Value seq for the earliest update in a group"},{"name":"seq","type":"int","comment":"Value seq for the latest update in a group"}]},{"kind":"class","name":"updates","type":"Updates","id":1957577280,"comment":"Full constructor of updates","arguments":[{"name":"updates","type":"Update","typeModifiers":{"isVector":true},"comment":"List of updates"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users mentioned in updates"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"List of chats mentioned in updates"},{"name":"date","type":"int","comment":"Current date"},{"name":"seq","type":"int","comment":"Total number of sent updates"}]},{"kind":"class","name":"updateShortSentMessage","type":"Updates","id":2417352961,"comment":"Shortened constructor containing info on one outgoing message to a contact (the destination chat has to be extracted from the method call that returned this object).","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"out","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the message is outgoing"},{"name":"id","type":"int","comment":"ID of the sent message"},{"name":"pts","type":"int","comment":"PTS"},{"name":"pts_count","type":"int","comment":"PTS count"},{"name":"date","type":"int","comment":"date"},{"name":"media","type":"MessageMedia","typeModifiers":{"predicate":"flags.9"},"comment":"Attached media"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.7","isVector":true},"comment":"Entities for styled text"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.25"},"comment":"Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well."}]},{"kind":"class","name":"photos.photos","type":"photos.Photos","id":2378853029,"comment":"Full list of photos with auxiliary data.","arguments":[{"name":"photos","type":"Photo","typeModifiers":{"isVector":true},"comment":"List of photos"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of mentioned users"}]},{"kind":"class","name":"photos.photosSlice","type":"photos.Photos","id":352657236,"comment":"Incomplete list of photos with auxiliary data.","arguments":[{"name":"count","type":"int","comment":"Total number of photos"},{"name":"photos","type":"Photo","typeModifiers":{"isVector":true},"comment":"List of photos"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of mentioned users"}]},{"kind":"class","name":"photos.photo","type":"photos.Photo","id":539045032,"comment":"Photo with auxiliary data.","arguments":[{"name":"photo","type":"Photo","comment":"Photo"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"upload.file","type":"upload.File","id":157948117,"comment":"File content.","arguments":[{"name":"type","type":"storage.FileType","comment":"File type"},{"name":"mtime","type":"int","comment":"Modification time"},{"name":"bytes","type":"bytes","comment":"Binary data, file content"}]},{"kind":"class","name":"upload.fileCdnRedirect","type":"upload.File","id":4052539972,"comment":"The file must be downloaded from a CDN DC.","arguments":[{"name":"dc_id","type":"int","comment":"CDN DC ID"},{"name":"file_token","type":"bytes","comment":"File token (see CDN files)"},{"name":"encryption_key","type":"bytes","comment":"Encryption key (see CDN files)"},{"name":"encryption_iv","type":"bytes","comment":"Encryption IV (see CDN files)"},{"name":"file_hashes","type":"FileHash","typeModifiers":{"isVector":true},"comment":"File hashes (see CDN files)"}]},{"kind":"class","name":"dcOption","type":"DcOption","id":414687501,"comment":"Data center","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"ipv6","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the specified IP is an IPv6 address"},{"name":"media_only","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this DC should only be used to download or upload files"},{"name":"tcpo_only","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this DC only supports connection with transport obfuscation"},{"name":"cdn","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this is a CDN DC."},{"name":"static","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If set, this IP should be used when connecting through a proxy"},{"name":"this_port_only","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"If set, clients must connect using only the specified port, without trying any other port."},{"name":"id","type":"int","comment":"DC ID"},{"name":"ip_address","type":"string","comment":"IP address of DC"},{"name":"port","type":"int","comment":"Port"},{"name":"secret","type":"bytes","typeModifiers":{"predicate":"flags.10"},"comment":"If the tcpo_only flag is set, specifies the secret to use when connecting using transport obfuscation"}]},{"kind":"class","name":"config","type":"Config","id":3424265246,"comment":"Current configuration","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"default_p2p_contacts","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the client should use P2P by default for phone calls with contacts"},{"name":"preload_featured_stickers","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether the client should preload featured stickers"},{"name":"revoke_pm_inbox","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether incoming private messages can be deleted for both participants"},{"name":"blocked_mode","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"Indicates that telegram is probably censored by governments/ISPs in the current region"},{"name":"force_try_ipv6","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Whether to forcefully connect using IPv6 dcOptions, even if the client knows that IPv4 is available."},{"name":"date","type":"int","comment":"Current date at the server"},{"name":"expires","type":"int","comment":"Expiration date of this config: when it expires it'll have to be refetched using {@link help.RawGetConfigRequest}"},{"name":"test_mode","type":"Bool","comment":"Whether we're connected to the test DCs"},{"name":"this_dc","type":"int","comment":"ID of the DC that returned the reply"},{"name":"dc_options","type":"DcOption","typeModifiers":{"isVector":true},"comment":"DC IP list"},{"name":"dc_txt_domain_name","type":"string","comment":"Domain name for fetching encrypted DC list from DNS TXT record"},{"name":"chat_size_max","type":"int","comment":"Maximum member count for normal groups"},{"name":"megagroup_size_max","type":"int","comment":"Maximum member count for supergroups"},{"name":"forwarded_count_max","type":"int","comment":"Maximum number of messages that can be forwarded at once using {@link messages.RawForwardMessagesRequest}."},{"name":"online_update_period_ms","type":"int","comment":"The client should {@link account.RawUpdateStatusRequest} every N milliseconds"},{"name":"offline_blur_timeout_ms","type":"int","comment":"Delay before offline status needs to be sent to the server"},{"name":"offline_idle_timeout_ms","type":"int","comment":"Time without any user activity after which it should be treated offline"},{"name":"online_cloud_timeout_ms","type":"int","comment":"If we are offline, but were online from some other client in last online_cloud_timeout_ms milliseconds after we had gone offline, then delay offline notification for notify_cloud_delay_ms milliseconds."},{"name":"notify_cloud_delay_ms","type":"int","comment":"If we are offline, but online from some other client then delay sending the offline notification for notify_cloud_delay_ms milliseconds."},{"name":"notify_default_delay_ms","type":"int","comment":"If some other client is online, then delay notification for notification_default_delay_ms milliseconds"},{"name":"push_chat_period_ms","type":"int","comment":"Not for client use"},{"name":"push_chat_limit","type":"int","comment":"Not for client use"},{"name":"edit_time_limit","type":"int","comment":"Only messages with age smaller than the one specified can be edited"},{"name":"revoke_time_limit","type":"int","comment":"Only channel/supergroup messages with age smaller than the specified can be deleted"},{"name":"revoke_pm_time_limit","type":"int","comment":"Only private messages with age smaller than the specified can be deleted"},{"name":"rating_e_decay","type":"int","comment":"Exponential decay rate for computing top peer rating"},{"name":"stickers_recent_limit","type":"int","comment":"Maximum number of recent stickers"},{"name":"channels_read_media_period","type":"int","comment":"Indicates that round videos (video notes) and voice messages sent in channels and older than the specified period must be marked as read"},{"name":"tmp_sessions","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Temporary passport sessions"},{"name":"call_receive_timeout_ms","type":"int","comment":"Maximum allowed outgoing ring time in VoIP calls: if the user we're calling doesn't reply within the specified time (in milliseconds), we should hang up the call"},{"name":"call_ring_timeout_ms","type":"int","comment":"Maximum allowed incoming ring time in VoIP calls: if the current user doesn't reply within the specified time (in milliseconds), the call will be automatically refused"},{"name":"call_connect_timeout_ms","type":"int","comment":"VoIP connection timeout: if the instance of libtgvoip on the other side of the call doesn't connect to our instance of libtgvoip within the specified time (in milliseconds), the call must be aborted"},{"name":"call_packet_timeout_ms","type":"int","comment":"If during a VoIP call a packet isn't received for the specified period of time, the call must be aborted"},{"name":"me_url_prefix","type":"string","comment":"The domain to use to parse deep links ยป."},{"name":"autoupdate_url_prefix","type":"string","typeModifiers":{"predicate":"flags.7"},"comment":"URL to use to auto-update the current app"},{"name":"gif_search_username","type":"string","typeModifiers":{"predicate":"flags.9"},"comment":"Username of the bot to use to search for GIFs"},{"name":"venue_search_username","type":"string","typeModifiers":{"predicate":"flags.10"},"comment":"Username of the bot to use to search for venues"},{"name":"img_search_username","type":"string","typeModifiers":{"predicate":"flags.11"},"comment":"Username of the bot to use for image search"},{"name":"static_maps_provider","type":"string","typeModifiers":{"predicate":"flags.12"},"comment":"ID of the map provider to use for venues"},{"name":"caption_length_max","type":"int","comment":"Maximum length of caption (length in utf8 codepoints)"},{"name":"message_length_max","type":"int","comment":"Maximum length of messages (length in utf8 codepoints)"},{"name":"webfile_dc_id","type":"int","comment":"DC ID to use to download webfiles"},{"name":"suggested_lang_code","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Suggested language code"},{"name":"lang_pack_version","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Language pack version"},{"name":"base_lang_pack_version","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Basic language pack version"},{"name":"reactions_default","type":"Reaction","typeModifiers":{"predicate":"flags.15"},"comment":"Default message reaction"},{"name":"autologin_token","type":"string","typeModifiers":{"predicate":"flags.16"},"comment":"Autologin token, click here for more info on URL authorization ยป."}]},{"kind":"class","name":"nearestDc","type":"NearestDc","id":2384074613,"comment":"Nearest data center, according to geo-ip.","arguments":[{"name":"country","type":"string","comment":"Country code determined by geo-ip"},{"name":"this_dc","type":"int","comment":"Number of current data center"},{"name":"nearest_dc","type":"int","comment":"Number of nearest data center"}]},{"kind":"class","name":"help.appUpdate","type":"help.AppUpdate","id":3434860080,"comment":"An update is available for the application.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"can_not_skip","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Unskippable, the new info must be shown to the user (with a popup or something else)"},{"name":"id","type":"int","comment":"Update ID"},{"name":"version","type":"string","comment":"New version name"},{"name":"text","type":"string","comment":"Text description of the update"},{"name":"entities","type":"MessageEntity","typeModifiers":{"isVector":true},"comment":"Message entities for styled text"},{"name":"document","type":"Document","typeModifiers":{"predicate":"flags.1"},"comment":"Application binary"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Application download URL"},{"name":"sticker","type":"Document","typeModifiers":{"predicate":"flags.3"},"comment":"Associated sticker"}]},{"kind":"class","name":"help.noAppUpdate","type":"help.AppUpdate","id":3294258486,"comment":"No updates are available for the application.","arguments":[]},{"kind":"class","name":"help.inviteText","type":"help.InviteText","id":415997816,"comment":"Text of a text message with an invitation to install Telegram.","arguments":[{"name":"message","type":"string","comment":"Text of the message"}]},{"kind":"class","name":"encryptedChatEmpty","type":"EncryptedChat","id":2877210784,"comment":"Empty constructor.","arguments":[{"name":"id","type":"int","comment":"Chat ID"}]},{"kind":"class","name":"encryptedChatWaiting","type":"EncryptedChat","id":1722964307,"comment":"Chat waiting for approval of second participant.","arguments":[{"name":"id","type":"int","comment":"Chat ID"},{"name":"access_hash","type":"long","comment":"Checking sum depending on user ID"},{"name":"date","type":"int","comment":"Date of chat creation"},{"name":"admin_id","type":"int53","comment":"Chat creator ID"},{"name":"participant_id","type":"int53","comment":"ID of second chat participant"}]},{"kind":"class","name":"encryptedChatRequested","type":"EncryptedChat","id":1223809356,"comment":"Request to create an encrypted chat.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Peer folder ID, for more info click here"},{"name":"id","type":"int","comment":"Chat ID"},{"name":"access_hash","type":"long","comment":"Check sum depending on user ID"},{"name":"date","type":"int","comment":"Chat creation date"},{"name":"admin_id","type":"int53","comment":"Chat creator ID"},{"name":"participant_id","type":"int53","comment":"ID of second chat participant"},{"name":"g_a","type":"bytes","comment":"A = g ^ a mod p, see Wikipedia"}]},{"kind":"class","name":"encryptedChat","type":"EncryptedChat","id":1643173063,"comment":"Encrypted chat","arguments":[{"name":"id","type":"int","comment":"Chat ID"},{"name":"access_hash","type":"long","comment":"Check sum dependent on the user ID"},{"name":"date","type":"int","comment":"Date chat was created"},{"name":"admin_id","type":"int53","comment":"Chat creator ID"},{"name":"participant_id","type":"int53","comment":"ID of the second chat participant"},{"name":"g_a_or_b","type":"bytes","comment":"B = g ^ b mod p, if the currently authorized user is the chat's creator,
or A = g ^ a mod p otherwise
See Wikipedia for more info"},{"name":"key_fingerprint","type":"long","comment":"64-bit fingerprint of received key"}]},{"kind":"class","name":"encryptedChatDiscarded","type":"EncryptedChat","id":505183301,"comment":"Discarded or deleted chat.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"history_deleted","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether both users of this secret chat should also remove all of its messages"},{"name":"id","type":"int","comment":"Chat ID"}]},{"kind":"class","name":"inputEncryptedChat","type":"InputEncryptedChat","id":4047615457,"comment":"Creates an encrypted chat.","arguments":[{"name":"chat_id","type":"int","comment":"Chat ID"},{"name":"access_hash","type":"long","comment":"Checking sum from constructor {@link RawEncryptedChat}, {@link RawEncryptedChatWaiting} or {@link RawEncryptedChatRequested}"}]},{"kind":"class","name":"encryptedFileEmpty","type":"EncryptedFile","id":3256830334,"comment":"Empty constructor, non-existing file.","arguments":[]},{"kind":"class","name":"encryptedFile","type":"EncryptedFile","id":2818608344,"comment":"Encrypted file.","arguments":[{"name":"id","type":"long","comment":"File ID"},{"name":"access_hash","type":"long","comment":"Checking sum depending on user ID"},{"name":"size","type":"int53","comment":"File size in bytes"},{"name":"dc_id","type":"int","comment":"Number of data center"},{"name":"key_fingerprint","type":"int","comment":"32-bit fingerprint of key used for file encryption"}]},{"kind":"class","name":"inputEncryptedFileEmpty","type":"InputEncryptedFile","id":406307684,"comment":"Empty constructor.","arguments":[]},{"kind":"class","name":"inputEncryptedFileUploaded","type":"InputEncryptedFile","id":1690108678,"comment":"Sets new encrypted file saved by parts using upload.saveFilePart method.","arguments":[{"name":"id","type":"long","comment":"Random file ID created by client"},{"name":"parts","type":"int","comment":"Number of saved parts"},{"name":"md5_checksum","type":"string","comment":"In case md5-HASH of the (already encrypted) file was transmitted, file content will be checked prior to use"},{"name":"key_fingerprint","type":"int","comment":"32-bit fingerprint of the key used to encrypt a file"}]},{"kind":"class","name":"inputEncryptedFile","type":"InputEncryptedFile","id":1511503333,"comment":"Sets forwarded encrypted file for attachment.","arguments":[{"name":"id","type":"long","comment":"File ID, value of id parameter from {@link RawEncryptedFile}"},{"name":"access_hash","type":"long","comment":"Checking sum, value of access_hash parameter from {@link RawEncryptedFile}"}]},{"kind":"class","name":"inputEncryptedFileBigUploaded","type":"InputEncryptedFile","id":767652808,"comment":"Assigns a new big encrypted file (over 10 MB in size), saved in parts using the method {@link upload.RawSaveBigFilePartRequest}.","arguments":[{"name":"id","type":"long","comment":"Random file id, created by the client"},{"name":"parts","type":"int","comment":"Number of saved parts"},{"name":"key_fingerprint","type":"int","comment":"32-bit imprint of the key used to encrypt the file"}]},{"kind":"class","name":"encryptedMessage","type":"EncryptedMessage","id":3977822488,"comment":"Encrypted message.","arguments":[{"name":"random_id","type":"long","comment":"Random message ID, assigned by the author of message"},{"name":"chat_id","type":"int","comment":"ID of encrypted chat"},{"name":"date","type":"int","comment":"Date of sending"},{"name":"bytes","type":"bytes","comment":"TL-serialization of DecryptedMessage type, encrypted with the key created at chat initialization"},{"name":"file","type":"EncryptedFile","comment":"Attached encrypted file"}]},{"kind":"class","name":"encryptedMessageService","type":"EncryptedMessage","id":594758406,"comment":"Encrypted service message","arguments":[{"name":"random_id","type":"long","comment":"Random message ID, assigned by the author of message"},{"name":"chat_id","type":"int","comment":"ID of encrypted chat"},{"name":"date","type":"int","comment":"Date of sending"},{"name":"bytes","type":"bytes","comment":"TL-serialization of the DecryptedMessage type, encrypted with the key created at chat initialization"}]},{"kind":"class","name":"messages.dhConfigNotModified","type":"messages.DhConfig","id":3236054581,"comment":"Configuring parameters did not change.","arguments":[{"name":"random","type":"bytes","comment":"Random sequence of bytes of assigned length"}]},{"kind":"class","name":"messages.dhConfig","type":"messages.DhConfig","id":740433629,"comment":"New set of configuring parameters.","arguments":[{"name":"g","type":"int","comment":"New value prime, see Wikipedia"},{"name":"p","type":"bytes","comment":"New value primitive root, see Wikipedia"},{"name":"version","type":"int","comment":"Version of set of parameters"},{"name":"random","type":"bytes","comment":"Random sequence of bytes of assigned length"}]},{"kind":"class","name":"messages.sentEncryptedMessage","type":"messages.SentEncryptedMessage","id":1443858741,"comment":"Message without file attachments sent to an encrypted file.","arguments":[{"name":"date","type":"int","comment":"Date of sending"}]},{"kind":"class","name":"messages.sentEncryptedFile","type":"messages.SentEncryptedMessage","id":2492727090,"comment":"Message with a file enclosure sent to a protected chat","arguments":[{"name":"date","type":"int","comment":"Sending date"},{"name":"file","type":"EncryptedFile","comment":"Attached file"}]},{"kind":"class","name":"inputDocumentEmpty","type":"InputDocument","id":1928391342,"comment":"Empty constructor.","arguments":[]},{"kind":"class","name":"inputDocument","type":"InputDocument","id":448771445,"comment":"Defines a document for subsequent interaction.","arguments":[{"name":"id","type":"long","comment":"Document ID"},{"name":"access_hash","type":"long","comment":"access_hash parameter from the {@link RawDocument} constructor"},{"name":"file_reference","type":"bytes","comment":"File reference"}]},{"kind":"class","name":"documentEmpty","type":"Document","id":922273905,"comment":"Empty constructor, document doesn't exist.","arguments":[{"name":"id","type":"long","comment":"Document ID or 0"}]},{"kind":"class","name":"document","type":"Document","id":2413085912,"comment":"Document","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"long","comment":"Document ID"},{"name":"access_hash","type":"long","comment":"Check sum, dependent on document ID"},{"name":"file_reference","type":"bytes","comment":"File reference"},{"name":"date","type":"int","comment":"Creation date"},{"name":"mime_type","type":"string","comment":"MIME type"},{"name":"size","type":"int53","comment":"Size"},{"name":"thumbs","type":"PhotoSize","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Thumbnails"},{"name":"video_thumbs","type":"VideoSize","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Video thumbnails"},{"name":"dc_id","type":"int","comment":"DC ID"},{"name":"attributes","type":"DocumentAttribute","typeModifiers":{"isVector":true},"comment":"Attributes"}]},{"kind":"class","name":"help.support","type":"help.Support","id":398898678,"comment":"Info on support user.","arguments":[{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"user","type":"User","comment":"User"}]},{"kind":"class","name":"notifyPeer","type":"NotifyPeer","id":2681474008,"comment":"Notifications generated by a certain user or group.","arguments":[{"name":"peer","type":"Peer","comment":"user or group"}]},{"kind":"class","name":"notifyUsers","type":"NotifyPeer","id":3033021260,"comment":"Notifications generated by all users.","arguments":[]},{"kind":"class","name":"notifyChats","type":"NotifyPeer","id":3221737155,"comment":"Notifications generated by all groups.","arguments":[]},{"kind":"class","name":"notifyBroadcasts","type":"NotifyPeer","id":3591563503,"comment":"Channel notification settings","arguments":[]},{"kind":"class","name":"notifyForumTopic","type":"NotifyPeer","id":577659656,"comment":"Notifications generated by a topic in a forum.","arguments":[{"name":"peer","type":"Peer","comment":"Forum ID"},{"name":"top_msg_id","type":"int","comment":"Topic ID"}]},{"kind":"class","name":"sendMessageTypingAction","type":"SendMessageAction","id":381645902,"comment":"User is typing.","arguments":[]},{"kind":"class","name":"sendMessageCancelAction","type":"SendMessageAction","id":4250847477,"comment":"Invalidate all previous action updates. E.g. when user deletes entered text or aborts a video upload.","arguments":[]},{"kind":"class","name":"sendMessageRecordVideoAction","type":"SendMessageAction","id":2710034031,"comment":"User is recording a video.","arguments":[]},{"kind":"class","name":"sendMessageUploadVideoAction","type":"SendMessageAction","id":3916839660,"comment":"User is uploading a video.","arguments":[{"name":"progress","type":"int","comment":"Progress percentage"}]},{"kind":"class","name":"sendMessageRecordAudioAction","type":"SendMessageAction","id":3576656887,"comment":"User is recording a voice message.","arguments":[]},{"kind":"class","name":"sendMessageUploadAudioAction","type":"SendMessageAction","id":4082227115,"comment":"User is uploading a voice message.","arguments":[{"name":"progress","type":"int","comment":"Progress percentage"}]},{"kind":"class","name":"sendMessageUploadPhotoAction","type":"SendMessageAction","id":3520285222,"comment":"User is uploading a photo.","arguments":[{"name":"progress","type":"int","comment":"Progress percentage"}]},{"kind":"class","name":"sendMessageUploadDocumentAction","type":"SendMessageAction","id":2852968932,"comment":"User is uploading a file.","arguments":[{"name":"progress","type":"int","comment":"Progress percentage"}]},{"kind":"class","name":"sendMessageGeoLocationAction","type":"SendMessageAction","id":393186209,"comment":"User is selecting a location to share.","arguments":[]},{"kind":"class","name":"sendMessageChooseContactAction","type":"SendMessageAction","id":1653390447,"comment":"User is selecting a contact to share.","arguments":[]},{"kind":"class","name":"sendMessageGamePlayAction","type":"SendMessageAction","id":3714748232,"comment":"User is playing a game","arguments":[]},{"kind":"class","name":"sendMessageRecordRoundAction","type":"SendMessageAction","id":2297593788,"comment":"User is recording a round video to share","arguments":[]},{"kind":"class","name":"sendMessageUploadRoundAction","type":"SendMessageAction","id":608050278,"comment":"User is uploading a round video","arguments":[{"name":"progress","type":"int","comment":"Progress percentage"}]},{"kind":"class","name":"speakingInGroupCallAction","type":"SendMessageAction","id":3643548293,"comment":"User is currently speaking in the group call","arguments":[]},{"kind":"class","name":"sendMessageHistoryImportAction","type":"SendMessageAction","id":3688534598,"comment":"Chat history is being imported","arguments":[{"name":"progress","type":"int","comment":"Progress percentage"}]},{"kind":"class","name":"sendMessageChooseStickerAction","type":"SendMessageAction","id":2958739121,"comment":"User is choosing a sticker","arguments":[]},{"kind":"class","name":"sendMessageEmojiInteraction","type":"SendMessageAction","id":630664139,"comment":"User has clicked on an animated emoji triggering a reaction, click here for more info ยป.","arguments":[{"name":"emoticon","type":"string","comment":"Emoji"},{"name":"msg_id","type":"int","comment":"Message ID of the animated emoji that was clicked"},{"name":"interaction","type":"DataJSON","comment":"A JSON object with interaction info, click here for more info ยป"}]},{"kind":"class","name":"sendMessageEmojiInteractionSeen","type":"SendMessageAction","id":3060109358,"comment":"User is watching an animated emoji reaction triggered by another user, click here for more info ยป.","arguments":[{"name":"emoticon","type":"string","comment":"Emoji"}]},{"kind":"class","name":"contacts.found","type":"contacts.Found","id":3004386717,"comment":"Users found by name substring and auxiliary data.","arguments":[{"name":"my_results","type":"Peer","typeModifiers":{"isVector":true},"comment":"Personalized results"},{"name":"results","type":"Peer","typeModifiers":{"isVector":true},"comment":"List of found user identifiers"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Found chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"List of users"}]},{"kind":"class","name":"inputPrivacyKeyStatusTimestamp","type":"InputPrivacyKey","id":1335282456,"comment":"Whether people will be able to see your exact last online timestamp","arguments":[]},{"kind":"class","name":"inputPrivacyKeyChatInvite","type":"InputPrivacyKey","id":3187344422,"comment":"Whether people will be able to invite you to chats","arguments":[]},{"kind":"class","name":"inputPrivacyKeyPhoneCall","type":"InputPrivacyKey","id":4206550111,"comment":"Whether you will accept phone calls","arguments":[]},{"kind":"class","name":"inputPrivacyKeyPhoneP2P","type":"InputPrivacyKey","id":3684593874,"comment":"Whether to allow P2P communication during VoIP calls","arguments":[]},{"kind":"class","name":"inputPrivacyKeyForwards","type":"InputPrivacyKey","id":2765966344,"comment":"Whether messages forwarded from you will be anonymous","arguments":[]},{"kind":"class","name":"inputPrivacyKeyProfilePhoto","type":"InputPrivacyKey","id":1461304012,"comment":"Whether people will be able to see your profile picture","arguments":[]},{"kind":"class","name":"inputPrivacyKeyPhoneNumber","type":"InputPrivacyKey","id":55761658,"comment":"Whether people will be able to see your phone number","arguments":[]},{"kind":"class","name":"inputPrivacyKeyAddedByPhone","type":"InputPrivacyKey","id":3508640733,"comment":"Whether people can add you to their contact list by your phone number","arguments":[]},{"kind":"class","name":"inputPrivacyKeyVoiceMessages","type":"InputPrivacyKey","id":2934349160,"comment":"Whether people can send you voice messages","arguments":[]},{"kind":"class","name":"inputPrivacyKeyAbout","type":"InputPrivacyKey","id":941870144,"comment":"Whether people can see your bio","arguments":[]},{"kind":"class","name":"inputPrivacyKeyBirthday","type":"InputPrivacyKey","id":3596227020,"arguments":[]},{"kind":"class","name":"privacyKeyStatusTimestamp","type":"PrivacyKey","id":3157175088,"comment":"Whether we can see the last online timestamp of this user","arguments":[]},{"kind":"class","name":"privacyKeyChatInvite","type":"PrivacyKey","id":1343122938,"comment":"Whether the user can be invited to chats","arguments":[]},{"kind":"class","name":"privacyKeyPhoneCall","type":"PrivacyKey","id":1030105979,"comment":"Whether the user accepts phone calls","arguments":[]},{"kind":"class","name":"privacyKeyPhoneP2P","type":"PrivacyKey","id":961092808,"comment":"Whether P2P connections in phone calls with this user are allowed","arguments":[]},{"kind":"class","name":"privacyKeyForwards","type":"PrivacyKey","id":1777096355,"comment":"Whether messages forwarded from the user will be anonymously forwarded","arguments":[]},{"kind":"class","name":"privacyKeyProfilePhoto","type":"PrivacyKey","id":2517966829,"comment":"Whether the profile picture of the user is visible","arguments":[]},{"kind":"class","name":"privacyKeyPhoneNumber","type":"PrivacyKey","id":3516589165,"comment":"Whether the user allows us to see their phone number","arguments":[]},{"kind":"class","name":"privacyKeyAddedByPhone","type":"PrivacyKey","id":1124062251,"comment":"Whether this user can be added to our contact list by their phone number","arguments":[]},{"kind":"class","name":"privacyKeyVoiceMessages","type":"PrivacyKey","id":110621716,"comment":"Whether the user accepts voice messages","arguments":[]},{"kind":"class","name":"privacyKeyAbout","type":"PrivacyKey","id":2760292193,"comment":"Whether people can see your bio","arguments":[]},{"kind":"class","name":"privacyKeyBirthday","type":"PrivacyKey","id":536913176,"arguments":[]},{"kind":"class","name":"inputPrivacyValueAllowContacts","type":"InputPrivacyRule","id":218751099,"comment":"Allow only contacts","arguments":[]},{"kind":"class","name":"inputPrivacyValueAllowAll","type":"InputPrivacyRule","id":407582158,"comment":"Allow all users","arguments":[]},{"kind":"class","name":"inputPrivacyValueAllowUsers","type":"InputPrivacyRule","id":320652927,"comment":"Allow only certain users","arguments":[{"name":"users","type":"InputUser","typeModifiers":{"isVector":true},"comment":"Allowed users"}]},{"kind":"class","name":"inputPrivacyValueDisallowContacts","type":"InputPrivacyRule","id":195371015,"comment":"Disallow only contacts","arguments":[]},{"kind":"class","name":"inputPrivacyValueDisallowAll","type":"InputPrivacyRule","id":3597362889,"comment":"Disallow all","arguments":[]},{"kind":"class","name":"inputPrivacyValueDisallowUsers","type":"InputPrivacyRule","id":2417034343,"comment":"Disallow only certain users","arguments":[{"name":"users","type":"InputUser","typeModifiers":{"isVector":true},"comment":"Users to disallow"}]},{"kind":"class","name":"inputPrivacyValueAllowChatParticipants","type":"InputPrivacyRule","id":2215004623,"comment":"Allow only participants of certain chats","arguments":[{"name":"chats","type":"int53","typeModifiers":{"isVector":true},"comment":"Allowed chat IDs"}]},{"kind":"class","name":"inputPrivacyValueDisallowChatParticipants","type":"InputPrivacyRule","id":3914272646,"comment":"Disallow only participants of certain chats","arguments":[{"name":"chats","type":"int53","typeModifiers":{"isVector":true},"comment":"Disallowed chat IDs"}]},{"kind":"class","name":"inputPrivacyValueAllowCloseFriends","type":"InputPrivacyRule","id":793067081,"comment":"Allow only close friends ยป","arguments":[]},{"kind":"class","name":"inputPrivacyValueAllowPremium","type":"InputPrivacyRule","id":2009975281,"arguments":[]},{"kind":"class","name":"privacyValueAllowContacts","type":"PrivacyRule","id":4294843308,"comment":"Allow all contacts","arguments":[]},{"kind":"class","name":"privacyValueAllowAll","type":"PrivacyRule","id":1698855810,"comment":"Allow all users","arguments":[]},{"kind":"class","name":"privacyValueAllowUsers","type":"PrivacyRule","id":3096469426,"comment":"Allow only certain users","arguments":[{"name":"users","type":"int53","typeModifiers":{"isVector":true},"comment":"Allowed users"}]},{"kind":"class","name":"privacyValueDisallowContacts","type":"PrivacyRule","id":4169726490,"comment":"Disallow only contacts","arguments":[]},{"kind":"class","name":"privacyValueDisallowAll","type":"PrivacyRule","id":2339628899,"comment":"Disallow all users","arguments":[]},{"kind":"class","name":"privacyValueDisallowUsers","type":"PrivacyRule","id":3831632193,"comment":"Disallow only certain users","arguments":[{"name":"users","type":"int53","typeModifiers":{"isVector":true},"comment":"Disallowed users"}]},{"kind":"class","name":"privacyValueAllowChatParticipants","type":"PrivacyRule","id":1796427406,"comment":"Allow all participants of certain chats","arguments":[{"name":"chats","type":"int53","typeModifiers":{"isVector":true},"comment":"Allowed chats"}]},{"kind":"class","name":"privacyValueDisallowChatParticipants","type":"PrivacyRule","id":1103656293,"comment":"Disallow only participants of certain chats","arguments":[{"name":"chats","type":"int53","typeModifiers":{"isVector":true},"comment":"Disallowed chats"}]},{"kind":"class","name":"privacyValueAllowCloseFriends","type":"PrivacyRule","id":4159232155,"comment":"Allow only close friends ยป","arguments":[]},{"kind":"class","name":"privacyValueAllowPremium","type":"PrivacyRule","id":3974725963,"arguments":[]},{"kind":"class","name":"account.privacyRules","type":"account.PrivacyRules","id":1352683077,"comment":"Privacy rules","arguments":[{"name":"rules","type":"PrivacyRule","typeModifiers":{"isVector":true},"comment":"Privacy rules"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats to which the rules apply"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users to which the rules apply"}]},{"kind":"class","name":"accountDaysTTL","type":"AccountDaysTTL","id":3100684255,"comment":"Time to live in days of the current account","arguments":[{"name":"days","type":"int","comment":"This account will self-destruct in the specified number of days"}]},{"kind":"class","name":"documentAttributeImageSize","type":"DocumentAttribute","id":1815593308,"comment":"Defines the width and height of an image uploaded as document","arguments":[{"name":"w","type":"int","comment":"Width of image"},{"name":"h","type":"int","comment":"Height of image"}]},{"kind":"class","name":"documentAttributeAnimated","type":"DocumentAttribute","id":297109817,"comment":"Defines an animated GIF","arguments":[]},{"kind":"class","name":"documentAttributeSticker","type":"DocumentAttribute","id":1662637586,"comment":"Defines a sticker","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"mask","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this is a mask sticker"},{"name":"alt","type":"string","comment":"Alternative emoji representation of sticker"},{"name":"stickerset","type":"InputStickerSet","comment":"Associated stickerset"},{"name":"mask_coords","type":"MaskCoords","typeModifiers":{"predicate":"flags.0"},"comment":"Mask coordinates (if this is a mask sticker, attached to a photo)"}]},{"kind":"class","name":"documentAttributeVideo","type":"DocumentAttribute","id":3549426114,"comment":"Defines a video","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"round_message","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this is a round video"},{"name":"supports_streaming","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the video supports streaming"},{"name":"nosound","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the specified document is a video file with no audio tracks (a GIF animation (even as MPEG4), for example)"},{"name":"duration","type":"double","comment":"Duration in seconds"},{"name":"w","type":"int","comment":"Video width"},{"name":"h","type":"int","comment":"Video height"},{"name":"preload_prefix_size","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Number of bytes to preload when preloading videos (particularly video stories)."}]},{"kind":"class","name":"documentAttributeAudio","type":"DocumentAttribute","id":2555574726,"comment":"Represents an audio file","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"voice","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"Whether this is a voice message"},{"name":"duration","type":"int","comment":"Duration in seconds"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Name of song"},{"name":"performer","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Performer"},{"name":"waveform","type":"bytes","typeModifiers":{"predicate":"flags.2"},"comment":"Waveform: consists in a series of bitpacked 5-bit values.
Example implementation: android."}]},{"kind":"class","name":"documentAttributeFilename","type":"DocumentAttribute","id":358154344,"comment":"A simple document with a file name","arguments":[{"name":"file_name","type":"string","comment":"The file name"}]},{"kind":"class","name":"documentAttributeHasStickers","type":"DocumentAttribute","id":2550256375,"comment":"Whether the current document has stickers attached","arguments":[]},{"kind":"class","name":"documentAttributeCustomEmoji","type":"DocumentAttribute","id":4245985433,"comment":"Info about a custom emoji","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"free","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this custom emoji can be sent by non-Premium users"},{"name":"text_color","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the color of this TGS custom emoji should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context."},{"name":"alt","type":"string","comment":"The actual emoji"},{"name":"stickerset","type":"InputStickerSet","comment":"The emoji stickerset to which this emoji belongs."}]},{"kind":"class","name":"messages.stickersNotModified","type":"messages.Stickers","id":4050950690,"comment":"No new stickers were found for the given query","arguments":[]},{"kind":"class","name":"messages.stickers","type":"messages.Stickers","id":816245886,"comment":"Found stickers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"stickers","type":"Document","typeModifiers":{"isVector":true},"comment":"Stickers"}]},{"kind":"class","name":"stickerPack","type":"StickerPack","id":313694676,"comment":"A stickerpack is a group of stickers associated to the same emoji.
\nIt is not a sticker pack the way it is usually intended, you may be looking for a StickerSet.","arguments":[{"name":"emoticon","type":"string","comment":"Emoji"},{"name":"documents","type":"long","typeModifiers":{"isVector":true},"comment":"Stickers"}]},{"kind":"class","name":"messages.allStickersNotModified","type":"messages.AllStickers","id":3898999491,"comment":"Info about all installed stickers hasn't changed","arguments":[]},{"kind":"class","name":"messages.allStickers","type":"messages.AllStickers","id":3451637435,"comment":"Info about all installed stickers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"sets","type":"StickerSet","typeModifiers":{"isVector":true},"comment":"All stickersets"}]},{"kind":"class","name":"messages.affectedMessages","type":"messages.AffectedMessages","id":2228326789,"comment":"Events affected by operation","arguments":[{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"}]},{"kind":"class","name":"webPageEmpty","type":"WebPage","id":555358088,"comment":"No preview is available for the webpage","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"long","comment":"Preview ID"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"URL of the webpage."}]},{"kind":"class","name":"webPagePending","type":"WebPage","id":2966502983,"comment":"A preview of the webpage is currently being generated","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"long","comment":"ID of preview"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"URL of the webpage"},{"name":"date","type":"int","comment":"When was the processing started"}]},{"kind":"class","name":"webPage","type":"WebPage","id":3902555570,"comment":"Webpage preview","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_large_media","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"Whether the size of the media in the preview can be changed."},{"name":"id","type":"long","comment":"Preview ID"},{"name":"url","type":"string","comment":"URL of previewed webpage"},{"name":"display_url","type":"string","comment":"Webpage URL to be displayed to the user"},{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"},{"name":"type","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else"},{"name":"site_name","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Short name of the site (e.g., Google Docs, App Store)"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Title of the content"},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Content description"},{"name":"photo","type":"Photo","typeModifiers":{"predicate":"flags.4"},"comment":"Image representing the content"},{"name":"embed_url","type":"string","typeModifiers":{"predicate":"flags.5"},"comment":"URL to show in the embedded preview"},{"name":"embed_type","type":"string","typeModifiers":{"predicate":"flags.5"},"comment":"MIME type of the embedded preview, (e.g., text/html or video/mp4)"},{"name":"embed_width","type":"int","typeModifiers":{"predicate":"flags.6"},"comment":"Width of the embedded preview"},{"name":"embed_height","type":"int","typeModifiers":{"predicate":"flags.6"},"comment":"Height of the embedded preview"},{"name":"duration","type":"int","typeModifiers":{"predicate":"flags.7"},"comment":"Duration of the content, in seconds"},{"name":"author","type":"string","typeModifiers":{"predicate":"flags.8"},"comment":"Author of the content"},{"name":"document","type":"Document","typeModifiers":{"predicate":"flags.9"},"comment":"Preview of the content as a media file"},{"name":"cached_page","type":"Page","typeModifiers":{"predicate":"flags.10"},"comment":"Page contents in instant view format"},{"name":"attributes","type":"WebPageAttribute","typeModifiers":{"predicate":"flags.12","isVector":true},"comment":"Webpage attributes"}]},{"kind":"class","name":"webPageNotModified","type":"WebPage","id":1930545681,"comment":"The preview of the webpage hasn't changed","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"cached_page_views","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Page view count"}]},{"kind":"class","name":"authorization","type":"Authorization","id":2902578717,"comment":"Logged-in session","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"current","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this is the current session"},{"name":"official_app","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the session is from an official app"},{"name":"password_pending","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the session is still waiting for a 2FA password"},{"name":"encrypted_requests_disabled","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this session will accept encrypted chats"},{"name":"call_requests_disabled","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether this session will accept phone calls"},{"name":"unconfirmed","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether the session is unconfirmed, see here ยป for more info."},{"name":"hash","type":"long","comment":"Identifier"},{"name":"device_model","type":"string","comment":"Device model"},{"name":"platform","type":"string","comment":"Platform"},{"name":"system_version","type":"string","comment":"System version"},{"name":"api_id","type":"int","comment":"API ID"},{"name":"app_name","type":"string","comment":"App name"},{"name":"app_version","type":"string","comment":"App version"},{"name":"date_created","type":"int","comment":"When was the session created"},{"name":"date_active","type":"int","comment":"When was the session last active"},{"name":"ip","type":"string","comment":"Last known IP"},{"name":"country","type":"string","comment":"Country determined from IP"},{"name":"region","type":"string","comment":"Region determined from IP"}]},{"kind":"class","name":"account.authorizations","type":"account.Authorizations","id":1275039392,"comment":"Logged-in sessions","arguments":[{"name":"authorization_ttl_days","type":"int","comment":"Time-to-live of session"},{"name":"authorizations","type":"Authorization","typeModifiers":{"isVector":true},"comment":"Logged-in sessions"}]},{"kind":"class","name":"account.password","type":"account.Password","id":2507886843,"comment":"Configuration for two-factor authorization","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_recovery","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the user has a recovery method configured"},{"name":"has_secure_values","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether telegram passport is enabled"},{"name":"has_password","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the user has a password"},{"name":"current_algo","type":"PasswordKdfAlgo","typeModifiers":{"predicate":"flags.2"},"comment":"The KDF algorithm for SRP two-factor authentication of the current password"},{"name":"srp_B","type":"bytes","typeModifiers":{"predicate":"flags.2"},"comment":"Srp B param for SRP authorization"},{"name":"srp_id","type":"long","typeModifiers":{"predicate":"flags.2"},"comment":"Srp ID param for SRP authorization"},{"name":"hint","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Text hint for the password"},{"name":"email_unconfirmed_pattern","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"A password recovery email with the specified pattern is still awaiting verification"},{"name":"new_algo","type":"PasswordKdfAlgo","comment":"The KDF algorithm for SRP two-factor authentication to use when creating new passwords"},{"name":"new_secure_algo","type":"SecurePasswordKdfAlgo","comment":"The KDF algorithm for telegram passport"},{"name":"secure_random","type":"bytes","comment":"Secure random string"},{"name":"pending_reset_date","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"The 2FA password will be automatically removed at this date, unless the user cancels the operation"},{"name":"login_email_pattern","type":"string","typeModifiers":{"predicate":"flags.6"},"comment":"A verified login email with the specified pattern is configured"}]},{"kind":"class","name":"account.passwordSettings","type":"account.PasswordSettings","id":2589733861,"comment":"Private info associated to the password info (recovery email, telegram passport info & so on)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"email","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"2FA Recovery email"},{"name":"secure_settings","type":"SecureSecretSettings","typeModifiers":{"predicate":"flags.1"},"comment":"Telegram passport settings"}]},{"kind":"class","name":"account.passwordInputSettings","type":"account.PasswordInputSettings","id":3258394569,"comment":"Settings for setting up a new password","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"new_algo","type":"PasswordKdfAlgo","typeModifiers":{"predicate":"flags.0"},"comment":"The SRP algorithm to use"},{"name":"new_password_hash","type":"bytes","typeModifiers":{"predicate":"flags.0"},"comment":"The computed password hash"},{"name":"hint","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Text hint for the password"},{"name":"email","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Password recovery email"},{"name":"new_secure_settings","type":"SecureSecretSettings","typeModifiers":{"predicate":"flags.2"},"comment":"Telegram passport settings"}]},{"kind":"class","name":"auth.passwordRecovery","type":"auth.PasswordRecovery","id":326715557,"comment":"Recovery info of a 2FA password, only for accounts with a recovery email configured.","arguments":[{"name":"email_pattern","type":"string","comment":"The email to which the recovery code was sent must match this pattern."}]},{"kind":"class","name":"receivedNotifyMessage","type":"ReceivedNotifyMessage","id":2743383929,"comment":"Message ID, for which PUSH-notifications were cancelled.","arguments":[{"name":"id","type":"int","comment":"Message ID, for which PUSH-notifications were canceled"},{"name":"flags","type":"int","comment":"Reserved for future use"}]},{"kind":"class","name":"chatInviteExported","type":"ExportedChatInvite","id":179611673,"comment":"Exported chat invite","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"revoked","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this chat invite was revoked"},{"name":"permanent","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether this chat invite has no expiration"},{"name":"request_needed","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether users importing this invite link will have to be approved to join the channel or group"},{"name":"link","type":"string","comment":"Chat invitation link"},{"name":"admin_id","type":"int53","comment":"ID of the admin that created this chat invite"},{"name":"date","type":"int","comment":"When was this chat invite created"},{"name":"start_date","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"When was this chat invite last modified"},{"name":"expire_date","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"When does this chat invite expire"},{"name":"usage_limit","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Maximum number of users that can join using this link"},{"name":"usage","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"How many users joined using this link"},{"name":"requested","type":"int","typeModifiers":{"predicate":"flags.7"},"comment":"Number of users that have already used this link to join"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.8"},"comment":"Custom description for the invite link, visible only to admins"}]},{"kind":"class","name":"chatInvitePublicJoinRequests","type":"ExportedChatInvite","id":3977280183,"comment":"Used in updates and in the channel log to indicate when a user is requesting to join or has joined a discussion group","arguments":[]},{"kind":"class","name":"chatInviteAlready","type":"ChatInvite","id":1516793212,"comment":"The user has already joined this chat","arguments":[{"name":"chat","type":"Chat","comment":"The chat connected to the invite"}]},{"kind":"class","name":"chatInvite","type":"ChatInvite","id":3454069824,"comment":"Chat invite info","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this is a channel/supergroup or a normal group"},{"name":"broadcast","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this is a channel"},{"name":"public","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this is a public channel/supergroup"},{"name":"megagroup","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this is a supergroup"},{"name":"request_needed","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether the join request ยป must be first approved by an administrator"},{"name":"verified","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Is this chat or channel verified by Telegram?"},{"name":"scam","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"This chat is probably a scam"},{"name":"fake","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"If set, this chat was reported by many users as a fake or scam: be careful when interacting with it."},{"name":"title","type":"string","comment":"Chat/supergroup/channel title"},{"name":"about","type":"string","typeModifiers":{"predicate":"flags.5"},"comment":"Description of the group of channel"},{"name":"photo","type":"Photo","comment":"Chat/supergroup/channel photo"},{"name":"participants_count","type":"int","comment":"Participant count"},{"name":"participants","type":"User","typeModifiers":{"predicate":"flags.4","isVector":true},"comment":"A few of the participants that are in the group"},{"name":"color","type":"int","comment":"Profile color palette ID"}]},{"kind":"class","name":"chatInvitePeek","type":"ChatInvite","id":1634294960,"comment":"A chat invitation that also allows peeking into the group to read messages without joining it.","arguments":[{"name":"chat","type":"Chat","comment":"Chat information"},{"name":"expires","type":"int","comment":"Read-only anonymous access to this group will be revoked at this date"}]},{"kind":"class","name":"inputStickerSetEmpty","type":"InputStickerSet","id":4290128789,"comment":"Empty constructor","arguments":[]},{"kind":"class","name":"inputStickerSetID","type":"InputStickerSet","id":2649203305,"comment":"Stickerset by ID","arguments":[{"name":"id","type":"long","comment":"ID"},{"name":"access_hash","type":"long","comment":"Access hash"}]},{"kind":"class","name":"inputStickerSetShortName","type":"InputStickerSet","id":2250033312,"comment":"Stickerset by short name, from a stickerset deep link ยป","arguments":[{"name":"short_name","type":"string","comment":"Short name from a stickerset deep link ยป"}]},{"kind":"class","name":"inputStickerSetAnimatedEmoji","type":"InputStickerSet","id":42402760,"comment":"Animated emojis stickerset","arguments":[]},{"kind":"class","name":"inputStickerSetDice","type":"InputStickerSet","id":3867103758,"comment":"Used for fetching animated dice stickers","arguments":[{"name":"emoticon","type":"string","comment":"The emoji, for now \"๐Ÿ€\", \"๐ŸŽฒ\" and \"๐ŸŽฏ\" are supported"}]},{"kind":"class","name":"inputStickerSetAnimatedEmojiAnimations","type":"InputStickerSet","id":215889721,"comment":"Animated emoji reaction stickerset (contains animations to play when a user clicks on a given animated emoji)","arguments":[]},{"kind":"class","name":"inputStickerSetPremiumGifts","type":"InputStickerSet","id":3364567810,"comment":"Stickers to show when receiving a gifted Telegram Premium subscription","arguments":[]},{"kind":"class","name":"inputStickerSetEmojiGenericAnimations","type":"InputStickerSet","id":80008398,"comment":"Generic animation stickerset containing animations to play when reacting to messages using a normal emoji without a custom animation","arguments":[]},{"kind":"class","name":"inputStickerSetEmojiDefaultStatuses","type":"InputStickerSet","id":701560302,"comment":"Default custom emoji status stickerset","arguments":[]},{"kind":"class","name":"inputStickerSetEmojiDefaultTopicIcons","type":"InputStickerSet","id":1153562857,"comment":"Default custom emoji stickerset for forum topic icons","arguments":[]},{"kind":"class","name":"inputStickerSetEmojiChannelDefaultStatuses","type":"InputStickerSet","id":1232373075,"comment":"Default custom emoji status stickerset for channel statuses","arguments":[]},{"kind":"class","name":"stickerSet","type":"StickerSet","id":768691932,"comment":"Represents a stickerset (stickerpack)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"archived","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this stickerset was archived (due to too many saved stickers in the current account)"},{"name":"official","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Is this stickerset official"},{"name":"masks","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Is this a mask stickerset"},{"name":"emojis","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"This is a custom emoji stickerset"},{"name":"text_color","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"Whether the color of this TGS custom emoji stickerset should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context."},{"name":"channel_emoji_status","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"If set, this custom emoji stickerset can be used in channel emoji statuses."},{"name":"creator","type":"true","typeModifiers":{"predicate":"flags.11"}},{"name":"installed_date","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"When was this stickerset installed"},{"name":"id","type":"long","comment":"ID of the stickerset"},{"name":"access_hash","type":"long","comment":"Access hash of stickerset"},{"name":"title","type":"string","comment":"Title of stickerset"},{"name":"short_name","type":"string","comment":"Short name of stickerset, used when sharing stickerset using stickerset deep links."},{"name":"thumbs","type":"PhotoSize","typeModifiers":{"predicate":"flags.4","isVector":true},"comment":"Stickerset thumbnail"},{"name":"thumb_dc_id","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"DC ID of thumbnail"},{"name":"thumb_version","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Thumbnail version"},{"name":"thumb_document_id","type":"long","typeModifiers":{"predicate":"flags.8"},"comment":"Document ID of custom emoji thumbnail, fetch the document using {@link messages.RawGetCustomEmojiDocumentsRequest}"},{"name":"animated","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Is this an animated stickerpack"},{"name":"videos","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Is this a video stickerpack"},{"name":"count","type":"int","comment":"Number of stickers in pack"},{"name":"hash","type":"int","comment":"Hash"}]},{"kind":"class","name":"messages.stickerSet","type":"messages.StickerSet","id":1846886166,"comment":"Stickerset and stickers inside it","arguments":[{"name":"set","type":"StickerSet","comment":"The stickerset"},{"name":"packs","type":"StickerPack","typeModifiers":{"isVector":true},"comment":"Emoji info for stickers"},{"name":"keywords","type":"StickerKeyword","typeModifiers":{"isVector":true},"comment":"Keywords for some or every sticker in the stickerset."},{"name":"documents","type":"Document","typeModifiers":{"isVector":true},"comment":"Stickers in stickerset"}]},{"kind":"class","name":"messages.stickerSetNotModified","type":"messages.StickerSet","id":3556320491,"comment":"The stickerset hasn't changed","arguments":[]},{"kind":"class","name":"botCommand","type":"BotCommand","id":3262826695,"comment":"Describes a bot command that can be used in a chat","arguments":[{"name":"command","type":"string","comment":"/command name"},{"name":"description","type":"string","comment":"Description of the command"}]},{"kind":"class","name":"botInfo","type":"BotInfo","id":2402290519,"comment":"Info about bots (available bot commands, etc)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"user_id","type":"int53","typeModifiers":{"predicate":"flags.0"},"comment":"ID of the bot"},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Description of the bot"},{"name":"description_photo","type":"Photo","typeModifiers":{"predicate":"flags.4"},"comment":"Description photo"},{"name":"description_document","type":"Document","typeModifiers":{"predicate":"flags.5"},"comment":"Description animation in MPEG4 format"},{"name":"commands","type":"BotCommand","typeModifiers":{"predicate":"flags.2","isVector":true},"comment":"Bot commands that can be used in the chat"},{"name":"menu_button","type":"BotMenuButton","typeModifiers":{"predicate":"flags.3"},"comment":"Indicates the action to execute when pressing the in-UI menu button for bots"}]},{"kind":"class","name":"keyboardButton","type":"KeyboardButton","id":2734311552,"comment":"Bot keyboard button","arguments":[{"name":"text","type":"string","comment":"Button text"}]},{"kind":"class","name":"keyboardButtonUrl","type":"KeyboardButton","id":629866245,"comment":"URL button","arguments":[{"name":"text","type":"string","comment":"Button label"},{"name":"url","type":"string","comment":"URL"}]},{"kind":"class","name":"keyboardButtonCallback","type":"KeyboardButton","id":901503851,"comment":"Callback button","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"requires_password","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the user should verify their identity by entering their 2FA SRP parameters to the {@link messages.RawGetBotCallbackAnswerRequest} method. NOTE: telegram and the bot WILL NOT have access to the plaintext password, thanks to SRP. This button is mainly used by the official @botfather bot, for verifying the user's identity before transferring ownership of a bot to another user."},{"name":"text","type":"string","comment":"Button text"},{"name":"data","type":"bytes","comment":"Callback data"}]},{"kind":"class","name":"keyboardButtonRequestPhone","type":"KeyboardButton","id":2976541737,"comment":"Button to request a user's phone number","arguments":[{"name":"text","type":"string","comment":"Button text"}]},{"kind":"class","name":"keyboardButtonRequestGeoLocation","type":"KeyboardButton","id":4235815743,"comment":"Button to request a user's geolocation","arguments":[{"name":"text","type":"string","comment":"Button text"}]},{"kind":"class","name":"keyboardButtonSwitchInline","type":"KeyboardButton","id":2478439349,"comment":"Button to force a user to switch to inline mode: pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"same_peer","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field."},{"name":"text","type":"string","comment":"Button label"},{"name":"query","type":"string","comment":"The inline query to use"},{"name":"peer_types","type":"InlineQueryPeerType","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Filter to use when selecting chats."}]},{"kind":"class","name":"keyboardButtonGame","type":"KeyboardButton","id":1358175439,"comment":"Button to start a game","arguments":[{"name":"text","type":"string","comment":"Button text"}]},{"kind":"class","name":"keyboardButtonBuy","type":"KeyboardButton","id":2950250427,"comment":"Button to buy a product","arguments":[{"name":"text","type":"string","comment":"Button text"}]},{"kind":"class","name":"keyboardButtonUrlAuth","type":"KeyboardButton","id":280464681,"comment":"Button to request a user to authorize via URL using Seamless Telegram Login. When the user clicks on such a button, {@link messages.RawRequestUrlAuthRequest} should be called, providing the button_id and the ID of the container message. The returned {@link RawUrlAuthResultRequest} object will contain more details about the authorization request (request_write_access if the bot would like to send messages to the user along with the username of the bot which will be used for user authorization). Finally, the user can choose to call {@link messages.RawAcceptUrlAuthRequest} to get a {@link RawUrlAuthResultAccepted} with the URL to open instead of the url of this constructor, or a {@link RawUrlAuthResultDefault}, in which case the url of this constructor must be opened, instead. If the user refuses the authorization request but still wants to open the link, the url of this constructor must be used.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"text","type":"string","comment":"Button label"},{"name":"fwd_text","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"New text of the button in forwarded messages."},{"name":"url","type":"string","comment":"An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.

NOTE: Services must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization."},{"name":"button_id","type":"int","comment":"ID of the button to pass to {@link messages.RawRequestUrlAuthRequest}"}]},{"kind":"class","name":"inputKeyboardButtonUrlAuth","type":"KeyboardButton","id":3492708308,"comment":"Button to request a user to {@link messages.RawAcceptUrlAuthRequest} via URL using Seamless Telegram Login.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"request_write_access","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set this flag to request the permission for your bot to send messages to the user."},{"name":"text","type":"string","comment":"Button text"},{"name":"fwd_text","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"New text of the button in forwarded messages."},{"name":"url","type":"string","comment":"An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.
NOTE: You must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization."},{"name":"bot","type":"InputUser","comment":"Username of a bot, which will be used for user authorization. See Setting up a bot for more details. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details."}]},{"kind":"class","name":"keyboardButtonRequestPoll","type":"KeyboardButton","id":3150401885,"comment":"A button that allows the user to create and send a poll when pressed; available only in private","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"quiz","type":"Bool","typeModifiers":{"predicate":"flags.0"},"comment":"If set, only quiz polls can be sent"},{"name":"text","type":"string","comment":"Button text"}]},{"kind":"class","name":"inputKeyboardButtonUserProfile","type":"KeyboardButton","id":3918005115,"comment":"Button that links directly to a user profile","arguments":[{"name":"text","type":"string","comment":"Button text"},{"name":"user_id","type":"InputUser","comment":"User ID"}]},{"kind":"class","name":"keyboardButtonUserProfile","type":"KeyboardButton","id":814112961,"comment":"Button that links directly to a user profile","arguments":[{"name":"text","type":"string","comment":"Button text"},{"name":"user_id","type":"int53","comment":"User ID"}]},{"kind":"class","name":"keyboardButtonWebView","type":"KeyboardButton","id":326529584,"comment":"Button to open a bot mini app using {@link messages.RawRequestWebViewRequest}, sending over user information after user confirmation.\n\nCan only be sent or received as part of an inline keyboard, use {@link RawKeyboardButtonSimpleWebView} for reply keyboards.","arguments":[{"name":"text","type":"string","comment":"Button text"},{"name":"url","type":"string","comment":"Web app url"}]},{"kind":"class","name":"keyboardButtonSimpleWebView","type":"KeyboardButton","id":2696958044,"comment":"Button to open a bot mini app using {@link messages.RawRequestSimpleWebViewRequest}, without sending user information to the web app.\n\nCan only be sent or received as part of a reply keyboard, use {@link RawKeyboardButtonWebView} for inline keyboards.","arguments":[{"name":"text","type":"string","comment":"Button text"},{"name":"url","type":"string","comment":"Web app URL"}]},{"kind":"class","name":"keyboardButtonRequestPeer","type":"KeyboardButton","id":1406648280,"comment":"Prompts the user to select and share one or more peers with the bot using {@link messages.RawSendBotRequestedPeerRequest}","arguments":[{"name":"text","type":"string","comment":"Button text"},{"name":"button_id","type":"int","comment":"Button ID, to be passed to {@link messages.RawSendBotRequestedPeerRequest}."},{"name":"peer_type","type":"RequestPeerType","comment":"Filtering criteria to use for the peer selection list shown to the user.
The list should display all existing peers of the specified type, and should also offer an option for the user to create and immediately use one or more (up to max_quantity) peers of the specified type, if needed."},{"name":"max_quantity","type":"int","comment":"Maximum number of peers that can be chosne."}]},{"kind":"class","name":"inputKeyboardButtonRequestPeer","type":"KeyboardButton","id":3378916613,"arguments":[{"name":"flags","type":"#"},{"name":"name_requested","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"username_requested","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"photo_requested","type":"true","typeModifiers":{"predicate":"flags.2"}},{"name":"text","type":"string"},{"name":"button_id","type":"int"},{"name":"peer_type","type":"RequestPeerType"},{"name":"max_quantity","type":"int"}]},{"kind":"class","name":"keyboardButtonRow","type":"KeyboardButtonRow","id":2002815875,"comment":"Inline keyboard row","arguments":[{"name":"buttons","type":"KeyboardButton","typeModifiers":{"isVector":true},"comment":"Bot or inline keyboard buttons"}]},{"kind":"class","name":"replyKeyboardHide","type":"ReplyMarkup","id":2688441221,"comment":"Hide sent bot keyboard","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"selective","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Use this flag if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.

Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet"}]},{"kind":"class","name":"replyKeyboardForceReply","type":"ReplyMarkup","id":2259946248,"comment":"Force the user to send a reply","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"single_use","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat โ€“ the user can press a special button in the input field to see the custom keyboard again."},{"name":"selective","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard."},{"name":"placeholder","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"The placeholder to be shown in the input field when the keyboard is active; 1-64 characters."}]},{"kind":"class","name":"replyKeyboardMarkup","type":"ReplyMarkup","id":2245892561,"comment":"Bot keyboard","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"resize","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). If not set, the custom keyboard is always of the same height as the app's standard keyboard."},{"name":"single_use","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat โ€“ the user can press a special button in the input field to see the custom keyboard again."},{"name":"selective","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.

Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard."},{"name":"persistent","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Requests clients to always show the keyboard when the regular keyboard is hidden."},{"name":"rows","type":"KeyboardButtonRow","typeModifiers":{"isVector":true},"comment":"Button row"},{"name":"placeholder","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"The placeholder to be shown in the input field when the keyboard is active; 1-64 characters."}]},{"kind":"class","name":"replyInlineMarkup","type":"ReplyMarkup","id":1218642516,"comment":"Bot or inline keyboard","arguments":[{"name":"rows","type":"KeyboardButtonRow","typeModifiers":{"isVector":true},"comment":"Bot or inline keyboard rows"}]},{"kind":"class","name":"messageEntityUnknown","type":"MessageEntity","id":3146955413,"comment":"Unknown message entity","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityMention","type":"MessageEntity","id":4194588573,"comment":"Message entity mentioning a user by @username; {@link RawMessageEntityMentionName} can also be used to mention users by their ID.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityHashtag","type":"MessageEntity","id":1868782349,"comment":"#hashtag message entity","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityBotCommand","type":"MessageEntity","id":1827637959,"comment":"Message entity representing a bot /command","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityUrl","type":"MessageEntity","id":1859134776,"comment":"Message entity representing an in-text url: https://google.com; for text urls, use {@link RawMessageEntityTextUrl}.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityEmail","type":"MessageEntity","id":1692693954,"comment":"Message entity representing an email@example.com.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityBold","type":"MessageEntity","id":3177253833,"comment":"Message entity representing bold text.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityItalic","type":"MessageEntity","id":2188348256,"comment":"Message entity representing italic text.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityCode","type":"MessageEntity","id":681706865,"comment":"Message entity representing a codeblock.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityPre","type":"MessageEntity","id":1938967520,"comment":"Message entity representing a preformatted codeblock, allowing the user to specify a programming language for the codeblock.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"},{"name":"language","type":"string","comment":"Programming language of the code"}]},{"kind":"class","name":"messageEntityTextUrl","type":"MessageEntity","id":1990644519,"comment":"Message entity representing a text url: for in-text urls like https://google.com use {@link RawMessageEntityUrl}.\n\nNote that an additional confirmation popup with the full URL must be displayed to the user before opening this link, unless the domain satisfies the conditions specified in the domain whitelist documentation ยป.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"},{"name":"url","type":"string","comment":"The actual URL"}]},{"kind":"class","name":"messageEntityMentionName","type":"MessageEntity","id":3699052864,"comment":"Message entity representing a user mention: for creating a mention use {@link RawInputMessageEntityMentionName}.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"},{"name":"user_id","type":"int53","comment":"Identifier of the user that was mentioned"}]},{"kind":"class","name":"inputMessageEntityMentionName","type":"MessageEntity","id":546203849,"comment":"Message entity that can be used to create a user user mention: received mentions use the {@link RawMessageEntityMentionName} constructor, instead.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"},{"name":"user_id","type":"InputUser","comment":"Identifier of the user that was mentioned"}]},{"kind":"class","name":"messageEntityPhone","type":"MessageEntity","id":2607407947,"comment":"Message entity representing a phone number.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityCashtag","type":"MessageEntity","id":1280209983,"comment":"Message entity representing a $cashtag.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityUnderline","type":"MessageEntity","id":2622389899,"comment":"Message entity representing underlined text.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityStrike","type":"MessageEntity","id":3204879316,"comment":"Message entity representing strikethrough text.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityBankCard","type":"MessageEntity","id":1981704948,"comment":"Indicates a credit card number","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntitySpoiler","type":"MessageEntity","id":852137487,"comment":"Message entity representing a spoiler","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}]},{"kind":"class","name":"messageEntityCustomEmoji","type":"MessageEntity","id":3369010680,"comment":"Represents a custom emoji.
\nNote that this entity must wrap exactly one regular emoji (the one contained in {@link RawDocumentAttributeCustomEmoji}.alt) in the related text, otherwise the server will ignore it.","arguments":[{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"},{"name":"document_id","type":"long","comment":"Document ID of the custom emoji, use {@link messages.RawGetCustomEmojiDocumentsRequest} to fetch the emoji animation and the actual emoji it represents."}]},{"kind":"class","name":"messageEntityBlockquote","id":4056722092,"type":"MessageEntity","arguments":[{"name":"flags","type":"#"},{"name":"collapsed","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"offset","type":"int","comment":"Offset of message entity within message (in UTF-16 code units)"},{"name":"length","type":"int","comment":"Length of message entity within message (in UTF-16 code units)"}],"comment":"Message entity representing a block quote."},{"kind":"class","name":"inputChannelEmpty","type":"InputChannel","id":4002160262,"comment":"Represents the absence of a channel","arguments":[]},{"kind":"class","name":"inputChannel","type":"InputChannel","id":4082822184,"comment":"Represents a channel","arguments":[{"name":"channel_id","type":"int53","comment":"Channel ID"},{"name":"access_hash","type":"long","comment":"Access hash taken from the {@link RawChannel} constructor"}]},{"kind":"class","name":"inputChannelFromMessage","type":"InputChannel","id":1536380829,"comment":"Defines a min channel that was seen in a certain message of a certain chat.","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat where the channel was seen"},{"name":"msg_id","type":"int","comment":"The message ID in the chat where the channel was seen"},{"name":"channel_id","type":"int53","comment":"The channel ID"}]},{"kind":"class","name":"contacts.resolvedPeer","type":"contacts.ResolvedPeer","id":2131196633,"comment":"Resolved peer","arguments":[{"name":"peer","type":"Peer","comment":"The peer"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"messageRange","type":"MessageRange","id":182649427,"comment":"Indicates a range of chat messages","arguments":[{"name":"min_id","type":"int","comment":"Start of range (message ID)"},{"name":"max_id","type":"int","comment":"End of range (message ID)"}]},{"kind":"class","name":"updates.channelDifferenceEmpty","type":"updates.ChannelDifference","id":1041346555,"comment":"There are no new updates","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"final","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether there are more updates that must be fetched (always false)"},{"name":"pts","type":"int","comment":"The latest PTS"},{"name":"timeout","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Clients are supposed to refetch the channel difference after timeout seconds have elapsed"}]},{"kind":"class","name":"updates.channelDifferenceTooLong","type":"updates.ChannelDifference","id":2763835134,"comment":"The provided pts + limit < remote pts. Simply, there are too many updates to be fetched (more than limit), the client has to resolve the update gap in one of the following ways (assuming the existence of a persistent database to locally store messages):\n\nIt should be also noted that some messages like live location messages shouldn't be deleted.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"final","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether there are more updates that must be fetched (always false)"},{"name":"timeout","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Clients are supposed to refetch the channel difference after timeout seconds have elapsed"},{"name":"dialog","type":"Dialog","comment":"Dialog containing the latest PTS that can be used to reset the channel state"},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"The latest messages"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats from messages"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users from messages"}]},{"kind":"class","name":"updates.channelDifference","type":"updates.ChannelDifference","id":543450958,"comment":"The new updates","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"final","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether there are more updates to be fetched using getDifference, starting from the provided pts"},{"name":"pts","type":"int","comment":"The PTS from which to start getting updates the next time"},{"name":"timeout","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Clients are supposed to refetch the channel difference after timeout seconds have elapsed"},{"name":"new_messages","type":"Message","typeModifiers":{"isVector":true},"comment":"New messages"},{"name":"other_updates","type":"Update","typeModifiers":{"isVector":true},"comment":"Other updates"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"channelMessagesFilterEmpty","type":"ChannelMessagesFilter","id":2496933607,"comment":"No filter","arguments":[]},{"kind":"class","name":"channelMessagesFilter","type":"ChannelMessagesFilter","id":3447183703,"comment":"Filter for getting only certain types of channel messages","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"exclude_new_messages","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to exclude new messages from the search"},{"name":"ranges","type":"MessageRange","typeModifiers":{"isVector":true},"comment":"A range of messages to fetch"}]},{"kind":"class","name":"channelParticipant","type":"ChannelParticipant","id":3222013888,"comment":"Channel/supergroup participant","arguments":[{"name":"user_id","type":"int53","comment":"Participant user ID"},{"name":"date","type":"int","comment":"Date joined"}]},{"kind":"class","name":"channelParticipantSelf","type":"ChannelParticipant","id":900251559,"comment":"Myself","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"via_request","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether I joined upon specific approval of an admin"},{"name":"user_id","type":"int53","comment":"User ID"},{"name":"inviter_id","type":"int53","comment":"User that invited me to the channel/supergroup"},{"name":"date","type":"int","comment":"When did I join the channel/supergroup"}]},{"kind":"class","name":"channelParticipantCreator","type":"ChannelParticipant","id":803602899,"comment":"Channel/supergroup creator","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"user_id","type":"int53","comment":"User ID"},{"name":"admin_rights","type":"ChatAdminRights","comment":"Creator admin rights"},{"name":"rank","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"The role (rank) of the group creator in the group: just an arbitrary string, admin by default"}]},{"kind":"class","name":"channelParticipantAdmin","type":"ChannelParticipant","id":885242707,"comment":"Admin","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"can_edit","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Can this admin promote other admins with the same permissions?"},{"name":"self","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Is this the current user"},{"name":"user_id","type":"int53","comment":"Admin user ID"},{"name":"inviter_id","type":"int53","typeModifiers":{"predicate":"flags.1"},"comment":"User that invited the admin to the channel/group"},{"name":"promoted_by","type":"int53","comment":"User that promoted the user to admin"},{"name":"date","type":"int","comment":"When did the user join"},{"name":"admin_rights","type":"ChatAdminRights","comment":"Admin rights"},{"name":"rank","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"The role (rank) of the admin in the group: just an arbitrary string, admin by default"}]},{"kind":"class","name":"channelParticipantBanned","type":"ChannelParticipant","id":1844969806,"comment":"Banned/kicked user","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"left","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the user has left the group"},{"name":"peer","type":"Peer","comment":"The banned peer"},{"name":"kicked_by","type":"int53","comment":"User was kicked by the specified admin"},{"name":"date","type":"int","comment":"When did the user join the group"},{"name":"banned_rights","type":"ChatBannedRights","comment":"Banned rights"}]},{"kind":"class","name":"channelParticipantLeft","type":"ChannelParticipant","id":453242886,"comment":"A participant that left the channel/supergroup","arguments":[{"name":"peer","type":"Peer","comment":"The peer that left"}]},{"kind":"class","name":"channelParticipantsRecent","type":"ChannelParticipantsFilter","id":3728686201,"comment":"Fetch only recent participants","arguments":[]},{"kind":"class","name":"channelParticipantsAdmins","type":"ChannelParticipantsFilter","id":3026225513,"comment":"Fetch only admin participants","arguments":[]},{"kind":"class","name":"channelParticipantsKicked","type":"ChannelParticipantsFilter","id":2746567045,"comment":"Fetch only kicked participants","arguments":[{"name":"q","type":"string","comment":"Optional filter for searching kicked participants by name (otherwise empty)"}]},{"kind":"class","name":"channelParticipantsBots","type":"ChannelParticipantsFilter","id":2966521435,"comment":"Fetch only bot participants","arguments":[]},{"kind":"class","name":"channelParticipantsBanned","type":"ChannelParticipantsFilter","id":338142689,"comment":"Fetch only banned participants","arguments":[{"name":"q","type":"string","comment":"Optional filter for searching banned participants by name (otherwise empty)"}]},{"kind":"class","name":"channelParticipantsSearch","type":"ChannelParticipantsFilter","id":106343499,"comment":"Query participants by name","arguments":[{"name":"q","type":"string","comment":"Search query"}]},{"kind":"class","name":"channelParticipantsContacts","type":"ChannelParticipantsFilter","id":3144345741,"comment":"Fetch only participants that are also contacts","arguments":[{"name":"q","type":"string","comment":"Optional search query for searching contact participants by name"}]},{"kind":"class","name":"channelParticipantsMentions","type":"ChannelParticipantsFilter","id":3763035371,"comment":"This filter is used when looking for supergroup members to mention.
\nThis filter will automatically remove anonymous admins, and return even non-participant users that replied to a specific thread through the comment section of a channel.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"q","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Filter by user name or username"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Look only for users that posted in this thread"}]},{"kind":"class","name":"channels.channelParticipants","type":"channels.ChannelParticipants","id":2595290799,"comment":"Represents multiple channel participants","arguments":[{"name":"count","type":"int","comment":"Total number of participants that correspond to the given query"},{"name":"participants","type":"ChannelParticipant","typeModifiers":{"isVector":true},"comment":"Participants"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in participant info"}]},{"kind":"class","name":"channels.channelParticipantsNotModified","type":"channels.ChannelParticipants","id":4028055529,"comment":"No new participant info could be found","arguments":[]},{"kind":"class","name":"channels.channelParticipant","type":"channels.ChannelParticipant","id":3753378583,"comment":"Represents a channel participant","arguments":[{"name":"participant","type":"ChannelParticipant","comment":"The channel participant"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"help.termsOfService","type":"help.TermsOfService","id":2013922064,"comment":"Info about the latest telegram Terms Of Service","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"popup","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether a prompt must be showed to the user, in order to accept the new terms."},{"name":"id","type":"DataJSON","comment":"ID of the new terms"},{"name":"text","type":"string","comment":"Text of the new terms"},{"name":"entities","type":"MessageEntity","typeModifiers":{"isVector":true},"comment":"Message entities for styled text"},{"name":"min_age_confirm","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Minimum age required to sign up to telegram, the user must confirm that they is older than the minimum age."}]},{"kind":"class","name":"messages.savedGifsNotModified","type":"messages.SavedGifs","id":3892468898,"comment":"No new saved gifs were found","arguments":[]},{"kind":"class","name":"messages.savedGifs","type":"messages.SavedGifs","id":2225089037,"comment":"Saved gifs","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"gifs","type":"Document","typeModifiers":{"isVector":true},"comment":"List of saved gifs"}]},{"kind":"class","name":"inputBotInlineMessageMediaAuto","type":"InputBotInlineMessage","id":864077702,"comment":"A media","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"message","type":"string","comment":"Caption"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"inputBotInlineMessageText","type":"InputBotInlineMessage","id":1036876423,"comment":"Simple text message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"no_webpage","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Disable webpage preview"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"message","type":"string","comment":"Message"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"inputBotInlineMessageMediaGeo","type":"InputBotInlineMessage","id":2526190213,"comment":"Geolocation","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"geo_point","type":"InputGeoPoint","comment":"Geolocation"},{"name":"heading","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"For live locations, a direction in which the location moves, in degrees; 1-360"},{"name":"period","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Validity period"},{"name":"proximity_notification_radius","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Reply markup for bot/inline keyboards"}]},{"kind":"class","name":"inputBotInlineMessageMediaVenue","type":"InputBotInlineMessage","id":1098628881,"comment":"Venue","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"geo_point","type":"InputGeoPoint","comment":"Geolocation"},{"name":"title","type":"string","comment":"Venue name"},{"name":"address","type":"string","comment":"Address"},{"name":"provider","type":"string","comment":"Venue provider: currently only \"foursquare\" and \"gplaces\" (Google Places) need to be supported"},{"name":"venue_id","type":"string","comment":"Venue ID in the provider's database"},{"name":"venue_type","type":"string","comment":"Venue type in the provider's database"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"inputBotInlineMessageMediaContact","type":"InputBotInlineMessage","id":2800599037,"comment":"A contact","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"first_name","type":"string","comment":"First name"},{"name":"last_name","type":"string","comment":"Last name"},{"name":"vcard","type":"string","comment":"VCard info"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"inputBotInlineMessageGame","type":"InputBotInlineMessage","id":1262639204,"comment":"A game","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"inputBotInlineMessageMediaInvoice","type":"InputBotInlineMessage","id":3622273573,"comment":"An invoice","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"title","type":"string","comment":"Product name, 1-32 characters"},{"name":"description","type":"string","comment":"Product description, 1-255 characters"},{"name":"photo","type":"InputWebDocument","typeModifiers":{"predicate":"flags.0"},"comment":"Invoice photo"},{"name":"invoice","type":"Invoice","comment":"The invoice"},{"name":"payload","type":"bytes","comment":"Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes."},{"name":"provider","type":"string","comment":"Payments provider token, obtained via Botfather"},{"name":"provider_data","type":"DataJSON","comment":"A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider."},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"inputBotInlineMessageMediaWebPage","type":"InputBotInlineMessage","id":3185362192,"comment":"Specifies options that will be used to generate the link preview for the message, or even a standalone link preview without an attached message.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"force_large_media","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If set, specifies that a large media preview should be used."},{"name":"force_small_media","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"If set, specifies that a small media preview should be used."},{"name":"optional","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"If not set, a WEBPAGE_NOT_FOUND RPC error will be emitted if a webpage preview cannot be generated for the specified url; otherwise, no error will be emitted (unless the provided message is also empty, in which case a MESSAGE_EMPTY will be emitted, instead)."},{"name":"message","type":"string","comment":"The message, can be empty."},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"},{"name":"url","type":"string","comment":"The URL to use for the link preview."},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"inputBotInlineResult","type":"InputBotInlineResult","id":2294256409,"comment":"An inline bot result","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"string","comment":"ID of result"},{"name":"type","type":"string","comment":"Result type (see bot API docs)"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Result title"},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Result description"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"URL of result"},{"name":"thumb","type":"InputWebDocument","typeModifiers":{"predicate":"flags.4"},"comment":"Thumbnail for result"},{"name":"content","type":"InputWebDocument","typeModifiers":{"predicate":"flags.5"},"comment":"Result contents"},{"name":"send_message","type":"InputBotInlineMessage","comment":"Message to send when the result is selected"}]},{"kind":"class","name":"inputBotInlineResultPhoto","type":"InputBotInlineResult","id":2832753831,"comment":"Photo","arguments":[{"name":"id","type":"string","comment":"Result ID"},{"name":"type","type":"string","comment":"Result type (see bot API docs)"},{"name":"photo","type":"InputPhoto","comment":"Photo to send"},{"name":"send_message","type":"InputBotInlineMessage","comment":"Message to send when the result is selected"}]},{"kind":"class","name":"inputBotInlineResultDocument","type":"InputBotInlineResult","id":4294507972,"comment":"Document (media of any type except for photos)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"string","comment":"Result ID"},{"name":"type","type":"string","comment":"Result type (see bot API docs)"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Result title"},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Result description"},{"name":"document","type":"InputDocument","comment":"Document to send"},{"name":"send_message","type":"InputBotInlineMessage","comment":"Message to send when the result is selected"}]},{"kind":"class","name":"inputBotInlineResultGame","type":"InputBotInlineResult","id":1336154098,"comment":"Game","arguments":[{"name":"id","type":"string","comment":"Result ID"},{"name":"short_name","type":"string","comment":"Game short name"},{"name":"send_message","type":"InputBotInlineMessage","comment":"Message to send when the result is selected"}]},{"kind":"class","name":"botInlineMessageMediaAuto","type":"BotInlineMessage","id":1984755728,"comment":"Send whatever media is attached to the {@link RawBotInlineMediaResult}","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"message","type":"string","comment":"Caption"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"botInlineMessageText","type":"BotInlineMessage","id":2357159394,"comment":"Send a simple text message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"no_webpage","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Disable webpage preview"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"message","type":"string","comment":"The message"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"botInlineMessageMediaGeo","type":"BotInlineMessage","id":85477117,"comment":"Send a geolocation","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"geo","type":"GeoPoint","comment":"Geolocation"},{"name":"heading","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"For live locations, a direction in which the location moves, in degrees; 1-360."},{"name":"period","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Validity period"},{"name":"proximity_notification_radius","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)."},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"botInlineMessageMediaVenue","type":"BotInlineMessage","id":2324063644,"comment":"Send a venue","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"geo","type":"GeoPoint","comment":"Geolocation of venue"},{"name":"title","type":"string","comment":"Venue name"},{"name":"address","type":"string","comment":"Address"},{"name":"provider","type":"string","comment":"Venue provider: currently only \"foursquare\" and \"gplaces\" (Google Places) need to be supported"},{"name":"venue_id","type":"string","comment":"Venue ID in the provider's database"},{"name":"venue_type","type":"string","comment":"Venue type in the provider's database"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"botInlineMessageMediaContact","type":"BotInlineMessage","id":416402882,"comment":"Send a contact","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"first_name","type":"string","comment":"First name"},{"name":"last_name","type":"string","comment":"Last name"},{"name":"vcard","type":"string","comment":"VCard info"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"botInlineMessageMediaInvoice","type":"BotInlineMessage","id":894081801,"comment":"Send an invoice","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"shipping_address_requested","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Set this flag if you require the user's shipping address to complete the order"},{"name":"test","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Test invoice"},{"name":"title","type":"string","comment":"Product name, 1-32 characters"},{"name":"description","type":"string","comment":"Product description, 1-255 characters"},{"name":"photo","type":"WebDocument","typeModifiers":{"predicate":"flags.0"},"comment":"Product photo"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"total_amount","type":"long","comment":"Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Inline keyboard"}]},{"kind":"class","name":"botInlineMessageMediaWebPage","type":"BotInlineMessage","id":2157631910,"comment":"Specifies options that must be used to generate the link preview for the message, or even a standalone link preview without an attached message.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"force_large_media","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If set, specifies that a large media preview should be used."},{"name":"force_small_media","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"If set, specifies that a small media preview should be used."},{"name":"manual","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"If set, indicates that the URL used for the webpage preview was specified manually using {@link RawInputMediaWebPage}, and may not be related to any of the URLs specified in the message."},{"name":"safe","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"If set, the link can be opened directly without user confirmation."},{"name":"message","type":"string","comment":"The message, can be empty."},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"},{"name":"url","type":"string","comment":"The URL to use for the link preview."},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Reply markup for sending bot buttons"}]},{"kind":"class","name":"botInlineResult","type":"BotInlineResult","id":295067450,"comment":"Generic result","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"string","comment":"Result ID"},{"name":"type","type":"string","comment":"Result type (see bot API docs)"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Result title"},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Result description"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"URL of article or webpage"},{"name":"thumb","type":"WebDocument","typeModifiers":{"predicate":"flags.4"},"comment":"Thumbnail for the result"},{"name":"content","type":"WebDocument","typeModifiers":{"predicate":"flags.5"},"comment":"Content of the result"},{"name":"send_message","type":"BotInlineMessage","comment":"Message to send"}]},{"kind":"class","name":"botInlineMediaResult","type":"BotInlineResult","id":400266251,"comment":"Media result","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"string","comment":"Result ID"},{"name":"type","type":"string","comment":"Result type (see bot API docs)"},{"name":"photo","type":"Photo","typeModifiers":{"predicate":"flags.0"},"comment":"If type is photo, the photo to send"},{"name":"document","type":"Document","typeModifiers":{"predicate":"flags.1"},"comment":"If type is document, the document to send"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Result title"},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Description"},{"name":"send_message","type":"BotInlineMessage","comment":"Depending on the type and on the constructor, contains the caption of the media or the content of the message to be sent instead of the media"}]},{"kind":"class","name":"messages.botResults","type":"messages.BotResults","id":3760321270,"comment":"Result of a query to an inline bot","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"gallery","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the result is a picture gallery"},{"name":"query_id","type":"long","comment":"Query ID"},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"The next offset to use when navigating through results"},{"name":"switch_pm","type":"InlineBotSwitchPM","typeModifiers":{"predicate":"flags.2"},"comment":"Shown as a button on top of the remaining inline result list; if clicked, redirects the user to a private chat with the bot with the specified start parameter."},{"name":"switch_webview","type":"InlineBotWebView","typeModifiers":{"predicate":"flags.3"},"comment":"Shown as a button on top of the remaining inline result list; if clicked, opens the specified inline mode mini app."},{"name":"results","type":"BotInlineResult","typeModifiers":{"isVector":true},"comment":"The results"},{"name":"cache_time","type":"int","comment":"Caching validity of the results"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in the results"}]},{"kind":"class","name":"exportedMessageLink","type":"ExportedMessageLink","id":1571494644,"comment":"Link to a message in a supergroup/channel","arguments":[{"name":"link","type":"string","comment":"URL"},{"name":"html","type":"string","comment":"Embed code"}]},{"kind":"class","name":"messageFwdHeader","type":"MessageFwdHeader","id":1313731771,"comment":"Info about a forwarded message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"imported","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Whether this message was imported from a foreign chat service, click here for more info ยป"},{"name":"saved_out","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"Only for messages forwarded to saved messages ยป, set if the original message was outgoing (though the message may have been originally outgoing even if this flag is not set, if from_id points to the current user)."},{"name":"from_id","type":"Peer","typeModifiers":{"predicate":"flags.0"},"comment":"The ID of the user that originally sent the message"},{"name":"from_name","type":"string","typeModifiers":{"predicate":"flags.5"},"comment":"The name of the user that originally sent the message"},{"name":"date","type":"int","comment":"When was the message originally sent"},{"name":"channel_post","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"ID of the channel message that was forwarded"},{"name":"post_author","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"For channels and if signatures are enabled, author of the channel message"},{"name":"saved_from_peer","type":"Peer","typeModifiers":{"predicate":"flags.4"},"comment":"Only for messages forwarded to saved messages ยป, contains the dialog where the message was originally sent."},{"name":"saved_from_msg_id","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Only for messages forwarded to saved messages ยป, contains the original ID of the message in saved_from_peer."},{"name":"saved_from_id","type":"Peer","typeModifiers":{"predicate":"flags.8"},"comment":"Only for forwarded messages reforwarded to saved messages ยป, contains the sender of the original message (i.e. if user A sends a message, then user B forwards it somewhere, then user C saves it to saved messages, this field will contain the ID of user A and from_id will contain the ID of user B)."},{"name":"saved_from_name","type":"string","typeModifiers":{"predicate":"flags.9"},"comment":"Only for forwarded messages from users with forward privacy enabled reforwarded to saved messages ยป, contains the sender of the original message (i.e. if user A (fwd privacy enabled) sends a message, then user B forwards it somewhere, then user C saves it to saved messages, this field will contain the name of user A and from_id will contain the ID of user B)."},{"name":"saved_date","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Only for forwarded messages reforwarded to saved messages ยป, indicates when was the original message sent (i.e. if user A sends a message @ unixtime 1, then user B forwards it somewhere @ unixtime 2, then user C saves it to saved messages @ unixtime 3, this field will contain 1, date will contain 2 and the date of the containing {@link RawMessage} will contain 3)."},{"name":"psa_type","type":"string","typeModifiers":{"predicate":"flags.6"},"comment":"PSA type"}]},{"kind":"class","name":"auth.codeTypeSms","type":"auth.CodeType","id":1923290508,"comment":"The next time, the authentication code will be delivered via an immediately canceled incoming call.","arguments":[]},{"kind":"class","name":"auth.codeTypeCall","type":"auth.CodeType","id":1948046307,"comment":"The next time, the authentication code is to be delivered via an outgoing phone call.","arguments":[]},{"kind":"class","name":"auth.codeTypeFlashCall","type":"auth.CodeType","id":577556219,"comment":"The next time, the authentication code will be delivered via an immediately canceled incoming call.","arguments":[]},{"kind":"class","name":"auth.codeTypeMissedCall","type":"auth.CodeType","id":3592083182,"comment":"The next time, the authentication code will be delivered via an immediately canceled incoming call, handled manually by the user.","arguments":[]},{"kind":"class","name":"auth.codeTypeFragmentSms","type":"auth.CodeType","id":116234636,"comment":"The next time, the authentication code will be delivered via fragment.com","arguments":[]},{"kind":"class","name":"auth.sentCodeTypeApp","type":"auth.SentCodeType","id":1035688326,"comment":"The code was sent through the telegram app","arguments":[{"name":"length","type":"int","comment":"Length of the code in bytes"}]},{"kind":"class","name":"auth.sentCodeTypeSms","type":"auth.SentCodeType","id":3221273506,"comment":"The code was sent via SMS","arguments":[{"name":"length","type":"int","comment":"Length of the code in bytes"}]},{"kind":"class","name":"auth.sentCodeTypeCall","type":"auth.SentCodeType","id":1398007207,"comment":"The code will be sent via a phone call: a synthesized voice will tell the user which verification code to input.","arguments":[{"name":"length","type":"int","comment":"Length of the verification code"}]},{"kind":"class","name":"auth.sentCodeTypeFlashCall","type":"auth.SentCodeType","id":2869151449,"comment":"The code will be sent via a flash phone call, that will be closed immediately. The phone code will then be the phone number itself, just make sure that the phone number matches the specified pattern.","arguments":[{"name":"pattern","type":"string","comment":"pattern to match"}]},{"kind":"class","name":"auth.sentCodeTypeMissedCall","type":"auth.SentCodeType","id":2181063812,"comment":"The code will be sent via a flash phone call, that will be closed immediately. The last digits of the phone number that calls are the code that must be entered manually by the user.","arguments":[{"name":"prefix","type":"string","comment":"Prefix of the phone number from which the call will be made"},{"name":"length","type":"int","comment":"Length of the verification code"}]},{"kind":"class","name":"auth.sentCodeTypeEmailCode","type":"auth.SentCodeType","id":4098946459,"comment":"The code was sent via the previously configured login email ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"apple_signin_allowed","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether authorization through Apple ID is allowed"},{"name":"google_signin_allowed","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether authorization through Google ID is allowed"},{"name":"email_pattern","type":"string","comment":"Pattern of the email"},{"name":"length","type":"int","comment":"Length of the sent verification code"},{"name":"reset_available_period","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Clients should wait for the specified amount of seconds before allowing the user to invoke {@link auth.RawResetLoginEmailRequest} (will be 0 for Premium users)."},{"name":"reset_pending_date","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"An email reset was already requested, and will occur at the specified date."}]},{"kind":"class","name":"auth.sentCodeTypeSetUpEmailRequired","type":"auth.SentCodeType","id":2773032426,"comment":"The user should add and verify an email address in order to login as described here ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"apple_signin_allowed","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether authorization through Apple ID is allowed"},{"name":"google_signin_allowed","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether authorization through Google ID is allowed"}]},{"kind":"class","name":"auth.sentCodeTypeFragmentSms","type":"auth.SentCodeType","id":3646315577,"comment":"The code was delivered via fragment.com.","arguments":[{"name":"url","type":"string","comment":"Open the specified URL to log into fragment.com with the wallet that owns the specified phone number and view the code."},{"name":"length","type":"int","comment":"Length of the delivered code."}]},{"kind":"class","name":"auth.sentCodeTypeFirebaseSms","id":331943703,"type":"auth.SentCodeType","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"nonce","type":"bytes","typeModifiers":{"predicate":"flags.0"},"comment":"On Android, the nonce to be used as described in the auth documentation ยป"},{"name":"play_integrity_nonce","type":"bytes","typeModifiers":{"predicate":"flags.2"}},{"name":"receipt","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"On iOS, must be compared with the receipt extracted from the received push notification."},{"name":"push_timeout","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"On iOS: if a push notification with the ios_push_secret isn't received within push_timeout seconds, the next_type authentication method must be used, with {@link auth.RawResendCodeRequest}."},{"name":"length","type":"int","comment":"Length of the code that will be delivered."}],"comment":"An authentication code should be delivered via SMS after Firebase attestation, as described in the auth documentation ยป."},{"kind":"class","name":"auth.sentCodeTypeSmsWord","type":"auth.SentCodeType","id":2752949377,"arguments":[{"name":"flags","type":"#"},{"name":"beginning","type":"string","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"class","name":"auth.sentCodeTypeSmsPhrase","type":"auth.SentCodeType","id":3010958511,"arguments":[{"name":"flags","type":"#"},{"name":"beginning","type":"string","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"class","name":"messages.botCallbackAnswer","type":"messages.BotCallbackAnswer","id":911761060,"comment":"Callback answer sent by the bot in response to a button press","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"alert","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether an alert should be shown to the user instead of a toast notification"},{"name":"has_url","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether an URL is present"},{"name":"native_ui","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether to show games in WebView or in native UI."},{"name":"message","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Alert to show"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"URL to open"},{"name":"cache_time","type":"int","comment":"For how long should this answer be cached"}]},{"kind":"class","name":"messages.messageEditData","type":"messages.MessageEditData","id":649453030,"comment":"Message edit data for media","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"caption","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Media caption, if the specified media's caption can be edited"}]},{"kind":"class","name":"inputBotInlineMessageID","type":"InputBotInlineMessageID","id":2299280777,"comment":"Represents a sent inline message from the perspective of a bot (legacy constructor)","arguments":[{"name":"dc_id","type":"int","comment":"DC ID to use when working with this inline message"},{"name":"id","type":"long","comment":"ID of message, contains both the (32-bit, legacy) owner ID and the message ID, used only for Bot API backwards compatibility with 32-bit user ID."},{"name":"access_hash","type":"long","comment":"Access hash of message"}]},{"kind":"class","name":"inputBotInlineMessageID64","type":"InputBotInlineMessageID","id":3067680215,"comment":"Represents a sent inline message from the perspective of a bot","arguments":[{"name":"dc_id","type":"int","comment":"DC ID to use when working with this inline message"},{"name":"owner_id","type":"long","comment":"ID of the owner of this message"},{"name":"id","type":"int","comment":"ID of message"},{"name":"access_hash","type":"long","comment":"Access hash of message"}]},{"kind":"class","name":"inlineBotSwitchPM","type":"InlineBotSwitchPM","id":1008755359,"comment":"The bot requested the user to message them in private","arguments":[{"name":"text","type":"string","comment":"Text for the button that switches the user to a private chat with the bot and sends the bot a start message with the parameter start_parameter (can be empty)"},{"name":"start_param","type":"string","comment":"The parameter for the /start parameter"}]},{"kind":"class","name":"messages.peerDialogs","type":"messages.PeerDialogs","id":863093588,"comment":"Dialog info of multiple peers","arguments":[{"name":"dialogs","type":"Dialog","typeModifiers":{"isVector":true},"comment":"Dialog info"},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"Messages mentioned in dialog info"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"},{"name":"state","type":"updates.State","comment":"Current update state of dialog"}]},{"kind":"class","name":"topPeer","type":"TopPeer","id":3989684315,"comment":"Top peer","arguments":[{"name":"peer","type":"Peer","comment":"Peer"},{"name":"rating","type":"double","comment":"Rating as computed in top peer rating ยป"}]},{"kind":"class","name":"topPeerCategoryBotsPM","type":"TopPeerCategory","id":2875595611,"comment":"Most used bots","arguments":[]},{"kind":"class","name":"topPeerCategoryBotsInline","type":"TopPeerCategory","id":344356834,"comment":"Most used inline bots","arguments":[]},{"kind":"class","name":"topPeerCategoryCorrespondents","type":"TopPeerCategory","id":104314861,"comment":"Users we've chatted most frequently with","arguments":[]},{"kind":"class","name":"topPeerCategoryGroups","type":"TopPeerCategory","id":3172442442,"comment":"Often-opened groups and supergroups","arguments":[]},{"kind":"class","name":"topPeerCategoryChannels","type":"TopPeerCategory","id":371037736,"comment":"Most frequently visited channels","arguments":[]},{"kind":"class","name":"topPeerCategoryPhoneCalls","type":"TopPeerCategory","id":511092620,"comment":"Most frequently called users","arguments":[]},{"kind":"class","name":"topPeerCategoryForwardUsers","type":"TopPeerCategory","id":2822794409,"comment":"Users to which the users often forwards messages to","arguments":[]},{"kind":"class","name":"topPeerCategoryForwardChats","type":"TopPeerCategory","id":4226728176,"comment":"Chats to which the users often forwards messages to","arguments":[]},{"kind":"class","name":"topPeerCategoryPeers","type":"TopPeerCategoryPeers","id":4219683473,"comment":"Top peer category","arguments":[{"name":"category","type":"TopPeerCategory","comment":"Top peer category of peers"},{"name":"count","type":"int","comment":"Count of peers"},{"name":"peers","type":"TopPeer","typeModifiers":{"isVector":true},"comment":"Peers"}]},{"kind":"class","name":"contacts.topPeersNotModified","type":"contacts.TopPeers","id":3727060725,"comment":"Top peer info hasn't changed","arguments":[]},{"kind":"class","name":"contacts.topPeers","type":"contacts.TopPeers","id":1891070632,"comment":"Top peers","arguments":[{"name":"categories","type":"TopPeerCategoryPeers","typeModifiers":{"isVector":true},"comment":"Top peers by top peer category"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"contacts.topPeersDisabled","type":"contacts.TopPeers","id":3039597469,"comment":"Top peers disabled","arguments":[]},{"kind":"class","name":"draftMessageEmpty","type":"DraftMessage","id":453805082,"comment":"Empty draft","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"date","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"When was the draft last updated"}]},{"kind":"class","name":"draftMessage","id":761606687,"type":"DraftMessage","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"no_webpage","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether no webpage preview will be generated"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"reply_to","type":"InputReplyTo","typeModifiers":{"predicate":"flags.4"},"comment":"If set, indicates that the message should be sent in reply to the specified message or story."},{"name":"message","type":"string","comment":"The draft"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Message entities for styled text."},{"name":"media","type":"InputMedia","typeModifiers":{"predicate":"flags.5"},"comment":"Media."},{"name":"date","type":"int","comment":"Date of last update of the draft."},{"name":"effect","type":"long","typeModifiers":{"predicate":"flags.7"}}],"comment":"Represents a message draft."},{"kind":"class","name":"messages.featuredStickersNotModified","type":"messages.FeaturedStickers","id":3336309862,"comment":"Featured stickers haven't changed","arguments":[{"name":"count","type":"int","comment":"Total number of featured stickers"}]},{"kind":"class","name":"messages.featuredStickers","type":"messages.FeaturedStickers","id":3191351558,"comment":"Featured stickersets","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"premium","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this is a premium stickerset"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"count","type":"int","comment":"Total number of featured stickers"},{"name":"sets","type":"StickerSetCovered","typeModifiers":{"isVector":true},"comment":"Featured stickersets"},{"name":"unread","type":"long","typeModifiers":{"isVector":true},"comment":"IDs of new featured stickersets"}]},{"kind":"class","name":"messages.recentStickersNotModified","type":"messages.RecentStickers","id":186120336,"comment":"No new recent sticker was found","arguments":[]},{"kind":"class","name":"messages.recentStickers","type":"messages.RecentStickers","id":2295561302,"comment":"Recently used stickers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"packs","type":"StickerPack","typeModifiers":{"isVector":true},"comment":"Emojis associated to stickers"},{"name":"stickers","type":"Document","typeModifiers":{"isVector":true},"comment":"Recent stickers"},{"name":"dates","type":"int","typeModifiers":{"isVector":true},"comment":"When was each sticker last used"}]},{"kind":"class","name":"messages.archivedStickers","type":"messages.ArchivedStickers","id":1338747336,"comment":"Archived stickersets","arguments":[{"name":"count","type":"int","comment":"Number of archived stickers"},{"name":"sets","type":"StickerSetCovered","typeModifiers":{"isVector":true},"comment":"Archived stickersets"}]},{"kind":"class","name":"messages.stickerSetInstallResultSuccess","type":"messages.StickerSetInstallResult","id":946083368,"comment":"The stickerset was installed successfully","arguments":[]},{"kind":"class","name":"messages.stickerSetInstallResultArchive","type":"messages.StickerSetInstallResult","id":904138920,"comment":"The stickerset was installed, but since there are too many stickersets some were archived","arguments":[{"name":"sets","type":"StickerSetCovered","typeModifiers":{"isVector":true},"comment":"Archived stickersets"}]},{"kind":"class","name":"stickerSetCovered","type":"StickerSetCovered","id":1678812626,"comment":"Stickerset with a single sticker as preview","arguments":[{"name":"set","type":"StickerSet","comment":"Stickerset"},{"name":"cover","type":"Document","comment":"Preview"}]},{"kind":"class","name":"stickerSetMultiCovered","type":"StickerSetCovered","id":872932635,"comment":"Stickerset, with multiple stickers as preview","arguments":[{"name":"set","type":"StickerSet","comment":"Stickerset"},{"name":"covers","type":"Document","typeModifiers":{"isVector":true},"comment":"Preview stickers"}]},{"kind":"class","name":"stickerSetFullCovered","type":"StickerSetCovered","id":1087454222,"comment":"Stickerset preview with all stickers of the stickerset included.
\nCurrently used only for custom emoji stickersets, to avoid a further call to {@link messages.RawGetStickerSetRequest}.","arguments":[{"name":"set","type":"StickerSet","comment":"Stickerset"},{"name":"packs","type":"StickerPack","typeModifiers":{"isVector":true},"comment":"Emoji information about every sticker in the stickerset"},{"name":"keywords","type":"StickerKeyword","typeModifiers":{"isVector":true},"comment":"Keywords for some or every sticker in the stickerset."},{"name":"documents","type":"Document","typeModifiers":{"isVector":true},"comment":"Stickers"}]},{"kind":"class","name":"stickerSetNoCovered","type":"StickerSetCovered","id":2008112412,"comment":"Just the stickerset information, with no previews.","arguments":[{"name":"set","type":"StickerSet","comment":"Stickerset information."}]},{"kind":"class","name":"maskCoords","type":"MaskCoords","id":2933316530,"comment":"Position on a photo where a mask should be placed when attaching stickers to media ยป\n\nThe n position indicates where the mask should be placed:","arguments":[{"name":"n","type":"int","comment":"Part of the face, relative to which the mask should be placed"},{"name":"x","type":"double","comment":"Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position)"},{"name":"y","type":"double","comment":"Shift by Y-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just below the default mask position)"},{"name":"zoom","type":"double","comment":"Mask scaling coefficient. (For example, 2.0 means a doubled size)"}]},{"kind":"class","name":"inputStickeredMediaPhoto","type":"InputStickeredMedia","id":1251549527,"comment":"A photo with stickers attached","arguments":[{"name":"id","type":"InputPhoto","comment":"The photo"}]},{"kind":"class","name":"inputStickeredMediaDocument","type":"InputStickeredMedia","id":70813275,"comment":"A document with stickers attached","arguments":[{"name":"id","type":"InputDocument","comment":"The document"}]},{"kind":"class","name":"game","type":"Game","id":3187238203,"comment":"Indicates an already sent game","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"long","comment":"ID of the game"},{"name":"access_hash","type":"long","comment":"Access hash of the game"},{"name":"short_name","type":"string","comment":"Short name for the game"},{"name":"title","type":"string","comment":"Title of the game"},{"name":"description","type":"string","comment":"Game description"},{"name":"photo","type":"Photo","comment":"Game preview"},{"name":"document","type":"Document","typeModifiers":{"predicate":"flags.0"},"comment":"Optional attached document"}]},{"kind":"class","name":"inputGameID","type":"InputGame","id":53231223,"comment":"Indicates an already sent game","arguments":[{"name":"id","type":"long","comment":"game ID from Game constructor"},{"name":"access_hash","type":"long","comment":"access hash from Game constructor"}]},{"kind":"class","name":"inputGameShortName","type":"InputGame","id":3274827786,"comment":"Game by short name","arguments":[{"name":"bot_id","type":"InputUser","comment":"The bot that provides the game"},{"name":"short_name","type":"string","comment":"The game's short name, usually obtained from a game link ยป"}]},{"kind":"class","name":"highScore","type":"HighScore","id":1940093419,"comment":"Game highscore","arguments":[{"name":"pos","type":"int","comment":"Position in highscore list"},{"name":"user_id","type":"int53","comment":"User ID"},{"name":"score","type":"int","comment":"Score"}]},{"kind":"class","name":"messages.highScores","type":"messages.HighScores","id":2587622809,"comment":"Highscores in a game","arguments":[{"name":"scores","type":"HighScore","typeModifiers":{"isVector":true},"comment":"Highscores"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users, associated to the highscores"}]},{"kind":"class","name":"textEmpty","type":"RichText","id":3695018575,"comment":"Empty rich text element","arguments":[]},{"kind":"class","name":"textPlain","type":"RichText","id":1950782688,"comment":"Plain text","arguments":[{"name":"text","type":"string","comment":"Text"}]},{"kind":"class","name":"textBold","type":"RichText","id":1730456516,"comment":"Bold text","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"textItalic","type":"RichText","id":3641877916,"comment":"Italic text","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"textUnderline","type":"RichText","id":3240501956,"comment":"Underlined text","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"textStrike","type":"RichText","id":2616769429,"comment":"Strikethrough text","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"textFixed","type":"RichText","id":1816074681,"comment":"fixed-width rich text","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"textUrl","type":"RichText","id":1009288385,"comment":"Link","arguments":[{"name":"text","type":"RichText","comment":"Text of link"},{"name":"url","type":"string","comment":"Webpage HTTP URL"},{"name":"webpage_id","type":"long","comment":"If a preview was already generated for the page, the page ID"}]},{"kind":"class","name":"textEmail","type":"RichText","id":3730443734,"comment":"Rich text email link","arguments":[{"name":"text","type":"RichText","comment":"Link text"},{"name":"email","type":"string","comment":"Email address"}]},{"kind":"class","name":"textConcat","type":"RichText","id":2120376535,"comment":"Concatenation of rich texts","arguments":[{"name":"texts","type":"RichText","typeModifiers":{"isVector":true},"comment":"Concatenated rich texts"}]},{"kind":"class","name":"textSubscript","type":"RichText","id":3983181060,"comment":"Subscript text","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"textSuperscript","type":"RichText","id":3355139585,"comment":"Superscript text","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"textMarked","type":"RichText","id":55281185,"comment":"Highlighted text","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"textPhone","type":"RichText","id":483104362,"comment":"Rich text linked to a phone number","arguments":[{"name":"text","type":"RichText","comment":"Text"},{"name":"phone","type":"string","comment":"Phone number"}]},{"kind":"class","name":"textImage","type":"RichText","id":136105807,"comment":"Inline image","arguments":[{"name":"document_id","type":"long","comment":"Document ID"},{"name":"w","type":"int","comment":"Width"},{"name":"h","type":"int","comment":"Height"}]},{"kind":"class","name":"textAnchor","type":"RichText","id":894777186,"comment":"Text linking to another section of the page","arguments":[{"name":"text","type":"RichText","comment":"Text"},{"name":"name","type":"string","comment":"Section name"}]},{"kind":"class","name":"pageBlockUnsupported","type":"PageBlock","id":324435594,"comment":"Unsupported IV element","arguments":[]},{"kind":"class","name":"pageBlockTitle","type":"PageBlock","id":1890305021,"comment":"Title","arguments":[{"name":"text","type":"RichText","comment":"Title"}]},{"kind":"class","name":"pageBlockSubtitle","type":"PageBlock","id":2415565343,"comment":"Subtitle","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"pageBlockAuthorDate","type":"PageBlock","id":3132089824,"comment":"Author and date of creation of article","arguments":[{"name":"author","type":"RichText","comment":"Author name"},{"name":"published_date","type":"int","comment":"Date of publication"}]},{"kind":"class","name":"pageBlockHeader","type":"PageBlock","id":3218105580,"comment":"Page header","arguments":[{"name":"text","type":"RichText","comment":"Contents"}]},{"kind":"class","name":"pageBlockSubheader","type":"PageBlock","id":4046173921,"comment":"Subheader","arguments":[{"name":"text","type":"RichText","comment":"Subheader"}]},{"kind":"class","name":"pageBlockParagraph","type":"PageBlock","id":1182402406,"comment":"A paragraph","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"pageBlockPreformatted","type":"PageBlock","id":3228621118,"comment":"Preformatted (
 text)","arguments":[{"name":"text","type":"RichText","comment":"Text"},{"name":"language","type":"string","comment":"Programming language of preformatted text"}]},{"kind":"class","name":"pageBlockFooter","type":"PageBlock","id":1216809369,"comment":"Page footer","arguments":[{"name":"text","type":"RichText","comment":"Contents"}]},{"kind":"class","name":"pageBlockDivider","type":"PageBlock","id":3676352904,"comment":"An empty block separating a page","arguments":[]},{"kind":"class","name":"pageBlockAnchor","type":"PageBlock","id":3456972720,"comment":"Link to section within the page itself (like anchor)","arguments":[{"name":"name","type":"string","comment":"Name of target section"}]},{"kind":"class","name":"pageBlockList","type":"PageBlock","id":3840442385,"comment":"Unordered list of IV blocks","arguments":[{"name":"items","type":"PageListItem","typeModifiers":{"isVector":true},"comment":"List of blocks in an IV page"}]},{"kind":"class","name":"pageBlockBlockquote","type":"PageBlock","id":641563686,"comment":"Quote (equivalent to the HTML 
)","arguments":[{"name":"text","type":"RichText","comment":"Quote contents"},{"name":"caption","type":"RichText","comment":"Caption"}]},{"kind":"class","name":"pageBlockPullquote","type":"PageBlock","id":1329878739,"comment":"Pullquote","arguments":[{"name":"text","type":"RichText","comment":"Text"},{"name":"caption","type":"RichText","comment":"Caption"}]},{"kind":"class","name":"pageBlockPhoto","type":"PageBlock","id":391759200,"comment":"A photo","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"photo_id","type":"long","comment":"Photo ID"},{"name":"caption","type":"PageCaption","comment":"Caption"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"HTTP URL of page the photo leads to when clicked"},{"name":"webpage_id","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"ID of preview of the page the photo leads to when clicked"}]},{"kind":"class","name":"pageBlockVideo","type":"PageBlock","id":2089805750,"comment":"Video","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"autoplay","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the video is set to autoplay"},{"name":"loop","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the video is set to loop"},{"name":"video_id","type":"long","comment":"Video ID"},{"name":"caption","type":"PageCaption","comment":"Caption"}]},{"kind":"class","name":"pageBlockCover","type":"PageBlock","id":972174080,"comment":"A page cover","arguments":[{"name":"cover","type":"PageBlock","comment":"Cover"}]},{"kind":"class","name":"pageBlockEmbed","type":"PageBlock","id":2826014149,"comment":"An embedded webpage","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"full_width","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the block should be full width"},{"name":"allow_scrolling","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether scrolling should be allowed"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Web page URL, if available"},{"name":"html","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"HTML-markup of the embedded page"},{"name":"poster_photo_id","type":"long","typeModifiers":{"predicate":"flags.4"},"comment":"Poster photo, if available"},{"name":"w","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"Block width, if known"},{"name":"h","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"Block height, if known"},{"name":"caption","type":"PageCaption","comment":"Caption"}]},{"kind":"class","name":"pageBlockEmbedPost","type":"PageBlock","id":4065961995,"comment":"An embedded post","arguments":[{"name":"url","type":"string","comment":"Web page URL"},{"name":"webpage_id","type":"long","comment":"ID of generated webpage preview"},{"name":"author_photo_id","type":"long","comment":"ID of the author's photo"},{"name":"author","type":"string","comment":"Author name"},{"name":"date","type":"int","comment":"Creation date"},{"name":"blocks","type":"PageBlock","typeModifiers":{"isVector":true},"comment":"Post contents"},{"name":"caption","type":"PageCaption","comment":"Caption"}]},{"kind":"class","name":"pageBlockCollage","type":"PageBlock","id":1705048653,"comment":"Collage of media","arguments":[{"name":"items","type":"PageBlock","typeModifiers":{"isVector":true},"comment":"Media elements"},{"name":"caption","type":"PageCaption","comment":"Caption"}]},{"kind":"class","name":"pageBlockSlideshow","type":"PageBlock","id":52401552,"comment":"Slideshow","arguments":[{"name":"items","type":"PageBlock","typeModifiers":{"isVector":true},"comment":"Slideshow items"},{"name":"caption","type":"PageCaption","comment":"Caption"}]},{"kind":"class","name":"pageBlockChannel","type":"PageBlock","id":4011282869,"comment":"Reference to a telegram channel","arguments":[{"name":"channel","type":"Chat","comment":"The channel/supergroup/chat"}]},{"kind":"class","name":"pageBlockAudio","type":"PageBlock","id":2151899626,"comment":"Audio","arguments":[{"name":"audio_id","type":"long","comment":"Audio ID (to be fetched from the container {@link RawPage} constructor"},{"name":"caption","type":"PageCaption","comment":"Audio caption"}]},{"kind":"class","name":"pageBlockKicker","type":"PageBlock","id":504660880,"comment":"Kicker","arguments":[{"name":"text","type":"RichText","comment":"Contents"}]},{"kind":"class","name":"pageBlockTable","type":"PageBlock","id":3209554562,"comment":"Table","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"bordered","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Does the table have a visible border?"},{"name":"striped","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Is the table striped?"},{"name":"title","type":"RichText","comment":"Title"},{"name":"rows","type":"PageTableRow","typeModifiers":{"isVector":true},"comment":"Table rows"}]},{"kind":"class","name":"pageBlockOrderedList","type":"PageBlock","id":2592793057,"comment":"Ordered list of IV blocks","arguments":[{"name":"items","type":"PageListOrderedItem","typeModifiers":{"isVector":true},"comment":"List items"}]},{"kind":"class","name":"pageBlockDetails","type":"PageBlock","id":1987480557,"comment":"A collapsible details block","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"open","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the block is open by default"},{"name":"blocks","type":"PageBlock","typeModifiers":{"isVector":true},"comment":"Block contents"},{"name":"title","type":"RichText","comment":"Always visible heading for the block"}]},{"kind":"class","name":"pageBlockRelatedArticles","type":"PageBlock","id":370236054,"comment":"Related articles","arguments":[{"name":"title","type":"RichText","comment":"Title"},{"name":"articles","type":"PageRelatedArticle","typeModifiers":{"isVector":true},"comment":"Related articles"}]},{"kind":"class","name":"pageBlockMap","type":"PageBlock","id":2756656886,"comment":"A map","arguments":[{"name":"geo","type":"GeoPoint","comment":"Location of the map center"},{"name":"zoom","type":"int","comment":"Map zoom level; 13-20"},{"name":"w","type":"int","comment":"Map width in pixels before applying scale; 16-102"},{"name":"h","type":"int","comment":"Map height in pixels before applying scale; 16-1024"},{"name":"caption","type":"PageCaption","comment":"Caption"}]},{"kind":"class","name":"phoneCallDiscardReasonMissed","type":"PhoneCallDiscardReason","id":2246320897,"comment":"The phone call was missed","arguments":[]},{"kind":"class","name":"phoneCallDiscardReasonDisconnect","type":"PhoneCallDiscardReason","id":3767910816,"comment":"The phone call was disconnected","arguments":[]},{"kind":"class","name":"phoneCallDiscardReasonHangup","type":"PhoneCallDiscardReason","id":1471006352,"comment":"The phone call was ended normally","arguments":[]},{"kind":"class","name":"phoneCallDiscardReasonBusy","type":"PhoneCallDiscardReason","id":4210550985,"comment":"The phone call was discarded because the user is busy in another call","arguments":[]},{"kind":"class","name":"dataJSON","type":"DataJSON","id":2104790276,"comment":"Represents a json-encoded object","arguments":[{"name":"data","type":"string","comment":"JSON-encoded object"}]},{"kind":"class","name":"labeledPrice","type":"LabeledPrice","id":3408489464,"comment":"This object represents a portion of the price for goods or services.","arguments":[{"name":"label","type":"string","comment":"Portion label"},{"name":"amount","type":"long","comment":"Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}]},{"kind":"class","name":"invoice","type":"Invoice","id":1572428309,"comment":"Invoice","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"test","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Test invoice"},{"name":"name_requested","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Set this flag if you require the user's full name to complete the order"},{"name":"phone_requested","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Set this flag if you require the user's phone number to complete the order"},{"name":"email_requested","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Set this flag if you require the user's email address to complete the order"},{"name":"shipping_address_requested","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Set this flag if you require the user's shipping address to complete the order"},{"name":"flexible","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Set this flag if the final price depends on the shipping method"},{"name":"phone_to_provider","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Set this flag if user's phone number should be sent to provider"},{"name":"email_to_provider","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Set this flag if user's email address should be sent to provider"},{"name":"recurring","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"Whether this is a recurring payment"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"prices","type":"LabeledPrice","typeModifiers":{"isVector":true},"comment":"Price breakdown, a list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)"},{"name":"max_tip_amount","type":"long","typeModifiers":{"predicate":"flags.8"},"comment":"The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"suggested_tip_amounts","type":"long","typeModifiers":{"predicate":"flags.8","isVector":true},"comment":"A vector of suggested amounts of tips in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount."},{"name":"terms_url","type":"string","typeModifiers":{"predicate":"flags.10"},"comment":"Terms of service URL"}]},{"kind":"class","name":"paymentCharge","type":"PaymentCharge","id":3926049406,"comment":"Payment identifier","arguments":[{"name":"id","type":"string","comment":"Telegram payment identifier"},{"name":"provider_charge_id","type":"string","comment":"Provider payment identifier"}]},{"kind":"class","name":"postAddress","type":"PostAddress","id":512535275,"comment":"Shipping address","arguments":[{"name":"street_line1","type":"string","comment":"First line for the address"},{"name":"street_line2","type":"string","comment":"Second line for the address"},{"name":"city","type":"string","comment":"City"},{"name":"state","type":"string","comment":"State, if applicable (empty otherwise)"},{"name":"country_iso2","type":"string","comment":"ISO 3166-1 alpha-2 country code"},{"name":"post_code","type":"string","comment":"Address post code"}]},{"kind":"class","name":"paymentRequestedInfo","type":"PaymentRequestedInfo","id":2426158996,"comment":"Order info provided by the user","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"name","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"User's full name"},{"name":"phone","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"User's phone number"},{"name":"email","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"User's email address"},{"name":"shipping_address","type":"PostAddress","typeModifiers":{"predicate":"flags.3"},"comment":"User's shipping address"}]},{"kind":"class","name":"paymentSavedCredentialsCard","type":"PaymentSavedCredentials","id":3452074527,"comment":"Saved credit card","arguments":[{"name":"id","type":"string","comment":"Card ID"},{"name":"title","type":"string","comment":"Title"}]},{"kind":"class","name":"webDocument","type":"WebDocument","id":475467473,"comment":"Remote document","arguments":[{"name":"url","type":"string","comment":"Document URL"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"size","type":"int","comment":"File size"},{"name":"mime_type","type":"string","comment":"MIME type"},{"name":"attributes","type":"DocumentAttribute","typeModifiers":{"isVector":true},"comment":"Attributes for media types"}]},{"kind":"class","name":"webDocumentNoProxy","type":"WebDocument","id":4190682310,"comment":"Remote document that can be downloaded without proxying through telegram","arguments":[{"name":"url","type":"string","comment":"Document URL"},{"name":"size","type":"int","comment":"File size"},{"name":"mime_type","type":"string","comment":"MIME type"},{"name":"attributes","type":"DocumentAttribute","typeModifiers":{"isVector":true},"comment":"Attributes for media types"}]},{"kind":"class","name":"inputWebDocument","type":"InputWebDocument","id":2616017741,"comment":"The document","arguments":[{"name":"url","type":"string","comment":"Remote document URL to be downloaded using the appropriate method"},{"name":"size","type":"int","comment":"Remote file size"},{"name":"mime_type","type":"string","comment":"Mime type"},{"name":"attributes","type":"DocumentAttribute","typeModifiers":{"isVector":true},"comment":"Attributes for media types"}]},{"kind":"class","name":"inputWebFileLocation","type":"InputWebFileLocation","id":3258570374,"comment":"Location of a remote HTTP(s) file","arguments":[{"name":"url","type":"string","comment":"HTTP URL of file"},{"name":"access_hash","type":"long","comment":"Access hash"}]},{"kind":"class","name":"inputWebFileGeoPointLocation","type":"InputWebFileLocation","id":2669814217,"comment":"Used to download a server-generated image with the map preview from a {@link RawGeoPoint}, see the webfile docs for more info ยป.","arguments":[{"name":"geo_point","type":"InputGeoPoint","comment":"Generated from the lat, long and accuracy_radius parameters of the {@link RawGeoPoint}"},{"name":"access_hash","type":"long","comment":"Access hash of the {@link RawGeoPoint}"},{"name":"w","type":"int","comment":"Map width in pixels before applying scale; 16-1024"},{"name":"h","type":"int","comment":"Map height in pixels before applying scale; 16-1024"},{"name":"zoom","type":"int","comment":"Map zoom level; 13-20"},{"name":"scale","type":"int","comment":"Map scale; 1-3"}]},{"kind":"class","name":"inputWebFileAudioAlbumThumbLocation","type":"InputWebFileLocation","id":4100974884,"comment":"Used to download an album cover for any music file using {@link upload.RawGetWebFileRequest}, see the webfile docs for more info ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"small","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Used to return a thumbnail with 100x100 resolution (instead of the default 600x600)"},{"name":"document","type":"InputDocument","typeModifiers":{"predicate":"flags.0"},"comment":"The audio file in question: must NOT be provided in secret chats, provide the title and performer fields instead."},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Song title: should only be used in secret chats, in normal chats provide document instead, as it has more lax rate limits."},{"name":"performer","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Song performer: should only be used in secret chats, in normal chats provide document instead, as it has more lax rate limits."}]},{"kind":"class","name":"upload.webFile","type":"upload.WebFile","id":568808380,"comment":"Represents a chunk of an HTTP webfile downloaded through telegram's secure MTProto servers","arguments":[{"name":"size","type":"int","comment":"File size"},{"name":"mime_type","type":"string","comment":"Mime type"},{"name":"file_type","type":"storage.FileType","comment":"File type"},{"name":"mtime","type":"int","comment":"Modified time"},{"name":"bytes","type":"bytes","comment":"Data"}]},{"kind":"class","name":"payments.paymentForm","type":"payments.PaymentForm","id":2684716881,"comment":"Payment form","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"can_save_credentials","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the user can choose to save credentials."},{"name":"password_missing","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Indicates that the user can save payment credentials, but only after setting up a 2FA password (currently the account doesn't have a 2FA password)"},{"name":"form_id","type":"long","comment":"Form ID"},{"name":"bot_id","type":"int53","comment":"Bot ID"},{"name":"title","type":"string","comment":"Form title"},{"name":"description","type":"string","comment":"Description"},{"name":"photo","type":"WebDocument","typeModifiers":{"predicate":"flags.5"},"comment":"Product photo"},{"name":"invoice","type":"Invoice","comment":"Invoice"},{"name":"provider_id","type":"long","comment":"Payment provider ID."},{"name":"url","type":"string","comment":"Payment form URL"},{"name":"native_provider","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"Payment provider name.
One of the following:
- stripe"},{"name":"native_params","type":"DataJSON","typeModifiers":{"predicate":"flags.4"},"comment":"Contains information about the payment provider, if available, to support it natively without the need for opening the URL.
A JSON object that can contain the following fields:

- apple_pay_merchant_id: Apple Pay merchant ID
- google_pay_public_key: Google Pay public key
- need_country: True, if the user country must be provided,
- need_zip: True, if the user ZIP/postal code must be provided,
- need_cardholder_name: True, if the cardholder name must be provided
"},{"name":"additional_methods","type":"PaymentFormMethod","typeModifiers":{"predicate":"flags.6","isVector":true},"comment":"Additional payment methods"},{"name":"saved_info","type":"PaymentRequestedInfo","typeModifiers":{"predicate":"flags.0"},"comment":"Saved server-side order information"},{"name":"saved_credentials","type":"PaymentSavedCredentials","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Contains information about saved card credentials"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"payments.paymentFormStars","type":"payments.PaymentForm","id":2079764828,"arguments":[{"name":"flags","type":"#"},{"name":"form_id","type":"long"},{"name":"bot_id","type":"int53"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"photo","type":"WebDocument","typeModifiers":{"predicate":"flags.5"}},{"name":"invoice","type":"Invoice"},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"payments.validatedRequestedInfo","type":"payments.ValidatedRequestedInfo","id":3510966403,"comment":"Validated user-provided info","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"ID"},{"name":"shipping_options","type":"ShippingOption","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Shipping options"}]},{"kind":"class","name":"payments.paymentResult","type":"payments.PaymentResult","id":1314881805,"comment":"Payment result","arguments":[{"name":"updates","type":"Updates","comment":"Info about the payment"}]},{"kind":"class","name":"payments.paymentVerificationNeeded","type":"payments.PaymentResult","id":3628142905,"comment":"Payment was not successful, additional verification is needed","arguments":[{"name":"url","type":"string","comment":"URL for additional payment credentials verification"}]},{"kind":"class","name":"payments.paymentReceipt","type":"payments.PaymentReceipt","id":1891958275,"comment":"Receipt","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"date","type":"int","comment":"Date of generation"},{"name":"bot_id","type":"int53","comment":"Bot ID"},{"name":"provider_id","type":"long","comment":"Provider ID"},{"name":"title","type":"string","comment":"Title"},{"name":"description","type":"string","comment":"Description"},{"name":"photo","type":"WebDocument","typeModifiers":{"predicate":"flags.2"},"comment":"Photo"},{"name":"invoice","type":"Invoice","comment":"Invoice"},{"name":"info","type":"PaymentRequestedInfo","typeModifiers":{"predicate":"flags.0"},"comment":"Info"},{"name":"shipping","type":"ShippingOption","typeModifiers":{"predicate":"flags.1"},"comment":"Selected shipping option"},{"name":"tip_amount","type":"long","typeModifiers":{"predicate":"flags.3"},"comment":"Tipped amount"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"total_amount","type":"long","comment":"Total amount in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"credentials_title","type":"string","comment":"Payment credential name"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"payments.paymentReceiptStars","type":"payments.PaymentReceipt","id":3669751866,"arguments":[{"name":"flags","type":"#"},{"name":"date","type":"int"},{"name":"bot_id","type":"int53"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"photo","type":"WebDocument","typeModifiers":{"predicate":"flags.2"}},{"name":"invoice","type":"Invoice"},{"name":"currency","type":"string"},{"name":"total_amount","type":"long"},{"name":"transaction_id","type":"string"},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"payments.savedInfo","type":"payments.SavedInfo","id":4220511292,"comment":"Saved server-side order information","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_saved_credentials","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the user has some saved payment credentials"},{"name":"saved_info","type":"PaymentRequestedInfo","typeModifiers":{"predicate":"flags.0"},"comment":"Saved server-side order information"}]},{"kind":"class","name":"inputPaymentCredentialsSaved","type":"InputPaymentCredentials","id":3238965967,"comment":"Saved payment credentials","arguments":[{"name":"id","type":"string","comment":"Credential ID"},{"name":"tmp_password","type":"bytes","comment":"Temporary password"}]},{"kind":"class","name":"inputPaymentCredentials","type":"InputPaymentCredentials","id":873977640,"comment":"Payment credentials","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"save","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Save payment credential for future use"},{"name":"data","type":"DataJSON","comment":"Payment credentials"}]},{"kind":"class","name":"inputPaymentCredentialsApplePay","type":"InputPaymentCredentials","id":178373535,"comment":"Apple pay payment credentials","arguments":[{"name":"payment_data","type":"DataJSON","comment":"Payment data"}]},{"kind":"class","name":"inputPaymentCredentialsGooglePay","type":"InputPaymentCredentials","id":2328045569,"comment":"Google Pay payment credentials","arguments":[{"name":"payment_token","type":"DataJSON","comment":"Payment token"}]},{"kind":"class","name":"account.tmpPassword","type":"account.TmpPassword","id":3680828724,"comment":"Temporary payment password","arguments":[{"name":"tmp_password","type":"bytes","comment":"Temporary password"},{"name":"valid_until","type":"int","comment":"Validity period"}]},{"kind":"class","name":"shippingOption","type":"ShippingOption","id":3055631583,"comment":"Shipping option","arguments":[{"name":"id","type":"string","comment":"Option ID"},{"name":"title","type":"string","comment":"Title"},{"name":"prices","type":"LabeledPrice","typeModifiers":{"isVector":true},"comment":"List of price portions"}]},{"kind":"class","name":"inputStickerSetItem","type":"InputStickerSetItem","id":853188252,"comment":"Sticker in a stickerset","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"document","type":"InputDocument","comment":"The sticker"},{"name":"emoji","type":"string","comment":"Associated emoji"},{"name":"mask_coords","type":"MaskCoords","typeModifiers":{"predicate":"flags.0"},"comment":"Coordinates for mask sticker"},{"name":"keywords","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Set of keywords, separated by commas (can't be provided for mask stickers)"}]},{"kind":"class","name":"inputPhoneCall","type":"InputPhoneCall","id":506920429,"comment":"Phone call","arguments":[{"name":"id","type":"long","comment":"Call ID"},{"name":"access_hash","type":"long","comment":"Access hash"}]},{"kind":"class","name":"phoneCallEmpty","type":"PhoneCall","id":1399245077,"comment":"Empty constructor","arguments":[{"name":"id","type":"long","comment":"Call ID"}]},{"kind":"class","name":"phoneCallWaiting","type":"PhoneCall","id":3307368215,"comment":"Incoming phone call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Is this a video call"},{"name":"id","type":"long","comment":"Call ID"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"date","type":"int","comment":"Date"},{"name":"admin_id","type":"int53","comment":"Admin ID"},{"name":"participant_id","type":"int53","comment":"Participant ID"},{"name":"protocol","type":"PhoneCallProtocol","comment":"Phone call protocol info"},{"name":"receive_date","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"When was the phone call received"}]},{"kind":"class","name":"phoneCallRequested","type":"PhoneCall","id":347139340,"comment":"Requested phone call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether this is a video call"},{"name":"id","type":"long","comment":"Phone call ID"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"date","type":"int","comment":"When was the phone call created"},{"name":"admin_id","type":"int53","comment":"ID of the creator of the phone call"},{"name":"participant_id","type":"int53","comment":"ID of the other participant of the phone call"},{"name":"g_a_hash","type":"bytes","comment":"Parameter for key exchange"},{"name":"protocol","type":"PhoneCallProtocol","comment":"Call protocol info to be passed to libtgvoip"}]},{"kind":"class","name":"phoneCallAccepted","type":"PhoneCall","id":912311057,"comment":"An accepted phone call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether this is a video call"},{"name":"id","type":"long","comment":"ID of accepted phone call"},{"name":"access_hash","type":"long","comment":"Access hash of phone call"},{"name":"date","type":"int","comment":"When was the call accepted"},{"name":"admin_id","type":"int53","comment":"ID of the call creator"},{"name":"participant_id","type":"int53","comment":"ID of the other user in the call"},{"name":"g_b","type":"bytes","comment":"B parameter for secure E2E phone call key exchange"},{"name":"protocol","type":"PhoneCallProtocol","comment":"Protocol to use for phone call"}]},{"kind":"class","name":"phoneCall","id":810769141,"type":"PhoneCall","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"p2p_allowed","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether P2P connection to the other peer is allowed"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether this is a video call"},{"name":"id","type":"long","comment":"Call ID"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"date","type":"int","comment":"Date of creation of the call"},{"name":"admin_id","type":"int53","comment":"User ID of the creator of the call"},{"name":"participant_id","type":"int53","comment":"User ID of the other participant in the call"},{"name":"g_a_or_b","type":"bytes","comment":"Parameter for key exchange"},{"name":"key_fingerprint","type":"long","comment":"Key fingerprint"},{"name":"protocol","type":"PhoneCallProtocol","comment":"Call protocol info to be passed to libtgvoip"},{"name":"connections","type":"PhoneConnection","typeModifiers":{"isVector":true},"comment":"List of endpoints the user can connect to to exchange call data"},{"name":"start_date","type":"int","comment":"When was the call actually started"},{"name":"custom_parameters","type":"DataJSON","typeModifiers":{"predicate":"flags.7"}}],"comment":"Phone call"},{"kind":"class","name":"phoneCallDiscarded","type":"PhoneCall","id":1355435489,"comment":"Indicates a discarded phone call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"need_rating","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the server required the user to {@link phone.RawSetCallRatingRequest} the call"},{"name":"need_debug","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the server required the client to {@link phone.RawSaveCallDebugRequest} the libtgvoip call debug data"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether the call was a video call"},{"name":"id","type":"long","comment":"Call ID"},{"name":"reason","type":"PhoneCallDiscardReason","typeModifiers":{"predicate":"flags.0"},"comment":"Why was the phone call discarded"},{"name":"duration","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Duration of the phone call in seconds"}]},{"kind":"class","name":"phoneConnection","type":"PhoneConnection","id":2629903303,"comment":"Identifies an endpoint that can be used to connect to the other user in a phone call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"tcp","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether TCP should be used"},{"name":"id","type":"long","comment":"Endpoint ID"},{"name":"ip","type":"string","comment":"IP address of endpoint"},{"name":"ipv6","type":"string","comment":"IPv6 address of endpoint"},{"name":"port","type":"int","comment":"Port ID"},{"name":"peer_tag","type":"bytes","comment":"Our peer tag"}]},{"kind":"class","name":"phoneConnectionWebrtc","type":"PhoneConnection","id":1667228533,"comment":"WebRTC connection parameters","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"turn","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this is a TURN endpoint"},{"name":"stun","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this is a STUN endpoint"},{"name":"id","type":"long","comment":"Endpoint ID"},{"name":"ip","type":"string","comment":"IP address"},{"name":"ipv6","type":"string","comment":"IPv6 address"},{"name":"port","type":"int","comment":"Port"},{"name":"username","type":"string","comment":"Username"},{"name":"password","type":"string","comment":"Password"}]},{"kind":"class","name":"phoneCallProtocol","type":"PhoneCallProtocol","id":4236742600,"comment":"Protocol info for libtgvoip","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"udp_p2p","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to allow P2P connection to the other participant"},{"name":"udp_reflector","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to allow connection to the other participants through the reflector servers"},{"name":"min_layer","type":"int","comment":"Minimum layer for remote libtgvoip"},{"name":"max_layer","type":"int","comment":"Maximum layer for remote libtgvoip"},{"name":"library_versions","type":"string","typeModifiers":{"isVector":true},"comment":"When using {@link phone.RawRequestCallRequest} and {@link phone.RawAcceptCallRequest}, specify all library versions supported by the client.
The server will merge and choose the best library version supported by both peers, returning only the best value in the result of the callee's {@link phone.RawAcceptCallRequest} and in the {@link RawPhoneCallAccepted} update received by the caller."}]},{"kind":"class","name":"phone.phoneCall","type":"phone.PhoneCall","id":3968000320,"comment":"A VoIP phone call","arguments":[{"name":"phone_call","type":"PhoneCall","comment":"The VoIP phone call"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"VoIP phone call participants"}]},{"kind":"class","name":"upload.cdnFileReuploadNeeded","type":"upload.CdnFile","id":4004045934,"comment":"The file was cleared from the temporary RAM cache of the CDN and has to be re-uploaded.","arguments":[{"name":"request_token","type":"bytes","comment":"Request token (see CDN)"}]},{"kind":"class","name":"upload.cdnFile","type":"upload.CdnFile","id":2845821519,"comment":"Represent a chunk of a CDN file.","arguments":[{"name":"bytes","type":"bytes","comment":"The data"}]},{"kind":"class","name":"cdnPublicKey","type":"CdnPublicKey","id":3380800186,"comment":"Public key to use only during handshakes to CDN DCs.","arguments":[{"name":"dc_id","type":"int","comment":"CDN DC ID"},{"name":"public_key","type":"string","comment":"RSA public key"}]},{"kind":"class","name":"cdnConfig","type":"CdnConfig","id":1462101002,"comment":"Configuration for CDN file downloads.","arguments":[{"name":"public_keys","type":"CdnPublicKey","typeModifiers":{"isVector":true},"comment":"Vector of public keys to use only during handshakes to CDN DCs."}]},{"kind":"class","name":"langPackString","type":"LangPackString","id":3402727926,"comment":"Translated localization string","arguments":[{"name":"key","type":"string","comment":"Language key"},{"name":"value","type":"string","comment":"Value"}]},{"kind":"class","name":"langPackStringPluralized","type":"LangPackString","id":1816636575,"comment":"A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"key","type":"string","comment":"Localization key"},{"name":"zero_value","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Value for zero objects"},{"name":"one_value","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Value for one object"},{"name":"two_value","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Value for two objects"},{"name":"few_value","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Value for a few objects"},{"name":"many_value","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"Value for many objects"},{"name":"other_value","type":"string","comment":"Default value"}]},{"kind":"class","name":"langPackStringDeleted","type":"LangPackString","id":695856818,"comment":"Deleted localization string","arguments":[{"name":"key","type":"string","comment":"Localization key"}]},{"kind":"class","name":"langPackDifference","type":"LangPackDifference","id":4085629430,"comment":"Changes to the app's localization pack","arguments":[{"name":"lang_code","type":"string","comment":"Language code"},{"name":"from_version","type":"int","comment":"Previous version number"},{"name":"version","type":"int","comment":"New version number"},{"name":"strings","type":"LangPackString","typeModifiers":{"isVector":true},"comment":"Localized strings"}]},{"kind":"class","name":"langPackLanguage","type":"LangPackLanguage","id":4006239459,"comment":"Identifies a localization pack","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"official","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the language pack is official"},{"name":"rtl","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Is this a localization pack for an RTL language"},{"name":"beta","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Is this a beta localization pack?"},{"name":"name","type":"string","comment":"Language name"},{"name":"native_name","type":"string","comment":"Language name in the language itself"},{"name":"lang_code","type":"string","comment":"Language code (pack identifier)"},{"name":"base_lang_code","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it should be fetched from base language pack. Unsupported in custom language packs"},{"name":"plural_code","type":"string","comment":"A language code to be used to apply plural forms. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info"},{"name":"strings_count","type":"int","comment":"Total number of non-deleted strings from the language pack"},{"name":"translated_count","type":"int","comment":"Total number of translated strings from the language pack"},{"name":"translations_url","type":"string","comment":"Link to language translation interface; empty for custom local language packs"}]},{"kind":"class","name":"channelAdminLogEventActionChangeTitle","type":"ChannelAdminLogEventAction","id":3873421349,"comment":"Channel/supergroup title was changed","arguments":[{"name":"prev_value","type":"string","comment":"Previous title"},{"name":"new_value","type":"string","comment":"New title"}]},{"kind":"class","name":"channelAdminLogEventActionChangeAbout","type":"ChannelAdminLogEventAction","id":1427671598,"comment":"The description was changed","arguments":[{"name":"prev_value","type":"string","comment":"Previous description"},{"name":"new_value","type":"string","comment":"New description"}]},{"kind":"class","name":"channelAdminLogEventActionChangeUsername","type":"ChannelAdminLogEventAction","id":1783299128,"comment":"Channel/supergroup username was changed","arguments":[{"name":"prev_value","type":"string","comment":"Old username"},{"name":"new_value","type":"string","comment":"New username"}]},{"kind":"class","name":"channelAdminLogEventActionChangePhoto","type":"ChannelAdminLogEventAction","id":1129042607,"comment":"The channel/supergroup's picture was changed","arguments":[{"name":"prev_photo","type":"Photo","comment":"Previous picture"},{"name":"new_photo","type":"Photo","comment":"New picture"}]},{"kind":"class","name":"channelAdminLogEventActionToggleInvites","type":"ChannelAdminLogEventAction","id":460916654,"comment":"Invites were enabled/disabled","arguments":[{"name":"new_value","type":"Bool","comment":"New value"}]},{"kind":"class","name":"channelAdminLogEventActionToggleSignatures","type":"ChannelAdminLogEventAction","id":648939889,"comment":"Channel signatures were enabled/disabled","arguments":[{"name":"new_value","type":"Bool","comment":"New value"}]},{"kind":"class","name":"channelAdminLogEventActionUpdatePinned","type":"ChannelAdminLogEventAction","id":3924306968,"comment":"A message was pinned","arguments":[{"name":"message","type":"Message","comment":"The message that was pinned"}]},{"kind":"class","name":"channelAdminLogEventActionEditMessage","type":"ChannelAdminLogEventAction","id":1889215493,"comment":"A message was edited","arguments":[{"name":"prev_message","type":"Message","comment":"Old message"},{"name":"new_message","type":"Message","comment":"New message"}]},{"kind":"class","name":"channelAdminLogEventActionDeleteMessage","type":"ChannelAdminLogEventAction","id":1121994683,"comment":"A message was deleted","arguments":[{"name":"message","type":"Message","comment":"The message that was deleted"}]},{"kind":"class","name":"channelAdminLogEventActionParticipantJoin","type":"ChannelAdminLogEventAction","id":405815507,"comment":"A user has joined the group (in the case of big groups, info of the user that has joined isn't shown)","arguments":[]},{"kind":"class","name":"channelAdminLogEventActionParticipantLeave","type":"ChannelAdminLogEventAction","id":4170676210,"comment":"A user left the channel/supergroup (in the case of big groups, info of the user that has joined isn't shown)","arguments":[]},{"kind":"class","name":"channelAdminLogEventActionParticipantInvite","type":"ChannelAdminLogEventAction","id":3810276568,"comment":"A user was invited to the group","arguments":[{"name":"participant","type":"ChannelParticipant","comment":"The user that was invited"}]},{"kind":"class","name":"channelAdminLogEventActionParticipantToggleBan","type":"ChannelAdminLogEventAction","id":3872931198,"comment":"The banned rights of a user were changed","arguments":[{"name":"prev_participant","type":"ChannelParticipant","comment":"Old banned rights of user"},{"name":"new_participant","type":"ChannelParticipant","comment":"New banned rights of user"}]},{"kind":"class","name":"channelAdminLogEventActionParticipantToggleAdmin","type":"ChannelAdminLogEventAction","id":3580323600,"comment":"The admin rights of a user were changed","arguments":[{"name":"prev_participant","type":"ChannelParticipant","comment":"Previous admin rights"},{"name":"new_participant","type":"ChannelParticipant","comment":"New admin rights"}]},{"kind":"class","name":"channelAdminLogEventActionChangeStickerSet","type":"ChannelAdminLogEventAction","id":2982398631,"comment":"The supergroup's stickerset was changed","arguments":[{"name":"prev_stickerset","type":"InputStickerSet","comment":"Previous stickerset"},{"name":"new_stickerset","type":"InputStickerSet","comment":"New stickerset"}]},{"kind":"class","name":"channelAdminLogEventActionTogglePreHistoryHidden","type":"ChannelAdminLogEventAction","id":1599903217,"comment":"The hidden prehistory setting was {@link channels.RawTogglePreHistoryHiddenRequest}","arguments":[{"name":"new_value","type":"Bool","comment":"New value"}]},{"kind":"class","name":"channelAdminLogEventActionDefaultBannedRights","type":"ChannelAdminLogEventAction","id":771095562,"comment":"The default banned rights were modified","arguments":[{"name":"prev_banned_rights","type":"ChatBannedRights","comment":"Previous global banned rights"},{"name":"new_banned_rights","type":"ChatBannedRights","comment":"New global banned rights."}]},{"kind":"class","name":"channelAdminLogEventActionStopPoll","type":"ChannelAdminLogEventAction","id":2399639107,"comment":"A poll was stopped","arguments":[{"name":"message","type":"Message","comment":"The poll that was stopped"}]},{"kind":"class","name":"channelAdminLogEventActionChangeLinkedChat","type":"ChannelAdminLogEventAction","id":84703944,"comment":"The linked chat was changed","arguments":[{"name":"prev_value","type":"int53","comment":"Previous linked chat"},{"name":"new_value","type":"int53","comment":"New linked chat"}]},{"kind":"class","name":"channelAdminLogEventActionChangeLocation","type":"ChannelAdminLogEventAction","id":241923758,"comment":"The geo group location was changed","arguments":[{"name":"prev_value","type":"ChannelLocation","comment":"Previous location"},{"name":"new_value","type":"ChannelLocation","comment":"New location"}]},{"kind":"class","name":"channelAdminLogEventActionToggleSlowMode","type":"ChannelAdminLogEventAction","id":1401984889,"comment":"{@link channels.RawToggleSlowModeRequest}","arguments":[{"name":"prev_value","type":"int","comment":"Previous slow mode value"},{"name":"new_value","type":"int","comment":"New slow mode value"}]},{"kind":"class","name":"channelAdminLogEventActionStartGroupCall","type":"ChannelAdminLogEventAction","id":589338437,"comment":"A group call was started","arguments":[{"name":"call","type":"InputGroupCall","comment":"Group call"}]},{"kind":"class","name":"channelAdminLogEventActionDiscardGroupCall","type":"ChannelAdminLogEventAction","id":3684667712,"comment":"A group call was terminated","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call that was terminated"}]},{"kind":"class","name":"channelAdminLogEventActionParticipantMute","type":"ChannelAdminLogEventAction","id":4179895506,"comment":"A group call participant was muted","arguments":[{"name":"participant","type":"GroupCallParticipant","comment":"The participant that was muted"}]},{"kind":"class","name":"channelAdminLogEventActionParticipantUnmute","type":"ChannelAdminLogEventAction","id":3863226816,"comment":"A group call participant was unmuted","arguments":[{"name":"participant","type":"GroupCallParticipant","comment":"The participant that was unmuted"}]},{"kind":"class","name":"channelAdminLogEventActionToggleGroupCallSetting","type":"ChannelAdminLogEventAction","id":1456906823,"comment":"Group call settings were changed","arguments":[{"name":"join_muted","type":"Bool","comment":"Whether all users are muted by default upon joining"}]},{"kind":"class","name":"channelAdminLogEventActionParticipantJoinByInvite","type":"ChannelAdminLogEventAction","id":4271882584,"comment":"A user joined the supergroup/channel using a specific invite link","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"via_chatlist","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"The participant joined by importing a chat folder deep link ยป."},{"name":"invite","type":"ExportedChatInvite","comment":"The invite link used to join the supergroup/channel"}]},{"kind":"class","name":"channelAdminLogEventActionExportedInviteDelete","type":"ChannelAdminLogEventAction","id":1515256996,"comment":"A chat invite was deleted","arguments":[{"name":"invite","type":"ExportedChatInvite","comment":"The deleted chat invite"}]},{"kind":"class","name":"channelAdminLogEventActionExportedInviteRevoke","type":"ChannelAdminLogEventAction","id":1091179342,"comment":"A specific invite link was revoked","arguments":[{"name":"invite","type":"ExportedChatInvite","comment":"The invite link that was revoked"}]},{"kind":"class","name":"channelAdminLogEventActionExportedInviteEdit","type":"ChannelAdminLogEventAction","id":3910056793,"comment":"A chat invite was edited","arguments":[{"name":"prev_invite","type":"ExportedChatInvite","comment":"Previous chat invite information"},{"name":"new_invite","type":"ExportedChatInvite","comment":"New chat invite information"}]},{"kind":"class","name":"channelAdminLogEventActionParticipantVolume","type":"ChannelAdminLogEventAction","id":1048537159,"comment":"channelAdminLogEvent.user_id has set the volume of participant.peer to participant.volume","arguments":[{"name":"participant","type":"GroupCallParticipant","comment":"The participant whose volume was changed"}]},{"kind":"class","name":"channelAdminLogEventActionChangeHistoryTTL","type":"ChannelAdminLogEventAction","id":1855199800,"comment":"The Time-To-Live of messages in this chat was changed","arguments":[{"name":"prev_value","type":"int","comment":"Previous value"},{"name":"new_value","type":"int","comment":"New value"}]},{"kind":"class","name":"channelAdminLogEventActionParticipantJoinByRequest","type":"ChannelAdminLogEventAction","id":2947945546,"comment":"A new member was accepted to the chat by an admin","arguments":[{"name":"invite","type":"ExportedChatInvite","comment":"The invite link that was used to join the chat"},{"name":"approved_by","type":"int53","comment":"ID of the admin that approved the invite"}]},{"kind":"class","name":"channelAdminLogEventActionToggleNoForwards","type":"ChannelAdminLogEventAction","id":3408578406,"comment":"Forwards were enabled or disabled","arguments":[{"name":"new_value","type":"Bool","comment":"Old value"}]},{"kind":"class","name":"channelAdminLogEventActionSendMessage","type":"ChannelAdminLogEventAction","id":663693416,"comment":"A message was posted in a channel","arguments":[{"name":"message","type":"Message","comment":"The message that was sent"}]},{"kind":"class","name":"channelAdminLogEventActionChangeAvailableReactions","type":"ChannelAdminLogEventAction","id":3192786680,"comment":"The set of allowed message reactions ยป for this channel has changed","arguments":[{"name":"prev_value","type":"ChatReactions","comment":"Previously allowed reaction emojis"},{"name":"new_value","type":"ChatReactions","comment":"New allowed reaction emojis"}]},{"kind":"class","name":"channelAdminLogEventActionChangeUsernames","type":"ChannelAdminLogEventAction","id":4031755177,"comment":"The list of usernames associated with the channel was changed","arguments":[{"name":"prev_value","type":"string","typeModifiers":{"isVector":true},"comment":"Previous set of usernames"},{"name":"new_value","type":"string","typeModifiers":{"isVector":true},"comment":"New set of usernames"}]},{"kind":"class","name":"channelAdminLogEventActionToggleForum","type":"ChannelAdminLogEventAction","id":46949251,"comment":"Forum functionality was enabled or disabled.","arguments":[{"name":"new_value","type":"Bool","comment":"Whether forum functionality was enabled or disabled."}]},{"kind":"class","name":"channelAdminLogEventActionCreateTopic","type":"ChannelAdminLogEventAction","id":1483767080,"comment":"A forum topic was created","arguments":[{"name":"topic","type":"ForumTopic","comment":"The forum topic that was created"}]},{"kind":"class","name":"channelAdminLogEventActionEditTopic","type":"ChannelAdminLogEventAction","id":4033864200,"comment":"A forum topic was edited","arguments":[{"name":"prev_topic","type":"ForumTopic","comment":"Previous topic information"},{"name":"new_topic","type":"ForumTopic","comment":"New topic information"}]},{"kind":"class","name":"channelAdminLogEventActionDeleteTopic","type":"ChannelAdminLogEventAction","id":2920712457,"comment":"A forum topic was deleted","arguments":[{"name":"topic","type":"ForumTopic","comment":"The forum topic that was deleted"}]},{"kind":"class","name":"channelAdminLogEventActionPinTopic","type":"ChannelAdminLogEventAction","id":1569535291,"comment":"A forum topic was pinned or unpinned","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"prev_topic","type":"ForumTopic","typeModifiers":{"predicate":"flags.0"},"comment":"Previous topic information"},{"name":"new_topic","type":"ForumTopic","typeModifiers":{"predicate":"flags.1"},"comment":"New topic information"}]},{"kind":"class","name":"channelAdminLogEventActionToggleAntiSpam","type":"ChannelAdminLogEventAction","id":1693675004,"comment":"Native antispam functionality was enabled or disabled.","arguments":[{"name":"new_value","type":"Bool","comment":"Whether antispam functionality was enabled or disabled."}]},{"kind":"class","name":"channelAdminLogEventActionChangePeerColor","type":"ChannelAdminLogEventAction","id":1469507456,"comment":"The message accent color was changed","arguments":[{"name":"prev_value","type":"PeerColor","comment":"Previous accent palette"},{"name":"new_value","type":"PeerColor","comment":"New accent palette"}]},{"kind":"class","name":"channelAdminLogEventActionChangeProfilePeerColor","type":"ChannelAdminLogEventAction","id":1581742885,"comment":"The profile accent color was changed","arguments":[{"name":"prev_value","type":"PeerColor","comment":"Previous accent palette"},{"name":"new_value","type":"PeerColor","comment":"New accent palette"}]},{"kind":"class","name":"channelAdminLogEventActionChangeWallpaper","type":"ChannelAdminLogEventAction","id":834362706,"comment":"The wallpaper was changed","arguments":[{"name":"prev_value","type":"WallPaper","comment":"Previous wallpaper"},{"name":"new_value","type":"WallPaper","comment":"New wallpaper"}]},{"kind":"class","name":"channelAdminLogEventActionChangeEmojiStatus","type":"ChannelAdminLogEventAction","id":1051328177,"comment":"The emoji status was changed","arguments":[{"name":"prev_value","type":"EmojiStatus","comment":"Previous emoji status"},{"name":"new_value","type":"EmojiStatus","comment":"New emoji status"}]},{"kind":"class","name":"channelAdminLogEventActionChangeEmojiStickerSet","type":"ChannelAdminLogEventAction","id":1188577451,"arguments":[{"name":"prev_stickerset","type":"InputStickerSet"},{"name":"new_stickerset","type":"InputStickerSet"}]},{"kind":"class","name":"channelAdminLogEvent","type":"ChannelAdminLogEvent","id":531458253,"comment":"Admin log event","arguments":[{"name":"id","type":"long","comment":"Event ID"},{"name":"date","type":"int","comment":"Date"},{"name":"user_id","type":"int53","comment":"User ID"},{"name":"action","type":"ChannelAdminLogEventAction","comment":"Action"}]},{"kind":"class","name":"channels.adminLogResults","type":"channels.AdminLogResults","id":3985307469,"comment":"Admin log events","arguments":[{"name":"events","type":"ChannelAdminLogEvent","typeModifiers":{"isVector":true},"comment":"Admin log events"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats mentioned in events"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in events"}]},{"kind":"class","name":"channelAdminLogEventsFilter","type":"ChannelAdminLogEventsFilter","id":3926948580,"comment":"Filter only certain admin log events","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"join","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"{@link RawChannelAdminLogEventActionParticipantJoin}, including {@link RawChannelAdminLogEventActionParticipantJoinByInvite} and {@link RawChannelAdminLogEventActionParticipantJoinByRequest}."},{"name":"leave","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"{@link RawChannelAdminLogEventActionParticipantLeave}"},{"name":"invite","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"{@link RawChannelAdminLogEventActionParticipantInvite}"},{"name":"ban","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"{@link RawChannelAdminLogEventActionParticipantToggleBan}"},{"name":"unban","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"{@link RawChannelAdminLogEventActionParticipantToggleBan}"},{"name":"kick","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"{@link RawChannelAdminLogEventActionParticipantToggleBan}"},{"name":"unkick","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"{@link RawChannelAdminLogEventActionParticipantToggleBan}"},{"name":"promote","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"{@link RawChannelAdminLogEventActionParticipantToggleAdmin}"},{"name":"demote","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"{@link RawChannelAdminLogEventActionParticipantToggleAdmin}"},{"name":"info","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"Info change events (when {@link RawChannelAdminLogEventActionChangeAbout}, {@link RawChannelAdminLogEventActionChangeLinkedChat}, {@link RawChannelAdminLogEventActionChangeLocation}, {@link RawChannelAdminLogEventActionChangePhoto}, {@link RawChannelAdminLogEventActionChangeStickerSet}, {@link RawChannelAdminLogEventActionChangeTitle} or {@link RawChannelAdminLogEventActionChangeUsername}, {@link RawChannelAdminLogEventActionToggleSlowMode}, {@link RawChannelAdminLogEventActionChangeHistoryTTL} settings of a channel gets modified)"},{"name":"settings","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"Settings change events ({@link RawChannelAdminLogEventActionToggleInvites}, {@link RawChannelAdminLogEventActionTogglePreHistoryHidden}, {@link RawChannelAdminLogEventActionToggleSignatures}, {@link RawChannelAdminLogEventActionDefaultBannedRights}, {@link RawChannelAdminLogEventActionToggleForum})"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"{@link RawChannelAdminLogEventActionUpdatePinned}"},{"name":"edit","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"{@link RawChannelAdminLogEventActionEditMessage}"},{"name":"delete","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"{@link RawChannelAdminLogEventActionDeleteMessage}"},{"name":"group_call","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Group call events"},{"name":"invites","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"Invite events"},{"name":"send","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"A message was posted in a channel"},{"name":"forums","type":"true","typeModifiers":{"predicate":"flags.17"},"comment":"Forum-related events"}]},{"kind":"class","name":"popularContact","type":"PopularContact","id":1558266229,"comment":"Popular contact","arguments":[{"name":"client_id","type":"long","comment":"Contact identifier"},{"name":"importers","type":"int","comment":"How many people imported this contact"}]},{"kind":"class","name":"messages.favedStickersNotModified","type":"messages.FavedStickers","id":2660214483,"comment":"No new favorited stickers were found","arguments":[]},{"kind":"class","name":"messages.favedStickers","type":"messages.FavedStickers","id":750063767,"comment":"Favorited stickers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"packs","type":"StickerPack","typeModifiers":{"isVector":true},"comment":"Emojis associated to stickers"},{"name":"stickers","type":"Document","typeModifiers":{"isVector":true},"comment":"Favorited stickers"}]},{"kind":"class","name":"recentMeUrlUnknown","type":"RecentMeUrl","id":1189204285,"comment":"Unknown t.me url","arguments":[{"name":"url","type":"string","comment":"URL"}]},{"kind":"class","name":"recentMeUrlUser","type":"RecentMeUrl","id":3106671074,"comment":"Recent t.me link to a user","arguments":[{"name":"url","type":"string","comment":"URL"},{"name":"user_id","type":"int53","comment":"User ID"}]},{"kind":"class","name":"recentMeUrlChat","type":"RecentMeUrl","id":3000660434,"comment":"Recent t.me link to a chat","arguments":[{"name":"url","type":"string","comment":"t.me URL"},{"name":"chat_id","type":"int53","comment":"Chat ID"}]},{"kind":"class","name":"recentMeUrlChatInvite","type":"RecentMeUrl","id":3947431965,"comment":"Recent t.me invite link to a chat","arguments":[{"name":"url","type":"string","comment":"t.me URL"},{"name":"chat_invite","type":"ChatInvite","comment":"Chat invitation"}]},{"kind":"class","name":"recentMeUrlStickerSet","type":"RecentMeUrl","id":3154794460,"comment":"Recent t.me stickerset installation URL","arguments":[{"name":"url","type":"string","comment":"t.me URL"},{"name":"set","type":"StickerSetCovered","comment":"Stickerset"}]},{"kind":"class","name":"help.recentMeUrls","type":"help.RecentMeUrls","id":235081943,"comment":"Recent t.me URLs","arguments":[{"name":"urls","type":"RecentMeUrl","typeModifiers":{"isVector":true},"comment":"URLs"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"inputSingleMedia","type":"InputSingleMedia","id":482797855,"comment":"A single media in an album or grouped media sent with {@link messages.RawSendMultiMediaRequest}.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"media","type":"InputMedia","comment":"The media"},{"name":"random_id","type":"long","comment":"Unique client media ID required to prevent message resending"},{"name":"message","type":"string","comment":"A caption for the media"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Message entities for styled text"}]},{"kind":"class","name":"webAuthorization","type":"WebAuthorization","id":2801333330,"comment":"Represents a bot logged in using the Telegram login widget","arguments":[{"name":"hash","type":"long","comment":"Authorization hash"},{"name":"bot_id","type":"int53","comment":"Bot ID"},{"name":"domain","type":"string","comment":"The domain name of the website on which the user has logged in."},{"name":"browser","type":"string","comment":"Browser user-agent"},{"name":"platform","type":"string","comment":"Platform"},{"name":"date_created","type":"int","comment":"When was the web session created"},{"name":"date_active","type":"int","comment":"When was the web session last active"},{"name":"ip","type":"string","comment":"IP address"},{"name":"region","type":"string","comment":"Region, determined from IP address"}]},{"kind":"class","name":"account.webAuthorizations","type":"account.WebAuthorizations","id":3981887996,"comment":"Web authorizations","arguments":[{"name":"authorizations","type":"WebAuthorization","typeModifiers":{"isVector":true},"comment":"Web authorization list"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users"}]},{"kind":"class","name":"inputMessageID","type":"InputMessage","id":2792792866,"comment":"Message by ID","arguments":[{"name":"id","type":"int","comment":"Message ID"}]},{"kind":"class","name":"inputMessageReplyTo","type":"InputMessage","id":3134751637,"comment":"Message to which the specified message replies to","arguments":[{"name":"id","type":"int","comment":"ID of the message that replies to the message we need"}]},{"kind":"class","name":"inputMessagePinned","type":"InputMessage","id":2257003832,"comment":"Pinned message","arguments":[]},{"kind":"class","name":"inputMessageCallbackQuery","type":"InputMessage","id":2902071934,"comment":"Used by bots for fetching information about the message that originated a callback query","arguments":[{"name":"id","type":"int","comment":"Message ID"},{"name":"query_id","type":"long","comment":"Callback query ID"}]},{"kind":"class","name":"inputDialogPeer","type":"InputDialogPeer","id":4239064759,"comment":"A peer","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"}]},{"kind":"class","name":"inputDialogPeerFolder","type":"InputDialogPeer","id":1684014375,"comment":"All peers in a peer folder","arguments":[{"name":"folder_id","type":"int","comment":"Peer folder ID, for more info click here"}]},{"kind":"class","name":"dialogPeer","type":"DialogPeer","id":3849174789,"comment":"Peer","arguments":[{"name":"peer","type":"Peer","comment":"Peer"}]},{"kind":"class","name":"dialogPeerFolder","type":"DialogPeer","id":1363483106,"comment":"Peer folder","arguments":[{"name":"folder_id","type":"int","comment":"Peer folder ID, for more info click here"}]},{"kind":"class","name":"messages.foundStickerSetsNotModified","type":"messages.FoundStickerSets","id":223655517,"comment":"No further results were found","arguments":[]},{"kind":"class","name":"messages.foundStickerSets","type":"messages.FoundStickerSets","id":2331024850,"comment":"Found stickersets","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"sets","type":"StickerSetCovered","typeModifiers":{"isVector":true},"comment":"Found stickersets"}]},{"kind":"class","name":"fileHash","type":"FileHash","id":4087022428,"comment":"SHA256 Hash of an uploaded file, to be checked for validity after download","arguments":[{"name":"offset","type":"int53","comment":"Offset from where to start computing SHA-256 hash"},{"name":"limit","type":"int","comment":"Length"},{"name":"hash","type":"bytes","comment":"SHA-256 Hash of file chunk, to be checked for validity after download"}]},{"kind":"class","name":"inputClientProxy","type":"InputClientProxy","id":1968737087,"comment":"Info about an MTProxy used to connect.","arguments":[{"name":"address","type":"string","comment":"Proxy address"},{"name":"port","type":"int","comment":"Proxy port"}]},{"kind":"class","name":"help.termsOfServiceUpdateEmpty","type":"help.TermsOfServiceUpdate","id":3811614591,"comment":"No changes were made to telegram's terms of service","arguments":[{"name":"expires","type":"int","comment":"New TOS updates will have to be queried using {@link help.RawGetTermsOfServiceUpdateRequest} in expires seconds"}]},{"kind":"class","name":"help.termsOfServiceUpdate","type":"help.TermsOfServiceUpdate","id":686618977,"comment":"Info about an update of telegram's terms of service. If the terms of service are declined, then the {@link account.RawDeleteAccountRequest} method should be called with the reason \"Decline ToS update\"","arguments":[{"name":"expires","type":"int","comment":"New TOS updates will have to be queried using {@link help.RawGetTermsOfServiceUpdateRequest} in expires seconds"},{"name":"terms_of_service","type":"help.TermsOfService","comment":"New terms of service"}]},{"kind":"class","name":"inputSecureFileUploaded","type":"InputSecureFile","id":859091184,"comment":"Uploaded secure file, for more info see the passport docs ยป","arguments":[{"name":"id","type":"long","comment":"Secure file ID"},{"name":"parts","type":"int","comment":"Secure file part count"},{"name":"md5_checksum","type":"string","comment":"MD5 hash of encrypted uploaded file, to be checked server-side"},{"name":"file_hash","type":"bytes","comment":"File hash"},{"name":"secret","type":"bytes","comment":"Secret"}]},{"kind":"class","name":"inputSecureFile","type":"InputSecureFile","id":1399317950,"comment":"Pre-uploaded passport file, for more info see the passport docs ยป","arguments":[{"name":"id","type":"long","comment":"Secure file ID"},{"name":"access_hash","type":"long","comment":"Secure file access hash"}]},{"kind":"class","name":"secureFileEmpty","type":"SecureFile","id":1679398724,"comment":"Empty constructor","arguments":[]},{"kind":"class","name":"secureFile","type":"SecureFile","id":2097791614,"comment":"Secure passport file, for more info see the passport docs ยป","arguments":[{"name":"id","type":"long","comment":"ID"},{"name":"access_hash","type":"long","comment":"Access hash"},{"name":"size","type":"int53","comment":"File size"},{"name":"dc_id","type":"int","comment":"DC ID"},{"name":"date","type":"int","comment":"Date of upload"},{"name":"file_hash","type":"bytes","comment":"File hash"},{"name":"secret","type":"bytes","comment":"Secret"}]},{"kind":"class","name":"secureData","type":"SecureData","id":2330640067,"comment":"Secure passport data, for more info see the passport docs ยป","arguments":[{"name":"data","type":"bytes","comment":"Data"},{"name":"data_hash","type":"bytes","comment":"Data hash"},{"name":"secret","type":"bytes","comment":"Secret"}]},{"kind":"class","name":"securePlainPhone","type":"SecurePlainData","id":2103482845,"comment":"Phone number to use in telegram passport: it must be verified, first ยป.","arguments":[{"name":"phone","type":"string","comment":"Phone number"}]},{"kind":"class","name":"securePlainEmail","type":"SecurePlainData","id":569137759,"comment":"Email address to use in telegram passport: it must be verified, first ยป.","arguments":[{"name":"email","type":"string","comment":"Email address"}]},{"kind":"class","name":"secureValueTypePersonalDetails","type":"SecureValueType","id":2636808675,"comment":"Personal details","arguments":[]},{"kind":"class","name":"secureValueTypePassport","type":"SecureValueType","id":1034709504,"comment":"Passport","arguments":[]},{"kind":"class","name":"secureValueTypeDriverLicense","type":"SecureValueType","id":115615172,"comment":"Driver's license","arguments":[]},{"kind":"class","name":"secureValueTypeIdentityCard","type":"SecureValueType","id":2698015819,"comment":"Identity card","arguments":[]},{"kind":"class","name":"secureValueTypeInternalPassport","type":"SecureValueType","id":2577698595,"comment":"Internal passport","arguments":[]},{"kind":"class","name":"secureValueTypeAddress","type":"SecureValueType","id":3420659238,"comment":"Address","arguments":[]},{"kind":"class","name":"secureValueTypeUtilityBill","type":"SecureValueType","id":4231435598,"comment":"Utility bill","arguments":[]},{"kind":"class","name":"secureValueTypeBankStatement","type":"SecureValueType","id":2299755533,"comment":"Bank statement","arguments":[]},{"kind":"class","name":"secureValueTypeRentalAgreement","type":"SecureValueType","id":2340959368,"comment":"Rental agreement","arguments":[]},{"kind":"class","name":"secureValueTypePassportRegistration","type":"SecureValueType","id":2581823594,"comment":"Internal registration passport","arguments":[]},{"kind":"class","name":"secureValueTypeTemporaryRegistration","type":"SecureValueType","id":3926060083,"comment":"Temporary registration","arguments":[]},{"kind":"class","name":"secureValueTypePhone","type":"SecureValueType","id":3005262555,"comment":"Phone","arguments":[]},{"kind":"class","name":"secureValueTypeEmail","type":"SecureValueType","id":2386339822,"comment":"Email","arguments":[]},{"kind":"class","name":"secureValue","type":"SecureValue","id":411017418,"comment":"Secure value","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"type","type":"SecureValueType","comment":"Secure passport value type"},{"name":"data","type":"SecureData","typeModifiers":{"predicate":"flags.0"},"comment":"Encrypted Telegram Passport element data"},{"name":"front_side","type":"SecureFile","typeModifiers":{"predicate":"flags.1"},"comment":"Encrypted passport file with the front side of the document"},{"name":"reverse_side","type":"SecureFile","typeModifiers":{"predicate":"flags.2"},"comment":"Encrypted passport file with the reverse side of the document"},{"name":"selfie","type":"SecureFile","typeModifiers":{"predicate":"flags.3"},"comment":"Encrypted passport file with a selfie of the user holding the document"},{"name":"translation","type":"SecureFile","typeModifiers":{"predicate":"flags.6","isVector":true},"comment":"Array of encrypted passport files with translated versions of the provided documents"},{"name":"files","type":"SecureFile","typeModifiers":{"predicate":"flags.4","isVector":true},"comment":"Array of encrypted passport files with photos the of the documents"},{"name":"plain_data","type":"SecurePlainData","typeModifiers":{"predicate":"flags.5"},"comment":"Plaintext verified passport data"},{"name":"hash","type":"bytes","comment":"Data hash"}]},{"kind":"class","name":"inputSecureValue","type":"InputSecureValue","id":3676426407,"comment":"Secure value, for more info see the passport docs ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"type","type":"SecureValueType","comment":"Secure passport value type"},{"name":"data","type":"SecureData","typeModifiers":{"predicate":"flags.0"},"comment":"Encrypted Telegram Passport element data"},{"name":"front_side","type":"InputSecureFile","typeModifiers":{"predicate":"flags.1"},"comment":"Encrypted passport file with the front side of the document"},{"name":"reverse_side","type":"InputSecureFile","typeModifiers":{"predicate":"flags.2"},"comment":"Encrypted passport file with the reverse side of the document"},{"name":"selfie","type":"InputSecureFile","typeModifiers":{"predicate":"flags.3"},"comment":"Encrypted passport file with a selfie of the user holding the document"},{"name":"translation","type":"InputSecureFile","typeModifiers":{"predicate":"flags.6","isVector":true},"comment":"Array of encrypted passport files with translated versions of the provided documents"},{"name":"files","type":"InputSecureFile","typeModifiers":{"predicate":"flags.4","isVector":true},"comment":"Array of encrypted passport files with photos the of the documents"},{"name":"plain_data","type":"SecurePlainData","typeModifiers":{"predicate":"flags.5"},"comment":"Plaintext verified passport data"}]},{"kind":"class","name":"secureValueHash","type":"SecureValueHash","id":3978218928,"comment":"Secure value hash","arguments":[{"name":"type","type":"SecureValueType","comment":"Secure value type"},{"name":"hash","type":"bytes","comment":"Hash"}]},{"kind":"class","name":"secureValueErrorData","type":"SecureValueError","id":3903065049,"comment":"Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes.","arguments":[{"name":"type","type":"SecureValueType","comment":"The section of the user's Telegram Passport which has the error, one of {@link RawSecureValueTypePersonalDetails}, {@link RawSecureValueTypePassport}, {@link RawSecureValueTypeDriverLicense}, {@link RawSecureValueTypeIdentityCard}, {@link RawSecureValueTypeInternalPassport}, {@link RawSecureValueTypeAddress}"},{"name":"data_hash","type":"bytes","comment":"Data hash"},{"name":"field","type":"string","comment":"Name of the data field which has the error"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureValueErrorFrontSide","type":"SecureValueError","id":12467706,"comment":"Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.","arguments":[{"name":"type","type":"SecureValueType","comment":"One of {@link RawSecureValueTypePassport}, {@link RawSecureValueTypeDriverLicense}, {@link RawSecureValueTypeIdentityCard}, {@link RawSecureValueTypeInternalPassport}"},{"name":"file_hash","type":"bytes","comment":"File hash"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureValueErrorReverseSide","type":"SecureValueError","id":2257201829,"comment":"Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes.","arguments":[{"name":"type","type":"SecureValueType","comment":"One of {@link RawSecureValueTypeDriverLicense}, {@link RawSecureValueTypeIdentityCard}"},{"name":"file_hash","type":"bytes","comment":"File hash"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureValueErrorSelfie","type":"SecureValueError","id":3845639894,"comment":"Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes.","arguments":[{"name":"type","type":"SecureValueType","comment":"One of {@link RawSecureValueTypePassport}, {@link RawSecureValueTypeDriverLicense}, {@link RawSecureValueTypeIdentityCard}, {@link RawSecureValueTypeInternalPassport}"},{"name":"file_hash","type":"bytes","comment":"File hash"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureValueErrorFile","type":"SecureValueError","id":2054162547,"comment":"Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.","arguments":[{"name":"type","type":"SecureValueType","comment":"One of {@link RawSecureValueTypeUtilityBill}, {@link RawSecureValueTypeBankStatement}, {@link RawSecureValueTypeRentalAgreement}, {@link RawSecureValueTypePassportRegistration}, {@link RawSecureValueTypeTemporaryRegistration}"},{"name":"file_hash","type":"bytes","comment":"File hash"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureValueErrorFiles","type":"SecureValueError","id":1717706985,"comment":"Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes.","arguments":[{"name":"type","type":"SecureValueType","comment":"One of {@link RawSecureValueTypeUtilityBill}, {@link RawSecureValueTypeBankStatement}, {@link RawSecureValueTypeRentalAgreement}, {@link RawSecureValueTypePassportRegistration}, {@link RawSecureValueTypeTemporaryRegistration}"},{"name":"file_hash","type":"bytes","typeModifiers":{"isVector":true},"comment":"File hash"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureValueError","type":"SecureValueError","id":2258466191,"comment":"Secure value error","arguments":[{"name":"type","type":"SecureValueType","comment":"Type of element which has the issue"},{"name":"hash","type":"bytes","comment":"Hash"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureValueErrorTranslationFile","type":"SecureValueError","id":2702460784,"comment":"Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.","arguments":[{"name":"type","type":"SecureValueType","comment":"One of {@link RawSecureValueTypePersonalDetails}, {@link RawSecureValueTypePassport}, {@link RawSecureValueTypeDriverLicense}, {@link RawSecureValueTypeIdentityCard}, {@link RawSecureValueTypeInternalPassport}, {@link RawSecureValueTypeUtilityBill}, {@link RawSecureValueTypeBankStatement}, {@link RawSecureValueTypeRentalAgreement}, {@link RawSecureValueTypePassportRegistration}, {@link RawSecureValueTypeTemporaryRegistration}"},{"name":"file_hash","type":"bytes","comment":"File hash"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureValueErrorTranslationFiles","type":"SecureValueError","id":878931416,"comment":"Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation changes.","arguments":[{"name":"type","type":"SecureValueType","comment":"One of {@link RawSecureValueTypePersonalDetails}, {@link RawSecureValueTypePassport}, {@link RawSecureValueTypeDriverLicense}, {@link RawSecureValueTypeIdentityCard}, {@link RawSecureValueTypeInternalPassport}, {@link RawSecureValueTypeUtilityBill}, {@link RawSecureValueTypeBankStatement}, {@link RawSecureValueTypeRentalAgreement}, {@link RawSecureValueTypePassportRegistration}, {@link RawSecureValueTypeTemporaryRegistration}"},{"name":"file_hash","type":"bytes","typeModifiers":{"isVector":true},"comment":"Hash"},{"name":"text","type":"string","comment":"Error message"}]},{"kind":"class","name":"secureCredentialsEncrypted","type":"SecureCredentialsEncrypted","id":871426631,"comment":"Encrypted credentials required to decrypt telegram passport data.","arguments":[{"name":"data","type":"bytes","comment":"Encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication, as described in decrypting data ยป"},{"name":"hash","type":"bytes","comment":"Data hash for data authentication as described in decrypting data ยป"},{"name":"secret","type":"bytes","comment":"Secret, encrypted with the bot's public RSA key, required for data decryption as described in decrypting data ยป"}]},{"kind":"class","name":"account.authorizationForm","type":"account.AuthorizationForm","id":2905480408,"comment":"Telegram Passport authorization form","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"required_types","type":"SecureRequiredType","typeModifiers":{"isVector":true},"comment":"Required Telegram Passport documents"},{"name":"values","type":"SecureValue","typeModifiers":{"isVector":true},"comment":"Already submitted Telegram Passport documents"},{"name":"errors","type":"SecureValueError","typeModifiers":{"isVector":true},"comment":"Telegram Passport errors"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Info about the bot to which the form will be submitted"},{"name":"privacy_policy_url","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"URL of the service's privacy policy"}]},{"kind":"class","name":"account.sentEmailCode","type":"account.SentEmailCode","id":2166326607,"comment":"The sent email code","arguments":[{"name":"email_pattern","type":"string","comment":"The email (to which the code was sent) must match this pattern"},{"name":"length","type":"int","comment":"The length of the verification code"}]},{"kind":"class","name":"help.deepLinkInfoEmpty","type":"help.DeepLinkInfo","id":1722786150,"comment":"Deep link info empty","arguments":[]},{"kind":"class","name":"help.deepLinkInfo","type":"help.DeepLinkInfo","id":1783556146,"comment":"Deep link info, see the here for more details","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"update_app","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"An update of the app is required to parse this link"},{"name":"message","type":"string","comment":"Message to show to the user"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"}]},{"kind":"class","name":"savedPhoneContact","type":"SavedContact","id":289586518,"comment":"Saved contact","arguments":[{"name":"phone","type":"string","comment":"Phone number"},{"name":"first_name","type":"string","comment":"First name"},{"name":"last_name","type":"string","comment":"Last name"},{"name":"date","type":"int","comment":"Date added"}]},{"kind":"class","name":"account.takeout","type":"account.Takeout","id":1304052993,"comment":"Takeout info","arguments":[{"name":"id","type":"long","comment":"Takeout ID"}]},{"kind":"class","name":"passwordKdfAlgoUnknown","type":"PasswordKdfAlgo","id":3562713238,"comment":"Unknown KDF (most likely, the client is outdated and does not support the specified KDF algorithm)","arguments":[]},{"kind":"class","name":"passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow","type":"PasswordKdfAlgo","id":982592842,"comment":"This key derivation algorithm defines that SRP 2FA login must be used","arguments":[{"name":"salt1","type":"bytes","comment":"One of two salts used by the derivation function (see SRP 2FA login)"},{"name":"salt2","type":"bytes","comment":"One of two salts used by the derivation function (see SRP 2FA login)"},{"name":"g","type":"int","comment":"Base (see SRP 2FA login)"},{"name":"p","type":"bytes","comment":"2048-bit modulus (see SRP 2FA login)"}]},{"kind":"class","name":"securePasswordKdfAlgoUnknown","type":"SecurePasswordKdfAlgo","id":4883767,"comment":"Unknown KDF algo (most likely the client has to be updated)","arguments":[]},{"kind":"class","name":"securePasswordKdfAlgoPBKDF2HMACSHA512iter100000","type":"SecurePasswordKdfAlgo","id":3153255840,"comment":"PBKDF2 with SHA512 and 100000 iterations KDF algo","arguments":[{"name":"salt","type":"bytes","comment":"Salt"}]},{"kind":"class","name":"securePasswordKdfAlgoSHA512","type":"SecurePasswordKdfAlgo","id":2252807570,"comment":"SHA512 KDF algo","arguments":[{"name":"salt","type":"bytes","comment":"Salt"}]},{"kind":"class","name":"secureSecretSettings","type":"SecureSecretSettings","id":354925740,"comment":"Secure settings","arguments":[{"name":"secure_algo","type":"SecurePasswordKdfAlgo","comment":"Secure KDF algo"},{"name":"secure_secret","type":"bytes","comment":"Secure secret"},{"name":"secure_secret_id","type":"long","comment":"Secret ID"}]},{"kind":"class","name":"inputCheckPasswordEmpty","type":"InputCheckPasswordSRP","id":2558588504,"comment":"There is no password","arguments":[]},{"kind":"class","name":"inputCheckPasswordSRP","type":"InputCheckPasswordSRP","id":3531600002,"comment":"Constructor for checking the validity of a 2FA SRP password (see SRP)","arguments":[{"name":"srp_id","type":"long","comment":"SRP ID"},{"name":"A","type":"bytes","comment":"A parameter (see SRP)"},{"name":"M1","type":"bytes","comment":"M1 parameter (see SRP)"}]},{"kind":"class","name":"secureRequiredType","type":"SecureRequiredType","id":2191366618,"comment":"Required type","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"native_names","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Native names"},{"name":"selfie_required","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Is a selfie required"},{"name":"translation_required","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Is a translation required"},{"name":"type","type":"SecureValueType","comment":"Secure value type"}]},{"kind":"class","name":"secureRequiredTypeOneOf","type":"SecureRequiredType","id":41187252,"comment":"One of","arguments":[{"name":"types","type":"SecureRequiredType","typeModifiers":{"isVector":true},"comment":"Secure required value types"}]},{"kind":"class","name":"help.passportConfigNotModified","type":"help.PassportConfig","id":3216634967,"comment":"Password configuration not modified","arguments":[]},{"kind":"class","name":"help.passportConfig","type":"help.PassportConfig","id":2694370991,"comment":"Telegram passport configuration","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"},{"name":"countries_langs","type":"DataJSON","comment":"Localization"}]},{"kind":"class","name":"inputAppEvent","type":"InputAppEvent","id":488313413,"comment":"Event that occurred in the application.","arguments":[{"name":"time","type":"double","comment":"Client's exact timestamp for the event"},{"name":"type","type":"string","comment":"Type of event"},{"name":"peer","type":"long","comment":"Arbitrary numeric value for more convenient selection of certain event types, or events referring to a certain object"},{"name":"data","type":"JSONValue","comment":"Details of the event"}]},{"kind":"class","name":"jsonObjectValue","type":"JSONObjectValue","id":3235781593,"comment":"JSON key: value pair","arguments":[{"name":"key","type":"string","comment":"Key"},{"name":"value","type":"JSONValue","comment":"Value"}]},{"kind":"class","name":"jsonNull","type":"JSONValue","id":1064139624,"comment":"null JSON value","arguments":[]},{"kind":"class","name":"jsonBool","type":"JSONValue","id":3342098026,"comment":"JSON boolean value","arguments":[{"name":"value","type":"Bool","comment":"Value"}]},{"kind":"class","name":"jsonNumber","type":"JSONValue","id":736157604,"comment":"JSON numeric value","arguments":[{"name":"value","type":"double","comment":"Value"}]},{"kind":"class","name":"jsonString","type":"JSONValue","id":3072226938,"comment":"JSON string","arguments":[{"name":"value","type":"string","comment":"Value"}]},{"kind":"class","name":"jsonArray","type":"JSONValue","id":4148447075,"comment":"JSON array","arguments":[{"name":"value","type":"JSONValue","typeModifiers":{"isVector":true},"comment":"JSON values"}]},{"kind":"class","name":"jsonObject","type":"JSONValue","id":2579616925,"comment":"JSON object value","arguments":[{"name":"value","type":"JSONObjectValue","typeModifiers":{"isVector":true},"comment":"Values"}]},{"kind":"class","name":"pageTableCell","type":"PageTableCell","id":878078826,"comment":"Table cell","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"header","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Is this element part of the column header"},{"name":"align_center","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Horizontally centered block"},{"name":"align_right","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Right-aligned block"},{"name":"valign_middle","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Vertically centered block"},{"name":"valign_bottom","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Block vertically-aligned to the bottom"},{"name":"text","type":"RichText","typeModifiers":{"predicate":"flags.7"},"comment":"Content"},{"name":"colspan","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"For how many columns should this cell extend"},{"name":"rowspan","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"For how many rows should this cell extend"}]},{"kind":"class","name":"pageTableRow","type":"PageTableRow","id":3770729957,"comment":"Table row","arguments":[{"name":"cells","type":"PageTableCell","typeModifiers":{"isVector":true},"comment":"Table cells"}]},{"kind":"class","name":"pageCaption","type":"PageCaption","id":1869903447,"comment":"Page caption","arguments":[{"name":"text","type":"RichText","comment":"Caption"},{"name":"credit","type":"RichText","comment":"Credits"}]},{"kind":"class","name":"pageListItemText","type":"PageListItem","id":3106911949,"comment":"List item","arguments":[{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"pageListItemBlocks","type":"PageListItem","id":635466748,"comment":"List item","arguments":[{"name":"blocks","type":"PageBlock","typeModifiers":{"isVector":true},"comment":"Blocks"}]},{"kind":"class","name":"pageListOrderedItemText","type":"PageListOrderedItem","id":1577484359,"comment":"Ordered list of text items","arguments":[{"name":"num","type":"string","comment":"Number of element within ordered list"},{"name":"text","type":"RichText","comment":"Text"}]},{"kind":"class","name":"pageListOrderedItemBlocks","type":"PageListOrderedItem","id":2564655414,"comment":"Ordered list of IV blocks","arguments":[{"name":"num","type":"string","comment":"Number of element within ordered list"},{"name":"blocks","type":"PageBlock","typeModifiers":{"isVector":true},"comment":"Item contents"}]},{"kind":"class","name":"pageRelatedArticle","type":"PageRelatedArticle","id":3012615176,"comment":"Related article","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"url","type":"string","comment":"URL of article"},{"name":"webpage_id","type":"long","comment":"Webpage ID of generated IV preview"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Title"},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Description"},{"name":"photo_id","type":"long","typeModifiers":{"predicate":"flags.2"},"comment":"ID of preview photo"},{"name":"author","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Author name"},{"name":"published_date","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Date of publication"}]},{"kind":"class","name":"page","type":"Page","id":2556788493,"comment":"Instant view page","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"part","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Indicates that not full page preview is available to the client and it will need to fetch full Instant View from the server using {@link messages.RawGetWebPagePreviewRequest}."},{"name":"rtl","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the page contains RTL text"},{"name":"v2","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this is an IV v2 page"},{"name":"url","type":"string","comment":"Original page HTTP URL"},{"name":"blocks","type":"PageBlock","typeModifiers":{"isVector":true},"comment":"Page elements (like with HTML elements, only as TL constructors)"},{"name":"photos","type":"Photo","typeModifiers":{"isVector":true},"comment":"Photos in page"},{"name":"documents","type":"Document","typeModifiers":{"isVector":true},"comment":"Media in page"},{"name":"views","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"View count"}]},{"kind":"class","name":"help.supportName","type":"help.SupportName","id":2349199817,"comment":"Localized name for telegram support","arguments":[{"name":"name","type":"string","comment":"Localized name"}]},{"kind":"class","name":"help.userInfoEmpty","type":"help.UserInfo","id":4088278765,"comment":"Internal use","arguments":[]},{"kind":"class","name":"help.userInfo","type":"help.UserInfo","id":32192344,"comment":"Internal use","arguments":[{"name":"message","type":"string","comment":"Info"},{"name":"entities","type":"MessageEntity","typeModifiers":{"isVector":true},"comment":"Message entities for styled text"},{"name":"author","type":"string","comment":"Author"},{"name":"date","type":"int","comment":"Date"}]},{"kind":"class","name":"pollAnswer","id":4279689930,"type":"PollAnswer","arguments":[{"name":"text","type":"TextWithEntities","comment":"Textual representation of the answer"},{"name":"option","type":"bytes","comment":"The param that has to be passed to {@link messages.RawSendVoteRequest}."}],"comment":"A possible answer of a poll"},{"kind":"class","name":"poll","id":1484026161,"type":"Poll","arguments":[{"name":"id","type":"long","comment":"ID of the poll"},{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"closed","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the poll is closed and doesn't accept any more answers"},{"name":"public_voters","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether cast votes are publicly visible to all users (non-anonymous poll)"},{"name":"multiple_choice","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether multiple options can be chosen as answer"},{"name":"quiz","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this is a quiz (with wrong and correct answers, results shown in the return type)"},{"name":"question","type":"TextWithEntities","comment":"The question of the poll"},{"name":"answers","type":"PollAnswer","typeModifiers":{"isVector":true},"comment":"The possible answers, vote using {@link messages.RawSendVoteRequest}."},{"name":"close_period","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date."},{"name":"close_date","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"Point in time (UNIX timestamp in seconds) when the poll will be automatically closed. Must be at least 5 and no more than 600 seconds in the future; can't be used together with close_period."}],"comment":"Poll"},{"kind":"class","name":"pollAnswerVoters","type":"PollAnswerVoters","id":997055186,"comment":"A poll answer, and how users voted on it","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"chosen","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether we have chosen this answer"},{"name":"correct","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"For quizzes, whether the option we have chosen is correct"},{"name":"option","type":"bytes","comment":"The param that has to be passed to {@link messages.RawSendVoteRequest}."},{"name":"voters","type":"int","comment":"How many users voted for this option"}]},{"kind":"class","name":"pollResults","type":"PollResults","id":2061444128,"comment":"Results of poll","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"min","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Similar to min objects, used for poll constructors that are the same for all users so they don't have the option chosen by the current user (you can use {@link messages.RawGetPollResultsRequest} to get the full poll results)."},{"name":"results","type":"PollAnswerVoters","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Poll results"},{"name":"total_voters","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Total number of people that voted in the poll"},{"name":"recent_voters","type":"Peer","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"IDs of the last users that recently voted in the poll"},{"name":"solution","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"Explanation of quiz solution"},{"name":"solution_entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.4","isVector":true},"comment":"Message entities for styled text in quiz solution"}]},{"kind":"class","name":"chatOnlines","type":"ChatOnlines","id":4030849616,"comment":"Number of online users in a chat","arguments":[{"name":"onlines","type":"int","comment":"Number of online users"}]},{"kind":"class","name":"statsURL","type":"StatsURL","id":1202287072,"comment":"URL with chat statistics","arguments":[{"name":"url","type":"string","comment":"Chat statistics"}]},{"kind":"class","name":"chatAdminRights","type":"ChatAdminRights","id":1605510357,"comment":"Represents the rights of an admin in a channel/supergroup.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"change_info","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, allows the admin to modify the description of the channel/supergroup"},{"name":"post_messages","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, allows the admin to post messages in the channel"},{"name":"edit_messages","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, allows the admin to also edit messages from other admins in the channel"},{"name":"delete_messages","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, allows the admin to also delete messages from other admins in the channel"},{"name":"ban_users","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If set, allows the admin to ban users from the channel/supergroup"},{"name":"invite_users","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"If set, allows the admin to invite users in the channel/supergroup"},{"name":"pin_messages","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"If set, allows the admin to pin messages in the channel/supergroup"},{"name":"add_admins","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"If set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup"},{"name":"anonymous","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"Whether this admin is anonymous"},{"name":"manage_call","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"If set, allows the admin to change group call/livestream settings"},{"name":"other","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"Set this flag if none of the other flags are set, but you still want the user to be an admin: if this or any of the other flags are set, the admin can get the chat admin log, get chat statistics, get message statistics in channels, get channel members, see anonymous administrators in supergroups and ignore slow mode."},{"name":"manage_topics","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"If set, allows the admin to create, delete or modify forum topics ยป."},{"name":"post_stories","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"If set, allows the admin to post stories as the channel."},{"name":"edit_stories","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"If set, allows the admin to edit stories posted by the other admins of the channel."},{"name":"delete_stories","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"If set, allows the admin to delete stories posted by the other admins of the channel."}]},{"kind":"class","name":"chatBannedRights","type":"ChatBannedRights","id":2668758040,"comment":"Represents the rights of a normal user in a supergroup/channel/chat. In this case, the flags are inverted: if set, a flag does not allow a user to do X.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"view_messages","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, does not allow a user to view messages in a supergroup/channel/chat"},{"name":"send_messages","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, does not allow a user to send messages in a supergroup/chat"},{"name":"send_media","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, does not allow a user to send any media in a supergroup/chat"},{"name":"send_stickers","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, does not allow a user to send stickers in a supergroup/chat"},{"name":"send_gifs","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If set, does not allow a user to send gifs in a supergroup/chat"},{"name":"send_games","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"If set, does not allow a user to send games in a supergroup/chat"},{"name":"send_inline","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"If set, does not allow a user to use inline bots in a supergroup/chat."},{"name":"embed_links","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"If set, does not allow a user to embed links in the messages of a supergroup/chat"},{"name":"send_polls","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"If set, does not allow a user to send polls in a supergroup/chat"},{"name":"change_info","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"If set, does not allow any user to change the description of a supergroup/chat"},{"name":"invite_users","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"If set, does not allow any user to invite users in a supergroup/chat"},{"name":"pin_messages","type":"true","typeModifiers":{"predicate":"flags.17"},"comment":"If set, does not allow any user to pin messages in a supergroup/chat"},{"name":"manage_topics","type":"true","typeModifiers":{"predicate":"flags.18"},"comment":"If set, does not allow any user to create, delete or modify forum topics ยป."},{"name":"send_photos","type":"true","typeModifiers":{"predicate":"flags.19"},"comment":"If set, does not allow a user to send photos in a supergroup/chat."},{"name":"send_videos","type":"true","typeModifiers":{"predicate":"flags.20"},"comment":"If set, does not allow a user to send videos in a supergroup/chat."},{"name":"send_roundvideos","type":"true","typeModifiers":{"predicate":"flags.21"},"comment":"If set, does not allow a user to send round videos in a supergroup/chat."},{"name":"send_audios","type":"true","typeModifiers":{"predicate":"flags.22"},"comment":"If set, does not allow a user to send audio files in a supergroup/chat."},{"name":"send_voices","type":"true","typeModifiers":{"predicate":"flags.23"},"comment":"If set, does not allow a user to send voice messages in a supergroup/chat."},{"name":"send_docs","type":"true","typeModifiers":{"predicate":"flags.24"},"comment":"If set, does not allow a user to send documents in a supergroup/chat."},{"name":"send_plain","type":"true","typeModifiers":{"predicate":"flags.25"},"comment":"If set, does not allow a user to send text messages in a supergroup/chat."},{"name":"until_date","type":"int","comment":"Validity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days)."}]},{"kind":"class","name":"inputWallPaper","type":"InputWallPaper","id":3861952889,"comment":"Wallpaper","arguments":[{"name":"id","type":"long","comment":"Wallpaper ID"},{"name":"access_hash","type":"long","comment":"Access hash"}]},{"kind":"class","name":"inputWallPaperSlug","type":"InputWallPaper","id":1913199744,"comment":"Wallpaper by slug (a unique ID, obtained from a wallpaper link ยป)","arguments":[{"name":"slug","type":"string","comment":"Unique wallpaper ID"}]},{"kind":"class","name":"inputWallPaperNoFile","type":"InputWallPaper","id":2524595758,"comment":"Wallpaper with no file access hash, used for example when deleting (unsave=true) wallpapers using {@link account.RawSaveWallPaperRequest}, specifying just the wallpaper ID.","arguments":[{"name":"id","type":"long","comment":"Wallpaper ID"}]},{"kind":"class","name":"account.wallPapersNotModified","type":"account.WallPapers","id":471437699,"comment":"No new wallpapers were found","arguments":[]},{"kind":"class","name":"account.wallPapers","type":"account.WallPapers","id":3452142988,"comment":"Installed wallpapers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"wallpapers","type":"WallPaper","typeModifiers":{"isVector":true},"comment":"Wallpapers"}]},{"kind":"class","name":"codeSettings","type":"CodeSettings","id":2904898936,"comment":"Settings used by telegram servers for sending the confirm code.\n\nExample implementations: telegram for android, tdlib.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"allow_flashcall","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to allow phone verification via phone calls."},{"name":"current_number","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Pass true if the phone number is used on the current device. Ignored if allow_flashcall is not set."},{"name":"allow_app_hash","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If a token that will be included in eventually sent SMSs is required: required in newer versions of android, to use the android SMS receiver APIs"},{"name":"allow_missed_call","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether this device supports receiving the code using the {@link auth.RawCodeTypeMissedCall} method"},{"name":"allow_firebase","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Whether Firebase auth is supported"},{"name":"unknown_number","type":"true","typeModifiers":{"predicate":"flags.9"}},{"name":"logout_tokens","type":"bytes","typeModifiers":{"predicate":"flags.6","isVector":true},"comment":"Previously stored future auth tokens, see the documentation for more info ยป"},{"name":"token","type":"string","typeModifiers":{"predicate":"flags.8"},"comment":"Used only by official iOS apps for Firebase auth: device token for apple push."},{"name":"app_sandbox","type":"Bool","typeModifiers":{"predicate":"flags.8"},"comment":"Used only by official iOS apps for firebase auth: whether a sandbox-certificate will be used during transmission of the push notification."}]},{"kind":"class","name":"wallPaperSettings","type":"WallPaperSettings","id":925826256,"comment":"Wallpaper rendering information.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"blur","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"For image wallpapers ยป: if set, the JPEG must be downscaled to fit in 450x450 square and then box-blurred with radius 12."},{"name":"motion","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, the background needs to be slightly moved when the device is rotated."},{"name":"background_color","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Used for solid ยป, gradient ยป and freeform gradient ยป fills."},{"name":"second_background_color","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Used for gradient ยป and freeform gradient ยป fills."},{"name":"third_background_color","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"Used for freeform gradient ยป fills."},{"name":"fourth_background_color","type":"int","typeModifiers":{"predicate":"flags.6"},"comment":"Used for freeform gradient ยป fills."},{"name":"intensity","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Used for pattern wallpapers ยป."},{"name":"rotation","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Clockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45."},{"name":"emoticon","type":"string","typeModifiers":{"predicate":"flags.7"},"comment":"If set, this wallpaper can be used as a channel wallpaper and is represented by the specified UTF-8 emoji."}]},{"kind":"class","name":"autoDownloadSettings","type":"AutoDownloadSettings","id":3131405864,"comment":"Autodownload settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"disabled","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Disable automatic media downloads?"},{"name":"video_preload_large","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to preload the first seconds of videos larger than the specified limit"},{"name":"audio_preload_next","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to preload the next audio track when you're listening to music"},{"name":"phonecalls_less_data","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether to enable data saving mode in phone calls"},{"name":"stories_preload","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether to preload stories; in particular, the first {@link RawDocumentAttributeVideo}.preload_prefix_size bytes of story videos should be preloaded."},{"name":"photo_size_max","type":"int","comment":"Maximum size of photos to preload"},{"name":"video_size_max","type":"int53","comment":"Maximum size of videos to preload"},{"name":"file_size_max","type":"int53","comment":"Maximum size of other files to preload"},{"name":"video_upload_maxbitrate","type":"int","comment":"Maximum suggested bitrate for uploading videos"},{"name":"small_queue_active_operations_max","type":"int","comment":"A limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files smaller than 20MB."},{"name":"large_queue_active_operations_max","type":"int","comment":"A limit, specifying the maximum number of files that should be downloaded in parallel from the same DC, for files bigger than 20MB."}]},{"kind":"class","name":"account.autoDownloadSettings","type":"account.AutoDownloadSettings","id":1674235686,"comment":"Media autodownload settings","arguments":[{"name":"low","type":"AutoDownloadSettings","comment":"Low data usage preset"},{"name":"medium","type":"AutoDownloadSettings","comment":"Medium data usage preset"},{"name":"high","type":"AutoDownloadSettings","comment":"High data usage preset"}]},{"kind":"class","name":"emojiKeyword","type":"EmojiKeyword","id":3585325561,"comment":"Emoji keyword","arguments":[{"name":"keyword","type":"string","comment":"Keyword"},{"name":"emoticons","type":"string","typeModifiers":{"isVector":true},"comment":"Emojis associated to keyword"}]},{"kind":"class","name":"emojiKeywordDeleted","type":"EmojiKeyword","id":594408994,"comment":"Deleted emoji keyword","arguments":[{"name":"keyword","type":"string","comment":"Keyword"},{"name":"emoticons","type":"string","typeModifiers":{"isVector":true},"comment":"Emojis that were associated to keyword"}]},{"kind":"class","name":"emojiKeywordsDifference","type":"EmojiKeywordsDifference","id":1556570557,"comment":"Changes to emoji keywords","arguments":[{"name":"lang_code","type":"string","comment":"Language code for keywords"},{"name":"from_version","type":"int","comment":"Previous emoji keyword list version"},{"name":"version","type":"int","comment":"Current version of emoji keyword list"},{"name":"keywords","type":"EmojiKeyword","typeModifiers":{"isVector":true},"comment":"Emojis associated to keywords"}]},{"kind":"class","name":"emojiURL","type":"EmojiURL","id":2775937949,"comment":"An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation","arguments":[{"name":"url","type":"string","comment":"An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation"}]},{"kind":"class","name":"emojiLanguage","type":"EmojiLanguage","id":3019592545,"comment":"Emoji language","arguments":[{"name":"lang_code","type":"string","comment":"Language code"}]},{"kind":"class","name":"folder","type":"Folder","id":4283715173,"comment":"Folder","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"autofill_new_broadcasts","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Automatically add new channels to this folder"},{"name":"autofill_public_groups","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Automatically add joined new public supergroups to this folder"},{"name":"autofill_new_correspondents","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Automatically add new private chats to this folder"},{"name":"id","type":"int","comment":"Folder ID"},{"name":"title","type":"string","comment":"Folder title"},{"name":"photo","type":"ChatPhoto","typeModifiers":{"predicate":"flags.3"},"comment":"Folder picture"}]},{"kind":"class","name":"inputFolderPeer","type":"InputFolderPeer","id":4224893590,"comment":"Peer in a folder","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"folder_id","type":"int","comment":"Peer folder ID, for more info click here"}]},{"kind":"class","name":"folderPeer","type":"FolderPeer","id":3921323624,"comment":"Peer in a folder","arguments":[{"name":"peer","type":"Peer","comment":"Folder peer info"},{"name":"folder_id","type":"int","comment":"Peer folder ID, for more info click here"}]},{"kind":"class","name":"messages.searchCounter","type":"messages.SearchCounter","id":3896830975,"comment":"Indicates how many results would be found by a {@link messages.RawSearchRequest} call with the same parameters","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"inexact","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, the results may be inexact"},{"name":"filter","type":"MessagesFilter","comment":"Provided message filter"},{"name":"count","type":"int","comment":"Number of results that were found server-side"}]},{"kind":"class","name":"urlAuthResultRequest","type":"UrlAuthResult","id":2463316494,"comment":"Details about the authorization request, for more info click here ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"request_write_access","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the bot would like to send messages to the user"},{"name":"bot","type":"User","comment":"Username of a bot, which will be used for user authorization. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details."},{"name":"domain","type":"string","comment":"The domain name of the website on which the user will log in."}]},{"kind":"class","name":"urlAuthResultAccepted","type":"UrlAuthResult","id":2408320590,"comment":"Details about an accepted authorization request, for more info click here ยป","arguments":[{"name":"url","type":"string","comment":"The URL name of the website on which the user has logged in."}]},{"kind":"class","name":"urlAuthResultDefault","type":"UrlAuthResult","id":2849430303,"comment":"Details about an accepted authorization request, for more info click here ยป","arguments":[]},{"kind":"class","name":"channelLocationEmpty","type":"ChannelLocation","id":3216354699,"comment":"No location (normal supergroup)","arguments":[]},{"kind":"class","name":"channelLocation","type":"ChannelLocation","id":547062491,"comment":"Geographical location of supergroup (geogroups)","arguments":[{"name":"geo_point","type":"GeoPoint","comment":"Geographical location of supergroup"},{"name":"address","type":"string","comment":"Textual description of the address"}]},{"kind":"class","name":"peerLocated","type":"PeerLocated","id":3393592157,"comment":"Peer geolocated nearby","arguments":[{"name":"peer","type":"Peer","comment":"Peer"},{"name":"expires","type":"int","comment":"Validity period of current data"},{"name":"distance","type":"int","comment":"Distance from the peer in meters"}]},{"kind":"class","name":"peerSelfLocated","type":"PeerLocated","id":4176226379,"comment":"Current peer","arguments":[{"name":"expires","type":"int","comment":"Expiry of geolocation info for current peer"}]},{"kind":"class","name":"restrictionReason","type":"RestrictionReason","id":3497176244,"comment":"Restriction reason.\n\nContains the reason why access to a certain object must be restricted. Clients are supposed to deny access to the channel if the platform field is equal to all or to the current platform (ios, android, wp, etc.). Platforms can be concatenated (ios-android, ios-wp), unknown platforms are to be ignored. The text is the error message that should be shown to the user.","arguments":[{"name":"platform","type":"string","comment":"Platform identifier (ios, android, wp, all, etc.), can be concatenated with a dash as separator (android-ios, ios-wp, etc)"},{"name":"reason","type":"string","comment":"Restriction reason (porno, terms, etc.)"},{"name":"text","type":"string","comment":"Error message to be shown to the user"}]},{"kind":"class","name":"inputTheme","type":"InputTheme","id":1012306921,"comment":"Theme","arguments":[{"name":"id","type":"long","comment":"ID"},{"name":"access_hash","type":"long","comment":"Access hash"}]},{"kind":"class","name":"inputThemeSlug","type":"InputTheme","id":4119399921,"comment":"Theme by theme ID","arguments":[{"name":"slug","type":"string","comment":"Unique theme ID obtained from a theme deep link ยป"}]},{"kind":"class","name":"theme","type":"Theme","id":2685298646,"comment":"Theme","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"creator","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the current user is the creator of this theme"},{"name":"default","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this is the default theme"},{"name":"for_chat","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether this theme is meant to be used as a chat theme"},{"name":"id","type":"long","comment":"Theme ID"},{"name":"access_hash","type":"long","comment":"Theme access hash"},{"name":"slug","type":"string","comment":"Unique theme ID"},{"name":"title","type":"string","comment":"Theme name"},{"name":"document","type":"Document","typeModifiers":{"predicate":"flags.2"},"comment":"Theme"},{"name":"settings","type":"ThemeSettings","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Theme settings"},{"name":"emoticon","type":"string","typeModifiers":{"predicate":"flags.6"},"comment":"Theme emoji"},{"name":"installs_count","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Installation count"}]},{"kind":"class","name":"account.themesNotModified","type":"account.Themes","id":4095653410,"comment":"No new themes were installed","arguments":[]},{"kind":"class","name":"account.themes","type":"account.Themes","id":2587724909,"comment":"Installed themes","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"themes","type":"Theme","typeModifiers":{"isVector":true},"comment":"Themes"}]},{"kind":"class","name":"auth.loginToken","type":"auth.LoginToken","id":1654593920,"comment":"Login token (for QR code login)","arguments":[{"name":"expires","type":"int","comment":"Expiration date of QR code"},{"name":"token","type":"bytes","comment":"Token to render in QR code"}]},{"kind":"class","name":"auth.loginTokenMigrateTo","type":"auth.LoginToken","id":110008598,"comment":"Repeat the query to the specified DC","arguments":[{"name":"dc_id","type":"int","comment":"DC ID"},{"name":"token","type":"bytes","comment":"Token to use for login"}]},{"kind":"class","name":"auth.loginTokenSuccess","type":"auth.LoginToken","id":957176926,"comment":"Login via token (QR code) succeeded!","arguments":[{"name":"authorization","type":"auth.Authorization","comment":"Authorization info"}]},{"kind":"class","name":"account.contentSettings","type":"account.ContentSettings","id":1474462241,"comment":"Sensitive content settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"sensitive_enabled","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether viewing of sensitive (NSFW) content is enabled"},{"name":"sensitive_can_change","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the current client can change the sensitive content settings to view NSFW content"}]},{"kind":"class","name":"messages.inactiveChats","type":"messages.InactiveChats","id":2837970629,"comment":"Inactive chat list","arguments":[{"name":"dates","type":"int","typeModifiers":{"isVector":true},"comment":"When was the chat last active"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chat list"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in the chat list"}]},{"kind":"class","name":"baseThemeClassic","type":"BaseTheme","id":3282117730,"comment":"Classic theme","arguments":[]},{"kind":"class","name":"baseThemeDay","type":"BaseTheme","id":4225242760,"comment":"Day theme","arguments":[]},{"kind":"class","name":"baseThemeNight","type":"BaseTheme","id":3081969320,"comment":"Night theme","arguments":[]},{"kind":"class","name":"baseThemeTinted","type":"BaseTheme","id":1834973166,"comment":"Tinted theme","arguments":[]},{"kind":"class","name":"baseThemeArctic","type":"BaseTheme","id":1527845466,"comment":"Arctic theme","arguments":[]},{"kind":"class","name":"inputThemeSettings","type":"InputThemeSettings","id":2413711439,"comment":"Theme settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"message_colors_animated","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, the freeform gradient fill needs to be animated on every sent message"},{"name":"base_theme","type":"BaseTheme","comment":"Default theme on which this theme is based"},{"name":"accent_color","type":"int","comment":"Accent color, ARGB format"},{"name":"outbox_accent_color","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Accent color of outgoing messages in ARGB format"},{"name":"message_colors","type":"int","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"The fill to be used as a background for outgoing messages, in RGB24 format.
If just one or two equal colors are provided, describes a solid fill of a background.
If two different colors are provided, describes the top and bottom colors of a 0-degree gradient.
If three or four colors are provided, describes a freeform gradient fill of a background."},{"name":"wallpaper","type":"InputWallPaper","typeModifiers":{"predicate":"flags.1"},"comment":"{@link RawInputWallPaper} or {@link RawInputWallPaper} when passing wallpaper files for image or pattern wallpapers, {@link RawInputWallPaperNoFile} with id=0 otherwise."},{"name":"wallpaper_settings","type":"WallPaperSettings","typeModifiers":{"predicate":"flags.1"},"comment":"Wallpaper settings."}]},{"kind":"class","name":"themeSettings","type":"ThemeSettings","id":4200117972,"comment":"Theme settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"message_colors_animated","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, the freeform gradient fill needs to be animated on every sent message."},{"name":"base_theme","type":"BaseTheme","comment":"Base theme"},{"name":"accent_color","type":"int","comment":"Accent color, ARGB format"},{"name":"outbox_accent_color","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Accent color of outgoing messages in ARGB format"},{"name":"message_colors","type":"int","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"The fill to be used as a background for outgoing messages, in RGB24 format.
If just one or two equal colors are provided, describes a solid fill of a background.
If two different colors are provided, describes the top and bottom colors of a 0-degree gradient.
If three or four colors are provided, describes a freeform gradient fill of a background."},{"name":"wallpaper","type":"WallPaper","typeModifiers":{"predicate":"flags.1"},"comment":"Wallpaper"}]},{"kind":"class","name":"webPageAttributeTheme","type":"WebPageAttribute","id":1421174295,"comment":"Page theme","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"documents","type":"Document","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Theme files"},{"name":"settings","type":"ThemeSettings","typeModifiers":{"predicate":"flags.1"},"comment":"Theme settings"}]},{"kind":"class","name":"webPageAttributeStory","type":"WebPageAttribute","id":781501415,"comment":"Webpage preview of a Telegram story","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"Peer","comment":"Peer that posted the story"},{"name":"id","type":"int","comment":"Story ID"},{"name":"story","type":"StoryItem","typeModifiers":{"predicate":"flags.0"},"comment":"May contain the story, if not the story should be fetched when and if needed using {@link stories.RawGetStoriesByIDRequest} with the above id and peer."}]},{"kind":"class","name":"webPageAttributeStickerSet","type":"WebPageAttribute","id":1355547603,"arguments":[{"name":"flags","type":"#"},{"name":"emojis","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"text_color","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"stickers","type":"Document","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"messages.votesList","type":"messages.VotesList","id":1218005070,"comment":"How users voted in a poll","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"count","type":"int","comment":"Total number of votes for all options (or only for the chosen option, if provided to {@link messages.RawGetPollVotesRequest})"},{"name":"votes","type":"MessagePeerVote","typeModifiers":{"isVector":true},"comment":"Vote info for each user"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Info about users that voted in the poll"},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Offset to use with the next {@link messages.RawGetPollVotesRequest} request, empty string if no more results are available."}]},{"kind":"class","name":"bankCardOpenUrl","type":"BankCardOpenUrl","id":4117234314,"comment":"Credit card info URL provided by the bank","arguments":[{"name":"url","type":"string","comment":"Info URL"},{"name":"name","type":"string","comment":"Bank name"}]},{"kind":"class","name":"payments.bankCardData","type":"payments.BankCardData","id":1042605427,"comment":"Credit card info, provided by the card's bank(s)","arguments":[{"name":"title","type":"string","comment":"Credit card title"},{"name":"open_urls","type":"BankCardOpenUrl","typeModifiers":{"isVector":true},"comment":"Info URL(s) provided by the card's bank(s)"}]},{"kind":"class","name":"dialogFilter","id":1605718587,"type":"DialogFilter","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"contacts","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to include all contacts in this folder"},{"name":"non_contacts","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to include all non-contacts in this folder"},{"name":"groups","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to include all groups in this folder"},{"name":"broadcasts","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether to include all channels in this folder"},{"name":"bots","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether to include all bots in this folder"},{"name":"exclude_muted","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"Whether to exclude muted chats from this folder"},{"name":"exclude_read","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"Whether to exclude read chats from this folder"},{"name":"exclude_archived","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"Whether to exclude archived chats from this folder"},{"name":"id","type":"int","comment":"Folder ID"},{"name":"title","type":"string","comment":"Folder name"},{"name":"emoticon","type":"string","typeModifiers":{"predicate":"flags.25"},"comment":"Emoji to use as icon for the folder."},{"name":"color","type":"int","typeModifiers":{"predicate":"flags.27"}},{"name":"pinned_peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"Pinned chats, folders can have unlimited pinned chats"},{"name":"include_peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"Include the following chats in this folder"},{"name":"exclude_peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"Exclude the following chats from this folder"}],"comment":"Dialog filter AKA folder"},{"kind":"class","name":"dialogFilterDefault","type":"DialogFilter","id":909284270,"comment":"Used only when reordering folders to indicate the default (all chats) folder.","arguments":[]},{"kind":"class","name":"dialogFilterChatlist","id":2682424996,"type":"DialogFilter","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_my_invites","type":"true","typeModifiers":{"predicate":"flags.26"},"comment":"Whether the current user has created some chat folder deep links ยป to share the folder as well."},{"name":"id","type":"int","comment":"ID of the folder"},{"name":"title","type":"string","comment":"Name of the folder"},{"name":"emoticon","type":"string","typeModifiers":{"predicate":"flags.25"},"comment":"Emoji to use as icon for the folder."},{"name":"color","type":"int","typeModifiers":{"predicate":"flags.27"}},{"name":"pinned_peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"Pinned chats, folders can have unlimited pinned chats"},{"name":"include_peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"Chats to include in the folder"}],"comment":"A folder imported using a chat folder deep link ยป."},{"kind":"class","name":"dialogFilterSuggested","type":"DialogFilterSuggested","id":2004110666,"comment":"Suggested folders","arguments":[{"name":"filter","type":"DialogFilter","comment":"Folder info"},{"name":"description","type":"string","comment":"Folder description"}]},{"kind":"class","name":"statsDateRangeDays","type":"StatsDateRangeDays","id":3057118639,"comment":"Channel statistics date range","arguments":[{"name":"min_date","type":"int","comment":"Initial date"},{"name":"max_date","type":"int","comment":"Final date"}]},{"kind":"class","name":"statsAbsValueAndPrev","type":"StatsAbsValueAndPrev","id":3410210014,"comment":"Statistics value couple; initial and final value for period of time currently in consideration","arguments":[{"name":"current","type":"double","comment":"Current value"},{"name":"previous","type":"double","comment":"Previous value"}]},{"kind":"class","name":"statsPercentValue","type":"StatsPercentValue","id":3419287520,"comment":"Channel statistics percentage.
\nCompute the percentage simply by doing part * total / 100","arguments":[{"name":"part","type":"double","comment":"Partial value"},{"name":"total","type":"double","comment":"Total value"}]},{"kind":"class","name":"statsGraphAsync","type":"StatsGraph","id":1244130093,"comment":"This channel statistics graph must be generated asynchronously using {@link stats.RawLoadAsyncGraphRequest} to reduce server load","arguments":[{"name":"token","type":"string","comment":"Token to use for fetching the async graph"}]},{"kind":"class","name":"statsGraphError","type":"StatsGraph","id":3202127906,"comment":"An error occurred while generating the statistics graph","arguments":[{"name":"error","type":"string","comment":"The error"}]},{"kind":"class","name":"statsGraph","type":"StatsGraph","id":2393138358,"comment":"Channel statistics graph","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"json","type":"DataJSON","comment":"Statistics data"},{"name":"zoom_token","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Zoom token"}]},{"kind":"class","name":"stats.broadcastStats","type":"stats.BroadcastStats","id":963421692,"comment":"Channel statistics.","arguments":[{"name":"period","type":"StatsDateRangeDays","comment":"Period in consideration"},{"name":"followers","type":"StatsAbsValueAndPrev","comment":"Follower count change for period in consideration"},{"name":"views_per_post","type":"StatsAbsValueAndPrev","comment":"total_viewcount/postcount, for posts posted during the period in consideration.
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)."},{"name":"shares_per_post","type":"StatsAbsValueAndPrev","comment":"total_sharecount/postcount, for posts posted during the period in consideration.
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)"},{"name":"reactions_per_post","type":"StatsAbsValueAndPrev","comment":"total_reactions/postcount, for posts posted during the period in consideration.
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)"},{"name":"views_per_story","type":"StatsAbsValueAndPrev","comment":"total_views/storycount, for posts posted during the period in consideration.
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)"},{"name":"shares_per_story","type":"StatsAbsValueAndPrev","comment":"total_shares/storycount, for posts posted during the period in consideration.
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)"},{"name":"reactions_per_story","type":"StatsAbsValueAndPrev","comment":"total_reactions/storycount, for posts posted during the period in consideration.
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)"},{"name":"enabled_notifications","type":"StatsPercentValue","comment":"Percentage of subscribers with enabled notifications"},{"name":"growth_graph","type":"StatsGraph","comment":"Channel growth graph (absolute subscriber count)"},{"name":"followers_graph","type":"StatsGraph","comment":"Followers growth graph (relative subscriber count)"},{"name":"mute_graph","type":"StatsGraph","comment":"Muted users graph (relative)"},{"name":"top_hours_graph","type":"StatsGraph","comment":"Views per hour graph (absolute)"},{"name":"interactions_graph","type":"StatsGraph","comment":"Interactions graph (absolute)"},{"name":"iv_interactions_graph","type":"StatsGraph","comment":"IV interactions graph (absolute)"},{"name":"views_by_source_graph","type":"StatsGraph","comment":"Views by source graph (absolute)"},{"name":"new_followers_by_source_graph","type":"StatsGraph","comment":"New followers by source graph (absolute)"},{"name":"languages_graph","type":"StatsGraph","comment":"Subscriber language graph (pie chart)"},{"name":"reactions_by_emotion_graph","type":"StatsGraph","comment":"A graph containing the number of reactions on posts categorized by emotion"},{"name":"story_interactions_graph","type":"StatsGraph","comment":"A graph containing the number of story views and shares"},{"name":"story_reactions_by_emotion_graph","type":"StatsGraph","comment":"A graph containing the number of reactions on stories categorized by emotion"},{"name":"recent_posts_interactions","type":"PostInteractionCounters","typeModifiers":{"isVector":true},"comment":"Detailed statistics about number of views and shares of recently sent messages and stories"}]},{"kind":"class","name":"help.promoDataEmpty","type":"help.PromoData","id":2566302837,"comment":"No PSA/MTProxy info is available","arguments":[{"name":"expires","type":"int","comment":"Re-fetch PSA/MTProxy info after the specified number of seconds"}]},{"kind":"class","name":"help.promoData","type":"help.PromoData","id":2352576831,"comment":"MTProxy/Public Service Announcement information","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"proxy","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"MTProxy-related channel"},{"name":"expires","type":"int","comment":"Expiry of PSA/MTProxy info"},{"name":"peer","type":"Peer","comment":"MTProxy/PSA peer"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chat info"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"User info"},{"name":"psa_type","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"PSA type"},{"name":"psa_message","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"PSA message"}]},{"kind":"class","name":"videoSize","type":"VideoSize","id":3727929492,"comment":"An animated profile picture in MPEG4 format","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"type","type":"string","comment":"u for animated profile pictures, and v for trimmed and downscaled video previews"},{"name":"w","type":"int","comment":"Video width"},{"name":"h","type":"int","comment":"Video height"},{"name":"size","type":"int","comment":"File size"},{"name":"video_start_ts","type":"double","typeModifiers":{"predicate":"flags.0"},"comment":"Timestamp that should be shown as static preview to the user (seconds)"}]},{"kind":"class","name":"videoSizeEmojiMarkup","type":"VideoSize","id":4166795580,"comment":"An animated profile picture based on a custom emoji sticker.","arguments":[{"name":"emoji_id","type":"long","comment":"Custom emoji ID: the custom emoji sticker is shown at the center of the profile picture and occupies at most 67% of it."},{"name":"background_colors","type":"int","typeModifiers":{"isVector":true},"comment":"1, 2, 3 or 4 RBG-24 colors used to generate a solid (1), gradient (2) or freeform gradient (3, 4) background, similar to how fill wallpapers are generated. The rotation angle for gradient backgrounds is 0."}]},{"kind":"class","name":"videoSizeStickerMarkup","type":"VideoSize","id":228623102,"comment":"An animated profile picture based on a sticker.","arguments":[{"name":"stickerset","type":"InputStickerSet","comment":"Stickerset"},{"name":"sticker_id","type":"long","comment":"Sticker ID"},{"name":"background_colors","type":"int","typeModifiers":{"isVector":true},"comment":"1, 2, 3 or 4 RBG-24 colors used to generate a solid (1), gradient (2) or freeform gradient (3, 4) background, similar to how fill wallpapers are generated. The rotation angle for gradient backgrounds is 0."}]},{"kind":"class","name":"statsGroupTopPoster","type":"StatsGroupTopPoster","id":2634330011,"comment":"Information about an active user in a supergroup","arguments":[{"name":"user_id","type":"int53","comment":"User ID"},{"name":"messages","type":"int","comment":"Number of messages for statistics period in consideration"},{"name":"avg_chars","type":"int","comment":"Average number of characters per message"}]},{"kind":"class","name":"statsGroupTopAdmin","type":"StatsGroupTopAdmin","id":3612888199,"comment":"Information about an active admin in a supergroup","arguments":[{"name":"user_id","type":"int53","comment":"User ID"},{"name":"deleted","type":"int","comment":"Number of deleted messages for statistics period in consideration"},{"name":"kicked","type":"int","comment":"Number of kicked users for statistics period in consideration"},{"name":"banned","type":"int","comment":"Number of banned users for statistics period in consideration"}]},{"kind":"class","name":"statsGroupTopInviter","type":"StatsGroupTopInviter","id":1398765469,"comment":"Information about an active supergroup inviter","arguments":[{"name":"user_id","type":"int53","comment":"User ID"},{"name":"invitations","type":"int","comment":"Number of invitations for statistics period in consideration"}]},{"kind":"class","name":"stats.megagroupStats","type":"stats.MegagroupStats","id":4018141462,"comment":"Supergroup statistics","arguments":[{"name":"period","type":"StatsDateRangeDays","comment":"Period in consideration"},{"name":"members","type":"StatsAbsValueAndPrev","comment":"Member count change for period in consideration"},{"name":"messages","type":"StatsAbsValueAndPrev","comment":"Message number change for period in consideration"},{"name":"viewers","type":"StatsAbsValueAndPrev","comment":"Number of users that viewed messages, for range in consideration"},{"name":"posters","type":"StatsAbsValueAndPrev","comment":"Number of users that posted messages, for range in consideration"},{"name":"growth_graph","type":"StatsGraph","comment":"Supergroup growth graph (absolute subscriber count)"},{"name":"members_graph","type":"StatsGraph","comment":"Members growth (relative subscriber count)"},{"name":"new_members_by_source_graph","type":"StatsGraph","comment":"New members by source graph"},{"name":"languages_graph","type":"StatsGraph","comment":"Subscriber language graph (pie chart)"},{"name":"messages_graph","type":"StatsGraph","comment":"Message activity graph (stacked bar graph, message type)"},{"name":"actions_graph","type":"StatsGraph","comment":"Group activity graph (deleted, modified messages, blocked users)"},{"name":"top_hours_graph","type":"StatsGraph","comment":"Activity per hour graph (absolute)"},{"name":"weekdays_graph","type":"StatsGraph","comment":"Activity per day of week graph (absolute)"},{"name":"top_posters","type":"StatsGroupTopPoster","typeModifiers":{"isVector":true},"comment":"Info about most active group members"},{"name":"top_admins","type":"StatsGroupTopAdmin","typeModifiers":{"isVector":true},"comment":"Info about most active group admins"},{"name":"top_inviters","type":"StatsGroupTopInviter","typeModifiers":{"isVector":true},"comment":"Info about most active group inviters"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Info about users mentioned in statistics"}]},{"kind":"class","name":"globalPrivacySettings","type":"GlobalPrivacySettings","id":1934380235,"comment":"Global privacy settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"archive_and_mute_new_noncontact_peers","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to archive and mute new chats from non-contacts"},{"name":"keep_archived_unmuted","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether unmuted chats will be kept in the Archive chat list when they get a new message."},{"name":"keep_archived_folders","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether unmuted chats that are always included or pinned in a folder, will be kept in the Archive chat list when they get a new message. Ignored if keep_archived_unmuted is set."},{"name":"hide_read_marks","type":"true","typeModifiers":{"predicate":"flags.3"}},{"name":"new_noncontact_peers_require_premium","type":"true","typeModifiers":{"predicate":"flags.4"}}]},{"kind":"class","name":"help.countryCode","type":"help.CountryCode","id":1107543535,"comment":"Country code and phone number pattern of a specific country","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"country_code","type":"string","comment":"ISO country code"},{"name":"prefixes","type":"string","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Possible phone prefixes"},{"name":"patterns","type":"string","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Phone patterns: for example, XXX XXX XXX"}]},{"kind":"class","name":"help.country","type":"help.Country","id":3280440867,"comment":"Name, ISO code, localized name and phone codes/patterns of a specific country","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"hidden","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this country should not be shown in the list"},{"name":"iso2","type":"string","comment":"ISO code of country"},{"name":"default_name","type":"string","comment":"Name of the country in the country's language"},{"name":"name","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Name of the country in the user's language, if different from the original name"},{"name":"country_codes","type":"help.CountryCode","typeModifiers":{"isVector":true},"comment":"Phone codes/patterns"}]},{"kind":"class","name":"help.countriesListNotModified","type":"help.CountriesList","id":2479628082,"comment":"The country list has not changed","arguments":[]},{"kind":"class","name":"help.countriesList","type":"help.CountriesList","id":2278585758,"comment":"Name, ISO code, localized name and phone codes/patterns of all available countries","arguments":[{"name":"countries","type":"help.Country","typeModifiers":{"isVector":true},"comment":"Name, ISO code, localized name and phone codes/patterns of all available countries"},{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}]},{"kind":"class","name":"messageViews","type":"MessageViews","id":1163625789,"comment":"View, forward counter + info about replies of a specific message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"views","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"View count of message"},{"name":"forwards","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Forward count of message"},{"name":"replies","type":"MessageReplies","typeModifiers":{"predicate":"flags.2"},"comment":"Reply and thread information of message"}]},{"kind":"class","name":"messages.messageViews","type":"messages.MessageViews","id":3066361155,"comment":"View, forward counter + info about replies","arguments":[{"name":"views","type":"MessageViews","typeModifiers":{"isVector":true},"comment":"View, forward counter + info about replies"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats mentioned in constructor"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in constructor"}]},{"kind":"class","name":"messages.discussionMessage","type":"messages.DiscussionMessage","id":2788431746,"comment":"Information about a message thread","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"The messages from which the thread starts. The messages are returned in reverse chronological order (i.e., in order of decreasing message ID)."},{"name":"max_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Message ID of latest reply in this thread"},{"name":"read_inbox_max_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Message ID of latest read incoming message in this thread"},{"name":"read_outbox_max_id","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Message ID of latest read outgoing message in this thread"},{"name":"unread_count","type":"int","comment":"Number of unread messages"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats mentioned in constructor"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in constructor"}]},{"kind":"class","name":"messageReplyHeader","type":"MessageReplyHeader","id":2948336091,"comment":"Message replies and thread information","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"reply_to_scheduled","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"This is a reply to a scheduled message."},{"name":"forum_topic","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether this message was sent in a forum topic (except for the General topic)."},{"name":"quote","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"Whether this message is quoting a part of another message."},{"name":"reply_to_msg_id","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"ID of message to which this message is replying"},{"name":"reply_to_peer_id","type":"Peer","typeModifiers":{"predicate":"flags.0"},"comment":"For replies sent in channel discussion threads of which the current user is not a member, the discussion group ID"},{"name":"reply_from","type":"MessageFwdHeader","typeModifiers":{"predicate":"flags.5"},"comment":"When replying to a message sent by a certain peer to another chat, contains info about the peer that originally sent the message to that other chat."},{"name":"reply_media","type":"MessageMedia","typeModifiers":{"predicate":"flags.8"},"comment":"When replying to a media sent by a certain peer to another chat, contains the media of the replied-to message."},{"name":"reply_to_top_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"ID of the message that started this message thread"},{"name":"quote_text","type":"string","typeModifiers":{"predicate":"flags.6"},"comment":"Used to quote-reply to only a certain section (specified here) of the original message."},{"name":"quote_entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.7","isVector":true},"comment":"Message entities for styled text from the quote_text field."},{"name":"quote_offset","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Offset of the message quote_text within the original message (in UTF-16 code units)."}]},{"kind":"class","name":"messageReplyStoryHeader","id":240843065,"type":"MessageReplyHeader","arguments":[{"name":"peer","type":"Peer"},{"name":"story_id","type":"int","comment":"Story ID"}],"comment":"Represents a reply to a story"},{"kind":"class","name":"messageReplies","type":"MessageReplies","id":2211844034,"comment":"Info about the comment section of a channel post, or a simple message thread","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"comments","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this constructor contains information about the comment section of a channel post, or a simple message thread"},{"name":"replies","type":"int","comment":"Contains the total number of replies in this thread or comment section."},{"name":"replies_pts","type":"int","comment":"PTS of the message that started this thread."},{"name":"recent_repliers","type":"Peer","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"For channel post comments, contains information about the last few comment posters for a specific thread, to show a small list of commenter profile pictures in client previews."},{"name":"channel_id","type":"int53","typeModifiers":{"predicate":"flags.0"},"comment":"For channel post comments, contains the ID of the associated discussion supergroup"},{"name":"max_id","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"ID of the latest message in this thread or comment section."},{"name":"read_max_id","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Contains the ID of the latest read message in this thread or comment section."}]},{"kind":"class","name":"peerBlocked","type":"PeerBlocked","id":3908927508,"comment":"Information about a blocked peer","arguments":[{"name":"peer_id","type":"Peer","comment":"Peer ID"},{"name":"date","type":"int","comment":"When was the peer blocked"}]},{"kind":"class","name":"stats.messageStats","type":"stats.MessageStats","id":2145983508,"comment":"Message statistics","arguments":[{"name":"views_graph","type":"StatsGraph","comment":"Message view graph"},{"name":"reactions_by_emotion_graph","type":"StatsGraph","comment":"A graph containing the number of reactions on stories categorized by emotion"}]},{"kind":"class","name":"groupCallDiscarded","type":"GroupCall","id":2004925620,"comment":"An ended group call","arguments":[{"name":"id","type":"long","comment":"Group call ID"},{"name":"access_hash","type":"long","comment":"Group call access hash"},{"name":"duration","type":"int","comment":"Group call duration"}]},{"kind":"class","name":"groupCall","type":"GroupCall","id":3583468812,"comment":"Info about a group call or livestream","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"join_muted","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the user should be muted upon joining the call"},{"name":"can_change_join_muted","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the current user can change the value of the join_muted flag using {@link phone.RawToggleGroupCallSettingsRequest}"},{"name":"join_date_asc","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Specifies the ordering to use when locally sorting by date and displaying in the UI group call participants."},{"name":"schedule_start_subscribed","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"Whether we subscribed to the scheduled call"},{"name":"can_start_video","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"Whether you can start streaming video into the call"},{"name":"record_video_active","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"Whether the group call is currently being recorded"},{"name":"rtmp_stream","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"Whether RTMP streams are allowed"},{"name":"listeners_hidden","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"Whether the listeners list is hidden and cannot be fetched using {@link phone.RawGetGroupParticipantsRequest}. The phone.groupParticipants.count and groupCall.participants_count counters will still include listeners."},{"name":"id","type":"long","comment":"Group call ID"},{"name":"access_hash","type":"long","comment":"Group call access hash"},{"name":"participants_count","type":"int","comment":"Participant count"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Group call title"},{"name":"stream_dc_id","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"DC ID to be used for livestream chunks"},{"name":"record_start_date","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"When was the recording started"},{"name":"schedule_date","type":"int","typeModifiers":{"predicate":"flags.7"},"comment":"When is the call scheduled to start"},{"name":"unmuted_video_count","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Number of people currently streaming video into the call"},{"name":"unmuted_video_limit","type":"int","comment":"Maximum number of people allowed to stream video into the call"},{"name":"version","type":"int","comment":"Version"}]},{"kind":"class","name":"inputGroupCall","type":"InputGroupCall","id":3635053583,"comment":"Points to a specific group call","arguments":[{"name":"id","type":"long","comment":"Group call ID"},{"name":"access_hash","type":"long","comment":"Group call access hash"}]},{"kind":"class","name":"groupCallParticipant","type":"GroupCallParticipant","id":3953538814,"comment":"Info about a group call participant","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"muted","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the participant is muted"},{"name":"left","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the participant has left"},{"name":"can_self_unmute","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the participant can unmute themselves"},{"name":"just_joined","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether the participant has just joined"},{"name":"versioned","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"If set, and {@link RawUpdateGroupCallParticipants}.version < locally stored call.version, info about this participant should be ignored. If (...), and {@link RawUpdateGroupCallParticipants}.version > call.version+1, the participant list should be refetched using {@link phone.RawGetGroupParticipantsRequest}."},{"name":"min","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"If not set, the volume and muted_by_you fields can be safely used to overwrite locally cached information; otherwise, volume will contain valid information only if volume_by_admin is set both in the cache and in the received constructor."},{"name":"muted_by_you","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"Whether this participant was muted by the current user"},{"name":"volume_by_admin","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"Whether our volume can only changed by an admin"},{"name":"self","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"Whether this participant is the current user"},{"name":"video_joined","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"Whether this participant is currently broadcasting video"},{"name":"peer","type":"Peer","comment":"Peer information"},{"name":"date","type":"int","comment":"When did this participant join the group call"},{"name":"active_date","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"When was this participant last active in the group call"},{"name":"source","type":"int","comment":"Source ID"},{"name":"volume","type":"int","typeModifiers":{"predicate":"flags.7"},"comment":"Volume, if not set the volume is set to 100%."},{"name":"about","type":"string","typeModifiers":{"predicate":"flags.11"},"comment":"Info about this participant"},{"name":"raise_hand_rating","type":"long","typeModifiers":{"predicate":"flags.13"},"comment":"Specifies the UI visualization order of peers with raised hands: peers with a higher rating should be showed first in the list."},{"name":"video","type":"GroupCallParticipantVideo","typeModifiers":{"predicate":"flags.6"},"comment":"Info about the video stream the participant is currently broadcasting"},{"name":"presentation","type":"GroupCallParticipantVideo","typeModifiers":{"predicate":"flags.14"},"comment":"Info about the screen sharing stream the participant is currently broadcasting"}]},{"kind":"class","name":"phone.groupCall","type":"phone.GroupCall","id":2658302637,"comment":"Contains info about a group call, and partial info about its participants.","arguments":[{"name":"call","type":"GroupCall","comment":"Info about the group call"},{"name":"participants","type":"GroupCallParticipant","typeModifiers":{"isVector":true},"comment":"A partial list of participants."},{"name":"participants_next_offset","type":"string","comment":"Next offset to use when fetching the remaining participants using {@link phone.RawGetGroupParticipantsRequest}"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats mentioned in the participants vector"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in the participants vector"}]},{"kind":"class","name":"phone.groupParticipants","type":"phone.GroupParticipants","id":4101460406,"comment":"Info about the participants of a group call or livestream","arguments":[{"name":"count","type":"int","comment":"Number of participants"},{"name":"participants","type":"GroupCallParticipant","typeModifiers":{"isVector":true},"comment":"List of participants"},{"name":"next_offset","type":"string","comment":"If not empty, the specified list of participants is partial, and more participants can be fetched specifying this parameter as offset in {@link phone.RawGetGroupParticipantsRequest}."},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"},{"name":"version","type":"int","comment":"Version info"}]},{"kind":"class","name":"inlineQueryPeerTypeSameBotPM","type":"InlineQueryPeerType","id":813821341,"comment":"Peer type: private chat with the bot itself","arguments":[]},{"kind":"class","name":"inlineQueryPeerTypePM","type":"InlineQueryPeerType","id":2201751468,"comment":"Peer type: private chat","arguments":[]},{"kind":"class","name":"inlineQueryPeerTypeChat","type":"InlineQueryPeerType","id":3613836554,"comment":"Peer type: chat","arguments":[]},{"kind":"class","name":"inlineQueryPeerTypeMegagroup","type":"InlineQueryPeerType","id":1589952067,"comment":"Peer type: supergroup","arguments":[]},{"kind":"class","name":"inlineQueryPeerTypeBroadcast","type":"InlineQueryPeerType","id":1664413338,"comment":"Peer type: channel","arguments":[]},{"kind":"class","name":"inlineQueryPeerTypeBotPM","type":"InlineQueryPeerType","id":238759180,"comment":"Peer type: private chat with a bot.","arguments":[]},{"kind":"class","name":"messages.historyImport","type":"messages.HistoryImport","id":375566091,"comment":"ID of a specific chat import session, click here for more info ยป.","arguments":[{"name":"id","type":"long","comment":"History import ID"}]},{"kind":"class","name":"messages.historyImportParsed","type":"messages.HistoryImportParsed","id":1578088377,"comment":"Contains information about a chat export file generated by a foreign chat app, click here for more info.
\nIf neither the pm or group flags are set, the specified chat export was generated from a chat of unknown type.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pm","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"The chat export file was generated from a private chat."},{"name":"group","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"The chat export file was generated from a group chat."},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Title of the chat."}]},{"kind":"class","name":"messages.affectedFoundMessages","type":"messages.AffectedFoundMessages","id":4019011180,"comment":"Messages found and affected by changes","arguments":[{"name":"pts","type":"int","comment":"Event count after generation"},{"name":"pts_count","type":"int","comment":"Number of events that were generated"},{"name":"offset","type":"int","comment":"If bigger than zero, the request must be repeated to remove more messages"},{"name":"messages","type":"int","typeModifiers":{"isVector":true},"comment":"Affected message IDs"}]},{"kind":"class","name":"chatInviteImporter","type":"ChatInviteImporter","id":2354765785,"comment":"When and which user joined the chat using a chat invite","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"requested","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this user currently has a pending join request ยป"},{"name":"via_chatlist","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"The participant joined by importing a chat folder deep link ยป."},{"name":"user_id","type":"int53","comment":"The user"},{"name":"date","type":"int","comment":"When did the user join"},{"name":"about","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"For users with pending requests, contains bio of the user that requested to join"},{"name":"approved_by","type":"int53","typeModifiers":{"predicate":"flags.1"},"comment":"The administrator that approved the join request ยป of the user"}]},{"kind":"class","name":"messages.exportedChatInvites","type":"messages.ExportedChatInvites","id":3183881676,"comment":"Info about chat invites exported by a certain admin.","arguments":[{"name":"count","type":"int","comment":"Number of invites exported by the admin"},{"name":"invites","type":"ExportedChatInvite","typeModifiers":{"isVector":true},"comment":"Exported invites"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Info about the admin"}]},{"kind":"class","name":"messages.exportedChatInvite","type":"messages.ExportedChatInvite","id":410107472,"comment":"Info about a chat invite","arguments":[{"name":"invite","type":"ExportedChatInvite","comment":"Info about the chat invite"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"messages.exportedChatInviteReplaced","type":"messages.ExportedChatInvite","id":572915951,"comment":"The specified chat invite was replaced with another one","arguments":[{"name":"invite","type":"ExportedChatInvite","comment":"The replaced chat invite"},{"name":"new_invite","type":"ExportedChatInvite","comment":"The invite that replaces the previous invite"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"messages.chatInviteImporters","type":"messages.ChatInviteImporters","id":2176233482,"comment":"Info about the users that joined the chat using a specific chat invite","arguments":[{"name":"count","type":"int","comment":"Number of users that joined"},{"name":"importers","type":"ChatInviteImporter","typeModifiers":{"isVector":true},"comment":"The users that joined"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"The users that joined"}]},{"kind":"class","name":"chatAdminWithInvites","type":"ChatAdminWithInvites","id":4075613987,"comment":"Info about chat invites generated by admins.","arguments":[{"name":"admin_id","type":"int53","comment":"The admin"},{"name":"invites_count","type":"int","comment":"Number of invites generated by the admin"},{"name":"revoked_invites_count","type":"int","comment":"Number of revoked invites"}]},{"kind":"class","name":"messages.chatAdminsWithInvites","type":"messages.ChatAdminsWithInvites","id":3063640791,"comment":"Info about chat invites generated by admins.","arguments":[{"name":"admins","type":"ChatAdminWithInvites","typeModifiers":{"isVector":true},"comment":"Info about chat invites generated by admins."},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"messages.checkedHistoryImportPeer","type":"messages.CheckedHistoryImportPeer","id":2723014423,"comment":"Contains a confirmation text to be shown to the user, upon importing chat history, click here for more info ยป.","arguments":[{"name":"confirm_text","type":"string","comment":"A confirmation text to be shown to the user, upon importing chat history ยป."}]},{"kind":"class","name":"phone.joinAsPeers","type":"phone.JoinAsPeers","id":2951045695,"comment":"A list of peers that can be used to join a group call, presenting yourself as a specific user/channel.","arguments":[{"name":"peers","type":"Peer","typeModifiers":{"isVector":true},"comment":"Peers"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats mentioned in the peers vector"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in the peers vector"}]},{"kind":"class","name":"phone.exportedGroupCallInvite","type":"phone.ExportedGroupCallInvite","id":541839704,"comment":"An invite to a group call or livestream","arguments":[{"name":"link","type":"string","comment":"Invite link"}]},{"kind":"class","name":"groupCallParticipantVideoSourceGroup","type":"GroupCallParticipantVideoSourceGroup","id":3702593719,"comment":"Describes a group of video synchronization source identifiers","arguments":[{"name":"semantics","type":"string","comment":"SDP semantics"},{"name":"sources","type":"int","typeModifiers":{"isVector":true},"comment":"Source IDs"}]},{"kind":"class","name":"groupCallParticipantVideo","type":"GroupCallParticipantVideo","id":1735736008,"comment":"Info about a video stream","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"paused","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the stream is currently paused"},{"name":"endpoint","type":"string","comment":"Endpoint"},{"name":"source_groups","type":"GroupCallParticipantVideoSourceGroup","typeModifiers":{"isVector":true},"comment":"Source groups"},{"name":"audio_source","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Audio source ID"}]},{"kind":"class","name":"stickers.suggestedShortName","type":"stickers.SuggestedShortName","id":2248056895,"comment":"A suggested short name for a stickerpack","arguments":[{"name":"short_name","type":"string","comment":"Suggested short name"}]},{"kind":"class","name":"botCommandScopeDefault","type":"BotCommandScope","id":795652779,"comment":"The commands will be valid in all dialogs","arguments":[]},{"kind":"class","name":"botCommandScopeUsers","type":"BotCommandScope","id":1011811544,"comment":"The specified bot commands will only be valid in all private chats with users.","arguments":[]},{"kind":"class","name":"botCommandScopeChats","type":"BotCommandScope","id":1877059713,"comment":"The specified bot commands will be valid in all groups and supergroups.","arguments":[]},{"kind":"class","name":"botCommandScopeChatAdmins","type":"BotCommandScope","id":3114950762,"comment":"The specified bot commands will be valid only for chat administrators, in all groups and supergroups.","arguments":[]},{"kind":"class","name":"botCommandScopePeer","type":"BotCommandScope","id":3684534653,"comment":"The specified bot commands will be valid only in a specific dialog.","arguments":[{"name":"peer","type":"InputPeer","comment":"The dialog"}]},{"kind":"class","name":"botCommandScopePeerAdmins","type":"BotCommandScope","id":1071145937,"comment":"The specified bot commands will be valid for all admins of the specified group or supergroup.","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat"}]},{"kind":"class","name":"botCommandScopePeerUser","type":"BotCommandScope","id":169026035,"comment":"The specified bot commands will be valid only for a specific user in the specified group or supergroup.","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat"},{"name":"user_id","type":"InputUser","comment":"The user"}]},{"kind":"class","name":"account.resetPasswordFailedWait","type":"account.ResetPasswordResult","id":3816265825,"comment":"You recently requested a password reset that was canceled, please wait until the specified date before requesting another reset.","arguments":[{"name":"retry_date","type":"int","comment":"Wait until this date before requesting another reset."}]},{"kind":"class","name":"account.resetPasswordRequestedWait","type":"account.ResetPasswordResult","id":3924819069,"comment":"You successfully requested a password reset, please wait until the specified date before finalizing the reset.","arguments":[{"name":"until_date","type":"int","comment":"Wait until this date before finalizing the reset."}]},{"kind":"class","name":"account.resetPasswordOk","type":"account.ResetPasswordResult","id":3911636542,"comment":"The 2FA password was reset successfully.","arguments":[]},{"kind":"class","name":"sponsoredMessage","id":3186488678,"type":"SponsoredMessage","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"recommended","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether the message needs to be labeled as \"recommended\" instead of \"sponsored\""},{"name":"can_report","type":"true","typeModifiers":{"predicate":"flags.12"}},{"name":"random_id","type":"bytes","comment":"Message ID"},{"name":"url","type":"string"},{"name":"title","type":"string"},{"name":"message","type":"string","comment":"Sponsored message"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"},{"name":"photo","type":"Photo","typeModifiers":{"predicate":"flags.6"}},{"name":"color","type":"PeerColor","typeModifiers":{"predicate":"flags.13"}},{"name":"button_text","type":"string","comment":"Text of the sponsored message button."},{"name":"sponsor_info","type":"string","typeModifiers":{"predicate":"flags.7"},"comment":"If set, contains additional information about the sponsor to be shown along with the message."},{"name":"additional_info","type":"string","typeModifiers":{"predicate":"flags.8"},"comment":"If set, contains additional information about the sponsored message to be shown along with the message."}],"comment":"A sponsored message."},{"kind":"class","name":"messages.sponsoredMessages","type":"messages.SponsoredMessages","id":3387825543,"comment":"A set of sponsored messages associated to a channel","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"posts_between","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If set, specifies the minimum number of messages between shown sponsored messages; otherwise, only one sponsored message must be shown after all ordinary messages."},{"name":"messages","type":"SponsoredMessage","typeModifiers":{"isVector":true},"comment":"Sponsored messages"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats mentioned in the sponsored messages"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in the sponsored messages"}]},{"kind":"class","name":"messages.sponsoredMessagesEmpty","type":"messages.SponsoredMessages","id":406407439,"comment":"No sponsored messages are available.","arguments":[]},{"kind":"class","name":"searchResultsCalendarPeriod","type":"SearchResultsCalendarPeriod","id":3383776159,"comment":"Information about found messages sent on a specific day, used to split the messages in {@link messages.RawSearchResultsCalendar} constructors by days.\n\nMultiple searchResultsCalendarPeriod constructors are returned in {@link messages.RawSearchResultsCalendar}, each containing information about the first, last and total number of messages matching the filter that were sent on a specific day.","arguments":[{"name":"date","type":"int","comment":"The day this object is referring to."},{"name":"min_msg_id","type":"int","comment":"First message ID that was sent on this day."},{"name":"max_msg_id","type":"int","comment":"Last message ID that was sent on this day."},{"name":"count","type":"int","comment":"All messages that were sent on this day."}]},{"kind":"class","name":"messages.searchResultsCalendar","type":"messages.SearchResultsCalendar","id":343859772,"comment":"Information about found messages sent on a specific day","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"inexact","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates that the results may be inexact"},{"name":"count","type":"int","comment":"Total number of results matching query"},{"name":"min_date","type":"int","comment":"Starting timestamp of attached messages"},{"name":"min_msg_id","type":"int","comment":"Ending timestamp of attached messages"},{"name":"offset_id_offset","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Indicates the absolute position of messages[0] within the total result set with count count.
This is useful, for example, if we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}."},{"name":"periods","type":"SearchResultsCalendarPeriod","typeModifiers":{"isVector":true},"comment":"Used to split the messages by days: multiple SearchResultsCalendarPeriod constructors are returned, each containing information about the first, last and total number of messages matching the filter that were sent on a specific day.
This information can be easily used to split the returned messages by day."},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"Messages"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"searchResultPosition","type":"SearchResultsPosition","id":2137295719,"comment":"Information about a message in a specific position","arguments":[{"name":"msg_id","type":"int","comment":"Message ID"},{"name":"date","type":"int","comment":"When was the message sent"},{"name":"offset","type":"int","comment":"0-based message position in the full list of suitable messages"}]},{"kind":"class","name":"messages.searchResultsPositions","type":"messages.SearchResultsPositions","id":1404185519,"comment":"Information about sparse positions of messages","arguments":[{"name":"count","type":"int","comment":"Total number of found messages"},{"name":"positions","type":"SearchResultsPosition","typeModifiers":{"isVector":true},"comment":"List of message positions"}]},{"kind":"class","name":"channels.sendAsPeers","type":"channels.SendAsPeers","id":4103516358,"comment":"A list of peers that can be used to send messages in a specific group","arguments":[{"name":"peers","type":"SendAsPeer","typeModifiers":{"isVector":true},"comment":"Peers that can be used to send messages to the group"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"users.userFull","type":"users.UserFull","id":997004590,"comment":"Full user information","arguments":[{"name":"full_user","type":"UserFull","comment":"Full user information"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"messages.peerSettings","type":"messages.PeerSettings","id":1753266509,"comment":"Peer settings","arguments":[{"name":"settings","type":"PeerSettings","comment":"Peer settings"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"auth.loggedOut","type":"auth.LoggedOut","id":3282207583,"comment":"Future auth token ยป to be used on subsequent authorizations","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"future_auth_token","type":"bytes","typeModifiers":{"predicate":"flags.0"},"comment":"Future auth token ยป to be used on subsequent authorizations"}]},{"kind":"class","name":"reactionCount","type":"ReactionCount","id":2748435328,"comment":"Reactions","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"chosen_order","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates that the current user also sent this reaction.
The integer value indicates when was the reaction added: the bigger the value, the newer the reaction."},{"name":"reaction","type":"Reaction","comment":"The reaction."},{"name":"count","type":"int","comment":"Number of users that reacted with this emoji."}]},{"kind":"class","name":"messageReactions","type":"MessageReactions","id":1328256121,"comment":"Message reactions ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"min","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Similar to min objects, used for message reaction ยป constructors that are the same for all users so they don't have the reactions sent by the current user (you can use {@link messages.RawGetMessagesReactionsRequest} to get the full reaction info)."},{"name":"can_see_list","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether {@link messages.RawGetMessageReactionsListRequest} can be used to see how each specific peer reacted to the message"},{"name":"reactions_as_tags","type":"true","typeModifiers":{"predicate":"flags.3"}},{"name":"results","type":"ReactionCount","typeModifiers":{"isVector":true},"comment":"Reactions"},{"name":"recent_reactions","type":"MessagePeerReaction","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"List of recent peers and their reactions"}]},{"kind":"class","name":"messages.messageReactionsList","type":"messages.MessageReactionsList","id":834488621,"comment":"List of peers that reacted to a specific message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"count","type":"int","comment":"Total number of reactions matching query"},{"name":"reactions","type":"MessagePeerReaction","typeModifiers":{"isVector":true},"comment":"List of peers that reacted to a specific message"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates the next offset to use to load more results by invoking {@link messages.RawGetMessageReactionsListRequest}."}]},{"kind":"class","name":"availableReaction","type":"AvailableReaction","id":3229084673,"comment":"Animations associated with a message reaction","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"inactive","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If not set, the reaction can be added to new messages and enabled in chats."},{"name":"premium","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this reaction can only be used by Telegram Premium users"},{"name":"reaction","type":"string","comment":"Reaction emoji"},{"name":"title","type":"string","comment":"Reaction description"},{"name":"static_icon","type":"Document","comment":"Static icon for the reaction"},{"name":"appear_animation","type":"Document","comment":"The animated sticker to show when the user opens the reaction dropdown"},{"name":"select_animation","type":"Document","comment":"The animated sticker to show when the user hovers over the reaction"},{"name":"activate_animation","type":"Document","comment":"The animated sticker to show when the reaction is chosen and activated"},{"name":"effect_animation","type":"Document","comment":"The background effect (still an animated sticker) to play under the activate_animation, when the reaction is chosen and activated"},{"name":"around_animation","type":"Document","typeModifiers":{"predicate":"flags.1"},"comment":"The animation that plays around the button when you press an existing reaction (played together with center_icon)."},{"name":"center_icon","type":"Document","typeModifiers":{"predicate":"flags.1"},"comment":"The animation of the emoji inside the button when you press an existing reaction (played together with around_animation)."}]},{"kind":"class","name":"messages.availableReactionsNotModified","type":"messages.AvailableReactions","id":2668042583,"comment":"No new reactions are available","arguments":[]},{"kind":"class","name":"messages.availableReactions","type":"messages.AvailableReactions","id":1989032621,"comment":"Animations and metadata associated with message reactions ยป","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"},{"name":"reactions","type":"AvailableReaction","typeModifiers":{"isVector":true},"comment":"Animations and metadata associated with message reactions ยป"}]},{"kind":"class","name":"messagePeerReaction","type":"MessagePeerReaction","id":2356786748,"comment":"How a certain peer reacted to the message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"big","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the specified message reaction ยป should elicit a bigger and longer reaction"},{"name":"unread","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the reaction wasn't yet marked as read by the current user"},{"name":"my","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Starting from layer 159, {@link messages.RawSendReactionRequest} will send reactions from the peer (user or channel) specified using {@link messages.RawSaveDefaultSendAsRequest}.
If set, this flag indicates that this reaction was sent by us, even if the peer doesn't point to the current account."},{"name":"peer_id","type":"Peer","comment":"Peer that reacted to the message"},{"name":"date","type":"int","comment":"When was this reaction added"},{"name":"reaction","type":"Reaction","comment":"Reaction emoji"}]},{"kind":"class","name":"groupCallStreamChannel","type":"GroupCallStreamChannel","id":2162903215,"comment":"Info about an RTMP stream in a group call or livestream","arguments":[{"name":"channel","type":"int","comment":"Channel ID"},{"name":"scale","type":"int","comment":"Specifies the duration of the video segment to fetch in milliseconds, by bitshifting 1000 to the right scale times: duration_ms := 1000 >> scale."},{"name":"last_timestamp_ms","type":"long","comment":"Last seen timestamp to easily start fetching livestream chunks using {@link RawInputGroupCallStream}"}]},{"kind":"class","name":"phone.groupCallStreamChannels","type":"phone.GroupCallStreamChannels","id":3504636594,"comment":"Info about RTMP streams in a group call or livestream","arguments":[{"name":"channels","type":"GroupCallStreamChannel","typeModifiers":{"isVector":true},"comment":"RTMP streams"}]},{"kind":"class","name":"phone.groupCallStreamRtmpUrl","type":"phone.GroupCallStreamRtmpUrl","id":767505458,"comment":"RTMP URL and stream key to be used in streaming software","arguments":[{"name":"url","type":"string","comment":"RTMP URL"},{"name":"key","type":"string","comment":"Stream key"}]},{"kind":"class","name":"attachMenuBotIconColor","type":"AttachMenuBotIconColor","id":1165423600,"comment":"Represents an attachment menu icon color for bot mini apps ยป","arguments":[{"name":"name","type":"string","comment":"One of the following values:
light_icon - Color of the attachment menu icon (light mode)
light_text - Color of the attachment menu label, once selected (light mode)
dark_icon - Color of the attachment menu icon (dark mode)
dark_text - Color of the attachment menu label, once selected (dark mode)"},{"name":"color","type":"int","comment":"Color in RGB24 format"}]},{"kind":"class","name":"attachMenuBotIcon","type":"AttachMenuBotIcon","id":2997303403,"comment":"Represents an attachment menu icon for bot mini apps ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"name","type":"string","comment":"One of the following values: note that animated icons must be played when the user clicks on the button, activating the bot mini app.

default_static - Default attachment menu icon in SVG format
placeholder_static - Default placeholder for opened Web Apps in SVG format
ios_static - Attachment menu icon in SVG format for the official iOS app
ios_animated - Animated attachment menu icon in TGS format for the official iOS app
android_animated - Animated attachment menu icon in TGS format for the official Android app
macos_animated - Animated attachment menu icon in TGS format for the official native Mac OS app
ios_side_menu_static - Side menu icon in PNG format for the official iOS app
android_side_menu_static - Side menu icon in SVG format for the official android app
macos_side_menu_static - Side menu icon in PNG format for the official native Mac OS app"},{"name":"icon","type":"Document","comment":"The actual icon file."},{"name":"colors","type":"AttachMenuBotIconColor","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Attachment menu icon colors."}]},{"kind":"class","name":"attachMenuBot","type":"AttachMenuBot","id":3641544190,"comment":"Represents a bot mini app that can be launched from the attachment/side menu ยป\n\nAt least one of the show_in_attach_menu or the show_in_side_menu flags will always be set.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"inactive","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, before launching the mini app the client should ask the user to add the mini app to the attachment/side menu, and only if the user accepts, after invoking {@link messages.RawToggleBotInAttachMenuRequest} the app should be opened."},{"name":"has_settings","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Deprecated flag, can be ignored."},{"name":"request_write_access","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the bot would like to send messages to the user."},{"name":"show_in_attach_menu","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether, when installed, an attachment menu entry should be shown for the Mini App."},{"name":"show_in_side_menu","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether, when installed, an entry in the main view side menu should be shown for the Mini App."},{"name":"side_menu_disclaimer_needed","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"If inactive if set and the user hasn't previously accepted the third-party mini apps Terms of Service for this bot, when showing the mini app installation prompt, an additional mandatory checkbox to accept the mini apps TOS and a disclaimer indicating that this Mini App is not affiliated to Telegram should be shown."},{"name":"bot_id","type":"int53","comment":"Bot ID"},{"name":"short_name","type":"string","comment":"Attachment menu item name"},{"name":"peer_types","type":"AttachMenuPeerType","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"List of dialog types where this attachment menu entry should be shown"},{"name":"icons","type":"AttachMenuBotIcon","typeModifiers":{"isVector":true},"comment":"List of platform-specific static icons and animations to use for the attachment menu button"}]},{"kind":"class","name":"attachMenuBotsNotModified","type":"AttachMenuBots","id":4057500252,"comment":"The list of bot mini apps hasn't changed","arguments":[]},{"kind":"class","name":"attachMenuBots","type":"AttachMenuBots","id":1011024320,"comment":"Represents a list of bot mini apps that can be launched from the attachment menu ยป","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"bots","type":"AttachMenuBot","typeModifiers":{"isVector":true},"comment":"List of bot mini apps that can be launched from the attachment menu ยป"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Info about related users/bots"}]},{"kind":"class","name":"attachMenuBotsBot","type":"AttachMenuBotsBot","id":2478794367,"comment":"Represents a bot mini app that can be launched from the attachment menu ยป","arguments":[{"name":"bot","type":"AttachMenuBot","comment":"Represents a bot mini app that can be launched from the attachment menu ยป
"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Info about related users and bots"}]},{"kind":"class","name":"webViewResultUrl","type":"WebViewResult","id":202659196,"comment":"Contains the webview URL with appropriate theme and user info parameters added","arguments":[{"name":"query_id","type":"long","comment":"Webview session ID"},{"name":"url","type":"string","comment":"Webview URL to open"}]},{"kind":"class","name":"simpleWebViewResultUrl","type":"SimpleWebViewResult","id":2284811963,"comment":"Contains the webview URL with appropriate theme parameters added","arguments":[{"name":"url","type":"string","comment":"URL"}]},{"kind":"class","name":"webViewMessageSent","type":"WebViewMessageSent","id":211046684,"comment":"Info about a sent inline webview message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"msg_id","type":"InputBotInlineMessageID","typeModifiers":{"predicate":"flags.0"},"comment":"Message ID"}]},{"kind":"class","name":"botMenuButtonDefault","type":"BotMenuButton","id":1966318984,"comment":"Placeholder bot menu button never returned to users: see the docs for more info.","arguments":[]},{"kind":"class","name":"botMenuButtonCommands","type":"BotMenuButton","id":1113113093,"comment":"Bot menu button that opens the bot command list when clicked.","arguments":[]},{"kind":"class","name":"botMenuButton","type":"BotMenuButton","id":3350559974,"comment":"Bot menu button that opens a web app when clicked.","arguments":[{"name":"text","type":"string","comment":"Title to be displayed on the menu button instead of 'Menu'"},{"name":"url","type":"string","comment":"URL of a web app to open when the user clicks on the button"}]},{"kind":"class","name":"account.savedRingtonesNotModified","type":"account.SavedRingtones","id":4227262641,"comment":"The notification sound list hasn't changed.","arguments":[]},{"kind":"class","name":"account.savedRingtones","type":"account.SavedRingtones","id":3253284037,"comment":"A list of saved notification sounds","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"ringtones","type":"Document","typeModifiers":{"isVector":true},"comment":"Saved notification sounds"}]},{"kind":"class","name":"notificationSoundDefault","type":"NotificationSound","id":2548612798,"comment":"Indicates the default notification sound should be used","arguments":[]},{"kind":"class","name":"notificationSoundNone","type":"NotificationSound","id":1863070943,"comment":"No notification sound should be used","arguments":[]},{"kind":"class","name":"notificationSoundLocal","type":"NotificationSound","id":2198575844,"comment":"Indicates a specific local notification sound should be used","arguments":[{"name":"title","type":"string","comment":"Notification sound title"},{"name":"data","type":"string","comment":"Notification sound identifier (arbitrary data used by the client to identify a specific local notification sound)"}]},{"kind":"class","name":"notificationSoundRingtone","type":"NotificationSound","id":4285300809,"comment":"A specific previously uploaded notification sound should be used","arguments":[{"name":"id","type":"long","comment":"Document ID of notification sound uploaded using {@link account.RawUploadRingtoneRequest}"}]},{"kind":"class","name":"account.savedRingtone","type":"account.SavedRingtone","id":3072737133,"comment":"The notification sound was already in MP3 format and was saved without any modification","arguments":[]},{"kind":"class","name":"account.savedRingtoneConverted","type":"account.SavedRingtone","id":523271863,"comment":"The notification sound was not in MP3 format and was successfully converted and saved, use the returned Document to refer to the notification sound from now on","arguments":[{"name":"document","type":"Document","comment":"The converted notification sound"}]},{"kind":"class","name":"attachMenuPeerTypeSameBotPM","type":"AttachMenuPeerType","id":2104224014,"comment":"The bot attachment menu entry is available in the chat with the bot that offers it","arguments":[]},{"kind":"class","name":"attachMenuPeerTypeBotPM","type":"AttachMenuPeerType","id":3274439194,"comment":"The bot attachment menu entry is available in private chats with other bots (excluding the bot that offers the current attachment menu)","arguments":[]},{"kind":"class","name":"attachMenuPeerTypePM","type":"AttachMenuPeerType","id":4047950623,"comment":"The bot attachment menu entry is available in private chats with other users (not bots)","arguments":[]},{"kind":"class","name":"attachMenuPeerTypeChat","type":"AttachMenuPeerType","id":84480319,"comment":"The bot attachment menu entry is available in groups and supergroups","arguments":[]},{"kind":"class","name":"attachMenuPeerTypeBroadcast","type":"AttachMenuPeerType","id":2080104188,"comment":"The bot attachment menu entry is available in channels","arguments":[]},{"kind":"class","name":"inputInvoiceMessage","type":"InputInvoice","id":3317000281,"comment":"An invoice contained in a {@link RawMessageMediaInvoice} message.","arguments":[{"name":"peer","type":"InputPeer","comment":"Chat where the invoice was sent"},{"name":"msg_id","type":"int","comment":"Message ID"}]},{"kind":"class","name":"inputInvoiceSlug","type":"InputInvoice","id":3274099439,"comment":"An invoice slug taken from an invoice deep link or from the premium_invoice_slug app config parameter ยป","arguments":[{"name":"slug","type":"string","comment":"The invoice slug"}]},{"kind":"class","name":"inputInvoicePremiumGiftCode","type":"InputInvoice","id":2560125965,"comment":"Used if the user wishes to start a channel giveaway or send some giftcodes to members of a channel, in exchange for boosts.","arguments":[{"name":"purpose","type":"InputStorePaymentPurpose","comment":"Should be populated with {@link RawInputStorePaymentPremiumGiveaway} for giveaways and {@link RawInputStorePaymentPremiumGiftCode} for gifts."},{"name":"option","type":"PremiumGiftCodeOption","comment":"Should be populated with one of the giveaway options returned by {@link payments.RawGetPremiumGiftCodeOptionsRequest}, see the giveaways ยป documentation for more info."}]},{"kind":"class","name":"inputInvoiceStars","type":"InputInvoice","id":497236696,"arguments":[{"name":"option","type":"StarsTopupOption"}]},{"kind":"class","name":"payments.exportedInvoice","type":"payments.ExportedInvoice","id":2932919257,"comment":"Exported invoice deep link","arguments":[{"name":"url","type":"string","comment":"Exported invoice deep link"}]},{"kind":"class","name":"messages.transcribedAudio","type":"messages.TranscribedAudio","id":3485063511,"comment":"Transcribed text from a voice message ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pending","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the transcription is partial because audio transcription is still in progress, if set the user may receive further {@link RawUpdateTranscribedAudio} updates with the updated transcription."},{"name":"transcription_id","type":"long","comment":"Transcription ID"},{"name":"text","type":"string","comment":"Transcripted text"},{"name":"trial_remains_num","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"For non-Premium users, this flag will be set, indicating the remaining transcriptions in the free trial period."},{"name":"trial_remains_until_date","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"For non-Premium users, this flag will be set, indicating the date when the trial_remains_num counter will be reset to the maximum value of transcribe_audio_trial_weekly_number."}]},{"kind":"class","name":"help.premiumPromo","type":"help.PremiumPromo","id":1395946908,"comment":"Telegram Premium promotion information\n\nNote that the video_sections+videos fields are a list of videos, and the corresponding premium feature identifiers.
\nThey're equivalent to a section => video dictionary, with keys from video_section and values from videos.
\nThe keys in video_sections correspond to a specific feature identifier, and the associated promotional video should be shown when the associated feature row is clicked.","arguments":[{"name":"status_text","type":"string","comment":"Description of the current state of the user's Telegram Premium subscription"},{"name":"status_entities","type":"MessageEntity","typeModifiers":{"isVector":true},"comment":"Message entities for styled text"},{"name":"video_sections","type":"string","typeModifiers":{"isVector":true},"comment":"A list of premium feature identifiers ยป, associated to each video"},{"name":"videos","type":"Document","typeModifiers":{"isVector":true},"comment":"A list of videos"},{"name":"period_options","type":"PremiumSubscriptionOption","typeModifiers":{"isVector":true},"comment":"Telegram Premium subscription options"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Related user information"}]},{"kind":"class","name":"inputStorePaymentPremiumSubscription","type":"InputStorePaymentPurpose","id":2792693350,"comment":"Info about a Telegram Premium purchase","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"restore","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Pass true if this is a restore of a Telegram Premium purchase; only for the App Store"},{"name":"upgrade","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Pass true if this is an upgrade from a monthly subscription to a yearly subscription; only for App Store"}]},{"kind":"class","name":"inputStorePaymentGiftPremium","type":"InputStorePaymentPurpose","id":1634697192,"comment":"Info about a gifted Telegram Premium purchase","arguments":[{"name":"user_id","type":"InputUser","comment":"The user to which the Telegram Premium subscription was gifted"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"amount","type":"long","comment":"Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}]},{"kind":"class","name":"inputStorePaymentPremiumGiftCode","type":"InputStorePaymentPurpose","id":2743099199,"comment":"Used to gift Telegram Premium subscriptions only to some specific subscribers of a channel or to some of our contacts, see here ยป for more info on giveaways and gifts.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"users","type":"InputUser","typeModifiers":{"isVector":true},"comment":"The users that will receive the Telegram Premium subscriptions."},{"name":"boost_peer","type":"InputPeer","typeModifiers":{"predicate":"flags.0"},"comment":"If set, the gifts will be sent on behalf of a channel we are an admin of, which will also assign some boosts to it. Otherwise, the gift will be sent directly from the currently logged in users, and we will gain some extra boost slots. See here ยป for more info on giveaways and gifts."},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"amount","type":"long","comment":"Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}]},{"kind":"class","name":"inputStorePaymentPremiumGiveaway","type":"InputStorePaymentPurpose","id":369444042,"comment":"Used to pay for a giveaway, see here ยป for more info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"only_new_subscribers","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, only new subscribers starting from the giveaway creation date will be able to participate to the giveaway."},{"name":"winners_are_visible","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, giveaway winners are public and will be listed in a {@link RawMessageMediaGiveawayResults} message that will be automatically sent to the channel once the giveaway ends."},{"name":"boost_peer","type":"InputPeer","comment":"The channel starting the giveaway, that the user must join to participate, that will receive the giveaway boosts; see here ยป for more info on giveaways."},{"name":"additional_peers","type":"InputPeer","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Additional channels that the user must join to participate to the giveaway can be specified here."},{"name":"countries_iso2","type":"string","typeModifiers":{"predicate":"flags.2","isVector":true},"comment":"The set of users that can participate to the giveaway can be restricted by passing here an explicit whitelist of up to giveaway_countries_max countries, specified as two-letter ISO 3166-1 alpha-2 country codes."},{"name":"prize_description","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"Can contain a textual description of additional giveaway prizes."},{"name":"random_id","type":"long","comment":"Random ID to avoid resending the giveaway"},{"name":"until_date","type":"int","comment":"The end date of the giveaway, must be at most giveaway_period_max seconds in the future; see here ยป for more info on giveaways."},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"amount","type":"long","comment":"Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}]},{"kind":"class","name":"inputStorePaymentStars","type":"InputStorePaymentPurpose","id":1326377183,"arguments":[{"name":"flags","type":"#"},{"name":"stars","type":"long"},{"name":"currency","type":"string"},{"name":"amount","type":"long"}]},{"kind":"class","name":"premiumGiftOption","type":"PremiumGiftOption","id":1958953753,"comment":"Telegram Premium gift option","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"months","type":"int","comment":"Duration of gifted Telegram Premium subscription"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"amount","type":"long","comment":"Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"bot_url","type":"string","comment":"An invoice deep link ยป to an invoice for in-app payment, using the official Premium bot; may be empty if direct payment isn't available."},{"name":"store_product","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"An identifier for the App Store/Play Store product associated with the Premium gift."}]},{"kind":"class","name":"paymentFormMethod","type":"PaymentFormMethod","id":2298016283,"comment":"Represents an additional payment method","arguments":[{"name":"url","type":"string","comment":"URL to open in a webview to process the payment"},{"name":"title","type":"string","comment":"Payment method description"}]},{"kind":"class","name":"emojiStatusEmpty","type":"EmojiStatus","id":769727150,"comment":"No emoji status is set","arguments":[]},{"kind":"class","name":"emojiStatus","type":"EmojiStatus","id":2459656605,"comment":"An emoji status","arguments":[{"name":"document_id","type":"long","comment":"Custom emoji document ID"}]},{"kind":"class","name":"emojiStatusUntil","type":"EmojiStatus","id":4197492935,"comment":"An emoji status valid until the specified date","arguments":[{"name":"document_id","type":"long","comment":"Custom emoji document ID"},{"name":"until","type":"int","comment":"This status is valid until this date"}]},{"kind":"class","name":"account.emojiStatusesNotModified","type":"account.EmojiStatuses","id":3498894917,"comment":"The server-side list of emoji statuses hasn't changed","arguments":[]},{"kind":"class","name":"account.emojiStatuses","type":"account.EmojiStatuses","id":2428790737,"comment":"A list of emoji statuses","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"statuses","type":"EmojiStatus","typeModifiers":{"isVector":true},"comment":"Emoji statuses"}]},{"kind":"class","name":"reactionEmpty","type":"Reaction","id":2046153753,"comment":"No reaction","arguments":[]},{"kind":"class","name":"reactionEmoji","type":"Reaction","id":455247544,"comment":"Normal emoji message reaction","arguments":[{"name":"emoticon","type":"string","comment":"Emoji"}]},{"kind":"class","name":"reactionCustomEmoji","type":"Reaction","id":2302016627,"comment":"Custom emoji message reaction","arguments":[{"name":"document_id","type":"long","comment":"Custom emoji document ID"}]},{"kind":"class","name":"chatReactionsNone","type":"ChatReactions","id":3942396604,"comment":"No reactions are allowed","arguments":[]},{"kind":"class","name":"chatReactionsAll","type":"ChatReactions","id":1385335754,"comment":"All reactions or all non-custom reactions are allowed","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"allow_custom","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to allow custom reactions"}]},{"kind":"class","name":"chatReactionsSome","type":"ChatReactions","id":1713193015,"comment":"Some reactions are allowed","arguments":[{"name":"reactions","type":"Reaction","typeModifiers":{"isVector":true},"comment":"Allowed set of reactions: the reactions_in_chat_max configuration field indicates the maximum number of reactions that can be specified in this field."}]},{"kind":"class","name":"messages.reactionsNotModified","type":"messages.Reactions","id":2960120799,"comment":"The server-side list of message reactions hasn't changed","arguments":[]},{"kind":"class","name":"messages.reactions","type":"messages.Reactions","id":3942512406,"comment":"List of message reactions","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"reactions","type":"Reaction","typeModifiers":{"isVector":true},"comment":"Reactions"}]},{"kind":"class","name":"emailVerifyPurposeLoginSetup","type":"EmailVerifyPurpose","id":1128644211,"comment":"Email verification purpose: setup login email","arguments":[{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"phone_code_hash","type":"string","comment":"Phone code hash as specified by the documentation"}]},{"kind":"class","name":"emailVerifyPurposeLoginChange","type":"EmailVerifyPurpose","id":1383932651,"comment":"Email verification purpose: change login email","arguments":[]},{"kind":"class","name":"emailVerifyPurposePassport","type":"EmailVerifyPurpose","id":3153401477,"comment":"Verify an email for use in telegram passport","arguments":[]},{"kind":"class","name":"emailVerificationCode","type":"EmailVerification","id":2452510121,"comment":"Email verification code","arguments":[{"name":"code","type":"string","comment":"Received verification code"}]},{"kind":"class","name":"emailVerificationGoogle","type":"EmailVerification","id":3683688130,"comment":"Google ID email verification token","arguments":[{"name":"token","type":"string","comment":"Token"}]},{"kind":"class","name":"emailVerificationApple","type":"EmailVerification","id":2530243837,"comment":"Apple ID email verification token","arguments":[{"name":"token","type":"string","comment":"Token"}]},{"kind":"class","name":"account.emailVerified","type":"account.EmailVerified","id":731303195,"comment":"The email was verified correctly.","arguments":[{"name":"email","type":"string","comment":"The verified email address."}]},{"kind":"class","name":"account.emailVerifiedLogin","type":"account.EmailVerified","id":3787132257,"comment":"The email was verified correctly, and a login code was just sent to it.","arguments":[{"name":"email","type":"string","comment":"The verified email address."},{"name":"sent_code","type":"auth.SentCode","comment":"Info about the sent login code"}]},{"kind":"class","name":"premiumSubscriptionOption","type":"PremiumSubscriptionOption","id":1596792306,"comment":"Describes a Telegram Premium subscription option","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"current","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this subscription option is currently in use."},{"name":"can_purchase_upgrade","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this subscription option can be used to upgrade the existing Telegram Premium subscription. When upgrading Telegram Premium subscriptions bought through stores, make sure that the store transaction ID is equal to transaction, to avoid upgrading someone else's account, if the client is currently logged into multiple accounts."},{"name":"transaction","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Identifier of the last in-store transaction for the currently used subscription on the current account."},{"name":"months","type":"int","comment":"Duration of subscription in months"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"amount","type":"long","comment":"Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"bot_url","type":"string","comment":"Deep link used to initiate payment"},{"name":"store_product","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Store product ID, only for official apps"}]},{"kind":"class","name":"sendAsPeer","type":"SendAsPeer","id":3088871476,"comment":"Indicates a peer that can be used to send messages","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"premium_required","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether a Telegram Premium account is required to send messages as this peer"},{"name":"peer","type":"Peer","comment":"Peer"}]},{"kind":"class","name":"messageExtendedMediaPreview","type":"MessageExtendedMedia","id":2908916936,"comment":"Extended media preview","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"w","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Width"},{"name":"h","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Height"},{"name":"thumb","type":"PhotoSize","typeModifiers":{"predicate":"flags.1"},"comment":"Thumbnail"},{"name":"video_duration","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Video duration"}]},{"kind":"class","name":"messageExtendedMedia","type":"MessageExtendedMedia","id":3997670500,"comment":"Extended media","arguments":[{"name":"media","type":"MessageMedia","comment":"Media"}]},{"kind":"class","name":"stickerKeyword","type":"StickerKeyword","id":4244550300,"comment":"Keywords for a certain sticker","arguments":[{"name":"document_id","type":"long","comment":"Sticker ID"},{"name":"keyword","type":"string","typeModifiers":{"isVector":true},"comment":"Keywords"}]},{"kind":"class","name":"username","type":"Username","id":3020371527,"comment":"Contains information about a username.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"editable","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the username is editable, meaning it wasn't bought on fragment."},{"name":"active","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the username is active."},{"name":"username","type":"string","comment":"The username."}]},{"kind":"class","name":"forumTopicDeleted","type":"ForumTopic","id":37687451,"comment":"Represents a deleted forum topic.","arguments":[{"name":"id","type":"int","comment":"The ID of the deleted forum topic."}]},{"kind":"class","name":"forumTopic","type":"ForumTopic","id":1903173033,"comment":"Represents a forum topic.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"my","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the topic was created by the current user"},{"name":"closed","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the topic is closed (no messages can be sent to it)"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the topic is pinned"},{"name":"short","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether this constructor is a reduced version of the full topic information.
If set, only the my, closed, id, date, title, icon_color, icon_emoji_id and from_id parameters will contain valid information.
Reduced info is usually only returned in topic-related admin log events ยป and in the {@link messages.RawChannelMessages} constructor: if needed, full information can be fetched using {@link channels.RawGetForumTopicsByIDRequest}."},{"name":"hidden","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether the topic is hidden (only valid for the \"General\" topic, id=1)"},{"name":"id","type":"int","comment":"Topic ID"},{"name":"date","type":"int","comment":"Topic creation date"},{"name":"title","type":"string","comment":"Topic title"},{"name":"icon_color","type":"int","comment":"If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F."},{"name":"icon_emoji_id","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"ID of the custom emoji used as topic icon."},{"name":"top_message","type":"int","comment":"ID of the last message that was sent to this topic"},{"name":"read_inbox_max_id","type":"int","comment":"Position up to which all incoming messages are read."},{"name":"read_outbox_max_id","type":"int","comment":"Position up to which all outgoing messages are read."},{"name":"unread_count","type":"int","comment":"Number of unread messages"},{"name":"unread_mentions_count","type":"int","comment":"Number of unread mentions"},{"name":"unread_reactions_count","type":"int","comment":"Number of unread reactions to messages you sent"},{"name":"from_id","type":"Peer","comment":"ID of the peer that created the topic"},{"name":"notify_settings","type":"PeerNotifySettings","comment":"Notification settings"},{"name":"draft","type":"DraftMessage","typeModifiers":{"predicate":"flags.4"},"comment":"Message draft"}]},{"kind":"class","name":"messages.forumTopics","type":"messages.ForumTopics","id":913709011,"comment":"Contains information about multiple forum topics","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"order_by_create_date","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the returned topics are ordered by creation date; if set, pagination by offset_date should use {@link RawForumTopic}.date; otherwise topics are ordered by the last message date, so paginate by the date of the message referenced by {@link RawForumTopic}.top_message."},{"name":"count","type":"int","comment":"Total number of topics matching query; may be more than the topics contained in topics, in which case pagination is required."},{"name":"topics","type":"ForumTopic","typeModifiers":{"isVector":true},"comment":"Forum topics"},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"Related messages (contains the messages mentioned by {@link RawForumTopic}.top_message)."},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Related chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Related users"},{"name":"pts","type":"int","comment":"Event count after generation"}]},{"kind":"class","name":"defaultHistoryTTL","type":"DefaultHistoryTTL","id":1135897376,"comment":"Contains info about the default value of the Time-To-Live setting, applied to all new chats.","arguments":[{"name":"period","type":"int","comment":"Time-To-Live setting applied to all new chats."}]},{"kind":"class","name":"exportedContactToken","type":"ExportedContactToken","id":1103040667,"comment":"Describes a temporary profile link.","arguments":[{"name":"url","type":"string","comment":"The temporary profile link."},{"name":"expires","type":"int","comment":"Its expiration date"}]},{"kind":"class","name":"requestPeerTypeUser","type":"RequestPeerType","id":1597737472,"comment":"Choose a user.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"bot","type":"Bool","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to allow choosing only bots."},{"name":"premium","type":"Bool","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to allow choosing only Premium users."}]},{"kind":"class","name":"requestPeerTypeChat","type":"RequestPeerType","id":3387977243,"comment":"Choose a chat or supergroup","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"creator","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to allow only choosing chats or supergroups that were created by the current user."},{"name":"bot_participant","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether to allow only choosing chats or supergroups where the bot is a participant."},{"name":"has_username","type":"Bool","typeModifiers":{"predicate":"flags.3"},"comment":"If specified, allows only choosing channels with or without a username, according to the value of Bool."},{"name":"forum","type":"Bool","typeModifiers":{"predicate":"flags.4"},"comment":"If specified, allows only choosing chats or supergroups that are or aren't forums, according to the value of Bool."},{"name":"user_admin_rights","type":"ChatAdminRights","typeModifiers":{"predicate":"flags.1"},"comment":"If specified, allows only choosing chats or supergroups where the current user is an admin with at least the specified admin rights."},{"name":"bot_admin_rights","type":"ChatAdminRights","typeModifiers":{"predicate":"flags.2"},"comment":"If specified, allows only choosing chats or supergroups where the bot is an admin with at least the specified admin rights."}]},{"kind":"class","name":"requestPeerTypeBroadcast","type":"RequestPeerType","id":865857388,"comment":"Choose a channel","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"creator","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to allow only choosing channels that were created by the current user."},{"name":"has_username","type":"Bool","typeModifiers":{"predicate":"flags.3"},"comment":"If specified, allows only choosing channels with or without a username, according to the value of Bool."},{"name":"user_admin_rights","type":"ChatAdminRights","typeModifiers":{"predicate":"flags.1"},"comment":"If specified, allows only choosing channels where the current user is an admin with at least the specified admin rights."},{"name":"bot_admin_rights","type":"ChatAdminRights","typeModifiers":{"predicate":"flags.2"},"comment":"If specified, allows only choosing channels where the bot is an admin with at least the specified admin rights."}]},{"kind":"class","name":"emojiListNotModified","type":"EmojiList","id":1209970170,"comment":"The list of custom emojis hasn't changed.","arguments":[]},{"kind":"class","name":"emojiList","type":"EmojiList","id":2048790993,"comment":"Represents a list of custom emojis.","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"},{"name":"document_id","type":"long","typeModifiers":{"isVector":true},"comment":"Custom emoji IDs"}]},{"kind":"class","name":"emojiGroup","type":"EmojiGroup","id":2056961449,"comment":"Represents an emoji category.","arguments":[{"name":"title","type":"string","comment":"Category name, i.e. \"Animals\", \"Flags\", \"Faces\" and so on..."},{"name":"icon_emoji_id","type":"long","comment":"A single custom emoji used as preview for the category."},{"name":"emoticons","type":"string","typeModifiers":{"isVector":true},"comment":"A list of UTF-8 emojis, matching the category."}]},{"kind":"class","name":"emojiGroupGreeting","type":"EmojiGroup","id":2161274055,"arguments":[{"name":"title","type":"string"},{"name":"icon_emoji_id","type":"long"},{"name":"emoticons","type":"string","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"emojiGroupPremium","type":"EmojiGroup","id":154914612,"arguments":[{"name":"title","type":"string"},{"name":"icon_emoji_id","type":"long"}]},{"kind":"class","name":"messages.emojiGroupsNotModified","type":"messages.EmojiGroups","id":1874111879,"comment":"The list of emoji categories hasn't changed.","arguments":[]},{"kind":"class","name":"messages.emojiGroups","type":"messages.EmojiGroups","id":2283780427,"comment":"Represents a list of emoji categories.","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"},{"name":"groups","type":"EmojiGroup","typeModifiers":{"isVector":true},"comment":"A list of emoji categories."}]},{"kind":"class","name":"textWithEntities","type":"TextWithEntities","id":1964978502,"comment":"Styled text with message entities","arguments":[{"name":"text","type":"string","comment":"Text"},{"name":"entities","type":"MessageEntity","typeModifiers":{"isVector":true},"comment":"Message entities for styled text"}]},{"kind":"class","name":"messages.translateResult","type":"messages.TranslatedText","id":870003448,"comment":"Translated text with entities","arguments":[{"name":"result","type":"TextWithEntities","typeModifiers":{"isVector":true},"comment":"Text+entities, for each input message."}]},{"kind":"class","name":"autoSaveSettings","type":"AutoSaveSettings","id":3360175310,"comment":"Media autosave settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"photos","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether photos should be autosaved to the gallery."},{"name":"videos","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether videos should be autosaved to the gallery."},{"name":"video_max_size","type":"long","typeModifiers":{"predicate":"flags.2"},"comment":"If set, specifies a size limit for autosavable videos"}]},{"kind":"class","name":"autoSaveException","type":"AutoSaveException","id":2170563911,"comment":"Peer-specific media autosave settings","arguments":[{"name":"peer","type":"Peer","comment":"The peer"},{"name":"settings","type":"AutoSaveSettings","comment":"Media autosave settings"}]},{"kind":"class","name":"account.autoSaveSettings","type":"account.AutoSaveSettings","id":1279133341,"comment":"Contains media autosave settings","arguments":[{"name":"users_settings","type":"AutoSaveSettings","comment":"Default media autosave settings for private chats"},{"name":"chats_settings","type":"AutoSaveSettings","comment":"Default media autosave settings for groups and supergroups"},{"name":"broadcasts_settings","type":"AutoSaveSettings","comment":"Default media autosave settings for channels"},{"name":"exceptions","type":"AutoSaveException","typeModifiers":{"isVector":true},"comment":"Peer-specific granular autosave settings"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats mentioned in the peer-specific granular autosave settings"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in the peer-specific granular autosave settings"}]},{"kind":"class","name":"help.appConfigNotModified","type":"help.AppConfig","id":2094949405,"comment":"The client configuration parameters haven't changed","arguments":[]},{"kind":"class","name":"help.appConfig","type":"help.AppConfig","id":3709368366,"comment":"Contains various client configuration parameters","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"},{"name":"config","type":"JSONValue","comment":"Client configuration parameters"}]},{"kind":"class","name":"inputBotAppID","type":"InputBotApp","id":2837495162,"comment":"Used to fetch information about a named Mini App by its ID","arguments":[{"name":"id","type":"long","comment":"named Mini App ID."},{"name":"access_hash","type":"long","comment":"Access hash, obtained from the {@link RawBotApp} constructor."}]},{"kind":"class","name":"inputBotAppShortName","type":"InputBotApp","id":2425095175,"comment":"Used to fetch information about a named Mini App by its short name","arguments":[{"name":"bot_id","type":"InputUser","comment":"ID of the bot that owns the bot mini app"},{"name":"short_name","type":"string","comment":"Short name, obtained from a named Mini App deep link"}]},{"kind":"class","name":"botAppNotModified","type":"BotApp","id":1571189943,"comment":"Bot app info hasn't changed.","arguments":[]},{"kind":"class","name":"botApp","type":"BotApp","id":2516373974,"comment":"Contains information about a named Mini App.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"long","comment":"bot mini app ID"},{"name":"access_hash","type":"long","comment":"bot mini app access hash"},{"name":"short_name","type":"string","comment":"bot mini app short name, used to generate named Mini App deep links."},{"name":"title","type":"string","comment":"bot mini app title."},{"name":"description","type":"string","comment":"bot mini app description."},{"name":"photo","type":"Photo","comment":"bot mini app photo."},{"name":"document","type":"Document","typeModifiers":{"predicate":"flags.0"},"comment":"bot mini app animation."},{"name":"hash","type":"long","comment":"Hash to pass to {@link messages.RawGetBotAppRequest}, to avoid refetching bot app info if it hasn't changed."}]},{"kind":"class","name":"messages.botApp","type":"messages.BotApp","id":3947933173,"comment":"Contains information about a named Mini App","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"inactive","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the web app was never used by the user, and confirmation must be asked from the user before opening it."},{"name":"request_write_access","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"The bot is asking permission to send messages to the user: if the user agrees, set the write_allowed flag when invoking {@link messages.RawRequestAppWebViewRequest}."},{"name":"has_settings","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Deprecated flag, can be ignored."},{"name":"app","type":"BotApp","comment":"Bot app information"}]},{"kind":"class","name":"appWebViewResultUrl","type":"AppWebViewResult","id":1008422669,"comment":"Contains the link that must be used to open a named Mini App.","arguments":[{"name":"url","type":"string","comment":"The URL to open"}]},{"kind":"class","name":"inlineBotWebView","type":"InlineBotWebView","id":3044185557,"comment":"Specifies an inline mode mini app button, shown on top of the inline query results list.","arguments":[{"name":"text","type":"string","comment":"Text of the button"},{"name":"url","type":"string","comment":"Webapp URL"}]},{"kind":"class","name":"readParticipantDate","type":"ReadParticipantDate","id":1246753138,"comment":"Contains info about when a certain participant has read a message","arguments":[{"name":"user_id","type":"int53","comment":"User ID"},{"name":"date","type":"int","comment":"When the user read the message"}]},{"kind":"class","name":"inputChatlistDialogFilter","type":"InputChatlist","id":4091599411,"comment":"Folder ID","arguments":[{"name":"filter_id","type":"int","comment":"Folder ID"}]},{"kind":"class","name":"exportedChatlistInvite","type":"ExportedChatlistInvite","id":206668204,"comment":"Exported chat folder deep link ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"title","type":"string","comment":"Name of the link"},{"name":"url","type":"string","comment":"The chat folder deep link ยป."},{"name":"peers","type":"Peer","typeModifiers":{"isVector":true},"comment":"Peers to import"}]},{"kind":"class","name":"chatlists.exportedChatlistInvite","type":"chatlists.ExportedChatlistInvite","id":283567014,"comment":"Info about an exported chat folder deep link ยป.","arguments":[{"name":"filter","type":"DialogFilter","comment":"Folder ID"},{"name":"invite","type":"ExportedChatlistInvite","comment":"The exported chat folder deep link ยป."}]},{"kind":"class","name":"chatlists.exportedInvites","type":"chatlists.ExportedInvites","id":279670215,"comment":"Info about multiple chat folder deep links ยป.","arguments":[{"name":"invites","type":"ExportedChatlistInvite","typeModifiers":{"isVector":true},"comment":"The chat folder deep links ยป."},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Related chat information"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Related user information"}]},{"kind":"class","name":"chatlists.chatlistInviteAlready","type":"chatlists.ChatlistInvite","id":4203214425,"comment":"Updated info about a chat folder deep link ยป we already imported.","arguments":[{"name":"filter_id","type":"int","comment":"ID of the imported folder"},{"name":"missing_peers","type":"Peer","typeModifiers":{"isVector":true},"comment":"New peers to be imported"},{"name":"already_peers","type":"Peer","typeModifiers":{"isVector":true},"comment":"Peers that were already imported"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Related chat information"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Related user information"}]},{"kind":"class","name":"chatlists.chatlistInvite","type":"chatlists.ChatlistInvite","id":500007837,"comment":"Info about a chat folder deep link ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"title","type":"string","comment":"Name of the link"},{"name":"emoticon","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Emoji to use as icon for the folder."},{"name":"peers","type":"Peer","typeModifiers":{"isVector":true},"comment":"Supergroups and channels to join"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Related chat information"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Related user information"}]},{"kind":"class","name":"chatlists.chatlistUpdates","type":"chatlists.ChatlistUpdates","id":2478671757,"comment":"Updated information about a chat folder deep link ยป.","arguments":[{"name":"missing_peers","type":"Peer","typeModifiers":{"isVector":true},"comment":"New peers to join"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Related chat information"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Related user information"}]},{"kind":"class","name":"bots.botInfo","type":"bots.BotInfo","id":3903288752,"comment":"Localized information about a bot.","arguments":[{"name":"name","type":"string","comment":"Bot name"},{"name":"about","type":"string","comment":"Bot about text"},{"name":"description","type":"string","comment":"Bot description"}]},{"kind":"class","name":"messagePeerVote","type":"MessagePeerVote","id":3066834268,"comment":"How a peer voted in a poll","arguments":[{"name":"peer","type":"Peer","comment":"Peer ID"},{"name":"option","type":"bytes","comment":"The option chosen by the peer"},{"name":"date","type":"int","comment":"When did the peer cast the vote"}]},{"kind":"class","name":"messagePeerVoteInputOption","type":"MessagePeerVote","id":1959634180,"comment":"How a peer voted in a poll (reduced constructor, returned if an option was provided to {@link messages.RawGetPollVotesRequest})","arguments":[{"name":"peer","type":"Peer","comment":"The peer that voted for the queried option"},{"name":"date","type":"int","comment":"When did the peer cast the vote"}]},{"kind":"class","name":"messagePeerVoteMultiple","type":"MessagePeerVote","id":1177089766,"comment":"How a peer voted in a multiple-choice poll","arguments":[{"name":"peer","type":"Peer","comment":"Peer ID"},{"name":"options","type":"bytes","typeModifiers":{"isVector":true},"comment":"Options chosen by the peer"},{"name":"date","type":"int","comment":"When did the peer cast their votes"}]},{"kind":"class","name":"storyViews","type":"StoryViews","id":2371443926,"comment":"Aggregated view and reaction information of a story.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_viewers","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, indicates that the viewers list is currently viewable, and was not yet deleted because the story has expired while the user didn't have a Premium account."},{"name":"views_count","type":"int","comment":"View counter of the story"},{"name":"forwards_count","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Forward counter of the story"},{"name":"reactions","type":"ReactionCount","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"All reactions sent to this story"},{"name":"reactions_count","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Number of reactions added to the story"},{"name":"recent_viewers","type":"int53","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"User IDs of some recent viewers of the story"}]},{"kind":"class","name":"storyItemDeleted","type":"StoryItem","id":1374088783,"comment":"Represents a previously active story, that was deleted","arguments":[{"name":"id","type":"int","comment":"Story ID"}]},{"kind":"class","name":"storyItemSkipped","type":"StoryItem","id":4289579283,"comment":"Represents an active story, whose full information was omitted for space and performance reasons; use {@link stories.RawGetStoriesByIDRequest} to fetch full info about the skipped story when and if needed.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"close_friends","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"Whether this story can only be viewed by our close friends, see here ยป for more info"},{"name":"id","type":"int","comment":"Story ID"},{"name":"date","type":"int","comment":"When was the story posted."},{"name":"expire_date","type":"int","comment":"When does the story expire."}]},{"kind":"class","name":"storyItem","id":2041735716,"type":"StoryItem","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether this story is pinned on the user's profile"},{"name":"public","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Whether this story is public and can be viewed by everyone"},{"name":"close_friends","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"Whether this story can only be viewed by our close friends, see here ยป for more info"},{"name":"min","type":"true","typeModifiers":{"predicate":"flags.9"},"comment":"Full information about this story was omitted for space and performance reasons; use {@link stories.RawGetStoriesByIDRequest} to fetch full info about this story when and if needed."},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"Whether this story is protected and thus cannot be forwarded; clients should also prevent users from saving attached media (i.e. videos should only be streamed, photos should be kept in RAM, et cetera)."},{"name":"edited","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"Indicates whether the story was edited."},{"name":"contacts","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"Whether this story can only be viewed by our contacts"},{"name":"selected_contacts","type":"true","typeModifiers":{"predicate":"flags.13"},"comment":"Whether this story can only be viewed by a select list of our contacts"},{"name":"out","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"indicates whether we sent this story."},{"name":"id","type":"int","comment":"ID of the story."},{"name":"date","type":"int","comment":"When was the story posted."},{"name":"from_id","type":"Peer","typeModifiers":{"predicate":"flags.18"}},{"name":"fwd_from","type":"StoryFwdHeader","typeModifiers":{"predicate":"flags.17"},"comment":"For reposted stories ยป, contains info about the original story."},{"name":"expire_date","type":"int","comment":"When does the story expire."},{"name":"caption","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Story caption."},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text"},{"name":"media","type":"MessageMedia","comment":"Story media."},{"name":"media_areas","type":"MediaArea","typeModifiers":{"predicate":"flags.14","isVector":true},"comment":"List of media areas, see here ยป for more info on media areas."},{"name":"privacy","type":"PrivacyRule","typeModifiers":{"predicate":"flags.2","isVector":true},"comment":"Privacy rules indicating who can and can't view this story"},{"name":"views","type":"StoryViews","typeModifiers":{"predicate":"flags.3"},"comment":"View date and reaction information"},{"name":"sent_reaction","type":"Reaction","typeModifiers":{"predicate":"flags.15"},"comment":"The reaction we sent."}],"comment":"Represents a story."},{"kind":"class","name":"stories.allStoriesNotModified","type":"stories.AllStories","id":291044926,"comment":"The list of active (or active and hidden) stories has not changed.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"state","type":"string","comment":"State to use to ask for updates"},{"name":"stealth_mode","type":"StoriesStealthMode","comment":"Current stealth mode information"}]},{"kind":"class","name":"stories.allStories","type":"stories.AllStories","id":1862033025,"comment":"Full list of active (or active and hidden) stories.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"has_more","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether more results can be fetched as described here ยป."},{"name":"count","type":"int","comment":"Total number of active (or active and hidden) stories"},{"name":"state","type":"string","comment":"State to use for pagination"},{"name":"peer_stories","type":"PeerStories","typeModifiers":{"isVector":true},"comment":"Stories"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"},{"name":"stealth_mode","type":"StoriesStealthMode","comment":"Current stealth mode information"}]},{"kind":"class","name":"stories.stories","id":1673780490,"type":"stories.Stories","arguments":[{"name":"flags","type":"#"},{"name":"count","type":"int","comment":"Total number of stories that can be fetched"},{"name":"stories","type":"StoryItem","typeModifiers":{"isVector":true},"comment":"Stories"},{"name":"pinned_to_top","type":"int","typeModifiers":{"predicate":"flags.0","isVector":true}},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}],"comment":"List of stories"},{"kind":"class","name":"storyView","type":"StoryView","id":2965236421,"comment":"Story view date and reaction information","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"blocked","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether we have completely blocked this user, including from viewing more of our stories."},{"name":"blocked_my_stories_from","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether we have blocked this user from viewing more of our stories."},{"name":"user_id","type":"int53","comment":"The user that viewed the story"},{"name":"date","type":"int","comment":"When did the user view the story"},{"name":"reaction","type":"Reaction","typeModifiers":{"predicate":"flags.2"},"comment":"If present, contains the reaction that the user left on the story"}]},{"kind":"class","name":"storyViewPublicForward","type":"StoryView","id":2424530699,"comment":"A certain peer has forwarded the story as a message to a public chat or channel.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"blocked","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether we have completely blocked this user, including from viewing more of our stories."},{"name":"blocked_my_stories_from","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether we have blocked this user from viewing more of our stories."},{"name":"message","type":"Message","comment":"The message with the forwarded story."}]},{"kind":"class","name":"storyViewPublicRepost","type":"StoryView","id":3178549065,"comment":"A certain peer has reposted the story.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"blocked","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether we have completely blocked this user, including from viewing more of our stories."},{"name":"blocked_my_stories_from","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether we have blocked this user from viewing more of our stories."},{"name":"peer_id","type":"Peer","comment":"The peer that reposted the story."},{"name":"story","type":"StoryItem","comment":"The reposted story."}]},{"kind":"class","name":"stories.storyViewsList","type":"stories.StoryViewsList","id":1507299269,"comment":"Reaction and view counters for a story","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"count","type":"int","comment":"Total number of results that can be fetched"},{"name":"views_count","type":"int","comment":"Total number of story views"},{"name":"forwards_count","type":"int","comment":"Total number of story forwards/reposts"},{"name":"reactions_count","type":"int","comment":"Number of reactions that were added to the story"},{"name":"views","type":"StoryView","typeModifiers":{"isVector":true},"comment":"Story view date and reaction information"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Offset for pagination"}]},{"kind":"class","name":"stories.storyViews","type":"stories.StoryViews","id":3734957341,"comment":"Reaction and view counters for a list of stories","arguments":[{"name":"views","type":"StoryViews","typeModifiers":{"isVector":true},"comment":"View date and reaction information of multiple stories"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"inputReplyToMessage","type":"InputReplyTo","id":583071445,"comment":"Reply to a message.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"reply_to_msg_id","type":"int","comment":"The message ID to reply to."},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"This field must contain the topic ID only when replying to messages in forum topics different from the \"General\" topic (i.e. reply_to_msg_id is set and reply_to_msg_id != topicID and topicID != 1).
If the replied-to message is deleted before the method finishes execution, the value in this field will be used to send the message to the correct topic, instead of the \"General\" topic."},{"name":"reply_to_peer_id","type":"InputPeer","typeModifiers":{"predicate":"flags.1"},"comment":"Used to reply to messages sent to another chat (specified here), can only be used for non-protected chats and messages."},{"name":"quote_text","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Used to quote-reply to only a certain section (specified here) of the original message. The maximum UTF-8 length for quotes is specified in the quote_length_max config key."},{"name":"quote_entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Message entities for styled text from the quote_text field."},{"name":"quote_offset","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Offset of the message quote_text within the original message (in UTF-16 code units)."}]},{"kind":"class","name":"inputReplyToStory","id":1484862010,"type":"InputReplyTo","arguments":[{"name":"peer","type":"InputPeer"},{"name":"story_id","type":"int","comment":"ID of the story to reply to."}],"comment":"Reply to a story."},{"kind":"class","name":"exportedStoryLink","type":"ExportedStoryLink","id":1070138683,"comment":"Represents a story deep link.","arguments":[{"name":"link","type":"string","comment":"The story deep link."}]},{"kind":"class","name":"storiesStealthMode","type":"StoriesStealthMode","id":1898850301,"comment":"Information about the current stealth mode session.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"active_until_date","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"The date up to which stealth mode will be active."},{"name":"cooldown_until_date","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"The date starting from which the user will be allowed to re-enable stealth mode again."}]},{"kind":"class","name":"mediaAreaCoordinates","id":3486113794,"type":"MediaAreaCoordinates","arguments":[{"name":"flags","type":"#"},{"name":"x","type":"double","comment":"The abscissa of the rectangle's center, as a percentage of the media width (0-100)."},{"name":"y","type":"double","comment":"The ordinate of the rectangle's center, as a percentage of the media height (0-100)."},{"name":"w","type":"double","comment":"The width of the rectangle, as a percentage of the media width (0-100)."},{"name":"h","type":"double","comment":"The height of the rectangle, as a percentage of the media height (0-100)."},{"name":"rotation","type":"double","comment":"Clockwise rotation angle of the rectangle, in degrees (0-360)."},{"name":"radius","type":"double","typeModifiers":{"predicate":"flags.0"}}],"comment":"Coordinates and size of a clicable rectangular area on top of a story."},{"kind":"class","name":"mediaAreaVenue","type":"MediaArea","id":3196246940,"comment":"Represents a location tag attached to a story, with additional venue information.","arguments":[{"name":"coordinates","type":"MediaAreaCoordinates","comment":"The size and location of the media area corresponding to the location sticker on top of the story media."},{"name":"geo","type":"GeoPoint","comment":"Coordinates of the venue"},{"name":"title","type":"string","comment":"Venue name"},{"name":"address","type":"string","comment":"Address"},{"name":"provider","type":"string","comment":"Venue provider: currently only \"foursquare\" and \"gplaces\" need to be supported."},{"name":"venue_id","type":"string","comment":"Venue ID in the provider's database"},{"name":"venue_type","type":"string","comment":"Venue type in the provider's database"}]},{"kind":"class","name":"inputMediaAreaVenue","type":"MediaArea","id":2994872703,"comment":"Represents a location tag attached to a story, with additional venue information.","arguments":[{"name":"coordinates","type":"MediaAreaCoordinates","comment":"The size and location of the media area corresponding to the location sticker on top of the story media."},{"name":"query_id","type":"long","comment":"The query_id from {@link messages.RawBotResults}, see here ยป for more info."},{"name":"result_id","type":"string","comment":"The id of the chosen result, see here ยป for more info."}]},{"kind":"class","name":"mediaAreaGeoPoint","id":3402974509,"type":"MediaArea","arguments":[{"name":"flags","type":"#"},{"name":"coordinates","type":"MediaAreaCoordinates","comment":"The size and position of the media area corresponding to the location sticker on top of the story media."},{"name":"geo","type":"GeoPoint","comment":"Coordinates of the geolocation tag."},{"name":"address","type":"GeoPointAddress","typeModifiers":{"predicate":"flags.0"}}],"comment":"Represents a geolocation tag attached to a story."},{"kind":"class","name":"mediaAreaSuggestedReaction","type":"MediaArea","id":340088945,"comment":"Represents a reaction bubble.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the reaction bubble has a dark background."},{"name":"flipped","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the reaction bubble is mirrored (see here ยป for more info)."},{"name":"coordinates","type":"MediaAreaCoordinates","comment":"The coordinates of the media area corresponding to the reaction button."},{"name":"reaction","type":"Reaction","comment":"The reaction that should be sent when this area is clicked."}]},{"kind":"class","name":"mediaAreaChannelPost","type":"MediaArea","id":1996756655,"comment":"Represents a channel post.","arguments":[{"name":"coordinates","type":"MediaAreaCoordinates","comment":"The size and location of the media area corresponding to the location sticker on top of the story media."},{"name":"channel_id","type":"int53","comment":"The channel that posted the message"},{"name":"msg_id","type":"int","comment":"ID of the channel message"}]},{"kind":"class","name":"inputMediaAreaChannelPost","type":"MediaArea","id":577893055,"comment":"Represents a channel post","arguments":[{"name":"coordinates","type":"MediaAreaCoordinates","comment":"The size and location of the media area corresponding to the location sticker on top of the story media."},{"name":"channel","type":"InputChannel","comment":"The channel that posted the message"},{"name":"msg_id","type":"int","comment":"ID of the channel message"}]},{"kind":"class","name":"mediaAreaUrl","id":926421125,"type":"MediaArea","arguments":[{"name":"coordinates","type":"MediaAreaCoordinates"},{"name":"url","type":"string"}]},{"kind":"class","name":"peerStories","type":"PeerStories","id":2587224473,"comment":"Stories associated to a peer","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"Peer","comment":"The peer"},{"name":"max_read_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If set, contains the ID of the maximum read story"},{"name":"stories","type":"StoryItem","typeModifiers":{"isVector":true},"comment":"Stories"}]},{"kind":"class","name":"stories.peerStories","type":"stories.PeerStories","id":3404105576,"comment":"Active story list of a specific peer.","arguments":[{"name":"stories","type":"PeerStories","comment":"Stories"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"messages.webPage","type":"messages.WebPage","id":4250800829,"comment":"Represents an Instant View webpage.","arguments":[{"name":"webpage","type":"WebPage","comment":"The instant view webpage."},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Chats mentioned in the webpage."},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Users mentioned in the webpage."}]},{"kind":"class","name":"premiumGiftCodeOption","type":"PremiumGiftCodeOption","id":629052971,"comment":"Contains info about a giveaway/gift option.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"users","type":"int","comment":"Number of users which will be able to activate the gift codes."},{"name":"months","type":"int","comment":"Duration in months of each gifted Telegram Premium subscription."},{"name":"store_product","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Identifier of the store product associated with the option, official apps only."},{"name":"store_quantity","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Number of times the store product must be paid"},{"name":"currency","type":"string","comment":"Three-letter ISO 4217 currency code"},{"name":"amount","type":"long","comment":"Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}]},{"kind":"class","name":"payments.checkedGiftCode","type":"payments.CheckedGiftCode","id":675942550,"comment":"Contains info about a Telegram Premium giftcode link.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"via_giveaway","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this giftcode was created by a giveaway."},{"name":"from_id","type":"Peer","typeModifiers":{"predicate":"flags.4"},"comment":"The peer that created the gift code."},{"name":"giveaway_msg_id","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Message ID of the giveaway in the channel specified in from_id."},{"name":"to_id","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"The destination user of the gift."},{"name":"date","type":"int","comment":"Creation date of the gift code."},{"name":"months","type":"int","comment":"Duration in months of the gifted Telegram Premium subscription."},{"name":"used_date","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"When was the giftcode imported, if it was imported."},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"payments.giveawayInfo","type":"payments.GiveawayInfo","id":1130879648,"comment":"Contains info about an ongoing giveaway.\n\nIf neither the participating, joined_too_early_date, admin_disallowed_chat_id or disallowed_country flags are set, the user is not currently participating in the giveaway but could participate by joining all the channels specified in the {@link RawMessageMediaGiveaway}.channels field.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"participating","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"The current user is participating in the giveaway."},{"name":"preparing_results","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, the giveaway has ended and the results are being prepared."},{"name":"start_date","type":"int","comment":"When was the giveaway started"},{"name":"joined_too_early_date","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"The current user can't participate in the giveaway, because they were already a member of the channel when the giveaway started, and the only_new_subscribers was set when starting the giveaway."},{"name":"admin_disallowed_chat_id","type":"long","typeModifiers":{"predicate":"flags.2"},"comment":"If set, the current user can't participate in the giveaway, because they are an administrator in one of the channels (ID specified in this flag) that created the giveaway."},{"name":"disallowed_country","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"If set, the current user can't participate in this giveaway, because their phone number is from the specified disallowed country (specified as a two-letter ISO 3166-1 alpha-2 country code)."}]},{"kind":"class","name":"payments.giveawayInfoResults","type":"payments.GiveawayInfo","id":13456752,"comment":"A giveaway has ended.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"winner","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether we're one of the winners of this giveaway."},{"name":"refunded","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the giveaway was canceled and was fully refunded."},{"name":"start_date","type":"int","comment":"Start date of the giveaway"},{"name":"gift_code_slug","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"If we're one of the winners of this giveaway, contains the Premium gift code, see here ยป for more info on the full giveaway flow."},{"name":"finish_date","type":"int","comment":"End date of the giveaway. May be bigger than the end date specified in parameters of the giveaway."},{"name":"winners_count","type":"int","comment":"Number of winners in the giveaway"},{"name":"activated_count","type":"int","comment":"Number of winners, which activated their gift codes."}]},{"kind":"class","name":"prepaidGiveaway","type":"PrepaidGiveaway","id":2991824212,"comment":"Contains info about a prepaid giveaway ยป.","arguments":[{"name":"id","type":"long","comment":"Prepaid giveaway ID."},{"name":"months","type":"int","comment":"Duration in months of each gifted Telegram Premium subscription."},{"name":"quantity","type":"int","comment":"Number of given away Telegram Premium subscriptions."},{"name":"date","type":"int","comment":"Payment date."}]},{"kind":"class","name":"boost","type":"Boost","id":706514033,"comment":"Info about one or more boosts applied by a specific user.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"gift","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this boost was applied because the channel directly gifted a subscription to the user."},{"name":"giveaway","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether this boost was applied because the user was chosen in a giveaway started by the channel."},{"name":"unclaimed","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, the user hasn't yet invoked {@link payments.RawApplyGiftCodeRequest} to claim a subscription gifted directly or in a giveaway by the channel."},{"name":"id","type":"string","comment":"Unique ID for this set of boosts."},{"name":"user_id","type":"int53","typeModifiers":{"predicate":"flags.0"},"comment":"ID of the user that applied the boost."},{"name":"giveaway_msg_id","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"The message ID of the giveaway"},{"name":"date","type":"int","comment":"When was the boost applied"},{"name":"expires","type":"int","comment":"When does the boost expire"},{"name":"used_gift_slug","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"The created Telegram Premium gift code, only set if either gift or giveaway are set AND it is either a gift code for the currently logged in user or if it was already claimed."},{"name":"multiplier","type":"int","typeModifiers":{"predicate":"flags.5"},"comment":"If set, this boost counts as multiplier boosts, otherwise it counts as a single boost."}]},{"kind":"class","name":"premium.boostsList","type":"premium.BoostsList","id":2264424764,"comment":"List of boosts that were applied to a peer by multiple users.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"count","type":"int","comment":"Total number of results"},{"name":"boosts","type":"Boost","typeModifiers":{"isVector":true},"comment":"Boosts"},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Offset that can be used for pagination."},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"myBoost","type":"MyBoost","id":3293069660,"comment":"Contains information about a single boost slot ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"slot","type":"int","comment":"Boost slot ID ยป"},{"name":"peer","type":"Peer","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates this slot is currently occupied, i.e. we are boosting this peer.
Note that we can assign multiple boost slots to the same peer."},{"name":"date","type":"int","comment":"When (unixtime) we started boosting the peer, 0 otherwise."},{"name":"expires","type":"int","comment":"Indicates the (unixtime) expiration date of the boost in peer (0 if peer is not set)."},{"name":"cooldown_until_date","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"If peer is set, indicates the (unixtime) date after which this boost can be reassigned to another channel."}]},{"kind":"class","name":"premium.myBoosts","type":"premium.MyBoosts","id":2598512866,"comment":"A list of peers we are currently boosting, and how many boost slots we have left.","arguments":[{"name":"my_boosts","type":"MyBoost","typeModifiers":{"isVector":true},"comment":"Info about boosted peers and remaining boost slots."},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Referenced chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Referenced users"}]},{"kind":"class","name":"premium.boostsStatus","type":"premium.BoostsStatus","id":1230586490,"comment":"Contains info about the current boost status of a peer.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"my_boost","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether we're currently boosting this channel, my_boost_slots will also be set."},{"name":"level","type":"int","comment":"The current boost level of the channel."},{"name":"current_level_boosts","type":"int","comment":"The number of boosts acquired so far in the current level."},{"name":"boosts","type":"int","comment":"Total number of boosts acquired so far."},{"name":"gift_boosts","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"The number of boosts acquired from created Telegram Premium gift codes and giveaways; only returned to channel admins."},{"name":"next_level_boosts","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Total number of boosts needed to reach the next level; if absent, the next level isn't available."},{"name":"premium_audience","type":"StatsPercentValue","typeModifiers":{"predicate":"flags.1"},"comment":"Only returned to channel admins: contains the approximated number of Premium users subscribed to the channel, related to the total number of subscribers."},{"name":"boost_url","type":"string","comment":"Boost deep link ยป that can be used to boost the chat."},{"name":"prepaid_giveaways","type":"PrepaidGiveaway","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"A list of prepaid giveaways available for the chat; only returned to channel admins."},{"name":"my_boost_slots","type":"int","typeModifiers":{"predicate":"flags.2","isVector":true},"comment":"Indicates which of our boost slots we've assigned to this peer (populated if my_boost is set)."}]},{"kind":"class","name":"storyFwdHeader","type":"StoryFwdHeader","id":3089555792,"comment":"Contains info about the original poster of a reposted story.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"modified","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the story media was modified before reposting it (for example by overlaying a round video with a reaction)."},{"name":"from","type":"Peer","typeModifiers":{"predicate":"flags.0"},"comment":"Peer that originally posted the story; will be empty for stories forwarded from a user with forwards privacy enabled, in which case from_name will be set, instead."},{"name":"from_name","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Will be set for stories forwarded from a user with forwards privacy enabled, in which case from will also be empty."},{"name":"story_id","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":", contains the story ID"}]},{"kind":"class","name":"postInteractionCountersMessage","type":"PostInteractionCounters","id":3875901055,"comment":"Interaction counters for a message.","arguments":[{"name":"msg_id","type":"int","comment":"Message ID"},{"name":"views","type":"int","comment":"Number of views"},{"name":"forwards","type":"int","comment":"Number of forwards to public channels"},{"name":"reactions","type":"int","comment":"Number of reactions"}]},{"kind":"class","name":"postInteractionCountersStory","type":"PostInteractionCounters","id":2319978023,"comment":"Interaction counters for a story.","arguments":[{"name":"story_id","type":"int","comment":"Story ID"},{"name":"views","type":"int","comment":"Number of views"},{"name":"forwards","type":"int","comment":"Number of forwards and reposts to public chats and channels"},{"name":"reactions","type":"int","comment":"Number of reactions"}]},{"kind":"class","name":"stats.storyStats","type":"stats.StoryStats","id":1355613820,"comment":"Contains statistics about a story.","arguments":[{"name":"views_graph","type":"StatsGraph","comment":"A graph containing the number of story views and shares"},{"name":"reactions_by_emotion_graph","type":"StatsGraph","comment":"A bar graph containing the number of story reactions categorized by \"emotion\" (i.e. Positive, Negative, Other, etc...)"}]},{"kind":"class","name":"publicForwardMessage","type":"PublicForward","id":32685898,"comment":"Contains info about a forward of a story as a message.","arguments":[{"name":"message","type":"Message","comment":"Info about the message with the reposted story."}]},{"kind":"class","name":"publicForwardStory","type":"PublicForward","id":3992169936,"comment":"Contains info about a forward of a story as a repost by a public channel.","arguments":[{"name":"peer","type":"Peer","comment":"The channel that reposted the story."},{"name":"story","type":"StoryItem","comment":"The reposted story (may be different from the original story)."}]},{"kind":"class","name":"stats.publicForwards","type":"stats.PublicForwards","id":2466479648,"comment":"Contains info about the forwards of a story as a message to public chats and reposts by public channels.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"count","type":"int","comment":"Total number of results"},{"name":"forwards","type":"PublicForward","typeModifiers":{"isVector":true},"comment":"Info about the forwards of a story."},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Offset used for pagination."},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"peerColor","type":"PeerColor","id":3041614543,"comment":"Represents a color palette ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"color","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Color palette ID, see here ยป for more info; if not set, the default palette should be used."},{"name":"background_emoji_id","type":"long","typeModifiers":{"predicate":"flags.1"},"comment":"Optional custom emoji ID used to generate the pattern."}]},{"kind":"class","name":"help.peerColorSet","type":"help.PeerColorSet","id":639736408,"comment":"Represents a color palette that can be used in message accents ยป.","arguments":[{"name":"colors","type":"int","typeModifiers":{"isVector":true},"comment":"A list of 1-3 colors in RGB format, describing the accent color."}]},{"kind":"class","name":"help.peerColorProfileSet","type":"help.PeerColorSet","id":1987928555,"comment":"Represents a color palette that can be used in profile pages ยป.","arguments":[{"name":"palette_colors","type":"int","typeModifiers":{"isVector":true},"comment":"A list of 1-2 colors in RGB format, shown in the color palette settings to describe the current palette."},{"name":"bg_colors","type":"int","typeModifiers":{"isVector":true},"comment":"A list of 1-2 colors in RGB format describing the colors used to generate the actual background used in the profile page."},{"name":"story_colors","type":"int","typeModifiers":{"isVector":true},"comment":"A list of 2 colors in RGB format describing the colors of the gradient used for the unread active story indicator around the profile photo."}]},{"kind":"class","name":"help.peerColorOption","id":2917953214,"type":"help.PeerColorOption","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"hidden","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this palette should not be displayed as an option to the user when choosing a palette to apply to profile pages or message accents."},{"name":"color_id","type":"int","comment":"Palette ID."},{"name":"colors","type":"help.PeerColorSet","typeModifiers":{"predicate":"flags.1"},"comment":"Light mode palette.
Will be empty for IDs 0 to 6 inclusive, in which case a palette containing a single color from the following colors should be used: red, orange, violet, green, cyan, blue, pink for indexes 0 to 6."},{"name":"dark_colors","type":"help.PeerColorSet","typeModifiers":{"predicate":"flags.2"},"comment":"Dark mode palette. Optional, defaults to the palette in colors (or the autogenerated palette for IDs 0 to 6) if absent."},{"name":"channel_min_level","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Channels can use this palette only after reaching at least the boost level specified in this field."},{"name":"group_min_level","type":"int","typeModifiers":{"predicate":"flags.4"}}],"comment":"Contains info about a color palette ยป."},{"kind":"class","name":"help.peerColorsNotModified","type":"help.PeerColors","id":732034510,"comment":"The list of color palettes has not changed.","arguments":[]},{"kind":"class","name":"help.peerColors","type":"help.PeerColors","id":16313608,"comment":"Contains info about multiple color palettes ยป.","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"},{"name":"colors","type":"help.PeerColorOption","typeModifiers":{"isVector":true},"comment":"Usable color palettes."}]},{"kind":"class","name":"storyReaction","type":"StoryReaction","id":1620104917,"comment":"How a certain peer reacted to a story","arguments":[{"name":"peer_id","type":"Peer","comment":"The peer"},{"name":"date","type":"int","comment":"Reaction date"},{"name":"reaction","type":"Reaction","comment":"The reaction"}]},{"kind":"class","name":"storyReactionPublicForward","type":"StoryReaction","id":3148555843,"comment":"A certain peer has forwarded the story as a message to a public chat or channel.","arguments":[{"name":"message","type":"Message","comment":"The message with the forwarded story."}]},{"kind":"class","name":"storyReactionPublicRepost","type":"StoryReaction","id":3486322451,"comment":"A certain peer has reposted the story.","arguments":[{"name":"peer_id","type":"Peer","comment":"The peer that reposted the story."},{"name":"story","type":"StoryItem","comment":"The reposted story."}]},{"kind":"class","name":"stories.storyReactionsList","type":"stories.StoryReactionsList","id":2858383516,"comment":"List of peers that reacted to or intercated with a specific story","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"count","type":"int","comment":"Total number of reactions matching query"},{"name":"reactions","type":"StoryReaction","typeModifiers":{"isVector":true},"comment":"List of peers that reacted to or interacted with a specific story"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates the next offset to use to load more results by invoking {@link stories.RawGetStoryReactionsListRequest}."}]},{"kind":"class","name":"savedDialog","type":"SavedDialog","id":3179793260,"comment":"Represents a saved dialog ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Is the dialog pinned"},{"name":"peer","type":"Peer","comment":"The dialog"},{"name":"top_message","type":"int","comment":"The latest message ID"}]},{"kind":"class","name":"messages.savedDialogs","type":"messages.SavedDialogs","id":4164608545,"comment":"Represents some saved message dialogs ยป.","arguments":[{"name":"dialogs","type":"SavedDialog","typeModifiers":{"isVector":true},"comment":"Saved message dialogs ยป."},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"List of last messages from each saved dialog"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"messages.savedDialogsSlice","type":"messages.SavedDialogs","id":1153080793,"comment":"Incomplete list of saved message dialogs ยป with messages and auxiliary data.","arguments":[{"name":"count","type":"int","comment":"Total number of saved message dialogs"},{"name":"dialogs","type":"SavedDialog","typeModifiers":{"isVector":true},"comment":"List of saved message dialogs"},{"name":"messages","type":"Message","typeModifiers":{"isVector":true},"comment":"List of last messages from dialogs"},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true},"comment":"Mentioned chats"},{"name":"users","type":"User","typeModifiers":{"isVector":true},"comment":"Mentioned users"}]},{"kind":"class","name":"messages.savedDialogsNotModified","type":"messages.SavedDialogs","id":3223285736,"comment":"The saved dialogs haven't changed","arguments":[{"name":"count","type":"int","comment":"Number of saved dialogs found server-side by the query"}]},{"kind":"class","name":"savedReactionTag","type":"SavedReactionTag","id":3413112872,"arguments":[{"name":"flags","type":"#"},{"name":"reaction","type":"Reaction"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"count","type":"int"}]},{"kind":"class","name":"messages.savedReactionTagsNotModified","type":"messages.SavedReactionTags","id":2291882479,"arguments":[]},{"kind":"class","name":"messages.savedReactionTags","type":"messages.SavedReactionTags","id":844731658,"arguments":[{"name":"tags","type":"SavedReactionTag","typeModifiers":{"isVector":true}},{"name":"hash","type":"long"}]},{"kind":"class","name":"outboxReadDate","type":"OutboxReadDate","id":1001931436,"arguments":[{"name":"date","type":"int"}]},{"kind":"class","name":"smsjobs.eligibleToJoin","type":"smsjobs.EligibilityToJoin","id":3700114639,"arguments":[{"name":"terms_url","type":"string"},{"name":"monthly_sent_sms","type":"int"}]},{"kind":"class","name":"smsjobs.status","type":"smsjobs.Status","id":720277905,"arguments":[{"name":"flags","type":"#"},{"name":"allow_international","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"recent_sent","type":"int"},{"name":"recent_since","type":"int"},{"name":"recent_remains","type":"int"},{"name":"total_sent","type":"int"},{"name":"total_since","type":"int"},{"name":"last_gift_slug","type":"string","typeModifiers":{"predicate":"flags.1"}},{"name":"terms_url","type":"string"}]},{"kind":"class","name":"smsJob","type":"SmsJob","id":3869372088,"arguments":[{"name":"job_id","type":"string"},{"name":"phone_number","type":"string"},{"name":"text","type":"string"}]},{"kind":"class","name":"businessWeeklyOpen","type":"BusinessWeeklyOpen","id":302717625,"arguments":[{"name":"start_minute","type":"int"},{"name":"end_minute","type":"int"}]},{"kind":"class","name":"businessWorkHours","type":"BusinessWorkHours","id":2358423704,"arguments":[{"name":"flags","type":"#"},{"name":"open_now","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"timezone_id","type":"string"},{"name":"weekly_open","type":"BusinessWeeklyOpen","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"businessLocation","type":"BusinessLocation","id":2891717367,"arguments":[{"name":"flags","type":"#"},{"name":"geo_point","type":"GeoPoint","typeModifiers":{"predicate":"flags.0"}},{"name":"address","type":"string"}]},{"kind":"class","name":"inputBusinessRecipients","type":"InputBusinessRecipients","id":1871393450,"arguments":[{"name":"flags","type":"#"},{"name":"existing_chats","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"new_chats","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"contacts","type":"true","typeModifiers":{"predicate":"flags.2"}},{"name":"non_contacts","type":"true","typeModifiers":{"predicate":"flags.3"}},{"name":"exclude_selected","type":"true","typeModifiers":{"predicate":"flags.5"}},{"name":"users","type":"InputUser","typeModifiers":{"predicate":"flags.4","isVector":true}}]},{"kind":"class","name":"businessRecipients","type":"BusinessRecipients","id":554733559,"arguments":[{"name":"flags","type":"#"},{"name":"existing_chats","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"new_chats","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"contacts","type":"true","typeModifiers":{"predicate":"flags.2"}},{"name":"non_contacts","type":"true","typeModifiers":{"predicate":"flags.3"}},{"name":"exclude_selected","type":"true","typeModifiers":{"predicate":"flags.5"}},{"name":"users","type":"int53","typeModifiers":{"predicate":"flags.4","isVector":true}}]},{"kind":"class","name":"businessAwayMessageScheduleAlways","type":"BusinessAwayMessageSchedule","id":3384402617,"arguments":[]},{"kind":"class","name":"businessAwayMessageScheduleOutsideWorkHours","type":"BusinessAwayMessageSchedule","id":3287479553,"arguments":[]},{"kind":"class","name":"businessAwayMessageScheduleCustom","type":"BusinessAwayMessageSchedule","id":3427638988,"arguments":[{"name":"start_date","type":"int"},{"name":"end_date","type":"int"}]},{"kind":"class","name":"inputBusinessGreetingMessage","type":"InputBusinessGreetingMessage","id":26528571,"arguments":[{"name":"shortcut_id","type":"int"},{"name":"recipients","type":"InputBusinessRecipients"},{"name":"no_activity_days","type":"int"}]},{"kind":"class","name":"businessGreetingMessage","type":"BusinessGreetingMessage","id":3843664811,"arguments":[{"name":"shortcut_id","type":"int"},{"name":"recipients","type":"BusinessRecipients"},{"name":"no_activity_days","type":"int"}]},{"kind":"class","name":"inputBusinessAwayMessage","type":"InputBusinessAwayMessage","id":2200008160,"arguments":[{"name":"flags","type":"#"},{"name":"offline_only","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"shortcut_id","type":"int"},{"name":"schedule","type":"BusinessAwayMessageSchedule"},{"name":"recipients","type":"InputBusinessRecipients"}]},{"kind":"class","name":"businessAwayMessage","type":"BusinessAwayMessage","id":4011158108,"arguments":[{"name":"flags","type":"#"},{"name":"offline_only","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"shortcut_id","type":"int"},{"name":"schedule","type":"BusinessAwayMessageSchedule"},{"name":"recipients","type":"BusinessRecipients"}]},{"kind":"class","name":"timezone","type":"Timezone","id":4287793653,"arguments":[{"name":"id","type":"string"},{"name":"name","type":"string"},{"name":"utc_offset","type":"int"}]},{"kind":"class","name":"help.timezonesListNotModified","type":"help.TimezonesList","id":2533820620,"arguments":[]},{"kind":"class","name":"help.timezonesList","type":"help.TimezonesList","id":2071260529,"arguments":[{"name":"timezones","type":"Timezone","typeModifiers":{"isVector":true}},{"name":"hash","type":"int"}]},{"kind":"class","name":"quickReply","type":"QuickReply","id":110563371,"arguments":[{"name":"shortcut_id","type":"int"},{"name":"shortcut","type":"string"},{"name":"top_message","type":"int"},{"name":"count","type":"int"}]},{"kind":"class","name":"inputQuickReplyShortcut","type":"InputQuickReplyShortcut","id":609840449,"arguments":[{"name":"shortcut","type":"string"}]},{"kind":"class","name":"inputQuickReplyShortcutId","type":"InputQuickReplyShortcut","id":18418929,"arguments":[{"name":"shortcut_id","type":"int"}]},{"kind":"class","name":"messages.quickReplies","type":"messages.QuickReplies","id":3331155605,"arguments":[{"name":"quick_replies","type":"QuickReply","typeModifiers":{"isVector":true}},{"name":"messages","type":"Message","typeModifiers":{"isVector":true}},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true}},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"messages.quickRepliesNotModified","type":"messages.QuickReplies","id":1603398491,"arguments":[]},{"kind":"class","name":"connectedBot","type":"ConnectedBot","id":3171321345,"arguments":[{"name":"flags","type":"#"},{"name":"can_reply","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"bot_id","type":"int53"},{"name":"recipients","type":"BusinessBotRecipients"}]},{"kind":"class","name":"account.connectedBots","type":"account.ConnectedBots","id":400029819,"arguments":[{"name":"connected_bots","type":"ConnectedBot","typeModifiers":{"isVector":true}},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"messages.dialogFilters","type":"messages.DialogFilters","id":718878489,"arguments":[{"name":"flags","type":"#"},{"name":"tags_enabled","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"filters","type":"DialogFilter","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"birthday","type":"Birthday","id":1821253126,"arguments":[{"name":"flags","type":"#"},{"name":"day","type":"int"},{"name":"month","type":"int"},{"name":"year","type":"int","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"class","name":"botBusinessConnection","type":"BotBusinessConnection","id":2305045428,"arguments":[{"name":"flags","type":"#"},{"name":"can_reply","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"disabled","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"connection_id","type":"string"},{"name":"user_id","type":"int53"},{"name":"dc_id","type":"int"},{"name":"date","type":"int"}]},{"kind":"class","name":"inputBusinessIntro","type":"InputBusinessIntro","id":163867085,"arguments":[{"name":"flags","type":"#"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"sticker","type":"InputDocument","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"class","name":"businessIntro","type":"BusinessIntro","id":1510606445,"arguments":[{"name":"flags","type":"#"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"sticker","type":"Document","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"class","name":"messages.myStickers","type":"messages.MyStickers","id":4211040925,"arguments":[{"name":"count","type":"int"},{"name":"sets","type":"StickerSetCovered","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"inputCollectibleUsername","type":"InputCollectible","id":3818152105,"arguments":[{"name":"username","type":"string"}]},{"kind":"class","name":"inputCollectiblePhone","type":"InputCollectible","id":2732725412,"arguments":[{"name":"phone","type":"string"}]},{"kind":"class","name":"fragment.collectibleInfo","type":"fragment.CollectibleInfo","id":1857945489,"arguments":[{"name":"purchase_date","type":"int"},{"name":"currency","type":"string"},{"name":"amount","type":"long"},{"name":"crypto_currency","type":"string"},{"name":"crypto_amount","type":"long"},{"name":"url","type":"string"}]},{"kind":"class","name":"inputBusinessBotRecipients","type":"InputBusinessBotRecipients","id":3303379486,"arguments":[{"name":"flags","type":"#"},{"name":"existing_chats","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"new_chats","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"contacts","type":"true","typeModifiers":{"predicate":"flags.2"}},{"name":"non_contacts","type":"true","typeModifiers":{"predicate":"flags.3"}},{"name":"exclude_selected","type":"true","typeModifiers":{"predicate":"flags.5"}},{"name":"users","type":"InputUser","typeModifiers":{"predicate":"flags.4","isVector":true}},{"name":"exclude_users","type":"InputUser","typeModifiers":{"predicate":"flags.6","isVector":true}}]},{"kind":"class","name":"businessBotRecipients","type":"BusinessBotRecipients","id":3096245107,"arguments":[{"name":"flags","type":"#"},{"name":"existing_chats","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"new_chats","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"contacts","type":"true","typeModifiers":{"predicate":"flags.2"}},{"name":"non_contacts","type":"true","typeModifiers":{"predicate":"flags.3"}},{"name":"exclude_selected","type":"true","typeModifiers":{"predicate":"flags.5"}},{"name":"users","type":"int53","typeModifiers":{"predicate":"flags.4","isVector":true}},{"name":"exclude_users","type":"int53","typeModifiers":{"predicate":"flags.6","isVector":true}}]},{"kind":"class","name":"contactBirthday","type":"ContactBirthday","id":496600883,"arguments":[{"name":"contact_id","type":"int53"},{"name":"birthday","type":"Birthday"}]},{"kind":"class","name":"contacts.contactBirthdays","type":"contacts.ContactBirthdays","id":290452237,"arguments":[{"name":"contacts","type":"ContactBirthday","typeModifiers":{"isVector":true}},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"missingInvitee","type":"MissingInvitee","id":1653379620,"arguments":[{"name":"flags","type":"#"},{"name":"premium_would_allow_invite","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"premium_required_for_pm","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"user_id","type":"int53"}]},{"kind":"class","name":"messages.invitedUsers","type":"messages.InvitedUsers","id":2136862630,"arguments":[{"name":"updates","type":"Updates"},{"name":"missing_invitees","type":"MissingInvitee","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"inputBusinessChatLink","type":"InputBusinessChatLink","id":292003751,"arguments":[{"name":"flags","type":"#"},{"name":"message","type":"string"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.0","isVector":true}},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"}}]},{"kind":"class","name":"businessChatLink","type":"BusinessChatLink","id":3031328367,"arguments":[{"name":"flags","type":"#"},{"name":"link","type":"string"},{"name":"message","type":"string"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.0","isVector":true}},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"}},{"name":"views","type":"int"}]},{"kind":"class","name":"account.businessChatLinks","type":"account.BusinessChatLinks","id":3963855569,"arguments":[{"name":"links","type":"BusinessChatLink","typeModifiers":{"isVector":true}},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true}},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"account.resolvedBusinessChatLinks","type":"account.ResolvedBusinessChatLinks","id":2586029857,"arguments":[{"name":"flags","type":"#"},{"name":"peer","type":"Peer"},{"name":"message","type":"string"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.0","isVector":true}},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true}},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"requestedPeerUser","type":"RequestedPeer","id":3593466986,"arguments":[{"name":"flags","type":"#"},{"name":"user_id","type":"int53"},{"name":"first_name","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"last_name","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"username","type":"string","typeModifiers":{"predicate":"flags.1"}},{"name":"photo","type":"Photo","typeModifiers":{"predicate":"flags.2"}}]},{"kind":"class","name":"requestedPeerChat","type":"RequestedPeer","id":1929860175,"arguments":[{"name":"flags","type":"#"},{"name":"chat_id","type":"int53"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"photo","type":"Photo","typeModifiers":{"predicate":"flags.2"}}]},{"kind":"class","name":"requestedPeerChannel","type":"RequestedPeer","id":2342781924,"arguments":[{"name":"flags","type":"#"},{"name":"channel_id","type":"int53"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"username","type":"string","typeModifiers":{"predicate":"flags.1"}},{"name":"photo","type":"Photo","typeModifiers":{"predicate":"flags.2"}}]},{"kind":"class","name":"sponsoredMessageReportOption","type":"SponsoredMessageReportOption","id":1124938064,"arguments":[{"name":"text","type":"string"},{"name":"option","type":"bytes"}]},{"kind":"class","name":"channels.sponsoredMessageReportResultChooseOption","type":"channels.SponsoredMessageReportResult","id":2221907522,"arguments":[{"name":"title","type":"string"},{"name":"options","type":"SponsoredMessageReportOption","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"channels.sponsoredMessageReportResultAdsHidden","type":"channels.SponsoredMessageReportResult","id":1044107055,"arguments":[]},{"kind":"class","name":"channels.sponsoredMessageReportResultReported","type":"channels.SponsoredMessageReportResult","id":2910423113,"arguments":[]},{"kind":"class","name":"stats.broadcastRevenueStats","type":"stats.BroadcastRevenueStats","id":1409802903,"arguments":[{"name":"top_hours_graph","type":"StatsGraph"},{"name":"revenue_graph","type":"StatsGraph"},{"name":"balances","type":"BroadcastRevenueBalances"},{"name":"usd_rate","type":"double"}]},{"kind":"class","name":"stats.broadcastRevenueWithdrawalUrl","type":"stats.BroadcastRevenueWithdrawalUrl","id":3966080823,"arguments":[{"name":"url","type":"string"}]},{"kind":"class","name":"broadcastRevenueTransactionProceeds","type":"BroadcastRevenueTransaction","id":1434332356,"arguments":[{"name":"amount","type":"long"},{"name":"from_date","type":"int"},{"name":"to_date","type":"int"}]},{"kind":"class","name":"broadcastRevenueTransactionWithdrawal","type":"BroadcastRevenueTransaction","id":1515784568,"arguments":[{"name":"flags","type":"#"},{"name":"pending","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"failed","type":"true","typeModifiers":{"predicate":"flags.2"}},{"name":"amount","type":"long"},{"name":"date","type":"int"},{"name":"provider","type":"string"},{"name":"transaction_date","type":"int","typeModifiers":{"predicate":"flags.1"}},{"name":"transaction_url","type":"string","typeModifiers":{"predicate":"flags.1"}}]},{"kind":"class","name":"broadcastRevenueTransactionRefund","type":"BroadcastRevenueTransaction","id":1121127726,"arguments":[{"name":"amount","type":"long"},{"name":"date","type":"int"},{"name":"provider","type":"string"}]},{"kind":"class","name":"stats.broadcastRevenueTransactions","type":"stats.BroadcastRevenueTransactions","id":2266334310,"arguments":[{"name":"count","type":"int"},{"name":"transactions","type":"BroadcastRevenueTransaction","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"reactionNotificationsFromContacts","type":"ReactionNotificationsFrom","id":3133384218,"arguments":[]},{"kind":"class","name":"reactionNotificationsFromAll","type":"ReactionNotificationsFrom","id":1268654752,"arguments":[]},{"kind":"class","name":"reactionsNotifySettings","type":"ReactionsNotifySettings","id":1457736048,"arguments":[{"name":"flags","type":"#"},{"name":"messages_notify_from","type":"ReactionNotificationsFrom","typeModifiers":{"predicate":"flags.0"}},{"name":"stories_notify_from","type":"ReactionNotificationsFrom","typeModifiers":{"predicate":"flags.1"}},{"name":"sound","type":"NotificationSound"},{"name":"show_previews","type":"Bool"}]},{"kind":"class","name":"broadcastRevenueBalances","type":"BroadcastRevenueBalances","id":2218324422,"arguments":[{"name":"current_balance","type":"long"},{"name":"available_balance","type":"long"},{"name":"overall_revenue","type":"long"}]},{"kind":"class","name":"availableEffect","type":"AvailableEffect","id":2479088254,"arguments":[{"name":"flags","type":"#"},{"name":"premium_required","type":"true","typeModifiers":{"predicate":"flags.2"}},{"name":"id","type":"long"},{"name":"emoticon","type":"string"},{"name":"static_icon_id","type":"long","typeModifiers":{"predicate":"flags.0"}},{"name":"effect_sticker_id","type":"long"},{"name":"effect_animation_id","type":"long","typeModifiers":{"predicate":"flags.1"}}]},{"kind":"class","name":"messages.availableEffectsNotModified","type":"messages.AvailableEffects","id":3522009691,"arguments":[]},{"kind":"class","name":"messages.availableEffects","type":"messages.AvailableEffects","id":3185271150,"arguments":[{"name":"hash","type":"int"},{"name":"effects","type":"AvailableEffect","typeModifiers":{"isVector":true}},{"name":"documents","type":"Document","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"factCheck","type":"FactCheck","id":3097230543,"arguments":[{"name":"flags","type":"#"},{"name":"need_check","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"country","type":"string","typeModifiers":{"predicate":"flags.1"}},{"name":"text","type":"TextWithEntities","typeModifiers":{"predicate":"flags.1"}},{"name":"hash","type":"long"}]},{"kind":"class","name":"starsTransactionPeerUnsupported","type":"StarsTransactionPeer","id":2515714020,"arguments":[]},{"kind":"class","name":"starsTransactionPeerAppStore","type":"StarsTransactionPeer","id":3025646453,"arguments":[]},{"kind":"class","name":"starsTransactionPeerPlayMarket","type":"StarsTransactionPeer","id":2069236235,"arguments":[]},{"kind":"class","name":"starsTransactionPeerPremiumBot","type":"StarsTransactionPeer","id":621656824,"arguments":[]},{"kind":"class","name":"starsTransactionPeerFragment","type":"StarsTransactionPeer","id":3912227074,"arguments":[]},{"kind":"class","name":"starsTransactionPeer","type":"StarsTransactionPeer","id":3624771933,"arguments":[{"name":"peer","type":"Peer"}]},{"kind":"class","name":"starsTopupOption","type":"StarsTopupOption","id":198776256,"arguments":[{"name":"flags","type":"#"},{"name":"extended","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"stars","type":"long"},{"name":"store_product","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"currency","type":"string"},{"name":"amount","type":"long"}]},{"kind":"class","name":"starsTransaction","id":2852178072,"type":"StarsTransaction","arguments":[{"name":"flags","type":"#"},{"name":"refund","type":"true","typeModifiers":{"predicate":"flags.3"}},{"name":"pending","type":"true","typeModifiers":{"predicate":"flags.4"}},{"name":"failed","type":"true","typeModifiers":{"predicate":"flags.6"}},{"name":"id","type":"string"},{"name":"stars","type":"long"},{"name":"date","type":"int"},{"name":"peer","type":"StarsTransactionPeer"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.1"}},{"name":"photo","type":"WebDocument","typeModifiers":{"predicate":"flags.2"}},{"name":"transaction_date","type":"int","typeModifiers":{"predicate":"flags.5"}},{"name":"transaction_url","type":"string","typeModifiers":{"predicate":"flags.5"}}]},{"kind":"class","name":"payments.starsStatus","type":"payments.StarsStatus","id":2364862048,"arguments":[{"name":"flags","type":"#"},{"name":"balance","type":"long"},{"name":"history","type":"StarsTransaction","typeModifiers":{"isVector":true}},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true}},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"foundStory","id":3900361664,"type":"FoundStory","arguments":[{"name":"peer","type":"Peer"},{"name":"story","type":"StoryItem"}]},{"kind":"class","name":"stories.foundStories","id":3806230327,"type":"stories.FoundStories","arguments":[{"name":"flags","type":"#"},{"name":"count","type":"int"},{"name":"stories","type":"FoundStory","typeModifiers":{"isVector":true}},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"chats","type":"Chat","typeModifiers":{"isVector":true}},{"name":"users","type":"User","typeModifiers":{"isVector":true}}]},{"kind":"class","name":"geoPointAddress","id":3729546643,"type":"GeoPointAddress","arguments":[{"name":"flags","type":"#"},{"name":"country_iso2","type":"string"},{"name":"state","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"city","type":"string","typeModifiers":{"predicate":"flags.1"}},{"name":"street","type":"string","typeModifiers":{"predicate":"flags.2"}}]},{"kind":"class","name":"starsRevenueStatus","id":2033461574,"type":"StarsRevenueStatus","arguments":[{"name":"flags","type":"#"},{"name":"withdrawal_enabled","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"current_balance","type":"long"},{"name":"available_balance","type":"long"},{"name":"overall_revenue","type":"long"},{"name":"next_withdrawal_at","type":"int","typeModifiers":{"predicate":"flags.1"}}]},{"kind":"class","name":"payments.starsRevenueStats","id":3375085371,"type":"payments.StarsRevenueStats","arguments":[{"name":"revenue_graph","type":"StatsGraph"},{"name":"status","type":"StarsRevenueStatus"},{"name":"usd_rate","type":"double"}]},{"kind":"class","name":"payments.starsRevenueWithdrawalUrl","id":497778871,"type":"payments.StarsRevenueWithdrawalUrl","arguments":[{"name":"url","type":"string"}]},{"kind":"class","name":"updateGroupInvitePrivacyForbidden","type":"Update","id":3438316246,"comment":"0-N updates of this type may be returned only when invoking {@link messages.RawAddChatUserRequest}, {@link channels.RawInviteToChannelRequest} or {@link messages.RawCreateChatRequest}: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link can be shared with the user, instead.","arguments":[{"name":"user_id","type":"int53","comment":"ID of the user we couldn't add."}]},{"kind":"class","name":"sponsoredWebPage","type":"SponsoredWebPage","id":1035529315,"comment":"Represents a sponsored website.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"url","type":"string","comment":"Web page URL."},{"name":"site_name","type":"string","comment":"Website name."},{"name":"photo","type":"Photo","typeModifiers":{"predicate":"flags.0"},"comment":"Optional image preview."}]},{"kind":"class","name":"mtcute.dummyUpdate","id":614906126,"type":"Update","arguments":[{"name":"pts","type":"int"},{"name":"pts_count","type":"int"},{"name":"channel_id","type":"int53"}]},{"kind":"class","name":"mtcute.dummyInputPeerMinUser","id":2240546338,"type":"InputPeer","arguments":[{"name":"user_id","type":"int"}]},{"kind":"class","name":"mtcute.dummyInputPeerMinChannel","id":1796171926,"type":"InputPeer","arguments":[{"name":"channel_id","type":"int"}]},{"kind":"method","name":"test.useConfigSimple","id":4189565501,"type":"help.ConfigSimple","arguments":[],"typeModifiers":{"constructorId":1515793004}},{"kind":"method","name":"test.parseInputAppEvent","id":3138226161,"type":"InputAppEvent","arguments":[],"typeModifiers":{"constructorId":488313413}},{"kind":"method","name":"invokeWithBusinessConnectionPrefix","id":3710427022,"type":"Error","arguments":[{"name":"connection_id","type":"string"}],"typeModifiers":{"constructorId":3300522427}},{"kind":"method","name":"invokeWithGooglePlayIntegrityPrefix","id":502868356,"type":"Error","arguments":[{"name":"nonce","type":"string"},{"name":"token","type":"string"}],"typeModifiers":{"constructorId":3300522427}},{"kind":"method","name":"invokeWithApnsSecretPrefix","id":229528824,"type":"Error","arguments":[{"name":"nonce","type":"string"},{"name":"secret","type":"string"}],"typeModifiers":{"constructorId":3300522427}},{"kind":"method","name":"invokeAfterMsg","type":"X","id":3416209197,"comment":"Invokes a query after successful completion of one of the previous queries.","generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"msg_id","type":"long","comment":"Message identifier on which a current query depends"},{"name":"query","type":"!X","comment":"The query itself"}],"available":"both"},{"kind":"method","name":"invokeAfterMsgs","type":"X","id":1036301552,"comment":"Invokes a query after a successful completion of previous queries","generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"msg_ids","type":"long","typeModifiers":{"isVector":true},"comment":"List of messages on which a current query depends"},{"name":"query","type":"!X","comment":"The query itself"}],"available":"both"},{"kind":"method","name":"initConnection","type":"X","id":3251461801,"comment":"Initialize connection","generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"api_id","type":"int","comment":"Application identifier (see. App configuration)"},{"name":"device_model","type":"string","comment":"Device model"},{"name":"system_version","type":"string","comment":"Operation system version"},{"name":"app_version","type":"string","comment":"Application version"},{"name":"system_lang_code","type":"string","comment":"Code for the language used on the device's OS, ISO 639-1 standard"},{"name":"lang_pack","type":"string","comment":"Language pack to use"},{"name":"lang_code","type":"string","comment":"Code for the language used on the client, ISO 639-1 standard"},{"name":"proxy","type":"InputClientProxy","typeModifiers":{"predicate":"flags.0"},"comment":"Info about an MTProto proxy"},{"name":"params","type":"JSONValue","typeModifiers":{"predicate":"flags.1"},"comment":"Additional initConnection parameters.
For now, only the tz_offset field is supported, for specifying timezone offset in seconds."},{"name":"query","type":"!X","comment":"The query itself"}],"throws":[{"code":400,"name":"CONNECTION_LAYER_INVALID","comment":"Layer invalid."}],"available":"both"},{"kind":"method","name":"invokeWithLayer","type":"X","id":3667594509,"comment":"Invoke the specified query using the specified API layer","generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"layer","type":"int","comment":"The layer to use"},{"name":"query","type":"!X","comment":"The query"}],"throws":[{"code":400,"name":"AUTH_BYTES_INVALID","comment":"The provided authorization is invalid."},{"code":400,"name":"CDN_METHOD_INVALID","comment":"You can't call this method in a CDN DC."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"CONNECTION_API_ID_INVALID","comment":"The provided API id is invalid."},{"code":406,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."}],"available":"both"},{"kind":"method","name":"invokeWithoutUpdates","type":"X","id":3214170551,"comment":"Invoke a request without subscribing the used connection for updates (this is enabled by default for file queries).","generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"query","type":"!X","comment":"The query"}],"available":"both"},{"kind":"method","name":"invokeWithMessagesRange","type":"X","id":911373810,"comment":"Invoke with the given message range","generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"range","type":"MessageRange","comment":"Message range"},{"name":"query","type":"!X","comment":"Query"}],"available":"both"},{"kind":"method","name":"invokeWithTakeout","type":"X","id":2896821550,"comment":"Invoke a method within a takeout session, see here ยป for more info.","generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"takeout_id","type":"long","comment":"Takeout session ID ยป"},{"name":"query","type":"!X","comment":"Query"}],"available":"both"},{"kind":"method","name":"invokeWithBusinessConnection","type":"X","id":3710427022,"generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"connection_id","type":"string"},{"name":"query","type":"!X"}]},{"kind":"method","name":"invokeWithGooglePlayIntegrity","type":"X","id":502868356,"generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"nonce","type":"string"},{"name":"token","type":"string"},{"name":"query","type":"!X"}]},{"kind":"method","name":"invokeWithApnsSecret","type":"X","id":229528824,"generics":[{"name":"X","type":"Type"}],"arguments":[{"name":"nonce","type":"string"},{"name":"secret","type":"string"},{"name":"query","type":"!X"}]},{"kind":"method","name":"auth.sendCode","type":"auth.SentCode","id":2792825935,"comment":"Send the verification code for login","arguments":[{"name":"phone_number","type":"string","comment":"Phone number in international format"},{"name":"api_id","type":"int","comment":"Application identifier (see App configuration)"},{"name":"api_hash","type":"string","comment":"Application secret hash (see App configuration)"},{"name":"settings","type":"CodeSettings","comment":"Settings for the code type to send"}],"throws":[{"code":400,"name":"API_ID_INVALID","comment":"API ID invalid."},{"code":400,"name":"API_ID_PUBLISHED_FLOOD","comment":"This API id was published somewhere, you can't use it now."},{"code":500,"name":"AUTH_RESTART","comment":"Restart the authorization process."},{"code":400,"name":"PHONE_NUMBER_APP_SIGNUP_FORBIDDEN","comment":"You can't sign up using this app."},{"code":400,"name":"PHONE_NUMBER_BANNED","comment":"The provided phone number is banned from telegram."},{"code":400,"name":"PHONE_NUMBER_FLOOD","comment":"You asked for the code too many times."},{"code":406,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."},{"code":406,"name":"PHONE_PASSWORD_FLOOD","comment":"You have tried logging in too many times."},{"code":400,"name":"PHONE_PASSWORD_PROTECTED","comment":"This phone is password protected."},{"code":400,"name":"SMS_CODE_CREATE_FAILED","comment":"An error occurred while creating the SMS code."}],"available":"user"},{"kind":"method","name":"auth.signUp","id":2865215255,"type":"auth.Authorization","arguments":[{"name":"flags","type":"#"},{"name":"no_joined_notifications","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"phone_number","type":"string","comment":"Phone number in the international format"},{"name":"phone_code_hash","type":"string","comment":"SMS-message ID"},{"name":"first_name","type":"string","comment":"New user first name"},{"name":"last_name","type":"string","comment":"New user last name"}],"comment":"Registers a validated phone number in the system.","throws":[{"code":400,"name":"FIRSTNAME_INVALID","comment":"The first name is invalid."},{"code":400,"name":"LASTNAME_INVALID","comment":"The last name is invalid."},{"code":400,"name":"PHONE_CODE_EMPTY","comment":"phone_code is missing."},{"code":400,"name":"PHONE_CODE_EXPIRED","comment":"The phone code you provided has expired."},{"code":400,"name":"PHONE_CODE_INVALID","comment":"The provided phone code is invalid."},{"code":400,"name":"PHONE_NUMBER_FLOOD","comment":"You asked for the code too many times."},{"code":406,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."},{"code":400,"name":"PHONE_NUMBER_OCCUPIED","comment":"The phone number is already in use."}],"available":"user"},{"kind":"method","name":"auth.signIn","type":"auth.Authorization","id":2371004753,"comment":"Signs in a user with a validated phone number.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"phone_number","type":"string","comment":"Phone number in the international format"},{"name":"phone_code_hash","type":"string","comment":"SMS-message ID, obtained from {@link auth.RawSendCodeRequest}"},{"name":"phone_code","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Valid numerical code from the SMS-message"},{"name":"email_verification","type":"EmailVerification","typeModifiers":{"predicate":"flags.1"},"comment":"Email verification code or token"}],"throws":[{"code":500,"name":"AUTH_RESTART","comment":"Restart the authorization process."},{"code":400,"name":"PHONE_CODE_EMPTY","comment":"phone_code is missing."},{"code":400,"name":"PHONE_CODE_EXPIRED","comment":"The phone code you provided has expired."},{"code":400,"name":"PHONE_CODE_INVALID","comment":"The provided phone code is invalid."},{"code":406,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."},{"code":400,"name":"PHONE_NUMBER_UNOCCUPIED","comment":"The phone number is not yet being used."},{"code":500,"name":"SIGN_IN_FAILED","comment":"Failure while signing in."}],"available":"user"},{"kind":"method","name":"auth.logOut","type":"auth.LoggedOut","typeModifiers":{"constructorId":3282207583},"id":1047706137,"comment":"Logs out the user.","arguments":[],"available":"both"},{"kind":"method","name":"auth.resetAuthorizations","type":"Bool","id":2678787354,"comment":"Terminates all user's authorized sessions except for the current one.\n\nAfter calling this method it is necessary to reregister the current device using the method {@link account.RawRegisterDeviceRequest}","arguments":[],"throws":[{"code":406,"name":"FRESH_RESET_AUTHORISATION_FORBIDDEN","comment":"You can't logout other sessions if less than 24 hours have passed since you logged on the current session."}],"available":"user"},{"kind":"method","name":"auth.exportAuthorization","type":"auth.ExportedAuthorization","typeModifiers":{"constructorId":3023364792},"id":3854565325,"comment":"Returns data for copying authorization to another data-center.","arguments":[{"name":"dc_id","type":"int","comment":"Number of a target data-center"}],"throws":[{"code":400,"name":"DC_ID_INVALID","comment":"The provided DC ID is invalid."}],"available":"both"},{"kind":"method","name":"auth.importAuthorization","type":"auth.Authorization","id":2776268205,"comment":"Logs in a user using a key transmitted from their native data-center.","arguments":[{"name":"id","type":"long","comment":"User ID"},{"name":"bytes","type":"bytes","comment":"Authorization key"}],"throws":[{"code":400,"name":"AUTH_BYTES_INVALID","comment":"The provided authorization is invalid."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"both"},{"kind":"method","name":"auth.bindTempAuthKey","type":"Bool","id":3453233669,"comment":"Binds a temporary authorization key temp_auth_key_id to the permanent authorization key perm_auth_key_id. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one.\n\nFor more information, see Perfect Forward Secrecy.","arguments":[{"name":"perm_auth_key_id","type":"long","comment":"Permanent auth_key_id to bind to"},{"name":"nonce","type":"long","comment":"Random long from Binding message contents"},{"name":"expires_at","type":"int","comment":"UNIX timestamp in seconds to invalidate temporary key, see Binding message contents"},{"name":"encrypted_message","type":"bytes","comment":"See Generating encrypted_message"}],"throws":[{"code":400,"name":"ENCRYPTED_MESSAGE_INVALID","comment":"Encrypted message invalid."},{"code":400,"name":"TEMP_AUTH_KEY_ALREADY_BOUND","comment":"The passed temporary key is already bound to another perm_auth_key_id."},{"code":400,"name":"TEMP_AUTH_KEY_EMPTY","comment":"No temporary auth key provided."}],"available":"both"},{"kind":"method","name":"auth.importBotAuthorization","type":"auth.Authorization","id":1738800940,"comment":"Login as a bot","arguments":[{"name":"flags","type":"int","comment":"Reserved for future use"},{"name":"api_id","type":"int","comment":"Application identifier (see. App configuration)"},{"name":"api_hash","type":"string","comment":"Application identifier hash (see. App configuration)"},{"name":"bot_auth_token","type":"string","comment":"Bot token (see bots)"}],"throws":[{"code":400,"name":"ACCESS_TOKEN_EXPIRED","comment":"Access token expired."},{"code":400,"name":"ACCESS_TOKEN_INVALID","comment":"Access token invalid."},{"code":400,"name":"API_ID_INVALID","comment":"API ID invalid."},{"code":400,"name":"API_ID_PUBLISHED_FLOOD","comment":"This API id was published somewhere, you can't use it now."}],"available":"both"},{"kind":"method","name":"auth.checkPassword","type":"auth.Authorization","id":3515567382,"comment":"Try logging to an account protected by a 2FA password.","arguments":[{"name":"password","type":"InputCheckPasswordSRP","comment":"The account's password (see SRP)"}],"throws":[{"code":400,"name":"PASSWORD_HASH_INVALID","comment":"The provided password hash is invalid."},{"code":400,"name":"SRP_ID_INVALID","comment":"Invalid SRP ID provided."},{"code":400,"name":"SRP_PASSWORD_CHANGED","comment":"Password has changed."}],"available":"user"},{"kind":"method","name":"auth.requestPasswordRecovery","type":"auth.PasswordRecovery","typeModifiers":{"constructorId":326715557},"id":3633822822,"comment":"Request recovery code of a 2FA password, only for accounts with a recovery email configured.","arguments":[],"throws":[{"code":400,"name":"PASSWORD_EMPTY","comment":"The provided password is empty."},{"code":400,"name":"PASSWORD_RECOVERY_NA","comment":"No email was set, can't recover password via email."}],"available":"user"},{"kind":"method","name":"auth.recoverPassword","type":"auth.Authorization","id":923364464,"comment":"Reset the 2FA password using the recovery code sent using {@link auth.RawRequestPasswordRecoveryRequest}.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"code","type":"string","comment":"Code received via email"},{"name":"new_settings","type":"account.PasswordInputSettings","typeModifiers":{"predicate":"flags.0"},"comment":"New password"}],"throws":[{"code":400,"name":"CODE_EMPTY","comment":"The provided code is empty."},{"code":400,"name":"NEW_SETTINGS_INVALID","comment":"The new password settings are invalid."}],"available":"user"},{"kind":"method","name":"auth.resendCode","id":3403969827,"type":"auth.SentCode","arguments":[{"name":"flags","type":"#"},{"name":"phone_number","type":"string","comment":"The phone number"},{"name":"phone_code_hash","type":"string","comment":"The phone code hash obtained from {@link auth.RawSendCodeRequest}"},{"name":"reason","type":"string","typeModifiers":{"predicate":"flags.0"}}],"comment":"Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see login for more info.","throws":[{"code":400,"name":"PHONE_CODE_EMPTY","comment":"phone_code is missing."},{"code":400,"name":"PHONE_CODE_EXPIRED","comment":"The phone code you provided has expired."},{"code":400,"name":"PHONE_CODE_HASH_EMPTY","comment":"phone_code_hash is missing."},{"code":406,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."},{"code":406,"name":"SEND_CODE_UNAVAILABLE","comment":"Returned when all available options for this type of number were already used (e.g. flash-call, then SMS, then this error might be returned to trigger a second resend)."}],"available":"user"},{"kind":"method","name":"auth.cancelCode","type":"Bool","id":520357240,"comment":"Cancel the login verification code","arguments":[{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"phone_code_hash","type":"string","comment":"Phone code hash from {@link auth.RawSendCodeRequest}"}],"throws":[{"code":400,"name":"PHONE_CODE_EXPIRED","comment":"The phone code you provided has expired."},{"code":406,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."}],"available":"user"},{"kind":"method","name":"auth.dropTempAuthKeys","type":"Bool","id":2387124616,"comment":"Delete all temporary authorization keys except for the ones specified","arguments":[{"name":"except_auth_keys","type":"long","typeModifiers":{"isVector":true},"comment":"The auth keys that shouldn't be dropped."}],"available":"both"},{"kind":"method","name":"auth.exportLoginToken","type":"auth.LoginToken","id":3084944894,"comment":"Generate a login token, for login via QR code.
\nThe generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken deep link ยป in the QR code.\n\nFor more info, see login via QR code.","arguments":[{"name":"api_id","type":"int","comment":"Application identifier (see. App configuration)"},{"name":"api_hash","type":"string","comment":"Application identifier hash (see. App configuration)"},{"name":"except_ids","type":"long","typeModifiers":{"isVector":true},"comment":"List of already logged-in user IDs, to prevent logging in twice with the same user"}],"throws":[{"code":400,"name":"API_ID_INVALID","comment":"API ID invalid."},{"code":400,"name":"API_ID_PUBLISHED_FLOOD","comment":"This API id was published somewhere, you can't use it now."}],"available":"user"},{"kind":"method","name":"auth.importLoginToken","type":"auth.LoginToken","id":2511101156,"comment":"Login using a redirected login token, generated in case of DC mismatch during QR code login.\n\nFor more info, see login via QR code.","arguments":[{"name":"token","type":"bytes","comment":"Login token"}],"throws":[{"code":400,"name":"AUTH_TOKEN_ALREADY_ACCEPTED","comment":"The specified auth token was already accepted."},{"code":400,"name":"AUTH_TOKEN_EXPIRED","comment":"The authorization token has expired."},{"code":400,"name":"AUTH_TOKEN_INVALID","comment":"The specified auth token is invalid."},{"code":400,"name":"AUTH_TOKEN_INVALIDX","comment":"The specified auth token is invalid."}],"available":"user"},{"kind":"method","name":"auth.acceptLoginToken","type":"Authorization","typeModifiers":{"constructorId":2902578717},"id":3902057805,"comment":"Accept QR code login token, logging in the app that generated it.\n\nReturns info about the new session.\n\nFor more info, see login via QR code.","arguments":[{"name":"token","type":"bytes","comment":"Login token embedded in QR code, for more info, see login via QR code."}],"throws":[{"code":400,"name":"AUTH_TOKEN_ALREADY_ACCEPTED","comment":"The specified auth token was already accepted."},{"code":400,"name":"AUTH_TOKEN_EXCEPTION","comment":"An error occurred while importing the auth token."},{"code":400,"name":"AUTH_TOKEN_EXPIRED","comment":"The authorization token has expired."},{"code":400,"name":"AUTH_TOKEN_INVALIDX","comment":"The specified auth token is invalid."}],"available":"user"},{"kind":"method","name":"auth.checkRecoveryPassword","type":"Bool","id":221691769,"comment":"Check if the 2FA recovery code sent using {@link auth.RawRequestPasswordRecoveryRequest} is valid, before passing it to {@link auth.RawRecoverPasswordRequest}.","arguments":[{"name":"code","type":"string","comment":"Code received via email"}],"throws":[{"code":400,"name":"PASSWORD_RECOVERY_EXPIRED","comment":"The recovery code has expired."}],"available":"user"},{"kind":"method","name":"auth.importWebTokenAuthorization","type":"auth.Authorization","id":767062953,"comment":"Login by importing an authorization token","arguments":[{"name":"api_id","type":"int","comment":"API ID"},{"name":"api_hash","type":"string","comment":"API hash"},{"name":"web_auth_token","type":"string","comment":"The authorization token"}],"throws":[{"code":400,"name":"API_ID_INVALID","comment":"API ID invalid."}],"available":"user"},{"kind":"method","name":"auth.requestFirebaseSms","id":2386109982,"type":"Bool","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"phone_code_hash","type":"string","comment":"Phone code hash returned by {@link auth.RawSendCodeRequest}"},{"name":"safety_net_token","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"On Android, a JWS object obtained as described in the auth documentation ยป"},{"name":"play_integrity_token","type":"string","typeModifiers":{"predicate":"flags.2"}},{"name":"ios_push_secret","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Secret token received via an apple push notification"}],"comment":"Request an SMS code via Firebase.","throws":[{"code":400,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."}],"available":"user"},{"kind":"method","name":"auth.resetLoginEmail","type":"auth.SentCode","id":2123760019,"comment":"Reset the login email ยป.","arguments":[{"name":"phone_number","type":"string","comment":"Phone number of the account"},{"name":"phone_code_hash","type":"string","comment":"Phone code hash, obtained as described in the documentation ยป"}],"throws":[{"code":400,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."},{"code":400,"name":"TASK_ALREADY_EXISTS","comment":"An email reset was already requested."}],"available":"user"},{"kind":"method","name":"auth.reportMissingCode","type":"Bool","id":3416125430,"arguments":[{"name":"phone_number","type":"string"},{"name":"phone_code_hash","type":"string"},{"name":"mnc","type":"string"}]},{"kind":"method","name":"account.registerDevice","type":"Bool","id":3968205178,"comment":"Register device to receive PUSH notifications","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"no_muted","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Avoid receiving (silent and invisible background) notifications. Useful to save battery."},{"name":"token_type","type":"int","comment":"Device token type, see PUSH updates for the possible values."},{"name":"token","type":"string","comment":"Device token, see PUSH updates for the possible values."},{"name":"app_sandbox","type":"Bool","comment":"If true is transmitted, a sandbox-certificate will be used during transmission."},{"name":"secret","type":"bytes","comment":"For FCM and APNS VoIP, optional encryption key used to encrypt push notifications"},{"name":"other_uids","type":"int53","typeModifiers":{"isVector":true},"comment":"List of user identifiers of other users currently using the client"}],"throws":[{"code":400,"name":"TOKEN_EMPTY","comment":"The specified token is empty."},{"code":400,"name":"TOKEN_INVALID","comment":"The provided token is invalid."},{"code":400,"name":"TOKEN_TYPE_INVALID","comment":"The specified token type is invalid."},{"code":400,"name":"WEBPUSH_AUTH_INVALID","comment":"The specified web push authentication secret is invalid."},{"code":400,"name":"WEBPUSH_KEY_INVALID","comment":"The specified web push elliptic curve Diffie-Hellman public key is invalid."},{"code":400,"name":"WEBPUSH_TOKEN_INVALID","comment":"The specified web push token is invalid."}],"available":"user"},{"kind":"method","name":"account.unregisterDevice","type":"Bool","id":1779249670,"comment":"Deletes a device by its token, stops sending PUSH-notifications to it.","arguments":[{"name":"token_type","type":"int","comment":"Device token type, see PUSH updates for the possible values."},{"name":"token","type":"string","comment":"Device token, see PUSH updates for the possible values."},{"name":"other_uids","type":"int53","typeModifiers":{"isVector":true},"comment":"List of user identifiers of other users currently using the client"}],"throws":[{"code":400,"name":"TOKEN_INVALID","comment":"The provided token is invalid."}],"available":"user"},{"kind":"method","name":"account.updateNotifySettings","type":"Bool","id":2227067795,"comment":"Edits notification settings from a given user/group, from all users/all groups.","arguments":[{"name":"peer","type":"InputNotifyPeer","comment":"Notification source"},{"name":"settings","type":"InputPeerNotifySettings","comment":"Notification settings"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"SETTINGS_INVALID","comment":"Invalid settings were provided."}],"available":"user"},{"kind":"method","name":"account.getNotifySettings","type":"PeerNotifySettings","typeModifiers":{"constructorId":2573347852},"id":313765169,"comment":"Gets current notification settings for a given user/group, from all users/all groups.","arguments":[{"name":"peer","type":"InputNotifyPeer","comment":"Notification source"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"account.resetNotifySettings","type":"Bool","id":3682473799,"comment":"Resets all notification settings from users and groups.","arguments":[],"available":"user"},{"kind":"method","name":"account.updateProfile","type":"User","id":2018596725,"comment":"Updates user profile.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"first_name","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"New user first name"},{"name":"last_name","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"New user last name"},{"name":"about","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"New bio"}],"throws":[{"code":400,"name":"ABOUT_TOO_LONG","comment":"About string too long."},{"code":400,"name":"FIRSTNAME_INVALID","comment":"The first name is invalid."}],"available":"user"},{"kind":"method","name":"account.updateStatus","type":"Bool","id":1713919532,"comment":"Updates online user status.","arguments":[{"name":"offline","type":"Bool","comment":"If true is transmitted, user status will change to {@link RawUserStatusOffline}."}],"available":"user"},{"kind":"method","name":"account.getWallPapers","type":"account.WallPapers","id":127302966,"comment":"Returns a list of available wallpapers.","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.reportPeer","type":"Bool","id":3317316998,"comment":"Report a peer for violation of telegram's Terms of Service","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer to report"},{"name":"reason","type":"ReportReason","comment":"The reason why this peer is being reported"},{"name":"message","type":"string","comment":"Comment for report moderation"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"account.checkUsername","type":"Bool","id":655677548,"comment":"Validates a username and checks availability.","arguments":[{"name":"username","type":"string","comment":"username
Accepted characters: A-z (case-insensitive), 0-9 and underscores.
Length: 5-32 characters."}],"throws":[{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."},{"code":400,"name":"USERNAME_OCCUPIED","comment":"The provided username is already occupied."},{"code":400,"name":"USERNAME_PURCHASE_AVAILABLE","comment":"The specified username can be purchased on https://fragment.com."}],"available":"user"},{"kind":"method","name":"account.updateUsername","type":"User","id":1040964988,"comment":"Changes username for the current user.","arguments":[{"name":"username","type":"string","comment":"username or empty string if username is to be removed
Accepted characters: a-z (case-insensitive), 0-9 and underscores.
Length: 5-32 characters."}],"throws":[{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."},{"code":400,"name":"USERNAME_NOT_MODIFIED","comment":"The username was not modified."},{"code":400,"name":"USERNAME_OCCUPIED","comment":"The provided username is already occupied."},{"code":400,"name":"USERNAME_PURCHASE_AVAILABLE","comment":"The specified username can be purchased on https://fragment.com."}],"available":"user"},{"kind":"method","name":"account.getPrivacy","type":"account.PrivacyRules","typeModifiers":{"constructorId":1352683077},"id":3671837008,"comment":"Get privacy settings of current account","arguments":[{"name":"key","type":"InputPrivacyKey","comment":"Peer category whose privacy settings should be fetched"}],"throws":[{"code":400,"name":"PRIVACY_KEY_INVALID","comment":"The privacy key is invalid."}],"available":"user"},{"kind":"method","name":"account.setPrivacy","type":"account.PrivacyRules","typeModifiers":{"constructorId":1352683077},"id":3388480744,"comment":"Change privacy settings of current account","arguments":[{"name":"key","type":"InputPrivacyKey","comment":"New privacy rule"},{"name":"rules","type":"InputPrivacyRule","typeModifiers":{"isVector":true},"comment":"Peers to which the privacy rule will apply."}],"throws":[{"code":400,"name":"PRIVACY_KEY_INVALID","comment":"The privacy key is invalid."},{"code":400,"name":"PRIVACY_TOO_LONG","comment":"Too many privacy rules were specified, the current limit is 1000."},{"code":400,"name":"PRIVACY_VALUE_INVALID","comment":"The specified privacy rule combination is invalid."}],"available":"user"},{"kind":"method","name":"account.deleteAccount","type":"Bool","id":2730545012,"comment":"Delete the user's account from the telegram servers.\n\nCan also be used to delete the account of a user that provided the login code, but forgot the 2FA password and no recovery method is configured, see here ยป for more info on password recovery, and here ยป for more info on account deletion.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"reason","type":"string","comment":"Why is the account being deleted, can be empty"},{"name":"password","type":"InputCheckPasswordSRP","typeModifiers":{"predicate":"flags.0"},"comment":"2FA password: this field can be omitted even for accounts with 2FA enabled: in this case account account deletion will be delayed by 7 days as specified in the docs ยป"}],"throws":[{"code":420,"name":"2FA_CONFIRM_WAIT_%d","comment":"Since this account is active and protected by a 2FA password, we will delete it in 1 week for security purposes. You can cancel this process at any time, you'll be able to reset your account in %d seconds."}],"available":"user"},{"kind":"method","name":"account.getAccountTTL","type":"AccountDaysTTL","typeModifiers":{"constructorId":3100684255},"id":150761757,"comment":"Get days to live of account","arguments":[],"available":"user"},{"kind":"method","name":"account.setAccountTTL","type":"Bool","id":608323678,"comment":"Set account self-destruction period","arguments":[{"name":"ttl","type":"AccountDaysTTL","comment":"Time to live in days"}],"throws":[{"code":400,"name":"TTL_DAYS_INVALID","comment":"The provided TTL is invalid."}],"available":"user"},{"kind":"method","name":"account.sendChangePhoneCode","type":"auth.SentCode","id":2186758885,"comment":"Verify a new phone number to associate to the current account","arguments":[{"name":"phone_number","type":"string","comment":"New phone number"},{"name":"settings","type":"CodeSettings","comment":"Phone code settings"}],"throws":[{"code":406,"name":"FRESH_CHANGE_PHONE_FORBIDDEN","comment":"You can't change phone number right after logging in, please wait at least 24 hours."},{"code":400,"name":"PHONE_NUMBER_BANNED","comment":"The provided phone number is banned from telegram."},{"code":406,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."},{"code":400,"name":"PHONE_NUMBER_OCCUPIED","comment":"The phone number is already in use."}],"available":"user"},{"kind":"method","name":"account.changePhone","type":"User","id":1891839707,"comment":"Change the phone number of the current account","arguments":[{"name":"phone_number","type":"string","comment":"New phone number"},{"name":"phone_code_hash","type":"string","comment":"Phone code hash received when calling {@link account.RawSendChangePhoneCodeRequest}"},{"name":"phone_code","type":"string","comment":"Phone code received when calling {@link account.RawSendChangePhoneCodeRequest}"}],"throws":[{"code":400,"name":"PHONE_CODE_EMPTY","comment":"phone_code is missing."},{"code":400,"name":"PHONE_CODE_EXPIRED","comment":"The phone code you provided has expired."},{"code":406,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."},{"code":400,"name":"PHONE_NUMBER_OCCUPIED","comment":"The phone number is already in use."}],"available":"user"},{"kind":"method","name":"account.updateDeviceLocked","type":"Bool","id":954152242,"comment":"When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications.","arguments":[{"name":"period","type":"int","comment":"Inactivity period after which to start hiding message texts in PUSH notifications."}],"available":"user"},{"kind":"method","name":"account.getAuthorizations","type":"account.Authorizations","typeModifiers":{"constructorId":1275039392},"id":3810574680,"comment":"Get logged-in sessions","arguments":[],"available":"user"},{"kind":"method","name":"account.resetAuthorization","type":"Bool","id":3749180348,"comment":"Log out an active authorized session by its hash","arguments":[{"name":"hash","type":"long","comment":"Session hash"}],"throws":[{"code":406,"name":"FRESH_RESET_AUTHORISATION_FORBIDDEN","comment":"You can't logout other sessions if less than 24 hours have passed since you logged on the current session."},{"code":400,"name":"HASH_INVALID","comment":"The provided hash is invalid."}],"available":"user"},{"kind":"method","name":"account.getPassword","type":"account.Password","typeModifiers":{"constructorId":2507886843},"id":1418342645,"comment":"Obtain configuration for two-factor authorization with password","arguments":[],"available":"user"},{"kind":"method","name":"account.getPasswordSettings","type":"account.PasswordSettings","typeModifiers":{"constructorId":2589733861},"id":2631199481,"comment":"Get private info associated to the password info (recovery email, telegram passport info & so on)","arguments":[{"name":"password","type":"InputCheckPasswordSRP","comment":"The password (see SRP)"}],"throws":[{"code":400,"name":"PASSWORD_HASH_INVALID","comment":"The provided password hash is invalid."}],"available":"user"},{"kind":"method","name":"account.updatePasswordSettings","type":"Bool","id":2778402863,"comment":"Set a new 2FA password","arguments":[{"name":"password","type":"InputCheckPasswordSRP","comment":"The old password (see SRP)"},{"name":"new_settings","type":"account.PasswordInputSettings","comment":"The new password (see SRP)"}],"throws":[{"code":400,"name":"EMAIL_INVALID","comment":"The specified email is invalid."},{"code":400,"name":"EMAIL_UNCONFIRMED","comment":"Email unconfirmed."},{"code":400,"name":"EMAIL_UNCONFIRMED_%d","comment":"The provided email isn't confirmed, %d is the length of the verification code that was just sent to the email: use {@link account.RawVerifyEmailRequest} to enter the received verification code and enable the recovery email."},{"code":400,"name":"NEW_SALT_INVALID","comment":"The new salt is invalid."},{"code":400,"name":"NEW_SETTINGS_EMPTY","comment":"No password is set on the current account, and no new password was specified in new_settings."},{"code":400,"name":"NEW_SETTINGS_INVALID","comment":"The new password settings are invalid."},{"code":400,"name":"PASSWORD_HASH_INVALID","comment":"The provided password hash is invalid."},{"code":400,"name":"SRP_ID_INVALID","comment":"Invalid SRP ID provided."},{"code":400,"name":"SRP_PASSWORD_CHANGED","comment":"Password has changed."}],"available":"user"},{"kind":"method","name":"account.sendConfirmPhoneCode","type":"auth.SentCode","id":457157256,"comment":"Send confirmation code to cancel account deletion, for more info click here ยป","arguments":[{"name":"hash","type":"string","comment":"The hash from the service notification, for more info click here ยป"},{"name":"settings","type":"CodeSettings","comment":"Phone code settings"}],"throws":[{"code":400,"name":"HASH_INVALID","comment":"The provided hash is invalid."}],"available":"user"},{"kind":"method","name":"account.confirmPhone","type":"Bool","id":1596029123,"comment":"Confirm a phone number to cancel account deletion, for more info click here ยป","arguments":[{"name":"phone_code_hash","type":"string","comment":"Phone code hash, for more info click here ยป"},{"name":"phone_code","type":"string","comment":"SMS code, for more info click here ยป"}],"throws":[{"code":400,"name":"CODE_HASH_INVALID","comment":"Code hash invalid."},{"code":400,"name":"PHONE_CODE_EMPTY","comment":"phone_code is missing."}],"available":"user"},{"kind":"method","name":"account.getTmpPassword","type":"account.TmpPassword","typeModifiers":{"constructorId":3680828724},"id":1151208273,"comment":"Get temporary payment password","arguments":[{"name":"password","type":"InputCheckPasswordSRP","comment":"SRP password parameters"},{"name":"period","type":"int","comment":"Time during which the temporary password will be valid, in seconds; should be between 60 and 86400"}],"throws":[{"code":400,"name":"PASSWORD_HASH_INVALID","comment":"The provided password hash is invalid."},{"code":400,"name":"TMP_PASSWORD_DISABLED","comment":"The temporary password is disabled."}],"available":"user"},{"kind":"method","name":"account.getWebAuthorizations","type":"account.WebAuthorizations","typeModifiers":{"constructorId":3981887996},"id":405695855,"comment":"Get web login widget authorizations","arguments":[],"available":"user"},{"kind":"method","name":"account.resetWebAuthorization","type":"Bool","id":755087855,"comment":"Log out an active web telegram login session","arguments":[{"name":"hash","type":"long","comment":"{@link RawWebAuthorization} hash"}],"throws":[{"code":400,"name":"HASH_INVALID","comment":"The provided hash is invalid."}],"available":"user"},{"kind":"method","name":"account.resetWebAuthorizations","type":"Bool","id":1747789204,"comment":"Reset all active web telegram login sessions","arguments":[],"available":"user"},{"kind":"method","name":"account.getAllSecureValues","type":"SecureValue","typeModifiers":{"isVector":true,"constructorId":411017418},"id":2995305597,"comment":"Get all saved Telegram Passport documents, for more info see the passport docs ยป","arguments":[],"available":"user"},{"kind":"method","name":"account.getSecureValue","type":"SecureValue","typeModifiers":{"isVector":true,"constructorId":411017418},"id":1936088002,"comment":"Get saved Telegram Passport document, for more info see the passport docs ยป","arguments":[{"name":"types","type":"SecureValueType","typeModifiers":{"isVector":true},"comment":"Requested value types"}],"available":"user"},{"kind":"method","name":"account.saveSecureValue","type":"SecureValue","typeModifiers":{"constructorId":411017418},"id":2308956957,"comment":"Securely save Telegram Passport document, for more info see the passport docs ยป","arguments":[{"name":"value","type":"InputSecureValue","comment":"Secure value, for more info see the passport docs ยป"},{"name":"secure_secret_id","type":"long","comment":"Passport secret hash, for more info see the passport docs ยป"}],"throws":[{"code":400,"name":"PASSWORD_REQUIRED","comment":"A 2FA password must be configured to use Telegram Passport."}],"available":"user"},{"kind":"method","name":"account.deleteSecureValue","type":"Bool","id":3095444555,"comment":"Delete stored Telegram Passport documents, for more info see the passport docs ยป","arguments":[{"name":"types","type":"SecureValueType","typeModifiers":{"isVector":true},"comment":"Document types to delete"}],"available":"user"},{"kind":"method","name":"account.getAuthorizationForm","type":"account.AuthorizationForm","typeModifiers":{"constructorId":2905480408},"id":2838059386,"comment":"Returns a Telegram Passport authorization form for sharing data with a service","arguments":[{"name":"bot_id","type":"int53","comment":"User identifier of the service's bot"},{"name":"scope","type":"string","comment":"Telegram Passport element types requested by the service"},{"name":"public_key","type":"string","comment":"Service's public key"}],"throws":[{"code":400,"name":"PUBLIC_KEY_REQUIRED","comment":"A public key is required."}],"available":"user"},{"kind":"method","name":"account.acceptAuthorization","type":"Bool","id":4092415091,"comment":"Sends a Telegram Passport authorization form, effectively sharing data with the service","arguments":[{"name":"bot_id","type":"int53","comment":"Bot ID"},{"name":"scope","type":"string","comment":"Telegram Passport element types requested by the service"},{"name":"public_key","type":"string","comment":"Service's public key"},{"name":"value_hashes","type":"SecureValueHash","typeModifiers":{"isVector":true},"comment":"Types of values sent and their hashes"},{"name":"credentials","type":"SecureCredentialsEncrypted","comment":"Encrypted values"}],"available":"user"},{"kind":"method","name":"account.sendVerifyPhoneCode","type":"auth.SentCode","id":2778945273,"comment":"Send the verification phone code for telegram passport.","arguments":[{"name":"phone_number","type":"string","comment":"The phone number to verify"},{"name":"settings","type":"CodeSettings","comment":"Phone code settings"}],"throws":[{"code":400,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."}],"available":"user"},{"kind":"method","name":"account.verifyPhone","type":"Bool","id":1305716726,"comment":"Verify a phone number for telegram passport.","arguments":[{"name":"phone_number","type":"string","comment":"Phone number"},{"name":"phone_code_hash","type":"string","comment":"Phone code hash received from the call to {@link account.RawSendVerifyPhoneCodeRequest}"},{"name":"phone_code","type":"string","comment":"Code received after the call to {@link account.RawSendVerifyPhoneCodeRequest}"}],"throws":[{"code":400,"name":"PHONE_CODE_EMPTY","comment":"phone_code is missing."},{"code":400,"name":"PHONE_CODE_EXPIRED","comment":"The phone code you provided has expired."},{"code":400,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."}],"available":"user"},{"kind":"method","name":"account.sendVerifyEmailCode","type":"account.SentEmailCode","typeModifiers":{"constructorId":2166326607},"id":2564831163,"comment":"Send an email verification code.","arguments":[{"name":"purpose","type":"EmailVerifyPurpose","comment":"Verification purpose."},{"name":"email","type":"string","comment":"The email where to send the code."}],"throws":[{"code":400,"name":"EMAIL_INVALID","comment":"The specified email is invalid."},{"code":400,"name":"EMAIL_NOT_SETUP","comment":"In order to change the login email with emailVerifyPurposeLoginChange, an existing login email must already be set using emailVerifyPurposeLoginSetup."},{"code":400,"name":"PHONE_HASH_EXPIRED","comment":"An invalid or expired phone_code_hash was provided."},{"code":400,"name":"PHONE_NUMBER_INVALID","comment":"The phone number is invalid."}],"available":"user"},{"kind":"method","name":"account.verifyEmail","type":"account.EmailVerified","id":53322959,"comment":"Verify an email address.","arguments":[{"name":"purpose","type":"EmailVerifyPurpose","comment":"Verification purpose"},{"name":"verification","type":"EmailVerification","comment":"Email verification code or token"}],"throws":[{"code":400,"name":"EMAIL_INVALID","comment":"The specified email is invalid."},{"code":400,"name":"EMAIL_VERIFY_EXPIRED","comment":"The verification email has expired."}],"available":"user"},{"kind":"method","name":"account.initTakeoutSession","type":"account.Takeout","typeModifiers":{"constructorId":1304052993},"id":2398350000,"comment":"Initialize a takeout session, see here ยป for more info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"contacts","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to export contacts"},{"name":"message_users","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to export messages in private chats"},{"name":"message_chats","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to export messages in basic groups"},{"name":"message_megagroups","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether to export messages in supergroups"},{"name":"message_channels","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether to export messages in channels"},{"name":"files","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether to export files"},{"name":"file_max_size","type":"int53","typeModifiers":{"predicate":"flags.5"},"comment":"Maximum size of files to export"}],"throws":[{"code":420,"name":"TAKEOUT_INIT_DELAY_%d","comment":"Sorry, for security reasons, you will be able to begin downloading your data in %d seconds. We have notified all your devices about the export request to make sure it's authorized and to give you time to react if it's not."}],"available":"user"},{"kind":"method","name":"account.finishTakeoutSession","type":"Bool","id":489050862,"comment":"Terminate a takeout session, see here ยป for more info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"success","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Data exported successfully"}],"throws":[{"code":403,"name":"TAKEOUT_REQUIRED","comment":"A takeout session needs to be initialized first, see here ยป for more info."}],"available":"user"},{"kind":"method","name":"account.confirmPasswordEmail","type":"Bool","id":2413762848,"comment":"Verify an email to use as 2FA recovery method.","arguments":[{"name":"code","type":"string","comment":"The phone code that was received after setting a recovery email"}],"throws":[{"code":400,"name":"CODE_INVALID","comment":"Code invalid."},{"code":400,"name":"EMAIL_HASH_EXPIRED","comment":"Email hash expired."}],"available":"user"},{"kind":"method","name":"account.resendPasswordEmail","type":"Bool","id":2055154197,"comment":"Resend the code to verify an email to use as 2FA recovery method.","arguments":[],"throws":[{"code":400,"name":"EMAIL_HASH_EXPIRED","comment":"Email hash expired."}],"available":"user"},{"kind":"method","name":"account.cancelPasswordEmail","type":"Bool","id":3251361206,"comment":"Cancel the code that was sent to verify an email to use as 2FA recovery method.","arguments":[],"throws":[{"code":400,"name":"EMAIL_HASH_EXPIRED","comment":"Email hash expired."}],"available":"user"},{"kind":"method","name":"account.getContactSignUpNotification","type":"Bool","id":2668087080,"comment":"Whether the user will receive notifications when contacts sign up","arguments":[],"available":"user"},{"kind":"method","name":"account.setContactSignUpNotification","type":"Bool","id":3488890721,"comment":"Toggle contact sign up notifications","arguments":[{"name":"silent","type":"Bool","comment":"Whether to disable contact sign up notifications"}],"available":"user"},{"kind":"method","name":"account.getNotifyExceptions","type":"Updates","id":1398240377,"comment":"Returns list of chats with non-default notification settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"compare_sound","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set, chats with non-default sound will be returned"},{"name":"compare_stories","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, chats with non-default notification settings for stories will be returned"},{"name":"peer","type":"InputNotifyPeer","typeModifiers":{"predicate":"flags.0"},"comment":"If specified, only chats of the specified category will be returned"}],"available":"user"},{"kind":"method","name":"account.getWallPaper","type":"WallPaper","id":4237155306,"comment":"Get info about a certain wallpaper","arguments":[{"name":"wallpaper","type":"InputWallPaper","comment":"The wallpaper to get info about"}],"throws":[{"code":400,"name":"WALLPAPER_INVALID","comment":"The specified wallpaper is invalid."}],"available":"user"},{"kind":"method","name":"account.uploadWallPaper","type":"WallPaper","id":3818557187,"comment":"Create and upload a new wallpaper","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"for_chat","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set this flag when uploading wallpapers to be passed to {@link messages.RawSetChatWallPaperRequest}."},{"name":"file","type":"InputFile","comment":"The JPG/PNG wallpaper"},{"name":"mime_type","type":"string","comment":"MIME type of uploaded wallpaper"},{"name":"settings","type":"WallPaperSettings","comment":"Wallpaper settings"}],"throws":[{"code":400,"name":"WALLPAPER_FILE_INVALID","comment":"The specified wallpaper file is invalid."},{"code":400,"name":"WALLPAPER_MIME_INVALID","comment":"The specified wallpaper MIME type is invalid."}],"available":"user"},{"kind":"method","name":"account.saveWallPaper","type":"Bool","id":1817860919,"comment":"Install/uninstall wallpaper","arguments":[{"name":"wallpaper","type":"InputWallPaper","comment":"Wallpaper to install or uninstall"},{"name":"unsave","type":"Bool","comment":"Uninstall wallpaper?"},{"name":"settings","type":"WallPaperSettings","comment":"Wallpaper settings"}],"throws":[{"code":400,"name":"WALLPAPER_INVALID","comment":"The specified wallpaper is invalid."}],"available":"user"},{"kind":"method","name":"account.installWallPaper","type":"Bool","id":4276967273,"comment":"Install wallpaper","arguments":[{"name":"wallpaper","type":"InputWallPaper","comment":"Wallpaper to install"},{"name":"settings","type":"WallPaperSettings","comment":"Wallpaper settings"}],"throws":[{"code":400,"name":"WALLPAPER_INVALID","comment":"The specified wallpaper is invalid."}],"available":"user"},{"kind":"method","name":"account.resetWallPapers","type":"Bool","id":3141244932,"comment":"Delete all installed wallpapers, reverting to the default wallpaper set.","arguments":[],"available":"user"},{"kind":"method","name":"account.getAutoDownloadSettings","type":"account.AutoDownloadSettings","typeModifiers":{"constructorId":1674235686},"id":1457130303,"comment":"Get media autodownload settings","arguments":[],"available":"user"},{"kind":"method","name":"account.saveAutoDownloadSettings","type":"Bool","id":1995661875,"comment":"Change media autodownload settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"low","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to save media in the low data usage preset"},{"name":"high","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to save media in the high data usage preset"},{"name":"settings","type":"AutoDownloadSettings","comment":"Media autodownload settings"}],"available":"user"},{"kind":"method","name":"account.uploadTheme","type":"Document","id":473805619,"comment":"Upload theme","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"file","type":"InputFile","comment":"Previously uploaded theme file with platform-specific colors for UI components, can be left unset when creating themes that only modify the wallpaper or accent colors."},{"name":"thumb","type":"InputFile","typeModifiers":{"predicate":"flags.0"},"comment":"Thumbnail"},{"name":"file_name","type":"string","comment":"File name"},{"name":"mime_type","type":"string","comment":"MIME type, must be application/x-tgtheme-{format}, where format depends on the client"}],"throws":[{"code":400,"name":"THEME_FILE_INVALID","comment":"Invalid theme file provided."}],"available":"user"},{"kind":"method","name":"account.createTheme","type":"Theme","typeModifiers":{"constructorId":2685298646},"id":1697530880,"comment":"Create a theme","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"slug","type":"string","comment":"Unique theme ID used to generate theme deep links, can be empty to autogenerate a random ID."},{"name":"title","type":"string","comment":"Theme name"},{"name":"document","type":"InputDocument","typeModifiers":{"predicate":"flags.2"},"comment":"Theme file"},{"name":"settings","type":"InputThemeSettings","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Theme settings, multiple values can be provided for the different base themes (day/night mode, etc)."}],"throws":[{"code":400,"name":"THEME_MIME_INVALID","comment":"The theme's MIME type is invalid."},{"code":400,"name":"THEME_TITLE_INVALID","comment":"The specified theme title is invalid."}],"available":"user"},{"kind":"method","name":"account.updateTheme","type":"Theme","typeModifiers":{"constructorId":2685298646},"id":737414348,"comment":"Update theme","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"format","type":"string","comment":"Theme format, a string that identifies the theming engines supported by the client"},{"name":"theme","type":"InputTheme","comment":"Theme to update"},{"name":"slug","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Unique theme ID"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Theme name"},{"name":"document","type":"InputDocument","typeModifiers":{"predicate":"flags.2"},"comment":"Theme file"},{"name":"settings","type":"InputThemeSettings","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Theme settings"}],"throws":[{"code":400,"name":"THEME_INVALID","comment":"Invalid theme provided."}],"available":"user"},{"kind":"method","name":"account.saveTheme","type":"Bool","id":4065792108,"comment":"Save a theme","arguments":[{"name":"theme","type":"InputTheme","comment":"Theme to save"},{"name":"unsave","type":"Bool","comment":"Unsave"}],"available":"user"},{"kind":"method","name":"account.installTheme","type":"Bool","id":3341269819,"comment":"Install a theme","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to install the dark version"},{"name":"theme","type":"InputTheme","typeModifiers":{"predicate":"flags.1"},"comment":"Theme to install"},{"name":"format","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Theme format, a string that identifies the theming engines supported by the client"},{"name":"base_theme","type":"BaseTheme","typeModifiers":{"predicate":"flags.3"},"comment":"Indicates a basic theme provided by all clients"}],"available":"user"},{"kind":"method","name":"account.getTheme","type":"Theme","typeModifiers":{"constructorId":2685298646},"id":978872812,"comment":"Get theme information","arguments":[{"name":"format","type":"string","comment":"Theme format, a string that identifies the theming engines supported by the client"},{"name":"theme","type":"InputTheme","comment":"Theme"}],"throws":[{"code":400,"name":"THEME_FORMAT_INVALID","comment":"Invalid theme format provided."},{"code":400,"name":"THEME_INVALID","comment":"Invalid theme provided."}],"available":"user"},{"kind":"method","name":"account.getThemes","type":"account.Themes","id":1913054296,"comment":"Get installed themes","arguments":[{"name":"format","type":"string","comment":"Theme format, a string that identifies the theming engines supported by the client"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.setContentSettings","type":"Bool","id":3044323691,"comment":"Set sensitive content settings (for viewing or hiding NSFW content)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"sensitive_enabled","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Enable NSFW content"}],"throws":[{"code":403,"name":"SENSITIVE_CHANGE_FORBIDDEN","comment":"You can't change your sensitive content settings."}],"available":"user"},{"kind":"method","name":"account.getContentSettings","type":"account.ContentSettings","typeModifiers":{"constructorId":1474462241},"id":2342210990,"comment":"Get sensitive content settings","arguments":[],"available":"user"},{"kind":"method","name":"account.getMultiWallPapers","type":"WallPaper","typeModifiers":{"isVector":true},"id":1705865692,"comment":"Get info about multiple wallpapers","arguments":[{"name":"wallpapers","type":"InputWallPaper","typeModifiers":{"isVector":true},"comment":"Wallpapers to fetch info about"}],"throws":[{"code":400,"name":"WALLPAPER_INVALID","comment":"The specified wallpaper is invalid."}],"available":"user"},{"kind":"method","name":"account.getGlobalPrivacySettings","type":"GlobalPrivacySettings","typeModifiers":{"constructorId":1934380235},"id":3945483510,"comment":"Get global privacy settings","arguments":[],"available":"user"},{"kind":"method","name":"account.setGlobalPrivacySettings","type":"GlobalPrivacySettings","typeModifiers":{"constructorId":1934380235},"id":517647042,"comment":"Set global privacy settings","arguments":[{"name":"settings","type":"GlobalPrivacySettings","comment":"Global privacy settings"}],"throws":[{"code":400,"name":"AUTOARCHIVE_NOT_AVAILABLE","comment":"The autoarchive setting is not available at this time: please check the value of the autoarchive_setting_available field in client config ยป before calling this method."}],"available":"user"},{"kind":"method","name":"account.reportProfilePhoto","type":"Bool","id":4203529973,"comment":"Report a profile photo of a dialog","arguments":[{"name":"peer","type":"InputPeer","comment":"The dialog"},{"name":"photo_id","type":"InputPhoto","comment":"Dialog photo ID"},{"name":"reason","type":"ReportReason","comment":"Report reason"},{"name":"message","type":"string","comment":"Comment for report moderation"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"account.resetPassword","type":"account.ResetPasswordResult","id":2466827803,"comment":"Initiate a 2FA password reset: can only be used if the user is already logged-in, see here for more info ยป","arguments":[],"throws":[{"code":400,"name":"PASSWORD_EMPTY","comment":"The provided password is empty."}],"available":"user"},{"kind":"method","name":"account.declinePasswordReset","type":"Bool","id":1284770294,"comment":"Abort a pending 2FA password reset, see here for more info ยป","arguments":[],"throws":[{"code":400,"name":"RESET_REQUEST_MISSING","comment":"No password reset is in progress."}],"available":"user"},{"kind":"method","name":"account.getChatThemes","type":"account.Themes","id":3594051209,"comment":"Get all available chat themes ยป.","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.setAuthorizationTTL","type":"Bool","id":3213466272,"comment":"Set time-to-live of current session","arguments":[{"name":"authorization_ttl_days","type":"int","comment":"Time-to-live of current session in days"}],"throws":[{"code":406,"name":"FRESH_RESET_AUTHORISATION_FORBIDDEN","comment":"You can't logout other sessions if less than 24 hours have passed since you logged on the current session."},{"code":400,"name":"TTL_DAYS_INVALID","comment":"The provided TTL is invalid."}],"available":"user"},{"kind":"method","name":"account.changeAuthorizationSettings","type":"Bool","id":1089766498,"comment":"Change settings related to a session.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"confirmed","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, confirms a newly logged in session ยป."},{"name":"hash","type":"long","comment":"Session ID from the {@link RawAuthorization} constructor, fetchable using {@link account.RawGetAuthorizationsRequest}"},{"name":"encrypted_requests_disabled","type":"Bool","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to enable or disable receiving encrypted chats: if the flag is not set, the previous setting is not changed"},{"name":"call_requests_disabled","type":"Bool","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to enable or disable receiving calls: if the flag is not set, the previous setting is not changed"}],"throws":[{"code":400,"name":"HASH_INVALID","comment":"The provided hash is invalid."}],"available":"user"},{"kind":"method","name":"account.getSavedRingtones","type":"account.SavedRingtones","id":3784319624,"comment":"Fetch saved notification sounds","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.saveRingtone","type":"account.SavedRingtone","id":1038768899,"comment":"Save or remove saved notification sound.\n\nIf the notification sound is already in MP3 format, {@link account.RawSavedRingtone} will be returned.
\nOtherwise, it will be automatically converted and a {@link account.RawSavedRingtoneConverted} will be returned, containing a new {@link RawDocument} object that should be used to refer to the ringtone from now on (ie when deleting it using the unsave parameter, or when downloading it).","arguments":[{"name":"id","type":"InputDocument","comment":"Notification sound uploaded using {@link account.RawUploadRingtoneRequest}"},{"name":"unsave","type":"Bool","comment":"Whether to add or delete the notification sound"}],"available":"user"},{"kind":"method","name":"account.uploadRingtone","type":"Document","id":2199552930,"comment":"Upload notification sound, use {@link account.RawSaveRingtoneRequest} to convert it and add it to the list of saved notification sounds.","arguments":[{"name":"file","type":"InputFile","comment":"Notification sound"},{"name":"file_name","type":"string","comment":"File name"},{"name":"mime_type","type":"string","comment":"MIME type of file"}],"available":"user"},{"kind":"method","name":"account.updateEmojiStatus","type":"Bool","id":4224966251,"comment":"Set an emoji status","arguments":[{"name":"emoji_status","type":"EmojiStatus","comment":"Emoji status to set"}],"throws":[{"code":400,"name":"DOCUMENT_INVALID","comment":"The specified document is invalid."}],"available":"user"},{"kind":"method","name":"account.getDefaultEmojiStatuses","type":"account.EmojiStatuses","id":3598005126,"comment":"Get a list of default suggested emoji statuses","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.getRecentEmojiStatuses","type":"account.EmojiStatuses","id":257392901,"comment":"Get recently used emoji statuses","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.clearRecentEmojiStatuses","type":"Bool","id":404757166,"comment":"Clears list of recently used emoji statuses","arguments":[],"available":"user"},{"kind":"method","name":"account.reorderUsernames","type":"Bool","id":4015001259,"comment":"Reorder usernames associated with the currently logged-in user.","arguments":[{"name":"order","type":"string","typeModifiers":{"isVector":true},"comment":"The new order for active usernames. All active usernames must be specified."}],"throws":[{"code":400,"name":"ORDER_INVALID","comment":"The specified username order is invalid."}],"available":"user"},{"kind":"method","name":"account.toggleUsername","type":"Bool","id":1490465654,"comment":"Activate or deactivate a purchased fragment.com username associated to the currently logged-in user.","arguments":[{"name":"username","type":"string","comment":"Username"},{"name":"active","type":"Bool","comment":"Whether to activate or deactivate it"}],"throws":[{"code":400,"name":"USERNAMES_ACTIVE_TOO_MUCH","comment":"The maximum number of active usernames was reached."},{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."}],"available":"user"},{"kind":"method","name":"account.getDefaultProfilePhotoEmojis","type":"EmojiList","id":3799319336,"comment":"Get a set of suggested custom emoji stickers that can be used as profile picture","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.getDefaultGroupPhotoEmojis","type":"EmojiList","id":2438488238,"comment":"Get a set of suggested custom emoji stickers that can be used as group picture","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.getAutoSaveSettings","type":"account.AutoSaveSettings","typeModifiers":{"constructorId":1279133341},"id":2915810522,"comment":"Get autosave settings","arguments":[],"available":"user"},{"kind":"method","name":"account.saveAutoSaveSettings","type":"Bool","id":3600515937,"comment":"Modify autosave settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"users","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the new settings should affect all private chats"},{"name":"chats","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the new settings should affect all groups"},{"name":"broadcasts","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the new settings should affect all channels"},{"name":"peer","type":"InputPeer","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the new settings should affect a specific peer"},{"name":"settings","type":"AutoSaveSettings","comment":"The new autosave settings"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"both"},{"kind":"method","name":"account.deleteAutoSaveExceptions","type":"Bool","id":1404829728,"comment":"Clear all peer-specific autosave settings.","arguments":[],"available":"user"},{"kind":"method","name":"account.invalidateSignInCodes","type":"Bool","id":3398101178,"comment":"Invalidate the specified login codes, see here ยป for more info.","arguments":[{"name":"codes","type":"string","typeModifiers":{"isVector":true},"comment":"The login codes to invalidate."}],"available":"user"},{"kind":"method","name":"account.updateColor","type":"Bool","id":2096079197,"comment":"Update the accent color and background custom emoji ยป of the current account.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"for_profile","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed."},{"name":"color","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"ID of the accent color palette ยป to use (not RGB24, see here ยป for more info)."},{"name":"background_emoji_id","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"Custom emoji ID used in the accent color pattern."}],"throws":[{"code":400,"name":"COLOR_INVALID","comment":"The specified color palette ID was invalid."}],"available":"user"},{"kind":"method","name":"account.getDefaultBackgroundEmojis","type":"EmojiList","id":2785720782,"comment":"Get a set of suggested custom emoji stickers that can be used in an accent color pattern.","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.getChannelDefaultEmojiStatuses","type":"account.EmojiStatuses","id":1999087573,"comment":"Get a list of default suggested channel emoji statuses.","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.getChannelRestrictedStatusEmojis","type":"EmojiList","id":900325589,"comment":"Returns fetch the full list of custom emoji IDs ยป that cannot be used in channel emoji statuses ยป.","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"account.updateBusinessWorkHours","type":"Bool","id":1258348646,"arguments":[{"name":"flags","type":"#"},{"name":"business_work_hours","type":"BusinessWorkHours","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"account.updateBusinessLocation","type":"Bool","id":2657817370,"arguments":[{"name":"flags","type":"#"},{"name":"geo_point","type":"InputGeoPoint","typeModifiers":{"predicate":"flags.1"}},{"name":"address","type":"string","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"account.updateBusinessGreetingMessage","type":"Bool","id":1724755908,"arguments":[{"name":"flags","type":"#"},{"name":"message","type":"InputBusinessGreetingMessage","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"account.updateBusinessAwayMessage","type":"Bool","id":2724888485,"arguments":[{"name":"flags","type":"#"},{"name":"message","type":"InputBusinessAwayMessage","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"account.updateConnectedBot","type":"Updates","id":1138250269,"arguments":[{"name":"flags","type":"#"},{"name":"can_reply","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"deleted","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"bot","type":"InputUser"},{"name":"recipients","type":"InputBusinessBotRecipients"}]},{"kind":"method","name":"account.getConnectedBots","type":"account.ConnectedBots","typeModifiers":{"constructorId":400029819},"id":1319421967,"arguments":[]},{"kind":"method","name":"account.getBotBusinessConnection","type":"Updates","id":1990746736,"arguments":[{"name":"connection_id","type":"string"}]},{"kind":"method","name":"account.updateBusinessIntro","type":"Bool","id":2786381876,"arguments":[{"name":"flags","type":"#"},{"name":"intro","type":"InputBusinessIntro","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"account.toggleConnectedBotPaused","type":"Bool","id":1684934807,"arguments":[{"name":"peer","type":"InputPeer"},{"name":"paused","type":"Bool"}]},{"kind":"method","name":"account.disablePeerConnectedBot","type":"Bool","id":1581481689,"arguments":[{"name":"peer","type":"InputPeer"}]},{"kind":"method","name":"account.updateBirthday","type":"Bool","id":3429764113,"arguments":[{"name":"flags","type":"#"},{"name":"birthday","type":"Birthday","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"account.createBusinessChatLink","type":"BusinessChatLink","typeModifiers":{"constructorId":3031328367},"id":2287068814,"arguments":[{"name":"link","type":"InputBusinessChatLink"}]},{"kind":"method","name":"account.editBusinessChatLink","type":"BusinessChatLink","typeModifiers":{"constructorId":3031328367},"id":2352222383,"arguments":[{"name":"slug","type":"string"},{"name":"link","type":"InputBusinessChatLink"}]},{"kind":"method","name":"account.deleteBusinessChatLink","type":"Bool","id":1611085428,"arguments":[{"name":"slug","type":"string"}]},{"kind":"method","name":"account.getBusinessChatLinks","type":"account.BusinessChatLinks","typeModifiers":{"constructorId":3963855569},"id":1869667809,"arguments":[]},{"kind":"method","name":"account.resolveBusinessChatLink","type":"account.ResolvedBusinessChatLinks","typeModifiers":{"constructorId":2586029857},"id":1418913262,"arguments":[{"name":"slug","type":"string"}]},{"kind":"method","name":"account.updatePersonalChannel","type":"Bool","id":3645048288,"arguments":[{"name":"channel","type":"InputChannel"}]},{"kind":"method","name":"account.toggleSponsoredMessages","type":"Bool","id":3118048141,"arguments":[{"name":"enabled","type":"Bool"}]},{"kind":"method","name":"account.getReactionsNotifySettings","type":"ReactionsNotifySettings","typeModifiers":{"constructorId":1457736048},"id":115172684,"arguments":[]},{"kind":"method","name":"account.setReactionsNotifySettings","type":"ReactionsNotifySettings","typeModifiers":{"constructorId":1457736048},"id":829220168,"arguments":[{"name":"settings","type":"ReactionsNotifySettings"}]},{"kind":"method","name":"users.getUsers","type":"User","typeModifiers":{"isVector":true},"id":227648840,"comment":"Returns basic user info according to their identifiers.","arguments":[{"name":"id","type":"InputUser","typeModifiers":{"isVector":true},"comment":"List of user identifiers"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"FROM_MESSAGE_BOT_DISABLED","comment":"Bots can't use fromMessage min constructors."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."}],"available":"both"},{"kind":"method","name":"users.getFullUser","type":"users.UserFull","typeModifiers":{"constructorId":997004590},"id":3054459160,"comment":"Returns extended user info by ID.","arguments":[{"name":"id","type":"InputUser","comment":"User ID"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USERNAME_OCCUPIED","comment":"The provided username is already occupied."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"both"},{"kind":"method","name":"users.setSecureValueErrors","type":"Bool","id":2429064373,"comment":"Notify the user that the sent passport data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change).\n\nUse this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues.","arguments":[{"name":"id","type":"InputUser","comment":"The user"},{"name":"errors","type":"SecureValueError","typeModifiers":{"isVector":true},"comment":"Errors"}],"throws":[{"code":403,"name":"USER_BOT_INVALID","comment":"User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts."},{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"bot"},{"kind":"method","name":"users.getIsPremiumRequiredToContact","type":"Bool","typeModifiers":{"isVector":true},"id":2787289616,"arguments":[{"name":"id","type":"InputUser","typeModifiers":{"isVector":true}}]},{"kind":"method","name":"contacts.getContactIDs","type":"int","typeModifiers":{"isVector":true},"id":2061264541,"comment":"Get the telegram IDs of all contacts.
\nReturns an array of Telegram user IDs for all contacts (0 if a contact does not have an associated Telegram account or have hidden their account using privacy settings).","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"contacts.getStatuses","type":"ContactStatus","typeModifiers":{"isVector":true,"constructorId":383348795},"id":3299038190,"comment":"Use this method to obtain the online statuses of all contacts with an accessible associated Telegram account.","arguments":[],"available":"user"},{"kind":"method","name":"contacts.getContacts","type":"contacts.Contacts","id":1574346258,"comment":"Returns the current user's contact list.","arguments":[{"name":"hash","type":"long","comment":"If there already is a full contact list on the client, a hash of a the list of contact IDs in ascending order may be passed in this parameter. If the contact set was not changed, {@link contacts.RawContactsNotModified} will be returned."}],"available":"user"},{"kind":"method","name":"contacts.importContacts","type":"contacts.ImportedContacts","typeModifiers":{"constructorId":2010127419},"id":746589157,"comment":"Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info.\n\nUse {@link contacts.RawAddContactRequest} to add Telegram contacts without actually using their phone number.","arguments":[{"name":"contacts","type":"InputContact","typeModifiers":{"isVector":true},"comment":"List of contacts to import"}],"available":"user"},{"kind":"method","name":"contacts.deleteContacts","type":"Updates","id":157945344,"comment":"Deletes several contacts from the list.","arguments":[{"name":"id","type":"InputUser","typeModifiers":{"isVector":true},"comment":"User ID list"}],"available":"user"},{"kind":"method","name":"contacts.deleteByPhones","type":"Bool","id":269745566,"comment":"Delete contacts by phone number","arguments":[{"name":"phones","type":"string","typeModifiers":{"isVector":true},"comment":"Phone numbers"}],"available":"user"},{"kind":"method","name":"contacts.block","type":"Bool","id":774801204,"comment":"Adds a peer to a blocklist, see here ยป for more info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"my_stories_from","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the peer should be added to the story blocklist; if not set, the peer will be added to the main blocklist, see here ยป for more info."},{"name":"id","type":"InputPeer","comment":"Peer"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CONTACT_ID_INVALID","comment":"The provided contact ID is invalid."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"contacts.unblock","type":"Bool","id":3041973032,"comment":"Deletes a peer from a blocklist, see here ยป for more info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"my_stories_from","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the peer should be removed from the story blocklist; if not set, the peer will be removed from the main blocklist, see here ยป for more info."},{"name":"id","type":"InputPeer","comment":"Peer"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CONTACT_ID_INVALID","comment":"The provided contact ID is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"contacts.getBlocked","type":"contacts.Blocked","id":2592509824,"comment":"Returns the list of blocked users.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"my_stories_from","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to fetch the story blocklist; if not set, will fetch the main blocklist. See here ยป for differences between the two."},{"name":"offset","type":"int","comment":"The number of list elements to be skipped"},{"name":"limit","type":"int","comment":"The number of list elements to be returned"}],"available":"user"},{"kind":"method","name":"contacts.search","type":"contacts.Found","typeModifiers":{"constructorId":3004386717},"id":301470424,"comment":"Returns users found by username substring.","arguments":[{"name":"q","type":"string","comment":"Target substring"},{"name":"limit","type":"int","comment":"Maximum number of users to be returned"}],"throws":[{"code":400,"name":"QUERY_TOO_SHORT","comment":"The query string is too short."},{"code":400,"name":"SEARCH_QUERY_EMPTY","comment":"The search query is empty."}],"available":"user"},{"kind":"method","name":"contacts.resolveUsername","type":"contacts.ResolvedPeer","typeModifiers":{"constructorId":2131196633},"id":4181511075,"comment":"Resolve a @username to get peer info","arguments":[{"name":"username","type":"string","comment":"@username to resolve"}],"throws":[{"code":400,"name":"CONNECTION_LAYER_INVALID","comment":"Layer invalid."},{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."},{"code":400,"name":"USERNAME_NOT_OCCUPIED","comment":"The provided username is not occupied."}],"available":"both"},{"kind":"method","name":"contacts.getTopPeers","type":"contacts.TopPeers","id":2536798390,"comment":"Get most used peers","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"correspondents","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Users we've chatted most frequently with"},{"name":"bots_pm","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Most used bots"},{"name":"bots_inline","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Most used inline bots"},{"name":"phone_calls","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Most frequently called users"},{"name":"forward_users","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Users to which the users often forwards messages to"},{"name":"forward_chats","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Chats to which the users often forwards messages to"},{"name":"groups","type":"true","typeModifiers":{"predicate":"flags.10"},"comment":"Often-opened groups and supergroups"},{"name":"channels","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"Most frequently visited channels"},{"name":"offset","type":"int","comment":"Offset for pagination"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":400,"name":"TYPES_EMPTY","comment":"No top peer type was provided."}],"available":"user"},{"kind":"method","name":"contacts.resetTopPeerRating","type":"Bool","id":451113900,"comment":"Reset rating of top peer","arguments":[{"name":"category","type":"TopPeerCategory","comment":"Top peer category"},{"name":"peer","type":"InputPeer","comment":"Peer whose rating should be reset"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"contacts.resetSaved","type":"Bool","id":2274703345,"comment":"Removes all contacts without an associated Telegram account.","arguments":[],"available":"user"},{"kind":"method","name":"contacts.getSaved","type":"SavedContact","typeModifiers":{"isVector":true,"constructorId":289586518},"id":2196890527,"comment":"Get all contacts, requires a takeout session, see here ยป for more info.","arguments":[],"throws":[{"code":403,"name":"TAKEOUT_REQUIRED","comment":"A takeout session needs to be initialized first, see here ยป for more info."}],"available":"user"},{"kind":"method","name":"contacts.toggleTopPeers","type":"Bool","id":2232729050,"comment":"Enable/disable top peers","arguments":[{"name":"enabled","type":"Bool","comment":"Enable/disable"}],"available":"user"},{"kind":"method","name":"contacts.addContact","type":"Updates","id":3908330448,"comment":"Add an existing telegram user as contact.\n\nUse {@link contacts.RawImportContactsRequest} to add contacts by phone number, without knowing their Telegram ID.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"add_phone_privacy_exception","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Allow the other user to see our phone number?"},{"name":"id","type":"InputUser","comment":"Telegram ID of the other user"},{"name":"first_name","type":"string","comment":"First name"},{"name":"last_name","type":"string","comment":"Last name"},{"name":"phone","type":"string","comment":"User's phone number, may be omitted to simply add the user to the contact list, without a phone number."}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CONTACT_ID_INVALID","comment":"The provided contact ID is invalid."},{"code":400,"name":"CONTACT_NAME_EMPTY","comment":"Contact name empty."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"contacts.acceptContact","type":"Updates","id":4164002319,"comment":"If the add contact action bar is active, add that user as contact","arguments":[{"name":"id","type":"InputUser","comment":"The user to add as contact"}],"throws":[{"code":400,"name":"CONTACT_ADD_MISSING","comment":"Contact to add is missing."},{"code":400,"name":"CONTACT_ID_INVALID","comment":"The provided contact ID is invalid."},{"code":400,"name":"CONTACT_REQ_MISSING","comment":"Missing contact request."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"contacts.getLocated","type":"Updates","id":3544759364,"comment":"Get users and geochats near you, see here ยป for more info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"background","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"While the geolocation of the current user is public, clients should update it in the background every half-an-hour or so, while setting this flag.
Do this only if the new location is more than 1 KM away from the previous one, or if the previous location is unknown."},{"name":"geo_point","type":"InputGeoPoint","comment":"Geolocation"},{"name":"self_expires","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If set, the geolocation of the current user will be public for the specified number of seconds; pass 0x7fffffff to disable expiry, 0 to make the current geolocation private; if the flag isn't set, no changes will be applied."}],"throws":[{"code":400,"name":"GEO_POINT_INVALID","comment":"Invalid geoposition provided."},{"code":406,"name":"USERPIC_PRIVACY_REQUIRED","comment":"You need to disable privacy settings for your profile picture in order to make your geolocation public."},{"code":406,"name":"USERPIC_UPLOAD_REQUIRED","comment":"You must have a profile picture to publish your geolocation."}],"available":"user"},{"kind":"method","name":"contacts.blockFromReplies","type":"Updates","id":698914348,"comment":"Stop getting notifications about discussion replies of a certain user in @replies","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"delete_message","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to delete the specified message as well"},{"name":"delete_history","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to delete all @replies messages from this user as well"},{"name":"report_spam","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to also report this user for spam"},{"name":"msg_id","type":"int","comment":"ID of the message in the @replies chat"}],"throws":[{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"contacts.resolvePhone","type":"contacts.ResolvedPeer","typeModifiers":{"constructorId":2131196633},"id":2331591492,"comment":"Resolve a phone number to get user info, if their privacy settings allow it.","arguments":[{"name":"phone","type":"string","comment":"Phone number in international format, possibly obtained from a phone number deep link."}],"throws":[{"code":400,"name":"PHONE_NOT_OCCUPIED","comment":"No user is associated to the specified phone number."}],"available":"user"},{"kind":"method","name":"contacts.exportContactToken","type":"ExportedContactToken","typeModifiers":{"constructorId":1103040667},"id":4167385127,"comment":"Generates a temporary profile link for the currently logged-in user.","arguments":[],"available":"both"},{"kind":"method","name":"contacts.importContactToken","type":"User","id":318789512,"comment":"Obtain user info from a temporary profile link.","arguments":[{"name":"token","type":"string","comment":"The token extracted from the temporary profile link."}],"throws":[{"code":400,"name":"IMPORT_TOKEN_INVALID","comment":"The specified token is invalid."}],"available":"both"},{"kind":"method","name":"contacts.editCloseFriends","type":"Bool","id":3127313904,"comment":"Edit the close friends list, see here ยป for more info.","arguments":[{"name":"id","type":"int53","typeModifiers":{"isVector":true},"comment":"Full list of user IDs of close friends, see here for more info."}],"available":"user"},{"kind":"method","name":"contacts.setBlocked","type":"Bool","id":2496027766,"comment":"Replace the contents of an entire blocklist, see here for more info ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"my_stories_from","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to edit the story blocklist; if not set, will edit the main blocklist. See here ยป for differences between the two."},{"name":"id","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"Full content of the blocklist."},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"available":"user"},{"kind":"method","name":"contacts.getBirthdays","type":"contacts.ContactBirthdays","typeModifiers":{"constructorId":290452237},"id":3673008228,"arguments":[]},{"kind":"method","name":"messages.getMessages","type":"messages.Messages","id":1673946374,"comment":"Returns the list of messages by their IDs.","arguments":[{"name":"id","type":"InputMessage","typeModifiers":{"isVector":true},"comment":"Message ID list"}],"available":"both"},{"kind":"method","name":"messages.getDialogs","type":"messages.Dialogs","id":2700397391,"comment":"Returns the current user dialog list.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"exclude_pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Exclude pinned dialogs"},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Peer folder ID, for more info click here"},{"name":"offset_date","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here (top_message ID used for pagination)"},{"name":"offset_peer","type":"InputPeer","comment":"Offset peer for pagination"},{"name":"limit","type":"int","comment":"Number of list elements to be returned"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"FOLDER_ID_INVALID","comment":"Invalid folder ID."},{"code":400,"name":"OFFSET_PEER_ID_INVALID","comment":"The provided offset peer is invalid."}],"available":"user"},{"kind":"method","name":"messages.getHistory","type":"messages.Messages","id":1143203525,"comment":"Returns the conversation history with one interlocutor / within a chat","arguments":[{"name":"peer","type":"InputPeer","comment":"Target peer"},{"name":"offset_id","type":"int","comment":"Only return messages starting from the specified message ID"},{"name":"offset_date","type":"int","comment":"Only return messages sent before the specified date"},{"name":"add_offset","type":"int","comment":"Number of list elements to be skipped, negative values are also accepted."},{"name":"limit","type":"int","comment":"Number of results to return"},{"name":"max_id","type":"int","comment":"If a positive value was transferred, the method will return only messages with IDs less than max_id"},{"name":"min_id","type":"int","comment":"If a positive value was transferred, the method will return only messages with IDs more than min_id"},{"name":"hash","type":"long","comment":"Result hash"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"TAKEOUT_INVALID","comment":"The specified takeout ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.search","id":703497338,"type":"messages.Messages","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"User or chat, histories with which are searched, or {@link RawInputPeerEmpty} constructor to search in all private chats and normal groups (not channels) ยป. Use {@link messages.RawSearchGlobalRequest} to search globally in all chats, groups, supergroups and channels."},{"name":"q","type":"string","comment":"Text search request"},{"name":"from_id","type":"InputPeer","typeModifiers":{"predicate":"flags.0"},"comment":"Only return messages sent by the specified user ID"},{"name":"saved_peer_id","type":"InputPeer","typeModifiers":{"predicate":"flags.2"},"comment":"Search within the saved message dialog ยป with this ID."},{"name":"saved_reaction","type":"Reaction","typeModifiers":{"predicate":"flags.3","isVector":true}},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Thread ID"},{"name":"filter","type":"MessagesFilter","comment":"Filter to return only specified message types"},{"name":"min_date","type":"int","comment":"If a positive value was transferred, only messages with a sending date bigger than the transferred one will be returned"},{"name":"max_date","type":"int","comment":"If a positive value was transferred, only messages with a sending date smaller than the transferred one will be returned"},{"name":"offset_id","type":"int","comment":"Only return messages starting from the specified message ID"},{"name":"add_offset","type":"int","comment":"Additional offset"},{"name":"limit","type":"int","comment":"Number of results to return"},{"name":"max_id","type":"int","comment":"Maximum message ID to return"},{"name":"min_id","type":"int","comment":"Minimum message ID to return"},{"name":"hash","type":"long","comment":"Hash"}],"comment":"Search for messages.","throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"FROM_PEER_INVALID","comment":"The specified from_id is invalid."},{"code":400,"name":"INPUT_FILTER_INVALID","comment":"The specified filter is invalid."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PEER_ID_NOT_SUPPORTED","comment":"The provided peer ID is not supported."},{"code":400,"name":"SEARCH_QUERY_EMPTY","comment":"The search query is empty."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.readHistory","type":"messages.AffectedMessages","typeModifiers":{"constructorId":2228326789},"id":238054714,"comment":"Marks message history as read.","arguments":[{"name":"peer","type":"InputPeer","comment":"Target user or group"},{"name":"max_id","type":"int","comment":"If a positive value is passed, only messages with identifiers less or equal than the given one will be read"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.deleteHistory","type":"messages.AffectedHistory","typeModifiers":{"constructorId":3025955281},"id":2962199082,"comment":"Deletes communication history.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"just_clear","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Just clear history for the current user, without actually removing messages for every chat user"},{"name":"revoke","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to delete the message history for all chat participants"},{"name":"peer","type":"InputPeer","comment":"User or chat, communication history of which will be deleted"},{"name":"max_id","type":"int","comment":"Maximum ID of message to delete"},{"name":"min_date","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Delete all messages newer than this UNIX timestamp"},{"name":"max_date","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Delete all messages older than this UNIX timestamp"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_REVOKE_DATE_UNSUPPORTED","comment":"min_date and max_date are not available for using with non-user peers."},{"code":400,"name":"MAX_DATE_INVALID","comment":"The specified maximum date is invalid."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"MIN_DATE_INVALID","comment":"The specified minimum date is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.deleteMessages","type":"messages.AffectedMessages","typeModifiers":{"constructorId":2228326789},"id":3851326930,"comment":"Deletes messages by their identifiers.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"revoke","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to delete messages for all participants of the chat"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"Message ID list"}],"throws":[{"code":403,"name":"MESSAGE_DELETE_FORBIDDEN","comment":"You can't delete one of the messages you tried to delete, most likely because it is a service message."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."}],"available":"both"},{"kind":"method","name":"messages.receivedMessages","type":"ReceivedNotifyMessage","typeModifiers":{"isVector":true,"constructorId":2743383929},"id":94983360,"comment":"Confirms receipt of messages by a client, cancels PUSH-notification sending.","arguments":[{"name":"max_id","type":"int","comment":"Maximum message ID available in a client."}],"available":"user"},{"kind":"method","name":"messages.setTyping","type":"Bool","id":1486110434,"comment":"Sends a current user typing event (see SendMessageAction for all event types) to a conversation partner or group.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Target user or group"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Topic ID"},{"name":"action","type":"SendMessageAction","comment":"Type of action"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":403,"name":"GROUPCALL_FORBIDDEN","comment":"The group call has already ended."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."},{"code":403,"name":"USER_IS_BLOCKED","comment":"You were blocked by this user."},{"code":400,"name":"USER_IS_BOT","comment":"Bots can't send messages to other bots."}],"available":"both"},{"kind":"method","name":"messages.sendMessage","id":2554304325,"type":"Updates","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"no_webpage","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Set this flag to disable generation of the webpage preview"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Send this message silently (no notifications for the receivers)"},{"name":"background","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Send this message as background message"},{"name":"clear_draft","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Clear the draft field"},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have content protection enabled"},{"name":"update_stickersets_order","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"Whether to move used stickersets to top, see here for more info on this flag ยป"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"peer","type":"InputPeer","comment":"The destination where the message will be sent"},{"name":"reply_to","type":"InputReplyTo","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates that the message should be sent in reply to the specified message or story."},{"name":"message","type":"string","comment":"The message"},{"name":"random_id","type":"long","comment":"Unique client message ID required to prevent message resending"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Reply markup for sending bot buttons"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Message entities for sending styled text"},{"name":"schedule_date","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Scheduled message date for scheduled messages"},{"name":"send_as","type":"InputPeer","typeModifiers":{"predicate":"flags.13"},"comment":"Send this message as the specified peer"},{"name":"quick_reply_shortcut","type":"InputQuickReplyShortcut","typeModifiers":{"predicate":"flags.17"}},{"name":"effect","type":"long","typeModifiers":{"predicate":"flags.18"}}],"comment":"Sends a message to a chat","throws":[{"code":400,"name":"ADMIN_RIGHTS_EMPTY","comment":"The chatAdminRights constructor passed in keyboardButtonRequestPeer.peer_type.user_admin_rights has no rights set (i.e. flags is 0)."},{"code":400,"name":"BOT_DOMAIN_INVALID","comment":"Bot domain invalid."},{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."},{"code":400,"name":"BUTTON_DATA_INVALID","comment":"The data of one or more of the buttons you provided is invalid."},{"code":400,"name":"BUTTON_TYPE_INVALID","comment":"The type of one or more of the buttons you provided is invalid."},{"code":400,"name":"BUTTON_URL_INVALID","comment":"Button URL invalid."},{"code":400,"name":"BUTTON_USER_PRIVACY_RESTRICTED","comment":"The privacy setting of the user specified in a {@link RawInputKeyboardButtonUserProfile} button do not allow creating such a button."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_GUEST_SEND_FORBIDDEN","comment":"You join the discussion group before commenting, see here ยป for more info."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_RESTRICTED","comment":"You can't send messages in this chat, you were restricted."},{"code":403,"name":"CHAT_SEND_PLAIN_FORBIDDEN","comment":"You can't send non-media (text) messages in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"DOCUMENT_INVALID","comment":"The specified document is invalid."},{"code":400,"name":"ENCRYPTION_DECLINED","comment":"The secret chat was declined."},{"code":400,"name":"ENTITIES_TOO_LONG","comment":"You provided too many styled message entities."},{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":400,"name":"ENTITY_MENTION_USER_INVALID","comment":"You mentioned an invalid user."},{"code":400,"name":"FROM_MESSAGE_BOT_DISABLED","comment":"Bots can't use fromMessage min constructors."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MESSAGE_EMPTY","comment":"The provided message is empty."},{"code":400,"name":"MESSAGE_TOO_LONG","comment":"The provided message is too long."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":500,"name":"MSG_WAIT_FAILED","comment":"A waiting call returned an error."},{"code":406,"name":"PAYMENT_UNSUPPORTED","comment":"A detailed description of the error will be received separately as described here ยป."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PINNED_DIALOGS_TOO_MUCH","comment":"Too many pinned dialogs."},{"code":400,"name":"POLL_OPTION_INVALID","comment":"Invalid poll option provided."},{"code":406,"name":"PRIVACY_PREMIUM_REQUIRED","comment":"You need a Telegram Premium subscription to send a message to this user."},{"code":500,"name":"RANDOM_ID_DUPLICATE","comment":"You provided a random ID that was already used."},{"code":400,"name":"REPLY_MARKUP_INVALID","comment":"The provided reply markup is invalid."},{"code":400,"name":"REPLY_MARKUP_TOO_LONG","comment":"The specified reply_markup is too long."},{"code":400,"name":"REPLY_TO_INVALID","comment":"The specified reply_to field is invalid."},{"code":400,"name":"REPLY_TO_USER_INVALID","comment":"The replied-to user is invalid."},{"code":400,"name":"SCHEDULE_BOT_NOT_ALLOWED","comment":"Bots cannot schedule messages."},{"code":400,"name":"SCHEDULE_DATE_TOO_LATE","comment":"You can't schedule a message this far in the future."},{"code":400,"name":"SCHEDULE_STATUS_PRIVATE","comment":"Can't schedule until user is online, if the user's last seen timestamp is hidden by their privacy settings."},{"code":400,"name":"SCHEDULE_TOO_MUCH","comment":"There are too many scheduled messages."},{"code":400,"name":"SEND_AS_PEER_INVALID","comment":"You can't send messages as the specified peer."},{"code":420,"name":"SLOWMODE_WAIT_%d","comment":"Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat."},{"code":400,"name":"STORY_ID_INVALID","comment":"The specified story ID is invalid."},{"code":406,"name":"TOPIC_CLOSED","comment":"This topic was closed, you can't send messages to it anymore."},{"code":406,"name":"TOPIC_DELETED","comment":"The specified topic was deleted."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."},{"code":403,"name":"USER_IS_BLOCKED","comment":"You were blocked by this user."},{"code":400,"name":"USER_IS_BOT","comment":"Bots can't send messages to other bots."},{"code":400,"name":"WC_CONVERT_URL_INVALID","comment":"WC convert URL invalid."},{"code":400,"name":"YOU_BLOCKED_USER","comment":"You blocked this user."}],"available":"both"},{"kind":"method","name":"messages.sendMedia","id":2018673486,"type":"Updates","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Send message silently (no notification should be triggered)"},{"name":"background","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Send message in background"},{"name":"clear_draft","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Clear the draft"},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have content protection enabled"},{"name":"update_stickersets_order","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"Whether to move used stickersets to top, see here for more info on this flag ยป"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"peer","type":"InputPeer","comment":"Destination"},{"name":"reply_to","type":"InputReplyTo","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates that the message should be sent in reply to the specified message or story."},{"name":"media","type":"InputMedia","comment":"Attached media"},{"name":"message","type":"string","comment":"Caption"},{"name":"random_id","type":"long","comment":"Random ID to avoid resending the same message"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Reply markup for bot keyboards"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Message entities for styled text"},{"name":"schedule_date","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Scheduled message date for scheduled messages"},{"name":"send_as","type":"InputPeer","typeModifiers":{"predicate":"flags.13"},"comment":"Send this message as the specified peer"},{"name":"quick_reply_shortcut","type":"InputQuickReplyShortcut","typeModifiers":{"predicate":"flags.17"}},{"name":"effect","type":"long","typeModifiers":{"predicate":"flags.18"}}],"comment":"Send a media","throws":[{"code":400,"name":"BOT_PAYMENTS_DISABLED","comment":"Please enable bot payments in botfather before calling this method."},{"code":400,"name":"BROADCAST_PUBLIC_VOTERS_FORBIDDEN","comment":"You can't forward polls with public voters."},{"code":400,"name":"BUTTON_DATA_INVALID","comment":"The data of one or more of the buttons you provided is invalid."},{"code":400,"name":"BUTTON_TYPE_INVALID","comment":"The type of one or more of the buttons you provided is invalid."},{"code":400,"name":"BUTTON_URL_INVALID","comment":"Button URL invalid."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_FORWARDS_RESTRICTED","comment":"You can't forward messages from a protected chat."},{"code":403,"name":"CHAT_GUEST_SEND_FORBIDDEN","comment":"You join the discussion group before commenting, see here ยป for more info."},{"code":400,"name":"CHAT_RESTRICTED","comment":"You can't send messages in this chat, you were restricted."},{"code":403,"name":"CHAT_SEND_AUDIOS_FORBIDDEN","comment":"You can't send audio messages in this chat."},{"code":403,"name":"CHAT_SEND_DOCS_FORBIDDEN","comment":"You can't send documents in this chat."},{"code":403,"name":"CHAT_SEND_GIFS_FORBIDDEN","comment":"You can't send gifs in this chat."},{"code":403,"name":"CHAT_SEND_MEDIA_FORBIDDEN","comment":"You can't send media in this chat."},{"code":403,"name":"CHAT_SEND_PHOTOS_FORBIDDEN","comment":"You can't send photos in this chat."},{"code":403,"name":"CHAT_SEND_PLAIN_FORBIDDEN","comment":"You can't send non-media (text) messages in this chat."},{"code":403,"name":"CHAT_SEND_POLL_FORBIDDEN","comment":"You can't send polls in this chat."},{"code":403,"name":"CHAT_SEND_STICKERS_FORBIDDEN","comment":"You can't send stickers in this chat."},{"code":403,"name":"CHAT_SEND_VIDEOS_FORBIDDEN","comment":"You can't send videos in this chat."},{"code":403,"name":"CHAT_SEND_VOICES_FORBIDDEN","comment":"You can't send voice recordings in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"CURRENCY_TOTAL_AMOUNT_INVALID","comment":"The total amount of all prices is invalid."},{"code":400,"name":"DOCUMENT_INVALID","comment":"The specified document is invalid."},{"code":400,"name":"EMOTICON_INVALID","comment":"The specified emoji is invalid."},{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":400,"name":"EXTERNAL_URL_INVALID","comment":"External URL invalid."},{"code":400,"name":"FILE_PARTS_INVALID","comment":"The number of file parts is invalid."},{"code":400,"name":"FILE_PART_LENGTH_INVALID","comment":"The length of a file part is invalid."},{"code":400,"name":"FILE_REFERENCE_EMPTY","comment":"An empty file reference was specified."},{"code":400,"name":"FILE_REFERENCE_EXPIRED","comment":"File reference expired, it must be refetched as described in the documentation."},{"code":400,"name":"GAME_BOT_INVALID","comment":"Bots can't send another bot's game."},{"code":400,"name":"IMAGE_PROCESS_FAILED","comment":"Failure while processing image."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MD5_CHECKSUM_INVALID","comment":"The MD5 checksums do not match."},{"code":400,"name":"MEDIA_CAPTION_TOO_LONG","comment":"The caption is too long."},{"code":400,"name":"MEDIA_EMPTY","comment":"The provided media object is invalid."},{"code":400,"name":"MEDIA_INVALID","comment":"Media invalid."},{"code":400,"name":"MESSAGE_EMPTY","comment":"The provided message is empty."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PAYMENT_PROVIDER_INVALID","comment":"The specified payment provider is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PHOTO_EXT_INVALID","comment":"The extension of the photo is invalid."},{"code":400,"name":"PHOTO_INVALID_DIMENSIONS","comment":"The photo dimensions are invalid."},{"code":400,"name":"PHOTO_SAVE_FILE_INVALID","comment":"Internal issues, try again later."},{"code":400,"name":"POLL_ANSWERS_INVALID","comment":"Invalid poll answers were provided."},{"code":400,"name":"POLL_ANSWER_INVALID","comment":"One of the poll answers is not acceptable."},{"code":400,"name":"POLL_OPTION_DUPLICATE","comment":"Duplicate poll options provided."},{"code":400,"name":"POLL_OPTION_INVALID","comment":"Invalid poll option provided."},{"code":400,"name":"POLL_QUESTION_INVALID","comment":"One of the poll questions is not acceptable."},{"code":403,"name":"PREMIUM_ACCOUNT_REQUIRED","comment":"A premium account is required to execute this action."},{"code":400,"name":"QUIZ_CORRECT_ANSWERS_EMPTY","comment":"No correct quiz answer was specified."},{"code":400,"name":"QUIZ_CORRECT_ANSWERS_TOO_MUCH","comment":"You specified too many correct answers in a quiz, quizzes can only have one right answer!"},{"code":400,"name":"QUIZ_CORRECT_ANSWER_INVALID","comment":"An invalid value was provided to the correct_answers field."},{"code":400,"name":"QUIZ_MULTIPLE_INVALID","comment":"Quizzes can't have the multiple_choice flag set!"},{"code":500,"name":"RANDOM_ID_DUPLICATE","comment":"You provided a random ID that was already used."},{"code":400,"name":"REPLY_MARKUP_BUY_EMPTY","comment":"Reply markup for buy button empty."},{"code":400,"name":"REPLY_MARKUP_INVALID","comment":"The provided reply markup is invalid."},{"code":400,"name":"REPLY_MARKUP_TOO_LONG","comment":"The specified reply_markup is too long."},{"code":400,"name":"SCHEDULE_BOT_NOT_ALLOWED","comment":"Bots cannot schedule messages."},{"code":400,"name":"SCHEDULE_DATE_TOO_LATE","comment":"You can't schedule a message this far in the future."},{"code":400,"name":"SCHEDULE_TOO_MUCH","comment":"There are too many scheduled messages."},{"code":400,"name":"SEND_AS_PEER_INVALID","comment":"You can't send messages as the specified peer."},{"code":420,"name":"SLOWMODE_WAIT_%d","comment":"Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat."},{"code":406,"name":"TOPIC_CLOSED","comment":"This topic was closed, you can't send messages to it anymore."},{"code":406,"name":"TOPIC_DELETED","comment":"The specified topic was deleted."},{"code":400,"name":"TTL_MEDIA_INVALID","comment":"Invalid media Time To Live was provided."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."},{"code":403,"name":"USER_IS_BLOCKED","comment":"You were blocked by this user."},{"code":400,"name":"USER_IS_BOT","comment":"Bots can't send messages to other bots."},{"code":400,"name":"VIDEO_CONTENT_TYPE_INVALID","comment":"The video's content type is invalid."},{"code":400,"name":"VOICE_MESSAGES_FORBIDDEN","comment":"This user's privacy settings forbid you from sending voice messages."},{"code":400,"name":"WEBDOCUMENT_MIME_INVALID","comment":"Invalid webdocument mime type provided."},{"code":400,"name":"WEBPAGE_CURL_FAILED","comment":"Failure while fetching the webpage with cURL."},{"code":400,"name":"WEBPAGE_MEDIA_EMPTY","comment":"Webpage media empty."},{"code":400,"name":"WEBPAGE_NOT_FOUND","comment":"A preview for the specified webpage url could not be generated."},{"code":400,"name":"WEBPAGE_URL_INVALID","comment":"The specified webpage url is invalid."},{"code":400,"name":"YOU_BLOCKED_USER","comment":"You blocked this user."}],"available":"both"},{"kind":"method","name":"messages.forwardMessages","id":3573781000,"type":"Updates","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether to send messages silently (no notification will be triggered on the destination clients)"},{"name":"background","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether to send the message in background"},{"name":"with_my_score","type":"true","typeModifiers":{"predicate":"flags.8"},"comment":"When forwarding games, whether to include your score in the game"},{"name":"drop_author","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"Whether to forward messages without quoting the original author"},{"name":"drop_media_captions","type":"true","typeModifiers":{"predicate":"flags.12"},"comment":"Whether to strip captions from media"},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Only for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn't have content protection enabled"},{"name":"from_peer","type":"InputPeer","comment":"Source of messages"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of messages"},{"name":"random_id","type":"long","typeModifiers":{"isVector":true},"comment":"Random ID to prevent resending of messages"},{"name":"to_peer","type":"InputPeer","comment":"Destination peer"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.9"},"comment":"Destination forum topic"},{"name":"schedule_date","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Scheduled message date for scheduled messages"},{"name":"send_as","type":"InputPeer","typeModifiers":{"predicate":"flags.13"},"comment":"Forward the messages as the specified peer"},{"name":"quick_reply_shortcut","type":"InputQuickReplyShortcut","typeModifiers":{"predicate":"flags.17"}}],"comment":"Forwards messages by their IDs.","throws":[{"code":400,"name":"BROADCAST_PUBLIC_VOTERS_FORBIDDEN","comment":"You can't forward polls with public voters."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":406,"name":"CHAT_FORWARDS_RESTRICTED","comment":"You can't forward messages from a protected chat."},{"code":403,"name":"CHAT_GUEST_SEND_FORBIDDEN","comment":"You join the discussion group before commenting, see here ยป for more info."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_RESTRICTED","comment":"You can't send messages in this chat, you were restricted."},{"code":403,"name":"CHAT_SEND_AUDIOS_FORBIDDEN","comment":"You can't send audio messages in this chat."},{"code":403,"name":"CHAT_SEND_DOCS_FORBIDDEN","comment":"You can't send documents in this chat."},{"code":403,"name":"CHAT_SEND_GAME_FORBIDDEN","comment":"You can't send a game to this chat."},{"code":403,"name":"CHAT_SEND_GIFS_FORBIDDEN","comment":"You can't send gifs in this chat."},{"code":403,"name":"CHAT_SEND_MEDIA_FORBIDDEN","comment":"You can't send media in this chat."},{"code":403,"name":"CHAT_SEND_PHOTOS_FORBIDDEN","comment":"You can't send photos in this chat."},{"code":403,"name":"CHAT_SEND_PLAIN_FORBIDDEN","comment":"You can't send non-media (text) messages in this chat."},{"code":403,"name":"CHAT_SEND_POLL_FORBIDDEN","comment":"You can't send polls in this chat."},{"code":403,"name":"CHAT_SEND_STICKERS_FORBIDDEN","comment":"You can't send stickers in this chat."},{"code":403,"name":"CHAT_SEND_VIDEOS_FORBIDDEN","comment":"You can't send videos in this chat."},{"code":403,"name":"CHAT_SEND_VOICES_FORBIDDEN","comment":"You can't send voice recordings in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"GROUPED_MEDIA_INVALID","comment":"Invalid grouped media."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MEDIA_EMPTY","comment":"The provided media object is invalid."},{"code":400,"name":"MESSAGE_IDS_EMPTY","comment":"No message ids were provided."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":406,"name":"PAYMENT_UNSUPPORTED","comment":"A detailed description of the error will be received separately as described here ยป."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"QUIZ_ANSWER_MISSING","comment":"You can forward a quiz while hiding the original author only after choosing an option in the quiz."},{"code":500,"name":"RANDOM_ID_DUPLICATE","comment":"You provided a random ID that was already used."},{"code":400,"name":"RANDOM_ID_INVALID","comment":"A provided random ID is invalid."},{"code":400,"name":"SCHEDULE_BOT_NOT_ALLOWED","comment":"Bots cannot schedule messages."},{"code":400,"name":"SCHEDULE_DATE_TOO_LATE","comment":"You can't schedule a message this far in the future."},{"code":400,"name":"SCHEDULE_TOO_MUCH","comment":"There are too many scheduled messages."},{"code":400,"name":"SEND_AS_PEER_INVALID","comment":"You can't send messages as the specified peer."},{"code":400,"name":"SLOWMODE_MULTI_MSGS_DISABLED","comment":"Slowmode is enabled, you cannot forward multiple messages to this group."},{"code":420,"name":"SLOWMODE_WAIT_%d","comment":"Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat."},{"code":406,"name":"TOPIC_CLOSED","comment":"This topic was closed, you can't send messages to it anymore."},{"code":406,"name":"TOPIC_DELETED","comment":"The specified topic was deleted."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."},{"code":403,"name":"USER_IS_BLOCKED","comment":"You were blocked by this user."},{"code":400,"name":"USER_IS_BOT","comment":"Bots can't send messages to other bots."},{"code":403,"name":"VOICE_MESSAGES_FORBIDDEN","comment":"This user's privacy settings forbid you from sending voice messages."},{"code":400,"name":"YOU_BLOCKED_USER","comment":"You blocked this user."}],"available":"both"},{"kind":"method","name":"messages.reportSpam","type":"Bool","id":3474297563,"comment":"Report a new incoming chat for spam, if the {@link RawPeerSettings} of the chat allow us to do that","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer to report"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getPeerSettings","type":"messages.PeerSettings","typeModifiers":{"constructorId":1753266509},"id":4024018594,"comment":"Get peer settings","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.report","type":"Bool","id":2303961934,"comment":"Report a message in a chat for violation of telegram's Terms of Service","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of messages to report"},{"name":"reason","type":"ReportReason","comment":"Why are these messages being reported"},{"name":"message","type":"string","comment":"Comment for report moderation"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getChats","type":"messages.Chats","id":1240027791,"comment":"Returns chat basic info on their IDs.","arguments":[{"name":"id","type":"int53","typeModifiers":{"isVector":true},"comment":"List of chat IDs"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"both"},{"kind":"method","name":"messages.getFullChat","type":"messages.ChatFull","typeModifiers":{"constructorId":3856126364},"id":2930772788,"comment":"Get full info about a basic group.","arguments":[{"name":"chat_id","type":"int53","comment":"Basic group ID."}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"both"},{"kind":"method","name":"messages.editChatTitle","type":"Updates","id":1937260541,"comment":"Changes chat name and sends a service message on it.","arguments":[{"name":"chat_id","type":"int53","comment":"Chat ID"},{"name":"title","type":"string","comment":"New chat name, different from the old one"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"CHAT_TITLE_EMPTY","comment":"No chat title provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"both"},{"kind":"method","name":"messages.editChatPhoto","type":"Updates","id":903730804,"comment":"Changes chat photo and sends a service message on it","arguments":[{"name":"chat_id","type":"int53","comment":"Chat ID"},{"name":"photo","type":"InputChatPhoto","comment":"Photo to be set"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"IMAGE_PROCESS_FAILED","comment":"Failure while processing image."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PHOTO_CROP_SIZE_SMALL","comment":"Photo is too small."},{"code":400,"name":"PHOTO_EXT_INVALID","comment":"The extension of the photo is invalid."},{"code":400,"name":"PHOTO_INVALID","comment":"Photo invalid."}],"available":"both"},{"kind":"method","name":"messages.addChatUser","id":3418804487,"type":"messages.InvitedUsers","arguments":[{"name":"chat_id","type":"int53","comment":"Chat ID"},{"name":"user_id","type":"InputUser","comment":"User ID to be added"},{"name":"fwd_limit","type":"int","comment":"Number of last messages to be forwarded"}],"typeModifiers":{"constructorId":2136862630},"comment":"Adds a user to a chat and sends a service message on it.\n\nMay also return 0-N updates of type {@link RawUpdateGroupInvitePrivacyForbidden}: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link can be shared with the user, instead.","throws":[{"code":400,"name":"BOT_GROUPS_BLOCKED","comment":"This bot can't be added to groups."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USERS_TOO_MUCH","comment":"The maximum number of users has been exceeded (to create a chat, for example)."},{"code":400,"name":"USER_ALREADY_PARTICIPANT","comment":"The user is already in the group."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."},{"code":400,"name":"USER_IS_BLOCKED","comment":"You were blocked by this user."},{"code":403,"name":"USER_NOT_MUTUAL_CONTACT","comment":"The provided user is not a mutual contact."},{"code":403,"name":"USER_PRIVACY_RESTRICTED","comment":"The user's privacy settings do not allow you to do this."},{"code":400,"name":"YOU_BLOCKED_USER","comment":"You blocked this user."}],"available":"user"},{"kind":"method","name":"messages.deleteChatUser","type":"Updates","id":2719505579,"comment":"Deletes a user from a chat and sends a service message on it.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"revoke_history","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Remove the entire chat history of the specified user in this chat."},{"name":"chat_id","type":"int53","comment":"Chat ID"},{"name":"user_id","type":"InputUser","comment":"User ID to be deleted"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."},{"code":400,"name":"USER_NOT_PARTICIPANT","comment":"You're not a member of this supergroup/channel."}],"available":"both"},{"kind":"method","name":"messages.createChat","id":2463030740,"type":"messages.InvitedUsers","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"users","type":"InputUser","typeModifiers":{"isVector":true},"comment":"List of user IDs to be invited"},{"name":"title","type":"string","comment":"Chat name"},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Time-to-live of all messages that will be sent in the chat: once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. You can use {@link messages.RawSetDefaultHistoryTTLRequest} to edit this value later."}],"typeModifiers":{"constructorId":2136862630},"comment":"Creates a new chat.\n\nMay also return 0-N updates of type {@link RawUpdateGroupInvitePrivacyForbidden}: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link can be shared with the user, instead.","throws":[{"code":500,"name":"CHAT_ID_GENERATE_FAILED","comment":"Failure while generating the chat ID."},{"code":400,"name":"CHAT_INVALID","comment":"Invalid chat."},{"code":400,"name":"CHAT_TITLE_EMPTY","comment":"No chat title provided."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"TTL_PERIOD_INVALID","comment":"The specified TTL period is invalid."},{"code":400,"name":"USERS_TOO_FEW","comment":"Not enough users (to create a chat, for example)."},{"code":406,"name":"USER_RESTRICTED","comment":"You're spamreported, you can't create channels or chats."}],"available":"user"},{"kind":"method","name":"messages.getDhConfig","type":"messages.DhConfig","id":651135312,"comment":"Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.","arguments":[{"name":"version","type":"int","comment":"Value of the version parameter from {@link messages.RawDhConfig}, available at the client"},{"name":"random_length","type":"int","comment":"Length of the required random sequence"}],"throws":[{"code":400,"name":"RANDOM_LENGTH_INVALID","comment":"Random length invalid."}],"available":"user"},{"kind":"method","name":"messages.requestEncryption","type":"EncryptedChat","id":4132286275,"comment":"Sends a request to start a secret chat to the user.","arguments":[{"name":"user_id","type":"InputUser","comment":"User ID"},{"name":"random_id","type":"int","comment":"Unique client request ID required to prevent resending. This also doubles as the chat ID."},{"name":"g_a","type":"bytes","comment":"A = g ^ a mod p, see Wikipedia"}],"throws":[{"code":400,"name":"DH_G_A_INVALID","comment":"g_a invalid."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.acceptEncryption","type":"EncryptedChat","id":1035731989,"comment":"Confirms creation of a secret chat","arguments":[{"name":"peer","type":"InputEncryptedChat","comment":"Secret chat ID"},{"name":"g_b","type":"bytes","comment":"B = g ^ b mod p, see Wikipedia"},{"name":"key_fingerprint","type":"long","comment":"64-bit fingerprint of the received key"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"ENCRYPTION_ALREADY_ACCEPTED","comment":"Secret chat already accepted."},{"code":400,"name":"ENCRYPTION_ALREADY_DECLINED","comment":"The secret chat was already declined."}],"available":"user"},{"kind":"method","name":"messages.discardEncryption","type":"Bool","id":4086541984,"comment":"Cancels a request for creation and/or delete info on secret chat.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"delete_history","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to delete the entire chat history for the other user as well"},{"name":"chat_id","type":"int","comment":"Secret chat ID"}],"throws":[{"code":400,"name":"CHAT_ID_EMPTY","comment":"The provided chat ID is empty."},{"code":400,"name":"ENCRYPTION_ALREADY_ACCEPTED","comment":"Secret chat already accepted."},{"code":400,"name":"ENCRYPTION_ALREADY_DECLINED","comment":"The secret chat was already declined."},{"code":400,"name":"ENCRYPTION_ID_INVALID","comment":"The provided secret chat ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.setEncryptedTyping","type":"Bool","id":2031374829,"comment":"Send typing event by the current user to a secret chat.","arguments":[{"name":"peer","type":"InputEncryptedChat","comment":"Secret chat ID"},{"name":"typing","type":"Bool","comment":"Typing.
Possible values:
true, if the user started typing and more than 5 seconds have passed since the last request
false, if the user stopped typing"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."}],"available":"user"},{"kind":"method","name":"messages.readEncryptedHistory","type":"Bool","id":2135648522,"comment":"Marks message history within a secret chat as read.","arguments":[{"name":"peer","type":"InputEncryptedChat","comment":"Secret chat ID"},{"name":"max_date","type":"int","comment":"Maximum date value for received messages in history"}],"throws":[{"code":400,"name":"MAX_DATE_INVALID","comment":"The specified maximum date is invalid."},{"code":400,"name":"MSG_WAIT_FAILED","comment":"A waiting call returned an error."}],"available":"user"},{"kind":"method","name":"messages.sendEncrypted","type":"messages.SentEncryptedMessage","id":1157265941,"comment":"Sends a text message to a secret chat.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Send encrypted message without a notification"},{"name":"peer","type":"InputEncryptedChat","comment":"Secret chat ID"},{"name":"random_id","type":"long","comment":"Unique client message ID, necessary to avoid message resending"},{"name":"data","type":"bytes","comment":"TL-serialization of DecryptedMessage type, encrypted with a key that was created during chat initialization"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"DATA_INVALID","comment":"Encrypted data invalid."},{"code":400,"name":"DATA_TOO_LONG","comment":"Data too long."},{"code":400,"name":"ENCRYPTION_DECLINED","comment":"The secret chat was declined."},{"code":500,"name":"MSG_WAIT_FAILED","comment":"A waiting call returned an error."},{"code":403,"name":"USER_IS_BLOCKED","comment":"You were blocked by this user."}],"available":"user"},{"kind":"method","name":"messages.sendEncryptedFile","type":"messages.SentEncryptedMessage","id":1431914525,"comment":"Sends a message with a file attachment to a secret chat","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to send the file without triggering a notification"},{"name":"peer","type":"InputEncryptedChat","comment":"Secret chat ID"},{"name":"random_id","type":"long","comment":"Unique client message ID necessary to prevent message resending"},{"name":"data","type":"bytes","comment":"TL-serialization of DecryptedMessage type, encrypted with a key generated during chat initialization"},{"name":"file","type":"InputEncryptedFile","comment":"File attachment for the secret chat"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"DATA_TOO_LONG","comment":"Data too long."},{"code":400,"name":"ENCRYPTION_DECLINED","comment":"The secret chat was declined."},{"code":400,"name":"FILE_EMTPY","comment":"An empty file was provided."},{"code":400,"name":"MD5_CHECKSUM_INVALID","comment":"The MD5 checksums do not match."},{"code":400,"name":"MSG_WAIT_FAILED","comment":"A waiting call returned an error."}],"available":"user"},{"kind":"method","name":"messages.sendEncryptedService","type":"messages.SentEncryptedMessage","id":852769188,"comment":"Sends a service message to a secret chat.","arguments":[{"name":"peer","type":"InputEncryptedChat","comment":"Secret chat ID"},{"name":"random_id","type":"long","comment":"Unique client message ID required to prevent message resending"},{"name":"data","type":"bytes","comment":"TL-serialization of DecryptedMessage type, encrypted with a key generated during chat initialization"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"DATA_INVALID","comment":"Encrypted data invalid."},{"code":400,"name":"ENCRYPTION_DECLINED","comment":"The secret chat was declined."},{"code":400,"name":"ENCRYPTION_ID_INVALID","comment":"The provided secret chat ID is invalid."},{"code":500,"name":"MSG_WAIT_FAILED","comment":"A waiting call returned an error."},{"code":403,"name":"USER_DELETED","comment":"You can't send this secret message because the other participant deleted their account."},{"code":403,"name":"USER_IS_BLOCKED","comment":"You were blocked by this user."}],"available":"user"},{"kind":"method","name":"messages.receivedQueue","type":"long","typeModifiers":{"isVector":true},"id":1436924774,"comment":"Confirms receipt of messages in a secret chat by client, cancels push notifications.
\nThe method returns a list of random_ids of messages for which push notifications were cancelled.","arguments":[{"name":"max_qts","type":"int","comment":"Maximum qts value available at the client"}],"throws":[{"code":400,"name":"MAX_QTS_INVALID","comment":"The specified max_qts is invalid."},{"code":500,"name":"MSG_WAIT_FAILED","comment":"A waiting call returned an error."}],"available":"user"},{"kind":"method","name":"messages.reportEncryptedSpam","type":"Bool","id":1259113487,"comment":"Report a secret chat for spam","arguments":[{"name":"peer","type":"InputEncryptedChat","comment":"The secret chat to report"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."}],"available":"user"},{"kind":"method","name":"messages.readMessageContents","type":"messages.AffectedMessages","typeModifiers":{"constructorId":2228326789},"id":916930423,"comment":"Notifies the sender about the recipient having listened a voice message or watched a video.","arguments":[{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"Message ID list"}],"available":"user"},{"kind":"method","name":"messages.getStickers","type":"messages.Stickers","id":3584414625,"comment":"Get stickers by emoji","arguments":[{"name":"emoticon","type":"string","comment":"The emoji"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":400,"name":"EMOTICON_EMPTY","comment":"The emoji is empty."}],"available":"user"},{"kind":"method","name":"messages.getAllStickers","type":"messages.AllStickers","id":3097534888,"comment":"Get all installed stickers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getWebPagePreview","type":"MessageMedia","id":2338894028,"comment":"Get preview of webpage","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"message","type":"string","comment":"Message from which to extract the preview"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Message entities for styled text"}],"throws":[{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":400,"name":"MESSAGE_EMPTY","comment":"The provided message is empty."}],"available":"user"},{"kind":"method","name":"messages.exportChatInvite","type":"ExportedChatInvite","id":2687296981,"comment":"Export an invite link for a chat","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"legacy_revoke_permanent","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Legacy flag, reproducing legacy behavior of this method: if set, revokes all previous links before creating a new one. Kept for bot API BC, should not be used by modern clients."},{"name":"request_needed","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether admin confirmation is required before admitting each separate user into the chat"},{"name":"peer","type":"InputPeer","comment":"Chat"},{"name":"expire_date","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Expiration date"},{"name":"usage_limit","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Maximum number of users that can join using this link"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"Description of the invite link, visible only to administrators"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"EXPIRE_DATE_INVALID","comment":"The specified expiration date is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USAGE_LIMIT_INVALID","comment":"The specified usage limit is invalid."}],"available":"both"},{"kind":"method","name":"messages.checkChatInvite","type":"ChatInvite","id":1051570619,"comment":"Check the validity of a chat invite link and get basic info about it","arguments":[{"name":"hash","type":"string","comment":"Invite hash from chat invite deep link ยป."}],"throws":[{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"INVITE_HASH_EMPTY","comment":"The invite hash is empty."},{"code":406,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."},{"code":400,"name":"INVITE_HASH_INVALID","comment":"The invite hash is invalid."}],"available":"user"},{"kind":"method","name":"messages.importChatInvite","type":"Updates","id":1817183516,"comment":"Import a chat invite and join a private chat/supergroup/channel","arguments":[{"name":"hash","type":"string","comment":"hash from a chat invite deep link"}],"throws":[{"code":400,"name":"CHANNELS_TOO_MUCH","comment":"You have joined too many channels/supergroups."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_INVALID","comment":"Invalid chat."},{"code":400,"name":"INVITE_HASH_EMPTY","comment":"The invite hash is empty."},{"code":406,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."},{"code":400,"name":"INVITE_HASH_INVALID","comment":"The invite hash is invalid."},{"code":400,"name":"INVITE_REQUEST_SENT","comment":"You have successfully requested to join this chat or channel."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USERS_TOO_MUCH","comment":"The maximum number of users has been exceeded (to create a chat, for example)."},{"code":400,"name":"USER_ALREADY_PARTICIPANT","comment":"The user is already in the group."},{"code":400,"name":"USER_CHANNELS_TOO_MUCH","comment":"One of the users you tried to add is already in too many channels/supergroups."}],"available":"user"},{"kind":"method","name":"messages.getStickerSet","type":"messages.StickerSet","id":3365989492,"comment":"Get info about a stickerset","arguments":[{"name":"stickerset","type":"InputStickerSet","comment":"Stickerset"},{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":400,"name":"EMOTICON_STICKERPACK_MISSING","comment":"inputStickerSetDice.emoji cannot be empty."},{"code":406,"name":"STICKERSET_INVALID","comment":"The provided sticker set is invalid."}],"available":"both"},{"kind":"method","name":"messages.installStickerSet","type":"messages.StickerSetInstallResult","id":3348096096,"comment":"Install a stickerset","arguments":[{"name":"stickerset","type":"InputStickerSet","comment":"Stickerset to install"},{"name":"archived","type":"Bool","comment":"Whether to archive stickerset"}],"throws":[{"code":406,"name":"STICKERSET_INVALID","comment":"The provided sticker set is invalid."}],"available":"user"},{"kind":"method","name":"messages.uninstallStickerSet","type":"Bool","id":4184757726,"comment":"Uninstall a stickerset","arguments":[{"name":"stickerset","type":"InputStickerSet","comment":"The stickerset to uninstall"}],"throws":[{"code":406,"name":"STICKERSET_INVALID","comment":"The provided sticker set is invalid."}],"available":"user"},{"kind":"method","name":"messages.startBot","type":"Updates","id":3873403768,"comment":"Start a conversation with a bot using a deep linking parameter","arguments":[{"name":"bot","type":"InputUser","comment":"The bot"},{"name":"peer","type":"InputPeer","comment":"The chat where to start the bot, can be the bot's private chat or a group"},{"name":"random_id","type":"long","comment":"Random ID to avoid resending the same message"},{"name":"start_param","type":"string","comment":"Deep linking parameter"}],"throws":[{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":500,"name":"RANDOM_ID_DUPLICATE","comment":"You provided a random ID that was already used."},{"code":400,"name":"START_PARAM_EMPTY","comment":"The start parameter is empty."},{"code":400,"name":"START_PARAM_INVALID","comment":"Start parameter invalid."},{"code":400,"name":"START_PARAM_TOO_LONG","comment":"Start parameter is too long."}],"available":"user"},{"kind":"method","name":"messages.getMessagesViews","type":"messages.MessageViews","typeModifiers":{"constructorId":3066361155},"id":1468322785,"comment":"Get and increase the view counter of a message sent or forwarded from a channel","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the message was found"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"ID of message"},{"name":"increment","type":"Bool","comment":"Whether to mark the message as viewed and increment the view counter"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.editChatAdmin","type":"Bool","id":2824589762,"comment":"Make a user admin in a basic group.","arguments":[{"name":"chat_id","type":"int53","comment":"The ID of the group"},{"name":"user_id","type":"InputUser","comment":"The user to make admin"},{"name":"is_admin","type":"Bool","comment":"Whether to make them admin"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."},{"code":400,"name":"USER_NOT_PARTICIPANT","comment":"You're not a member of this supergroup/channel."}],"available":"user"},{"kind":"method","name":"messages.migrateChat","type":"Updates","id":2726777625,"comment":"Turn a basic group into a supergroup","arguments":[{"name":"chat_id","type":"int53","comment":"Basic group to migrate"}],"throws":[{"code":400,"name":"CHANNELS_TOO_MUCH","comment":"You have joined too many channels/supergroups."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":500,"name":"CHAT_INVALID","comment":"Invalid chat."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.searchGlobal","type":"messages.Messages","id":1271290010,"comment":"Search for messages and peers globally","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"broadcasts_only","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"folder_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Peer folder ID, for more info click here"},{"name":"q","type":"string","comment":"Query"},{"name":"filter","type":"MessagesFilter","comment":"Global search filter"},{"name":"min_date","type":"int","comment":"If a positive value was specified, the method will return only messages with date bigger than min_date"},{"name":"max_date","type":"int","comment":"If a positive value was transferred, the method will return only messages with date smaller than max_date"},{"name":"offset_rate","type":"int","comment":"Initially 0, then set to the {@link messages.RawMessagesSlice}"},{"name":"offset_peer","type":"InputPeer","comment":"Offsets for pagination, for more info click here"},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Offsets for pagination, for more info click here"}],"throws":[{"code":400,"name":"FOLDER_ID_INVALID","comment":"Invalid folder ID."},{"code":400,"name":"SEARCH_QUERY_EMPTY","comment":"The search query is empty."}],"available":"user"},{"kind":"method","name":"messages.reorderStickerSets","type":"Bool","id":2016638777,"comment":"Reorder installed stickersets","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"masks","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Reorder mask stickersets"},{"name":"emojis","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Reorder custom emoji stickersets"},{"name":"order","type":"long","typeModifiers":{"isVector":true},"comment":"New stickerset order by stickerset IDs"}],"available":"user"},{"kind":"method","name":"messages.getDocumentByHash","type":"Document","id":2985428511,"comment":"Get a document by its SHA256 hash, mainly used for gifs","arguments":[{"name":"sha256","type":"bytes","comment":"SHA256 of file"},{"name":"size","type":"int53","comment":"Size of the file in bytes"},{"name":"mime_type","type":"string","comment":"Mime type"}],"throws":[{"code":400,"name":"SHA256_HASH_INVALID","comment":"The provided SHA256 hash is invalid."}],"available":"both"},{"kind":"method","name":"messages.getSavedGifs","type":"messages.SavedGifs","id":1559270965,"comment":"Get saved GIFs","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.saveGif","type":"Bool","id":846868683,"comment":"Add GIF to saved gifs list","arguments":[{"name":"id","type":"InputDocument","comment":"GIF to save"},{"name":"unsave","type":"Bool","comment":"Whether to remove GIF from saved gifs list"}],"throws":[{"code":400,"name":"GIF_ID_INVALID","comment":"The provided GIF ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.getInlineBotResults","type":"messages.BotResults","typeModifiers":{"constructorId":3760321270},"id":1364105629,"comment":"Query an inline bot","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"bot","type":"InputUser","comment":"The bot to query"},{"name":"peer","type":"InputPeer","comment":"The currently opened chat"},{"name":"geo_point","type":"InputGeoPoint","typeModifiers":{"predicate":"flags.0"},"comment":"The geolocation, if requested"},{"name":"query","type":"string","comment":"The query"},{"name":"offset","type":"string","comment":"The offset within the results, will be passed directly as-is to the bot."}],"throws":[{"code":400,"name":"BOT_INLINE_DISABLED","comment":"This bot can't be used in inline mode."},{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."},{"code":400,"name":"BOT_RESPONSE_TIMEOUT","comment":"A timeout occurred while fetching data from the bot."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":-503,"name":"Timeout","comment":"Timeout while fetching data."}],"available":"user"},{"kind":"method","name":"messages.setInlineBotResults","type":"Bool","id":3138561049,"comment":"Answer an inline query, for bots only","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"gallery","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set this flag if the results are composed of media files"},{"name":"private","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Set this flag if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query"},{"name":"query_id","type":"long","comment":"Unique identifier for the answered query"},{"name":"results","type":"InputBotInlineResult","typeModifiers":{"isVector":true},"comment":"Vector of results for the inline query"},{"name":"cache_time","type":"int","comment":"The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300."},{"name":"next_offset","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes."},{"name":"switch_pm","type":"InlineBotSwitchPM","typeModifiers":{"predicate":"flags.3"},"comment":"If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to a private chat with the bot and sends the bot a start message with a certain parameter."},{"name":"switch_webview","type":"InlineBotWebView","typeModifiers":{"predicate":"flags.4"},"comment":"If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to the specified inline mode mini app."}],"throws":[{"code":400,"name":"ARTICLE_TITLE_EMPTY","comment":"The title of the article is empty."},{"code":400,"name":"AUDIO_CONTENT_URL_EMPTY","comment":"The remote URL specified in the content field is empty."},{"code":400,"name":"AUDIO_TITLE_EMPTY","comment":"An empty audio title was provided."},{"code":400,"name":"BUTTON_DATA_INVALID","comment":"The data of one or more of the buttons you provided is invalid."},{"code":400,"name":"BUTTON_TYPE_INVALID","comment":"The type of one or more of the buttons you provided is invalid."},{"code":400,"name":"BUTTON_URL_INVALID","comment":"Button URL invalid."},{"code":400,"name":"DOCUMENT_INVALID","comment":"The specified document is invalid."},{"code":400,"name":"FILE_CONTENT_TYPE_INVALID","comment":"File content-type is invalid."},{"code":400,"name":"FILE_TITLE_EMPTY","comment":"An empty file title was specified."},{"code":400,"name":"GIF_CONTENT_TYPE_INVALID","comment":"GIF content-type invalid."},{"code":400,"name":"MESSAGE_EMPTY","comment":"The provided message is empty."},{"code":400,"name":"MESSAGE_TOO_LONG","comment":"The provided message is too long."},{"code":400,"name":"NEXT_OFFSET_INVALID","comment":"The specified offset is longer than 64 bytes."},{"code":400,"name":"PHOTO_CONTENT_TYPE_INVALID","comment":"Photo mime-type invalid."},{"code":400,"name":"PHOTO_CONTENT_URL_EMPTY","comment":"Photo URL invalid."},{"code":400,"name":"PHOTO_INVALID","comment":"Photo invalid."},{"code":400,"name":"PHOTO_THUMB_URL_EMPTY","comment":"Photo thumbnail URL is empty."},{"code":400,"name":"QUERY_ID_INVALID","comment":"The query ID is invalid."},{"code":400,"name":"REPLY_MARKUP_INVALID","comment":"The provided reply markup is invalid."},{"code":400,"name":"RESULTS_TOO_MUCH","comment":"Too many results were provided."},{"code":400,"name":"RESULT_ID_DUPLICATE","comment":"You provided a duplicate result ID."},{"code":400,"name":"RESULT_ID_INVALID","comment":"One of the specified result IDs is invalid."},{"code":400,"name":"RESULT_TYPE_INVALID","comment":"Result type invalid."},{"code":400,"name":"SEND_MESSAGE_MEDIA_INVALID","comment":"Invalid media provided."},{"code":400,"name":"SEND_MESSAGE_TYPE_INVALID","comment":"The message type is invalid."},{"code":400,"name":"START_PARAM_EMPTY","comment":"The start parameter is empty."},{"code":400,"name":"START_PARAM_INVALID","comment":"Start parameter invalid."},{"code":400,"name":"STICKER_DOCUMENT_INVALID","comment":"The specified sticker document is invalid."},{"code":400,"name":"SWITCH_PM_TEXT_EMPTY","comment":"The switch_pm.text field was empty."},{"code":400,"name":"URL_INVALID","comment":"Invalid URL provided."},{"code":403,"name":"USER_BOT_INVALID","comment":"User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts."},{"code":400,"name":"VIDEO_TITLE_EMPTY","comment":"The specified video title is empty."},{"code":400,"name":"WEBDOCUMENT_INVALID","comment":"Invalid webdocument URL provided."},{"code":400,"name":"WEBDOCUMENT_MIME_INVALID","comment":"Invalid webdocument mime type provided."},{"code":400,"name":"WEBDOCUMENT_SIZE_TOO_BIG","comment":"Webdocument is too big!"},{"code":400,"name":"WEBDOCUMENT_URL_INVALID","comment":"The specified webdocument URL is invalid."}],"available":"bot"},{"kind":"method","name":"messages.sendInlineBotResult","id":1052698730,"type":"Updates","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether to send the message silently (no notification will be triggered on the other client)"},{"name":"background","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether to send the message in background"},{"name":"clear_draft","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Whether to clear the draft"},{"name":"hide_via","type":"true","typeModifiers":{"predicate":"flags.11"},"comment":"Whether to hide the via @botname in the resulting message (only for bot usernames encountered in the {@link RawConfig})"},{"name":"peer","type":"InputPeer","comment":"Destination"},{"name":"reply_to","type":"InputReplyTo","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates that the message should be sent in reply to the specified message or story."},{"name":"random_id","type":"long","comment":"Random ID to avoid resending the same query"},{"name":"query_id","type":"long","comment":"Query ID from {@link messages.RawGetInlineBotResultsRequest}"},{"name":"id","type":"string","comment":"Result ID from {@link messages.RawGetInlineBotResultsRequest}"},{"name":"schedule_date","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Scheduled message date for scheduled messages"},{"name":"send_as","type":"InputPeer","typeModifiers":{"predicate":"flags.13"},"comment":"Send this message as the specified peer"},{"name":"quick_reply_shortcut","type":"InputQuickReplyShortcut","typeModifiers":{"predicate":"flags.17"}}],"comment":"Send a result obtained using {@link messages.RawGetInlineBotResultsRequest}.","throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_GUEST_SEND_FORBIDDEN","comment":"You join the discussion group before commenting, see here ยป for more info."},{"code":400,"name":"CHAT_RESTRICTED","comment":"You can't send messages in this chat, you were restricted."},{"code":403,"name":"CHAT_SEND_AUDIOS_FORBIDDEN","comment":"You can't send audio messages in this chat."},{"code":403,"name":"CHAT_SEND_GAME_FORBIDDEN","comment":"You can't send a game to this chat."},{"code":403,"name":"CHAT_SEND_GIFS_FORBIDDEN","comment":"You can't send gifs in this chat."},{"code":403,"name":"CHAT_SEND_INLINE_FORBIDDEN","comment":"You can't send inline messages in this group."},{"code":403,"name":"CHAT_SEND_MEDIA_FORBIDDEN","comment":"You can't send media in this chat."},{"code":403,"name":"CHAT_SEND_PHOTOS_FORBIDDEN","comment":"You can't send photos in this chat."},{"code":403,"name":"CHAT_SEND_PLAIN_FORBIDDEN","comment":"You can't send non-media (text) messages in this chat."},{"code":403,"name":"CHAT_SEND_STICKERS_FORBIDDEN","comment":"You can't send stickers in this chat."},{"code":403,"name":"CHAT_SEND_VOICES_FORBIDDEN","comment":"You can't send voice recordings in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":400,"name":"INLINE_RESULT_EXPIRED","comment":"The inline query expired."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MEDIA_EMPTY","comment":"The provided media object is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"QUERY_ID_EMPTY","comment":"The query ID is empty."},{"code":500,"name":"RANDOM_ID_DUPLICATE","comment":"You provided a random ID that was already used."},{"code":400,"name":"RESULT_ID_EMPTY","comment":"Result ID empty."},{"code":400,"name":"RESULT_ID_INVALID","comment":"One of the specified result IDs is invalid."},{"code":400,"name":"SCHEDULE_DATE_TOO_LATE","comment":"You can't schedule a message this far in the future."},{"code":400,"name":"SCHEDULE_TOO_MUCH","comment":"There are too many scheduled messages."},{"code":500,"name":"SEND_MEDIA_INVALID","comment":"The specified media is invalid."},{"code":420,"name":"SLOWMODE_WAIT_%d","comment":"Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat."},{"code":400,"name":"TOPIC_DELETED","comment":"The specified topic was deleted."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."},{"code":400,"name":"VOICE_MESSAGES_FORBIDDEN","comment":"This user's privacy settings forbid you from sending voice messages."},{"code":400,"name":"WEBPAGE_CURL_FAILED","comment":"Failure while fetching the webpage with cURL."},{"code":400,"name":"WEBPAGE_MEDIA_EMPTY","comment":"Webpage media empty."},{"code":400,"name":"YOU_BLOCKED_USER","comment":"You blocked this user."}],"available":"user"},{"kind":"method","name":"messages.getMessageEditData","type":"messages.MessageEditData","typeModifiers":{"constructorId":649453030},"id":4255550774,"comment":"Find out if a media message's caption can be edited","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the media was sent"},{"name":"id","type":"int","comment":"ID of message"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":403,"name":"MESSAGE_AUTHOR_REQUIRED","comment":"Message author required."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.editMessage","id":3755032581,"type":"Updates","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"no_webpage","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Disable webpage preview"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"peer","type":"InputPeer","comment":"Where was the message sent"},{"name":"id","type":"int","comment":"ID of the message to edit"},{"name":"message","type":"string","typeModifiers":{"predicate":"flags.11"},"comment":"New message"},{"name":"media","type":"InputMedia","typeModifiers":{"predicate":"flags.14"},"comment":"New attached media"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Reply markup for inline keyboards"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Message entities for styled text"},{"name":"schedule_date","type":"int","typeModifiers":{"predicate":"flags.15"},"comment":"Scheduled message date for scheduled messages"},{"name":"quick_reply_shortcut_id","type":"int","typeModifiers":{"predicate":"flags.17"}}],"comment":"Edit message","throws":[{"code":400,"name":"BOT_DOMAIN_INVALID","comment":"Bot domain invalid."},{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."},{"code":400,"name":"BUTTON_DATA_INVALID","comment":"The data of one or more of the buttons you provided is invalid."},{"code":400,"name":"BUTTON_TYPE_INVALID","comment":"The type of one or more of the buttons you provided is invalid."},{"code":400,"name":"BUTTON_URL_INVALID","comment":"Button URL invalid."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_FORWARDS_RESTRICTED","comment":"You can't forward messages from a protected chat."},{"code":403,"name":"CHAT_SEND_GIFS_FORBIDDEN","comment":"You can't send gifs in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"DOCUMENT_INVALID","comment":"The specified document is invalid."},{"code":400,"name":"ENTITIES_TOO_LONG","comment":"You provided too many styled message entities."},{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":400,"name":"FILE_PARTS_INVALID","comment":"The number of file parts is invalid."},{"code":400,"name":"IMAGE_PROCESS_FAILED","comment":"Failure while processing image."},{"code":403,"name":"INLINE_BOT_REQUIRED","comment":"Only the inline bot can edit message."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MEDIA_CAPTION_TOO_LONG","comment":"The caption is too long."},{"code":400,"name":"MEDIA_EMPTY","comment":"The provided media object is invalid."},{"code":400,"name":"MEDIA_GROUPED_INVALID","comment":"You tried to send media of different types in an album."},{"code":400,"name":"MEDIA_INVALID","comment":"Media invalid."},{"code":400,"name":"MEDIA_NEW_INVALID","comment":"The new media is invalid."},{"code":400,"name":"MEDIA_PREV_INVALID","comment":"Previous media invalid."},{"code":400,"name":"MEDIA_TTL_INVALID","comment":"The specified media TTL is invalid."},{"code":403,"name":"MESSAGE_AUTHOR_REQUIRED","comment":"Message author required."},{"code":400,"name":"MESSAGE_EDIT_TIME_EXPIRED","comment":"You can't edit this message anymore, too much time has passed since its creation."},{"code":400,"name":"MESSAGE_EMPTY","comment":"The provided message is empty."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"MESSAGE_NOT_MODIFIED","comment":"The provided message data is identical to the previous message data, the message wasn't modified."},{"code":400,"name":"MESSAGE_TOO_LONG","comment":"The provided message is too long."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":500,"name":"MSG_WAIT_FAILED","comment":"A waiting call returned an error."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"REPLY_MARKUP_INVALID","comment":"The provided reply markup is invalid."},{"code":400,"name":"REPLY_MARKUP_TOO_LONG","comment":"The specified reply_markup is too long."},{"code":400,"name":"SCHEDULE_DATE_INVALID","comment":"Invalid schedule date provided."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."}],"available":"both"},{"kind":"method","name":"messages.editInlineBotMessage","type":"Bool","id":2203418042,"comment":"Edit an inline bot message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"no_webpage","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Disable webpage preview"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"id","type":"InputBotInlineMessageID","comment":"Sent inline message ID"},{"name":"message","type":"string","typeModifiers":{"predicate":"flags.11"},"comment":"Message"},{"name":"media","type":"InputMedia","typeModifiers":{"predicate":"flags.14"},"comment":"Media"},{"name":"reply_markup","type":"ReplyMarkup","typeModifiers":{"predicate":"flags.2"},"comment":"Reply markup for inline keyboards"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Message entities for styled text"}],"throws":[{"code":400,"name":"BUTTON_DATA_INVALID","comment":"The data of one or more of the buttons you provided is invalid."},{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"MESSAGE_NOT_MODIFIED","comment":"The provided message data is identical to the previous message data, the message wasn't modified."}],"available":"both"},{"kind":"method","name":"messages.getBotCallbackAnswer","type":"messages.BotCallbackAnswer","typeModifiers":{"constructorId":911761060},"id":2470627847,"comment":"Press an inline callback button and get a callback answer from the bot","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"game","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this is a \"play game\" button"},{"name":"peer","type":"InputPeer","comment":"Where was the inline keyboard sent"},{"name":"msg_id","type":"int","comment":"ID of the Message with the inline keyboard"},{"name":"data","type":"bytes","typeModifiers":{"predicate":"flags.0"},"comment":"Callback data"},{"name":"password","type":"InputCheckPasswordSRP","typeModifiers":{"predicate":"flags.2"},"comment":"For buttons {@link RawKeyboardButtonCallback}, the SRP payload generated using SRP."}],"throws":[{"code":400,"name":"BOT_RESPONSE_TIMEOUT","comment":"A timeout occurred while fetching data from the bot."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"DATA_INVALID","comment":"Encrypted data invalid."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":-503,"name":"Timeout","comment":"Timeout while fetching data."}],"available":"user"},{"kind":"method","name":"messages.setBotCallbackAnswer","type":"Bool","id":3582923530,"comment":"Set the callback answer to a user button press (bots only)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"alert","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to show the message as a popup instead of a toast notification"},{"name":"query_id","type":"long","comment":"Query ID"},{"name":"message","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Popup to show"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"URL to open"},{"name":"cache_time","type":"int","comment":"Cache validity"}],"throws":[{"code":400,"name":"MESSAGE_TOO_LONG","comment":"The provided message is too long."},{"code":400,"name":"QUERY_ID_INVALID","comment":"The query ID is invalid."},{"code":400,"name":"URL_INVALID","comment":"Invalid URL provided."},{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."}],"available":"bot"},{"kind":"method","name":"messages.getPeerDialogs","type":"messages.PeerDialogs","typeModifiers":{"constructorId":863093588},"id":3832593661,"comment":"Get dialog info of specified peers","arguments":[{"name":"peers","type":"InputDialogPeer","typeModifiers":{"isVector":true},"comment":"Peers"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.saveDraft","id":3547514318,"type":"Bool","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"no_webpage","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Disable generation of the webpage preview"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"reply_to","type":"InputReplyTo","typeModifiers":{"predicate":"flags.4"},"comment":"If set, indicates that the message should be sent in reply to the specified message or story."},{"name":"peer","type":"InputPeer","comment":"Destination of the message that should be sent"},{"name":"message","type":"string","comment":"The draft"},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Message entities for styled text"},{"name":"media","type":"InputMedia","typeModifiers":{"predicate":"flags.5"},"comment":"Attached media"},{"name":"effect","type":"long","typeModifiers":{"predicate":"flags.7"}}],"comment":"Save a message draft associated to a chat.","throws":[{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getAllDrafts","type":"Updates","id":1782549861,"comment":"Return all message drafts.
\nReturns all the latest {@link RawUpdateDraftMessage} updates related to all chats with drafts.","arguments":[],"available":"user"},{"kind":"method","name":"messages.getFeaturedStickers","type":"messages.FeaturedStickers","id":1685588756,"comment":"Get featured stickers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.readFeaturedStickers","type":"Bool","id":1527873830,"comment":"Mark new featured stickers as read","arguments":[{"name":"id","type":"long","typeModifiers":{"isVector":true},"comment":"IDs of stickersets to mark as read"}],"available":"user"},{"kind":"method","name":"messages.getRecentStickers","type":"messages.RecentStickers","id":2645114939,"comment":"Get recent stickers","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"attached","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Get stickers recently attached to photo or video files"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.saveRecentSticker","type":"Bool","id":958863608,"comment":"Add/remove sticker from recent stickers list","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"attached","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to add/remove stickers recently attached to photo or video files"},{"name":"id","type":"InputDocument","comment":"Sticker"},{"name":"unsave","type":"Bool","comment":"Whether to save or unsave the sticker"}],"throws":[{"code":400,"name":"STICKER_ID_INVALID","comment":"The provided sticker ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.clearRecentStickers","type":"Bool","id":2308530221,"comment":"Clear recent stickers","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"attached","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set this flag to clear the list of stickers recently attached to photo or video files"}],"available":"user"},{"kind":"method","name":"messages.getArchivedStickers","type":"messages.ArchivedStickers","typeModifiers":{"constructorId":1338747336},"id":1475442322,"comment":"Get all archived stickers","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"masks","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Get mask stickers"},{"name":"emojis","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Get custom emoji stickers"},{"name":"offset_id","type":"long","comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"available":"user"},{"kind":"method","name":"messages.getMaskStickers","type":"messages.AllStickers","id":1678738104,"comment":"Get installed mask stickers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getAttachedStickers","type":"StickerSetCovered","typeModifiers":{"isVector":true},"id":3428542412,"comment":"Get stickers attached to a photo or video","arguments":[{"name":"media","type":"InputStickeredMedia","comment":"Stickered media"}],"available":"user"},{"kind":"method","name":"messages.setGameScore","type":"Updates","id":2398678208,"comment":"Use this method to set the score of the specified user in a game sent as a normal message (bots only).","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"edit_message","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set this flag if the game message should be automatically edited to include the current scoreboard"},{"name":"force","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters"},{"name":"peer","type":"InputPeer","comment":"Unique identifier of target chat"},{"name":"id","type":"int","comment":"Identifier of the sent message"},{"name":"user_id","type":"InputUser","comment":"User identifier"},{"name":"score","type":"int","comment":"New score"}],"throws":[{"code":400,"name":"BOT_SCORE_NOT_MODIFIED","comment":"The score wasn't modified."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"SCORE_INVALID","comment":"The specified game score is invalid."},{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."}],"available":"bot"},{"kind":"method","name":"messages.setInlineGameScore","type":"Bool","id":363700068,"comment":"Use this method to set the score of the specified user in a game sent as an inline message (bots only).","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"edit_message","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set this flag if the game message should be automatically edited to include the current scoreboard"},{"name":"force","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters"},{"name":"id","type":"InputBotInlineMessageID","comment":"ID of the inline message"},{"name":"user_id","type":"InputUser","comment":"User identifier"},{"name":"score","type":"int","comment":"New score"}],"throws":[{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."}],"available":"bot"},{"kind":"method","name":"messages.getGameHighScores","type":"messages.HighScores","typeModifiers":{"constructorId":2587622809},"id":3894568093,"comment":"Get highscores of a game","arguments":[{"name":"peer","type":"InputPeer","comment":"Where was the game sent"},{"name":"id","type":"int","comment":"ID of message with game media attachment"},{"name":"user_id","type":"InputUser","comment":"Get high scores made by a certain user"}],"throws":[{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."}],"available":"bot"},{"kind":"method","name":"messages.getInlineGameHighScores","type":"messages.HighScores","typeModifiers":{"constructorId":2587622809},"id":258170395,"comment":"Get highscores of a game sent using an inline bot","arguments":[{"name":"id","type":"InputBotInlineMessageID","comment":"ID of inline message"},{"name":"user_id","type":"InputUser","comment":"Get high scores of a certain user"}],"throws":[{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."}],"available":"bot"},{"kind":"method","name":"messages.getCommonChats","type":"messages.Chats","id":3826032900,"comment":"Get chats in common with a user","arguments":[{"name":"user_id","type":"InputUser","comment":"User ID"},{"name":"max_id","type":"int53","comment":"Maximum ID of chat to return (see pagination)"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.getWebPage","type":"messages.WebPage","typeModifiers":{"constructorId":4250800829},"id":2375455395,"comment":"Get instant view page","arguments":[{"name":"url","type":"string","comment":"URL of IV page to fetch"},{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":400,"name":"WC_CONVERT_URL_INVALID","comment":"WC convert URL invalid."}],"available":"user"},{"kind":"method","name":"messages.toggleDialogPin","type":"Bool","id":2805064279,"comment":"Pin/unpin a dialog","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to pin or unpin the dialog"},{"name":"peer","type":"InputDialogPeer","comment":"The dialog to pin"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"PEER_HISTORY_EMPTY","comment":"You can't pin an empty chat with a user."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PINNED_DIALOGS_TOO_MUCH","comment":"Too many pinned dialogs."}],"available":"user"},{"kind":"method","name":"messages.reorderPinnedDialogs","type":"Bool","id":991616823,"comment":"Reorder pinned dialogs","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"force","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, dialogs pinned server-side but not present in the order field will be unpinned."},{"name":"folder_id","type":"int","comment":"Peer folder ID, for more info click here"},{"name":"order","type":"InputDialogPeer","typeModifiers":{"isVector":true},"comment":"New dialog order"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getPinnedDialogs","type":"messages.PeerDialogs","typeModifiers":{"constructorId":863093588},"id":3602468338,"comment":"Get pinned dialogs","arguments":[{"name":"folder_id","type":"int","comment":"Peer folder ID, for more info click here"}],"throws":[{"code":400,"name":"FOLDER_ID_INVALID","comment":"Invalid folder ID."}],"available":"user"},{"kind":"method","name":"messages.setBotShippingResults","type":"Bool","id":3858133754,"comment":"If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an {@link RawUpdateBotShippingQuery} update. Use this method to reply to shipping queries.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"query_id","type":"long","comment":"Unique identifier for the query to be answered"},{"name":"error","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Error message in human readable form that explains why it is impossible to complete the order (e.g. \"Sorry, delivery to your desired address is unavailable\"). Telegram will display this message to the user."},{"name":"shipping_options","type":"ShippingOption","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"A vector of available shipping options."}],"throws":[{"code":400,"name":"QUERY_ID_INVALID","comment":"The query ID is invalid."}],"available":"both"},{"kind":"method","name":"messages.setBotPrecheckoutResults","type":"Bool","id":163765653,"comment":"Once the user has confirmed their payment and shipping details, the bot receives an {@link RawUpdateBotPrecheckoutQuery} update.
\nUse this method to respond to such pre-checkout queries.
\nNote: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"success","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Set this flag if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order, otherwise do not set it, and set the error field, instead"},{"name":"query_id","type":"long","comment":"Unique identifier for the query to be answered"},{"name":"error","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Required if the success isn't set. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. \"Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!\"). Telegram will display this message to the user."}],"throws":[{"code":400,"name":"ERROR_TEXT_EMPTY","comment":"The provided error message is empty."}],"available":"both"},{"kind":"method","name":"messages.uploadMedia","id":345405816,"type":"MessageMedia","arguments":[{"name":"flags","type":"#"},{"name":"business_connection_id","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"peer","type":"InputPeer","comment":"The chat, can be {@link RawInputPeerEmpty} for bots and {@link RawInputPeerSelf} for users."},{"name":"media","type":"InputMedia","comment":"File uploaded in chunks as described in files ยป"}],"comment":"Upload a file and associate it to a chat (without actually sending it to the chat)","throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_RESTRICTED","comment":"You can't send messages in this chat, you were restricted."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"FILE_PARTS_INVALID","comment":"The number of file parts is invalid."},{"code":400,"name":"FILE_PART_LENGTH_INVALID","comment":"The length of a file part is invalid."},{"code":400,"name":"IMAGE_PROCESS_FAILED","comment":"Failure while processing image."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MEDIA_INVALID","comment":"Media invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PHOTO_EXT_INVALID","comment":"The extension of the photo is invalid."},{"code":400,"name":"PHOTO_INVALID_DIMENSIONS","comment":"The photo dimensions are invalid."},{"code":400,"name":"PHOTO_SAVE_FILE_INVALID","comment":"Internal issues, try again later."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."},{"code":400,"name":"WEBPAGE_CURL_FAILED","comment":"Failure while fetching the webpage with cURL."}],"available":"both"},{"kind":"method","name":"messages.sendScreenshotNotification","type":"Updates","id":2705348631,"comment":"Notify the other user in a private chat that a screenshot of the chat was taken","arguments":[{"name":"peer","type":"InputPeer","comment":"Other user"},{"name":"reply_to","type":"InputReplyTo","comment":"Indicates the message that was screenshotted (the specified message ID can also be 0 to avoid indicating any specific message)."},{"name":"random_id","type":"long","comment":"Random ID to avoid message resending"}],"throws":[{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"REPLY_MESSAGE_ID_INVALID","comment":"The specified reply-to message ID is invalid."},{"code":400,"name":"STORY_ID_INVALID","comment":"The specified story ID is invalid."},{"code":400,"name":"YOU_BLOCKED_USER","comment":"You blocked this user."}],"available":"user"},{"kind":"method","name":"messages.getFavedStickers","type":"messages.FavedStickers","id":82946729,"comment":"Get faved stickers","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.faveSticker","type":"Bool","id":3120547163,"comment":"Mark or unmark a sticker as favorite","arguments":[{"name":"id","type":"InputDocument","comment":"Sticker in question"},{"name":"unfave","type":"Bool","comment":"Whether to add or remove a sticker from favorites"}],"throws":[{"code":400,"name":"STICKER_ID_INVALID","comment":"The provided sticker ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.getUnreadMentions","type":"messages.Messages","id":4043827088,"comment":"Get unread messages where we were mentioned","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer where to look for mentions"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If set, considers only messages within the specified forum topic"},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"add_offset","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"},{"name":"max_id","type":"int","comment":"Maximum message ID to return, see pagination"},{"name":"min_id","type":"int","comment":"Minimum message ID to return, see pagination"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.readMentions","type":"messages.AffectedHistory","typeModifiers":{"constructorId":3025955281},"id":921026381,"comment":"Mark mentions as read","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Dialog"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Mark as read only mentions within the specified forum topic"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getRecentLocations","type":"messages.Messages","id":1881817312,"comment":"Get live location history of a certain user","arguments":[{"name":"peer","type":"InputPeer","comment":"User"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.sendMultiMedia","id":934757205,"type":"Updates","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether to send the album silently (no notification triggered)"},{"name":"background","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Send in background?"},{"name":"clear_draft","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Whether to clear drafts"},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.14"},"comment":"Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have content protection enabled"},{"name":"update_stickersets_order","type":"true","typeModifiers":{"predicate":"flags.15"},"comment":"Whether to move used stickersets to top, see here for more info on this flag ยป"},{"name":"invert_media","type":"true","typeModifiers":{"predicate":"flags.16"},"comment":"If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."},{"name":"peer","type":"InputPeer","comment":"The destination chat"},{"name":"reply_to","type":"InputReplyTo","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates that the message should be sent in reply to the specified message or story."},{"name":"multi_media","type":"InputSingleMedia","typeModifiers":{"isVector":true},"comment":"The medias to send: note that they must be separately uploaded using {@link messages.RawUploadMediaRequest} first, using raw inputMediaUploaded* constructors is not supported."},{"name":"schedule_date","type":"int","typeModifiers":{"predicate":"flags.10"},"comment":"Scheduled message date for scheduled messages"},{"name":"send_as","type":"InputPeer","typeModifiers":{"predicate":"flags.13"},"comment":"Send this message as the specified peer"},{"name":"quick_reply_shortcut","type":"InputQuickReplyShortcut","typeModifiers":{"predicate":"flags.17"}},{"name":"effect","type":"long","typeModifiers":{"predicate":"flags.18"}}],"comment":"Send an album or grouped media","throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_FORWARDS_RESTRICTED","comment":"You can't forward messages from a protected chat."},{"code":403,"name":"CHAT_SEND_MEDIA_FORBIDDEN","comment":"You can't send media in this chat."},{"code":403,"name":"CHAT_SEND_PHOTOS_FORBIDDEN","comment":"You can't send photos in this chat."},{"code":403,"name":"CHAT_SEND_VIDEOS_FORBIDDEN","comment":"You can't send videos in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":400,"name":"MEDIA_CAPTION_TOO_LONG","comment":"The caption is too long."},{"code":400,"name":"MEDIA_EMPTY","comment":"The provided media object is invalid."},{"code":400,"name":"MEDIA_INVALID","comment":"Media invalid."},{"code":400,"name":"MULTI_MEDIA_TOO_LONG","comment":"Too many media files for album."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":500,"name":"RANDOM_ID_DUPLICATE","comment":"You provided a random ID that was already used."},{"code":400,"name":"RANDOM_ID_EMPTY","comment":"Random ID empty."},{"code":400,"name":"SCHEDULE_DATE_TOO_LATE","comment":"You can't schedule a message this far in the future."},{"code":400,"name":"SCHEDULE_TOO_MUCH","comment":"There are too many scheduled messages."},{"code":400,"name":"SEND_AS_PEER_INVALID","comment":"You can't send messages as the specified peer."},{"code":420,"name":"SLOWMODE_WAIT_%d","comment":"Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat."},{"code":400,"name":"TOPIC_CLOSED","comment":"This topic was closed, you can't send messages to it anymore."},{"code":400,"name":"TOPIC_DELETED","comment":"The specified topic was deleted."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."}],"available":"both"},{"kind":"method","name":"messages.uploadEncryptedFile","type":"EncryptedFile","id":1347929239,"comment":"Upload encrypted file and associate it to a secret chat","arguments":[{"name":"peer","type":"InputEncryptedChat","comment":"The secret chat to associate the file to"},{"name":"file","type":"InputEncryptedFile","comment":"The file"}],"available":"user"},{"kind":"method","name":"messages.searchStickerSets","type":"messages.FoundStickerSets","id":896555914,"comment":"Search for stickersets","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"exclude_featured","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Exclude featured stickersets from results"},{"name":"q","type":"string","comment":"Query string"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getSplitRanges","type":"MessageRange","typeModifiers":{"isVector":true,"constructorId":182649427},"id":486505992,"comment":"Get message ranges for saving the user's chat history","arguments":[],"available":"user"},{"kind":"method","name":"messages.markDialogUnread","type":"Bool","id":3263617423,"comment":"Manually mark dialog as unread","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"unread","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Mark as unread/read"},{"name":"peer","type":"InputDialogPeer","comment":"Dialog"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getDialogUnreadMarks","type":"DialogPeer","typeModifiers":{"isVector":true},"id":585256482,"comment":"Get dialogs manually marked as unread","arguments":[],"available":"user"},{"kind":"method","name":"messages.clearAllDrafts","type":"Bool","id":2119757468,"comment":"Clear all drafts.","arguments":[],"available":"user"},{"kind":"method","name":"messages.updatePinnedMessage","type":"Updates","id":3534419948,"comment":"Pin a message","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Pin the message silently, without triggering a notification"},{"name":"unpin","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the message should unpinned or pinned"},{"name":"pm_oneside","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether the message should only be pinned on the local side of a one-to-one chat"},{"name":"peer","type":"InputPeer","comment":"The peer where to pin the message"},{"name":"id","type":"int","comment":"The message to pin or unpin"}],"throws":[{"code":400,"name":"BOT_ONESIDE_NOT_AVAIL","comment":"Bots can't pin messages in PM just for themselves."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PIN_RESTRICTED","comment":"You can't pin messages."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."}],"available":"both"},{"kind":"method","name":"messages.sendVote","type":"Updates","id":283795844,"comment":"Vote in a {@link RawPoll}\n\nStarting from layer 159, the vote will be sent from the peer specified using {@link messages.RawSaveDefaultSendAsRequest}.","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat where the poll was sent"},{"name":"msg_id","type":"int","comment":"The message ID of the poll"},{"name":"options","type":"bytes","typeModifiers":{"isVector":true},"comment":"The options that were chosen"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"MESSAGE_POLL_CLOSED","comment":"Poll closed."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"OPTIONS_TOO_MUCH","comment":"Too many options provided."},{"code":400,"name":"OPTION_INVALID","comment":"Invalid option selected."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"REVOTE_NOT_ALLOWED","comment":"You cannot change your vote."}],"available":"user"},{"kind":"method","name":"messages.getPollResults","type":"Updates","id":1941660731,"comment":"Get poll results","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the poll was found"},{"name":"msg_id","type":"int","comment":"Message ID of poll message"}],"throws":[{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getOnlines","type":"ChatOnlines","typeModifiers":{"constructorId":4030849616},"id":1848369232,"comment":"Get count of online users in a chat","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.editChatAbout","type":"Bool","id":3740665751,"comment":"Edit the description of a group/supergroup/channel.","arguments":[{"name":"peer","type":"InputPeer","comment":"The group/supergroup/channel."},{"name":"about","type":"string","comment":"The new description"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ABOUT_NOT_MODIFIED","comment":"About text has not changed."},{"code":400,"name":"CHAT_ABOUT_TOO_LONG","comment":"Chat about too long."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"both"},{"kind":"method","name":"messages.editChatDefaultBannedRights","type":"Updates","id":2777049921,"comment":"Edit the default banned rights of a channel/supergroup/group.","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer"},{"name":"banned_rights","type":"ChatBannedRights","comment":"The new global rights"}],"throws":[{"code":400,"name":"BANNED_RIGHTS_INVALID","comment":"You provided some invalid flags in the banned rights."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"UNTIL_DATE_INVALID","comment":"Invalid until date provided."}],"available":"both"},{"kind":"method","name":"messages.getEmojiKeywords","type":"EmojiKeywordsDifference","typeModifiers":{"constructorId":1556570557},"id":899735650,"comment":"Get localized emoji keywords ยป.","arguments":[{"name":"lang_code","type":"string","comment":"Language code"}],"available":"user"},{"kind":"method","name":"messages.getEmojiKeywordsDifference","type":"EmojiKeywordsDifference","typeModifiers":{"constructorId":1556570557},"id":352892591,"comment":"Get changed emoji keywords ยป.","arguments":[{"name":"lang_code","type":"string","comment":"Language code"},{"name":"from_version","type":"int","comment":"Previous stored emoji keyword list version"}],"available":"user"},{"kind":"method","name":"messages.getEmojiKeywordsLanguages","type":"EmojiLanguage","typeModifiers":{"isVector":true,"constructorId":3019592545},"id":1318675378,"comment":"Obtain a list of related languages that must be used when fetching emoji keyword lists ยป.\n\nUsually the method will return the passed language codes (if localized) + en + some language codes for similar languages (if applicable).","arguments":[{"name":"lang_codes","type":"string","typeModifiers":{"isVector":true},"comment":"The user's language codes"}],"available":"user"},{"kind":"method","name":"messages.getEmojiURL","type":"EmojiURL","typeModifiers":{"constructorId":2775937949},"id":3585149990,"comment":"Returns an HTTP URL which can be used to automatically log in into translation platform and suggest new emoji keywords ยป. The URL will be valid for 30 seconds after generation.","arguments":[{"name":"lang_code","type":"string","comment":"Language code for which the emoji keywords will be suggested"}],"available":"user"},{"kind":"method","name":"messages.getSearchCounters","type":"messages.SearchCounter","typeModifiers":{"isVector":true,"constructorId":3896830975},"id":465367808,"comment":"Get the number of results that would be found by a {@link messages.RawSearchRequest} call with the same parameters","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer where to search"},{"name":"saved_peer_id","type":"InputPeer","typeModifiers":{"predicate":"flags.2"},"comment":"Search within the saved message dialog ยป with this ID."},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If set, consider only messages within the specified forum topic"},{"name":"filters","type":"MessagesFilter","typeModifiers":{"isVector":true},"comment":"Search filters"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.requestUrlAuth","type":"UrlAuthResult","id":428848198,"comment":"Get more info about a Seamless Telegram Login authorization request, for more info click here ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","typeModifiers":{"predicate":"flags.1"},"comment":"Peer where the message is located"},{"name":"msg_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"The message"},{"name":"button_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"The ID of the button with the authorization request"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"URL used for link URL authorization, click here for more info ยป"}],"available":"user"},{"kind":"method","name":"messages.acceptUrlAuth","type":"UrlAuthResult","id":2972479781,"comment":"Use this to accept a Seamless Telegram Login authorization request, for more info click here ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"write_allowed","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set this flag to allow the bot to send messages to you (if requested)"},{"name":"peer","type":"InputPeer","typeModifiers":{"predicate":"flags.1"},"comment":"The location of the message"},{"name":"msg_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Message ID of the message with the login button"},{"name":"button_id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"ID of the login button"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"URL used for link URL authorization, click here for more info ยป"}],"available":"user"},{"kind":"method","name":"messages.hidePeerSettingsBar","type":"Bool","id":1336717624,"comment":"Should be called after the user hides the report spam/add as contact bar of a new chat, effectively prevents the user from executing the actions specified in the action bar ยป.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"}],"available":"user"},{"kind":"method","name":"messages.getScheduledHistory","type":"messages.Messages","id":4111889931,"comment":"Get scheduled messages","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getScheduledMessages","type":"messages.Messages","id":3183150180,"comment":"Get scheduled messages","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of scheduled messages"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.sendScheduledMessages","type":"Updates","id":3174597898,"comment":"Send scheduled messages right away","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"Scheduled message IDs"}],"throws":[{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.deleteScheduledMessages","type":"Updates","id":1504586518,"comment":"Delete scheduled messages","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"Scheduled message IDs"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getPollVotes","type":"messages.VotesList","typeModifiers":{"constructorId":1218005070},"id":3094231054,"comment":"Get poll results for non-anonymous polls","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Chat where the poll was sent"},{"name":"id","type":"int","comment":"Message ID"},{"name":"option","type":"bytes","typeModifiers":{"predicate":"flags.0"},"comment":"Get only results for the specified poll option"},{"name":"offset","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Offset for results, taken from the next_offset field of {@link messages.RawVotesList}, initially an empty string.
Note: if no more results are available, the method call will return an empty next_offset; thus, avoid providing the next_offset returned in {@link messages.RawVotesList} if it is empty, to avoid an infinite loop."},{"name":"limit","type":"int","comment":"Number of results to return"}],"throws":[{"code":403,"name":"BROADCAST_FORBIDDEN","comment":"Channel poll voters and reactions cannot be fetched to prevent deanonymization."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":403,"name":"POLL_VOTE_REQUIRED","comment":"Cast a vote in the poll before calling this method."}],"available":"user"},{"kind":"method","name":"messages.toggleStickerSets","type":"Bool","id":3037016042,"comment":"Apply changes to multiple stickersets","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"uninstall","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Uninstall the specified stickersets"},{"name":"archive","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Archive the specified stickersets"},{"name":"unarchive","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Unarchive the specified stickersets"},{"name":"stickersets","type":"InputStickerSet","typeModifiers":{"isVector":true},"comment":"Stickersets to act upon"}],"available":"user"},{"kind":"method","name":"messages.getDialogFilters","id":4023684233,"type":"messages.DialogFilters","arguments":[],"typeModifiers":{"constructorId":718878489},"comment":"Get folders","available":"user"},{"kind":"method","name":"messages.getSuggestedDialogFilters","type":"DialogFilterSuggested","typeModifiers":{"isVector":true,"constructorId":2004110666},"id":2728186924,"comment":"Get suggested folders","arguments":[],"available":"user"},{"kind":"method","name":"messages.updateDialogFilter","type":"Bool","id":450142282,"comment":"Update folder","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"id","type":"int","comment":"Folder ID"},{"name":"filter","type":"DialogFilter","typeModifiers":{"predicate":"flags.0"},"comment":"Folder info"}],"throws":[{"code":400,"name":"CHATLIST_EXCLUDE_INVALID","comment":"The specified exclude_peers are invalid."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"FILTER_ID_INVALID","comment":"The specified filter ID is invalid."},{"code":400,"name":"FILTER_INCLUDE_EMPTY","comment":"The include_peers vector of the filter is empty."},{"code":400,"name":"FILTER_TITLE_EMPTY","comment":"The title field of the filter is empty."}],"available":"user"},{"kind":"method","name":"messages.updateDialogFiltersOrder","type":"Bool","id":3311649252,"comment":"Reorder folders","arguments":[{"name":"order","type":"int","typeModifiers":{"isVector":true},"comment":"New folder order"}],"available":"user"},{"kind":"method","name":"messages.getOldFeaturedStickers","type":"messages.FeaturedStickers","id":2127598753,"comment":"Method for fetching previously featured stickers","arguments":[{"name":"offset","type":"int","comment":"Offset"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getReplies","type":"messages.Messages","id":584962828,"comment":"Get messages in a reply thread","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"msg_id","type":"int","comment":"Message ID"},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"offset_date","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"add_offset","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"},{"name":"max_id","type":"int","comment":"If a positive value was transferred, the method will return only messages with ID smaller than max_id"},{"name":"min_id","type":"int","comment":"If a positive value was transferred, the method will return only messages with ID bigger than min_id"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"TOPIC_ID_INVALID","comment":"The specified topic ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.getDiscussionMessage","type":"messages.DiscussionMessage","typeModifiers":{"constructorId":2788431746},"id":1147761405,"comment":"Get discussion message from the associated discussion group of a channel to show it on top of the comment section, without actually joining the group","arguments":[{"name":"peer","type":"InputPeer","comment":"Channel ID"},{"name":"msg_id","type":"int","comment":"Message ID"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"TOPIC_ID_INVALID","comment":"The specified topic ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.readDiscussion","type":"Bool","id":4147227124,"comment":"Mark a thread as read","arguments":[{"name":"peer","type":"InputPeer","comment":"Group ID"},{"name":"msg_id","type":"int","comment":"ID of message that started the thread"},{"name":"read_max_id","type":"int","comment":"ID up to which thread messages were read"}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.unpinAllMessages","type":"messages.AffectedHistory","typeModifiers":{"constructorId":3025955281},"id":3995253160,"comment":"Unpin all pinned messages","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Chat where to unpin"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Forum topic where to unpin"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."}],"available":"both"},{"kind":"method","name":"messages.deleteChat","type":"Bool","id":1540419152,"comment":"Delete a chat","arguments":[{"name":"chat_id","type":"int53","comment":"Chat ID"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.deletePhoneCallHistory","type":"messages.AffectedFoundMessages","typeModifiers":{"constructorId":4019011180},"id":4190888969,"comment":"Delete the entire phone call history.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"revoke","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to remove phone call history for participants as well"}],"available":"user"},{"kind":"method","name":"messages.checkHistoryImport","type":"messages.HistoryImportParsed","typeModifiers":{"constructorId":1578088377},"id":1140726259,"comment":"Obtains information about a chat export file, generated by a foreign chat app, click here for more info about imported chats ยป.","arguments":[{"name":"import_head","type":"string","comment":"Beginning of the message file; up to 100 lines."}],"throws":[{"code":400,"name":"IMPORT_FORMAT_UNRECOGNIZED","comment":"The specified chat export file was exported from an unsupported chat app."}],"available":"user"},{"kind":"method","name":"messages.initHistoryImport","type":"messages.HistoryImport","typeModifiers":{"constructorId":375566091},"id":873008187,"comment":"Import chat history from a foreign chat app into a specific Telegram chat, click here for more info about imported chats ยป.","arguments":[{"name":"peer","type":"InputPeer","comment":"The Telegram chat where the history should be imported."},{"name":"file","type":"InputFile","comment":"File with messages to import."},{"name":"media_count","type":"int","comment":"Number of media files associated with the chat that will be uploaded using {@link messages.RawUploadImportedMediaRequest}."}],"throws":[{"code":400,"name":"IMPORT_FILE_INVALID","comment":"The specified chat export file is invalid."},{"code":400,"name":"IMPORT_FORMAT_UNRECOGNIZED","comment":"The specified chat export file was exported from an unsupported chat app."},{"code":406,"name":"PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_%dMIN","comment":"Import for this chat is already in progress, wait %d minutes before starting a new one."}],"available":"user"},{"kind":"method","name":"messages.uploadImportedMedia","type":"MessageMedia","id":713433234,"comment":"Upload a media file associated with an imported chat, click here for more info ยป.","arguments":[{"name":"peer","type":"InputPeer","comment":"The Telegram chat where the media will be imported"},{"name":"import_id","type":"long","comment":"Identifier of a history import session, returned by {@link messages.RawInitHistoryImportRequest}"},{"name":"file_name","type":"string","comment":"File name"},{"name":"media","type":"InputMedia","comment":"Media metadata"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."}],"available":"user"},{"kind":"method","name":"messages.startHistoryImport","type":"Bool","id":3023958852,"comment":"Complete the history import process, importing all messages into the chat.
\nTo be called only after initializing the import with {@link messages.RawInitHistoryImportRequest} and uploading all files using {@link messages.RawUploadImportedMediaRequest}.","arguments":[{"name":"peer","type":"InputPeer","comment":"The Telegram chat where the messages should be imported, click here for more info ยป"},{"name":"import_id","type":"long","comment":"Identifier of a history import session, returned by {@link messages.RawInitHistoryImportRequest}."}],"throws":[{"code":400,"name":"IMPORT_ID_INVALID","comment":"The specified import ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.getExportedChatInvites","type":"messages.ExportedChatInvites","typeModifiers":{"constructorId":3183881676},"id":2729812982,"comment":"Get info about the chat invites of a specific chat","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"revoked","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether to fetch revoked chat invites"},{"name":"peer","type":"InputPeer","comment":"Chat"},{"name":"admin_id","type":"InputUser","comment":"Whether to only fetch chat invites from this admin"},{"name":"offset_date","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Offsets for pagination, for more info click here"},{"name":"offset_link","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"ADMIN_ID_INVALID","comment":"The specified admin ID is invalid."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getExportedChatInvite","type":"messages.ExportedChatInvite","id":1937010524,"comment":"Get info about a chat invite","arguments":[{"name":"peer","type":"InputPeer","comment":"Chat"},{"name":"link","type":"string","comment":"Invite link"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.editExportedChatInvite","type":"messages.ExportedChatInvite","id":3184144245,"comment":"Edit an exported chat invite","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"revoked","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to revoke the chat invite"},{"name":"peer","type":"InputPeer","comment":"Chat"},{"name":"link","type":"string","comment":"Invite link"},{"name":"expire_date","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"New expiration date"},{"name":"usage_limit","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"Maximum number of users that can join using this link"},{"name":"request_needed","type":"Bool","typeModifiers":{"predicate":"flags.3"},"comment":"Whether admin confirmation is required before admitting each separate user into the chat"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"Description of the invite link, visible only to administrators"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_INVITE_PERMANENT","comment":"You can't set an expiration date on permanent invite links."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":403,"name":"EDIT_BOT_INVITE_FORBIDDEN","comment":"Normal users can't edit invites that were created by bots."},{"code":400,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USAGE_LIMIT_INVALID","comment":"The specified usage limit is invalid."}],"available":"both"},{"kind":"method","name":"messages.deleteRevokedExportedChatInvites","type":"Bool","id":1452833749,"comment":"Delete all revoked chat invites","arguments":[{"name":"peer","type":"InputPeer","comment":"Chat"},{"name":"admin_id","type":"InputUser","comment":"ID of the admin that originally generated the revoked chat invites"}],"throws":[{"code":400,"name":"ADMIN_ID_INVALID","comment":"The specified admin ID is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.deleteExportedChatInvite","type":"Bool","id":3563365419,"comment":"Delete a chat invite","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"link","type":"string","comment":"Invite link"}],"throws":[{"code":400,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."},{"code":400,"name":"INVITE_REVOKED_MISSING","comment":"The specified invite link was already revoked or is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getAdminsWithInvites","type":"messages.ChatAdminsWithInvites","typeModifiers":{"constructorId":3063640791},"id":958457583,"comment":"Get info about chat invites generated by admins.","arguments":[{"name":"peer","type":"InputPeer","comment":"Chat"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getChatInviteImporters","type":"messages.ChatInviteImporters","typeModifiers":{"constructorId":2176233482},"id":3741637966,"comment":"Get info about the users that joined the chat using a specific chat invite","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"requested","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, only returns info about users with pending join requests ยป"},{"name":"peer","type":"InputPeer","comment":"Chat"},{"name":"link","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Invite link"},{"name":"q","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Search for a user in the pending join requests ยป list: only available when the requested flag is set, cannot be used together with a specific link."},{"name":"offset_date","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"offset_user","type":"InputUser","comment":"User ID for pagination: if set, offset_date must also be set."},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"SEARCH_WITH_LINK_NOT_SUPPORTED","comment":"You cannot provide a search query and an invite link at the same time."}],"available":"user"},{"kind":"method","name":"messages.setHistoryTTL","type":"Updates","id":3087949796,"comment":"Set maximum Time-To-Live of all messages in the specified chat","arguments":[{"name":"peer","type":"InputPeer","comment":"The dialog"},{"name":"period","type":"int","comment":"Automatically delete all messages sent in the chat after this many seconds"}],"throws":[{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"TTL_PERIOD_INVALID","comment":"The specified TTL period is invalid."}],"available":"user"},{"kind":"method","name":"messages.checkHistoryImportPeer","type":"messages.CheckedHistoryImportPeer","typeModifiers":{"constructorId":2723014423},"id":1573261059,"comment":"Check whether chat history exported from another chat app can be imported into a specific Telegram chat, click here for more info ยป.\n\nIf the check succeeds, and no RPC errors are returned, a messages.CheckedHistoryImportPeer constructor will be returned, with a confirmation text to be shown to the user, before actually initializing the import.","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat where we want to import history ยป."}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_NOT_MUTUAL_CONTACT","comment":"The provided user is not a mutual contact."}],"available":"user"},{"kind":"method","name":"messages.setChatTheme","type":"Updates","id":3862683967,"comment":"Change the chat theme of a certain chat","arguments":[{"name":"peer","type":"InputPeer","comment":"Private chat where to change theme"},{"name":"emoticon","type":"string","comment":"Emoji, identifying a specific chat theme; a list of chat themes can be fetched using {@link account.RawGetChatThemesRequest}"}],"throws":[{"code":400,"name":"EMOJI_INVALID","comment":"The specified theme emoji is valid."},{"code":400,"name":"EMOJI_NOT_MODIFIED","comment":"The theme wasn't changed."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getMessageReadParticipants","type":"ReadParticipantDate","typeModifiers":{"isVector":true,"constructorId":1246753138},"id":834782287,"comment":"Get which users read a specific message: only available for groups and supergroups with less than chat_read_mark_size_threshold members, read receipts will be stored for chat_read_mark_expire_period seconds after the message was sent, see client configuration for more info ยป.","arguments":[{"name":"peer","type":"InputPeer","comment":"Dialog"},{"name":"msg_id","type":"int","comment":"Message ID"}],"throws":[{"code":400,"name":"CHAT_TOO_BIG","comment":"This method is not available for groups with more than chat_read_mark_size_threshold members, see client configuration ยป."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"MSG_TOO_OLD","comment":"chat_read_mark_expire_period seconds have passed since the message was sent, read receipts were deleted."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getSearchResultsCalendar","type":"messages.SearchResultsCalendar","typeModifiers":{"constructorId":343859772},"id":1789130429,"comment":"Returns information about the next messages of the specified type in the chat split by days.\n\nReturns the results in reverse chronological order.
\nCan return partial results for the last returned day.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer where to search"},{"name":"saved_peer_id","type":"InputPeer","typeModifiers":{"predicate":"flags.2"},"comment":"Search within the saved message dialog ยป with this ID."},{"name":"filter","type":"MessagesFilter","comment":"Message filter, {@link RawInputMessagesFilterEmpty}, {@link RawInputMessagesFilterMyMentions} filters are not supported by this method."},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"offset_date","type":"int","comment":"Offsets for pagination, for more info click here"}],"throws":[{"code":400,"name":"FILTER_NOT_SUPPORTED","comment":"The specified filter cannot be used in this context."}],"available":"user"},{"kind":"method","name":"messages.getSearchResultsPositions","type":"messages.SearchResultsPositions","typeModifiers":{"constructorId":1404185519},"id":2625580816,"comment":"Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation.\n\nReturns the results in reverse chronological order (i.e., in order of decreasing message_id).","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer where to search"},{"name":"saved_peer_id","type":"InputPeer","typeModifiers":{"predicate":"flags.2"},"comment":"Search within the saved message dialog ยป with this ID."},{"name":"filter","type":"MessagesFilter","comment":"Message filter, {@link RawInputMessagesFilterEmpty}, {@link RawInputMessagesFilterMyMentions} filters are not supported by this method."},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"available":"user"},{"kind":"method","name":"messages.hideChatJoinRequest","type":"Updates","id":2145904661,"comment":"Dismiss or approve a chat join request related to a specific chat or channel.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"approved","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to dismiss or approve the chat join request ยป"},{"name":"peer","type":"InputPeer","comment":"The chat or channel"},{"name":"user_id","type":"InputUser","comment":"The user whose join request ยป should be dismissed or approved"}],"throws":[{"code":400,"name":"CHANNELS_TOO_MUCH","comment":"You have joined too many channels/supergroups."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"HIDE_REQUESTER_MISSING","comment":"The join request was missing or was already handled."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_ALREADY_PARTICIPANT","comment":"The user is already in the group."},{"code":403,"name":"USER_CHANNELS_TOO_MUCH","comment":"One of the users you tried to add is already in too many channels/supergroups."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"both"},{"kind":"method","name":"messages.hideAllChatJoinRequests","type":"Updates","id":3766875370,"comment":"Dismiss or approve all join requests related to a specific chat or channel.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"approved","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to dismiss or approve all chat join requests ยป"},{"name":"peer","type":"InputPeer","comment":"The chat or channel"},{"name":"link","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Only dismiss or approve join requests ยป initiated using this invite link"}],"throws":[{"code":400,"name":"CHANNELS_TOO_MUCH","comment":"You have joined too many channels/supergroups."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"HIDE_REQUESTER_MISSING","comment":"The join request was missing or was already handled."},{"code":400,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_CHANNELS_TOO_MUCH","comment":"One of the users you tried to add is already in too many channels/supergroups."}],"available":"user"},{"kind":"method","name":"messages.toggleNoForwards","type":"Updates","id":2971578274,"comment":"Enable or disable content protection on a channel or chat","arguments":[{"name":"peer","type":"InputPeer","comment":"The chat or channel"},{"name":"enabled","type":"Bool","comment":"Enable or disable content protection"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.saveDefaultSendAs","type":"Bool","id":3439189910,"comment":"Change the default peer that should be used when sending messages, reactions, poll votes to a specific group","arguments":[{"name":"peer","type":"InputPeer","comment":"Group"},{"name":"send_as","type":"InputPeer","comment":"The default peer that should be used when sending messages to the group"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"SEND_AS_PEER_INVALID","comment":"You can't send messages as the specified peer."}],"available":"user"},{"kind":"method","name":"messages.sendReaction","type":"Updates","id":3540875476,"comment":"React to message.\n\nStarting from layer 159, the reaction will be sent from the peer specified using {@link messages.RawSaveDefaultSendAsRequest}.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"big","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether a bigger and longer reaction should be shown"},{"name":"add_to_recent","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to add this reaction to the recent reactions list ยป."},{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"msg_id","type":"int","comment":"Message ID to react to"},{"name":"reaction","type":"Reaction","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"A list of reactions"}],"throws":[{"code":403,"name":"ANONYMOUS_REACTIONS_DISABLED","comment":"Sorry, anonymous administrators cannot leave reactions or participate in polls."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"CUSTOM_REACTIONS_TOO_MANY","comment":"Too many custom reactions were specified."},{"code":400,"name":"DOCUMENT_INVALID","comment":"The specified document is invalid."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"MESSAGE_NOT_MODIFIED","comment":"The provided message data is identical to the previous message data, the message wasn't modified."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":403,"name":"PREMIUM_ACCOUNT_REQUIRED","comment":"A premium account is required to execute this action."},{"code":400,"name":"REACTIONS_TOO_MANY","comment":"The message already has exactly reactions_uniq_max reaction emojis, you can't react with a new emoji, see the docs for more info ยป."},{"code":400,"name":"REACTION_EMPTY","comment":"Empty reaction provided."},{"code":400,"name":"REACTION_INVALID","comment":"The specified reaction is invalid."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."}],"available":"user"},{"kind":"method","name":"messages.getMessagesReactions","type":"Updates","id":2344259814,"comment":"Get message reactions ยป","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"Message IDs"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."}],"available":"user"},{"kind":"method","name":"messages.getMessageReactionsList","type":"messages.MessageReactionsList","typeModifiers":{"constructorId":834488621},"id":1176190792,"comment":"Get message reaction list, along with the sender of each reaction.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"id","type":"int","comment":"Message ID"},{"name":"reaction","type":"Reaction","typeModifiers":{"predicate":"flags.0"},"comment":"Get only reactions of this type"},{"name":"offset","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Offset for pagination (taken from the next_offset field of the returned messages.MessageReactionsList); empty in the first request."},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":403,"name":"BROADCAST_FORBIDDEN","comment":"Channel poll voters and reactions cannot be fetched to prevent deanonymization."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"messages.setChatAvailableReactions","id":1511328724,"type":"Updates","arguments":[{"name":"flags","type":"#"},{"name":"peer","type":"InputPeer","comment":"Group where to apply changes"},{"name":"available_reactions","type":"ChatReactions","comment":"Allowed reaction emojis"},{"name":"reactions_limit","type":"int","typeModifiers":{"predicate":"flags.0"}}],"comment":"Change the set of message reactions ยป that can be used in a certain group, supergroup or channel","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getAvailableReactions","type":"messages.AvailableReactions","id":417243308,"comment":"Obtain available message reactions ยป","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.setDefaultReaction","type":"Bool","id":1330094102,"comment":"Change default emoji reaction to use in the quick reaction menu: the value is synced across devices and can be fetched using {@link help.RawGetConfigRequest}.","arguments":[{"name":"reaction","type":"Reaction","comment":"New emoji reaction"}],"throws":[{"code":400,"name":"REACTION_INVALID","comment":"The specified reaction is invalid."}],"available":"user"},{"kind":"method","name":"messages.translateText","type":"messages.TranslatedText","typeModifiers":{"constructorId":870003448},"id":1662529584,"comment":"Translate a given text.\n\nStyled text entities will only be preserved for Telegram Premium users.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","typeModifiers":{"predicate":"flags.0"},"comment":"If the text is a chat message, the peer ID"},{"name":"id","type":"int","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"A list of message IDs to translate"},{"name":"text","type":"TextWithEntities","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"A list of styled messages to translate"},{"name":"to_lang","type":"string","comment":"Two-letter ISO 639-1 language code of the language to which the message is translated"}],"throws":[{"code":400,"name":"INPUT_TEXT_EMPTY","comment":"The specified text is empty."},{"code":400,"name":"INPUT_TEXT_TOO_LONG","comment":"The specified text is too long."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"TO_LANG_INVALID","comment":"The specified destination language is invalid."}],"available":"user"},{"kind":"method","name":"messages.getUnreadReactions","type":"messages.Messages","id":841173339,"comment":"Get unread reactions to messages you sent","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If set, considers only reactions to messages within the specified forum topic"},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"add_offset","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"},{"name":"max_id","type":"int","comment":"Only return reactions for messages up until this message ID"},{"name":"min_id","type":"int","comment":"Only return reactions for messages starting from this message ID"}],"available":"user"},{"kind":"method","name":"messages.readReactions","type":"messages.AffectedHistory","typeModifiers":{"constructorId":3025955281},"id":1420459918,"comment":"Mark message reactions ยป as read","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"top_msg_id","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"Mark as read only reactions to messages within the specified forum topic"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.searchSentMedia","type":"messages.Messages","id":276705696,"comment":"View and search recently sent media.
\nThis method does not support pagination.","arguments":[{"name":"q","type":"string","comment":"Optional search query"},{"name":"filter","type":"MessagesFilter","comment":"Message filter"},{"name":"limit","type":"int","comment":"Maximum number of results to return (max 100)."}],"throws":[{"code":400,"name":"FILTER_NOT_SUPPORTED","comment":"The specified filter cannot be used in this context."}],"available":"user"},{"kind":"method","name":"messages.getAttachMenuBots","type":"AttachMenuBots","id":385663691,"comment":"Returns installed attachment menu bot mini apps ยป","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getAttachMenuBot","type":"AttachMenuBotsBot","typeModifiers":{"constructorId":2478794367},"id":1998676370,"comment":"Returns attachment menu entry for a bot mini app that can be launched from the attachment menu ยป","arguments":[{"name":"bot","type":"InputUser","comment":"Bot ID"}],"throws":[{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."}],"available":"user"},{"kind":"method","name":"messages.toggleBotInAttachMenu","type":"Bool","id":1777704297,"comment":"Enable or disable web bot attachment menu ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"write_allowed","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the user authorizes the bot to write messages to them, if requested by {@link RawAttachMenuBot}.request_write_access"},{"name":"bot","type":"InputUser","comment":"Bot ID"},{"name":"enabled","type":"Bool","comment":"Toggle"}],"available":"user"},{"kind":"method","name":"messages.requestWebView","type":"WebViewResult","typeModifiers":{"constructorId":202659196},"id":647873217,"comment":"Open a bot mini app, sending over user information after user confirmation.\n\nAfter calling this method, until the user closes the webview, {@link messages.RawProlongWebViewRequest} must be called every 60 seconds.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"from_bot_menu","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether the webview was opened by clicking on the bot's menu button ยป."},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is {@link messages.RawSendWebViewResultMessageRequest} should be sent silently (no notifications for the receivers)."},{"name":"peer","type":"InputPeer","comment":"Dialog where the web app is being opened, and where the resulting message will be sent (see the docs for more info ยป)."},{"name":"bot","type":"InputUser","comment":"Bot that owns the web app"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Web app URL"},{"name":"start_param","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"If the web app was opened from the attachment menu using a attachment menu deep link, start_param should contain the data from the startattach parameter."},{"name":"theme_params","type":"DataJSON","typeModifiers":{"predicate":"flags.2"},"comment":"Theme parameters ยป"},{"name":"platform","type":"string","comment":"Short name of the application; 0-64 English letters, digits, and underscores"},{"name":"reply_to","type":"InputReplyTo","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates that the inline message that will be sent by the bot on behalf of the user once the web app interaction is {@link messages.RawSendWebViewResultMessageRequest} should be sent in reply to the specified message or story."},{"name":"send_as","type":"InputPeer","typeModifiers":{"predicate":"flags.13"},"comment":"Open the web app as the specified peer, sending the resulting the message as the specified peer."}],"throws":[{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."},{"code":400,"name":"BOT_WEBVIEW_DISABLED","comment":"ย "},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"YOU_BLOCKED_USER","comment":"You blocked this user."}],"available":"user"},{"kind":"method","name":"messages.prolongWebView","type":"Bool","id":2966952579,"comment":"Indicate to the server (from the user side) that the user is still using a web app.\n\nIf the method returns a QUERY_ID_INVALID error, the webview must be closed.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"silent","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is {@link messages.RawSendWebViewResultMessageRequest} should be sent silently (no notifications for the receivers)."},{"name":"peer","type":"InputPeer","comment":"Dialog where the web app was opened."},{"name":"bot","type":"InputUser","comment":"Bot that owns the web app"},{"name":"query_id","type":"long","comment":"Web app interaction ID obtained from {@link messages.RawRequestWebViewRequest}"},{"name":"reply_to","type":"InputReplyTo","typeModifiers":{"predicate":"flags.0"},"comment":"If set, indicates that the inline message that will be sent by the bot on behalf of the user once the web app interaction is {@link messages.RawSendWebViewResultMessageRequest} should be sent in reply to the specified message or story."},{"name":"send_as","type":"InputPeer","typeModifiers":{"predicate":"flags.13"},"comment":"Open the web app as the specified peer"}],"available":"user"},{"kind":"method","name":"messages.requestSimpleWebView","type":"SimpleWebViewResult","typeModifiers":{"constructorId":2284811963},"id":440815626,"comment":"Open a bot mini app.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"from_switch_webview","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the webapp was opened by clicking on the switch_webview button shown on top of the inline results list returned by {@link messages.RawGetInlineBotResultsRequest}."},{"name":"from_side_menu","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Set this flag if opening the Mini App from the installed side menu entry ยป or from a Mini App link ยป."},{"name":"bot","type":"InputUser","comment":"Bot that owns the mini app"},{"name":"url","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Web app URL, if opening from a keyboard button or inline result"},{"name":"start_param","type":"string","typeModifiers":{"predicate":"flags.4"},"comment":"Start parameter, if opening from a Mini App link ยป."},{"name":"theme_params","type":"DataJSON","typeModifiers":{"predicate":"flags.0"},"comment":"Theme parameters ยป"},{"name":"platform","type":"string","comment":"Short name of the application; 0-64 English letters, digits, and underscores"}],"available":"user"},{"kind":"method","name":"messages.sendWebViewResultMessage","type":"WebViewMessageSent","typeModifiers":{"constructorId":211046684},"id":172168437,"comment":"Terminate webview interaction started with {@link messages.RawRequestWebViewRequest}, sending the specified message to the chat on behalf of the user.","arguments":[{"name":"bot_query_id","type":"string","comment":"Webview interaction ID obtained from {@link messages.RawRequestWebViewRequest}"},{"name":"result","type":"InputBotInlineResult","comment":"Message to send"}],"throws":[{"code":400,"name":"QUERY_ID_INVALID","comment":"The query ID is invalid."}],"available":"both"},{"kind":"method","name":"messages.sendWebViewData","type":"Updates","id":3691135688,"comment":"Used by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it.","arguments":[{"name":"bot","type":"InputUser","comment":"Bot that owns the web app"},{"name":"random_id","type":"long","comment":"Unique client message ID to prevent duplicate sending of the same event"},{"name":"button_text","type":"string","comment":"Text of the {@link RawKeyboardButtonSimpleWebView} that was pressed to open the web app."},{"name":"data","type":"string","comment":"Data to relay to the bot, obtained from a web_app_data_send JS event."}],"available":"user"},{"kind":"method","name":"messages.transcribeAudio","type":"messages.TranscribedAudio","typeModifiers":{"constructorId":3485063511},"id":647928393,"comment":"Transcribe voice message","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer ID where the voice message was sent"},{"name":"msg_id","type":"int","comment":"Voice message ID"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":403,"name":"PREMIUM_ACCOUNT_REQUIRED","comment":"A premium account is required to execute this action."},{"code":400,"name":"TRANSCRIPTION_FAILED","comment":"Audio transcription failed."}],"available":"user"},{"kind":"method","name":"messages.rateTranscribedAudio","type":"Bool","id":2132608815,"comment":"Rate transcribed voice message","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the voice message was sent"},{"name":"msg_id","type":"int","comment":"Message ID"},{"name":"transcription_id","type":"long","comment":"Transcription ID"},{"name":"good","type":"Bool","comment":"Whether the transcription was correct"}],"available":"user"},{"kind":"method","name":"messages.getCustomEmojiDocuments","type":"Document","typeModifiers":{"isVector":true},"id":3651866452,"comment":"Fetch custom emoji stickers ยป.\n\nReturns a list of {@link RawDocument} with the animated custom emoji in TGS format, and a {@link RawDocumentAttributeCustomEmoji} attribute with the original emoji and info about the emoji stickerset this custom emoji belongs to.","arguments":[{"name":"document_id","type":"long","typeModifiers":{"isVector":true},"comment":"Custom emoji IDs from a {@link RawMessageEntityCustomEmoji}."}],"available":"both"},{"kind":"method","name":"messages.getEmojiStickers","type":"messages.AllStickers","id":4227637647,"comment":"Gets the list of currently installed custom emoji stickersets.","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getFeaturedEmojiStickers","type":"messages.FeaturedStickers","id":248473398,"comment":"Gets featured custom emoji stickersets.","arguments":[{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.reportReaction","type":"Bool","id":1063567478,"comment":"Report a message reaction","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the message was sent"},{"name":"id","type":"int","comment":"Message ID"},{"name":"reaction_peer","type":"InputPeer","comment":"Peer that sent the reaction"}],"throws":[{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"user"},{"kind":"method","name":"messages.getTopReactions","type":"messages.Reactions","id":3145803194,"comment":"Got popular message reactions","arguments":[{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getRecentReactions","type":"messages.Reactions","id":960896434,"comment":"Get recently used message reactions","arguments":[{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.clearRecentReactions","type":"Bool","id":2650730420,"comment":"Clear recently used message reactions","arguments":[],"available":"user"},{"kind":"method","name":"messages.getExtendedMedia","type":"Updates","id":2230847508,"comment":"Get information about extended media","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"Message IDs"}],"available":"user"},{"kind":"method","name":"messages.setDefaultHistoryTTL","type":"Bool","id":2662667333,"comment":"Changes the default value of the Time-To-Live setting, applied to all new chats.","arguments":[{"name":"period","type":"int","comment":"The new default Time-To-Live of all messages sent in new chats."}],"available":"both"},{"kind":"method","name":"messages.getDefaultHistoryTTL","type":"DefaultHistoryTTL","typeModifiers":{"constructorId":1135897376},"id":1703637384,"comment":"Gets the default value of the Time-To-Live setting, applied to all new chats.","arguments":[],"available":"both"},{"kind":"method","name":"messages.sendBotRequestedPeer","type":"Updates","id":2444415072,"comment":"Send one or more chosen peers, as requested by a {@link RawKeyboardButtonRequestPeer} button.","arguments":[{"name":"peer","type":"InputPeer","comment":"The bot that sent the {@link RawKeyboardButtonRequestPeer} button."},{"name":"msg_id","type":"int","comment":"ID of the message that contained the reply keyboard with the {@link RawKeyboardButtonRequestPeer} button."},{"name":"button_id","type":"int","comment":"The button_id field from the {@link RawKeyboardButtonRequestPeer} constructor."},{"name":"requested_peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"The chosen peers."}],"available":"user"},{"kind":"method","name":"messages.getEmojiGroups","type":"messages.EmojiGroups","id":1955122779,"comment":"Represents a list of emoji categories, to be used when selecting custom emojis.","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"both"},{"kind":"method","name":"messages.getEmojiStatusGroups","type":"messages.EmojiGroups","id":785209037,"comment":"Represents a list of emoji categories, to be used when selecting custom emojis to set as custom emoji status.","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"both"},{"kind":"method","name":"messages.getEmojiProfilePhotoGroups","type":"messages.EmojiGroups","id":564480243,"comment":"Represents a list of emoji categories, to be used when selecting custom emojis to set as profile picture.","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"both"},{"kind":"method","name":"messages.searchCustomEmoji","type":"EmojiList","id":739360983,"comment":"Look for custom emojis associated to a UTF8 emoji","arguments":[{"name":"emoticon","type":"string","comment":"The emoji"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":400,"name":"EMOTICON_EMPTY","comment":"The emoji is empty."}],"available":"both"},{"kind":"method","name":"messages.togglePeerTranslations","type":"Bool","id":3833378169,"comment":"Show or hide the real-time chat translation popup for a certain chat","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"disabled","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to disable or enable the real-time chat translation popup"},{"name":"peer","type":"InputPeer","comment":"The peer"}],"available":"both"},{"kind":"method","name":"messages.getBotApp","type":"messages.BotApp","typeModifiers":{"constructorId":3947933173},"id":889046467,"comment":"Obtain information about a named Mini App","arguments":[{"name":"app","type":"InputBotApp","comment":"Bot app information obtained from a named Mini App deep link ยป."},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"throws":[{"code":400,"name":"BOT_APP_INVALID","comment":"The specified bot app is invalid."}],"available":"user"},{"kind":"method","name":"messages.requestAppWebView","type":"AppWebViewResult","typeModifiers":{"constructorId":1008422669},"id":2354723644,"comment":"Open a bot mini app from a named Mini App deep link, sending over user information after user confirmation.\n\nAfter calling this method, until the user closes the webview, {@link messages.RawProlongWebViewRequest} must be called every 60 seconds.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"write_allowed","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set this flag if the bot is asking permission to send messages to the user as specified in the named Mini App deep link docs, and the user agreed."},{"name":"peer","type":"InputPeer","comment":"If the client has clicked on the link in a Telegram chat, pass the chat's peer information; otherwise pass the bot's peer information, instead."},{"name":"app","type":"InputBotApp","comment":"The app obtained by invoking {@link messages.RawGetBotAppRequest} as specified in the named Mini App deep link docs."},{"name":"start_param","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"If the startapp query string parameter is present in the named Mini App deep link, pass it to start_param."},{"name":"theme_params","type":"DataJSON","typeModifiers":{"predicate":"flags.2"},"comment":"Theme parameters ยป"},{"name":"platform","type":"string","comment":"Short name of the application; 0-64 English letters, digits, and underscores"}],"throws":[{"code":400,"name":"BOT_APP_INVALID","comment":"The specified bot app is invalid."},{"code":400,"name":"BOT_APP_SHORTNAME_INVALID","comment":"The specified bot app short name is invalid."}],"available":"user"},{"kind":"method","name":"messages.setChatWallPaper","type":"Updates","id":2415577825,"comment":"Set a custom wallpaper ยป in a specific private chat with another user.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"for_both","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Only for Premium users, sets the specified wallpaper for both users of the chat, without requiring confirmation from the other user."},{"name":"revert","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If we don't like the new wallpaper the other user of the chat has chosen for us using the for_both flag, we can re-set our previous wallpaper just on our side using this flag."},{"name":"peer","type":"InputPeer","comment":"The private chat where the wallpaper will be set"},{"name":"wallpaper","type":"InputWallPaper","typeModifiers":{"predicate":"flags.0"},"comment":"The wallpaper ยป, obtained as described in the wallpaper documentation ยป; must not be provided when installing a wallpaper obtained from a {@link RawMessageActionSetChatWallPaper} service message (id must be provided, instead)."},{"name":"settings","type":"WallPaperSettings","typeModifiers":{"predicate":"flags.2"},"comment":"Wallpaper settings, obtained as described in the wallpaper documentation ยป or from {@link RawMessageActionSetChatWallPaper}.wallpaper.settings."},{"name":"id","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"If the wallpaper was obtained from a {@link RawMessageActionSetChatWallPaper} service message, must contain the ID of that message."}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"WALLPAPER_INVALID","comment":"The specified wallpaper is invalid."},{"code":400,"name":"WALLPAPER_NOT_FOUND","comment":"The specified wallpaper could not be found."}],"available":"both"},{"kind":"method","name":"messages.searchEmojiStickerSets","type":"messages.FoundStickerSets","id":2461288780,"comment":"Search for custom emoji stickersets ยป","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"exclude_featured","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Exclude featured stickersets from results"},{"name":"q","type":"string","comment":"Query string"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getSavedDialogs","type":"messages.SavedDialogs","id":1401016858,"comment":"Returns the current saved dialog list, see here ยป for more info.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"exclude_pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Exclude pinned dialogs"},{"name":"offset_date","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here (top_message ID used for pagination)"},{"name":"offset_peer","type":"InputPeer","comment":"Offset peer for pagination"},{"name":"limit","type":"int","comment":"Number of list elements to be returned"},{"name":"hash","type":"long","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"messages.getSavedHistory","type":"messages.Messages","id":1033519437,"comment":"Returns saved messages ยป forwarded from a specific peer","arguments":[{"name":"peer","type":"InputPeer","comment":"Target peer"},{"name":"offset_id","type":"int","comment":"Only return messages starting from the specified message ID"},{"name":"offset_date","type":"int","comment":"Only return messages sent before the specified date"},{"name":"add_offset","type":"int","comment":"Number of list elements to be skipped, negative values are also accepted."},{"name":"limit","type":"int","comment":"Number of results to return"},{"name":"max_id","type":"int","comment":"If a positive value was transferred, the method will return only messages with IDs less than max_id"},{"name":"min_id","type":"int","comment":"If a positive value was transferred, the method will return only messages with IDs more than min_id"},{"name":"hash","type":"long","comment":"Result hash"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.deleteSavedHistory","type":"messages.AffectedHistory","typeModifiers":{"constructorId":3025955281},"id":1855459371,"comment":"Deletes messages forwarded from a specific peer to saved messages ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer, whose messages will be deleted from saved messages ยป"},{"name":"max_id","type":"int","comment":"Maximum ID of message to delete"},{"name":"min_date","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"Delete all messages newer than this UNIX timestamp"},{"name":"max_date","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Delete all messages older than this UNIX timestamp"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.getPinnedSavedDialogs","type":"messages.SavedDialogs","id":3594360032,"comment":"Get pinned saved dialogs, see here ยป for more info.","arguments":[],"available":"user"},{"kind":"method","name":"messages.toggleSavedDialogPin","type":"Bool","id":2894183390,"comment":"Pin or unpin a saved message dialog ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to pin or unpin the dialog"},{"name":"peer","type":"InputDialogPeer","comment":"The dialog to pin"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"messages.reorderPinnedSavedDialogs","type":"Bool","id":2339464583,"comment":"Reorder pinned saved message dialogs ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"force","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, dialogs pinned server-side but not present in the order field will be unpinned."},{"name":"order","type":"InputDialogPeer","typeModifiers":{"isVector":true},"comment":"New dialog order"}],"available":"user"},{"kind":"method","name":"messages.getSavedReactionTags","type":"messages.SavedReactionTags","id":909631579,"arguments":[{"name":"flags","type":"#"},{"name":"peer","type":"InputPeer","typeModifiers":{"predicate":"flags.0"}},{"name":"hash","type":"long"}]},{"kind":"method","name":"messages.updateSavedReactionTag","type":"Bool","id":1613331948,"arguments":[{"name":"flags","type":"#"},{"name":"reaction","type":"Reaction"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"messages.getDefaultTagReactions","type":"messages.Reactions","id":3187225640,"arguments":[{"name":"hash","type":"long"}]},{"kind":"method","name":"messages.getOutboxReadDate","type":"OutboxReadDate","typeModifiers":{"constructorId":1001931436},"id":2353790557,"arguments":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"}]},{"kind":"method","name":"messages.getQuickReplies","type":"messages.QuickReplies","id":3565417128,"arguments":[{"name":"hash","type":"long"}]},{"kind":"method","name":"messages.reorderQuickReplies","type":"Bool","id":1613961479,"arguments":[{"name":"order","type":"int","typeModifiers":{"isVector":true}}]},{"kind":"method","name":"messages.checkQuickReplyShortcut","type":"Bool","id":4057005011,"arguments":[{"name":"shortcut","type":"string"}]},{"kind":"method","name":"messages.editQuickReplyShortcut","type":"Bool","id":1543519471,"arguments":[{"name":"shortcut_id","type":"int"},{"name":"shortcut","type":"string"}]},{"kind":"method","name":"messages.deleteQuickReplyShortcut","type":"Bool","id":1019234112,"arguments":[{"name":"shortcut_id","type":"int"}]},{"kind":"method","name":"messages.getQuickReplyMessages","type":"messages.Messages","id":2493814211,"arguments":[{"name":"flags","type":"#"},{"name":"shortcut_id","type":"int"},{"name":"id","type":"int","typeModifiers":{"predicate":"flags.0","isVector":true}},{"name":"hash","type":"long"}]},{"kind":"method","name":"messages.sendQuickReplyMessages","type":"Updates","id":1819610593,"arguments":[{"name":"peer","type":"InputPeer"},{"name":"shortcut_id","type":"int"},{"name":"id","type":"int","typeModifiers":{"isVector":true}},{"name":"random_id","type":"long","typeModifiers":{"isVector":true}}]},{"kind":"method","name":"messages.deleteQuickReplyMessages","type":"Updates","id":3775260944,"arguments":[{"name":"shortcut_id","type":"int"},{"name":"id","type":"int","typeModifiers":{"isVector":true}}]},{"kind":"method","name":"messages.toggleDialogFilterTags","type":"Bool","id":4247640649,"arguments":[{"name":"enabled","type":"Bool"}]},{"kind":"method","name":"messages.getMyStickers","type":"messages.MyStickers","typeModifiers":{"constructorId":4211040925},"id":3501580796,"arguments":[{"name":"offset_id","type":"long"},{"name":"limit","type":"int"}]},{"kind":"method","name":"messages.getEmojiStickerGroups","type":"messages.EmojiGroups","id":500711669,"arguments":[{"name":"hash","type":"int"}]},{"kind":"method","name":"messages.getAvailableEffects","type":"messages.AvailableEffects","id":3735161401,"arguments":[{"name":"hash","type":"int"}]},{"kind":"method","name":"messages.editFactCheck","type":"Updates","id":92925557,"arguments":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"text","type":"TextWithEntities"}]},{"kind":"method","name":"messages.deleteFactCheck","type":"Updates","id":3520762892,"arguments":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"}]},{"kind":"method","name":"messages.getFactCheck","type":"FactCheck","typeModifiers":{"isVector":true,"constructorId":3097230543},"id":3117270510,"arguments":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int","typeModifiers":{"isVector":true}}]},{"kind":"method","name":"updates.getState","type":"updates.State","typeModifiers":{"constructorId":2775329342},"id":3990128682,"comment":"Returns a current state of updates.","arguments":[],"available":"both"},{"kind":"method","name":"updates.getDifference","type":"updates.Difference","id":432207715,"comment":"Get new updates.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pts","type":"int","comment":"PTS, see updates."},{"name":"pts_limit","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"PTS limit"},{"name":"pts_total_limit","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"For fast updating: if provided and pts + pts_total_limit < remote pts, {@link updates.RawDifferenceTooLong} will be returned.
Simply tells the server to not return the difference if it is bigger than pts_total_limit
If the remote pts is too big (> ~4000000), this field will default to 1000000"},{"name":"date","type":"int","comment":"date, see updates."},{"name":"qts","type":"int","comment":"QTS, see updates."},{"name":"qts_limit","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"QTS limit"}],"throws":[{"code":400,"name":"CDN_METHOD_INVALID","comment":"You can't call this method in a CDN DC."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"DATE_EMPTY","comment":"Date empty."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PERSISTENT_TIMESTAMP_EMPTY","comment":"Persistent timestamp empty."},{"code":400,"name":"PERSISTENT_TIMESTAMP_INVALID","comment":"Persistent timestamp invalid."},{"code":500,"name":"RANDOM_ID_DUPLICATE","comment":"You provided a random ID that was already used."},{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."},{"code":400,"name":"USER_NOT_PARTICIPANT","comment":"You're not a member of this supergroup/channel."}],"available":"both"},{"kind":"method","name":"updates.getChannelDifference","type":"updates.ChannelDifference","id":51854712,"comment":"Returns the difference between the current state of updates of a certain channel and transmitted.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"force","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Set to true to skip some possibly unneeded updates and reduce server-side load"},{"name":"channel","type":"InputChannel","comment":"The channel"},{"name":"filter","type":"ChannelMessagesFilter","comment":"Messsage filter"},{"name":"pts","type":"int","comment":"Persistent timestamp (see updates)"},{"name":"limit","type":"int","comment":"How many updates to fetch, max 100000
Ordinary (non-bot) users are supposed to pass 10-100"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHANNEL_PUBLIC_GROUP_NA","comment":"channel/supergroup not available."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"FROM_MESSAGE_BOT_DISABLED","comment":"Bots can't use fromMessage min constructors."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PERSISTENT_TIMESTAMP_EMPTY","comment":"Persistent timestamp empty."},{"code":400,"name":"PERSISTENT_TIMESTAMP_INVALID","comment":"Persistent timestamp invalid."},{"code":500,"name":"PERSISTENT_TIMESTAMP_OUTDATED","comment":"Channel internal replication issues, try again later (treat this like an RPC_CALL_FAIL)."},{"code":400,"name":"PINNED_DIALOGS_TOO_MUCH","comment":"Too many pinned dialogs."},{"code":400,"name":"RANGES_INVALID","comment":"Invalid range provided."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."}],"available":"both"},{"kind":"method","name":"photos.updateProfilePhoto","type":"photos.Photo","typeModifiers":{"constructorId":539045032},"id":166207545,"comment":"Installs a previously uploaded photo as a profile photo.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"fallback","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings."},{"name":"bot","type":"InputUser","typeModifiers":{"predicate":"flags.1"},"comment":"Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user."},{"name":"id","type":"InputPhoto","comment":"Input photo"}],"throws":[{"code":400,"name":"ALBUM_PHOTOS_TOO_MANY","comment":"You have uploaded too many profile photos, delete some before retrying."},{"code":400,"name":"FILE_PARTS_INVALID","comment":"The number of file parts is invalid."},{"code":400,"name":"IMAGE_PROCESS_FAILED","comment":"Failure while processing image."},{"code":400,"name":"LOCATION_INVALID","comment":"The provided location is invalid."},{"code":400,"name":"PHOTO_CROP_SIZE_SMALL","comment":"Photo is too small."},{"code":400,"name":"PHOTO_EXT_INVALID","comment":"The extension of the photo is invalid."},{"code":400,"name":"PHOTO_ID_INVALID","comment":"Photo ID invalid."}],"available":"both"},{"kind":"method","name":"photos.uploadProfilePhoto","type":"photos.Photo","typeModifiers":{"constructorId":539045032},"id":59286453,"comment":"Updates current user profile photo.\n\nThe file, video and video_emoji_markup flags are mutually exclusive.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"fallback","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings."},{"name":"bot","type":"InputUser","typeModifiers":{"predicate":"flags.5"},"comment":"Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user."},{"name":"file","type":"InputFile","typeModifiers":{"predicate":"flags.0"},"comment":"Profile photo"},{"name":"video","type":"InputFile","typeModifiers":{"predicate":"flags.1"},"comment":"Animated profile picture video"},{"name":"video_start_ts","type":"double","typeModifiers":{"predicate":"flags.2"},"comment":"Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if video or video_emoji_markup is set."},{"name":"video_emoji_markup","type":"VideoSize","typeModifiers":{"predicate":"flags.4"},"comment":"Animated sticker profile picture, must contain either a {@link RawVideoSizeEmojiMarkup} or a {@link RawVideoSizeStickerMarkup} constructor."}],"throws":[{"code":400,"name":"ALBUM_PHOTOS_TOO_MANY","comment":"You have uploaded too many profile photos, delete some before retrying."},{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."},{"code":400,"name":"EMOJI_MARKUP_INVALID","comment":"The specified video_emoji_markup was invalid."},{"code":400,"name":"FILE_PARTS_INVALID","comment":"The number of file parts is invalid."},{"code":400,"name":"IMAGE_PROCESS_FAILED","comment":"Failure while processing image."},{"code":400,"name":"PHOTO_CROP_FILE_MISSING","comment":"Photo crop file missing."},{"code":400,"name":"PHOTO_CROP_SIZE_SMALL","comment":"Photo is too small."},{"code":400,"name":"PHOTO_EXT_INVALID","comment":"The extension of the photo is invalid."},{"code":400,"name":"PHOTO_FILE_MISSING","comment":"Profile photo file missing."},{"code":400,"name":"PHOTO_INVALID","comment":"Photo invalid."},{"code":400,"name":"STICKER_MIME_INVALID","comment":"The specified sticker MIME type is invalid."},{"code":400,"name":"VIDEO_FILE_INVALID","comment":"The specified video file is invalid."}],"available":"both"},{"kind":"method","name":"photos.deletePhotos","type":"long","typeModifiers":{"isVector":true},"id":2278522671,"comment":"Deletes profile photos. The method returns a list of successfully deleted photo IDs.","arguments":[{"name":"id","type":"InputPhoto","typeModifiers":{"isVector":true},"comment":"Input photos to delete"}],"available":"user"},{"kind":"method","name":"photos.getUserPhotos","type":"photos.Photos","id":2446144168,"comment":"Returns the list of user photos.","arguments":[{"name":"user_id","type":"InputUser","comment":"User ID"},{"name":"offset","type":"int","comment":"Number of list elements to be skipped"},{"name":"max_id","type":"long","comment":"If a positive value was transferred, the method will return only photos with IDs less than the set one. This parameter is often useful when refetching file references ยป, as in conjuction with limit=1 and offset=-1 the {@link RawPhoto} object with the id specified in max_id can be fetched."},{"name":"limit","type":"int","comment":"Number of list elements to be returned"}],"throws":[{"code":400,"name":"MAX_ID_INVALID","comment":"The provided max ID is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"both"},{"kind":"method","name":"photos.uploadContactProfilePhoto","type":"photos.Photo","typeModifiers":{"constructorId":539045032},"id":3779873393,"comment":"Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.\n\nThe file, video and video_emoji_markup flags are mutually exclusive.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"suggest","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, will send a {@link RawMessageActionSuggestProfilePhoto} service message to user_id, suggesting them to use the specified profile picture; otherwise, will set a personal profile picture for the user (only visible to the current user)."},{"name":"save","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If set, removes a previously set personal profile picture (does not affect suggested profile pictures, to remove them simply deleted the {@link RawMessageActionSuggestProfilePhoto} service message with {@link messages.RawDeleteMessagesRequest})."},{"name":"user_id","type":"InputUser","comment":"The contact"},{"name":"file","type":"InputFile","typeModifiers":{"predicate":"flags.0"},"comment":"Profile photo"},{"name":"video","type":"InputFile","typeModifiers":{"predicate":"flags.1"},"comment":"Animated profile picture video"},{"name":"video_start_ts","type":"double","typeModifiers":{"predicate":"flags.2"},"comment":"Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if video or video_emoji_markup is set."},{"name":"video_emoji_markup","type":"VideoSize","typeModifiers":{"predicate":"flags.5"},"comment":"Animated sticker profile picture, must contain either a {@link RawVideoSizeEmojiMarkup} or a {@link RawVideoSizeStickerMarkup} constructor."}],"throws":[{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"both"},{"kind":"method","name":"upload.saveFilePart","type":"Bool","id":3003426337,"comment":"Saves a part of file for further sending to one of the methods.","arguments":[{"name":"file_id","type":"long","comment":"Random file identifier created by the client"},{"name":"file_part","type":"int","comment":"Numerical order of a part"},{"name":"bytes","type":"bytes","comment":"Binary data, content of a part"}],"throws":[{"code":400,"name":"FILE_PART_EMPTY","comment":"The provided file part is empty."},{"code":400,"name":"FILE_PART_INVALID","comment":"The file part number is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"both"},{"kind":"method","name":"upload.getFile","type":"upload.File","id":3193124286,"comment":"Returns content of a whole file or its part.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"precise","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Disable some checks on limit and offset values, useful for example to stream videos by keyframes"},{"name":"cdn_supported","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether the current client supports CDN downloads"},{"name":"location","type":"InputFileLocation","comment":"File location"},{"name":"offset","type":"int53","comment":"Number of bytes to be skipped"},{"name":"limit","type":"int","comment":"Number of bytes to be returned"}],"throws":[{"code":400,"name":"CDN_METHOD_INVALID","comment":"You can't call this method in a CDN DC."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":406,"name":"FILEREF_UPGRADE_NEEDED","comment":"The client has to be updated in order to support file references."},{"code":400,"name":"FILE_ID_INVALID","comment":"The provided file id is invalid."},{"code":400,"name":"FILE_REFERENCE_*","comment":"The file reference expired, it must be refreshed."},{"code":400,"name":"FILE_REFERENCE_EXPIRED","comment":"File reference expired, it must be refetched as described in the documentation."},{"code":400,"name":"LIMIT_INVALID","comment":"The provided limit is invalid."},{"code":400,"name":"LOCATION_INVALID","comment":"The provided location is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"OFFSET_INVALID","comment":"The provided offset is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"both"},{"kind":"method","name":"upload.saveBigFilePart","type":"Bool","id":3732629309,"comment":"Saves a part of a large file (over 10 MB in size) to be later passed to one of the methods.","arguments":[{"name":"file_id","type":"long","comment":"Random file id, created by the client"},{"name":"file_part","type":"int","comment":"Part sequence number"},{"name":"file_total_parts","type":"int","comment":"Total number of parts"},{"name":"bytes","type":"bytes","comment":"Binary data, part contents"}],"throws":[{"code":400,"name":"FILE_PARTS_INVALID","comment":"The number of file parts is invalid."},{"code":400,"name":"FILE_PART_EMPTY","comment":"The provided file part is empty."},{"code":400,"name":"FILE_PART_INVALID","comment":"The file part number is invalid."},{"code":400,"name":"FILE_PART_SIZE_CHANGED","comment":"Provided file part size has changed."},{"code":400,"name":"FILE_PART_SIZE_INVALID","comment":"The provided file part size is invalid."},{"code":400,"name":"FILE_PART_TOO_BIG","comment":"The uploaded file part is too big."}],"available":"both"},{"kind":"method","name":"upload.getWebFile","type":"upload.WebFile","typeModifiers":{"constructorId":568808380},"id":619086221,"comment":"Returns content of a web file, by proxying the request through telegram, see the webfile docs for more info.\n\nNote: the query must be sent to the DC specified in the webfile_dc_id MTProto configuration field.","arguments":[{"name":"location","type":"InputWebFileLocation","comment":"The file to download"},{"name":"offset","type":"int","comment":"Number of bytes to be skipped"},{"name":"limit","type":"int","comment":"Number of bytes to be returned"}],"throws":[{"code":400,"name":"DOCUMENT_INVALID","comment":"The specified document is invalid."},{"code":400,"name":"LOCATION_INVALID","comment":"The provided location is invalid."}],"available":"user"},{"kind":"method","name":"upload.getCdnFile","type":"upload.CdnFile","id":962554330,"comment":"Download a CDN file.","arguments":[{"name":"file_token","type":"bytes","comment":"File token"},{"name":"offset","type":"int53","comment":"Offset of chunk to download"},{"name":"limit","type":"int","comment":"Length of chunk to download"}],"available":"user"},{"kind":"method","name":"upload.reuploadCdnFile","type":"FileHash","typeModifiers":{"isVector":true,"constructorId":4087022428},"id":2603046056,"comment":"Request a reupload of a certain file to a CDN DC.","arguments":[{"name":"file_token","type":"bytes","comment":"File token"},{"name":"request_token","type":"bytes","comment":"Request token"}],"throws":[{"code":400,"name":"CDN_METHOD_INVALID","comment":"You can't call this method in a CDN DC."},{"code":500,"name":"CDN_UPLOAD_TIMEOUT","comment":"A server-side timeout occurred while reuploading the file to the CDN DC."},{"code":400,"name":"FILE_TOKEN_INVALID","comment":"The specified file token is invalid."},{"code":400,"name":"RSA_DECRYPT_FAILED","comment":"Internal RSA decryption failed."}],"available":"both"},{"kind":"method","name":"upload.getCdnFileHashes","type":"FileHash","typeModifiers":{"isVector":true,"constructorId":4087022428},"id":2447130417,"comment":"Get SHA256 hashes for verifying downloaded CDN files","arguments":[{"name":"file_token","type":"bytes","comment":"File"},{"name":"offset","type":"int53","comment":"Offset from which to start getting hashes"}],"throws":[{"code":400,"name":"CDN_METHOD_INVALID","comment":"You can't call this method in a CDN DC."},{"code":400,"name":"FILE_TOKEN_INVALID","comment":"The specified file token is invalid."},{"code":400,"name":"RSA_DECRYPT_FAILED","comment":"Internal RSA decryption failed."}],"available":"both"},{"kind":"method","name":"upload.getFileHashes","type":"FileHash","typeModifiers":{"isVector":true,"constructorId":4087022428},"id":2438371370,"comment":"Get SHA256 hashes for verifying downloaded files","arguments":[{"name":"location","type":"InputFileLocation","comment":"File"},{"name":"offset","type":"int53","comment":"Offset from which to get file hashes"}],"throws":[{"code":400,"name":"LOCATION_INVALID","comment":"The provided location is invalid."}],"available":"both"},{"kind":"method","name":"help.getConfig","type":"Config","typeModifiers":{"constructorId":3424265246},"id":3304659051,"comment":"Returns current configuration, including data center configuration.","arguments":[],"throws":[{"code":400,"name":"CONNECTION_API_ID_INVALID","comment":"The provided API id is invalid."},{"code":400,"name":"CONNECTION_APP_VERSION_EMPTY","comment":"App version is empty."},{"code":400,"name":"CONNECTION_LAYER_INVALID","comment":"Layer invalid."},{"code":400,"name":"DATA_INVALID","comment":"Encrypted data invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."},{"code":403,"name":"USER_PRIVACY_RESTRICTED","comment":"The user's privacy settings do not allow you to do this."}],"available":"both"},{"kind":"method","name":"help.getNearestDc","type":"NearestDc","typeModifiers":{"constructorId":2384074613},"id":531836966,"comment":"Returns info on data center nearest to the user.","arguments":[],"available":"user"},{"kind":"method","name":"help.getAppUpdate","type":"help.AppUpdate","id":1378703997,"comment":"Returns information on update availability for the current application.","arguments":[{"name":"source","type":"string","comment":"Source"}],"available":"user"},{"kind":"method","name":"help.getInviteText","type":"help.InviteText","typeModifiers":{"constructorId":415997816},"id":1295590211,"comment":"Returns localized text of a text message with an invitation.","arguments":[],"available":"user"},{"kind":"method","name":"help.getSupport","type":"help.Support","typeModifiers":{"constructorId":398898678},"id":2631862477,"comment":"Returns the support user for the \"ask a question\" feature.","arguments":[],"available":"user"},{"kind":"method","name":"help.setBotUpdatesStatus","type":"Bool","id":3961704397,"comment":"Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only","arguments":[{"name":"pending_updates_count","type":"int","comment":"Number of pending updates"},{"name":"message","type":"string","comment":"Error message, if present"}],"available":"bot"},{"kind":"method","name":"help.getCdnConfig","type":"CdnConfig","typeModifiers":{"constructorId":1462101002},"id":1375900482,"comment":"Get configuration for CDN file downloads.","arguments":[],"available":"both"},{"kind":"method","name":"help.getRecentMeUrls","type":"help.RecentMeUrls","typeModifiers":{"constructorId":235081943},"id":1036054804,"comment":"Get recently used t.me links.\n\nWhen installing official applications from \"Download Telegram\" buttons present in t.me pages, a referral parameter is passed to applications after installation.
\nIf, after downloading the application, the user creates a new account (instead of logging into an existing one), the referral parameter should be imported using this method, which returns the t.me pages the user recently opened, before installing Telegram.","arguments":[{"name":"referer","type":"string","comment":"Referrer"}],"available":"user"},{"kind":"method","name":"help.getTermsOfServiceUpdate","type":"help.TermsOfServiceUpdate","id":749019089,"comment":"Look for updates of telegram's terms of service","arguments":[],"available":"user"},{"kind":"method","name":"help.acceptTermsOfService","type":"Bool","id":4000511898,"comment":"Accept the new terms of service","arguments":[{"name":"id","type":"DataJSON","comment":"ID of terms of service"}],"throws":[{"code":400,"name":"DATA_JSON_INVALID","comment":"The provided JSON data is invalid."}],"available":"user"},{"kind":"method","name":"help.getDeepLinkInfo","type":"help.DeepLinkInfo","id":1072547679,"comment":"Get info about an unsupported deep link, see here for more info ยป.","arguments":[{"name":"path","type":"string","comment":"Path component of a tg: link"}],"available":"user"},{"kind":"method","name":"help.getAppConfig","type":"help.AppConfig","id":1642330196,"comment":"Get app-specific configuration, see client configuration for more info on the result.","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"help.saveAppLog","type":"Bool","id":1862465352,"comment":"Saves logs of application on the server.","arguments":[{"name":"events","type":"InputAppEvent","typeModifiers":{"isVector":true},"comment":"List of input events"}],"available":"user"},{"kind":"method","name":"help.getPassportConfig","type":"help.PassportConfig","id":3328290056,"comment":"Get passport configuration","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"help.getSupportName","type":"help.SupportName","typeModifiers":{"constructorId":2349199817},"id":3546343212,"comment":"Get localized name of the telegram support user","arguments":[],"throws":[{"code":403,"name":"USER_INVALID","comment":"Invalid user provided."}],"available":"user"},{"kind":"method","name":"help.getUserInfo","type":"help.UserInfo","id":59377875,"comment":"Can only be used by TSF members to obtain internal information.","arguments":[{"name":"user_id","type":"InputUser","comment":"User ID"}],"throws":[{"code":403,"name":"USER_INVALID","comment":"Invalid user provided."}],"available":"user"},{"kind":"method","name":"help.editUserInfo","type":"help.UserInfo","id":1723407216,"comment":"Internal use","arguments":[{"name":"user_id","type":"InputUser","comment":"User"},{"name":"message","type":"string","comment":"Message"},{"name":"entities","type":"MessageEntity","typeModifiers":{"isVector":true},"comment":"Message entities for styled text"}],"throws":[{"code":400,"name":"ENTITY_BOUNDS_INVALID","comment":"A specified entity offset or length is invalid, see here ยป for info on how to properly compute the entity offset/length."},{"code":403,"name":"USER_INVALID","comment":"Invalid user provided."}],"available":"user"},{"kind":"method","name":"help.getPromoData","type":"help.PromoData","id":3231151137,"comment":"Get MTProxy/Public Service Announcement information","arguments":[],"available":"user"},{"kind":"method","name":"help.hidePromoData","type":"Bool","id":505748629,"comment":"Hide MTProxy/Public Service Announcement information","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer to hide"}],"available":"user"},{"kind":"method","name":"help.dismissSuggestion","type":"Bool","id":4111317665,"comment":"Dismiss a suggestion, see here for more info ยป.","arguments":[{"name":"peer","type":"InputPeer","comment":"In the case of pending suggestions in {@link RawChannelFull}, the channel ID."},{"name":"suggestion","type":"string","comment":"Suggestion, see here for more info ยป."}],"available":"user"},{"kind":"method","name":"help.getCountriesList","type":"help.CountriesList","id":1935116200,"comment":"Get name, ISO code, localized name and phone codes/patterns of all available countries","arguments":[{"name":"lang_code","type":"string","comment":"Language code of the current user"},{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"help.getPremiumPromo","type":"help.PremiumPromo","typeModifiers":{"constructorId":1395946908},"id":3088815060,"comment":"Get Telegram Premium promotion information","arguments":[],"available":"user"},{"kind":"method","name":"help.getPeerColors","type":"help.PeerColors","id":3665884207,"comment":"Get the set of accent color palettes ยป that can be used for message accents.","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"help.getPeerProfileColors","type":"help.PeerColors","id":2882513405,"comment":"Get the set of accent color palettes ยป that can be used in profile page backgrounds.","arguments":[{"name":"hash","type":"int","comment":"Hash for pagination, for more info click here"}],"available":"user"},{"kind":"method","name":"help.getTimezonesList","type":"help.TimezonesList","id":1236468288,"arguments":[{"name":"hash","type":"int"}]},{"kind":"method","name":"channels.readHistory","type":"Bool","id":3423619383,"comment":"Mark channel/supergroup history as read","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup"},{"name":"max_id","type":"int","comment":"ID of message up to which messages should be marked as read"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"channels.deleteMessages","type":"messages.AffectedMessages","typeModifiers":{"constructorId":2228326789},"id":2227305806,"comment":"Delete messages in a channel/supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of messages to delete"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"MESSAGE_DELETE_FORBIDDEN","comment":"You can't delete one of the messages you tried to delete, most likely because it is a service message."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"both"},{"kind":"method","name":"channels.reportSpam","type":"Bool","id":4098523925,"comment":"Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup"},{"name":"participant","type":"InputPeer","comment":"Participant whose messages should be reported"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of spam messages"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"user"},{"kind":"method","name":"channels.getMessages","type":"messages.Messages","id":2911672867,"comment":"Get channel/supergroup messages","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup"},{"name":"id","type":"InputMessage","typeModifiers":{"isVector":true},"comment":"IDs of messages to get"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MESSAGE_IDS_EMPTY","comment":"No message ids were provided."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."}],"available":"both"},{"kind":"method","name":"channels.getParticipants","type":"channels.ChannelParticipants","id":2010044880,"comment":"Get the participants of a supergroup/channel","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel"},{"name":"filter","type":"ChannelParticipantsFilter","comment":"Which participant types to fetch"},{"name":"offset","type":"int","comment":"Offset"},{"name":"limit","type":"int","comment":"Limit"},{"name":"hash","type":"long","comment":"Hash"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"both"},{"kind":"method","name":"channels.getParticipant","type":"channels.ChannelParticipant","typeModifiers":{"constructorId":3753378583},"id":2695589062,"comment":"Get info about a channel/supergroup participant","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup"},{"name":"participant","type":"InputPeer","comment":"Participant to get info about"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PARTICIPANT_ID_INVALID","comment":"The specified participant ID is invalid."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."},{"code":400,"name":"USER_NOT_PARTICIPANT","comment":"You're not a member of this supergroup/channel."}],"available":"both"},{"kind":"method","name":"channels.getChannels","type":"messages.Chats","id":176122811,"comment":"Get info about channels/supergroups","arguments":[{"name":"id","type":"InputChannel","typeModifiers":{"isVector":true},"comment":"IDs of channels/supergroups to get info about"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."}],"available":"both"},{"kind":"method","name":"channels.getFullChannel","type":"messages.ChatFull","typeModifiers":{"constructorId":3856126364},"id":141781513,"comment":"Get full info about a supergroup, gigagroup or channel","arguments":[{"name":"channel","type":"InputChannel","comment":"The channel, supergroup or gigagroup to get info about"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHANNEL_PUBLIC_GROUP_NA","comment":"channel/supergroup not available."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"both"},{"kind":"method","name":"channels.createChannel","type":"Updates","id":2432722695,"comment":"Create a supergroup/channel.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"broadcast","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to create a channel"},{"name":"megagroup","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to create a supergroup"},{"name":"for_import","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"Whether the supergroup is being created to import messages from a foreign chat service using {@link messages.RawInitHistoryImportRequest}"},{"name":"forum","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether to create a forum"},{"name":"title","type":"string","comment":"Channel title"},{"name":"about","type":"string","comment":"Channel description"},{"name":"geo_point","type":"InputGeoPoint","typeModifiers":{"predicate":"flags.2"},"comment":"Geogroup location, see here ยป for more info on geogroups."},{"name":"address","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"Geogroup address, see here ยป for more info on geogroups."},{"name":"ttl_period","type":"int","typeModifiers":{"predicate":"flags.4"},"comment":"Time-to-live of all messages that will be sent in the supergroup: once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. You can use {@link messages.RawSetDefaultHistoryTTLRequest} to edit this value later."}],"throws":[{"code":400,"name":"ADDRESS_INVALID","comment":"The specified geopoint address is invalid."},{"code":400,"name":"CHANNELS_ADMIN_LOCATED_TOO_MUCH","comment":"The user has reached the limit of public geogroups."},{"code":400,"name":"CHANNELS_TOO_MUCH","comment":"You have joined too many channels/supergroups."},{"code":400,"name":"CHAT_ABOUT_TOO_LONG","comment":"Chat about too long."},{"code":500,"name":"CHAT_INVALID","comment":"Invalid chat."},{"code":400,"name":"CHAT_TITLE_EMPTY","comment":"No chat title provided."},{"code":400,"name":"TTL_PERIOD_INVALID","comment":"The specified TTL period is invalid."},{"code":406,"name":"USER_RESTRICTED","comment":"You're spamreported, you can't create channels or chats."}],"available":"user"},{"kind":"method","name":"channels.editAdmin","type":"Updates","id":3543959810,"comment":"Modify the admin rights of a user in a supergroup/channel.","arguments":[{"name":"channel","type":"InputChannel","comment":"The supergroup/channel."},{"name":"user_id","type":"InputUser","comment":"The ID of the user whose admin rights should be modified"},{"name":"admin_rights","type":"ChatAdminRights","comment":"The admin rights"},{"name":"rank","type":"string","comment":"Indicates the role (rank) of the admin in the group: just an arbitrary string"}],"throws":[{"code":400,"name":"ADMINS_TOO_MUCH","comment":"There are too many admins."},{"code":400,"name":"ADMIN_RANK_EMOJI_NOT_ALLOWED","comment":"An admin rank cannot contain emojis."},{"code":400,"name":"ADMIN_RANK_INVALID","comment":"The specified admin rank is invalid."},{"code":400,"name":"BOTS_TOO_MUCH","comment":"There are too many bots in this chat/channel."},{"code":400,"name":"BOT_CHANNELS_NA","comment":"Bots can't edit admin privileges."},{"code":400,"name":"BOT_GROUPS_BLOCKED","comment":"This bot can't be added to groups."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_INVITE_REQUIRED","comment":"You do not have the rights to do this."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":406,"name":"FRESH_CHANGE_ADMINS_FORBIDDEN","comment":"You were just elected admin, you can't add or modify other admins yet."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":403,"name":"RIGHT_FORBIDDEN","comment":"Your admin rights do not allow you to do this."},{"code":400,"name":"USERS_TOO_MUCH","comment":"The maximum number of users has been exceeded (to create a chat, for example)."},{"code":400,"name":"USER_BLOCKED","comment":"User blocked."},{"code":403,"name":"USER_CHANNELS_TOO_MUCH","comment":"One of the users you tried to add is already in too many channels/supergroups."},{"code":400,"name":"USER_CREATOR","comment":"You can't leave this channel, because you're its creator."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."},{"code":403,"name":"USER_NOT_MUTUAL_CONTACT","comment":"The provided user is not a mutual contact."},{"code":403,"name":"USER_PRIVACY_RESTRICTED","comment":"The user's privacy settings do not allow you to do this."},{"code":403,"name":"USER_RESTRICTED","comment":"You're spamreported, you can't create channels or chats."}],"available":"both"},{"kind":"method","name":"channels.editTitle","type":"Updates","id":1450044624,"comment":"Edit the name of a channel/supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup"},{"name":"title","type":"string","comment":"New name"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"CHAT_TITLE_EMPTY","comment":"No chat title provided."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."}],"available":"both"},{"kind":"method","name":"channels.editPhoto","type":"Updates","id":4046346185,"comment":"Change the photo of a channel/supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup whose photo should be edited"},{"name":"photo","type":"InputChatPhoto","comment":"New photo"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"FILE_PARTS_INVALID","comment":"The number of file parts is invalid."},{"code":400,"name":"FILE_REFERENCE_INVALID","comment":"The specified file reference is invalid."},{"code":400,"name":"IMAGE_PROCESS_FAILED","comment":"Failure while processing image."},{"code":400,"name":"PHOTO_CROP_SIZE_SMALL","comment":"Photo is too small."},{"code":400,"name":"PHOTO_EXT_INVALID","comment":"The extension of the photo is invalid."},{"code":400,"name":"PHOTO_INVALID","comment":"Photo invalid."},{"code":400,"name":"STICKER_MIME_INVALID","comment":"The specified sticker MIME type is invalid."}],"available":"both"},{"kind":"method","name":"channels.checkUsername","type":"Bool","id":283557164,"comment":"Check if a username is free and can be assigned to a channel/supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"The channel/supergroup that will assigned the specified username"},{"name":"username","type":"string","comment":"The username to check"}],"throws":[{"code":400,"name":"CHANNELS_ADMIN_PUBLIC_TOO_MUCH","comment":"You're admin of too many public channels, make some channels private to change the username of this channel."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."},{"code":400,"name":"USERNAME_OCCUPIED","comment":"The provided username is already occupied."},{"code":400,"name":"USERNAME_PURCHASE_AVAILABLE","comment":"The specified username can be purchased on https://fragment.com."}],"available":"user"},{"kind":"method","name":"channels.updateUsername","type":"Bool","id":890549214,"comment":"Change or remove the username of a supergroup/channel","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel"},{"name":"username","type":"string","comment":"New username, pass an empty string to remove the username"}],"throws":[{"code":400,"name":"CHANNELS_ADMIN_PUBLIC_TOO_MUCH","comment":"You're admin of too many public channels, make some channels private to change the username of this channel."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."},{"code":400,"name":"USERNAME_NOT_MODIFIED","comment":"The username was not modified."},{"code":400,"name":"USERNAME_OCCUPIED","comment":"The provided username is already occupied."},{"code":400,"name":"USERNAME_PURCHASE_AVAILABLE","comment":"The specified username can be purchased on https://fragment.com."}],"available":"user"},{"kind":"method","name":"channels.joinChannel","type":"Updates","id":615851205,"comment":"Join a channel/supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup to join"}],"throws":[{"code":400,"name":"CHANNELS_TOO_MUCH","comment":"You have joined too many channels/supergroups."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_INVALID","comment":"Invalid chat."},{"code":400,"name":"INVITE_HASH_EMPTY","comment":"The invite hash is empty."},{"code":406,"name":"INVITE_HASH_EXPIRED","comment":"The invite link has expired."},{"code":400,"name":"INVITE_HASH_INVALID","comment":"The invite hash is invalid."},{"code":400,"name":"INVITE_REQUEST_SENT","comment":"You have successfully requested to join this chat or channel."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USERS_TOO_MUCH","comment":"The maximum number of users has been exceeded (to create a chat, for example)."},{"code":400,"name":"USER_ALREADY_PARTICIPANT","comment":"The user is already in the group."},{"code":400,"name":"USER_CHANNELS_TOO_MUCH","comment":"One of the users you tried to add is already in too many channels/supergroups."}],"available":"user"},{"kind":"method","name":"channels.leaveChannel","type":"Updates","id":4164332181,"comment":"Leave a channel/supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup to leave"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHANNEL_PUBLIC_GROUP_NA","comment":"channel/supergroup not available."},{"code":400,"name":"CHAT_INVALID","comment":"Invalid chat."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."},{"code":400,"name":"USER_CREATOR","comment":"You can't leave this channel, because you're its creator."},{"code":400,"name":"USER_NOT_PARTICIPANT","comment":"You're not a member of this supergroup/channel."}],"available":"both"},{"kind":"method","name":"channels.inviteToChannel","id":3387112788,"type":"messages.InvitedUsers","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup"},{"name":"users","type":"InputUser","typeModifiers":{"isVector":true},"comment":"Users to invite"}],"typeModifiers":{"constructorId":2136862630},"comment":"Invite users to a channel/supergroup\n\nMay also return 0-N updates of type {@link RawUpdateGroupInvitePrivacyForbidden}: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link can be shared with the user, instead.","throws":[{"code":400,"name":"BOTS_TOO_MUCH","comment":"There are too many bots in this chat/channel."},{"code":400,"name":"BOT_GROUPS_BLOCKED","comment":"This bot can't be added to groups."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_INVALID","comment":"Invalid chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"USERS_TOO_MUCH","comment":"The maximum number of users has been exceeded (to create a chat, for example)."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","comment":"You're banned from sending messages in supergroups/channels."},{"code":400,"name":"USER_BLOCKED","comment":"User blocked."},{"code":400,"name":"USER_BOT","comment":"Bots can only be admins in channels."},{"code":403,"name":"USER_CHANNELS_TOO_MUCH","comment":"One of the users you tried to add is already in too many channels/supergroups."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."},{"code":400,"name":"USER_KICKED","comment":"This user was kicked from this supergroup/channel."},{"code":403,"name":"USER_NOT_MUTUAL_CONTACT","comment":"The provided user is not a mutual contact."},{"code":403,"name":"USER_PRIVACY_RESTRICTED","comment":"The user's privacy settings do not allow you to do this."}],"available":"user"},{"kind":"method","name":"channels.deleteChannel","type":"Updates","id":3222347747,"comment":"Delete a channel/supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup to delete"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":406,"name":"CHANNEL_TOO_LARGE","comment":"Channel is too large to be deleted; this error is issued when trying to delete channels with more than 1000 members (subject to change)."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."}],"available":"user"},{"kind":"method","name":"channels.exportMessageLink","type":"ExportedMessageLink","typeModifiers":{"constructorId":1571494644},"id":3862932971,"comment":"Get link and embed info of a message in a channel/supergroup","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"grouped","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to include other grouped media (for albums)"},{"name":"thread","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to also include a thread ID, if available, inside of the link"},{"name":"channel","type":"InputChannel","comment":"Channel"},{"name":"id","type":"int","comment":"Message ID"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"channels.toggleSignatures","type":"Updates","id":527021574,"comment":"Enable/disable message signatures in channels","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel"},{"name":"enabled","type":"Bool","comment":"Value"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."}],"available":"user"},{"kind":"method","name":"channels.getAdminedPublicChannels","type":"messages.Chats","id":4172297903,"comment":"Get channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the {@link RawConfig} for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of their channels/supergroups/geogroups.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"by_location","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Get geogroups"},{"name":"check_limit","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If set and the user has reached the limit of owned public channels/supergroups/geogroups, instead of returning the channel list one of the specified errors will be returned.
Useful to check if a new public channel can indeed be created, even before asking the user to enter a channel username to use in {@link channels.RawCheckUsernameRequest}/{@link channels.RawUpdateUsernameRequest}."},{"name":"for_personal","type":"true","typeModifiers":{"predicate":"flags.2"}}],"throws":[{"code":400,"name":"CHANNELS_ADMIN_LOCATED_TOO_MUCH","comment":"The user has reached the limit of public geogroups."},{"code":400,"name":"CHANNELS_ADMIN_PUBLIC_TOO_MUCH","comment":"You're admin of too many public channels, make some channels private to change the username of this channel."}],"available":"user"},{"kind":"method","name":"channels.editBanned","type":"Updates","id":2531708289,"comment":"Ban/unban/kick a user in a supergroup/channel.","arguments":[{"name":"channel","type":"InputChannel","comment":"The supergroup/channel."},{"name":"participant","type":"InputPeer","comment":"Participant to ban"},{"name":"banned_rights","type":"ChatBannedRights","comment":"The banned rights"}],"throws":[{"code":406,"name":"BANNED_RIGHTS_INVALID","comment":"You provided some invalid flags in the banned rights."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PARTICIPANT_ID_INVALID","comment":"The specified participant ID is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_ADMIN_INVALID","comment":"You're not an admin."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"both"},{"kind":"method","name":"channels.getAdminLog","type":"channels.AdminLogResults","typeModifiers":{"constructorId":3985307469},"id":870184064,"comment":"Get the admin log of a channel/supergroup","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel","type":"InputChannel","comment":"Channel"},{"name":"q","type":"string","comment":"Search query, can be empty"},{"name":"events_filter","type":"ChannelAdminLogEventsFilter","typeModifiers":{"predicate":"flags.0"},"comment":"Event filter"},{"name":"admins","type":"InputUser","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Only show events from these admins"},{"name":"max_id","type":"long","comment":"Maximum ID of message to return (see pagination)"},{"name":"min_id","type":"long","comment":"Minimum ID of message to return (see pagination)"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"channels.setStickers","type":"Bool","id":3935085817,"comment":"Associate a stickerset to the supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup"},{"name":"stickerset","type":"InputStickerSet","comment":"The stickerset to associate"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"PARTICIPANTS_TOO_FEW","comment":"Not enough participants."},{"code":406,"name":"STICKERSET_OWNER_ANONYMOUS","comment":"Provided stickerset can't be installed as group stickerset to prevent admin deanonymization."}],"available":"both"},{"kind":"method","name":"channels.readMessageContents","type":"Bool","id":3937786936,"comment":"Mark channel/supergroup message contents as read","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of messages whose contents should be marked as read"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":406,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"channels.deleteHistory","type":"Updates","id":2611648071,"comment":"Delete the history of a supergroup","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"for_everyone","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the history should be deleted for everyone"},{"name":"channel","type":"InputChannel","comment":"Supergroup whose history must be deleted"},{"name":"max_id","type":"int","comment":"ID of message up to which the history must be deleted"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PARICIPANT_MISSING","comment":"The current user is not in the channel."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHANNEL_TOO_BIG","comment":"This channel has too many participants (>1000) to be deleted."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."}],"available":"user"},{"kind":"method","name":"channels.togglePreHistoryHidden","type":"Updates","id":3938171212,"comment":"Hide/unhide message history for new channel/supergroup users","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel/supergroup"},{"name":"enabled","type":"Bool","comment":"Hide/unhide"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_LINK_EXISTS","comment":"The chat is public, you can't hide the history to new users."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"FORUM_ENABLED","comment":"You can't execute the specified action because the group is a forum, disable forum functionality to continue."}],"available":"user"},{"kind":"method","name":"channels.getLeftChannels","type":"messages.Chats","id":2202135744,"comment":"Get a list of channels/supergroups we left, requires a takeout session, see here ยป for more info.","arguments":[{"name":"offset","type":"int","comment":"Offset for pagination"}],"throws":[{"code":403,"name":"TAKEOUT_REQUIRED","comment":"A takeout session needs to be initialized first, see here ยป for more info."}],"available":"user"},{"kind":"method","name":"channels.getGroupsForDiscussion","type":"messages.Chats","id":4124758904,"comment":"Get all groups that can be used as discussion groups.\n\nReturned basic group chats must be first upgraded to supergroups before they can be set as a discussion group.
\nTo set a returned supergroup as a discussion group, access to its old messages must be enabled using {@link channels.RawTogglePreHistoryHiddenRequest}, first.","arguments":[],"available":"user"},{"kind":"method","name":"channels.setDiscussionGroup","type":"Bool","id":1079520178,"comment":"Associate a group to a channel as discussion group for that channel","arguments":[{"name":"broadcast","type":"InputChannel","comment":"Channel"},{"name":"group","type":"InputChannel","comment":"Discussion group to associate to the channel"}],"throws":[{"code":400,"name":"BROADCAST_ID_INVALID","comment":"Broadcast ID invalid."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"LINK_NOT_MODIFIED","comment":"Discussion link not modified."},{"code":400,"name":"MEGAGROUP_ID_INVALID","comment":"Invalid supergroup ID."},{"code":400,"name":"MEGAGROUP_PREHISTORY_HIDDEN","comment":"Group with hidden history for new members can't be set as discussion groups."}],"available":"user"},{"kind":"method","name":"channels.editCreator","type":"Updates","id":2402864415,"comment":"Transfer channel ownership","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel"},{"name":"user_id","type":"InputUser","comment":"New channel owner"},{"name":"password","type":"InputCheckPasswordSRP","comment":"2FA password of account"}],"throws":[{"code":400,"name":"CHANNELS_ADMIN_PUBLIC_TOO_MUCH","comment":"You're admin of too many public channels, make some channels private to change the username of this channel."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"PASSWORD_HASH_INVALID","comment":"The provided password hash is invalid."},{"code":400,"name":"PASSWORD_MISSING","comment":"You must enable 2FA in order to transfer ownership of a channel."},{"code":400,"name":"PASSWORD_TOO_FRESH_%d","comment":"The password was modified less than 24 hours ago, try again in %d seconds."},{"code":400,"name":"SESSION_TOO_FRESH_%d","comment":"This session was created less than 24 hours ago, try again in %d seconds."},{"code":400,"name":"SRP_ID_INVALID","comment":"Invalid SRP ID provided."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"user"},{"kind":"method","name":"channels.editLocation","type":"Bool","id":1491484525,"comment":"Edit location of geo group, see here ยป for more info on geogroups.","arguments":[{"name":"channel","type":"InputChannel","comment":"Geogroup"},{"name":"geo_point","type":"InputGeoPoint","comment":"New geolocation"},{"name":"address","type":"string","comment":"Address string"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"MEGAGROUP_GEO_REQUIRED","comment":"This method can only be invoked on a geogroup."},{"code":400,"name":"MEGAGROUP_REQUIRED","comment":"You can only use this method on a supergroup."}],"available":"user"},{"kind":"method","name":"channels.toggleSlowMode","type":"Updates","id":3990134512,"comment":"Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds","arguments":[{"name":"channel","type":"InputChannel","comment":"The supergroup"},{"name":"seconds","type":"int","comment":"Users will only be able to send one message every seconds seconds, 0 to disable the limitation"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"SECONDS_INVALID","comment":"Invalid duration provided."}],"available":"user"},{"kind":"method","name":"channels.getInactiveChannels","type":"messages.InactiveChats","typeModifiers":{"constructorId":2837970629},"id":300429806,"comment":"Get inactive channels and supergroups","arguments":[],"available":"user"},{"kind":"method","name":"channels.convertToGigagroup","type":"Updates","id":187239529,"comment":"Convert a supergroup to a gigagroup, when requested by channel suggestions.","arguments":[{"name":"channel","type":"InputChannel","comment":"The supergroup to convert"}],"throws":[{"code":400,"name":"CHANNEL_ID_INVALID","comment":"The specified supergroup ID is invalid."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"FORUM_ENABLED","comment":"You can't execute the specified action because the group is a forum, disable forum functionality to continue."},{"code":400,"name":"PARTICIPANTS_TOO_FEW","comment":"Not enough participants."}],"available":"user"},{"kind":"method","name":"channels.viewSponsoredMessage","type":"Bool","id":3199130516,"comment":"Mark a specific sponsored message as read","arguments":[{"name":"channel","type":"InputChannel","comment":"Peer"},{"name":"random_id","type":"bytes","comment":"Message ID"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."}],"available":"user"},{"kind":"method","name":"channels.getSponsoredMessages","type":"messages.SponsoredMessages","id":3961589695,"comment":"Get a list of sponsored messages","arguments":[{"name":"channel","type":"InputChannel","comment":"Peer"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."}],"available":"user"},{"kind":"method","name":"channels.getSendAs","type":"channels.SendAsPeers","typeModifiers":{"constructorId":4103516358},"id":231174382,"comment":"Obtains a list of peers that can be used to send messages in a specific group","arguments":[{"name":"peer","type":"InputPeer","comment":"The group where we intend to send messages"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"channels.deleteParticipantHistory","type":"messages.AffectedHistory","typeModifiers":{"constructorId":3025955281},"id":913655003,"comment":"Delete all messages sent by a specific participant of a given supergroup","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup"},{"name":"participant","type":"InputPeer","comment":"The participant whose messages should be deleted"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PARTICIPANT_ID_INVALID","comment":"The specified participant ID is invalid."}],"available":"user"},{"kind":"method","name":"channels.toggleJoinToSend","type":"Updates","id":3838547328,"comment":"Set whether all users should join a discussion group in order to comment on a post ยป","arguments":[{"name":"channel","type":"InputChannel","comment":"Discussion group"},{"name":"enabled","type":"Bool","comment":"Toggle"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."}],"available":"user"},{"kind":"method","name":"channels.toggleJoinRequest","type":"Updates","id":1277789622,"comment":"Set whether all users should request admin approval to join the group ยป.","arguments":[{"name":"channel","type":"InputChannel","comment":"Group"},{"name":"enabled","type":"Bool","comment":"Toggle"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"CHAT_PUBLIC_REQUIRED","comment":"You can only enable join requests in public groups."}],"available":"user"},{"kind":"method","name":"channels.reorderUsernames","type":"Bool","id":3025988893,"comment":"Reorder active usernames","arguments":[{"name":"channel","type":"InputChannel","comment":"The supergroup or channel"},{"name":"order","type":"string","typeModifiers":{"isVector":true},"comment":"The new order for active usernames. All active usernames must be specified."}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."}],"available":"both"},{"kind":"method","name":"channels.toggleUsername","type":"Bool","id":1358053637,"comment":"Activate or deactivate a purchased fragment.com username associated to a supergroup or channel we own.","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup or channel"},{"name":"username","type":"string","comment":"Username"},{"name":"active","type":"Bool","comment":"Whether to activate or deactivate the username"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"USERNAMES_ACTIVE_TOO_MUCH","comment":"The maximum number of active usernames was reached."},{"code":400,"name":"USERNAME_INVALID","comment":"The provided username is not valid."}],"available":"both"},{"kind":"method","name":"channels.deactivateAllUsernames","type":"Bool","id":170155475,"comment":"Disable all purchased usernames of a supergroup or channel","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup or channel"}],"available":"both"},{"kind":"method","name":"channels.toggleForum","type":"Updates","id":2754186025,"comment":"Enable or disable forum functionality in a supergroup.","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup ID"},{"name":"enabled","type":"Bool","comment":"Enable or disable forum functionality"}],"throws":[{"code":400,"name":"CHAT_DISCUSSION_UNALLOWED","comment":"You can't enable forum topics in a discussion group linked to a channel."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."}],"available":"both"},{"kind":"method","name":"channels.createForumTopic","type":"Updates","id":4094427684,"comment":"Create a forum topic; requires manage_topics rights.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel","type":"InputChannel","comment":"The forum"},{"name":"title","type":"string","comment":"Topic title (maximum UTF-8 length: 128)"},{"name":"icon_color","type":"int","typeModifiers":{"predicate":"flags.0"},"comment":"If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F."},{"name":"icon_emoji_id","type":"long","typeModifiers":{"predicate":"flags.3"},"comment":"ID of the custom emoji used as topic icon. Telegram Premium users can use any custom emoji, other users can only use the custom emojis contained in the {@link RawInputStickerSetEmojiDefaultTopicIcons} emoji pack."},{"name":"random_id","type":"long","comment":"Unique client message ID to prevent duplicate sending of the same event"},{"name":"send_as","type":"InputPeer","typeModifiers":{"predicate":"flags.2"},"comment":"Create the topic as the specified peer"}],"throws":[{"code":400,"name":"CHANNEL_FORUM_MISSING","comment":"This supergroup is not a forum."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","comment":"You can't write in this chat."},{"code":403,"name":"PREMIUM_ACCOUNT_REQUIRED","comment":"A premium account is required to execute this action."},{"code":400,"name":"TOPIC_TITLE_EMPTY","comment":"The specified topic title is empty."}],"available":"both"},{"kind":"method","name":"channels.getForumTopics","type":"messages.ForumTopics","typeModifiers":{"constructorId":913709011},"id":233136337,"comment":"Get topics of a forum","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel","type":"InputChannel","comment":"Supergroup"},{"name":"q","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Search query"},{"name":"offset_date","type":"int","comment":"Offsets for pagination, for more info click here, date of the last message of the last found topic. Use 0 or any date in the future to get results from the last topic."},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here, ID of the last message of the last found topic (or initially 0)."},{"name":"offset_topic","type":"int","comment":"Offsets for pagination, for more info click here, ID of the last found topic (or initially 0)."},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination. For optimal performance, the number of returned topics is chosen by the server and can be smaller than the specified limit."}],"throws":[{"code":400,"name":"CHANNEL_FORUM_MISSING","comment":"This supergroup is not a forum."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."}],"available":"user"},{"kind":"method","name":"channels.getForumTopicsByID","type":"messages.ForumTopics","typeModifiers":{"constructorId":913709011},"id":2961383097,"comment":"Get forum topics by their ID","arguments":[{"name":"channel","type":"InputChannel","comment":"Forum"},{"name":"topics","type":"int","typeModifiers":{"isVector":true},"comment":"Topic IDs"}],"throws":[{"code":400,"name":"CHANNEL_FORUM_MISSING","comment":"This supergroup is not a forum."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"TOPICS_EMPTY","comment":"You specified no topic IDs."}],"available":"both"},{"kind":"method","name":"channels.editForumTopic","type":"Updates","id":4108296581,"comment":"Edit forum topic; requires manage_topics rights.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"channel","type":"InputChannel","comment":"Supergroup"},{"name":"topic_id","type":"int","comment":"Topic ID"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"If present, will update the topic title (maximum UTF-8 length: 128)."},{"name":"icon_emoji_id","type":"long","typeModifiers":{"predicate":"flags.1"},"comment":"If present, updates the custom emoji used as topic icon. Telegram Premium users can use any custom emoji, other users can only use the custom emojis contained in the {@link RawInputStickerSetEmojiDefaultTopicIcons} emoji pack. Pass 0 to switch to the fallback topic icon."},{"name":"closed","type":"Bool","typeModifiers":{"predicate":"flags.2"},"comment":"If present, will update the open/closed status of the topic."},{"name":"hidden","type":"Bool","typeModifiers":{"predicate":"flags.3"},"comment":"If present, will hide/unhide the topic (only valid for the \"General\" topic, id=1)."}],"throws":[{"code":400,"name":"CHANNEL_FORUM_MISSING","comment":"This supergroup is not a forum."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"DOCUMENT_INVALID","comment":"The specified document is invalid."},{"code":400,"name":"GENERAL_MODIFY_ICON_FORBIDDEN","comment":"You can't modify the icon of the \"General\" topic."},{"code":400,"name":"TOPIC_CLOSE_SEPARATELY","comment":"The close flag cannot be provided together with any of the other flags."},{"code":400,"name":"TOPIC_HIDE_SEPARATELY","comment":"The hide flag cannot be provided together with any of the other flags."},{"code":400,"name":"TOPIC_ID_INVALID","comment":"The specified topic ID is invalid."},{"code":400,"name":"TOPIC_NOT_MODIFIED","comment":"The updated topic info is equal to the current topic info, nothing was changed."}],"available":"both"},{"kind":"method","name":"channels.updatePinnedForumTopic","type":"Updates","id":1814925350,"comment":"Pin or unpin forum topics","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup ID"},{"name":"topic_id","type":"int","comment":"Forum topic ID"},{"name":"pinned","type":"Bool","comment":"Whether to pin or unpin the topic"}],"available":"both"},{"kind":"method","name":"channels.deleteTopicHistory","type":"messages.AffectedHistory","typeModifiers":{"constructorId":3025955281},"id":876830509,"comment":"Delete message history of a forum topic","arguments":[{"name":"channel","type":"InputChannel","comment":"Forum"},{"name":"top_msg_id","type":"int","comment":"Topic ID"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"TOPIC_ID_INVALID","comment":"The specified topic ID is invalid."}],"available":"both"},{"kind":"method","name":"channels.reorderPinnedForumTopics","type":"Updates","id":693150095,"comment":"Reorder pinned forum topics","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"force","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If not set, the order of only the topics present both server-side and in order will be changed (i.e. mentioning topics not pinned server-side in order will not pin them, and not mentioning topics pinned server-side will not unpin them).
If set, the entire server-side pinned topic list will be replaced with order (i.e. mentioning topics not pinned server-side in order will pin them, and not mentioning topics pinned server-side will unpin them)"},{"name":"channel","type":"InputChannel","comment":"Supergroup ID"},{"name":"order","type":"int","typeModifiers":{"isVector":true},"comment":"Topic IDs ยป"}],"available":"both"},{"kind":"method","name":"channels.toggleAntiSpam","type":"Updates","id":1760814315,"comment":"Enable or disable the native antispam system.","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup ID. The specified supergroup must have at least telegram_antispam_group_size_min members to enable antispam functionality, as specified by the client configuration parameters."},{"name":"enabled","type":"Bool","comment":"Enable or disable the native antispam system."}],"throws":[{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."}],"available":"both"},{"kind":"method","name":"channels.reportAntiSpamFalsePositive","type":"Bool","id":2823857811,"comment":"Report a native antispam false positive","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup ID"},{"name":"msg_id","type":"int","comment":"Message ID that was mistakenly deleted by the native antispam system, taken from the admin log"}],"available":"both"},{"kind":"method","name":"channels.toggleParticipantsHidden","type":"Updates","id":1785624660,"comment":"Hide or display the participants list in a supergroup.\n\nThe supergroup must have at least hidden_members_group_size_min participants in order to use this method, as specified by the client configuration parameters ยป.","arguments":[{"name":"channel","type":"InputChannel","comment":"Supergroup ID"},{"name":"enabled","type":"Bool","comment":"If true, will hide the participants list; otherwise will unhide it."}],"throws":[{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"CHAT_NOT_MODIFIED","comment":"No changes were made to chat information because the new information you passed is identical to the current information."},{"code":400,"name":"PARTICIPANTS_TOO_FEW","comment":"Not enough participants."}],"available":"both"},{"kind":"method","name":"channels.clickSponsoredMessage","type":"Bool","id":414170259,"comment":"Informs the server that the user has either:","arguments":[{"name":"channel","type":"InputChannel","comment":"Channel where the sponsored message was posted"},{"name":"random_id","type":"bytes","comment":"Message ID"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."}],"available":"user"},{"kind":"method","name":"channels.updateColor","type":"Updates","id":3635033713,"comment":"Update the accent color and background custom emoji ยป of a channel.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"for_profile","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed."},{"name":"channel","type":"InputChannel","comment":"Channel whose accent color should be changed."},{"name":"color","type":"int","typeModifiers":{"predicate":"flags.2"},"comment":"ID of the accent color palette ยป to use (not RGB24, see here ยป for more info); if not set, the default palette is used."},{"name":"background_emoji_id","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"Custom emoji ID used in the accent color pattern."}],"throws":[{"code":400,"name":"BOOSTS_REQUIRED","comment":"The specified channel must first be boosted by its users in order to perform this action."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."}],"available":"user"},{"kind":"method","name":"channels.toggleViewForumAsMessages","type":"Updates","id":2537077525,"comment":"Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a \"View as messages\" setting in the local client: this setting only affects the current account, and is synced to other logged in sessions using this method.\n\nInvoking this method will update the value of the view_forum_as_messages flag of {@link RawChannelFull} or {@link RawDialog} and emit an {@link RawUpdateChannelViewForumAsMessages}.","arguments":[{"name":"channel","type":"InputChannel","comment":"The forum"},{"name":"enabled","type":"Bool","comment":"The new value of the view_forum_as_messages flag."}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."}],"available":"user"},{"kind":"method","name":"channels.getChannelRecommendations","id":631707458,"type":"messages.Chats","arguments":[{"name":"flags","type":"#"},{"name":"channel","type":"InputChannel","typeModifiers":{"predicate":"flags.0"},"comment":"The method will return channels related to the passed channel."}],"comment":"Obtain a list of similarly themed public channels, selected based on similarities in their subscriber bases.","throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."}],"available":"user"},{"kind":"method","name":"channels.updateEmojiStatus","type":"Updates","id":4040418984,"comment":"Set an emoji status for a channel.","arguments":[{"name":"channel","type":"InputChannel","comment":"The channel, must have at least channel_emoji_status_level_min boosts."},{"name":"emoji_status","type":"EmojiStatus","comment":"Emoji status to set"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."}],"available":"user"},{"kind":"method","name":"channels.setBoostsToUnblockRestrictions","type":"Updates","id":2906234094,"arguments":[{"name":"channel","type":"InputChannel"},{"name":"boosts","type":"int"}]},{"kind":"method","name":"channels.setEmojiStickers","type":"Bool","id":1020866743,"arguments":[{"name":"channel","type":"InputChannel"},{"name":"stickerset","type":"InputStickerSet"}]},{"kind":"method","name":"channels.reportSponsoredMessage","type":"channels.SponsoredMessageReportResult","id":2945447609,"arguments":[{"name":"channel","type":"InputChannel"},{"name":"random_id","type":"bytes"},{"name":"option","type":"bytes"}]},{"kind":"method","name":"channels.restrictSponsoredMessages","type":"Updates","id":2598966553,"arguments":[{"name":"channel","type":"InputChannel"},{"name":"restricted","type":"Bool"}]},{"kind":"method","name":"channels.searchPosts","type":"messages.Messages","id":3516897403,"arguments":[{"name":"hashtag","type":"string"},{"name":"offset_rate","type":"int"},{"name":"offset_peer","type":"InputPeer"},{"name":"offset_id","type":"int"},{"name":"limit","type":"int"}]},{"kind":"method","name":"bots.sendCustomRequest","type":"DataJSON","typeModifiers":{"constructorId":2104790276},"id":2854709741,"comment":"Sends a custom request; for bots only","arguments":[{"name":"custom_method","type":"string","comment":"The method name"},{"name":"params","type":"DataJSON","comment":"JSON-serialized method parameters"}],"throws":[{"code":400,"name":"DATA_JSON_INVALID","comment":"The provided JSON data is invalid."},{"code":400,"name":"METHOD_INVALID","comment":"The specified method is invalid."},{"code":403,"name":"USER_BOT_INVALID","comment":"User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts."}],"available":"bot"},{"kind":"method","name":"bots.answerWebhookJSONQuery","type":"Bool","id":3860938573,"comment":"Answers a custom query; for bots only","arguments":[{"name":"query_id","type":"long","comment":"Identifier of a custom query"},{"name":"data","type":"DataJSON","comment":"JSON-serialized answer to the query"}],"throws":[{"code":400,"name":"DATA_JSON_INVALID","comment":"The provided JSON data is invalid."},{"code":400,"name":"QUERY_ID_INVALID","comment":"The query ID is invalid."},{"code":403,"name":"USER_BOT_INVALID","comment":"User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts."}],"available":"bot"},{"kind":"method","name":"bots.setBotCommands","type":"Bool","id":85399130,"comment":"Set bot command list","arguments":[{"name":"scope","type":"BotCommandScope","comment":"Command scope"},{"name":"lang_code","type":"string","comment":"Language code"},{"name":"commands","type":"BotCommand","typeModifiers":{"isVector":true},"comment":"Bot commands"}],"throws":[{"code":400,"name":"BOT_COMMAND_DESCRIPTION_INVALID","comment":"The specified command description is invalid."},{"code":400,"name":"BOT_COMMAND_INVALID","comment":"The specified command is invalid."},{"code":400,"name":"LANG_CODE_INVALID","comment":"The specified language code is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"bot"},{"kind":"method","name":"bots.resetBotCommands","type":"Bool","id":1032708345,"comment":"Clear bot commands for the specified bot scope and language code","arguments":[{"name":"scope","type":"BotCommandScope","comment":"Command scope"},{"name":"lang_code","type":"string","comment":"Language code"}],"throws":[{"code":400,"name":"LANG_CODE_INVALID","comment":"The specified language code is invalid."}],"available":"both"},{"kind":"method","name":"bots.getBotCommands","type":"BotCommand","typeModifiers":{"isVector":true,"constructorId":3262826695},"id":3813412310,"comment":"Obtain a list of bot commands for the specified bot scope and language code","arguments":[{"name":"scope","type":"BotCommandScope","comment":"Command scope"},{"name":"lang_code","type":"string","comment":"Language code"}],"throws":[{"code":400,"name":"USER_BOT_INVALID","comment":"User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts."}],"available":"both"},{"kind":"method","name":"bots.setBotMenuButton","type":"Bool","id":1157944655,"comment":"Sets the menu button action ยป for a given user or for all users","arguments":[{"name":"user_id","type":"InputUser","comment":"User ID"},{"name":"button","type":"BotMenuButton","comment":"Bot menu button action"}],"throws":[{"code":400,"name":"BUTTON_TEXT_INVALID","comment":"The specified button text is invalid."},{"code":400,"name":"BUTTON_URL_INVALID","comment":"Button URL invalid."}],"available":"both"},{"kind":"method","name":"bots.getBotMenuButton","type":"BotMenuButton","id":2623597352,"comment":"Gets the menu button action for a given user or for all users, previously set using {@link bots.RawSetBotMenuButtonRequest}; users can see this information in the {@link RawBotInfo} constructor.","arguments":[{"name":"user_id","type":"InputUser","comment":"User ID or empty for the default menu button."}],"throws":[{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."}],"available":"bot"},{"kind":"method","name":"bots.setBotBroadcastDefaultAdminRights","type":"Bool","id":2021942497,"comment":"Set the default suggested admin rights for bots being added as admins to channels, see here for more info on how to handle them ยป.","arguments":[{"name":"admin_rights","type":"ChatAdminRights","comment":"Admin rights"}],"throws":[{"code":400,"name":"RIGHTS_NOT_MODIFIED","comment":"The new admin rights are equal to the old rights, no change was made."}],"available":"both"},{"kind":"method","name":"bots.setBotGroupDefaultAdminRights","type":"Bool","id":2455685610,"comment":"Set the default suggested admin rights for bots being added as admins to groups, see here for more info on how to handle them ยป.","arguments":[{"name":"admin_rights","type":"ChatAdminRights","comment":"Admin rights"}],"throws":[{"code":400,"name":"RIGHTS_NOT_MODIFIED","comment":"The new admin rights are equal to the old rights, no change was made."},{"code":400,"name":"USER_BOT_REQUIRED","comment":"This method can only be called by a bot."}],"available":"bot"},{"kind":"method","name":"bots.setBotInfo","type":"Bool","id":282013987,"comment":"Set localized name, about text and description of a bot (or of the current account, if called by a bot).","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"bot","type":"InputUser","typeModifiers":{"predicate":"flags.2"},"comment":"If called by a user, must contain the peer of a bot we own."},{"name":"lang_code","type":"string","comment":"Language code, if left empty update the fallback about text and description"},{"name":"name","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"New bot name"},{"name":"about","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"New about text"},{"name":"description","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"New description"}],"throws":[{"code":400,"name":"USER_BOT_INVALID","comment":"User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts."}],"available":"both"},{"kind":"method","name":"bots.getBotInfo","type":"bots.BotInfo","typeModifiers":{"constructorId":3903288752},"id":3705214205,"comment":"Get localized name, about text and description of a bot (or of the current account, if called by a bot).","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"bot","type":"InputUser","typeModifiers":{"predicate":"flags.0"},"comment":"If called by a user, must contain the peer of a bot we own."},{"name":"lang_code","type":"string","comment":"Language code, if left empty this method will return the fallback about text and description."}],"throws":[{"code":400,"name":"LANG_CODE_INVALID","comment":"The specified language code is invalid."},{"code":400,"name":"USER_BOT_INVALID","comment":"User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts."}],"available":"both"},{"kind":"method","name":"bots.reorderUsernames","type":"Bool","id":2533994946,"comment":"Reorder usernames associated to a bot we own.","arguments":[{"name":"bot","type":"InputUser","comment":"The bot"},{"name":"order","type":"string","typeModifiers":{"isVector":true},"comment":"The new order for active usernames. All active usernames must be specified."}],"throws":[{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."}],"available":"both"},{"kind":"method","name":"bots.toggleUsername","type":"Bool","id":87861619,"comment":"Activate or deactivate a purchased fragment.com username associated to a bot we own.","arguments":[{"name":"bot","type":"InputUser","comment":"The bot"},{"name":"username","type":"string","comment":"Username"},{"name":"active","type":"Bool","comment":"Whether to activate or deactivate it"}],"throws":[{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."}],"available":"both"},{"kind":"method","name":"bots.canSendMessage","type":"Bool","id":324662502,"comment":"Check whether the specified bot can send us messages","arguments":[{"name":"bot","type":"InputUser","comment":"The bot"}],"throws":[{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."}],"available":"user"},{"kind":"method","name":"bots.allowSendMessage","type":"Updates","id":4046644207,"comment":"Allow the specified bot to send us messages","arguments":[{"name":"bot","type":"InputUser","comment":"The bot"}],"throws":[{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."}],"available":"user"},{"kind":"method","name":"bots.invokeWebViewCustomMethod","type":"DataJSON","typeModifiers":{"constructorId":2104790276},"id":142591463,"comment":"Send a custom request from a mini bot app, triggered by a web_app_invoke_custom_method event ยป.\n\nThe response should be sent using a custom_method_invoked event, see here ยป for more info on the flow.","arguments":[{"name":"bot","type":"InputUser","comment":"Identifier of the bot associated to the mini bot app"},{"name":"custom_method","type":"string","comment":"Identifier of the custom method to invoke"},{"name":"params","type":"DataJSON","comment":"Method parameters"}],"throws":[{"code":400,"name":"BOT_INVALID","comment":"This is not a valid bot."}],"available":"user"},{"kind":"method","name":"payments.getPaymentForm","type":"payments.PaymentForm","id":924093883,"comment":"Get a payment form","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"invoice","type":"InputInvoice","comment":"Invoice"},{"name":"theme_params","type":"DataJSON","typeModifiers":{"predicate":"flags.0"},"comment":"A JSON object with the following keys, containing color theme information (integers, RGB24) to pass to the payment provider, to apply in eventual verification pages:
bg_color - Background color
text_color - Text color
hint_color - Hint text color
link_color - Link color
button_color - Button color
button_text_color - Button text color"}],"throws":[{"code":400,"name":"BOOST_PEER_INVALID","comment":"The specified boost_peer is invalid."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"SLUG_INVALID","comment":"The specified invoice slug is invalid."},{"code":400,"name":"UNTIL_DATE_INVALID","comment":"Invalid until date provided."}],"available":"user"},{"kind":"method","name":"payments.getPaymentReceipt","type":"payments.PaymentReceipt","id":611897804,"comment":"Get payment receipt","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer where the payment receipt was sent"},{"name":"msg_id","type":"int","comment":"Message ID of receipt"}],"throws":[{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."}],"available":"user"},{"kind":"method","name":"payments.validateRequestedInfo","type":"payments.ValidatedRequestedInfo","typeModifiers":{"constructorId":3510966403},"id":3066622251,"comment":"Submit requested order information for validation","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"save","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Save order information to re-use it for future orders"},{"name":"invoice","type":"InputInvoice","comment":"Invoice"},{"name":"info","type":"PaymentRequestedInfo","comment":"Requested order information"}],"throws":[{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."}],"available":"user"},{"kind":"method","name":"payments.sendPaymentForm","type":"payments.PaymentResult","id":755192367,"comment":"Send compiled payment form","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"form_id","type":"long","comment":"Form ID"},{"name":"invoice","type":"InputInvoice","comment":"Invoice"},{"name":"requested_info_id","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"ID of saved and validated {@link payments.RawValidatedRequestedInfo}"},{"name":"shipping_option_id","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Chosen shipping option ID"},{"name":"credentials","type":"InputPaymentCredentials","comment":"Payment credentials"},{"name":"tip_amount","type":"long","typeModifiers":{"predicate":"flags.2"},"comment":"Tip, in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}],"throws":[{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."}],"available":"user"},{"kind":"method","name":"payments.getSavedInfo","type":"payments.SavedInfo","typeModifiers":{"constructorId":4220511292},"id":578650699,"comment":"Get saved payment information","arguments":[],"available":"user"},{"kind":"method","name":"payments.clearSavedInfo","type":"Bool","id":3627905217,"comment":"Clear saved payment information","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"credentials","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Remove saved payment credentials"},{"name":"info","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Clear the last order settings saved by the user"}],"available":"user"},{"kind":"method","name":"payments.getBankCardData","type":"payments.BankCardData","typeModifiers":{"constructorId":1042605427},"id":779736953,"comment":"Get info about a credit card","arguments":[{"name":"number","type":"string","comment":"Credit card number"}],"throws":[{"code":400,"name":"BANK_CARD_NUMBER_INVALID","comment":"The specified card number is invalid."}],"available":"user"},{"kind":"method","name":"payments.exportInvoice","type":"payments.ExportedInvoice","typeModifiers":{"constructorId":2932919257},"id":261206117,"comment":"Generate an invoice deep link","arguments":[{"name":"invoice_media","type":"InputMedia","comment":"Invoice"}],"throws":[{"code":400,"name":"CURRENCY_TOTAL_AMOUNT_INVALID","comment":"The total amount of all prices is invalid."},{"code":400,"name":"INVOICE_PAYLOAD_INVALID","comment":"The specified invoice payload is invalid."},{"code":400,"name":"MEDIA_INVALID","comment":"Media invalid."},{"code":400,"name":"PAYMENT_PROVIDER_INVALID","comment":"The specified payment provider is invalid."}],"available":"both"},{"kind":"method","name":"payments.assignAppStoreTransaction","type":"Updates","id":2163045501,"comment":"Informs server about a purchase made through the App Store: for official applications only.","arguments":[{"name":"receipt","type":"bytes","comment":"Receipt"},{"name":"purpose","type":"InputStorePaymentPurpose","comment":"Payment purpose"}],"available":"user"},{"kind":"method","name":"payments.assignPlayMarketTransaction","type":"Updates","id":3757920467,"comment":"Informs server about a purchase made through the Play Store: for official applications only.","arguments":[{"name":"receipt","type":"DataJSON","comment":"Receipt"},{"name":"purpose","type":"InputStorePaymentPurpose","comment":"Payment purpose"}],"available":"user"},{"kind":"method","name":"payments.canPurchasePremium","type":"Bool","id":2680266422,"comment":"Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase, official apps only.","arguments":[{"name":"purpose","type":"InputStorePaymentPurpose","comment":"Payment purpose"}],"available":"user"},{"kind":"method","name":"payments.getPremiumGiftCodeOptions","type":"PremiumGiftCodeOption","typeModifiers":{"isVector":true,"constructorId":629052971},"id":660060756,"comment":"Obtain a list of Telegram Premium giveaway/gift code ยป options.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"boost_peer","type":"InputPeer","typeModifiers":{"predicate":"flags.0"},"comment":"The channel that will start the giveaway"}],"available":"user"},{"kind":"method","name":"payments.checkGiftCode","type":"payments.CheckedGiftCode","typeModifiers":{"constructorId":675942550},"id":2387719361,"comment":"Obtain information about a Telegram Premium giftcode ยป","arguments":[{"name":"slug","type":"string","comment":"The giftcode to check"}],"throws":[{"code":400,"name":"GIFT_SLUG_INVALID","comment":"The specified slug is invalid."}],"available":"user"},{"kind":"method","name":"payments.applyGiftCode","type":"Updates","id":4142032980,"comment":"Apply a Telegram Premium giftcode ยป","arguments":[{"name":"slug","type":"string","comment":"The code to apply"}],"throws":[{"code":400,"name":"GIFT_SLUG_EXPIRED","comment":"The specified gift slug has expired."},{"code":400,"name":"GIFT_SLUG_INVALID","comment":"The specified slug is invalid."},{"code":420,"name":"PREMIUM_SUB_ACTIVE_UNTIL_%d","comment":"You already have a premium subscription active until unixtime %d ."}],"available":"user"},{"kind":"method","name":"payments.getGiveawayInfo","type":"payments.GiveawayInfo","id":4095972389,"comment":"Obtain information about a Telegram Premium giveaway ยป.","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer where the giveaway was posted."},{"name":"msg_id","type":"int","comment":"Message ID of the {@link RawMessageActionGiveawayLaunch} service message"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"payments.launchPrepaidGiveaway","type":"Updates","id":1609928480,"comment":"Launch a prepaid giveaway ยป.","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer where to launch the giveaway."},{"name":"giveaway_id","type":"long","comment":"The prepaid giveaway ID."},{"name":"purpose","type":"InputStorePaymentPurpose","comment":"Giveway parameters"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"payments.getStarsTopupOptions","type":"StarsTopupOption","typeModifiers":{"isVector":true,"constructorId":198776256},"id":3222194131,"arguments":[]},{"kind":"method","name":"payments.getStarsStatus","type":"payments.StarsStatus","typeModifiers":{"constructorId":2364862048},"id":273665959,"arguments":[{"name":"peer","type":"InputPeer"}]},{"kind":"method","name":"payments.getStarsTransactions","id":2543029594,"type":"payments.StarsStatus","arguments":[{"name":"flags","type":"#"},{"name":"inbound","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"outbound","type":"true","typeModifiers":{"predicate":"flags.1"}},{"name":"ascending","type":"true","typeModifiers":{"predicate":"flags.2"}},{"name":"peer","type":"InputPeer"},{"name":"offset","type":"string"},{"name":"limit","type":"int"}],"typeModifiers":{"constructorId":2364862048}},{"kind":"method","name":"payments.sendStarsForm","type":"payments.PaymentResult","id":45839133,"arguments":[{"name":"flags","type":"#"},{"name":"form_id","type":"long"},{"name":"invoice","type":"InputInvoice"}]},{"kind":"method","name":"payments.refundStarsCharge","type":"Updates","id":632196938,"arguments":[{"name":"user_id","type":"InputUser"},{"name":"charge_id","type":"string"}]},{"kind":"method","name":"payments.getStarsRevenueStats","id":3642751702,"type":"payments.StarsRevenueStats","arguments":[{"name":"flags","type":"#"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"peer","type":"InputPeer"}],"typeModifiers":{"constructorId":3375085371}},{"kind":"method","name":"payments.getStarsRevenueWithdrawalUrl","id":331081907,"type":"payments.StarsRevenueWithdrawalUrl","arguments":[{"name":"peer","type":"InputPeer"},{"name":"stars","type":"long"},{"name":"password","type":"InputCheckPasswordSRP"}],"typeModifiers":{"constructorId":497778871}},{"kind":"method","name":"stickers.createStickerSet","type":"messages.StickerSet","id":2418125671,"comment":"Create a stickerset, bots only.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"masks","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this is a mask stickerset"},{"name":"emojis","type":"true","typeModifiers":{"predicate":"flags.5"},"comment":"Whether this is a custom emoji stickerset."},{"name":"text_color","type":"true","typeModifiers":{"predicate":"flags.6"},"comment":"Whether the color of TGS custom emojis contained in this set should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context. For custom emoji stickersets only."},{"name":"user_id","type":"InputUser","comment":"Stickerset owner"},{"name":"title","type":"string","comment":"Stickerset name, 1-64 chars"},{"name":"short_name","type":"string","comment":"Short name of sticker set, to be used in sticker deep links ยป. Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and, if called by a bot, must end in \"_by_\". is case insensitive. 1-64 characters."},{"name":"thumb","type":"InputDocument","typeModifiers":{"predicate":"flags.2"},"comment":"Thumbnail"},{"name":"stickers","type":"InputStickerSetItem","typeModifiers":{"isVector":true},"comment":"Stickers"},{"name":"software","type":"string","typeModifiers":{"predicate":"flags.3"},"comment":"Used when importing stickers using the sticker import SDKs, specifies the name of the software that created the stickers"},{"name":"animated","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether this is an animated stickerset"},{"name":"videos","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"Whether this is a video stickerset"}],"throws":[{"code":400,"name":"PACK_SHORT_NAME_INVALID","comment":"Short pack name invalid."},{"code":400,"name":"PACK_SHORT_NAME_OCCUPIED","comment":"A stickerpack with this name already exists."},{"code":400,"name":"PACK_TITLE_INVALID","comment":"The stickerpack title is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"STICKERS_EMPTY","comment":"No sticker provided."},{"code":400,"name":"STICKER_EMOJI_INVALID","comment":"Sticker emoji invalid."},{"code":400,"name":"STICKER_FILE_INVALID","comment":"Sticker file invalid."},{"code":400,"name":"STICKER_GIF_DIMENSIONS","comment":"The specified video sticker has invalid dimensions."},{"code":400,"name":"STICKER_PNG_DIMENSIONS","comment":"Sticker png dimensions invalid."},{"code":400,"name":"STICKER_PNG_NOPNG","comment":"One of the specified stickers is not a valid PNG file."},{"code":400,"name":"STICKER_TGS_NODOC","comment":"You must send the animated sticker as a document."},{"code":400,"name":"STICKER_TGS_NOTGS","comment":"Invalid TGS sticker provided."},{"code":400,"name":"STICKER_THUMB_PNG_NOPNG","comment":"Incorrect stickerset thumb file provided, PNG / WEBP expected."},{"code":400,"name":"STICKER_THUMB_TGS_NOTGS","comment":"Incorrect stickerset TGS thumb file provided."},{"code":400,"name":"STICKER_VIDEO_BIG","comment":"The specified video sticker is too big."},{"code":400,"name":"STICKER_VIDEO_NODOC","comment":"You must send the video sticker as a document."},{"code":400,"name":"STICKER_VIDEO_NOWEBM","comment":"The specified video sticker is not in webm format."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"both"},{"kind":"method","name":"stickers.removeStickerFromSet","type":"messages.StickerSet","id":4151709521,"comment":"Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.","arguments":[{"name":"sticker","type":"InputDocument","comment":"The sticker to remove"}],"throws":[{"code":400,"name":"BOT_MISSING","comment":"Only bots can call this method, please use @stickers if you're a user."},{"code":400,"name":"STICKER_INVALID","comment":"The provided sticker is invalid."}],"available":"both"},{"kind":"method","name":"stickers.changeStickerPosition","type":"messages.StickerSet","id":4290172106,"comment":"Changes the absolute position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot","arguments":[{"name":"sticker","type":"InputDocument","comment":"The sticker"},{"name":"position","type":"int","comment":"The new position of the sticker, zero-based"}],"throws":[{"code":400,"name":"STICKER_INVALID","comment":"The provided sticker is invalid."}],"available":"both"},{"kind":"method","name":"stickers.addStickerToSet","type":"messages.StickerSet","id":2253651646,"comment":"Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot.","arguments":[{"name":"stickerset","type":"InputStickerSet","comment":"The stickerset"},{"name":"sticker","type":"InputStickerSetItem","comment":"The sticker"}],"throws":[{"code":400,"name":"BOT_MISSING","comment":"Only bots can call this method, please use @stickers if you're a user."},{"code":400,"name":"STICKERPACK_STICKERS_TOO_MUCH","comment":"There are too many stickers in this stickerpack, you can't add any more."},{"code":406,"name":"STICKERSET_INVALID","comment":"The provided sticker set is invalid."},{"code":400,"name":"STICKERS_TOO_MUCH","comment":"There are too many stickers in this stickerpack, you can't add any more."},{"code":400,"name":"STICKER_PNG_NOPNG","comment":"One of the specified stickers is not a valid PNG file."},{"code":400,"name":"STICKER_TGS_NOTGS","comment":"Invalid TGS sticker provided."}],"available":"both"},{"kind":"method","name":"stickers.setStickerSetThumb","type":"messages.StickerSet","id":2808763282,"comment":"Set stickerset thumbnail","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"stickerset","type":"InputStickerSet","comment":"Stickerset"},{"name":"thumb","type":"InputDocument","typeModifiers":{"predicate":"flags.0"},"comment":"Thumbnail (only for normal stickersets, not custom emoji stickersets)."},{"name":"thumb_document_id","type":"long","typeModifiers":{"predicate":"flags.1"},"comment":"Only for custom emoji stickersets, ID of a custom emoji present in the set to use as thumbnail; pass 0 to fallback to the first custom emoji of the set."}],"throws":[{"code":400,"name":"STICKERSET_INVALID","comment":"The provided sticker set is invalid."},{"code":400,"name":"STICKER_THUMB_PNG_NOPNG","comment":"Incorrect stickerset thumb file provided, PNG / WEBP expected."},{"code":400,"name":"STICKER_THUMB_TGS_NOTGS","comment":"Incorrect stickerset TGS thumb file provided."}],"available":"both"},{"kind":"method","name":"stickers.checkShortName","type":"Bool","id":676017721,"comment":"Check whether the given short name is available","arguments":[{"name":"short_name","type":"string","comment":"Short name"}],"throws":[{"code":400,"name":"SHORT_NAME_INVALID","comment":"The specified short name is invalid."},{"code":400,"name":"SHORT_NAME_OCCUPIED","comment":"The specified short name is already in use."}],"available":"user"},{"kind":"method","name":"stickers.suggestShortName","type":"stickers.SuggestedShortName","typeModifiers":{"constructorId":2248056895},"id":1303364867,"comment":"Suggests a short name for a given stickerpack name","arguments":[{"name":"title","type":"string","comment":"Sticker pack name"}],"throws":[{"code":400,"name":"TITLE_INVALID","comment":"The specified stickerpack title is invalid."}],"available":"user"},{"kind":"method","name":"stickers.changeSticker","type":"messages.StickerSet","id":4115889852,"comment":"Update the keywords, emojis or mask coordinates of a sticker, bots only.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"sticker","type":"InputDocument","comment":"The sticker"},{"name":"emoji","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"If set, updates the emoji list associated to the sticker"},{"name":"mask_coords","type":"MaskCoords","typeModifiers":{"predicate":"flags.1"},"comment":"If set, updates the mask coordinates"},{"name":"keywords","type":"string","typeModifiers":{"predicate":"flags.2"},"comment":"If set, updates the sticker keywords (separated by commas). Can't be provided for mask stickers."}],"throws":[{"code":400,"name":"BOT_MISSING","comment":"Only bots can call this method, please use @stickers if you're a user."},{"code":400,"name":"STICKER_INVALID","comment":"The provided sticker is invalid."}],"available":"both"},{"kind":"method","name":"stickers.renameStickerSet","type":"messages.StickerSet","id":306912256,"comment":"Renames a stickerset, bots only.","arguments":[{"name":"stickerset","type":"InputStickerSet","comment":"Stickerset to rename"},{"name":"title","type":"string","comment":"New stickerset title"}],"throws":[{"code":400,"name":"STICKERSET_INVALID","comment":"The provided sticker set is invalid."}],"available":"both"},{"kind":"method","name":"stickers.deleteStickerSet","type":"Bool","id":2272281492,"comment":"Deletes a stickerset we created, bots only.","arguments":[{"name":"stickerset","type":"InputStickerSet","comment":"Stickerset to delete"}],"throws":[{"code":400,"name":"BOT_MISSING","comment":"Only bots can call this method, please use @stickers if you're a user."},{"code":400,"name":"STICKERSET_INVALID","comment":"The provided sticker set is invalid."}],"available":"both"},{"kind":"method","name":"stickers.replaceSticker","type":"messages.StickerSet","id":1184253338,"arguments":[{"name":"sticker","type":"InputDocument"},{"name":"new_sticker","type":"InputStickerSetItem"}]},{"kind":"method","name":"phone.getCallConfig","type":"DataJSON","typeModifiers":{"constructorId":2104790276},"id":1430593449,"comment":"Get phone call configuration to be passed to libtgvoip's shared config","arguments":[],"available":"user"},{"kind":"method","name":"phone.requestCall","type":"phone.PhoneCall","typeModifiers":{"constructorId":3968000320},"id":1124046573,"comment":"Start a telegram phone call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to start a video call"},{"name":"user_id","type":"InputUser","comment":"Destination of the phone call"},{"name":"random_id","type":"int","comment":"Random ID to avoid resending the same object"},{"name":"g_a_hash","type":"bytes","comment":"Parameter for E2E encryption key exchange ยป"},{"name":"protocol","type":"PhoneCallProtocol","comment":"Phone call settings"}],"throws":[{"code":400,"name":"CALL_PROTOCOL_FLAGS_INVALID","comment":"Call protocol flags invalid."},{"code":400,"name":"INPUT_USER_DEACTIVATED","comment":"The specified user was deleted."},{"code":400,"name":"PARTICIPANT_VERSION_OUTDATED","comment":"The other participant does not use an up to date telegram client with support for calls."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."},{"code":403,"name":"USER_IS_BLOCKED","comment":"You were blocked by this user."},{"code":403,"name":"USER_PRIVACY_RESTRICTED","comment":"The user's privacy settings do not allow you to do this."}],"available":"user"},{"kind":"method","name":"phone.acceptCall","type":"phone.PhoneCall","typeModifiers":{"constructorId":3968000320},"id":1003664544,"comment":"Accept incoming call","arguments":[{"name":"peer","type":"InputPhoneCall","comment":"The call to accept"},{"name":"g_b","type":"bytes","comment":"Parameter for E2E encryption key exchange ยป"},{"name":"protocol","type":"PhoneCallProtocol","comment":"Phone call settings"}],"throws":[{"code":400,"name":"CALL_ALREADY_ACCEPTED","comment":"The call was already accepted."},{"code":400,"name":"CALL_ALREADY_DECLINED","comment":"The call was already declined."},{"code":500,"name":"CALL_OCCUPY_FAILED","comment":"The call failed because the user is already making another call."},{"code":400,"name":"CALL_PEER_INVALID","comment":"The provided call peer object is invalid."},{"code":406,"name":"CALL_PROTOCOL_COMPAT_LAYER_INVALID","comment":"The other side of the call does not support any of the VoIP protocols supported by the local client, as specified by the protocol.layer and protocol.library_versions fields."},{"code":400,"name":"CALL_PROTOCOL_FLAGS_INVALID","comment":"Call protocol flags invalid."}],"available":"user"},{"kind":"method","name":"phone.confirmCall","type":"phone.PhoneCall","typeModifiers":{"constructorId":3968000320},"id":788404002,"comment":"Complete phone call E2E encryption key exchange ยป","arguments":[{"name":"peer","type":"InputPhoneCall","comment":"The phone call"},{"name":"g_a","type":"bytes","comment":"Parameter for E2E encryption key exchange ยป"},{"name":"key_fingerprint","type":"long","comment":"Key fingerprint"},{"name":"protocol","type":"PhoneCallProtocol","comment":"Phone call settings"}],"throws":[{"code":400,"name":"CALL_ALREADY_DECLINED","comment":"The call was already declined."},{"code":400,"name":"CALL_PEER_INVALID","comment":"The provided call peer object is invalid."}],"available":"user"},{"kind":"method","name":"phone.receivedCall","type":"Bool","id":399855457,"comment":"Optional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended.","arguments":[{"name":"peer","type":"InputPhoneCall","comment":"The phone call we're currently in"}],"throws":[{"code":400,"name":"CALL_ALREADY_DECLINED","comment":"The call was already declined."},{"code":400,"name":"CALL_PEER_INVALID","comment":"The provided call peer object is invalid."}],"available":"user"},{"kind":"method","name":"phone.discardCall","type":"Updates","id":2999697856,"comment":"Refuse or end running call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether this is a video call"},{"name":"peer","type":"InputPhoneCall","comment":"The phone call"},{"name":"duration","type":"int","comment":"Call duration"},{"name":"reason","type":"PhoneCallDiscardReason","comment":"Why was the call discarded"},{"name":"connection_id","type":"long","comment":"Preferred libtgvoip relay ID"}],"throws":[{"code":400,"name":"CALL_ALREADY_ACCEPTED","comment":"The call was already accepted."},{"code":500,"name":"CALL_OCCUPY_FAILED","comment":"The call failed because the user is already making another call."},{"code":400,"name":"CALL_PEER_INVALID","comment":"The provided call peer object is invalid."}],"available":"user"},{"kind":"method","name":"phone.setCallRating","type":"Updates","id":1508562471,"comment":"Rate a call, returns info about the rating message sent to the official VoIP bot.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"user_initiative","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether the user decided on their own initiative to rate the call"},{"name":"peer","type":"InputPhoneCall","comment":"The call to rate"},{"name":"rating","type":"int","comment":"Rating in 1-5 stars"},{"name":"comment","type":"string","comment":"An additional comment"}],"throws":[{"code":400,"name":"CALL_PEER_INVALID","comment":"The provided call peer object is invalid."}],"available":"user"},{"kind":"method","name":"phone.saveCallDebug","type":"Bool","id":662363518,"comment":"Send phone call debug data to server","arguments":[{"name":"peer","type":"InputPhoneCall","comment":"Phone call"},{"name":"debug","type":"DataJSON","comment":"Debug statistics obtained from libtgvoip"}],"throws":[{"code":400,"name":"CALL_PEER_INVALID","comment":"The provided call peer object is invalid."},{"code":400,"name":"DATA_JSON_INVALID","comment":"The provided JSON data is invalid."}],"available":"user"},{"kind":"method","name":"phone.sendSignalingData","type":"Bool","id":4286223235,"comment":"Send VoIP signaling data","arguments":[{"name":"peer","type":"InputPhoneCall","comment":"Phone call"},{"name":"data","type":"bytes","comment":"Signaling payload"}],"available":"user"},{"kind":"method","name":"phone.createGroupCall","type":"Updates","id":1221445336,"comment":"Create a group call or livestream","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"rtmp_stream","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether RTMP stream support should be enabled: only the group/supergroup/channel owner can use this flag."},{"name":"peer","type":"InputPeer","comment":"Associate the group call or livestream to the provided group/supergroup/channel"},{"name":"random_id","type":"int","comment":"Unique client message ID required to prevent creation of duplicate group calls"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Call title"},{"name":"schedule_date","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"For scheduled group call or livestreams, the absolute date when the group call will start"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"CREATE_CALL_FAILED","comment":"An error occurred while creating the call."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"SCHEDULE_DATE_INVALID","comment":"Invalid schedule date provided."}],"available":"user"},{"kind":"method","name":"phone.joinGroupCall","type":"Updates","id":2972909435,"comment":"Join a group call","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"muted","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"If set, the user will be muted by default upon joining."},{"name":"video_stopped","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, the user's video will be disabled by default upon joining."},{"name":"call","type":"InputGroupCall","comment":"The group call"},{"name":"join_as","type":"InputPeer","comment":"Join the group call, presenting yourself as the specified user/channel"},{"name":"invite_hash","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"The invitation hash from the invite link ยป, if provided allows speaking in a livestream or muted group chat."},{"name":"params","type":"DataJSON","comment":"WebRTC parameters"}],"throws":[{"code":400,"name":"DATA_JSON_INVALID","comment":"The provided JSON data is invalid."},{"code":403,"name":"GROUPCALL_FORBIDDEN","comment":"The group call has already ended."},{"code":400,"name":"GROUPCALL_INVALID","comment":"The specified group call is invalid."},{"code":400,"name":"GROUPCALL_SSRC_DUPLICATE_MUCH","comment":"The app needs to retry joining the group call with a new SSRC value."},{"code":400,"name":"JOIN_AS_PEER_INVALID","comment":"The specified peer cannot be used to join a group call."}],"available":"user"},{"kind":"method","name":"phone.leaveGroupCall","type":"Updates","id":1342404601,"comment":"Leave a group call","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call"},{"name":"source","type":"int","comment":"Your source ID"}],"available":"user"},{"kind":"method","name":"phone.inviteToGroupCall","type":"Updates","id":2067345760,"comment":"Invite a set of users to a group call.","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call"},{"name":"users","type":"InputUser","typeModifiers":{"isVector":true},"comment":"The users to invite."}],"throws":[{"code":403,"name":"GROUPCALL_FORBIDDEN","comment":"The group call has already ended."},{"code":400,"name":"GROUPCALL_INVALID","comment":"The specified group call is invalid."},{"code":400,"name":"INVITE_FORBIDDEN_WITH_JOINAS","comment":"If the user has anonymously joined a group call as a channel, they can't invite other users to the group call because that would cause deanonymization, because the invite would be sent using the original user ID, not the anonymized channel ID."},{"code":400,"name":"USER_ALREADY_INVITED","comment":"You have already invited this user."}],"available":"user"},{"kind":"method","name":"phone.discardGroupCall","type":"Updates","id":2054648117,"comment":"Terminate a group call","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call to terminate"}],"throws":[{"code":400,"name":"GROUPCALL_ALREADY_DISCARDED","comment":"The group call was already discarded."},{"code":403,"name":"GROUPCALL_FORBIDDEN","comment":"The group call has already ended."},{"code":400,"name":"GROUPCALL_INVALID","comment":"The specified group call is invalid."}],"available":"user"},{"kind":"method","name":"phone.toggleGroupCallSettings","type":"Updates","id":1958458429,"comment":"Change group call settings","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"reset_invite_hash","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Invalidate existing invite links"},{"name":"call","type":"InputGroupCall","comment":"Group call"},{"name":"join_muted","type":"Bool","typeModifiers":{"predicate":"flags.0"},"comment":"Whether all users will that join this group call are muted by default upon joining the group call"}],"throws":[{"code":400,"name":"GROUPCALL_NOT_MODIFIED","comment":"Group call settings weren't modified."}],"available":"user"},{"kind":"method","name":"phone.getGroupCall","type":"phone.GroupCall","typeModifiers":{"constructorId":2658302637},"id":68699611,"comment":"Get info about a group call","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":403,"name":"GROUPCALL_FORBIDDEN","comment":"The group call has already ended."},{"code":400,"name":"GROUPCALL_INVALID","comment":"The specified group call is invalid."}],"available":"user"},{"kind":"method","name":"phone.getGroupParticipants","type":"phone.GroupParticipants","typeModifiers":{"constructorId":4101460406},"id":3310934187,"comment":"Get group call participants","arguments":[{"name":"call","type":"InputGroupCall","comment":"Group call"},{"name":"ids","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"If specified, will fetch group participant info about the specified peers"},{"name":"sources","type":"int","typeModifiers":{"isVector":true},"comment":"If specified, will fetch group participant info about the specified WebRTC source IDs"},{"name":"offset","type":"string","comment":"Offset for results, taken from the next_offset field of {@link phone.RawGroupParticipants}, initially an empty string.
Note: if no more results are available, the method call will return an empty next_offset; thus, avoid providing the next_offset returned in {@link phone.RawGroupParticipants} if it is empty, to avoid an infinite loop."},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"available":"user"},{"kind":"method","name":"phone.checkGroupCall","type":"int","typeModifiers":{"isVector":true},"id":3046963575,"comment":"Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs.
\nReturns an intersection of the source IDs specified in sources, and the source IDs currently being forwarded by the SFU.","arguments":[{"name":"call","type":"InputGroupCall","comment":"Group call"},{"name":"sources","type":"int","typeModifiers":{"isVector":true},"comment":"Source IDs"}],"throws":[{"code":400,"name":"GROUPCALL_JOIN_MISSING","comment":"You haven't joined this group call."}],"available":"user"},{"kind":"method","name":"phone.toggleGroupCallRecord","type":"Updates","id":4045981448,"comment":"Start or stop recording a group call: the recorded audio and video streams will be automatically sent to Saved messages (the chat with ourselves).","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"start","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to start or stop recording"},{"name":"video","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to also record video streams"},{"name":"call","type":"InputGroupCall","comment":"The group call or livestream"},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Recording title"},{"name":"video_portrait","type":"Bool","typeModifiers":{"predicate":"flags.2"},"comment":"If video stream recording is enabled, whether to record in portrait or landscape mode"}],"throws":[{"code":403,"name":"GROUPCALL_FORBIDDEN","comment":"The group call has already ended."},{"code":400,"name":"GROUPCALL_NOT_MODIFIED","comment":"Group call settings weren't modified."}],"available":"user"},{"kind":"method","name":"phone.editGroupCallParticipant","type":"Updates","id":2770811583,"comment":"Edit information about a given group call participant\n\nNote: flags.N?Bool parameters can have three possible values:","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"call","type":"InputGroupCall","comment":"The group call"},{"name":"participant","type":"InputPeer","comment":"The group call participant (can also be the user itself)"},{"name":"muted","type":"Bool","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to mute or unmute the specified participant"},{"name":"volume","type":"int","typeModifiers":{"predicate":"flags.1"},"comment":"New volume"},{"name":"raise_hand","type":"Bool","typeModifiers":{"predicate":"flags.2"},"comment":"Raise or lower hand"},{"name":"video_stopped","type":"Bool","typeModifiers":{"predicate":"flags.3"},"comment":"Start or stop the video stream"},{"name":"video_paused","type":"Bool","typeModifiers":{"predicate":"flags.4"},"comment":"Pause or resume the video stream"},{"name":"presentation_paused","type":"Bool","typeModifiers":{"predicate":"flags.5"},"comment":"Pause or resume the screen sharing stream"}],"throws":[{"code":403,"name":"GROUPCALL_FORBIDDEN","comment":"The group call has already ended."},{"code":400,"name":"PARTICIPANT_JOIN_MISSING","comment":"Trying to enable a presentation, when the user hasn't joined the Video Chat with {@link phone.RawJoinGroupCallRequest}."},{"code":400,"name":"USER_VOLUME_INVALID","comment":"The specified user volume is invalid."}],"available":"user"},{"kind":"method","name":"phone.editGroupCallTitle","type":"Updates","id":480685066,"comment":"Edit the title of a group call or livestream","arguments":[{"name":"call","type":"InputGroupCall","comment":"Group call"},{"name":"title","type":"string","comment":"New title"}],"throws":[{"code":403,"name":"GROUPCALL_FORBIDDEN","comment":"The group call has already ended."}],"available":"user"},{"kind":"method","name":"phone.getGroupCallJoinAs","type":"phone.JoinAsPeers","typeModifiers":{"constructorId":2951045695},"id":4017889594,"comment":"Get a list of peers that can be used to join a group call, presenting yourself as a specific user/channel.","arguments":[{"name":"peer","type":"InputPeer","comment":"The dialog whose group call or livestream we're trying to join"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"phone.exportGroupCallInvite","type":"phone.ExportedGroupCallInvite","typeModifiers":{"constructorId":541839704},"id":3869926527,"comment":"Get an invite link for a group call or livestream","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"can_self_unmute","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"For livestreams or muted group chats, if set, users that join using this link will be able to speak without explicitly requesting permission by (for example by raising their hand)."},{"name":"call","type":"InputGroupCall","comment":"The group call"}],"throws":[{"code":403,"name":"PUBLIC_CHANNEL_MISSING","comment":"You can only export group call invite links for public chats or channels."}],"available":"user"},{"kind":"method","name":"phone.toggleGroupCallStartSubscription","type":"Updates","id":563885286,"comment":"Subscribe or unsubscribe to a scheduled group call","arguments":[{"name":"call","type":"InputGroupCall","comment":"Scheduled group call"},{"name":"subscribed","type":"Bool","comment":"Enable or disable subscription"}],"throws":[{"code":403,"name":"GROUPCALL_ALREADY_STARTED","comment":"The groupcall has already started, you can join directly using {@link phone.RawJoinGroupCallRequest}."}],"available":"user"},{"kind":"method","name":"phone.startScheduledGroupCall","type":"Updates","id":1451287362,"comment":"Start a scheduled group call.","arguments":[{"name":"call","type":"InputGroupCall","comment":"The scheduled group call"}],"available":"user"},{"kind":"method","name":"phone.saveDefaultGroupCallJoinAs","type":"Bool","id":1465786252,"comment":"Set the default peer that will be used to join a group call in a specific dialog.","arguments":[{"name":"peer","type":"InputPeer","comment":"The dialog"},{"name":"join_as","type":"InputPeer","comment":"The default peer that will be used to join group calls in this dialog, presenting yourself as a specific user/channel."}],"throws":[{"code":400,"name":"JOIN_AS_PEER_INVALID","comment":"The specified peer cannot be used to join a group call."}],"available":"user"},{"kind":"method","name":"phone.joinGroupCallPresentation","type":"Updates","id":3421137860,"comment":"Start screen sharing in a call","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call"},{"name":"params","type":"DataJSON","comment":"WebRTC parameters"}],"throws":[{"code":403,"name":"PARTICIPANT_JOIN_MISSING","comment":"Trying to enable a presentation, when the user hasn't joined the Video Chat with {@link phone.RawJoinGroupCallRequest}."}],"available":"user"},{"kind":"method","name":"phone.leaveGroupCallPresentation","type":"Updates","id":475058500,"comment":"Stop screen sharing in a group call","arguments":[{"name":"call","type":"InputGroupCall","comment":"The group call"}],"available":"user"},{"kind":"method","name":"phone.getGroupCallStreamChannels","type":"phone.GroupCallStreamChannels","typeModifiers":{"constructorId":3504636594},"id":447879488,"comment":"Get info about RTMP streams in a group call or livestream.
\nThis method should be invoked to the same group/channel-related DC used for downloading livestream chunks.
\nAs usual, the media DC is preferred, if available.","arguments":[{"name":"call","type":"InputGroupCall","comment":"Group call or livestream"}],"throws":[{"code":400,"name":"GROUPCALL_INVALID","comment":"The specified group call is invalid."},{"code":400,"name":"GROUPCALL_JOIN_MISSING","comment":"You haven't joined this group call."}],"available":"user"},{"kind":"method","name":"phone.getGroupCallStreamRtmpUrl","type":"phone.GroupCallStreamRtmpUrl","typeModifiers":{"constructorId":767505458},"id":3736316863,"comment":"Get RTMP URL and stream key for RTMP livestreams. Can be used even before creating the actual RTMP livestream with {@link phone.RawCreateGroupCallRequest} (the rtmp_stream flag must be set).","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer to livestream into"},{"name":"revoke","type":"Bool","comment":"Whether to revoke the previous stream key or simply return the existing one"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."}],"available":"user"},{"kind":"method","name":"phone.saveCallLog","type":"Bool","id":1092913030,"comment":"Save phone call debug information","arguments":[{"name":"peer","type":"InputPhoneCall","comment":"Phone call"},{"name":"file","type":"InputFile","comment":"Logs"}],"available":"user"},{"kind":"method","name":"langpack.getLangPack","type":"LangPackDifference","typeModifiers":{"constructorId":4085629430},"id":4075959050,"comment":"Get localization pack strings","arguments":[{"name":"lang_pack","type":"string","comment":"Language pack name, usually obtained from a language pack link"},{"name":"lang_code","type":"string","comment":"Language code"}],"throws":[{"code":400,"name":"LANG_CODE_NOT_SUPPORTED","comment":"The specified language code is not supported."},{"code":400,"name":"LANG_PACK_INVALID","comment":"The provided language pack is invalid."}],"available":"user"},{"kind":"method","name":"langpack.getStrings","type":"LangPackString","typeModifiers":{"isVector":true},"id":4025104387,"comment":"Get strings from a language pack","arguments":[{"name":"lang_pack","type":"string","comment":"Language pack name, usually obtained from a language pack link"},{"name":"lang_code","type":"string","comment":"Language code"},{"name":"keys","type":"string","typeModifiers":{"isVector":true},"comment":"Strings to get"}],"throws":[{"code":400,"name":"LANG_CODE_NOT_SUPPORTED","comment":"The specified language code is not supported."},{"code":400,"name":"LANG_PACK_INVALID","comment":"The provided language pack is invalid."}],"available":"user"},{"kind":"method","name":"langpack.getDifference","type":"LangPackDifference","typeModifiers":{"constructorId":4085629430},"id":3449309861,"comment":"Get new strings in language pack","arguments":[{"name":"lang_pack","type":"string","comment":"Language pack"},{"name":"lang_code","type":"string","comment":"Language code"},{"name":"from_version","type":"int","comment":"Previous localization pack version"}],"throws":[{"code":400,"name":"LANG_PACK_INVALID","comment":"The provided language pack is invalid."}],"available":"user"},{"kind":"method","name":"langpack.getLanguages","type":"LangPackLanguage","typeModifiers":{"isVector":true,"constructorId":4006239459},"id":1120311183,"comment":"Get information about all languages in a localization pack","arguments":[{"name":"lang_pack","type":"string","comment":"Language pack"}],"throws":[{"code":400,"name":"LANG_PACK_INVALID","comment":"The provided language pack is invalid."}],"available":"user"},{"kind":"method","name":"langpack.getLanguage","type":"LangPackLanguage","typeModifiers":{"constructorId":4006239459},"id":1784243458,"comment":"Get information about a language in a localization pack","arguments":[{"name":"lang_pack","type":"string","comment":"Language pack name, usually obtained from a language pack link"},{"name":"lang_code","type":"string","comment":"Language code"}],"throws":[{"code":400,"name":"LANG_CODE_NOT_SUPPORTED","comment":"The specified language code is not supported."},{"code":400,"name":"LANG_PACK_INVALID","comment":"The provided language pack is invalid."}],"available":"user"},{"kind":"method","name":"folders.editPeerFolders","type":"Updates","id":1749536939,"comment":"Edit peers in peer folder","arguments":[{"name":"folder_peers","type":"InputFolderPeer","typeModifiers":{"isVector":true},"comment":"New peer list"}],"throws":[{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"CHAT_ID_INVALID","comment":"The provided chat id is invalid."},{"code":400,"name":"FOLDER_ID_INVALID","comment":"Invalid folder ID."}],"available":"user"},{"kind":"method","name":"stats.getBroadcastStats","type":"stats.BroadcastStats","typeModifiers":{"constructorId":963421692},"id":2873246746,"comment":"Get channel statistics","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to enable dark theme for graph colors"},{"name":"channel","type":"InputChannel","comment":"The channel"}],"throws":[{"code":400,"name":"BROADCAST_REQUIRED","comment":"This method can only be called on a channel, please use stats.getMegagroupStats for supergroups."},{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."}],"available":"user"},{"kind":"method","name":"stats.loadAsyncGraph","type":"StatsGraph","id":1646092192,"comment":"Load channel statistics graph asynchronously","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"token","type":"string","comment":"Graph token from {@link RawStatsGraphAsync} constructor"},{"name":"x","type":"long","typeModifiers":{"predicate":"flags.0"},"comment":"Zoom value, if required"}],"throws":[{"code":400,"name":"GRAPH_EXPIRED_RELOAD","comment":"This graph has expired, please obtain a new graph token."},{"code":400,"name":"GRAPH_INVALID_RELOAD","comment":"Invalid graph token provided, please reload the stats and provide the updated token."},{"code":400,"name":"GRAPH_OUTDATED_RELOAD","comment":"The graph is outdated, please get a new async token using stats.getBroadcastStats."}],"available":"user"},{"kind":"method","name":"stats.getMegagroupStats","type":"stats.MegagroupStats","typeModifiers":{"constructorId":4018141462},"id":3705636359,"comment":"Get supergroup statistics","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to enable dark theme for graph colors"},{"name":"channel","type":"InputChannel","comment":"Supergroup ID"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":403,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"MEGAGROUP_REQUIRED","comment":"You can only use this method on a supergroup."}],"available":"user"},{"kind":"method","name":"stats.getMessagePublicForwards","type":"stats.PublicForwards","typeModifiers":{"constructorId":2466479648},"id":1595212100,"comment":"Obtains a list of messages, indicating to which other public channels was a channel message forwarded.
\nWill return a list of {@link RawMessage} with peer_id equal to the public channel to which this message was forwarded.","arguments":[{"name":"channel","type":"InputChannel","comment":"Source channel"},{"name":"msg_id","type":"int","comment":"Source message ID"},{"name":"offset","type":"string","comment":"Offset for pagination, empty string on first call, then use the next_offset field of the returned constructor (if present, otherwise no more results are available)."},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stats.getMessageStats","type":"stats.MessageStats","typeModifiers":{"constructorId":2145983508},"id":3068175349,"comment":"Get message statistics","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to enable dark theme for graph colors"},{"name":"channel","type":"InputChannel","comment":"Channel ID"},{"name":"msg_id","type":"int","comment":"Message ID"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"MESSAGE_ID_INVALID","comment":"The provided message id is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stats.getStoryStats","type":"stats.StoryStats","typeModifiers":{"constructorId":1355613820},"id":927985472,"comment":"Get statistics for a certain story.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to enable the dark theme for graph colors"},{"name":"peer","type":"InputPeer","comment":"The peer that posted the story"},{"name":"id","type":"int","comment":"Story ID"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stats.getStoryPublicForwards","type":"stats.PublicForwards","typeModifiers":{"constructorId":2466479648},"id":2789441270,"comment":"Obtain forwards of a story as a message to public chats and reposts by public channels.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the story was originally posted"},{"name":"id","type":"int","comment":"Story ID"},{"name":"offset","type":"string","comment":"Offset for pagination, from {@link stats.RawPublicForwards}.next_offset."},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stats.getBroadcastRevenueStats","type":"stats.BroadcastRevenueStats","typeModifiers":{"constructorId":1409802903},"id":1977595505,"arguments":[{"name":"flags","type":"#"},{"name":"dark","type":"true","typeModifiers":{"predicate":"flags.0"}},{"name":"channel","type":"InputChannel"}]},{"kind":"method","name":"stats.getBroadcastRevenueWithdrawalUrl","type":"stats.BroadcastRevenueWithdrawalUrl","typeModifiers":{"constructorId":3966080823},"id":711323507,"arguments":[{"name":"channel","type":"InputChannel"},{"name":"password","type":"InputCheckPasswordSRP"}]},{"kind":"method","name":"stats.getBroadcastRevenueTransactions","type":"stats.BroadcastRevenueTransactions","typeModifiers":{"constructorId":2266334310},"id":6891535,"arguments":[{"name":"channel","type":"InputChannel"},{"name":"offset","type":"int"},{"name":"limit","type":"int"}]},{"kind":"method","name":"chatlists.exportChatlistInvite","type":"chatlists.ExportedChatlistInvite","typeModifiers":{"constructorId":283567014},"id":2222081934,"comment":"Export a folder ยป, creating a chat folder deep link ยป.","arguments":[{"name":"chatlist","type":"InputChatlist","comment":"The folder to export"},{"name":"title","type":"string","comment":"An optional name for the link"},{"name":"peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"The list of channels, group and supergroups to share with the link. Basic groups will automatically be converted to supergroups when invoking the method."}],"throws":[{"code":400,"name":"FILTER_ID_INVALID","comment":"The specified filter ID is invalid."},{"code":400,"name":"FILTER_NOT_SUPPORTED","comment":"The specified filter cannot be used in this context."},{"code":400,"name":"INVITES_TOO_MUCH","comment":"The maximum number of per-folder invites specified by the chatlist_invites_limit_default/chatlist_invites_limit_premium client configuration parameters ยป was reached."},{"code":400,"name":"PEERS_LIST_EMPTY","comment":"The specified list of peers is empty."}],"available":"user"},{"kind":"method","name":"chatlists.deleteExportedInvite","type":"Bool","id":1906072670,"comment":"Delete a previously created chat folder deep link ยป.","arguments":[{"name":"chatlist","type":"InputChatlist","comment":"The related folder"},{"name":"slug","type":"string","comment":"slug obtained from the chat folder deep link ยป."}],"throws":[{"code":400,"name":"FILTER_ID_INVALID","comment":"The specified filter ID is invalid."}],"available":"both"},{"kind":"method","name":"chatlists.editExportedInvite","type":"ExportedChatlistInvite","typeModifiers":{"constructorId":206668204},"id":1698543165,"comment":"Edit a chat folder deep link ยป.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"chatlist","type":"InputChatlist","comment":"Folder ID"},{"name":"slug","type":"string","comment":"slug obtained from the chat folder deep link ยป."},{"name":"title","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"If set, sets a new name for the link"},{"name":"peers","type":"InputPeer","typeModifiers":{"predicate":"flags.2","isVector":true},"comment":"If set, changes the list of peers shared with the link"}],"throws":[{"code":400,"name":"FILTER_ID_INVALID","comment":"The specified filter ID is invalid."}],"available":"both"},{"kind":"method","name":"chatlists.getExportedInvites","type":"chatlists.ExportedInvites","typeModifiers":{"constructorId":279670215},"id":3456359043,"comment":"List all chat folder deep links ยป associated to a folder","arguments":[{"name":"chatlist","type":"InputChatlist","comment":"The folder"}],"available":"both"},{"kind":"method","name":"chatlists.checkChatlistInvite","type":"chatlists.ChatlistInvite","id":1103171583,"comment":"Obtain information about a chat folder deep link ยป.","arguments":[{"name":"slug","type":"string","comment":"slug obtained from the chat folder deep link ยป"}],"throws":[{"code":400,"name":"INVITE_SLUG_EMPTY","comment":"The specified invite slug is empty."},{"code":400,"name":"INVITE_SLUG_EXPIRED","comment":"The specified chat folder link has expired."}],"available":"both"},{"kind":"method","name":"chatlists.joinChatlistInvite","type":"Updates","id":2796675994,"comment":"Import a chat folder deep link ยป, joining some or all the chats in the folder.","arguments":[{"name":"slug","type":"string","comment":"slug obtained from a chat folder deep link ยป."},{"name":"peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"List of new chats to join, fetched using {@link chatlists.RawCheckChatlistInviteRequest} and filtered as specified in the documentation ยป."}],"throws":[{"code":400,"name":"FILTER_INCLUDE_EMPTY","comment":"The include_peers vector of the filter is empty."},{"code":400,"name":"INVITE_SLUG_EMPTY","comment":"The specified invite slug is empty."},{"code":400,"name":"INVITE_SLUG_EXPIRED","comment":"The specified chat folder link has expired."}],"available":"both"},{"kind":"method","name":"chatlists.getChatlistUpdates","type":"chatlists.ChatlistUpdates","typeModifiers":{"constructorId":2478671757},"id":2302776609,"comment":"Fetch new chats associated with an imported chat folder deep link ยป. Must be invoked at most every chatlist_update_period seconds (as per the related client configuration parameter ยป).","arguments":[{"name":"chatlist","type":"InputChatlist","comment":"The folder"}],"throws":[{"code":400,"name":"FILTER_ID_INVALID","comment":"The specified filter ID is invalid."},{"code":400,"name":"INPUT_CHATLIST_INVALID","comment":"The specified folder is invalid."}],"available":"both"},{"kind":"method","name":"chatlists.joinChatlistUpdates","type":"Updates","id":3767138549,"comment":"Join channels and supergroups recently added to a chat folder deep link ยป.","arguments":[{"name":"chatlist","type":"InputChatlist","comment":"The folder"},{"name":"peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"List of new chats to join, fetched using {@link chatlists.RawGetChatlistUpdatesRequest} and filtered as specified in the documentation ยป."}],"available":"both"},{"kind":"method","name":"chatlists.hideChatlistUpdates","type":"Bool","id":1726252795,"comment":"Dismiss new pending peers recently added to a chat folder deep link ยป.","arguments":[{"name":"chatlist","type":"InputChatlist","comment":"The folder"}],"available":"both"},{"kind":"method","name":"chatlists.getLeaveChatlistSuggestions","type":"Peer","typeModifiers":{"isVector":true},"id":4257011476,"comment":"Returns identifiers of pinned or always included chats from a chat folder imported using a chat folder deep link ยป, which are suggested to be left when the chat folder is deleted.","arguments":[{"name":"chatlist","type":"InputChatlist","comment":"Folder ID"}],"available":"both"},{"kind":"method","name":"chatlists.leaveChatlist","type":"Updates","id":1962598714,"comment":"Delete a folder imported using a chat folder deep link ยป","arguments":[{"name":"chatlist","type":"InputChatlist","comment":"Folder ID"},{"name":"peers","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"Also leave the specified channels and groups"}],"available":"both"},{"kind":"method","name":"stories.canSendStory","type":"Bool","id":3353337821,"comment":"Check whether we can post stories as the specified peer.","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer from which we wish to post stories."}],"throws":[{"code":400,"name":"BOOSTS_REQUIRED","comment":"The specified channel must first be boosted by its users in order to perform this action."},{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PREMIUM_ACCOUNT_REQUIRED","comment":"A premium account is required to execute this action."},{"code":400,"name":"STORIES_TOO_MUCH","comment":"You have hit the maximum active stories limit as specified by the story_expiring_limit_* client configuration parameters: you should buy a Premium subscription, delete an active story, or wait for the oldest story to expire."},{"code":400,"name":"STORY_SEND_FLOOD_MONTHLY_%d","comment":"You've hit the monthly story limit as specified by the stories_sent_monthly_limit_* client configuration parameters: wait for the specified number of seconds before posting a new story."},{"code":400,"name":"STORY_SEND_FLOOD_WEEKLY_%d","comment":"You've hit the weekly story limit as specified by the stories_sent_weekly_limit_* client configuration parameters: wait for the specified number of seconds before posting a new story."}],"available":"user"},{"kind":"method","name":"stories.sendStory","type":"Updates","id":3840305483,"comment":"Uploads a Telegram Story.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to add the story to the profile automatically upon expiration. If not set, the story will only be added to the archive, see here ยป for more info."},{"name":"noforwards","type":"true","typeModifiers":{"predicate":"flags.4"},"comment":"If set, disables forwards, screenshots, and downloads."},{"name":"fwd_modified","type":"true","typeModifiers":{"predicate":"flags.7"},"comment":"Set this flag when reposting stories with fwd_from_id+fwd_from_id, if the media was modified before reposting."},{"name":"peer","type":"InputPeer","comment":"The peer to send the story as."},{"name":"media","type":"InputMedia","comment":"The story media."},{"name":"media_areas","type":"MediaArea","typeModifiers":{"predicate":"flags.5","isVector":true},"comment":"Media areas associated to the story, see here ยป for more info."},{"name":"caption","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"Story caption."},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text, if allowed by the stories_entities client configuration parameter ยป."},{"name":"privacy_rules","type":"InputPrivacyRule","typeModifiers":{"isVector":true},"comment":"Privacy rules for the story, indicating who can or can't view the story."},{"name":"random_id","type":"long","comment":"Unique client message ID required to prevent message resending."},{"name":"period","type":"int","typeModifiers":{"predicate":"flags.3"},"comment":"Period after which the story is moved to archive (and to the profile if pinned is set), in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise."},{"name":"fwd_from_id","type":"InputPeer","typeModifiers":{"predicate":"flags.6"},"comment":"If set, indicates that this story is a repost of story with ID fwd_from_story posted by the peer in fwd_from_id."},{"name":"fwd_from_story","type":"int","typeModifiers":{"predicate":"flags.6"},"comment":"If set, indicates that this story is a repost of story with ID fwd_from_story posted by the peer in fwd_from_id."}],"throws":[{"code":400,"name":"IMAGE_PROCESS_FAILED","comment":"Failure while processing image."},{"code":400,"name":"MEDIA_EMPTY","comment":"The provided media object is invalid."},{"code":400,"name":"MEDIA_FILE_INVALID","comment":"The specified media file is invalid."},{"code":400,"name":"MEDIA_TYPE_INVALID","comment":"The specified media type cannot be used in stories."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"PREMIUM_ACCOUNT_REQUIRED","comment":"A premium account is required to execute this action."},{"code":400,"name":"STORIES_TOO_MUCH","comment":"You have hit the maximum active stories limit as specified by the story_expiring_limit_* client configuration parameters: you should buy a Premium subscription, delete an active story, or wait for the oldest story to expire."},{"code":400,"name":"STORY_PERIOD_INVALID","comment":"The specified story period is invalid for this account."},{"code":400,"name":"VENUE_ID_INVALID","comment":"The specified venue ID is invalid."}],"available":"user"},{"kind":"method","name":"stories.editStory","type":"Updates","id":3045308998,"comment":"Edit an uploaded story","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","comment":"Peer where the story was posted."},{"name":"id","type":"int","comment":"ID of story to edit."},{"name":"media","type":"InputMedia","typeModifiers":{"predicate":"flags.0"},"comment":"If specified, replaces the story media."},{"name":"media_areas","type":"MediaArea","typeModifiers":{"predicate":"flags.3","isVector":true},"comment":"Media areas associated to the story, see here ยป for more info."},{"name":"caption","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"If specified, replaces the story caption."},{"name":"entities","type":"MessageEntity","typeModifiers":{"predicate":"flags.1","isVector":true},"comment":"Message entities for styled text in the caption, if allowed by the stories_entities client configuration parameter ยป."},{"name":"privacy_rules","type":"InputPrivacyRule","typeModifiers":{"predicate":"flags.2","isVector":true},"comment":"If specified, alters the privacy settings ยป of the story, changing who can or can't view the story."}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"STORY_NOT_MODIFIED","comment":"The new story information you passed is equal to the previous story information, thus it wasn't modified."}],"available":"user"},{"kind":"method","name":"stories.deleteStories","type":"int","typeModifiers":{"isVector":true},"id":2925124447,"comment":"Deletes some posted stories.","arguments":[{"name":"peer","type":"InputPeer","comment":"Channel/user from where to delete stories."},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of stories to delete."}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stories.togglePinned","type":"int","typeModifiers":{"isVector":true},"id":2591400431,"comment":"Pin or unpin one or more stories","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where to pin or unpin stories"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of stories to pin or unpin"},{"name":"pinned","type":"Bool","comment":"Whether to pin or unpin the stories"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stories.getAllStories","type":"stories.AllStories","id":4004566565,"comment":"Fetch the List of active (or active and hidden) stories, see here ยป for more info on watching stories.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"next","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"If next and state are both set, uses the passed state to paginate to the next results; if neither state nor next are set, fetches the initial page; if state is set and next is not set, check for changes in the active/hidden peerset, see here ยป for more info on the full flow."},{"name":"hidden","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, fetches the hidden active story list, otherwise fetches the active story list, see here ยป for more info on the full flow."},{"name":"state","type":"string","typeModifiers":{"predicate":"flags.0"},"comment":"If next and state are both set, uses the passed state to paginate to the next results; if neither state nor next are set, fetches the initial page; if state is set and next is not set, check for changes in the active/hidden peerset, see here ยป for more info on the full flow."}],"available":"user"},{"kind":"method","name":"stories.getPinnedStories","type":"stories.Stories","typeModifiers":{"constructorId":1673780490},"id":1478600156,"comment":"Fetch the stories pinned on a peer's profile.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer whose pinned stories should be fetched"},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"USER_ID_INVALID","comment":"The provided user ID is invalid."}],"available":"user"},{"kind":"method","name":"stories.getStoriesArchive","type":"stories.Stories","typeModifiers":{"constructorId":1673780490},"id":3023380502,"comment":"Fetch the story archive ยป of a peer we control.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer whose archived stories should be fetched"},{"name":"offset_id","type":"int","comment":"Offsets for pagination, for more info click here"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stories.getStoriesByID","type":"stories.Stories","typeModifiers":{"constructorId":1673780490},"id":1467271796,"comment":"Obtain full info about a set of stories by their IDs.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the stories were posted"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"Story IDs"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"STORIES_NEVER_CREATED","comment":"This peer hasn't ever posted any stories."},{"code":400,"name":"STORY_ID_EMPTY","comment":"You specified no story IDs."}],"available":"user"},{"kind":"method","name":"stories.toggleAllStoriesHidden","type":"Bool","id":2082822084,"comment":"Hide the active stories of a specific peer, preventing them from being displayed on the action bar on the homescreen.","arguments":[{"name":"hidden","type":"Bool","comment":"Whether to hide or unhide all active stories of the peer"}],"available":"user"},{"kind":"method","name":"stories.readStories","type":"int","typeModifiers":{"isVector":true},"id":2773932744,"comment":"Mark all stories up to a certain ID as read, for a given peer; will emit an {@link RawUpdateReadStories} update to all logged-in sessions.","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer whose stories should be marked as read."},{"name":"max_id","type":"int","comment":"Mark all stories up to and including this ID as read"}],"throws":[{"code":400,"name":"MAX_ID_INVALID","comment":"The provided max ID is invalid."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"STORIES_NEVER_CREATED","comment":"This peer hasn't ever posted any stories."}],"available":"user"},{"kind":"method","name":"stories.incrementStoryViews","type":"Bool","id":2986511099,"comment":"Increment the view counter of one or more stories.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the stories were posted."},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of the stories (maximum 200 at a time)."}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"STORY_ID_EMPTY","comment":"You specified no story IDs."}],"available":"user"},{"kind":"method","name":"stories.getStoryViewsList","type":"stories.StoryViewsList","typeModifiers":{"constructorId":1507299269},"id":2127707223,"comment":"Obtain the list of users that have viewed a specific story we posted","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"just_contacts","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to only fetch view reaction/views made by our contacts"},{"name":"reactions_first","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"Whether to return {@link RawStoryView} info about users that reacted to the story (i.e. if set, the server will first sort results by view date as usual, and then also additionally sort the list by putting {@link RawStoryView}s with an associated reaction first in the list). Ignored if forwards_first is set."},{"name":"forwards_first","type":"true","typeModifiers":{"predicate":"flags.3"},"comment":"If set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date."},{"name":"peer","type":"InputPeer","comment":"Peer where the story was posted"},{"name":"q","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Search for specific peers"},{"name":"id","type":"int","comment":"Story ID"},{"name":"offset","type":"string","comment":"Offset for pagination, obtained from {@link stories.RawStoryViewsList}.next_offset"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"STORY_ID_INVALID","comment":"The specified story ID is invalid."}],"available":"user"},{"kind":"method","name":"stories.getStoriesViews","type":"stories.StoryViews","typeModifiers":{"constructorId":3734957341},"id":685862088,"comment":"Obtain info about the view count, forward count, reactions and recent viewers of one or more stories.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer whose stories should be fetched"},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"Story IDs"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"STORY_ID_EMPTY","comment":"You specified no story IDs."}],"available":"user"},{"kind":"method","name":"stories.exportStoryLink","type":"ExportedStoryLink","typeModifiers":{"constructorId":1070138683},"id":2072899360,"comment":"Generate a story deep link for a specific story","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer where the story was posted"},{"name":"id","type":"int","comment":"Story ID"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"STORY_ID_EMPTY","comment":"You specified no story IDs."},{"code":400,"name":"USER_PUBLIC_MISSING","comment":"Cannot generate a link to stories posted by a peer without a username."}],"available":"user"},{"kind":"method","name":"stories.report","type":"Bool","id":421788300,"comment":"Report a story.","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer that uploaded the story."},{"name":"id","type":"int","typeModifiers":{"isVector":true},"comment":"IDs of the stories to report."},{"name":"reason","type":"ReportReason","comment":"Why are these storeis being reported."},{"name":"message","type":"string","comment":"Comment for report moderation"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stories.activateStealthMode","type":"Updates","id":1471926630,"comment":"Activates stories stealth mode, see here ยป for more info.\n\nWill return an {@link RawUpdateStoriesStealthMode}.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"past","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to erase views from any stories opened in the past stories_stealth_past_period seconds ยป, as specified by the client configuration."},{"name":"future","type":"true","typeModifiers":{"predicate":"flags.1"},"comment":"Whether to hide future story views for the next stories_stealth_future_period seconds ยป, as specified by the client configuration."}],"available":"user"},{"kind":"method","name":"stories.sendReaction","type":"Updates","id":2144810674,"comment":"React to a story.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"add_to_recent","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to add this reaction to the recent reactions list ยป."},{"name":"peer","type":"InputPeer","comment":"The peer that sent the story"},{"name":"story_id","type":"int","comment":"ID of the story to react to"},{"name":"reaction","type":"Reaction","comment":"Reaction"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"REACTION_INVALID","comment":"The specified reaction is invalid."},{"code":400,"name":"STORY_ID_EMPTY","comment":"You specified no story IDs."}],"available":"user"},{"kind":"method","name":"stories.getPeerStories","type":"stories.PeerStories","typeModifiers":{"constructorId":3404105576},"id":743103056,"comment":"Fetch the full active story list of a specific peer.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer whose stories should be fetched"}],"throws":[{"code":400,"name":"CHANNEL_INVALID","comment":"The provided channel is invalid."},{"code":400,"name":"CHANNEL_PRIVATE","comment":"You haven't joined this channel/supergroup."},{"code":400,"name":"MSG_ID_INVALID","comment":"Invalid message ID provided."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stories.getAllReadPeerStories","type":"Updates","id":2606426105,"comment":"Obtain the latest read story ID for all peers when first logging in, returned as a list of {@link RawUpdateReadStories} updates, see here ยป for more info.","arguments":[],"available":"user"},{"kind":"method","name":"stories.getPeerMaxIDs","type":"int","typeModifiers":{"isVector":true},"id":1398375363,"comment":"Get the IDs of the maximum read stories for a set of peers.","arguments":[{"name":"id","type":"InputPeer","typeModifiers":{"isVector":true},"comment":"Peers"}],"available":"user"},{"kind":"method","name":"stories.getChatsToSend","type":"messages.Chats","id":2775223136,"comment":"Obtain a list of channels where the user can post stories","arguments":[],"available":"user"},{"kind":"method","name":"stories.togglePeerStoriesHidden","type":"Bool","id":3171161540,"comment":"Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see here ยป for more info.","arguments":[{"name":"peer","type":"InputPeer","comment":"Peer whose stories should be (un)hidden."},{"name":"hidden","type":"Bool","comment":"Whether to hide or unhide stories."}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stories.getStoryReactionsList","type":"stories.StoryReactionsList","typeModifiers":{"constructorId":2858383516},"id":3115485215,"comment":"Get the reaction and interaction list of a story posted to a channel, along with the sender of each reaction.\n\nCan only be used by channel admins.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"forwards_first","type":"true","typeModifiers":{"predicate":"flags.2"},"comment":"If set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date."},{"name":"peer","type":"InputPeer","comment":"Channel"},{"name":"id","type":"int","comment":"Story ID"},{"name":"reaction","type":"Reaction","typeModifiers":{"predicate":"flags.0"},"comment":"Get only reactions of this type"},{"name":"offset","type":"string","typeModifiers":{"predicate":"flags.1"},"comment":"Offset for pagination (taken from the next_offset field of the returned stories.StoryReactionsList); empty in the first request."},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"stories.togglePinnedToTop","type":"Bool","id":187268763,"arguments":[{"name":"peer","type":"InputPeer"},{"name":"id","type":"int","typeModifiers":{"isVector":true}}]},{"kind":"method","name":"stories.searchPosts","id":1827279210,"type":"stories.FoundStories","arguments":[{"name":"flags","type":"#"},{"name":"hashtag","type":"string","typeModifiers":{"predicate":"flags.0"}},{"name":"area","type":"MediaArea","typeModifiers":{"predicate":"flags.1"}},{"name":"offset","type":"string"},{"name":"limit","type":"int"}],"typeModifiers":{"constructorId":3806230327}},{"kind":"method","name":"premium.getBoostsList","type":"premium.BoostsList","typeModifiers":{"constructorId":2264424764},"id":1626764896,"comment":"Obtains info about the boosts that were applied to a certain channel (admins only)","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"gifts","type":"true","typeModifiers":{"predicate":"flags.0"},"comment":"Whether to return only info about boosts received from gift codes and giveaways created by the channel ยป"},{"name":"peer","type":"InputPeer","comment":"The channel"},{"name":"offset","type":"string","comment":"Offset for pagination, obtained from {@link premium.RawBoostsList}.next_offset"},{"name":"limit","type":"int","comment":"Maximum number of results to return, see pagination"}],"throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","comment":"You must be an admin in this chat to do this."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"premium.getMyBoosts","type":"premium.MyBoosts","typeModifiers":{"constructorId":2598512866},"id":199719754,"comment":"Obtain which peers are we currently boosting, and how many boost slots we have left.","arguments":[],"available":"user"},{"kind":"method","name":"premium.applyBoost","type":"premium.MyBoosts","typeModifiers":{"constructorId":2598512866},"id":1803396934,"comment":"Apply one or more boosts ยป to a peer.","arguments":[{"name":"flags","type":"#","comment":"Flags, see TL conditional fields"},{"name":"slots","type":"int","typeModifiers":{"predicate":"flags.0","isVector":true},"comment":"Which boost slots to assign to this peer."},{"name":"peer","type":"InputPeer","comment":"The peer to boost."}],"throws":[{"code":400,"name":"BOOSTS_EMPTY","comment":"No boost slots were specified."},{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."},{"code":400,"name":"SLOTS_EMPTY","comment":"The specified slot list is empty."}],"available":"user"},{"kind":"method","name":"premium.getBoostsStatus","type":"premium.BoostsStatus","typeModifiers":{"constructorId":1230586490},"id":70197089,"comment":"Gets the current number of boosts of a channel.","arguments":[{"name":"peer","type":"InputPeer","comment":"The peer."}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"user"},{"kind":"method","name":"premium.getUserBoosts","type":"premium.BoostsList","typeModifiers":{"constructorId":2264424764},"id":965037343,"comment":"Returns the lists of boost that were applied to a channel by a specific user (admins only)","arguments":[{"name":"peer","type":"InputPeer","comment":"The channel"},{"name":"user_id","type":"InputUser","comment":"The user"}],"throws":[{"code":400,"name":"PEER_ID_INVALID","comment":"The provided peer id is invalid."}],"available":"both"},{"kind":"method","name":"smsjobs.isEligibleToJoin","type":"smsjobs.EligibilityToJoin","typeModifiers":{"constructorId":3700114639},"id":249313744,"arguments":[]},{"kind":"method","name":"smsjobs.join","type":"Bool","id":2806959661,"arguments":[]},{"kind":"method","name":"smsjobs.leave","type":"Bool","id":2560142707,"arguments":[]},{"kind":"method","name":"smsjobs.updateSettings","type":"Bool","id":155164863,"arguments":[{"name":"flags","type":"#"},{"name":"allow_international","type":"true","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"smsjobs.getStatus","type":"smsjobs.Status","typeModifiers":{"constructorId":720277905},"id":279353576,"arguments":[]},{"kind":"method","name":"smsjobs.getSmsJob","type":"SmsJob","typeModifiers":{"constructorId":3869372088},"id":2005766191,"arguments":[{"name":"job_id","type":"string"}]},{"kind":"method","name":"smsjobs.finishJob","type":"Bool","id":1327415076,"arguments":[{"name":"flags","type":"#"},{"name":"job_id","type":"string"},{"name":"error","type":"string","typeModifiers":{"predicate":"flags.0"}}]},{"kind":"method","name":"fragment.getCollectibleInfo","type":"fragment.CollectibleInfo","typeModifiers":{"constructorId":1857945489},"id":3189671354,"arguments":[{"name":"collectible","type":"InputCollectible"}]}],"u":{"Error":"An object containing a query error.","InputFileLocation":"Defines the location of a file for download.","InputPeer":"Peer","InputUser":"Defines a user for subsequent interaction.","InputContact":"Object defines a contact from the user's phone book.","InputFile":"Defines a file uploaded by the client.","InputMedia":"Defines media content of a message.","InputChatPhoto":"Defines a new group profile photo.","InputGeoPoint":"Defines a GeoPoint.","InputPhoto":"Defines a photo for further interaction.","Peer":"Chat partner or group.","storage.FileType":"Object describes the file type.","User":"Object defines a user.","UserProfilePhoto":"Object contains info on the user's profile photo.","UserStatus":"User online status","Chat":"Object defines a group.","ChatFull":"Full info about a channel, supergroup, gigagroup or basic group.","ChatParticipant":"Details of a group member.","ChatParticipants":"Object contains info on group members.","ChatPhoto":"Object defines a group profile photo.","Message":"Object describing a message.","MessageMedia":"Media","MessageAction":"Object describing actions connected to a service message.","Dialog":"Chat info.","Photo":"Object describes a photo.","PhotoSize":"Location of a certain size of a picture","GeoPoint":"Object defines a GeoPoint.","auth.SentCode":"Contains info on a confirmation code message sent via SMS, phone call or Telegram.","auth.Authorization":"Object contains info on user authorization.","auth.ExportedAuthorization":"Exported authorization","InputNotifyPeer":"Object defines the set of users and/or groups that generate notifications.","InputPeerNotifySettings":"Notifications settings.","PeerNotifySettings":"Notification settings.","PeerSettings":"List of actions that are possible when interacting with this user, to be shown as suggested actions in the chat bar","WallPaper":"Object contains info on a wallpaper.","ReportReason":"Report reason","UserFull":"Object contains extended user info.","Contact":"A contact of the current user.","ImportedContact":"Object contains info on a successfully imported contact.","ContactStatus":"Contact status: online / offline.","contacts.Contacts":"Info on the current user's contact list.","contacts.ImportedContacts":"Object contains info on successfully imported contacts.","contacts.Blocked":"Info on users from the current user's black list.","messages.Dialogs":"Object contains a list of chats with messages and auxiliary data.","messages.Messages":"Object contains information on list of messages with auxiliary data.","messages.Chats":"Object contains list of chats with auxiliary data.","messages.ChatFull":"Full info about a channel, supergroup, gigagroup or basic group.","messages.AffectedHistory":"Object contains info on affected part of communication history with the user or in a chat.","MessagesFilter":"Object describes message filter.","Update":"Object contains info on events occurred.","updates.State":"Object contains info on state for further updates.","updates.Difference":"Occurred changes.","Updates":"Object which is perceived by the client without a call on its part when an event occurs.","photos.Photos":"Object contains list of photos with auxiliary data.","photos.Photo":"Photo with auxiliary data.","upload.File":"Contains info on file.","DcOption":"Information for connection to data center.","Config":"Object contains info on API configuring parameters.","NearestDc":"Object contains info on nearest data center.","help.AppUpdate":"Contains info on app update availability.","help.InviteText":"Object contains info on the text of a message with an invitation.","EncryptedChat":"Object contains info on an encrypted chat.","InputEncryptedChat":"Object sets an encrypted chat ID.","EncryptedFile":"Seta an encrypted file.","InputEncryptedFile":"Object sets encrypted file for attachment","EncryptedMessage":"Object contains encrypted message.","messages.DhConfig":"Contains Diffie-Hellman key generation protocol parameters.","messages.SentEncryptedMessage":"Contains info on message sent to an encrypted chat.","InputDocument":"Defines a document for subsequent interaction.","Document":"A document.","help.Support":"Info about the support user, relevant to the current user.","NotifyPeer":"Object defines the set of users and/or groups that generate notifications.","SendMessageAction":"User actions. Use this to provide users with detailed info about their chat partner's actions: typing or sending attachments of all kinds.","contacts.Found":"Object contains info on users found by name substring and auxiliary data.","InputPrivacyKey":"Privacy keys together with privacy rules ยป indicate what can or can't someone do and are specified by a PrivacyKey constructor, and its input counterpart InputPrivacyKey.\n\nSee the privacy documentation ยป for more info.","PrivacyKey":"Privacy keys together with privacy rules ยป indicate what can or can't someone do and are specified by a PrivacyKey constructor, and its input counterpart InputPrivacyKey.\n\nSee the privacy documentation ยป for more info.","InputPrivacyRule":"Privacy rules indicate who can or can't do something and are specified by a PrivacyRule, and its input counterpart InputPrivacyRule.\n\nSee the privacy documentation ยป for more info.","PrivacyRule":"Privacy rules together with privacy keys indicate what can or can't someone do and are specified by a PrivacyRule constructor, and its input counterpart InputPrivacyRule.\n\nSee the privacy documentation ยป for more info.","account.PrivacyRules":"Privacy rules","AccountDaysTTL":"Time-to-live of current account","DocumentAttribute":"Various possible attributes of a document (used to define if it's a sticker, a GIF, a video, a mask sticker, an image, an audio, and so on)","messages.Stickers":"Stickers","StickerPack":"Stickerpack","messages.AllStickers":"All stickers","messages.AffectedMessages":"Messages affected by changes","WebPage":"Instant View webpage preview","Authorization":"Represents a logged-in session","account.Authorizations":"Logged-in sessions","account.Password":"Configuration for two-factor authorization","account.PasswordSettings":"Private info associated to the password info (recovery email, telegram passport info & so on)","account.PasswordInputSettings":"Constructor for setting up a new 2FA SRP password","auth.PasswordRecovery":"Recovery info of a 2FA password, only for accounts with a recovery email configured.","ReceivedNotifyMessage":"Confirmation of message receipt","ExportedChatInvite":"Exported chat invite","ChatInvite":"Chat invite","InputStickerSet":"Represents a stickerset","StickerSet":"Represents a stickerset (stickerpack)","messages.StickerSet":"Stickerset","BotCommand":"Describes a bot command that can be used in a chat","BotInfo":"Info about bots (available bot commands, etc)","KeyboardButton":"Bot or inline keyboard buttons","KeyboardButtonRow":"Bot or inline keyboard rows","ReplyMarkup":"Reply markup for bot and inline keyboards","MessageEntity":"Message entities, representing styled text in a message","InputChannel":"Represents a channel","contacts.ResolvedPeer":"Peer returned after resolving a @username","MessageRange":"Indicates a range of chat messages","updates.ChannelDifference":"Contains the difference (new messages) between our local channel state and the remote state","ChannelMessagesFilter":"Filter for fetching only certain types of channel messages","ChannelParticipant":"Channel participant","ChannelParticipantsFilter":"Filter for fetching channel participants","channels.ChannelParticipants":"Channel/supergroup participants","channels.ChannelParticipant":"Channel participant","help.TermsOfService":"Contains info about the latest telegram Terms Of Service.","messages.SavedGifs":"Saved GIFs","InputBotInlineMessage":"Represents a sent inline message from the perspective of a bot","InputBotInlineResult":"Inline bot result","BotInlineMessage":"Inline message","BotInlineResult":"Results of an inline query","messages.BotResults":"Result of a query to an inline bot","ExportedMessageLink":"HTTP link and embed info of channel message","MessageFwdHeader":"Info about a forwarded message","auth.CodeType":"Type of verification code that will be sent next if you call the resendCode method","auth.SentCodeType":"Type of the verification code that was sent","messages.BotCallbackAnswer":"Callback answer of bot","messages.MessageEditData":"Message edit data for media","InputBotInlineMessageID":"Represents a sent inline message from the perspective of a bot","InlineBotSwitchPM":"The bot requested the user to message them in private","messages.PeerDialogs":"List of dialogs","TopPeer":"Top peer","TopPeerCategory":"Top peer category","TopPeerCategoryPeers":"Top peers by top peer category","contacts.TopPeers":"Top peers","DraftMessage":"Represents a message draft.","messages.FeaturedStickers":"Featured stickers","messages.RecentStickers":"Recent stickers","messages.ArchivedStickers":"Archived stickers","messages.StickerSetInstallResult":"Result of stickerset installation process","StickerSetCovered":"Stickerset preview","MaskCoords":"Mask coordinates (if this is a mask sticker, attached to a photo)","InputStickeredMedia":"Represents a media with attached stickers","Game":"Indicates an already sent game","InputGame":"A game to send","HighScore":"Game high score","messages.HighScores":"High scores (in games)","RichText":"Rich text","PageBlock":"Represents an instant view page element","PhoneCallDiscardReason":"Why was the phone call discarded?","DataJSON":"Represent a JSON-encoded object","LabeledPrice":"Labeled pricetag","Invoice":"Invoice","PaymentCharge":"Charged payment","PostAddress":"Shipping address","PaymentRequestedInfo":"Requested payment info","PaymentSavedCredentials":"Saved payment credentials","WebDocument":"Remote document","InputWebDocument":"Specifies a document that will have to be downloaded from the URL by the telegram servers","InputWebFileLocation":"Location of remote file","upload.WebFile":"Remote file","payments.PaymentForm":"Payment form","payments.ValidatedRequestedInfo":"Validated requested info","payments.PaymentResult":"Payment result","payments.PaymentReceipt":"Payment receipt","payments.SavedInfo":"Saved payment info","InputPaymentCredentials":"Payment credentials","account.TmpPassword":"Temporary password","ShippingOption":"Shipping options","InputStickerSetItem":"Sticker","InputPhoneCall":"Phone call","PhoneCall":"Phone call","PhoneConnection":"Phone call connection","PhoneCallProtocol":"Phone call protocol","phone.PhoneCall":"Phone call","upload.CdnFile":"Represents the download status of a CDN file","CdnPublicKey":"Public key to use only during handshakes to CDN DCs.","CdnConfig":"Configuration for CDN file downloads.","LangPackString":"Language pack string","LangPackDifference":"Language pack changes","LangPackLanguage":"Language pack language","ChannelAdminLogEventAction":"Channel admin log event","ChannelAdminLogEvent":"An event in a channel admin log","channels.AdminLogResults":"Admin log events","ChannelAdminLogEventsFilter":"Filter for fetching events in the channel admin log","PopularContact":"Popular contact","messages.FavedStickers":"Favorited stickers","RecentMeUrl":"Recent t.me urls","help.RecentMeUrls":"Recent t.me URLs","InputSingleMedia":"A single media in an album or grouped media sent with {@link messages.RawSendMultiMediaRequest}.","WebAuthorization":"Web authorization","account.WebAuthorizations":"Web authorizations","InputMessage":"A message","InputDialogPeer":"Peer, or all peers in a certain folder","DialogPeer":"Peer, or all peers in a folder","messages.FoundStickerSets":"Found stickersets","FileHash":"Hash of an uploaded file, to be checked for validity after download","InputClientProxy":"Info about an MTProxy used to connect.","help.TermsOfServiceUpdate":"Update of Telegram's terms of service","InputSecureFile":"Secure passport file, for more info see the passport docs ยป","SecureFile":"Secure passport file, for more info see the passport docs ยป","SecureData":"Secure passport data, for more info see the passport docs ยป","SecurePlainData":"Plaintext verified passport data.","SecureValueType":"Secure value type","SecureValue":"Secure Telegram Passport value","InputSecureValue":"Secure value, for more info see the passport docs ยป","SecureValueHash":"Secure value hash","SecureValueError":"Secure value error","SecureCredentialsEncrypted":"Encrypted secure credentials","account.AuthorizationForm":"Authorization form","account.SentEmailCode":"The email code that was sent","help.DeepLinkInfo":"Contains information about an unsupported deep link ยป","SavedContact":"Saved contact","account.Takeout":"Takeout info","PasswordKdfAlgo":"Key derivation function to use when generating the password hash for SRP two-factor authorization","SecurePasswordKdfAlgo":"KDF algorithm to use for computing telegram passport hash","SecureSecretSettings":"Telegram passport settings","InputCheckPasswordSRP":"Constructors for checking the validity of a 2FA SRP password","SecureRequiredType":"Required secure file type","help.PassportConfig":"Telegram passport configuration","InputAppEvent":"Object contains info about an event that occurred in the application.","JSONObjectValue":"JSON key: value pair","JSONValue":"JSON value","PageTableCell":"Represents a table in an instant view table","PageTableRow":"Table row","PageCaption":"Page caption","PageListItem":"Item in block list","PageListOrderedItem":"Represents an instant view ordered list","PageRelatedArticle":"Related articles","Page":"Instant view page","help.SupportName":"Get localized name for support user","help.UserInfo":"User info","PollAnswer":"Indicates a possible answer to a poll.","Poll":"Indicates a poll message","PollAnswerVoters":"How users voted on a certain poll answer","PollResults":"Results of poll","ChatOnlines":"Number of online users in a chat","StatsURL":"URL with chat statistics","ChatAdminRights":"Represents the rights of an admin in a channel/supergroup.","ChatBannedRights":"Represents the rights of a normal user in a supergroup/channel/chat.","InputWallPaper":"Wallpaper","account.WallPapers":"Wallpapers","CodeSettings":"Settings for the code type to send","WallPaperSettings":"Wallpaper rendering information.","AutoDownloadSettings":"Media autodownload settings","account.AutoDownloadSettings":"Media autodownload settings","EmojiKeyword":"Emoji keyword","EmojiKeywordsDifference":"New emoji keywords","EmojiURL":"Emoji URL","EmojiLanguage":"Emoji language","Folder":"A folder","InputFolderPeer":"Peer in a folder","FolderPeer":"Peer associated to folder","messages.SearchCounter":"Number of results that would be returned by a search","UrlAuthResult":"URL authorization result","ChannelLocation":"Geographical location of supergroup (geogroups)","PeerLocated":"Geolocated peer","RestrictionReason":"Restriction reason","InputTheme":"Cloud theme","Theme":"Cloud theme","account.Themes":"Installed themes","auth.LoginToken":"Login token (for QR code login)","account.ContentSettings":"Sensitive content settings","messages.InactiveChats":"Inactive chat list","BaseTheme":"Basic theme settings","InputThemeSettings":"Theme settings","ThemeSettings":"Theme settings","WebPageAttribute":"Webpage attributes","messages.VotesList":"How users voted in a poll","BankCardOpenUrl":"Credit card info URL provided by the bank","payments.BankCardData":"Credit card info, provided by the card's bank(s)","DialogFilter":"Dialog filter (folder ยป)","DialogFilterSuggested":"Suggested dialog filters (folder ยป)","StatsDateRangeDays":"Channel statistics date range","StatsAbsValueAndPrev":"Channel statistics value pair","StatsPercentValue":"Channel statistics percentage","StatsGraph":"Channel statistics graph","stats.BroadcastStats":"Channel statistics","help.PromoData":"Info about pinned MTProxy or Public Service Announcement peers.","VideoSize":"Represents an animated video thumbnail","StatsGroupTopPoster":"Most active user in a supergroup","StatsGroupTopAdmin":"Most active admin in a supergroup","StatsGroupTopInviter":"Most active inviter in a supergroup","stats.MegagroupStats":"Supergroup statistics","GlobalPrivacySettings":"Global privacy settings","help.CountryCode":"Country code and phone number pattern of a specific country","help.Country":"Name, ISO code, localized name and phone codes/patterns of a specific country","help.CountriesList":"Name, ISO code, localized name and phone codes/patterns of all available countries","MessageViews":"View, forward counter + info about replies of a specific message","messages.MessageViews":"View, forward counter + info about replies","messages.DiscussionMessage":"Info about a message thread","MessageReplyHeader":"Reply information","MessageReplies":"Info about post comments (for channels) or message replies (for groups)","PeerBlocked":"Info about a blocked user","stats.MessageStats":"Message statistics","GroupCall":"A group call","InputGroupCall":"Indicates a group call","GroupCallParticipant":"Info about a group call participant","phone.GroupCall":"Contains info about a group call, and partial info about its participants.","phone.GroupParticipants":"Info about the participants of a group call or livestream","InlineQueryPeerType":"Inline query peer type.","messages.HistoryImport":"Identifier of a history import session, click here for more info ยป.","messages.HistoryImportParsed":"Contains information about a chat export file, generated by a foreign chat app.","messages.AffectedFoundMessages":"Messages found and affected by changes","ChatInviteImporter":"When and which user joined the chat using a chat invite","messages.ExportedChatInvites":"Info about chat invites exported by a certain admin.","messages.ExportedChatInvite":"Contains info about a chat invite, and eventually a pointer to the newest chat invite.","messages.ChatInviteImporters":"List of users that imported a chat invitation link.","ChatAdminWithInvites":"Info about chat invites generated by admins.","messages.ChatAdminsWithInvites":"Info about chat invites generated by admins.","messages.CheckedHistoryImportPeer":"Contains a confirmation text to be shown to the user, upon importing chat history, click here for more info ยป.","phone.JoinAsPeers":"A list of peers that can be used to join a group call, presenting yourself as a specific user/channel.","phone.ExportedGroupCallInvite":"An exported group call invitation.","GroupCallParticipantVideoSourceGroup":"Describes a group of video synchronization source identifiers","GroupCallParticipantVideo":"Info about a video stream","stickers.SuggestedShortName":"A suggested short name for the specified stickerpack","BotCommandScope":"Represents a scope where the bot commands, specified using {@link bots.RawSetBotCommandsRequest} will be valid.","account.ResetPasswordResult":"Result of an {@link account.RawResetPasswordRequest} request.","SponsoredMessage":"A sponsored message","messages.SponsoredMessages":"A set of sponsored messages associated with a channel","SearchResultsCalendarPeriod":"Information about found messages sent on a specific day, used to split the messages in {@link messages.RawSearchResultsCalendar} constructors by days.","messages.SearchResultsCalendar":"Information about found messages sent on a specific day","SearchResultsPosition":"Information about a message in a specific position","messages.SearchResultsPositions":"Information about sparse positions of messages","channels.SendAsPeers":"A list of peers that can be used to send messages in a specific group","users.UserFull":"Full user information, with attached context peers for reactions","messages.PeerSettings":"Peer settings","auth.LoggedOut":"Future auth token ยป to be used on subsequent authorizations","ReactionCount":"Number of users that reacted with a certain emoji","MessageReactions":"Message reactions ยป","messages.MessageReactionsList":"List of peers that reacted to a specific message","AvailableReaction":"Animations associated with a message reaction","messages.AvailableReactions":"Animations and metadata associated with message reactions ยป","MessagePeerReaction":"How a certain peer reacted to the message","GroupCallStreamChannel":"Info about an RTMP stream in a group call or livestream","phone.GroupCallStreamChannels":"Info about RTMP streams in a group call or livestream","phone.GroupCallStreamRtmpUrl":"RTMP URL and stream key to be used in streaming software","AttachMenuBotIconColor":"Represents an attachment menu icon color for bot mini apps ยป","AttachMenuBotIcon":"Represents an attachment menu icon for bot mini apps ยป","AttachMenuBot":"Represents a bot mini app that can be launched from the attachment menu ยป","AttachMenuBots":"Represents a list of bot mini apps that can be launched from the attachment menu ยป","AttachMenuBotsBot":"Represents a bot mini app that can be launched from the attachment menu ยป","WebViewResult":"Contains the webview URL with appropriate theme and user info parameters added","SimpleWebViewResult":"Contains the webview URL with appropriate theme parameters added","WebViewMessageSent":"Contains information about an inline message sent by a Web App on behalf of a user.","BotMenuButton":"Indicates the action to execute when pressing the in-UI menu button for bots","account.SavedRingtones":"Contains a list of saved notification sounds","NotificationSound":"Represents a notification sound","account.SavedRingtone":"Contains information about a saved notification sound","AttachMenuPeerType":"Indicates a supported peer type for a bot mini app attachment menu","InputInvoice":"An invoice","payments.ExportedInvoice":"Exported invoice","messages.TranscribedAudio":"Transcribed text from a voice message","help.PremiumPromo":"Telegram Premium promotion information","InputStorePaymentPurpose":"Info about a Telegram Premium purchase","PremiumGiftOption":"Telegram Premium gift option","PaymentFormMethod":"Represents a payment method","EmojiStatus":"Emoji status","account.EmojiStatuses":"A list of emoji statuses","Reaction":"Message reaction","ChatReactions":"Available chat reactions","messages.Reactions":"A set of message reactions","EmailVerifyPurpose":"Email verification purpose","EmailVerification":"Email verification code or token","account.EmailVerified":"Email verification status","PremiumSubscriptionOption":"Telegram Premium subscription option","SendAsPeer":"Indicates a peer that can be used to send messages","MessageExtendedMedia":"Extended media","StickerKeyword":"Keywords for a certain sticker","Username":"Contains information about a username","ForumTopic":"Contains information about a forum topic","messages.ForumTopics":"Contains information about multiple forum topics","DefaultHistoryTTL":"Contains info about the default value of the Time-To-Live setting, applied to all new chats.","ExportedContactToken":"Describes a temporary profile link.","RequestPeerType":"Filtering criteria to use for the peer selection list shown to the user.","EmojiList":"Represents a list of custom emojis.","EmojiGroup":"Represents an emoji category.","messages.EmojiGroups":"Represents a list of emoji categories.","TextWithEntities":"Styled text with message entities","messages.TranslatedText":"Translated text with entities.","AutoSaveSettings":"Media autosave settings","AutoSaveException":"Peer-specific autosave settings","account.AutoSaveSettings":"Contains media autosave settings","help.AppConfig":"Contains various client configuration parameters","InputBotApp":"Used to fetch information about a named Mini App","BotApp":"Contains information about a named Mini App.","messages.BotApp":"Contains information about a named Mini App","AppWebViewResult":"Contains the link that must be used to open a named Mini App.","InlineBotWebView":"Specifies an inline mode mini app button, shown on top of the inline query results list.","ReadParticipantDate":"Contains info about when a certain participant has read a message","InputChatlist":"Represents a folder","ExportedChatlistInvite":"An exported chat folder deep link ยป.","chatlists.ExportedChatlistInvite":"Exported chat folder deep link ยป.","chatlists.ExportedInvites":"A list of exported chat folder deep links ยป.","chatlists.ChatlistInvite":"Info about a chat folder deep link ยป.","chatlists.ChatlistUpdates":"Updated info about a chat folder deep link ยป.","bots.BotInfo":"Localized name, about text and description of a bot.","MessagePeerVote":"How a user voted in a poll","StoryViews":"Aggregated view and reaction information of a story","StoryItem":"Represents a Telegram Story","stories.AllStories":"Full list of active (or active and hidden) stories.","stories.Stories":"List of stories","StoryView":"Story view date and reaction information","stories.StoryViewsList":"Reaction and view counters for a story","stories.StoryViews":"Reaction and view counters for a list of stories","InputReplyTo":"Contains info about a message or story to reply to.","ExportedStoryLink":"Represents a story deep link","StoriesStealthMode":"Story stealth mode status","MediaAreaCoordinates":"Coordinates and size of a clicable rectangular area on top of a story.","MediaArea":"Represents a story media area ยป","PeerStories":"Stories associated to a peer","stories.PeerStories":"Active story list of a specific peer.","messages.WebPage":"Contains an instant view webpage.","PremiumGiftCodeOption":"Giveaway option.","payments.CheckedGiftCode":"Info about a Telegram Premium Giftcode.","payments.GiveawayInfo":"Info about a Telegram Premium Giveaway.","PrepaidGiveaway":"Contains info about a prepaid giveaway ยป.","Boost":"Info about one or more boosts applied by a specific user.","premium.BoostsList":"List of boosts that were applied to a peer by multiple users.","MyBoost":"Contains information about a single boost slot ยป.","premium.MyBoosts":"A list of peers we are currently boosting, and how many boost slots we have left.","premium.BoostsStatus":"Contains info about the current boost status of a peer.","StoryFwdHeader":"Contains info about the original poster of a reposted story.","PostInteractionCounters":"Interaction counters","stats.StoryStats":"Contains statistics about a story.","PublicForward":"Contains info about the forwards of a story as a message to public chats and reposts by public channels.","stats.PublicForwards":"Contains info about the forwards of a story as a message to public chats and reposts by public channels.","PeerColor":"Represents a color palette ยป.","help.PeerColorSet":"Contains info about a color palette ยป.","help.PeerColorOption":"Contains info about a color palette ยป.","help.PeerColors":"Contains info about multiple color palettes ยป.","StoryReaction":"How a certain peer reacted to or interacted with a story","stories.StoryReactionsList":"List of peers that reacted to a specific story","SavedDialog":"Represents a saved message dialog ยป.","messages.SavedDialogs":"Represents some saved message dialogs ยป.","SponsoredWebPage":"Represents a sponsored website."}} \ No newline at end of file diff --git a/packages/tl/data/int53-overrides.json b/packages/tl/data/int53-overrides.json index d560bdb0..6b926ab8 100644 --- a/packages/tl/data/int53-overrides.json +++ b/packages/tl/data/int53-overrides.json @@ -107,6 +107,7 @@ "storyView": ["user_id"], "storyViews": ["recent_viewers"], "updateBotCallbackQuery": ["user_id"], + "updateBusinessBotCallbackQuery": ["user_id"], "updateBotCommands": ["bot_id"], "updateBotInlineQuery": ["user_id"], "updateBotInlineSend": ["user_id"], diff --git a/packages/tl/package.json b/packages/tl/package.json index e6d37460..632a9864 100644 --- a/packages/tl/package.json +++ b/packages/tl/package.json @@ -1,6 +1,6 @@ { "name": "@mtcute/tl", - "version": "181.0.0", + "version": "182.0.0", "description": "TL schema used for mtcute", "author": "alina sireneva ", "license": "MIT",