UNPKG

telegram-updated

Version:

NodeJS/Browser MTProto API Telegram client library,

1,778 lines (1,775 loc) 1.03 MB
// This file is autogenerated. All changes will be overwritten. import { BigInteger } from 'big-integer'; import {EntityLike,MessageIDLike} from "../define"; import { CustomMessage } from "./custom/message"; export namespace Api { type AnyLiteral = Record<string, any> | void; type Reader = any; // To be defined. type Client = any; // To be defined. type Utils = any; // To be defined. type X = unknown; type Type = unknown; type Bool = boolean; type int = number; type double = number; type float = number; type int128 = BigInteger; type int256 = BigInteger; type long = BigInteger; type bytes = Buffer; class VirtualClass<Args extends AnyLiteral> { static CONSTRUCTOR_ID: number; static SUBCLASS_OF_ID: number; static className: string; static classType: 'constructor' | 'request'; static serializeBytes(data: Buffer | string): Buffer; static serializeDate(date: Date | number): Buffer; getBytes():Buffer; CONSTRUCTOR_ID: number; SUBCLASS_OF_ID: number; className: string; classType: 'constructor' | 'request'; constructor(args: Args); originalArgs: Args; toJSON(): Args; } class Request<Args, Response> extends VirtualClass<Partial<Args>> { static readResult(reader: Reader): Buffer; resolve(client: Client, utils: Utils): Promise<void>; __response: Response; } export class InputPeerEmpty extends VirtualClass<void> { CONSTRUCTOR_ID: 2134579434; SUBCLASS_OF_ID: 3374092470; classType: "constructor"; className: "InputPeerEmpty"; static fromReader(reader: Reader): InputPeerEmpty; } export class InputPeerSelf extends VirtualClass<void> { CONSTRUCTOR_ID: 2107670217; SUBCLASS_OF_ID: 3374092470; classType: "constructor"; className: "InputPeerSelf"; static fromReader(reader: Reader): InputPeerSelf; } export class InputPeerChat extends VirtualClass<{ chatId: long; }> { CONSTRUCTOR_ID: 900291769; SUBCLASS_OF_ID: 3374092470; classType: "constructor"; className: "InputPeerChat"; static fromReader(reader: Reader): InputPeerChat; chatId: long; } export class InputPeerUser extends VirtualClass<{ userId: long; accessHash: long; }> { CONSTRUCTOR_ID: 3723011404; SUBCLASS_OF_ID: 3374092470; classType: "constructor"; className: "InputPeerUser"; static fromReader(reader: Reader): InputPeerUser; userId: long; accessHash: long; } export class InputPeerChannel extends VirtualClass<{ channelId: long; accessHash: long; }> { CONSTRUCTOR_ID: 666680316; SUBCLASS_OF_ID: 3374092470; classType: "constructor"; className: "InputPeerChannel"; static fromReader(reader: Reader): InputPeerChannel; channelId: long; accessHash: long; } export class InputPeerUserFromMessage extends VirtualClass<{ peer: Api.TypeInputPeer; msgId: int; userId: long; }> { CONSTRUCTOR_ID: 2826635804; SUBCLASS_OF_ID: 3374092470; classType: "constructor"; className: "InputPeerUserFromMessage"; static fromReader(reader: Reader): InputPeerUserFromMessage; peer: Api.TypeInputPeer; msgId: int; userId: long; } export class InputPeerChannelFromMessage extends VirtualClass<{ peer: Api.TypeInputPeer; msgId: int; channelId: long; }> { CONSTRUCTOR_ID: 3173648448; SUBCLASS_OF_ID: 3374092470; classType: "constructor"; className: "InputPeerChannelFromMessage"; static fromReader(reader: Reader): InputPeerChannelFromMessage; peer: Api.TypeInputPeer; msgId: int; channelId: long; } export class InputUserEmpty extends VirtualClass<void> { CONSTRUCTOR_ID: 3112732367; SUBCLASS_OF_ID: 3865689926; classType: "constructor"; className: "InputUserEmpty"; static fromReader(reader: Reader): InputUserEmpty; } export class InputUserSelf extends VirtualClass<void> { CONSTRUCTOR_ID: 4156666175; SUBCLASS_OF_ID: 3865689926; classType: "constructor"; className: "InputUserSelf"; static fromReader(reader: Reader): InputUserSelf; } export class InputUser extends VirtualClass<{ userId: long; accessHash: long; }> { CONSTRUCTOR_ID: 4061223110; SUBCLASS_OF_ID: 3865689926; classType: "constructor"; className: "InputUser"; static fromReader(reader: Reader): InputUser; userId: long; accessHash: long; } export class InputUserFromMessage extends VirtualClass<{ peer: Api.TypeInputPeer; msgId: int; userId: long; }> { CONSTRUCTOR_ID: 497305826; SUBCLASS_OF_ID: 3865689926; classType: "constructor"; className: "InputUserFromMessage"; static fromReader(reader: Reader): InputUserFromMessage; peer: Api.TypeInputPeer; msgId: int; userId: long; } export class InputPhoneContact extends VirtualClass<{ clientId: long; phone: string; firstName: string; lastName: string; }> { CONSTRUCTOR_ID: 4086478836; SUBCLASS_OF_ID: 2926144130; classType: "constructor"; className: "InputPhoneContact"; static fromReader(reader: Reader): InputPhoneContact; clientId: long; phone: string; firstName: string; lastName: string; } export class InputFile extends VirtualClass<{ id: long; parts: int; name: string; md5Checksum: string; }> { CONSTRUCTOR_ID: 4113560191; SUBCLASS_OF_ID: 3882180383; classType: "constructor"; className: "InputFile"; static fromReader(reader: Reader): InputFile; id: long; parts: int; name: string; md5Checksum: string; } export class InputFileBig extends VirtualClass<{ id: long; parts: int; name: string; }> { CONSTRUCTOR_ID: 4199484341; SUBCLASS_OF_ID: 3882180383; classType: "constructor"; className: "InputFileBig"; static fromReader(reader: Reader): InputFileBig; id: long; parts: int; name: string; } export class InputFileStoryDocument extends VirtualClass<{ id: Api.TypeInputDocument; }> { CONSTRUCTOR_ID: 1658620744; SUBCLASS_OF_ID: 3882180383; classType: "constructor"; className: "InputFileStoryDocument"; static fromReader(reader: Reader): InputFileStoryDocument; id: Api.TypeInputDocument; } export class InputMediaEmpty extends VirtualClass<void> { CONSTRUCTOR_ID: 2523198847; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaEmpty"; static fromReader(reader: Reader): InputMediaEmpty; } export class InputMediaUploadedPhoto extends VirtualClass<{ // flags: null; spoiler?: boolean; file: Api.TypeInputFile; stickers?: Api.TypeInputDocument[]; ttlSeconds?: int; }> { CONSTRUCTOR_ID: 505969924; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaUploadedPhoto"; static fromReader(reader: Reader): InputMediaUploadedPhoto; // flags: null; spoiler?: boolean; file: Api.TypeInputFile; stickers?: Api.TypeInputDocument[]; ttlSeconds?: int; } export class InputMediaPhoto extends VirtualClass<{ // flags: null; spoiler?: boolean; id: Api.TypeInputPhoto; ttlSeconds?: int; }> { CONSTRUCTOR_ID: 3015312949; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaPhoto"; static fromReader(reader: Reader): InputMediaPhoto; // flags: null; spoiler?: boolean; id: Api.TypeInputPhoto; ttlSeconds?: int; } export class InputMediaGeoPoint extends VirtualClass<{ geoPoint: Api.TypeInputGeoPoint; }> { CONSTRUCTOR_ID: 4190388548; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaGeoPoint"; static fromReader(reader: Reader): InputMediaGeoPoint; geoPoint: Api.TypeInputGeoPoint; } export class InputMediaContact extends VirtualClass<{ phoneNumber: string; firstName: string; lastName: string; vcard: string; }> { CONSTRUCTOR_ID: 4171988475; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaContact"; static fromReader(reader: Reader): InputMediaContact; phoneNumber: string; firstName: string; lastName: string; vcard: string; } export class InputMediaUploadedDocument extends VirtualClass<{ // flags: null; nosoundVideo?: boolean; forceFile?: boolean; spoiler?: boolean; file: Api.TypeInputFile; thumb?: Api.TypeInputFile; mimeType: string; attributes: Api.TypeDocumentAttribute[]; stickers?: Api.TypeInputDocument[]; videoCover?: Api.TypeInputPhoto; videoTimestamp?: int; ttlSeconds?: int; }> { CONSTRUCTOR_ID: 58495792; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaUploadedDocument"; static fromReader(reader: Reader): InputMediaUploadedDocument; // flags: null; nosoundVideo?: boolean; forceFile?: boolean; spoiler?: boolean; file: Api.TypeInputFile; thumb?: Api.TypeInputFile; mimeType: string; attributes: Api.TypeDocumentAttribute[]; stickers?: Api.TypeInputDocument[]; videoCover?: Api.TypeInputPhoto; videoTimestamp?: int; ttlSeconds?: int; } export class InputMediaDocument extends VirtualClass<{ // flags: null; spoiler?: boolean; id: Api.TypeInputDocument; videoCover?: Api.TypeInputPhoto; videoTimestamp?: int; ttlSeconds?: int; query?: string; }> { CONSTRUCTOR_ID: 2826320565; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaDocument"; static fromReader(reader: Reader): InputMediaDocument; // flags: null; spoiler?: boolean; id: Api.TypeInputDocument; videoCover?: Api.TypeInputPhoto; videoTimestamp?: int; ttlSeconds?: int; query?: string; } export class InputMediaVenue extends VirtualClass<{ geoPoint: Api.TypeInputGeoPoint; title: string; address: string; provider: string; venueId: string; venueType: string; }> { CONSTRUCTOR_ID: 3242007569; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaVenue"; static fromReader(reader: Reader): InputMediaVenue; geoPoint: Api.TypeInputGeoPoint; title: string; address: string; provider: string; venueId: string; venueType: string; } export class InputMediaPhotoExternal extends VirtualClass<{ // flags: null; spoiler?: boolean; url: string; ttlSeconds?: int; }> { CONSTRUCTOR_ID: 3854302746; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaPhotoExternal"; static fromReader(reader: Reader): InputMediaPhotoExternal; // flags: null; spoiler?: boolean; url: string; ttlSeconds?: int; } export class InputMediaDocumentExternal extends VirtualClass<{ // flags: null; spoiler?: boolean; url: string; ttlSeconds?: int; videoCover?: Api.TypeInputPhoto; videoTimestamp?: int; }> { CONSTRUCTOR_ID: 2006319353; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaDocumentExternal"; static fromReader(reader: Reader): InputMediaDocumentExternal; // flags: null; spoiler?: boolean; url: string; ttlSeconds?: int; videoCover?: Api.TypeInputPhoto; videoTimestamp?: int; } export class InputMediaGame extends VirtualClass<{ id: Api.TypeInputGame; }> { CONSTRUCTOR_ID: 3544138739; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaGame"; static fromReader(reader: Reader): InputMediaGame; id: Api.TypeInputGame; } export class InputMediaInvoice extends VirtualClass<{ // flags: null; title: string; description: string; photo?: Api.TypeInputWebDocument; invoice: Api.TypeInvoice; payload: bytes; provider?: string; providerData: Api.TypeDataJSON; startParam?: string; extendedMedia?: Api.TypeInputMedia; }> { CONSTRUCTOR_ID: 1080028941; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaInvoice"; static fromReader(reader: Reader): InputMediaInvoice; // flags: null; title: string; description: string; photo?: Api.TypeInputWebDocument; invoice: Api.TypeInvoice; payload: bytes; provider?: string; providerData: Api.TypeDataJSON; startParam?: string; extendedMedia?: Api.TypeInputMedia; } export class InputMediaGeoLive extends VirtualClass<{ // flags: null; stopped?: boolean; geoPoint: Api.TypeInputGeoPoint; heading?: int; period?: int; proximityNotificationRadius?: int; }> { CONSTRUCTOR_ID: 2535434307; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaGeoLive"; static fromReader(reader: Reader): InputMediaGeoLive; // flags: null; stopped?: boolean; geoPoint: Api.TypeInputGeoPoint; heading?: int; period?: int; proximityNotificationRadius?: int; } export class InputMediaPoll extends VirtualClass<{ // flags: null; poll: Api.TypePoll; correctAnswers?: bytes[]; solution?: string; solutionEntities?: Api.TypeMessageEntity[]; }> { CONSTRUCTOR_ID: 261416433; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaPoll"; static fromReader(reader: Reader): InputMediaPoll; // flags: null; poll: Api.TypePoll; correctAnswers?: bytes[]; solution?: string; solutionEntities?: Api.TypeMessageEntity[]; } export class InputMediaDice extends VirtualClass<{ emoticon: string; }> { CONSTRUCTOR_ID: 3866083195; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaDice"; static fromReader(reader: Reader): InputMediaDice; emoticon: string; } export class InputMediaStory extends VirtualClass<{ peer: Api.TypeInputPeer; id: int; }> { CONSTRUCTOR_ID: 2315114360; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaStory"; static fromReader(reader: Reader): InputMediaStory; peer: Api.TypeInputPeer; id: int; } export class InputMediaWebPage extends VirtualClass<{ // flags: null; forceLargeMedia?: boolean; forceSmallMedia?: boolean; optional?: boolean; url: string; }> { CONSTRUCTOR_ID: 3256584265; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaWebPage"; static fromReader(reader: Reader): InputMediaWebPage; // flags: null; forceLargeMedia?: boolean; forceSmallMedia?: boolean; optional?: boolean; url: string; } export class InputMediaPaidMedia extends VirtualClass<{ // flags: null; starsAmount: long; extendedMedia: Api.TypeInputMedia[]; payload?: string; }> { CONSTRUCTOR_ID: 3289396102; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaPaidMedia"; static fromReader(reader: Reader): InputMediaPaidMedia; // flags: null; starsAmount: long; extendedMedia: Api.TypeInputMedia[]; payload?: string; } export class InputMediaTodo extends VirtualClass<{ todo: Api.TypeTodoList; }> { CONSTRUCTOR_ID: 2680512478; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaTodo"; static fromReader(reader: Reader): InputMediaTodo; todo: Api.TypeTodoList; } export class InputChatPhotoEmpty extends VirtualClass<void> { CONSTRUCTOR_ID: 480546647; SUBCLASS_OF_ID: 3572182388; classType: "constructor"; className: "InputChatPhotoEmpty"; static fromReader(reader: Reader): InputChatPhotoEmpty; } export class InputChatUploadedPhoto extends VirtualClass<{ // flags: null; file?: Api.TypeInputFile; video?: Api.TypeInputFile; videoStartTs?: double; videoEmojiMarkup?: Api.TypeVideoSize; }> { CONSTRUCTOR_ID: 3184373440; SUBCLASS_OF_ID: 3572182388; classType: "constructor"; className: "InputChatUploadedPhoto"; static fromReader(reader: Reader): InputChatUploadedPhoto; // flags: null; file?: Api.TypeInputFile; video?: Api.TypeInputFile; videoStartTs?: double; videoEmojiMarkup?: Api.TypeVideoSize; } export class InputChatPhoto extends VirtualClass<{ id: Api.TypeInputPhoto; }> { CONSTRUCTOR_ID: 2303962423; SUBCLASS_OF_ID: 3572182388; classType: "constructor"; className: "InputChatPhoto"; static fromReader(reader: Reader): InputChatPhoto; id: Api.TypeInputPhoto; } export class InputGeoPointEmpty extends VirtualClass<void> { CONSTRUCTOR_ID: 3837862870; SUBCLASS_OF_ID: 70308389; classType: "constructor"; className: "InputGeoPointEmpty"; static fromReader(reader: Reader): InputGeoPointEmpty; } export class InputGeoPoint extends VirtualClass<{ // flags: null; lat: double; long: double; accuracyRadius?: int; }> { CONSTRUCTOR_ID: 1210199983; SUBCLASS_OF_ID: 70308389; classType: "constructor"; className: "InputGeoPoint"; static fromReader(reader: Reader): InputGeoPoint; // flags: null; lat: double; long: double; accuracyRadius?: int; } export class InputPhotoEmpty extends VirtualClass<void> { CONSTRUCTOR_ID: 483901197; SUBCLASS_OF_ID: 2221106144; classType: "constructor"; className: "InputPhotoEmpty"; static fromReader(reader: Reader): InputPhotoEmpty; } export class InputPhoto extends VirtualClass<{ id: long; accessHash: long; fileReference: bytes; }> { CONSTRUCTOR_ID: 1001634122; SUBCLASS_OF_ID: 2221106144; classType: "constructor"; className: "InputPhoto"; static fromReader(reader: Reader): InputPhoto; id: long; accessHash: long; fileReference: bytes; } export class InputFileLocation extends VirtualClass<{ volumeId: long; localId: int; secret: long; fileReference: bytes; }> { CONSTRUCTOR_ID: 3755650017; SUBCLASS_OF_ID: 354669666; classType: "constructor"; className: "InputFileLocation"; static fromReader(reader: Reader): InputFileLocation; volumeId: long; localId: int; secret: long; fileReference: bytes; } export class InputEncryptedFileLocation extends VirtualClass<{ id: long; accessHash: long; }> { CONSTRUCTOR_ID: 4112735573; SUBCLASS_OF_ID: 354669666; classType: "constructor"; className: "InputEncryptedFileLocation"; static fromReader(reader: Reader): InputEncryptedFileLocation; id: long; accessHash: long; } export class InputDocumentFileLocation extends VirtualClass<{ id: long; accessHash: long; fileReference: bytes; thumbSize: string; }> { CONSTRUCTOR_ID: 3134223748; SUBCLASS_OF_ID: 354669666; classType: "constructor"; className: "InputDocumentFileLocation"; static fromReader(reader: Reader): InputDocumentFileLocation; id: long; accessHash: long; fileReference: bytes; thumbSize: string; } export class InputSecureFileLocation extends VirtualClass<{ id: long; accessHash: long; }> { CONSTRUCTOR_ID: 3418877480; SUBCLASS_OF_ID: 354669666; classType: "constructor"; className: "InputSecureFileLocation"; static fromReader(reader: Reader): InputSecureFileLocation; id: long; accessHash: long; } export class InputTakeoutFileLocation extends VirtualClass<void> { CONSTRUCTOR_ID: 700340377; SUBCLASS_OF_ID: 354669666; classType: "constructor"; className: "InputTakeoutFileLocation"; static fromReader(reader: Reader): InputTakeoutFileLocation; } export class InputPhotoFileLocation extends VirtualClass<{ id: long; accessHash: long; fileReference: bytes; thumbSize: string; }> { CONSTRUCTOR_ID: 1075322878; SUBCLASS_OF_ID: 354669666; classType: "constructor"; className: "InputPhotoFileLocation"; static fromReader(reader: Reader): InputPhotoFileLocation; id: long; accessHash: long; fileReference: bytes; thumbSize: string; } export class InputPhotoLegacyFileLocation extends VirtualClass<{ id: long; accessHash: long; fileReference: bytes; volumeId: long; localId: int; secret: long; }> { CONSTRUCTOR_ID: 3627312883; SUBCLASS_OF_ID: 354669666; classType: "constructor"; className: "InputPhotoLegacyFileLocation"; static fromReader(reader: Reader): InputPhotoLegacyFileLocation; id: long; accessHash: long; fileReference: bytes; volumeId: long; localId: int; secret: long; } export class InputPeerPhotoFileLocation extends VirtualClass<{ // flags: null; big?: boolean; peer: Api.TypeInputPeer; photoId: long; }> { CONSTRUCTOR_ID: 925204121; SUBCLASS_OF_ID: 354669666; classType: "constructor"; className: "InputPeerPhotoFileLocation"; static fromReader(reader: Reader): InputPeerPhotoFileLocation; // flags: null; big?: boolean; peer: Api.TypeInputPeer; photoId: long; } export class InputStickerSetThumb extends VirtualClass<{ stickerset: Api.TypeInputStickerSet; thumbVersion: int; }> { CONSTRUCTOR_ID: 2642736091; SUBCLASS_OF_ID: 354669666; classType: "constructor"; className: "InputStickerSetThumb"; static fromReader(reader: Reader): InputStickerSetThumb; stickerset: Api.TypeInputStickerSet; thumbVersion: int; } export class InputGroupCallStream extends VirtualClass<{ // flags: null; call: Api.TypeInputGroupCall; timeMs: long; scale: int; videoChannel?: int; videoQuality?: int; }> { CONSTRUCTOR_ID: 93890858; SUBCLASS_OF_ID: 354669666; classType: "constructor"; className: "InputGroupCallStream"; static fromReader(reader: Reader): InputGroupCallStream; // flags: null; call: Api.TypeInputGroupCall; timeMs: long; scale: int; videoChannel?: int; videoQuality?: int; } export class PeerUser extends VirtualClass<{ userId: long; }> { CONSTRUCTOR_ID: 1498486562; SUBCLASS_OF_ID: 47470215; classType: "constructor"; className: "PeerUser"; static fromReader(reader: Reader): PeerUser; userId: long; } export class PeerChat extends VirtualClass<{ chatId: long; }> { CONSTRUCTOR_ID: 918946202; SUBCLASS_OF_ID: 47470215; classType: "constructor"; className: "PeerChat"; static fromReader(reader: Reader): PeerChat; chatId: long; } export class PeerChannel extends VirtualClass<{ channelId: long; }> { CONSTRUCTOR_ID: 2728736542; SUBCLASS_OF_ID: 47470215; classType: "constructor"; className: "PeerChannel"; static fromReader(reader: Reader): PeerChannel; channelId: long; } export class UserEmpty extends VirtualClass<{ id: long; }> { CONSTRUCTOR_ID: 3552332666; SUBCLASS_OF_ID: 765557111; classType: "constructor"; className: "UserEmpty"; static fromReader(reader: Reader): UserEmpty; id: long; } export class User extends VirtualClass<{ // flags: null; self?: boolean; contact?: boolean; mutualContact?: boolean; deleted?: boolean; bot?: boolean; botChatHistory?: boolean; botNochats?: boolean; verified?: boolean; restricted?: boolean; min?: boolean; botInlineGeo?: boolean; support?: boolean; scam?: boolean; applyMinPhoto?: boolean; fake?: boolean; botAttachMenu?: boolean; premium?: boolean; attachMenuEnabled?: boolean; // flags2: null; botCanEdit?: boolean; closeFriend?: boolean; storiesHidden?: boolean; storiesUnavailable?: boolean; contactRequirePremium?: boolean; botBusiness?: boolean; botHasMainApp?: boolean; id: long; accessHash?: long; firstName?: string; lastName?: string; username?: string; phone?: string; photo?: Api.TypeUserProfilePhoto; status?: Api.TypeUserStatus; botInfoVersion?: int; restrictionReason?: Api.TypeRestrictionReason[]; botInlinePlaceholder?: string; langCode?: string; emojiStatus?: Api.TypeEmojiStatus; usernames?: Api.TypeUsername[]; storiesMaxId?: int; color?: Api.TypePeerColor; profileColor?: Api.TypePeerColor; botActiveUsers?: int; botVerificationIcon?: long; sendPaidMessagesStars?: long; }> { CONSTRUCTOR_ID: 34280482; SUBCLASS_OF_ID: 765557111; classType: "constructor"; className: "User"; static fromReader(reader: Reader): User; // flags: null; self?: boolean; contact?: boolean; mutualContact?: boolean; deleted?: boolean; bot?: boolean; botChatHistory?: boolean; botNochats?: boolean; verified?: boolean; restricted?: boolean; min?: boolean; botInlineGeo?: boolean; support?: boolean; scam?: boolean; applyMinPhoto?: boolean; fake?: boolean; botAttachMenu?: boolean; premium?: boolean; attachMenuEnabled?: boolean; // flags2: null; botCanEdit?: boolean; closeFriend?: boolean; storiesHidden?: boolean; storiesUnavailable?: boolean; contactRequirePremium?: boolean; botBusiness?: boolean; botHasMainApp?: boolean; id: long; accessHash?: long; firstName?: string; lastName?: string; username?: string; phone?: string; photo?: Api.TypeUserProfilePhoto; status?: Api.TypeUserStatus; botInfoVersion?: int; restrictionReason?: Api.TypeRestrictionReason[]; botInlinePlaceholder?: string; langCode?: string; emojiStatus?: Api.TypeEmojiStatus; usernames?: Api.TypeUsername[]; storiesMaxId?: int; color?: Api.TypePeerColor; profileColor?: Api.TypePeerColor; botActiveUsers?: int; botVerificationIcon?: long; sendPaidMessagesStars?: long; } export class UserProfilePhotoEmpty extends VirtualClass<void> { CONSTRUCTOR_ID: 1326562017; SUBCLASS_OF_ID: 3325267837; classType: "constructor"; className: "UserProfilePhotoEmpty"; static fromReader(reader: Reader): UserProfilePhotoEmpty; } export class UserProfilePhoto extends VirtualClass<{ // flags: null; hasVideo?: boolean; personal?: boolean; photoId: long; strippedThumb?: bytes; dcId: int; }> { CONSTRUCTOR_ID: 2194798342; SUBCLASS_OF_ID: 3325267837; classType: "constructor"; className: "UserProfilePhoto"; static fromReader(reader: Reader): UserProfilePhoto; // flags: null; hasVideo?: boolean; personal?: boolean; photoId: long; strippedThumb?: bytes; dcId: int; } export class UserStatusEmpty extends VirtualClass<void> { CONSTRUCTOR_ID: 164646985; SUBCLASS_OF_ID: 1527477310; classType: "constructor"; className: "UserStatusEmpty"; static fromReader(reader: Reader): UserStatusEmpty; } export class UserStatusOnline extends VirtualClass<{ expires: int; }> { CONSTRUCTOR_ID: 3988339017; SUBCLASS_OF_ID: 1527477310; classType: "constructor"; className: "UserStatusOnline"; static fromReader(reader: Reader): UserStatusOnline; expires: int; } export class UserStatusOffline extends VirtualClass<{ wasOnline: int; }> { CONSTRUCTOR_ID: 9203775; SUBCLASS_OF_ID: 1527477310; classType: "constructor"; className: "UserStatusOffline"; static fromReader(reader: Reader): UserStatusOffline; wasOnline: int; } export class UserStatusRecently extends VirtualClass<{ // flags: null; byMe?: boolean; }> { CONSTRUCTOR_ID: 2065268168; SUBCLASS_OF_ID: 1527477310; classType: "constructor"; className: "UserStatusRecently"; static fromReader(reader: Reader): UserStatusRecently; // flags: null; byMe?: boolean; } export class UserStatusLastWeek extends VirtualClass<{ // flags: null; byMe?: boolean; }> { CONSTRUCTOR_ID: 1410997530; SUBCLASS_OF_ID: 1527477310; classType: "constructor"; className: "UserStatusLastWeek"; static fromReader(reader: Reader): UserStatusLastWeek; // flags: null; byMe?: boolean; } export class UserStatusLastMonth extends VirtualClass<{ // flags: null; byMe?: boolean; }> { CONSTRUCTOR_ID: 1703516023; SUBCLASS_OF_ID: 1527477310; classType: "constructor"; className: "UserStatusLastMonth"; static fromReader(reader: Reader): UserStatusLastMonth; // flags: null; byMe?: boolean; } export class ChatEmpty extends VirtualClass<{ id: long; }> { CONSTRUCTOR_ID: 693512293; SUBCLASS_OF_ID: 3316604308; classType: "constructor"; className: "ChatEmpty"; static fromReader(reader: Reader): ChatEmpty; id: long; } export class Chat extends VirtualClass<{ // flags: null; creator?: boolean; left?: boolean; deactivated?: boolean; callActive?: boolean; callNotEmpty?: boolean; noforwards?: boolean; id: long; title: string; photo: Api.TypeChatPhoto; participantsCount: int; date: int; version: int; migratedTo?: Api.TypeInputChannel; adminRights?: Api.TypeChatAdminRights; defaultBannedRights?: Api.TypeChatBannedRights; }> { CONSTRUCTOR_ID: 1103884886; SUBCLASS_OF_ID: 3316604308; classType: "constructor"; className: "Chat"; static fromReader(reader: Reader): Chat; // flags: null; creator?: boolean; left?: boolean; deactivated?: boolean; callActive?: boolean; callNotEmpty?: boolean; noforwards?: boolean; id: long; title: string; photo: Api.TypeChatPhoto; participantsCount: int; date: int; version: int; migratedTo?: Api.TypeInputChannel; adminRights?: Api.TypeChatAdminRights; defaultBannedRights?: Api.TypeChatBannedRights; } export class ChatForbidden extends VirtualClass<{ id: long; title: string; }> { CONSTRUCTOR_ID: 1704108455; SUBCLASS_OF_ID: 3316604308; classType: "constructor"; className: "ChatForbidden"; static fromReader(reader: Reader): ChatForbidden; id: long; title: string; } export class Channel extends VirtualClass<{ // flags: null; creator?: boolean; left?: boolean; broadcast?: boolean; verified?: boolean; megagroup?: boolean; restricted?: boolean; signatures?: boolean; min?: boolean; scam?: boolean; hasLink?: boolean; hasGeo?: boolean; slowmodeEnabled?: boolean; callActive?: boolean; callNotEmpty?: boolean; fake?: boolean; gigagroup?: boolean; noforwards?: boolean; joinToSend?: boolean; joinRequest?: boolean; forum?: boolean; // flags2: null; storiesHidden?: boolean; storiesHiddenMin?: boolean; storiesUnavailable?: boolean; signatureProfiles?: boolean; autotranslation?: boolean; broadcastMessagesAllowed?: boolean; monoforum?: boolean; forumTabs?: boolean; id: long; accessHash?: long; title: string; username?: string; photo: Api.TypeChatPhoto; date: int; restrictionReason?: Api.TypeRestrictionReason[]; adminRights?: Api.TypeChatAdminRights; bannedRights?: Api.TypeChatBannedRights; defaultBannedRights?: Api.TypeChatBannedRights; participantsCount?: int; usernames?: Api.TypeUsername[]; storiesMaxId?: int; color?: Api.TypePeerColor; profileColor?: Api.TypePeerColor; emojiStatus?: Api.TypeEmojiStatus; level?: int; subscriptionUntilDate?: int; botVerificationIcon?: long; sendPaidMessagesStars?: long; linkedMonoforumId?: long; }> { CONSTRUCTOR_ID: 4268249941; SUBCLASS_OF_ID: 3316604308; classType: "constructor"; className: "Channel"; static fromReader(reader: Reader): Channel; // flags: null; creator?: boolean; left?: boolean; broadcast?: boolean; verified?: boolean; megagroup?: boolean; restricted?: boolean; signatures?: boolean; min?: boolean; scam?: boolean; hasLink?: boolean; hasGeo?: boolean; slowmodeEnabled?: boolean; callActive?: boolean; callNotEmpty?: boolean; fake?: boolean; gigagroup?: boolean; noforwards?: boolean; joinToSend?: boolean; joinRequest?: boolean; forum?: boolean; // flags2: null; storiesHidden?: boolean; storiesHiddenMin?: boolean; storiesUnavailable?: boolean; signatureProfiles?: boolean; autotranslation?: boolean; broadcastMessagesAllowed?: boolean; monoforum?: boolean; forumTabs?: boolean; id: long; accessHash?: long; title: string; username?: string; photo: Api.TypeChatPhoto; date: int; restrictionReason?: Api.TypeRestrictionReason[]; adminRights?: Api.TypeChatAdminRights; bannedRights?: Api.TypeChatBannedRights; defaultBannedRights?: Api.TypeChatBannedRights; participantsCount?: int; usernames?: Api.TypeUsername[]; storiesMaxId?: int; color?: Api.TypePeerColor; profileColor?: Api.TypePeerColor; emojiStatus?: Api.TypeEmojiStatus; level?: int; subscriptionUntilDate?: int; botVerificationIcon?: long; sendPaidMessagesStars?: long; linkedMonoforumId?: long; } export class ChannelForbidden extends VirtualClass<{ // flags: null; broadcast?: boolean; megagroup?: boolean; id: long; accessHash: long; title: string; untilDate?: int; }> { CONSTRUCTOR_ID: 399807445; SUBCLASS_OF_ID: 3316604308; classType: "constructor"; className: "ChannelForbidden"; static fromReader(reader: Reader): ChannelForbidden; // flags: null; broadcast?: boolean; megagroup?: boolean; id: long; accessHash: long; title: string; untilDate?: int; } export class ChatFull extends VirtualClass<{ // flags: null; canSetUsername?: boolean; hasScheduled?: boolean; translationsDisabled?: boolean; id: long; about: string; participants: Api.TypeChatParticipants; chatPhoto?: Api.TypePhoto; notifySettings: Api.TypePeerNotifySettings; exportedInvite?: Api.TypeExportedChatInvite; botInfo?: Api.TypeBotInfo[]; pinnedMsgId?: int; folderId?: int; call?: Api.TypeInputGroupCall; ttlPeriod?: int; groupcallDefaultJoinAs?: Api.TypePeer; themeEmoticon?: string; requestsPending?: int; recentRequesters?: long[]; availableReactions?: Api.TypeChatReactions; reactionsLimit?: int; }> { CONSTRUCTOR_ID: 640893467; SUBCLASS_OF_ID: 3566872215; classType: "constructor"; className: "ChatFull"; static fromReader(reader: Reader): ChatFull; // flags: null; canSetUsername?: boolean; hasScheduled?: boolean; translationsDisabled?: boolean; id: long; about: string; participants: Api.TypeChatParticipants; chatPhoto?: Api.TypePhoto; notifySettings: Api.TypePeerNotifySettings; exportedInvite?: Api.TypeExportedChatInvite; botInfo?: Api.TypeBotInfo[]; pinnedMsgId?: int; folderId?: int; call?: Api.TypeInputGroupCall; ttlPeriod?: int; groupcallDefaultJoinAs?: Api.TypePeer; themeEmoticon?: string; requestsPending?: int; recentRequesters?: long[]; availableReactions?: Api.TypeChatReactions; reactionsLimit?: int; } export class ChannelFull extends VirtualClass<{ // flags: null; canViewParticipants?: boolean; canSetUsername?: boolean; canSetStickers?: boolean; hiddenPrehistory?: boolean; canSetLocation?: boolean; hasScheduled?: boolean; canViewStats?: boolean; blocked?: boolean; // flags2: null; canDeleteChannel?: boolean; antispam?: boolean; participantsHidden?: boolean; translationsDisabled?: boolean; storiesPinnedAvailable?: boolean; viewForumAsMessages?: boolean; restrictedSponsored?: boolean; canViewRevenue?: boolean; paidMediaAllowed?: boolean; canViewStarsRevenue?: boolean; paidReactionsAvailable?: boolean; stargiftsAvailable?: boolean; paidMessagesAvailable?: boolean; id: long; about: string; participantsCount?: int; adminsCount?: int; kickedCount?: int; bannedCount?: int; onlineCount?: int; readInboxMaxId: int; readOutboxMaxId: int; unreadCount: int; chatPhoto: Api.TypePhoto; notifySettings: Api.TypePeerNotifySettings; exportedInvite?: Api.TypeExportedChatInvite; botInfo: Api.TypeBotInfo[]; migratedFromChatId?: long; migratedFromMaxId?: int; pinnedMsgId?: int; stickerset?: Api.TypeStickerSet; availableMinId?: int; folderId?: int; linkedChatId?: long; location?: Api.TypeChannelLocation; slowmodeSeconds?: int; slowmodeNextSendDate?: int; statsDc?: int; pts: int; call?: Api.TypeInputGroupCall; ttlPeriod?: int; pendingSuggestions?: string[]; groupcallDefaultJoinAs?: Api.TypePeer; themeEmoticon?: string; requestsPending?: int; recentRequesters?: long[]; defaultSendAs?: Api.TypePeer; availableReactions?: Api.TypeChatReactions; reactionsLimit?: int; stories?: Api.TypePeerStories; wallpaper?: Api.TypeWallPaper; boostsApplied?: int; boostsUnrestrict?: int; emojiset?: Api.TypeStickerSet; botVerification?: Api.TypeBotVerification; stargiftsCount?: int; sendPaidMessagesStars?: long; }> { CONSTRUCTOR_ID: 3765709278; SUBCLASS_OF_ID: 3566872215; classType: "constructor"; className: "ChannelFull"; static fromReader(reader: Reader): ChannelFull; // flags: null; canViewParticipants?: boolean; canSetUsername?: boolean; canSetStickers?: boolean; hiddenPrehistory?: boolean; canSetLocation?: boolean; hasScheduled?: boolean; canViewStats?: boolean; blocked?: boolean; // flags2: null; canDeleteChannel?: boolean; antispam?: boolean; participantsHidden?: boolean; translationsDisabled?: boolean; storiesPinnedAvailable?: boolean; viewForumAsMessages?: boolean; restrictedSponsored?: boolean; canViewRevenue?: boolean; paidMediaAllowed?: boolean; canViewStarsRevenue?: boolean; paidReactionsAvailable?: boolean; stargiftsAvailable?: boolean; paidMessagesAvailable?: boolean; id: long; about: string; participantsCount?: int; adminsCount?: int; kickedCount?: int; bannedCount?: int; onlineCount?: int; readInboxMaxId: int; readOutboxMaxId: int; unreadCount: int; chatPhoto: Api.TypePhoto; notifySettings: Api.TypePeerNotifySettings; exportedInvite?: Api.TypeExportedChatInvite; botInfo: Api.TypeBotInfo[]; migratedFromChatId?: long; migratedFromMaxId?: int; pinnedMsgId?: int; stickerset?: Api.TypeStickerSet; availableMinId?: int; folderId?: int; linkedChatId?: long; location?: Api.TypeChannelLocation; slowmodeSeconds?: int; slowmodeNextSendDate?: int; statsDc?: int; pts: int; call?: Api.TypeInputGroupCall; ttlPeriod?: int; pendingSuggestions?: string[]; groupcallDefaultJoinAs?: Api.TypePeer; themeEmoticon?: string; requestsPending?: int; recentRequesters?: long[]; defaultSendAs?: Api.TypePeer; availableReactions?: Api.TypeChatReactions; reactionsLimit?: int; stories?: Api.TypePeerStories; wallpaper?: Api.TypeWallPaper; boostsApplied?: int; boostsUnrestrict?: int; emojiset?: Api.TypeStickerSet; botVerification?: Api.TypeBotVerification; stargiftsCount?: int; sendPaidMessagesStars?: long; } export class ChatParticipant extends VirtualClass<{ userId: long; inviterId: long; date: int; }> { CONSTRUCTOR_ID: 3224190983; SUBCLASS_OF_ID: 2105307014; classType: "constructor"; className: "ChatParticipant"; static fromReader(reader: Reader): ChatParticipant; userId: long; inviterId: long; date: int; } export class ChatParticipantCreator extends VirtualClass<{ userId: long; }> { CONSTRUCTOR_ID: 3832270564; SUBCLASS_OF_ID: 2105307014; classType: "constructor"; className: "ChatParticipantCreator"; static fromReader(reader: Reader): ChatParticipantCreator; userId: long; } export class ChatParticipantAdmin extends VirtualClass<{ userId: long; inviterId: long; date: int; }> { CONSTRUCTOR_ID: 2694004571; SUBCLASS_OF_ID: 2105307014; classType: "constructor"; className: "ChatParticipantAdmin"; static fromReader(reader: Reader): ChatParticipantAdmin; userId: long; inviterId: long; date: int; } export class ChatParticipantsForbidden extends VirtualClass<{ // flags: null; chatId: long; selfParticipant?: Api.TypeChatParticipant; }> { CONSTRUCTOR_ID: 2271466465; SUBCLASS_OF_ID: 531142001; classType: "constructor"; className: "ChatParticipantsForbidden"; static fromReader(reader: Reader): ChatParticipantsForbidden; // flags: null; chatId: long; selfParticipant?: Api.TypeChatParticipant; } export class ChatParticipants extends VirtualClass<{ chatId: long; participants: Api.TypeChatParticipant[]; version: int; }> { CONSTRUCTOR_ID: 1018991608; SUBCLASS_OF_ID: 531142001; classType: "constructor"; className: "ChatParticipants"; static fromReader(reader: Reader): ChatParticipants; chatId: long; participants: Api.TypeChatParticipant[]; version: int; } export class ChatPhotoEmpty extends VirtualClass<void> { CONSTRUCTOR_ID: 935395612; SUBCLASS_OF_ID: 2889794789; classType: "constructor"; className: "ChatPhotoEmpty"; static fromReader(reader: Reader): ChatPhotoEmpty; } export class ChatPhoto extends VirtualClass<{ // flags: null; hasVideo?: boolean; photoId: long; strippedThumb?: bytes; dcId: int; }> { CONSTRUCTOR_ID: 476978193; SUBCLASS_OF_ID: 2889794789; classType: "constructor"; className: "ChatPhoto"; static fromReader(reader: Reader): ChatPhoto; // flags: null; hasVideo?: boolean; photoId: long; strippedThumb?: bytes; dcId: int; } export class MessageEmpty extends VirtualClass<{ // flags: null; id: int; peerId?: Api.TypePeer; }> { CONSTRUCTOR_ID: 2426849924; SUBCLASS_OF_ID: 2030045667; classType: "constructor"; className: "MessageEmpty"; static fromReader(reader: Reader): MessageEmpty; // flags: null; id: int; peerId?: Api.TypePeer; } export class Message extends CustomMessage { CONSTRUCTOR_ID: 2551566024; SUBCLASS_OF_ID: 2030045667; classType: "request"; className: "Message"; static fromReader(reader: Reader): Message; } export class MessageService extends CustomMessage { CONSTRUCTOR_ID: 2055212554; SUBCLASS_OF_ID: 2030045667; classType: "request"; className: "MessageService"; static fromReader(reader: Reader): MessageService; } export class MessageMediaEmpty extends VirtualClass<void> { CONSTRUCTOR_ID: 1038967584; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaEmpty"; static fromReader(reader: Reader): MessageMediaEmpty; } export class MessageMediaPhoto extends VirtualClass<{ // flags: null; spoiler?: boolean; photo?: Api.TypePhoto; ttlSeconds?: int; }> { CONSTRUCTOR_ID: 1766936791; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaPhoto"; static fromReader(reader: Reader): MessageMediaPhoto; // flags: null; spoiler?: boolean; photo?: Api.TypePhoto; ttlSeconds?: int; } export class MessageMediaGeo extends VirtualClass<{ geo: Api.TypeGeoPoint; }> { CONSTRUCTOR_ID: 1457575028; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaGeo"; static fromReader(reader: Reader): MessageMediaGeo; geo: Api.TypeGeoPoint; } export class MessageMediaContact extends VirtualClass<{ phoneNumber: string; firstName: string; lastName: string; vcard: string; userId: long; }> { CONSTRUCTOR_ID: 1882335561; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaContact"; static fromReader(reader: Reader): MessageMediaContact; phoneNumber: string; firstName: string; lastName: string; vcard: string; userId: long; } export class MessageMediaUnsupported extends VirtualClass<void> { CONSTRUCTOR_ID: 2676290718; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaUnsupported"; static fromReader(reader: Reader): MessageMediaUnsupported; } export class MessageMediaDocument extends VirtualClass<{ // flags: null; nopremium?: boolean; spoiler?: boolean; video?: boolean; round?: boolean; voice?: boolean; document?: Api.TypeDocument; altDocuments?: Api.TypeDocument[]; videoCover?: Api.TypePhoto; videoTimestamp?: int; ttlSeconds?: int; }> { CONSTRUCTOR_ID: 1389939929; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaDocument"; static fromReader(reader: Reader): MessageMediaDocument; // flags: null; nopremium?: boolean; spoiler?: boolean; video?: boolean; round?: boolean; voice?: boolean; document?: Api.TypeDocument; altDocuments?: Api.TypeDocument[]; videoCover?: Api.TypePhoto; videoTimestamp?: int; ttlSeconds?: int; } export class MessageMediaWebPage extends VirtualClass<{ // flags: null; forceLargeMedia?: boolean; forceSmallMedia?: boolean; manual?: boolean; safe?: boolean; webpage: Api.TypeWebPage; }> { CONSTRUCTOR_ID: 3723562043; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaWebPage"; static fromReader(reader: Reader): MessageMediaWebPage; // flags: null; forceLargeMedia?: boolean; forceSmallMedia?: boolean; manual?: boolean; safe?: boolean; webpage: Api.TypeWebPage; } export class MessageMediaVenue extends VirtualClass<{ geo: Api.TypeGeoPoint; title: string; address: string; provider: string; venueId: string; venueType: string; }> { CONSTRUCTOR_ID: 784356159; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaVenue"; static fromReader(reader: Reader): MessageMediaVenue; geo: Api.TypeGeoPoint; title: string; address: string; provider: string; venueId: string; venueType: string; } export class MessageMediaGame extends VirtualClass<{ game: Api.TypeGame; }> { CONSTRUCTOR_ID: 4256272392; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaGame"; static fromReader(reader: Reader): MessageMediaGame; game: Api.TypeGame; } export class MessageMediaInvoice extends VirtualClass<{ // flags: null; shippingAddressRequested?: boolean; test?: boolean; title: string; description: string; photo?: Api.TypeWebDocument; receiptMsgId?: int; currency: string; totalAmount: long; startParam: string; extendedMedia?: Api.TypeMessageExtendedMedia; }> { CONSTRUCTOR_ID: 4138027219; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaInvoice"; static fromReader(reader: Reader): MessageMediaInvoice; // flags: null; shippingAddressRequested?: boolean; test?: boolean; title: string; description: string; photo?: Api.TypeWebDocument; receiptMsgId?: int; currency: string; totalAmount: long; startParam: string; extendedMedia?: Api.TypeMessageExtendedMedia; } export class MessageMediaGeoLive extends VirtualClass<{ // flags: null; geo: Api.TypeGeoPoint; heading?: int; period: int; proximityNotificationRadius?: int; }> { CONSTRUCTOR_ID: 3108030054; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaGeoLive"; static fromReader(reader: Reader): MessageMediaGeoLive; // flags: null; geo: Api.TypeGeoPoint; heading?: int; period: int; proximityNotificationRadius?: int; } export class MessageMediaPoll extends VirtualClass<{ poll: Api.TypePoll; results: Api.TypePollResults; }> { CONSTRUCTOR_ID: 1272375192; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaPoll"; static fromReader(reader: Reader): MessageMediaPoll; poll: Api.TypePoll; results: Api.TypePollResults; } export class MessageMediaDice extends VirtualClass<{ value: int; emoticon: string; }> { CONSTRUCTOR_ID: 1065280907; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaDice"; static fromReader(reader: Reader): MessageMediaDice; value: int; emoticon: string; } export class MessageMediaStory extends VirtualClass<{ // flags: null; viaMention?: boolean; peer: Api.TypePeer; id: int; story?: Api.TypeStoryItem; }> { CONSTRUCTOR_ID: 1758159491; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaStory"; static fromReader(reader: Reader): MessageMediaStory; // flags: null; viaMention?: boolean; peer: Api.TypePeer; id: int; story?: Api.TypeStoryItem; } export class MessageMediaGiveaway extends VirtualClass<{ // flags: null; onlyNewSubscribers?: boolean; winnersAreVisible?: boolean; channels: long[]; countriesIso2?: string[]; prizeDescription?: string; quantity: int; months?: int; stars?: long; untilDate: int; }> { CONSTRUCTOR_ID: 2852600811; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaGiveaway"; static fromReader(reader: Reader): MessageMediaGiveaway; // flags: null; onlyNewSubscribers?: boolean; winnersAreVisible?: boolean; channels: long[]; countriesIso2?: string[]; prizeDescription?: string; quantity: int; months?: int; stars?: long; untilDate: int; } export class MessageMediaGiveawayResults extends VirtualClass<{ // flags: null; onlyNewSubscribers?: boolean; refunded?: boolean; channelId: long; additionalPeersCount?: int; launchMsgId: int; winnersCount: int; unclaimedCount: int; winners: long[]; months?: int; stars?: long; prizeDescription?: string; untilDate: int; }> { CONSTRUCTOR_ID: 3467263649; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaGiveawayResults"; static fromReader(reader: Reader): MessageMediaGiveawayResults; // flags: null; onlyNewSubscribers?: boolean; refunded?: boolean; channelId: long; additionalPeersCount?: