UNPKG

dograma

Version:

NodeJS/Browser MTProto API Telegram client library,

1,537 lines (1,536 loc) 822 kB
// 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 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; 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; file: Api.TypeInputFile; stickers?: Api.TypeInputDocument[]; ttlSeconds?: int; } export class InputMediaPhoto extends VirtualClass<{ // flags: null; id: Api.TypeInputPhoto; ttlSeconds?: int; }> { CONSTRUCTOR_ID: 3015312949; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaPhoto"; static fromReader(reader: Reader): InputMediaPhoto; // flags: null; 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; file: Api.TypeInputFile; thumb?: Api.TypeInputFile; mimeType: string; attributes: Api.TypeDocumentAttribute[]; stickers?: Api.TypeInputDocument[]; ttlSeconds?: int; }> { CONSTRUCTOR_ID: 1530447553; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaUploadedDocument"; static fromReader(reader: Reader): InputMediaUploadedDocument; // flags: null; nosoundVideo?: boolean; forceFile?: boolean; file: Api.TypeInputFile; thumb?: Api.TypeInputFile; mimeType: string; attributes: Api.TypeDocumentAttribute[]; stickers?: Api.TypeInputDocument[]; ttlSeconds?: int; } export class InputMediaDocument extends VirtualClass<{ // flags: null; id: Api.TypeInputDocument; ttlSeconds?: int; query?: string; }> { CONSTRUCTOR_ID: 860303448; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaDocument"; static fromReader(reader: Reader): InputMediaDocument; // flags: null; id: Api.TypeInputDocument; 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; url: string; ttlSeconds?: int; }> { CONSTRUCTOR_ID: 3854302746; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaPhotoExternal"; static fromReader(reader: Reader): InputMediaPhotoExternal; // flags: null; url: string; ttlSeconds?: int; } export class InputMediaDocumentExternal extends VirtualClass<{ // flags: null; url: string; ttlSeconds?: int; }> { CONSTRUCTOR_ID: 4216511641; SUBCLASS_OF_ID: 4210575092; classType: "constructor"; className: "InputMediaDocumentExternal"; static fromReader(reader: Reader): InputMediaDocumentExternal; // flags: null; url: string; ttlSeconds?: 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; }> { CONSTRUCTOR_ID: 3648624756; 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; } 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 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; }> { CONSTRUCTOR_ID: 3326243406; SUBCLASS_OF_ID: 3572182388; classType: "constructor"; className: "InputChatUploadedPhoto"; static fromReader(reader: Reader): InputChatUploadedPhoto; // flags: null; file?: Api.TypeInputFile; video?: Api.TypeInputFile; videoStartTs?: double; } 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; 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; }> { CONSTRUCTOR_ID: 1570352622; 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; 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; } 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; 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; 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<void> { CONSTRUCTOR_ID: 3798942449; SUBCLASS_OF_ID: 1527477310; classType: "constructor"; className: "UserStatusRecently"; static fromReader(reader: Reader): UserStatusRecently; } export class UserStatusLastWeek extends VirtualClass<void> { CONSTRUCTOR_ID: 129960444; SUBCLASS_OF_ID: 1527477310; classType: "constructor"; className: "UserStatusLastWeek"; static fromReader(reader: Reader): UserStatusLastWeek; } export class UserStatusLastMonth extends VirtualClass<void> { CONSTRUCTOR_ID: 2011940674; SUBCLASS_OF_ID: 1527477310; classType: "constructor"; className: "UserStatusLastMonth"; static fromReader(reader: Reader): UserStatusLastMonth; } 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; 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; }> { CONSTRUCTOR_ID: 2187439201; 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; 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; } 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; 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; }> { CONSTRUCTOR_ID: 3386052920; SUBCLASS_OF_ID: 3566872215; classType: "constructor"; className: "ChatFull"; static fromReader(reader: Reader): ChatFull; // flags: null; canSetUsername?: boolean; hasScheduled?: 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; } 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; 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; }> { CONSTRUCTOR_ID: 4063581447; 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; 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; } 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: 940666592; SUBCLASS_OF_ID: 2030045667; classType: "request"; className: "Message"; static fromReader(reader: Reader): Message; } export class MessageService extends CustomMessage { CONSTRUCTOR_ID: 721967202; 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; photo?: Api.TypePhoto; ttlSeconds?: int; }> { CONSTRUCTOR_ID: 1766936791; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaPhoto"; static fromReader(reader: Reader): MessageMediaPhoto; // flags: null; 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; document?: Api.TypeDocument; ttlSeconds?: int; }> { CONSTRUCTOR_ID: 2628808919; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaDocument"; static fromReader(reader: Reader): MessageMediaDocument; // flags: null; nopremium?: boolean; document?: Api.TypeDocument; ttlSeconds?: int; } export class MessageMediaWebPage extends VirtualClass<{ webpage: Api.TypeWebPage; }> { CONSTRUCTOR_ID: 2737690112; SUBCLASS_OF_ID: 1198308914; classType: "constructor"; className: "MessageMediaWebPage"; static fromReader(reader: Reader): MessageMediaWebPage; 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; }> { CONSTRUCTOR_ID: 2220168007; 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; } 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 MessageActionEmpty extends VirtualClass<void> { CONSTRUCTOR_ID: 3064919984; SUBCLASS_OF_ID: 2256589094; classType: "constructor"; className: "MessageActionEmpty"; static fromReader(reader: Reader): MessageActionEmpty; } export class MessageActionChatCreate extends VirtualClass<{ title: string; users: long[]; }> { CONSTRUCTOR_ID: 3175599021; SUBCLASS_OF_ID: 2256589094; classType: "constructor"; className: "MessageActionChatCreate"; static fromReader(reader: Reader): MessageActionChatCreate; title: string; users: long[]; } export class MessageActionChatEditTitle extends VirtualClass<{ title: string; }> { CONSTRUCTOR_ID: 3047280218; SUBCLASS_OF_ID: 2256589094; classType: "constructor"; className: "MessageActionChatEditTitle"; static fromReader(reader: Reader): MessageActionChatEditTitle; title: string; } export class MessageActionChatEditPhoto extends VirtualClass<{ photo: Api.TypePhoto; }> { CONSTRUCTOR_ID: 2144015272; SUBCLASS_OF_ID: 2256589094; classType: "constructor"; className: "MessageActionChatEditPhoto"; static fromReader(reader: Reader): MessageActionChatEditPhoto; photo: Api.TypePhoto; } export class MessageActionChatDeletePhoto extends VirtualClass<void> { CONSTRUCTOR_ID: 2514746351; SUBCLASS_OF_ID: 2256589094; classType: "constructor"; className: "MessageActionChatDeletePhoto"; static fromReader(reader: Reader): MessageActionChatDeletePhoto; } export class MessageActionChatAddUser extends VirtualClass<{ users: long[]; }> { CONSTRUCTOR_ID: 365886720; SUBCLASS_OF_ID: 2256589094; classType: "constructor"; className: "MessageActionChatAddUser"; static fromReader(reader: Reader): MessageActionChatAddUser; users: long[]; } export class MessageActionChatDeleteUser extends VirtualClass<{ userId: long; }> { CONSTRUCTOR_ID: 2755604684; SUBCLASS_OF_ID: 2256589094; classType: "constructor"; className: "MessageActionChatDeleteUser"; static fromReader(reader: Reader): MessageActionChatDeleteUser; userId: long; } export class MessageActionChatJoinedByLink extends VirtualClass<{ inviterId: long; }> { CONSTRUCTOR_ID: 51520707; SUBCLASS_OF_ID: 2256589094; classType: "constructor"; className: "MessageActionChatJoinedByLink"; static fromReader(reader: Reader): MessageActionChatJoinedByLink; inviterId: long; } export class MessageActionChannelCreate extends VirtualClass<{ title: string; }> { CONSTRUCTOR_ID: 2513611922; SUBCLASS_OF_ID: 2256589094; classType: "constructor"; className: "MessageActionChannelCreate"; static fromReader(reader: Reader): MessageActionChannelCreate; title: string; } export class MessageActionCh