|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Error
|
|
|
|
*/
|
|
|
|
export type Error = Error.error;
|
|
|
|
|
|
|
|
export namespace Error {
|
|
|
|
export type error = {
|
|
|
|
_: 'error',
|
|
|
|
code: number,
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputPeer
|
|
|
|
*/
|
|
|
|
export type InputPeer = InputPeer.inputPeerEmpty | InputPeer.inputPeerSelf | InputPeer.inputPeerChat | InputPeer.inputPeerUser | InputPeer.inputPeerChannel | InputPeer.inputPeerUserFromMessage | InputPeer.inputPeerChannelFromMessage;
|
|
|
|
|
|
|
|
export namespace InputPeer {
|
|
|
|
export type inputPeerEmpty = {
|
|
|
|
_: 'inputPeerEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPeerSelf = {
|
|
|
|
_: 'inputPeerSelf'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPeerChat = {
|
|
|
|
_: 'inputPeerChat',
|
|
|
|
chat_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPeerUser = {
|
|
|
|
_: 'inputPeerUser',
|
|
|
|
user_id: number,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPeerChannel = {
|
|
|
|
_: 'inputPeerChannel',
|
|
|
|
channel_id: number,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPeerUserFromMessage = {
|
|
|
|
_: 'inputPeerUserFromMessage',
|
|
|
|
peer: InputPeer,
|
|
|
|
msg_id: number,
|
|
|
|
user_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPeerChannelFromMessage = {
|
|
|
|
_: 'inputPeerChannelFromMessage',
|
|
|
|
peer: InputPeer,
|
|
|
|
msg_id: number,
|
|
|
|
channel_id: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputUser
|
|
|
|
*/
|
|
|
|
export type InputUser = InputUser.inputUserEmpty | InputUser.inputUserSelf | InputUser.inputUser | InputUser.inputUserFromMessage;
|
|
|
|
|
|
|
|
export namespace InputUser {
|
|
|
|
export type inputUserEmpty = {
|
|
|
|
_: 'inputUserEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputUserSelf = {
|
|
|
|
_: 'inputUserSelf'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputUser = {
|
|
|
|
_: 'inputUser',
|
|
|
|
user_id: number,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputUserFromMessage = {
|
|
|
|
_: 'inputUserFromMessage',
|
|
|
|
peer: InputPeer,
|
|
|
|
msg_id: number,
|
|
|
|
user_id: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputContact
|
|
|
|
*/
|
|
|
|
export type InputContact = InputContact.inputPhoneContact;
|
|
|
|
|
|
|
|
export namespace InputContact {
|
|
|
|
export type inputPhoneContact = {
|
|
|
|
_: 'inputPhoneContact',
|
|
|
|
client_id: string,
|
|
|
|
phone: string,
|
|
|
|
first_name: string,
|
|
|
|
last_name: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputFile
|
|
|
|
*/
|
|
|
|
export type InputFile = InputFile.inputFile | InputFile.inputFileBig;
|
|
|
|
|
|
|
|
export namespace InputFile {
|
|
|
|
export type inputFile = {
|
|
|
|
_: 'inputFile',
|
|
|
|
id: string,
|
|
|
|
parts: number,
|
|
|
|
name: string,
|
|
|
|
md5_checksum: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputFileBig = {
|
|
|
|
_: 'inputFileBig',
|
|
|
|
id: string,
|
|
|
|
parts: number,
|
|
|
|
name: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputMedia
|
|
|
|
*/
|
|
|
|
export type InputMedia = InputMedia.inputMediaEmpty | InputMedia.inputMediaUploadedPhoto | InputMedia.inputMediaPhoto | InputMedia.inputMediaGeoPoint | InputMedia.inputMediaContact | InputMedia.inputMediaUploadedDocument | InputMedia.inputMediaDocument | InputMedia.inputMediaVenue | InputMedia.inputMediaGifExternal | InputMedia.inputMediaPhotoExternal | InputMedia.inputMediaDocumentExternal | InputMedia.inputMediaGame | InputMedia.inputMediaInvoice | InputMedia.inputMediaGeoLive | InputMedia.inputMediaPoll | InputMedia.inputMediaDice;
|
|
|
|
|
|
|
|
export namespace InputMedia {
|
|
|
|
export type inputMediaEmpty = {
|
|
|
|
_: 'inputMediaEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMediaUploadedPhoto = {
|
|
|
|
_: 'inputMediaUploadedPhoto',
|
|
|
|
flags?: number,
|
|
|
|
file: InputFile,
|
|
|
|
stickers?: Array<InputDocument>,
|
|
|
|
ttl_seconds?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMediaPhoto = {
|
|
|
|
_: 'inputMediaPhoto',
|
|
|
|
flags?: number,
|
|
|
|
id: InputPhoto,
|
|
|
|
ttl_seconds?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMediaGeoPoint = {
|
|
|
|
_: 'inputMediaGeoPoint',
|
|
|
|
geo_point: InputGeoPoint
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMediaContact = {
|
|
|
|
_: 'inputMediaContact',
|
|
|
|
phone_number: string,
|
|
|
|
first_name: string,
|
|
|
|
last_name: string,
|
|
|
|
vcard: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMediaUploadedDocument = {
|
|
|
|
_: 'inputMediaUploadedDocument',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
nosound_video?: true,
|
|
|
|
}>,
|
|
|
|
file: InputFile,
|
|
|
|
thumb?: InputFile,
|
|
|
|
mime_type: string,
|
|
|
|
attributes: Array<DocumentAttribute>,
|
|
|
|
stickers?: Array<InputDocument>,
|
|
|
|
ttl_seconds?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMediaDocument = {
|
|
|
|
_: 'inputMediaDocument',
|
|
|
|
flags?: number,
|
|
|
|
id: InputDocument,
|
|
|
|
ttl_seconds?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMediaVenue = {
|
|
|
|
_: 'inputMediaVenue',
|
|
|
|
geo_point: InputGeoPoint,
|
|
|
|
title: string,
|
|
|
|
address: string,
|
|
|
|
provider: string,
|
|
|
|
venue_id: string,
|
|
|
|
venue_type: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMediaGifExternal = {
|
|
|
|
_: 'inputMediaGifExternal',
|
|
|
|
url: string,
|
|
|
|
q: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMediaPhotoExternal = {
|
|
|
|
_: 'inputMediaPhotoExternal',
|
|
|
|
flags?: number,
|
|
|
|
url: string,
|
|
|
|
ttl_seconds?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMediaDocumentExternal = {
|
|
|
|
_: 'inputMediaDocumentExternal',
|
|
|
|
flags?: number,
|
|
|
|
url: string,
|
|
|
|
ttl_seconds?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMediaGame = {
|
|
|
|
_: 'inputMediaGame',
|
|
|
|
id: InputGame
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMediaInvoice = {
|
|
|
|
_: 'inputMediaInvoice',
|
|
|
|
flags?: number,
|
|
|
|
title: string,
|
|
|
|
description: string,
|
|
|
|
photo?: InputWebDocument,
|
|
|
|
invoice: Invoice,
|
|
|
|
payload: Uint8Array | number[],
|
|
|
|
provider: string,
|
|
|
|
provider_data: DataJSON,
|
|
|
|
start_param: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMediaGeoLive = {
|
|
|
|
_: 'inputMediaGeoLive',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
stopped?: true,
|
|
|
|
}>,
|
|
|
|
geo_point: InputGeoPoint,
|
|
|
|
period?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMediaPoll = {
|
|
|
|
_: 'inputMediaPoll',
|
|
|
|
flags?: number,
|
|
|
|
poll: Poll,
|
|
|
|
correct_answers?: Array<Uint8Array | number[]>,
|
|
|
|
solution?: string,
|
|
|
|
solution_entities?: Array<MessageEntity>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMediaDice = {
|
|
|
|
_: 'inputMediaDice',
|
|
|
|
emoticon: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputChatPhoto
|
|
|
|
*/
|
|
|
|
export type InputChatPhoto = InputChatPhoto.inputChatPhotoEmpty | InputChatPhoto.inputChatUploadedPhoto | InputChatPhoto.inputChatPhoto;
|
|
|
|
|
|
|
|
export namespace InputChatPhoto {
|
|
|
|
export type inputChatPhotoEmpty = {
|
|
|
|
_: 'inputChatPhotoEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputChatUploadedPhoto = {
|
|
|
|
_: 'inputChatUploadedPhoto',
|
|
|
|
file: InputFile
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputChatPhoto = {
|
|
|
|
_: 'inputChatPhoto',
|
|
|
|
id: InputPhoto
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputGeoPoint
|
|
|
|
*/
|
|
|
|
export type InputGeoPoint = InputGeoPoint.inputGeoPointEmpty | InputGeoPoint.inputGeoPoint;
|
|
|
|
|
|
|
|
export namespace InputGeoPoint {
|
|
|
|
export type inputGeoPointEmpty = {
|
|
|
|
_: 'inputGeoPointEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputGeoPoint = {
|
|
|
|
_: 'inputGeoPoint',
|
|
|
|
lat: number,
|
|
|
|
long: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputPhoto
|
|
|
|
*/
|
|
|
|
export type InputPhoto = InputPhoto.inputPhotoEmpty | InputPhoto.inputPhoto;
|
|
|
|
|
|
|
|
export namespace InputPhoto {
|
|
|
|
export type inputPhotoEmpty = {
|
|
|
|
_: 'inputPhotoEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPhoto = {
|
|
|
|
_: 'inputPhoto',
|
|
|
|
id: string,
|
|
|
|
access_hash: string,
|
|
|
|
file_reference: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputFileLocation
|
|
|
|
*/
|
|
|
|
export type InputFileLocation = InputFileLocation.inputFileLocation | InputFileLocation.inputEncryptedFileLocation | InputFileLocation.inputDocumentFileLocation | InputFileLocation.inputSecureFileLocation | InputFileLocation.inputTakeoutFileLocation | InputFileLocation.inputPhotoFileLocation | InputFileLocation.inputPhotoLegacyFileLocation | InputFileLocation.inputPeerPhotoFileLocation | InputFileLocation.inputStickerSetThumb;
|
|
|
|
|
|
|
|
export namespace InputFileLocation {
|
|
|
|
export type inputFileLocation = {
|
|
|
|
_: 'inputFileLocation',
|
|
|
|
volume_id: string,
|
|
|
|
local_id: number,
|
|
|
|
secret: string,
|
|
|
|
file_reference: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputEncryptedFileLocation = {
|
|
|
|
_: 'inputEncryptedFileLocation',
|
|
|
|
id: string,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputDocumentFileLocation = {
|
|
|
|
_: 'inputDocumentFileLocation',
|
|
|
|
id: string,
|
|
|
|
access_hash: string,
|
|
|
|
file_reference: Uint8Array | number[],
|
|
|
|
thumb_size: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputSecureFileLocation = {
|
|
|
|
_: 'inputSecureFileLocation',
|
|
|
|
id: string,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputTakeoutFileLocation = {
|
|
|
|
_: 'inputTakeoutFileLocation'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPhotoFileLocation = {
|
|
|
|
_: 'inputPhotoFileLocation',
|
|
|
|
id: string,
|
|
|
|
access_hash: string,
|
|
|
|
file_reference: Uint8Array | number[],
|
|
|
|
thumb_size: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPhotoLegacyFileLocation = {
|
|
|
|
_: 'inputPhotoLegacyFileLocation',
|
|
|
|
id: string,
|
|
|
|
access_hash: string,
|
|
|
|
file_reference: Uint8Array | number[],
|
|
|
|
volume_id: string,
|
|
|
|
local_id: number,
|
|
|
|
secret: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPeerPhotoFileLocation = {
|
|
|
|
_: 'inputPeerPhotoFileLocation',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
big?: true,
|
|
|
|
}>,
|
|
|
|
peer: InputPeer,
|
|
|
|
volume_id: string,
|
|
|
|
local_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputStickerSetThumb = {
|
|
|
|
_: 'inputStickerSetThumb',
|
|
|
|
stickerset: InputStickerSet,
|
|
|
|
volume_id: string,
|
|
|
|
local_id: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Peer
|
|
|
|
*/
|
|
|
|
export type Peer = Peer.peerUser | Peer.peerChat | Peer.peerChannel;
|
|
|
|
|
|
|
|
export namespace Peer {
|
|
|
|
export type peerUser = {
|
|
|
|
_: 'peerUser',
|
|
|
|
user_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type peerChat = {
|
|
|
|
_: 'peerChat',
|
|
|
|
chat_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type peerChannel = {
|
|
|
|
_: 'peerChannel',
|
|
|
|
channel_id: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/storage.FileType
|
|
|
|
*/
|
|
|
|
export type StorageFileType = StorageFileType.storageFileUnknown | StorageFileType.storageFilePartial | StorageFileType.storageFileJpeg | StorageFileType.storageFileGif | StorageFileType.storageFilePng | StorageFileType.storageFilePdf | StorageFileType.storageFileMp3 | StorageFileType.storageFileMov | StorageFileType.storageFileMp4 | StorageFileType.storageFileWebp;
|
|
|
|
|
|
|
|
export namespace StorageFileType {
|
|
|
|
export type storageFileUnknown = {
|
|
|
|
_: 'storage.fileUnknown'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type storageFilePartial = {
|
|
|
|
_: 'storage.filePartial'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type storageFileJpeg = {
|
|
|
|
_: 'storage.fileJpeg'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type storageFileGif = {
|
|
|
|
_: 'storage.fileGif'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type storageFilePng = {
|
|
|
|
_: 'storage.filePng'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type storageFilePdf = {
|
|
|
|
_: 'storage.filePdf'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type storageFileMp3 = {
|
|
|
|
_: 'storage.fileMp3'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type storageFileMov = {
|
|
|
|
_: 'storage.fileMov'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type storageFileMp4 = {
|
|
|
|
_: 'storage.fileMp4'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type storageFileWebp = {
|
|
|
|
_: 'storage.fileWebp'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/User
|
|
|
|
*/
|
|
|
|
export type User = User.userEmpty | User.user;
|
|
|
|
|
|
|
|
export namespace User {
|
|
|
|
export type userEmpty = {
|
|
|
|
_: 'userEmpty',
|
|
|
|
id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type user = {
|
|
|
|
_: 'user',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
self?: true,
|
|
|
|
contact?: true,
|
|
|
|
mutual_contact?: true,
|
|
|
|
deleted?: true,
|
|
|
|
bot?: true,
|
|
|
|
bot_chat_history?: true,
|
|
|
|
bot_nochats?: true,
|
|
|
|
verified?: true,
|
|
|
|
restricted?: true,
|
|
|
|
min?: true,
|
|
|
|
bot_inline_geo?: true,
|
|
|
|
support?: true,
|
|
|
|
scam?: true,
|
|
|
|
}>,
|
|
|
|
id: number,
|
|
|
|
access_hash?: string,
|
|
|
|
first_name?: string,
|
|
|
|
last_name?: string,
|
|
|
|
username?: string,
|
|
|
|
phone?: string,
|
|
|
|
photo?: UserProfilePhoto,
|
|
|
|
status?: UserStatus,
|
|
|
|
bot_info_version?: number,
|
|
|
|
restriction_reason?: Array<RestrictionReason>,
|
|
|
|
bot_inline_placeholder?: string,
|
|
|
|
lang_code?: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/UserProfilePhoto
|
|
|
|
*/
|
|
|
|
export type UserProfilePhoto = UserProfilePhoto.userProfilePhotoEmpty | UserProfilePhoto.userProfilePhoto;
|
|
|
|
|
|
|
|
export namespace UserProfilePhoto {
|
|
|
|
export type userProfilePhotoEmpty = {
|
|
|
|
_: 'userProfilePhotoEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type userProfilePhoto = {
|
|
|
|
_: 'userProfilePhoto',
|
|
|
|
photo_id: string,
|
|
|
|
photo_small: FileLocation,
|
|
|
|
photo_big: FileLocation,
|
|
|
|
dc_id: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/UserStatus
|
|
|
|
*/
|
|
|
|
export type UserStatus = UserStatus.userStatusEmpty | UserStatus.userStatusOnline | UserStatus.userStatusOffline | UserStatus.userStatusRecently | UserStatus.userStatusLastWeek | UserStatus.userStatusLastMonth;
|
|
|
|
|
|
|
|
export namespace UserStatus {
|
|
|
|
export type userStatusEmpty = {
|
|
|
|
_: 'userStatusEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type userStatusOnline = {
|
|
|
|
_: 'userStatusOnline',
|
|
|
|
expires: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type userStatusOffline = {
|
|
|
|
_: 'userStatusOffline',
|
|
|
|
was_online: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type userStatusRecently = {
|
|
|
|
_: 'userStatusRecently'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type userStatusLastWeek = {
|
|
|
|
_: 'userStatusLastWeek'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type userStatusLastMonth = {
|
|
|
|
_: 'userStatusLastMonth'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Chat
|
|
|
|
*/
|
|
|
|
export type Chat = Chat.chatEmpty | Chat.chat | Chat.chatForbidden | Chat.channel | Chat.channelForbidden;
|
|
|
|
|
|
|
|
export namespace Chat {
|
|
|
|
export type chatEmpty = {
|
|
|
|
_: 'chatEmpty',
|
|
|
|
id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type chat = {
|
|
|
|
_: 'chat',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
creator?: true,
|
|
|
|
kicked?: true,
|
|
|
|
left?: true,
|
|
|
|
deactivated?: true,
|
|
|
|
}>,
|
|
|
|
id: number,
|
|
|
|
title: string,
|
|
|
|
photo: ChatPhoto,
|
|
|
|
participants_count: number,
|
|
|
|
date: number,
|
|
|
|
version: number,
|
|
|
|
migrated_to?: InputChannel,
|
|
|
|
admin_rights?: ChatAdminRights,
|
|
|
|
default_banned_rights?: ChatBannedRights
|
|
|
|
};
|
|
|
|
|
|
|
|
export type chatForbidden = {
|
|
|
|
_: 'chatForbidden',
|
|
|
|
id: number,
|
|
|
|
title: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channel = {
|
|
|
|
_: 'channel',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
creator?: true,
|
|
|
|
left?: true,
|
|
|
|
broadcast?: true,
|
|
|
|
verified?: true,
|
|
|
|
megagroup?: true,
|
|
|
|
restricted?: true,
|
|
|
|
signatures?: true,
|
|
|
|
min?: true,
|
|
|
|
scam?: true,
|
|
|
|
has_link?: true,
|
|
|
|
has_geo?: true,
|
|
|
|
slowmode_enabled?: true,
|
|
|
|
}>,
|
|
|
|
id: number,
|
|
|
|
access_hash?: string,
|
|
|
|
title: string,
|
|
|
|
username?: string,
|
|
|
|
photo: ChatPhoto,
|
|
|
|
date: number,
|
|
|
|
version: number,
|
|
|
|
restriction_reason?: Array<RestrictionReason>,
|
|
|
|
admin_rights?: ChatAdminRights,
|
|
|
|
banned_rights?: ChatBannedRights,
|
|
|
|
default_banned_rights?: ChatBannedRights,
|
|
|
|
participants_count?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelForbidden = {
|
|
|
|
_: 'channelForbidden',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
broadcast?: true,
|
|
|
|
megagroup?: true,
|
|
|
|
}>,
|
|
|
|
id: number,
|
|
|
|
access_hash: string,
|
|
|
|
title: string,
|
|
|
|
until_date?: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ChatFull
|
|
|
|
*/
|
|
|
|
export type ChatFull = ChatFull.chatFull | ChatFull.channelFull;
|
|
|
|
|
|
|
|
export namespace ChatFull {
|
|
|
|
export type chatFull = {
|
|
|
|
_: 'chatFull',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
can_set_username?: true,
|
|
|
|
has_scheduled?: true,
|
|
|
|
}>,
|
|
|
|
id: number,
|
|
|
|
about: string,
|
|
|
|
participants: ChatParticipants,
|
|
|
|
chat_photo?: Photo,
|
|
|
|
notify_settings: PeerNotifySettings,
|
|
|
|
exported_invite: ExportedChatInvite,
|
|
|
|
bot_info?: Array<BotInfo>,
|
|
|
|
pinned_msg_id?: number,
|
|
|
|
folder_id?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelFull = {
|
|
|
|
_: 'channelFull',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
can_view_participants?: true,
|
|
|
|
can_set_username?: true,
|
|
|
|
can_set_stickers?: true,
|
|
|
|
hidden_prehistory?: true,
|
|
|
|
can_view_stats?: true,
|
|
|
|
can_set_location?: true,
|
|
|
|
has_scheduled?: true,
|
|
|
|
}>,
|
|
|
|
id: number,
|
|
|
|
about: string,
|
|
|
|
participants_count?: number,
|
|
|
|
admins_count?: number,
|
|
|
|
kicked_count?: number,
|
|
|
|
banned_count?: number,
|
|
|
|
online_count?: number,
|
|
|
|
read_inbox_max_id: number,
|
|
|
|
read_outbox_max_id: number,
|
|
|
|
unread_count: number,
|
|
|
|
chat_photo: Photo,
|
|
|
|
notify_settings: PeerNotifySettings,
|
|
|
|
exported_invite: ExportedChatInvite,
|
|
|
|
bot_info: Array<BotInfo>,
|
|
|
|
migrated_from_chat_id?: number,
|
|
|
|
migrated_from_max_id?: number,
|
|
|
|
pinned_msg_id?: number,
|
|
|
|
stickerset?: StickerSet,
|
|
|
|
available_min_id?: number,
|
|
|
|
folder_id?: number,
|
|
|
|
linked_chat_id?: number,
|
|
|
|
location?: ChannelLocation,
|
|
|
|
slowmode_seconds?: number,
|
|
|
|
slowmode_next_send_date?: number,
|
|
|
|
stats_dc?: number,
|
|
|
|
pts: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ChatParticipant
|
|
|
|
*/
|
|
|
|
export type ChatParticipant = ChatParticipant.chatParticipant | ChatParticipant.chatParticipantCreator | ChatParticipant.chatParticipantAdmin;
|
|
|
|
|
|
|
|
export namespace ChatParticipant {
|
|
|
|
export type chatParticipant = {
|
|
|
|
_: 'chatParticipant',
|
|
|
|
user_id: number,
|
|
|
|
inviter_id: number,
|
|
|
|
date: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type chatParticipantCreator = {
|
|
|
|
_: 'chatParticipantCreator',
|
|
|
|
user_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type chatParticipantAdmin = {
|
|
|
|
_: 'chatParticipantAdmin',
|
|
|
|
user_id: number,
|
|
|
|
inviter_id: number,
|
|
|
|
date: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ChatParticipants
|
|
|
|
*/
|
|
|
|
export type ChatParticipants = ChatParticipants.chatParticipantsForbidden | ChatParticipants.chatParticipants;
|
|
|
|
|
|
|
|
export namespace ChatParticipants {
|
|
|
|
export type chatParticipantsForbidden = {
|
|
|
|
_: 'chatParticipantsForbidden',
|
|
|
|
flags?: number,
|
|
|
|
chat_id: number,
|
|
|
|
self_participant?: ChatParticipant
|
|
|
|
};
|
|
|
|
|
|
|
|
export type chatParticipants = {
|
|
|
|
_: 'chatParticipants',
|
|
|
|
chat_id: number,
|
|
|
|
participants: Array<ChatParticipant>,
|
|
|
|
version: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ChatPhoto
|
|
|
|
*/
|
|
|
|
export type ChatPhoto = ChatPhoto.chatPhotoEmpty | ChatPhoto.chatPhoto;
|
|
|
|
|
|
|
|
export namespace ChatPhoto {
|
|
|
|
export type chatPhotoEmpty = {
|
|
|
|
_: 'chatPhotoEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type chatPhoto = {
|
|
|
|
_: 'chatPhoto',
|
|
|
|
photo_small: FileLocation,
|
|
|
|
photo_big: FileLocation,
|
|
|
|
dc_id: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Message
|
|
|
|
*/
|
|
|
|
export type Message = Message.messageEmpty | Message.message | Message.messageService;
|
|
|
|
|
|
|
|
export namespace Message {
|
|
|
|
export type messageEmpty = {
|
|
|
|
_: 'messageEmpty',
|
|
|
|
id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type message = {
|
|
|
|
_: 'message',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
out?: true,
|
|
|
|
mentioned?: true,
|
|
|
|
media_unread?: true,
|
|
|
|
silent?: true,
|
|
|
|
post?: true,
|
|
|
|
from_scheduled?: true,
|
|
|
|
legacy?: true,
|
|
|
|
edit_hide?: true,
|
|
|
|
}>,
|
|
|
|
id: number,
|
|
|
|
from_id?: number,
|
|
|
|
to_id: Peer,
|
|
|
|
fwd_from?: MessageFwdHeader,
|
|
|
|
via_bot_id?: number,
|
|
|
|
reply_to_msg_id?: number,
|
|
|
|
date: number,
|
|
|
|
message: string,
|
|
|
|
media?: MessageMedia,
|
|
|
|
reply_markup?: ReplyMarkup,
|
|
|
|
entities?: Array<MessageEntity>,
|
|
|
|
views?: number,
|
|
|
|
edit_date?: number,
|
|
|
|
post_author?: string,
|
|
|
|
grouped_id?: string,
|
|
|
|
restriction_reason?: Array<RestrictionReason>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageService = {
|
|
|
|
_: 'messageService',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
out?: true,
|
|
|
|
mentioned?: true,
|
|
|
|
media_unread?: true,
|
|
|
|
silent?: true,
|
|
|
|
post?: true,
|
|
|
|
legacy?: true,
|
|
|
|
}>,
|
|
|
|
id: number,
|
|
|
|
from_id?: number,
|
|
|
|
to_id: Peer,
|
|
|
|
reply_to_msg_id?: number,
|
|
|
|
date: number,
|
|
|
|
action: MessageAction
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/MessageMedia
|
|
|
|
*/
|
|
|
|
export type MessageMedia = MessageMedia.messageMediaEmpty | MessageMedia.messageMediaPhoto | MessageMedia.messageMediaGeo | MessageMedia.messageMediaContact | MessageMedia.messageMediaUnsupported | MessageMedia.messageMediaDocument | MessageMedia.messageMediaWebPage | MessageMedia.messageMediaVenue | MessageMedia.messageMediaGame | MessageMedia.messageMediaInvoice | MessageMedia.messageMediaGeoLive | MessageMedia.messageMediaPoll | MessageMedia.messageMediaDice;
|
|
|
|
|
|
|
|
export namespace MessageMedia {
|
|
|
|
export type messageMediaEmpty = {
|
|
|
|
_: 'messageMediaEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageMediaPhoto = {
|
|
|
|
_: 'messageMediaPhoto',
|
|
|
|
flags?: number,
|
|
|
|
photo?: Photo,
|
|
|
|
ttl_seconds?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageMediaGeo = {
|
|
|
|
_: 'messageMediaGeo',
|
|
|
|
geo: GeoPoint
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageMediaContact = {
|
|
|
|
_: 'messageMediaContact',
|
|
|
|
phone_number: string,
|
|
|
|
first_name: string,
|
|
|
|
last_name: string,
|
|
|
|
vcard: string,
|
|
|
|
user_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageMediaUnsupported = {
|
|
|
|
_: 'messageMediaUnsupported'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageMediaDocument = {
|
|
|
|
_: 'messageMediaDocument',
|
|
|
|
flags?: number,
|
|
|
|
document?: Document,
|
|
|
|
ttl_seconds?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageMediaWebPage = {
|
|
|
|
_: 'messageMediaWebPage',
|
|
|
|
webpage: WebPage
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageMediaVenue = {
|
|
|
|
_: 'messageMediaVenue',
|
|
|
|
geo: GeoPoint,
|
|
|
|
title: string,
|
|
|
|
address: string,
|
|
|
|
provider: string,
|
|
|
|
venue_id: string,
|
|
|
|
venue_type: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageMediaGame = {
|
|
|
|
_: 'messageMediaGame',
|
|
|
|
game: Game
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageMediaInvoice = {
|
|
|
|
_: 'messageMediaInvoice',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
shipping_address_requested?: true,
|
|
|
|
test?: true,
|
|
|
|
}>,
|
|
|
|
title: string,
|
|
|
|
description: string,
|
|
|
|
photo?: WebDocument,
|
|
|
|
receipt_msg_id?: number,
|
|
|
|
currency: string,
|
|
|
|
total_amount: string,
|
|
|
|
start_param: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageMediaGeoLive = {
|
|
|
|
_: 'messageMediaGeoLive',
|
|
|
|
geo: GeoPoint,
|
|
|
|
period: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageMediaPoll = {
|
|
|
|
_: 'messageMediaPoll',
|
|
|
|
poll: Poll,
|
|
|
|
results: PollResults
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageMediaDice = {
|
|
|
|
_: 'messageMediaDice',
|
|
|
|
value: number,
|
|
|
|
emoticon: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/MessageAction
|
|
|
|
*/
|
|
|
|
export type MessageAction = MessageAction.messageActionEmpty | MessageAction.messageActionChatCreate | MessageAction.messageActionChatEditTitle | MessageAction.messageActionChatEditPhoto | MessageAction.messageActionChatDeletePhoto | MessageAction.messageActionChatAddUser | MessageAction.messageActionChatDeleteUser | MessageAction.messageActionChatJoinedByLink | MessageAction.messageActionChannelCreate | MessageAction.messageActionChatMigrateTo | MessageAction.messageActionChannelMigrateFrom | MessageAction.messageActionPinMessage | MessageAction.messageActionHistoryClear | MessageAction.messageActionGameScore | MessageAction.messageActionPaymentSentMe | MessageAction.messageActionPaymentSent | MessageAction.messageActionPhoneCall | MessageAction.messageActionScreenshotTaken | MessageAction.messageActionCustomAction | MessageAction.messageActionBotAllowed | MessageAction.messageActionSecureValuesSentMe | MessageAction.messageActionSecureValuesSent | MessageAction.messageActionContactSignUp;
|
|
|
|
|
|
|
|
export namespace MessageAction {
|
|
|
|
export type messageActionEmpty = {
|
|
|
|
_: 'messageActionEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionChatCreate = {
|
|
|
|
_: 'messageActionChatCreate',
|
|
|
|
title: string,
|
|
|
|
users: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionChatEditTitle = {
|
|
|
|
_: 'messageActionChatEditTitle',
|
|
|
|
title: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionChatEditPhoto = {
|
|
|
|
_: 'messageActionChatEditPhoto',
|
|
|
|
photo: Photo
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionChatDeletePhoto = {
|
|
|
|
_: 'messageActionChatDeletePhoto'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionChatAddUser = {
|
|
|
|
_: 'messageActionChatAddUser',
|
|
|
|
users: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionChatDeleteUser = {
|
|
|
|
_: 'messageActionChatDeleteUser',
|
|
|
|
user_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionChatJoinedByLink = {
|
|
|
|
_: 'messageActionChatJoinedByLink',
|
|
|
|
inviter_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionChannelCreate = {
|
|
|
|
_: 'messageActionChannelCreate',
|
|
|
|
title: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionChatMigrateTo = {
|
|
|
|
_: 'messageActionChatMigrateTo',
|
|
|
|
channel_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionChannelMigrateFrom = {
|
|
|
|
_: 'messageActionChannelMigrateFrom',
|
|
|
|
title: string,
|
|
|
|
chat_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionPinMessage = {
|
|
|
|
_: 'messageActionPinMessage'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionHistoryClear = {
|
|
|
|
_: 'messageActionHistoryClear'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionGameScore = {
|
|
|
|
_: 'messageActionGameScore',
|
|
|
|
game_id: string,
|
|
|
|
score: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionPaymentSentMe = {
|
|
|
|
_: 'messageActionPaymentSentMe',
|
|
|
|
flags?: number,
|
|
|
|
currency: string,
|
|
|
|
total_amount: string,
|
|
|
|
payload: Uint8Array | number[],
|
|
|
|
info?: PaymentRequestedInfo,
|
|
|
|
shipping_option_id?: string,
|
|
|
|
charge: PaymentCharge
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionPaymentSent = {
|
|
|
|
_: 'messageActionPaymentSent',
|
|
|
|
currency: string,
|
|
|
|
total_amount: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionPhoneCall = {
|
|
|
|
_: 'messageActionPhoneCall',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
video?: true,
|
|
|
|
}>,
|
|
|
|
call_id: string,
|
|
|
|
reason?: PhoneCallDiscardReason,
|
|
|
|
duration?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionScreenshotTaken = {
|
|
|
|
_: 'messageActionScreenshotTaken'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionCustomAction = {
|
|
|
|
_: 'messageActionCustomAction',
|
|
|
|
message: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionBotAllowed = {
|
|
|
|
_: 'messageActionBotAllowed',
|
|
|
|
domain: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionSecureValuesSentMe = {
|
|
|
|
_: 'messageActionSecureValuesSentMe',
|
|
|
|
values: Array<SecureValue>,
|
|
|
|
credentials: SecureCredentialsEncrypted
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionSecureValuesSent = {
|
|
|
|
_: 'messageActionSecureValuesSent',
|
|
|
|
types: Array<SecureValueType>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageActionContactSignUp = {
|
|
|
|
_: 'messageActionContactSignUp'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Dialog
|
|
|
|
*/
|
|
|
|
export type Dialog = Dialog.dialog | Dialog.dialogFolder;
|
|
|
|
|
|
|
|
export namespace Dialog {
|
|
|
|
export type dialog = {
|
|
|
|
_: 'dialog',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
pinned?: true,
|
|
|
|
unread_mark?: true,
|
|
|
|
}>,
|
|
|
|
peer: Peer,
|
|
|
|
top_message: number,
|
|
|
|
read_inbox_max_id: number,
|
|
|
|
read_outbox_max_id: number,
|
|
|
|
unread_count: number,
|
|
|
|
unread_mentions_count: number,
|
|
|
|
notify_settings: PeerNotifySettings,
|
|
|
|
pts?: number,
|
|
|
|
draft?: DraftMessage,
|
|
|
|
folder_id?: number,
|
|
|
|
index?: number,
|
|
|
|
peerID?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type dialogFolder = {
|
|
|
|
_: 'dialogFolder',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
pinned?: true,
|
|
|
|
}>,
|
|
|
|
folder: Folder,
|
|
|
|
peer: Peer,
|
|
|
|
top_message: number,
|
|
|
|
unread_muted_peers_count: number,
|
|
|
|
unread_unmuted_peers_count: number,
|
|
|
|
unread_muted_messages_count: number,
|
|
|
|
unread_unmuted_messages_count: number,
|
|
|
|
index?: number,
|
|
|
|
peerID?: number,
|
|
|
|
folder_id?: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Photo
|
|
|
|
*/
|
|
|
|
export type Photo = Photo.photoEmpty | Photo.photo;
|
|
|
|
|
|
|
|
export namespace Photo {
|
|
|
|
export type photoEmpty = {
|
|
|
|
_: 'photoEmpty',
|
|
|
|
id: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type photo = {
|
|
|
|
_: 'photo',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
has_stickers?: true,
|
|
|
|
}>,
|
|
|
|
id: string,
|
|
|
|
access_hash: string,
|
|
|
|
file_reference: Uint8Array | number[],
|
|
|
|
date: number,
|
|
|
|
sizes: Array<PhotoSize>,
|
|
|
|
dc_id: number,
|
|
|
|
downloaded?: boolean | number,
|
|
|
|
url?: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PhotoSize
|
|
|
|
*/
|
|
|
|
export type PhotoSize = PhotoSize.photoSizeEmpty | PhotoSize.photoSize | PhotoSize.photoCachedSize | PhotoSize.photoStrippedSize;
|
|
|
|
|
|
|
|
export namespace PhotoSize {
|
|
|
|
export type photoSizeEmpty = {
|
|
|
|
_: 'photoSizeEmpty',
|
|
|
|
type: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type photoSize = {
|
|
|
|
_: 'photoSize',
|
|
|
|
type: string,
|
|
|
|
location: FileLocation,
|
|
|
|
w: number,
|
|
|
|
h: number,
|
|
|
|
size: number,
|
|
|
|
url?: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type photoCachedSize = {
|
|
|
|
_: 'photoCachedSize',
|
|
|
|
type: string,
|
|
|
|
location: FileLocation,
|
|
|
|
w: number,
|
|
|
|
h: number,
|
|
|
|
bytes: Uint8Array | number[],
|
|
|
|
url?: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type photoStrippedSize = {
|
|
|
|
_: 'photoStrippedSize',
|
|
|
|
type: string,
|
|
|
|
bytes: Uint8Array | number[],
|
|
|
|
url?: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/GeoPoint
|
|
|
|
*/
|
|
|
|
export type GeoPoint = GeoPoint.geoPointEmpty | GeoPoint.geoPoint;
|
|
|
|
|
|
|
|
export namespace GeoPoint {
|
|
|
|
export type geoPointEmpty = {
|
|
|
|
_: 'geoPointEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type geoPoint = {
|
|
|
|
_: 'geoPoint',
|
|
|
|
long: number,
|
|
|
|
lat: number,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/auth.SentCode
|
|
|
|
*/
|
|
|
|
export type AuthSentCode = AuthSentCode.authSentCode;
|
|
|
|
|
|
|
|
export namespace AuthSentCode {
|
|
|
|
export type authSentCode = {
|
|
|
|
_: 'auth.sentCode',
|
|
|
|
flags?: number,
|
|
|
|
type: AuthSentCodeType,
|
|
|
|
phone_code_hash: string,
|
|
|
|
next_type?: AuthCodeType,
|
|
|
|
timeout?: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/auth.Authorization
|
|
|
|
*/
|
|
|
|
export type AuthAuthorization = AuthAuthorization.authAuthorization | AuthAuthorization.authAuthorizationSignUpRequired;
|
|
|
|
|
|
|
|
export namespace AuthAuthorization {
|
|
|
|
export type authAuthorization = {
|
|
|
|
_: 'auth.authorization',
|
|
|
|
flags?: number,
|
|
|
|
tmp_sessions?: number,
|
|
|
|
user: User
|
|
|
|
};
|
|
|
|
|
|
|
|
export type authAuthorizationSignUpRequired = {
|
|
|
|
_: 'auth.authorizationSignUpRequired',
|
|
|
|
flags?: number,
|
|
|
|
terms_of_service?: HelpTermsOfService
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/auth.ExportedAuthorization
|
|
|
|
*/
|
|
|
|
export type AuthExportedAuthorization = AuthExportedAuthorization.authExportedAuthorization;
|
|
|
|
|
|
|
|
export namespace AuthExportedAuthorization {
|
|
|
|
export type authExportedAuthorization = {
|
|
|
|
_: 'auth.exportedAuthorization',
|
|
|
|
id: number,
|
|
|
|
bytes: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputNotifyPeer
|
|
|
|
*/
|
|
|
|
export type InputNotifyPeer = InputNotifyPeer.inputNotifyPeer | InputNotifyPeer.inputNotifyUsers | InputNotifyPeer.inputNotifyChats | InputNotifyPeer.inputNotifyBroadcasts;
|
|
|
|
|
|
|
|
export namespace InputNotifyPeer {
|
|
|
|
export type inputNotifyPeer = {
|
|
|
|
_: 'inputNotifyPeer',
|
|
|
|
peer: InputPeer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputNotifyUsers = {
|
|
|
|
_: 'inputNotifyUsers'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputNotifyChats = {
|
|
|
|
_: 'inputNotifyChats'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputNotifyBroadcasts = {
|
|
|
|
_: 'inputNotifyBroadcasts'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputPeerNotifySettings
|
|
|
|
*/
|
|
|
|
export type InputPeerNotifySettings = InputPeerNotifySettings.inputPeerNotifySettings;
|
|
|
|
|
|
|
|
export namespace InputPeerNotifySettings {
|
|
|
|
export type inputPeerNotifySettings = {
|
|
|
|
_: 'inputPeerNotifySettings',
|
|
|
|
flags?: number,
|
|
|
|
show_previews?: boolean,
|
|
|
|
silent?: boolean,
|
|
|
|
mute_until?: number,
|
|
|
|
sound?: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PeerNotifySettings
|
|
|
|
*/
|
|
|
|
export type PeerNotifySettings = PeerNotifySettings.peerNotifySettings;
|
|
|
|
|
|
|
|
export namespace PeerNotifySettings {
|
|
|
|
export type peerNotifySettings = {
|
|
|
|
_: 'peerNotifySettings',
|
|
|
|
flags?: number,
|
|
|
|
show_previews?: boolean,
|
|
|
|
silent?: boolean,
|
|
|
|
mute_until?: number,
|
|
|
|
sound?: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PeerSettings
|
|
|
|
*/
|
|
|
|
export type PeerSettings = PeerSettings.peerSettings;
|
|
|
|
|
|
|
|
export namespace PeerSettings {
|
|
|
|
export type peerSettings = {
|
|
|
|
_: 'peerSettings',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
report_spam?: true,
|
|
|
|
add_contact?: true,
|
|
|
|
block_contact?: true,
|
|
|
|
share_contact?: true,
|
|
|
|
need_contacts_exception?: true,
|
|
|
|
report_geo?: true,
|
|
|
|
}>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/WallPaper
|
|
|
|
*/
|
|
|
|
export type WallPaper = WallPaper.wallPaper | WallPaper.wallPaperNoFile;
|
|
|
|
|
|
|
|
export namespace WallPaper {
|
|
|
|
export type wallPaper = {
|
|
|
|
_: 'wallPaper',
|
|
|
|
id: string,
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
creator?: true,
|
|
|
|
default?: true,
|
|
|
|
pattern?: true,
|
|
|
|
dark?: true,
|
|
|
|
}>,
|
|
|
|
access_hash: string,
|
|
|
|
slug: string,
|
|
|
|
document: Document,
|
|
|
|
settings?: WallPaperSettings
|
|
|
|
};
|
|
|
|
|
|
|
|
export type wallPaperNoFile = {
|
|
|
|
_: 'wallPaperNoFile',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
default?: true,
|
|
|
|
dark?: true,
|
|
|
|
}>,
|
|
|
|
settings?: WallPaperSettings
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ReportReason
|
|
|
|
*/
|
|
|
|
export type ReportReason = ReportReason.inputReportReasonSpam | ReportReason.inputReportReasonViolence | ReportReason.inputReportReasonPornography | ReportReason.inputReportReasonChildAbuse | ReportReason.inputReportReasonOther | ReportReason.inputReportReasonCopyright | ReportReason.inputReportReasonGeoIrrelevant;
|
|
|
|
|
|
|
|
export namespace ReportReason {
|
|
|
|
export type inputReportReasonSpam = {
|
|
|
|
_: 'inputReportReasonSpam'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputReportReasonViolence = {
|
|
|
|
_: 'inputReportReasonViolence'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputReportReasonPornography = {
|
|
|
|
_: 'inputReportReasonPornography'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputReportReasonChildAbuse = {
|
|
|
|
_: 'inputReportReasonChildAbuse'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputReportReasonOther = {
|
|
|
|
_: 'inputReportReasonOther',
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputReportReasonCopyright = {
|
|
|
|
_: 'inputReportReasonCopyright'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputReportReasonGeoIrrelevant = {
|
|
|
|
_: 'inputReportReasonGeoIrrelevant'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/UserFull
|
|
|
|
*/
|
|
|
|
export type UserFull = UserFull.userFull;
|
|
|
|
|
|
|
|
export namespace UserFull {
|
|
|
|
export type userFull = {
|
|
|
|
_: 'userFull',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
blocked?: true,
|
|
|
|
phone_calls_available?: true,
|
|
|
|
phone_calls_private?: true,
|
|
|
|
can_pin_message?: true,
|
|
|
|
has_scheduled?: true,
|
|
|
|
}>,
|
|
|
|
user: User,
|
|
|
|
about?: string,
|
|
|
|
settings: PeerSettings,
|
|
|
|
profile_photo?: Photo,
|
|
|
|
notify_settings: PeerNotifySettings,
|
|
|
|
bot_info?: BotInfo,
|
|
|
|
pinned_msg_id?: number,
|
|
|
|
common_chats_count: number,
|
|
|
|
folder_id?: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Contact
|
|
|
|
*/
|
|
|
|
export type Contact = Contact.contact;
|
|
|
|
|
|
|
|
export namespace Contact {
|
|
|
|
export type contact = {
|
|
|
|
_: 'contact',
|
|
|
|
user_id: number,
|
|
|
|
mutual: boolean
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ImportedContact
|
|
|
|
*/
|
|
|
|
export type ImportedContact = ImportedContact.importedContact;
|
|
|
|
|
|
|
|
export namespace ImportedContact {
|
|
|
|
export type importedContact = {
|
|
|
|
_: 'importedContact',
|
|
|
|
user_id: number,
|
|
|
|
client_id: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ContactBlocked
|
|
|
|
*/
|
|
|
|
export type ContactBlocked = ContactBlocked.contactBlocked;
|
|
|
|
|
|
|
|
export namespace ContactBlocked {
|
|
|
|
export type contactBlocked = {
|
|
|
|
_: 'contactBlocked',
|
|
|
|
user_id: number,
|
|
|
|
date: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ContactStatus
|
|
|
|
*/
|
|
|
|
export type ContactStatus = ContactStatus.contactStatus;
|
|
|
|
|
|
|
|
export namespace ContactStatus {
|
|
|
|
export type contactStatus = {
|
|
|
|
_: 'contactStatus',
|
|
|
|
user_id: number,
|
|
|
|
status: UserStatus
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/contacts.Contacts
|
|
|
|
*/
|
|
|
|
export type ContactsContacts = ContactsContacts.contactsContactsNotModified | ContactsContacts.contactsContacts;
|
|
|
|
|
|
|
|
export namespace ContactsContacts {
|
|
|
|
export type contactsContactsNotModified = {
|
|
|
|
_: 'contacts.contactsNotModified'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type contactsContacts = {
|
|
|
|
_: 'contacts.contacts',
|
|
|
|
contacts: Array<Contact>,
|
|
|
|
saved_count: number,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/contacts.ImportedContacts
|
|
|
|
*/
|
|
|
|
export type ContactsImportedContacts = ContactsImportedContacts.contactsImportedContacts;
|
|
|
|
|
|
|
|
export namespace ContactsImportedContacts {
|
|
|
|
export type contactsImportedContacts = {
|
|
|
|
_: 'contacts.importedContacts',
|
|
|
|
imported: Array<ImportedContact>,
|
|
|
|
popular_invites: Array<PopularContact>,
|
|
|
|
retry_contacts: Array<string>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/contacts.Blocked
|
|
|
|
*/
|
|
|
|
export type ContactsBlocked = ContactsBlocked.contactsBlocked | ContactsBlocked.contactsBlockedSlice;
|
|
|
|
|
|
|
|
export namespace ContactsBlocked {
|
|
|
|
export type contactsBlocked = {
|
|
|
|
_: 'contacts.blocked',
|
|
|
|
blocked: Array<ContactBlocked>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type contactsBlockedSlice = {
|
|
|
|
_: 'contacts.blockedSlice',
|
|
|
|
count: number,
|
|
|
|
blocked: Array<ContactBlocked>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.Dialogs
|
|
|
|
*/
|
|
|
|
export type MessagesDialogs = MessagesDialogs.messagesDialogs | MessagesDialogs.messagesDialogsSlice | MessagesDialogs.messagesDialogsNotModified;
|
|
|
|
|
|
|
|
export namespace MessagesDialogs {
|
|
|
|
export type messagesDialogs = {
|
|
|
|
_: 'messages.dialogs',
|
|
|
|
dialogs: Array<Dialog>,
|
|
|
|
messages: Array<Message>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messagesDialogsSlice = {
|
|
|
|
_: 'messages.dialogsSlice',
|
|
|
|
count: number,
|
|
|
|
dialogs: Array<Dialog>,
|
|
|
|
messages: Array<Message>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messagesDialogsNotModified = {
|
|
|
|
_: 'messages.dialogsNotModified',
|
|
|
|
count: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.Messages
|
|
|
|
*/
|
|
|
|
export type MessagesMessages = MessagesMessages.messagesMessages | MessagesMessages.messagesMessagesSlice | MessagesMessages.messagesChannelMessages | MessagesMessages.messagesMessagesNotModified;
|
|
|
|
|
|
|
|
export namespace MessagesMessages {
|
|
|
|
export type messagesMessages = {
|
|
|
|
_: 'messages.messages',
|
|
|
|
messages: Array<Message>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messagesMessagesSlice = {
|
|
|
|
_: 'messages.messagesSlice',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
inexact?: true,
|
|
|
|
}>,
|
|
|
|
count: number,
|
|
|
|
next_rate?: number,
|
|
|
|
messages: Array<Message>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messagesChannelMessages = {
|
|
|
|
_: 'messages.channelMessages',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
inexact?: true,
|
|
|
|
}>,
|
|
|
|
pts: number,
|
|
|
|
count: number,
|
|
|
|
messages: Array<Message>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messagesMessagesNotModified = {
|
|
|
|
_: 'messages.messagesNotModified',
|
|
|
|
count: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.Chats
|
|
|
|
*/
|
|
|
|
export type MessagesChats = MessagesChats.messagesChats | MessagesChats.messagesChatsSlice;
|
|
|
|
|
|
|
|
export namespace MessagesChats {
|
|
|
|
export type messagesChats = {
|
|
|
|
_: 'messages.chats',
|
|
|
|
chats: Array<Chat>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messagesChatsSlice = {
|
|
|
|
_: 'messages.chatsSlice',
|
|
|
|
count: number,
|
|
|
|
chats: Array<Chat>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.ChatFull
|
|
|
|
*/
|
|
|
|
export type MessagesChatFull = MessagesChatFull.messagesChatFull;
|
|
|
|
|
|
|
|
export namespace MessagesChatFull {
|
|
|
|
export type messagesChatFull = {
|
|
|
|
_: 'messages.chatFull',
|
|
|
|
full_chat: ChatFull,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.AffectedHistory
|
|
|
|
*/
|
|
|
|
export type MessagesAffectedHistory = MessagesAffectedHistory.messagesAffectedHistory;
|
|
|
|
|
|
|
|
export namespace MessagesAffectedHistory {
|
|
|
|
export type messagesAffectedHistory = {
|
|
|
|
_: 'messages.affectedHistory',
|
|
|
|
pts: number,
|
|
|
|
pts_count: number,
|
|
|
|
offset: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/MessagesFilter
|
|
|
|
*/
|
|
|
|
export type MessagesFilter = MessagesFilter.inputMessagesFilterEmpty | MessagesFilter.inputMessagesFilterPhotos | MessagesFilter.inputMessagesFilterVideo | MessagesFilter.inputMessagesFilterPhotoVideo | MessagesFilter.inputMessagesFilterDocument | MessagesFilter.inputMessagesFilterUrl | MessagesFilter.inputMessagesFilterGif | MessagesFilter.inputMessagesFilterVoice | MessagesFilter.inputMessagesFilterMusic | MessagesFilter.inputMessagesFilterChatPhotos | MessagesFilter.inputMessagesFilterPhoneCalls | MessagesFilter.inputMessagesFilterRoundVoice | MessagesFilter.inputMessagesFilterRoundVideo | MessagesFilter.inputMessagesFilterMyMentions | MessagesFilter.inputMessagesFilterGeo | MessagesFilter.inputMessagesFilterContacts;
|
|
|
|
|
|
|
|
export namespace MessagesFilter {
|
|
|
|
export type inputMessagesFilterEmpty = {
|
|
|
|
_: 'inputMessagesFilterEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessagesFilterPhotos = {
|
|
|
|
_: 'inputMessagesFilterPhotos'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessagesFilterVideo = {
|
|
|
|
_: 'inputMessagesFilterVideo'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessagesFilterPhotoVideo = {
|
|
|
|
_: 'inputMessagesFilterPhotoVideo'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessagesFilterDocument = {
|
|
|
|
_: 'inputMessagesFilterDocument'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessagesFilterUrl = {
|
|
|
|
_: 'inputMessagesFilterUrl'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessagesFilterGif = {
|
|
|
|
_: 'inputMessagesFilterGif'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessagesFilterVoice = {
|
|
|
|
_: 'inputMessagesFilterVoice'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessagesFilterMusic = {
|
|
|
|
_: 'inputMessagesFilterMusic'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessagesFilterChatPhotos = {
|
|
|
|
_: 'inputMessagesFilterChatPhotos'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessagesFilterPhoneCalls = {
|
|
|
|
_: 'inputMessagesFilterPhoneCalls',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
missed?: true,
|
|
|
|
}>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessagesFilterRoundVoice = {
|
|
|
|
_: 'inputMessagesFilterRoundVoice'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessagesFilterRoundVideo = {
|
|
|
|
_: 'inputMessagesFilterRoundVideo'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessagesFilterMyMentions = {
|
|
|
|
_: 'inputMessagesFilterMyMentions'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessagesFilterGeo = {
|
|
|
|
_: 'inputMessagesFilterGeo'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessagesFilterContacts = {
|
|
|
|
_: 'inputMessagesFilterContacts'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Update
|
|
|
|
*/
|
|
|
|
export type Update = Update.updateNewMessage | Update.updateMessageID | Update.updateDeleteMessages | Update.updateUserTyping | Update.updateChatUserTyping | Update.updateChatParticipants | Update.updateUserStatus | Update.updateUserName | Update.updateUserPhoto | Update.updateNewEncryptedMessage | Update.updateEncryptedChatTyping | Update.updateEncryption | Update.updateEncryptedMessagesRead | Update.updateChatParticipantAdd | Update.updateChatParticipantDelete | Update.updateDcOptions | Update.updateUserBlocked | Update.updateNotifySettings | Update.updateServiceNotification | Update.updatePrivacy | Update.updateUserPhone | Update.updateReadHistoryInbox | Update.updateReadHistoryOutbox | Update.updateWebPage | Update.updateReadMessagesContents | Update.updateChannelTooLong | Update.updateChannel | Update.updateNewChannelMessage | Update.updateReadChannelInbox | Update.updateDeleteChannelMessages | Update.updateChannelMessageViews | Update.updateChatParticipantAdmin | Update.updateNewStickerSet | Update.updateStickerSetsOrder | Update.updateStickerSets | Update.updateSavedGifs | Update.updateBotInlineQuery | Update.updateBotInlineSend | Update.updateEditChannelMessage | Update.updateChannelPinnedMessage | Update.updateBotCallbackQuery | Update.updateEditMessage | Update.updateInlineBotCallbackQuery | Update.updateReadChannelOutbox | Update.updateDraftMessage | Update.updateReadFeaturedStickers | Update.updateRecentStickers | Update.updateConfig | Update.updatePtsChanged | Update.updateChannelWebPage | Update.updateDialogPinned | Update.updatePinnedDialogs | Update.updateBotWebhookJSON | Update.updateBotWebhookJSONQuery | Update.updateBotShippingQuery | Update.updateBotPrecheckoutQuery | Update.updatePhoneCall | Update.updateLangPackTooLong | Update.updateLangPack | Update.updateFavedStickers | Update.updateChannelReadMessagesContents | Update.updateContactsReset | Update.updateChannelAvailableMessages | Update.updateDialogUnreadMark | Update.updateUserPinnedMessage | Update.updateChatPinnedMessage | Update.updateMessagePoll | Update.updateChatDefaultBannedRights | Update.updateFolderPeers | Update.updatePeerSettings | Update.updatePeerLocated | Update.updateNewScheduledMessage | Update.updateDeleteScheduledMessages | Update.updateTheme | Update.updateGeoLiveViewed | Update.updateLoginToken | Update.updateMessagePollVote | Update.updateDialogFilter | Update.updateDialogFilterOrder | Update.updateDialogFilters;
|
|
|
|
|
|
|
|
export namespace Update {
|
|
|
|
export type updateNewMessage = {
|
|
|
|
_: 'updateNewMessage',
|
|
|
|
message: Message,
|
|
|
|
pts: number,
|
|
|
|
pts_count: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateMessageID = {
|
|
|
|
_: 'updateMessageID',
|
|
|
|
id: number,
|
|
|
|
random_id: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateDeleteMessages = {
|
|
|
|
_: 'updateDeleteMessages',
|
|
|
|
messages: Array<number>,
|
|
|
|
pts: number,
|
|
|
|
pts_count: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateUserTyping = {
|
|
|
|
_: 'updateUserTyping',
|
|
|
|
user_id: number,
|
|
|
|
action: SendMessageAction
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateChatUserTyping = {
|
|
|
|
_: 'updateChatUserTyping',
|
|
|
|
chat_id: number,
|
|
|
|
user_id: number,
|
|
|
|
action: SendMessageAction
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateChatParticipants = {
|
|
|
|
_: 'updateChatParticipants',
|
|
|
|
participants: ChatParticipants
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateUserStatus = {
|
|
|
|
_: 'updateUserStatus',
|
|
|
|
user_id: number,
|
|
|
|
status: UserStatus
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateUserName = {
|
|
|
|
_: 'updateUserName',
|
|
|
|
user_id: number,
|
|
|
|
first_name: string,
|
|
|
|
last_name: string,
|
|
|
|
username: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateUserPhoto = {
|
|
|
|
_: 'updateUserPhoto',
|
|
|
|
user_id: number,
|
|
|
|
date: number,
|
|
|
|
photo: UserProfilePhoto,
|
|
|
|
previous: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateNewEncryptedMessage = {
|
|
|
|
_: 'updateNewEncryptedMessage',
|
|
|
|
message: EncryptedMessage,
|
|
|
|
qts: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateEncryptedChatTyping = {
|
|
|
|
_: 'updateEncryptedChatTyping',
|
|
|
|
chat_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateEncryption = {
|
|
|
|
_: 'updateEncryption',
|
|
|
|
chat: EncryptedChat,
|
|
|
|
date: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateEncryptedMessagesRead = {
|
|
|
|
_: 'updateEncryptedMessagesRead',
|
|
|
|
chat_id: number,
|
|
|
|
max_date: number,
|
|
|
|
date: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateChatParticipantAdd = {
|
|
|
|
_: 'updateChatParticipantAdd',
|
|
|
|
chat_id: number,
|
|
|
|
user_id: number,
|
|
|
|
inviter_id: number,
|
|
|
|
date: number,
|
|
|
|
version: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateChatParticipantDelete = {
|
|
|
|
_: 'updateChatParticipantDelete',
|
|
|
|
chat_id: number,
|
|
|
|
user_id: number,
|
|
|
|
version: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateDcOptions = {
|
|
|
|
_: 'updateDcOptions',
|
|
|
|
dc_options: Array<DcOption>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateUserBlocked = {
|
|
|
|
_: 'updateUserBlocked',
|
|
|
|
user_id: number,
|
|
|
|
blocked: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateNotifySettings = {
|
|
|
|
_: 'updateNotifySettings',
|
|
|
|
peer: NotifyPeer,
|
|
|
|
notify_settings: PeerNotifySettings
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateServiceNotification = {
|
|
|
|
_: 'updateServiceNotification',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
popup?: true,
|
|
|
|
}>,
|
|
|
|
inbox_date?: number,
|
|
|
|
type: string,
|
|
|
|
message: string,
|
|
|
|
media: MessageMedia,
|
|
|
|
entities: Array<MessageEntity>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updatePrivacy = {
|
|
|
|
_: 'updatePrivacy',
|
|
|
|
key: PrivacyKey,
|
|
|
|
rules: Array<PrivacyRule>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateUserPhone = {
|
|
|
|
_: 'updateUserPhone',
|
|
|
|
user_id: number,
|
|
|
|
phone: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateReadHistoryInbox = {
|
|
|
|
_: 'updateReadHistoryInbox',
|
|
|
|
flags?: number,
|
|
|
|
folder_id?: number,
|
|
|
|
peer: Peer,
|
|
|
|
max_id: number,
|
|
|
|
still_unread_count: number,
|
|
|
|
pts: number,
|
|
|
|
pts_count: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateReadHistoryOutbox = {
|
|
|
|
_: 'updateReadHistoryOutbox',
|
|
|
|
peer: Peer,
|
|
|
|
max_id: number,
|
|
|
|
pts: number,
|
|
|
|
pts_count: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateWebPage = {
|
|
|
|
_: 'updateWebPage',
|
|
|
|
webpage: WebPage,
|
|
|
|
pts: number,
|
|
|
|
pts_count: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateReadMessagesContents = {
|
|
|
|
_: 'updateReadMessagesContents',
|
|
|
|
messages: Array<number>,
|
|
|
|
pts: number,
|
|
|
|
pts_count: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateChannelTooLong = {
|
|
|
|
_: 'updateChannelTooLong',
|
|
|
|
flags?: number,
|
|
|
|
channel_id: number,
|
|
|
|
pts?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateChannel = {
|
|
|
|
_: 'updateChannel',
|
|
|
|
channel_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateNewChannelMessage = {
|
|
|
|
_: 'updateNewChannelMessage',
|
|
|
|
message: Message,
|
|
|
|
pts: number,
|
|
|
|
pts_count: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateReadChannelInbox = {
|
|
|
|
_: 'updateReadChannelInbox',
|
|
|
|
flags?: number,
|
|
|
|
folder_id?: number,
|
|
|
|
channel_id: number,
|
|
|
|
max_id: number,
|
|
|
|
still_unread_count: number,
|
|
|
|
pts: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateDeleteChannelMessages = {
|
|
|
|
_: 'updateDeleteChannelMessages',
|
|
|
|
channel_id: number,
|
|
|
|
messages: Array<number>,
|
|
|
|
pts: number,
|
|
|
|
pts_count: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateChannelMessageViews = {
|
|
|
|
_: 'updateChannelMessageViews',
|
|
|
|
channel_id: number,
|
|
|
|
id: number,
|
|
|
|
views: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateChatParticipantAdmin = {
|
|
|
|
_: 'updateChatParticipantAdmin',
|
|
|
|
chat_id: number,
|
|
|
|
user_id: number,
|
|
|
|
is_admin: boolean,
|
|
|
|
version: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateNewStickerSet = {
|
|
|
|
_: 'updateNewStickerSet',
|
|
|
|
stickerset: MessagesStickerSet
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateStickerSetsOrder = {
|
|
|
|
_: 'updateStickerSetsOrder',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
masks?: true,
|
|
|
|
}>,
|
|
|
|
order: Array<string>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateStickerSets = {
|
|
|
|
_: 'updateStickerSets'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateSavedGifs = {
|
|
|
|
_: 'updateSavedGifs'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateBotInlineQuery = {
|
|
|
|
_: 'updateBotInlineQuery',
|
|
|
|
flags?: number,
|
|
|
|
query_id: string,
|
|
|
|
user_id: number,
|
|
|
|
query: string,
|
|
|
|
geo?: GeoPoint,
|
|
|
|
offset: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateBotInlineSend = {
|
|
|
|
_: 'updateBotInlineSend',
|
|
|
|
flags?: number,
|
|
|
|
user_id: number,
|
|
|
|
query: string,
|
|
|
|
geo?: GeoPoint,
|
|
|
|
id: string,
|
|
|
|
msg_id?: InputBotInlineMessageID
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateEditChannelMessage = {
|
|
|
|
_: 'updateEditChannelMessage',
|
|
|
|
message: Message,
|
|
|
|
pts: number,
|
|
|
|
pts_count: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateChannelPinnedMessage = {
|
|
|
|
_: 'updateChannelPinnedMessage',
|
|
|
|
channel_id: number,
|
|
|
|
id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateBotCallbackQuery = {
|
|
|
|
_: 'updateBotCallbackQuery',
|
|
|
|
flags?: number,
|
|
|
|
query_id: string,
|
|
|
|
user_id: number,
|
|
|
|
peer: Peer,
|
|
|
|
msg_id: number,
|
|
|
|
chat_instance: string,
|
|
|
|
data?: Uint8Array | number[],
|
|
|
|
game_short_name?: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateEditMessage = {
|
|
|
|
_: 'updateEditMessage',
|
|
|
|
message: Message,
|
|
|
|
pts: number,
|
|
|
|
pts_count: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateInlineBotCallbackQuery = {
|
|
|
|
_: 'updateInlineBotCallbackQuery',
|
|
|
|
flags?: number,
|
|
|
|
query_id: string,
|
|
|
|
user_id: number,
|
|
|
|
msg_id: InputBotInlineMessageID,
|
|
|
|
chat_instance: string,
|
|
|
|
data?: Uint8Array | number[],
|
|
|
|
game_short_name?: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateReadChannelOutbox = {
|
|
|
|
_: 'updateReadChannelOutbox',
|
|
|
|
channel_id: number,
|
|
|
|
max_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateDraftMessage = {
|
|
|
|
_: 'updateDraftMessage',
|
|
|
|
peer: Peer,
|
|
|
|
draft: DraftMessage
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateReadFeaturedStickers = {
|
|
|
|
_: 'updateReadFeaturedStickers'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateRecentStickers = {
|
|
|
|
_: 'updateRecentStickers'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateConfig = {
|
|
|
|
_: 'updateConfig'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updatePtsChanged = {
|
|
|
|
_: 'updatePtsChanged'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateChannelWebPage = {
|
|
|
|
_: 'updateChannelWebPage',
|
|
|
|
channel_id: number,
|
|
|
|
webpage: WebPage,
|
|
|
|
pts: number,
|
|
|
|
pts_count: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateDialogPinned = {
|
|
|
|
_: 'updateDialogPinned',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
pinned?: true,
|
|
|
|
}>,
|
|
|
|
folder_id?: number,
|
|
|
|
peer: DialogPeer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updatePinnedDialogs = {
|
|
|
|
_: 'updatePinnedDialogs',
|
|
|
|
flags?: number,
|
|
|
|
folder_id?: number,
|
|
|
|
order?: Array<DialogPeer>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateBotWebhookJSON = {
|
|
|
|
_: 'updateBotWebhookJSON',
|
|
|
|
data: DataJSON
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateBotWebhookJSONQuery = {
|
|
|
|
_: 'updateBotWebhookJSONQuery',
|
|
|
|
query_id: string,
|
|
|
|
data: DataJSON,
|
|
|
|
timeout: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateBotShippingQuery = {
|
|
|
|
_: 'updateBotShippingQuery',
|
|
|
|
query_id: string,
|
|
|
|
user_id: number,
|
|
|
|
payload: Uint8Array | number[],
|
|
|
|
shipping_address: PostAddress
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateBotPrecheckoutQuery = {
|
|
|
|
_: 'updateBotPrecheckoutQuery',
|
|
|
|
flags?: number,
|
|
|
|
query_id: string,
|
|
|
|
user_id: number,
|
|
|
|
payload: Uint8Array | number[],
|
|
|
|
info?: PaymentRequestedInfo,
|
|
|
|
shipping_option_id?: string,
|
|
|
|
currency: string,
|
|
|
|
total_amount: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updatePhoneCall = {
|
|
|
|
_: 'updatePhoneCall',
|
|
|
|
phone_call: PhoneCall
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateLangPackTooLong = {
|
|
|
|
_: 'updateLangPackTooLong',
|
|
|
|
lang_code: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateLangPack = {
|
|
|
|
_: 'updateLangPack',
|
|
|
|
difference: LangPackDifference
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateFavedStickers = {
|
|
|
|
_: 'updateFavedStickers'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateChannelReadMessagesContents = {
|
|
|
|
_: 'updateChannelReadMessagesContents',
|
|
|
|
channel_id: number,
|
|
|
|
messages: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateContactsReset = {
|
|
|
|
_: 'updateContactsReset'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateChannelAvailableMessages = {
|
|
|
|
_: 'updateChannelAvailableMessages',
|
|
|
|
channel_id: number,
|
|
|
|
available_min_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateDialogUnreadMark = {
|
|
|
|
_: 'updateDialogUnreadMark',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
unread?: true,
|
|
|
|
}>,
|
|
|
|
peer: DialogPeer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateUserPinnedMessage = {
|
|
|
|
_: 'updateUserPinnedMessage',
|
|
|
|
user_id: number,
|
|
|
|
id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateChatPinnedMessage = {
|
|
|
|
_: 'updateChatPinnedMessage',
|
|
|
|
chat_id: number,
|
|
|
|
id: number,
|
|
|
|
version: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateMessagePoll = {
|
|
|
|
_: 'updateMessagePoll',
|
|
|
|
flags?: number,
|
|
|
|
poll_id: string,
|
|
|
|
poll?: Poll,
|
|
|
|
results: PollResults
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateChatDefaultBannedRights = {
|
|
|
|
_: 'updateChatDefaultBannedRights',
|
|
|
|
peer: Peer,
|
|
|
|
default_banned_rights: ChatBannedRights,
|
|
|
|
version: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateFolderPeers = {
|
|
|
|
_: 'updateFolderPeers',
|
|
|
|
folder_peers: Array<FolderPeer>,
|
|
|
|
pts: number,
|
|
|
|
pts_count: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updatePeerSettings = {
|
|
|
|
_: 'updatePeerSettings',
|
|
|
|
peer: Peer,
|
|
|
|
settings: PeerSettings
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updatePeerLocated = {
|
|
|
|
_: 'updatePeerLocated',
|
|
|
|
peers: Array<PeerLocated>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateNewScheduledMessage = {
|
|
|
|
_: 'updateNewScheduledMessage',
|
|
|
|
message: Message
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateDeleteScheduledMessages = {
|
|
|
|
_: 'updateDeleteScheduledMessages',
|
|
|
|
peer: Peer,
|
|
|
|
messages: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateTheme = {
|
|
|
|
_: 'updateTheme',
|
|
|
|
theme: Theme
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateGeoLiveViewed = {
|
|
|
|
_: 'updateGeoLiveViewed',
|
|
|
|
peer: Peer,
|
|
|
|
msg_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateLoginToken = {
|
|
|
|
_: 'updateLoginToken'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateMessagePollVote = {
|
|
|
|
_: 'updateMessagePollVote',
|
|
|
|
poll_id: string,
|
|
|
|
user_id: number,
|
|
|
|
options: Array<Uint8Array | number[]>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateDialogFilter = {
|
|
|
|
_: 'updateDialogFilter',
|
|
|
|
flags?: number,
|
|
|
|
id: number,
|
|
|
|
filter?: DialogFilter
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateDialogFilterOrder = {
|
|
|
|
_: 'updateDialogFilterOrder',
|
|
|
|
order: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateDialogFilters = {
|
|
|
|
_: 'updateDialogFilters'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/updates.State
|
|
|
|
*/
|
|
|
|
export type UpdatesState = UpdatesState.updatesState;
|
|
|
|
|
|
|
|
export namespace UpdatesState {
|
|
|
|
export type updatesState = {
|
|
|
|
_: 'updates.state',
|
|
|
|
pts: number,
|
|
|
|
qts: number,
|
|
|
|
date: number,
|
|
|
|
seq: number,
|
|
|
|
unread_count: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/updates.Difference
|
|
|
|
*/
|
|
|
|
export type UpdatesDifference = UpdatesDifference.updatesDifferenceEmpty | UpdatesDifference.updatesDifference | UpdatesDifference.updatesDifferenceSlice | UpdatesDifference.updatesDifferenceTooLong;
|
|
|
|
|
|
|
|
export namespace UpdatesDifference {
|
|
|
|
export type updatesDifferenceEmpty = {
|
|
|
|
_: 'updates.differenceEmpty',
|
|
|
|
date: number,
|
|
|
|
seq: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updatesDifference = {
|
|
|
|
_: 'updates.difference',
|
|
|
|
new_messages: Array<Message>,
|
|
|
|
new_encrypted_messages: Array<EncryptedMessage>,
|
|
|
|
other_updates: Array<Update>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>,
|
|
|
|
state: UpdatesState
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updatesDifferenceSlice = {
|
|
|
|
_: 'updates.differenceSlice',
|
|
|
|
new_messages: Array<Message>,
|
|
|
|
new_encrypted_messages: Array<EncryptedMessage>,
|
|
|
|
other_updates: Array<Update>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>,
|
|
|
|
intermediate_state: UpdatesState
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updatesDifferenceTooLong = {
|
|
|
|
_: 'updates.differenceTooLong',
|
|
|
|
pts: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Updates
|
|
|
|
*/
|
|
|
|
export type Updates = Updates.updatesTooLong | Updates.updateShortMessage | Updates.updateShortChatMessage | Updates.updateShort | Updates.updatesCombined | Updates.updates | Updates.updateShortSentMessage;
|
|
|
|
|
|
|
|
export namespace Updates {
|
|
|
|
export type updatesTooLong = {
|
|
|
|
_: 'updatesTooLong'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateShortMessage = {
|
|
|
|
_: 'updateShortMessage',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
out?: true,
|
|
|
|
mentioned?: true,
|
|
|
|
media_unread?: true,
|
|
|
|
silent?: true,
|
|
|
|
}>,
|
|
|
|
id: number,
|
|
|
|
user_id: number,
|
|
|
|
message: string,
|
|
|
|
pts: number,
|
|
|
|
pts_count: number,
|
|
|
|
date: number,
|
|
|
|
fwd_from?: MessageFwdHeader,
|
|
|
|
via_bot_id?: number,
|
|
|
|
reply_to_msg_id?: number,
|
|
|
|
entities?: Array<MessageEntity>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateShortChatMessage = {
|
|
|
|
_: 'updateShortChatMessage',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
out?: true,
|
|
|
|
mentioned?: true,
|
|
|
|
media_unread?: true,
|
|
|
|
silent?: true,
|
|
|
|
}>,
|
|
|
|
id: number,
|
|
|
|
from_id: number,
|
|
|
|
chat_id: number,
|
|
|
|
message: string,
|
|
|
|
pts: number,
|
|
|
|
pts_count: number,
|
|
|
|
date: number,
|
|
|
|
fwd_from?: MessageFwdHeader,
|
|
|
|
via_bot_id?: number,
|
|
|
|
reply_to_msg_id?: number,
|
|
|
|
entities?: Array<MessageEntity>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateShort = {
|
|
|
|
_: 'updateShort',
|
|
|
|
update: Update,
|
|
|
|
date: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updatesCombined = {
|
|
|
|
_: 'updatesCombined',
|
|
|
|
updates: Array<Update>,
|
|
|
|
users: Array<User>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
date: number,
|
|
|
|
seq_start: number,
|
|
|
|
seq: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updates = {
|
|
|
|
_: 'updates',
|
|
|
|
updates: Array<Update>,
|
|
|
|
users: Array<User>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
date: number,
|
|
|
|
seq: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updateShortSentMessage = {
|
|
|
|
_: 'updateShortSentMessage',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
out?: true,
|
|
|
|
}>,
|
|
|
|
id: number,
|
|
|
|
pts: number,
|
|
|
|
pts_count: number,
|
|
|
|
date: number,
|
|
|
|
media?: MessageMedia,
|
|
|
|
entities?: Array<MessageEntity>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/photos.Photos
|
|
|
|
*/
|
|
|
|
export type PhotosPhotos = PhotosPhotos.photosPhotos | PhotosPhotos.photosPhotosSlice;
|
|
|
|
|
|
|
|
export namespace PhotosPhotos {
|
|
|
|
export type photosPhotos = {
|
|
|
|
_: 'photos.photos',
|
|
|
|
photos: Array<Photo>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type photosPhotosSlice = {
|
|
|
|
_: 'photos.photosSlice',
|
|
|
|
count: number,
|
|
|
|
photos: Array<Photo>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/photos.Photo
|
|
|
|
*/
|
|
|
|
export type PhotosPhoto = PhotosPhoto.photosPhoto;
|
|
|
|
|
|
|
|
export namespace PhotosPhoto {
|
|
|
|
export type photosPhoto = {
|
|
|
|
_: 'photos.photo',
|
|
|
|
photo: Photo,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/upload.File
|
|
|
|
*/
|
|
|
|
export type UploadFile = UploadFile.uploadFile | UploadFile.uploadFileCdnRedirect;
|
|
|
|
|
|
|
|
export namespace UploadFile {
|
|
|
|
export type uploadFile = {
|
|
|
|
_: 'upload.file',
|
|
|
|
type: StorageFileType,
|
|
|
|
mtime: number,
|
|
|
|
bytes: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type uploadFileCdnRedirect = {
|
|
|
|
_: 'upload.fileCdnRedirect',
|
|
|
|
dc_id: number,
|
|
|
|
file_token: Uint8Array | number[],
|
|
|
|
encryption_key: Uint8Array | number[],
|
|
|
|
encryption_iv: Uint8Array | number[],
|
|
|
|
file_hashes: Array<FileHash>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/DcOption
|
|
|
|
*/
|
|
|
|
export type DcOption = DcOption.dcOption;
|
|
|
|
|
|
|
|
export namespace DcOption {
|
|
|
|
export type dcOption = {
|
|
|
|
_: 'dcOption',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
ipv6?: true,
|
|
|
|
media_only?: true,
|
|
|
|
tcpo_only?: true,
|
|
|
|
cdn?: true,
|
|
|
|
static?: true,
|
|
|
|
}>,
|
|
|
|
id: number,
|
|
|
|
ip_address: string,
|
|
|
|
port: number,
|
|
|
|
secret?: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Config
|
|
|
|
*/
|
|
|
|
export type Config = Config.config;
|
|
|
|
|
|
|
|
export namespace Config {
|
|
|
|
export type config = {
|
|
|
|
_: 'config',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
phonecalls_enabled?: true,
|
|
|
|
default_p2p_contacts?: true,
|
|
|
|
preload_featured_stickers?: true,
|
|
|
|
ignore_phone_entities?: true,
|
|
|
|
revoke_pm_inbox?: true,
|
|
|
|
blocked_mode?: true,
|
|
|
|
pfs_enabled?: true,
|
|
|
|
}>,
|
|
|
|
date: number,
|
|
|
|
expires: number,
|
|
|
|
test_mode: boolean,
|
|
|
|
this_dc: number,
|
|
|
|
dc_options: Array<DcOption>,
|
|
|
|
dc_txt_domain_name: string,
|
|
|
|
chat_size_max: number,
|
|
|
|
megagroup_size_max: number,
|
|
|
|
forwarded_count_max: number,
|
|
|
|
online_update_period_ms: number,
|
|
|
|
offline_blur_timeout_ms: number,
|
|
|
|
offline_idle_timeout_ms: number,
|
|
|
|
online_cloud_timeout_ms: number,
|
|
|
|
notify_cloud_delay_ms: number,
|
|
|
|
notify_default_delay_ms: number,
|
|
|
|
push_chat_period_ms: number,
|
|
|
|
push_chat_limit: number,
|
|
|
|
saved_gifs_limit: number,
|
|
|
|
edit_time_limit: number,
|
|
|
|
revoke_time_limit: number,
|
|
|
|
revoke_pm_time_limit: number,
|
|
|
|
rating_e_decay: number,
|
|
|
|
stickers_recent_limit: number,
|
|
|
|
stickers_faved_limit: number,
|
|
|
|
channels_read_media_period: number,
|
|
|
|
tmp_sessions?: number,
|
|
|
|
pinned_dialogs_count_max: number,
|
|
|
|
pinned_infolder_count_max: number,
|
|
|
|
call_receive_timeout_ms: number,
|
|
|
|
call_ring_timeout_ms: number,
|
|
|
|
call_connect_timeout_ms: number,
|
|
|
|
call_packet_timeout_ms: number,
|
|
|
|
me_url_prefix: string,
|
|
|
|
autoupdate_url_prefix?: string,
|
|
|
|
gif_search_username?: string,
|
|
|
|
venue_search_username?: string,
|
|
|
|
img_search_username?: string,
|
|
|
|
static_maps_provider?: string,
|
|
|
|
caption_length_max: number,
|
|
|
|
message_length_max: number,
|
|
|
|
webfile_dc_id: number,
|
|
|
|
suggested_lang_code?: string,
|
|
|
|
lang_pack_version?: number,
|
|
|
|
base_lang_pack_version?: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/NearestDc
|
|
|
|
*/
|
|
|
|
export type NearestDc = NearestDc.nearestDc;
|
|
|
|
|
|
|
|
export namespace NearestDc {
|
|
|
|
export type nearestDc = {
|
|
|
|
_: 'nearestDc',
|
|
|
|
country: string,
|
|
|
|
this_dc: number,
|
|
|
|
nearest_dc: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/help.AppUpdate
|
|
|
|
*/
|
|
|
|
export type HelpAppUpdate = HelpAppUpdate.helpAppUpdate | HelpAppUpdate.helpNoAppUpdate;
|
|
|
|
|
|
|
|
export namespace HelpAppUpdate {
|
|
|
|
export type helpAppUpdate = {
|
|
|
|
_: 'help.appUpdate',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
can_not_skip?: true,
|
|
|
|
}>,
|
|
|
|
id: number,
|
|
|
|
version: string,
|
|
|
|
text: string,
|
|
|
|
entities: Array<MessageEntity>,
|
|
|
|
document?: Document,
|
|
|
|
url?: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type helpNoAppUpdate = {
|
|
|
|
_: 'help.noAppUpdate'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/help.InviteText
|
|
|
|
*/
|
|
|
|
export type HelpInviteText = HelpInviteText.helpInviteText;
|
|
|
|
|
|
|
|
export namespace HelpInviteText {
|
|
|
|
export type helpInviteText = {
|
|
|
|
_: 'help.inviteText',
|
|
|
|
message: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/EncryptedChat
|
|
|
|
*/
|
|
|
|
export type EncryptedChat = EncryptedChat.encryptedChatEmpty | EncryptedChat.encryptedChatWaiting | EncryptedChat.encryptedChatRequested | EncryptedChat.encryptedChat | EncryptedChat.encryptedChatDiscarded;
|
|
|
|
|
|
|
|
export namespace EncryptedChat {
|
|
|
|
export type encryptedChatEmpty = {
|
|
|
|
_: 'encryptedChatEmpty',
|
|
|
|
id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type encryptedChatWaiting = {
|
|
|
|
_: 'encryptedChatWaiting',
|
|
|
|
id: number,
|
|
|
|
access_hash: string,
|
|
|
|
date: number,
|
|
|
|
admin_id: number,
|
|
|
|
participant_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type encryptedChatRequested = {
|
|
|
|
_: 'encryptedChatRequested',
|
|
|
|
id: number,
|
|
|
|
access_hash: string,
|
|
|
|
date: number,
|
|
|
|
admin_id: number,
|
|
|
|
participant_id: number,
|
|
|
|
g_a: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type encryptedChat = {
|
|
|
|
_: 'encryptedChat',
|
|
|
|
id: number,
|
|
|
|
access_hash: string,
|
|
|
|
date: number,
|
|
|
|
admin_id: number,
|
|
|
|
participant_id: number,
|
|
|
|
g_a_or_b: Uint8Array | number[],
|
|
|
|
key_fingerprint: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type encryptedChatDiscarded = {
|
|
|
|
_: 'encryptedChatDiscarded',
|
|
|
|
id: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputEncryptedChat
|
|
|
|
*/
|
|
|
|
export type InputEncryptedChat = InputEncryptedChat.inputEncryptedChat;
|
|
|
|
|
|
|
|
export namespace InputEncryptedChat {
|
|
|
|
export type inputEncryptedChat = {
|
|
|
|
_: 'inputEncryptedChat',
|
|
|
|
chat_id: number,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/EncryptedFile
|
|
|
|
*/
|
|
|
|
export type EncryptedFile = EncryptedFile.encryptedFileEmpty | EncryptedFile.encryptedFile;
|
|
|
|
|
|
|
|
export namespace EncryptedFile {
|
|
|
|
export type encryptedFileEmpty = {
|
|
|
|
_: 'encryptedFileEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type encryptedFile = {
|
|
|
|
_: 'encryptedFile',
|
|
|
|
id: string,
|
|
|
|
access_hash: string,
|
|
|
|
size: number,
|
|
|
|
dc_id: number,
|
|
|
|
key_fingerprint: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputEncryptedFile
|
|
|
|
*/
|
|
|
|
export type InputEncryptedFile = InputEncryptedFile.inputEncryptedFileEmpty | InputEncryptedFile.inputEncryptedFileUploaded | InputEncryptedFile.inputEncryptedFile | InputEncryptedFile.inputEncryptedFileBigUploaded;
|
|
|
|
|
|
|
|
export namespace InputEncryptedFile {
|
|
|
|
export type inputEncryptedFileEmpty = {
|
|
|
|
_: 'inputEncryptedFileEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputEncryptedFileUploaded = {
|
|
|
|
_: 'inputEncryptedFileUploaded',
|
|
|
|
id: string,
|
|
|
|
parts: number,
|
|
|
|
md5_checksum: string,
|
|
|
|
key_fingerprint: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputEncryptedFile = {
|
|
|
|
_: 'inputEncryptedFile',
|
|
|
|
id: string,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputEncryptedFileBigUploaded = {
|
|
|
|
_: 'inputEncryptedFileBigUploaded',
|
|
|
|
id: string,
|
|
|
|
parts: number,
|
|
|
|
key_fingerprint: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/EncryptedMessage
|
|
|
|
*/
|
|
|
|
export type EncryptedMessage = EncryptedMessage.encryptedMessage | EncryptedMessage.encryptedMessageService;
|
|
|
|
|
|
|
|
export namespace EncryptedMessage {
|
|
|
|
export type encryptedMessage = {
|
|
|
|
_: 'encryptedMessage',
|
|
|
|
random_id: string,
|
|
|
|
chat_id: number,
|
|
|
|
date: number,
|
|
|
|
bytes: Uint8Array | number[],
|
|
|
|
file: EncryptedFile
|
|
|
|
};
|
|
|
|
|
|
|
|
export type encryptedMessageService = {
|
|
|
|
_: 'encryptedMessageService',
|
|
|
|
random_id: string,
|
|
|
|
chat_id: number,
|
|
|
|
date: number,
|
|
|
|
bytes: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.DhConfig
|
|
|
|
*/
|
|
|
|
export type MessagesDhConfig = MessagesDhConfig.messagesDhConfigNotModified | MessagesDhConfig.messagesDhConfig;
|
|
|
|
|
|
|
|
export namespace MessagesDhConfig {
|
|
|
|
export type messagesDhConfigNotModified = {
|
|
|
|
_: 'messages.dhConfigNotModified',
|
|
|
|
random: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messagesDhConfig = {
|
|
|
|
_: 'messages.dhConfig',
|
|
|
|
g: number,
|
|
|
|
p: Uint8Array | number[],
|
|
|
|
version: number,
|
|
|
|
random: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.SentEncryptedMessage
|
|
|
|
*/
|
|
|
|
export type MessagesSentEncryptedMessage = MessagesSentEncryptedMessage.messagesSentEncryptedMessage | MessagesSentEncryptedMessage.messagesSentEncryptedFile;
|
|
|
|
|
|
|
|
export namespace MessagesSentEncryptedMessage {
|
|
|
|
export type messagesSentEncryptedMessage = {
|
|
|
|
_: 'messages.sentEncryptedMessage',
|
|
|
|
date: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messagesSentEncryptedFile = {
|
|
|
|
_: 'messages.sentEncryptedFile',
|
|
|
|
date: number,
|
|
|
|
file: EncryptedFile
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputDocument
|
|
|
|
*/
|
|
|
|
export type InputDocument = InputDocument.inputDocumentEmpty | InputDocument.inputDocument;
|
|
|
|
|
|
|
|
export namespace InputDocument {
|
|
|
|
export type inputDocumentEmpty = {
|
|
|
|
_: 'inputDocumentEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputDocument = {
|
|
|
|
_: 'inputDocument',
|
|
|
|
id: string,
|
|
|
|
access_hash: string,
|
|
|
|
file_reference: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Document
|
|
|
|
*/
|
|
|
|
export type Document = Document.documentEmpty | Document.document;
|
|
|
|
|
|
|
|
export namespace Document {
|
|
|
|
export type documentEmpty = {
|
|
|
|
_: 'documentEmpty',
|
|
|
|
id: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type document = {
|
|
|
|
_: 'document',
|
|
|
|
flags?: number,
|
|
|
|
id: string,
|
|
|
|
access_hash: string,
|
|
|
|
file_reference: Uint8Array | number[],
|
|
|
|
date: number,
|
|
|
|
mime_type: string,
|
|
|
|
size: number,
|
|
|
|
thumbs?: Array<PhotoSize.photoSize | PhotoSize.photoCachedSize | PhotoSize.photoStrippedSize>,
|
|
|
|
dc_id: number,
|
|
|
|
attributes: Array<DocumentAttribute>,
|
|
|
|
type?: 'gif' | 'sticker' | 'audio' | 'voice' | 'video' | 'round' | 'photo',
|
|
|
|
h?: number,
|
|
|
|
w?: number,
|
|
|
|
file_name?: string,
|
|
|
|
file?: File,
|
|
|
|
duration?: number,
|
|
|
|
downloaded?: boolean,
|
|
|
|
url?: string,
|
|
|
|
audioTitle?: string,
|
|
|
|
audioPerformer?: string,
|
|
|
|
sticker?: number,
|
|
|
|
stickerEmoji?: string,
|
|
|
|
stickerEmojiRaw?: string,
|
|
|
|
stickerSetInput?: InputStickerSet.inputStickerSetID,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
stickerThumbConverted?: true,
|
|
|
|
}>,
|
|
|
|
animated?: boolean,
|
|
|
|
supportsStreaming?: boolean
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/help.Support
|
|
|
|
*/
|
|
|
|
export type HelpSupport = HelpSupport.helpSupport;
|
|
|
|
|
|
|
|
export namespace HelpSupport {
|
|
|
|
export type helpSupport = {
|
|
|
|
_: 'help.support',
|
|
|
|
phone_number: string,
|
|
|
|
user: User
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/NotifyPeer
|
|
|
|
*/
|
|
|
|
export type NotifyPeer = NotifyPeer.notifyPeer | NotifyPeer.notifyUsers | NotifyPeer.notifyChats | NotifyPeer.notifyBroadcasts;
|
|
|
|
|
|
|
|
export namespace NotifyPeer {
|
|
|
|
export type notifyPeer = {
|
|
|
|
_: 'notifyPeer',
|
|
|
|
peer: Peer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type notifyUsers = {
|
|
|
|
_: 'notifyUsers'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type notifyChats = {
|
|
|
|
_: 'notifyChats'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type notifyBroadcasts = {
|
|
|
|
_: 'notifyBroadcasts'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/SendMessageAction
|
|
|
|
*/
|
|
|
|
export type SendMessageAction = SendMessageAction.sendMessageTypingAction | SendMessageAction.sendMessageCancelAction | SendMessageAction.sendMessageRecordVideoAction | SendMessageAction.sendMessageUploadVideoAction | SendMessageAction.sendMessageRecordAudioAction | SendMessageAction.sendMessageUploadAudioAction | SendMessageAction.sendMessageUploadPhotoAction | SendMessageAction.sendMessageUploadDocumentAction | SendMessageAction.sendMessageGeoLocationAction | SendMessageAction.sendMessageChooseContactAction | SendMessageAction.sendMessageGamePlayAction | SendMessageAction.sendMessageRecordRoundAction | SendMessageAction.sendMessageUploadRoundAction;
|
|
|
|
|
|
|
|
export namespace SendMessageAction {
|
|
|
|
export type sendMessageTypingAction = {
|
|
|
|
_: 'sendMessageTypingAction'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type sendMessageCancelAction = {
|
|
|
|
_: 'sendMessageCancelAction'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type sendMessageRecordVideoAction = {
|
|
|
|
_: 'sendMessageRecordVideoAction'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type sendMessageUploadVideoAction = {
|
|
|
|
_: 'sendMessageUploadVideoAction',
|
|
|
|
progress: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type sendMessageRecordAudioAction = {
|
|
|
|
_: 'sendMessageRecordAudioAction'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type sendMessageUploadAudioAction = {
|
|
|
|
_: 'sendMessageUploadAudioAction',
|
|
|
|
progress: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type sendMessageUploadPhotoAction = {
|
|
|
|
_: 'sendMessageUploadPhotoAction',
|
|
|
|
progress: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type sendMessageUploadDocumentAction = {
|
|
|
|
_: 'sendMessageUploadDocumentAction',
|
|
|
|
progress: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type sendMessageGeoLocationAction = {
|
|
|
|
_: 'sendMessageGeoLocationAction'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type sendMessageChooseContactAction = {
|
|
|
|
_: 'sendMessageChooseContactAction'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type sendMessageGamePlayAction = {
|
|
|
|
_: 'sendMessageGamePlayAction'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type sendMessageRecordRoundAction = {
|
|
|
|
_: 'sendMessageRecordRoundAction'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type sendMessageUploadRoundAction = {
|
|
|
|
_: 'sendMessageUploadRoundAction',
|
|
|
|
progress: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/contacts.Found
|
|
|
|
*/
|
|
|
|
export type ContactsFound = ContactsFound.contactsFound;
|
|
|
|
|
|
|
|
export namespace ContactsFound {
|
|
|
|
export type contactsFound = {
|
|
|
|
_: 'contacts.found',
|
|
|
|
my_results: Array<Peer>,
|
|
|
|
results: Array<Peer>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputPrivacyKey
|
|
|
|
*/
|
|
|
|
export type InputPrivacyKey = InputPrivacyKey.inputPrivacyKeyStatusTimestamp | InputPrivacyKey.inputPrivacyKeyChatInvite | InputPrivacyKey.inputPrivacyKeyPhoneCall | InputPrivacyKey.inputPrivacyKeyPhoneP2P | InputPrivacyKey.inputPrivacyKeyForwards | InputPrivacyKey.inputPrivacyKeyProfilePhoto | InputPrivacyKey.inputPrivacyKeyPhoneNumber | InputPrivacyKey.inputPrivacyKeyAddedByPhone;
|
|
|
|
|
|
|
|
export namespace InputPrivacyKey {
|
|
|
|
export type inputPrivacyKeyStatusTimestamp = {
|
|
|
|
_: 'inputPrivacyKeyStatusTimestamp'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPrivacyKeyChatInvite = {
|
|
|
|
_: 'inputPrivacyKeyChatInvite'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPrivacyKeyPhoneCall = {
|
|
|
|
_: 'inputPrivacyKeyPhoneCall'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPrivacyKeyPhoneP2P = {
|
|
|
|
_: 'inputPrivacyKeyPhoneP2P'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPrivacyKeyForwards = {
|
|
|
|
_: 'inputPrivacyKeyForwards'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPrivacyKeyProfilePhoto = {
|
|
|
|
_: 'inputPrivacyKeyProfilePhoto'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPrivacyKeyPhoneNumber = {
|
|
|
|
_: 'inputPrivacyKeyPhoneNumber'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPrivacyKeyAddedByPhone = {
|
|
|
|
_: 'inputPrivacyKeyAddedByPhone'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PrivacyKey
|
|
|
|
*/
|
|
|
|
export type PrivacyKey = PrivacyKey.privacyKeyStatusTimestamp | PrivacyKey.privacyKeyChatInvite | PrivacyKey.privacyKeyPhoneCall | PrivacyKey.privacyKeyPhoneP2P | PrivacyKey.privacyKeyForwards | PrivacyKey.privacyKeyProfilePhoto | PrivacyKey.privacyKeyPhoneNumber | PrivacyKey.privacyKeyAddedByPhone;
|
|
|
|
|
|
|
|
export namespace PrivacyKey {
|
|
|
|
export type privacyKeyStatusTimestamp = {
|
|
|
|
_: 'privacyKeyStatusTimestamp'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type privacyKeyChatInvite = {
|
|
|
|
_: 'privacyKeyChatInvite'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type privacyKeyPhoneCall = {
|
|
|
|
_: 'privacyKeyPhoneCall'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type privacyKeyPhoneP2P = {
|
|
|
|
_: 'privacyKeyPhoneP2P'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type privacyKeyForwards = {
|
|
|
|
_: 'privacyKeyForwards'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type privacyKeyProfilePhoto = {
|
|
|
|
_: 'privacyKeyProfilePhoto'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type privacyKeyPhoneNumber = {
|
|
|
|
_: 'privacyKeyPhoneNumber'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type privacyKeyAddedByPhone = {
|
|
|
|
_: 'privacyKeyAddedByPhone'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputPrivacyRule
|
|
|
|
*/
|
|
|
|
export type InputPrivacyRule = InputPrivacyRule.inputPrivacyValueAllowContacts | InputPrivacyRule.inputPrivacyValueAllowAll | InputPrivacyRule.inputPrivacyValueAllowUsers | InputPrivacyRule.inputPrivacyValueDisallowContacts | InputPrivacyRule.inputPrivacyValueDisallowAll | InputPrivacyRule.inputPrivacyValueDisallowUsers | InputPrivacyRule.inputPrivacyValueAllowChatParticipants | InputPrivacyRule.inputPrivacyValueDisallowChatParticipants;
|
|
|
|
|
|
|
|
export namespace InputPrivacyRule {
|
|
|
|
export type inputPrivacyValueAllowContacts = {
|
|
|
|
_: 'inputPrivacyValueAllowContacts'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPrivacyValueAllowAll = {
|
|
|
|
_: 'inputPrivacyValueAllowAll'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPrivacyValueAllowUsers = {
|
|
|
|
_: 'inputPrivacyValueAllowUsers',
|
|
|
|
users: Array<InputUser>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPrivacyValueDisallowContacts = {
|
|
|
|
_: 'inputPrivacyValueDisallowContacts'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPrivacyValueDisallowAll = {
|
|
|
|
_: 'inputPrivacyValueDisallowAll'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPrivacyValueDisallowUsers = {
|
|
|
|
_: 'inputPrivacyValueDisallowUsers',
|
|
|
|
users: Array<InputUser>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPrivacyValueAllowChatParticipants = {
|
|
|
|
_: 'inputPrivacyValueAllowChatParticipants',
|
|
|
|
chats: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPrivacyValueDisallowChatParticipants = {
|
|
|
|
_: 'inputPrivacyValueDisallowChatParticipants',
|
|
|
|
chats: Array<number>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PrivacyRule
|
|
|
|
*/
|
|
|
|
export type PrivacyRule = PrivacyRule.privacyValueAllowContacts | PrivacyRule.privacyValueAllowAll | PrivacyRule.privacyValueAllowUsers | PrivacyRule.privacyValueDisallowContacts | PrivacyRule.privacyValueDisallowAll | PrivacyRule.privacyValueDisallowUsers | PrivacyRule.privacyValueAllowChatParticipants | PrivacyRule.privacyValueDisallowChatParticipants;
|
|
|
|
|
|
|
|
export namespace PrivacyRule {
|
|
|
|
export type privacyValueAllowContacts = {
|
|
|
|
_: 'privacyValueAllowContacts'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type privacyValueAllowAll = {
|
|
|
|
_: 'privacyValueAllowAll'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type privacyValueAllowUsers = {
|
|
|
|
_: 'privacyValueAllowUsers',
|
|
|
|
users: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type privacyValueDisallowContacts = {
|
|
|
|
_: 'privacyValueDisallowContacts'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type privacyValueDisallowAll = {
|
|
|
|
_: 'privacyValueDisallowAll'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type privacyValueDisallowUsers = {
|
|
|
|
_: 'privacyValueDisallowUsers',
|
|
|
|
users: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type privacyValueAllowChatParticipants = {
|
|
|
|
_: 'privacyValueAllowChatParticipants',
|
|
|
|
chats: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type privacyValueDisallowChatParticipants = {
|
|
|
|
_: 'privacyValueDisallowChatParticipants',
|
|
|
|
chats: Array<number>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/account.PrivacyRules
|
|
|
|
*/
|
|
|
|
export type AccountPrivacyRules = AccountPrivacyRules.accountPrivacyRules;
|
|
|
|
|
|
|
|
export namespace AccountPrivacyRules {
|
|
|
|
export type accountPrivacyRules = {
|
|
|
|
_: 'account.privacyRules',
|
|
|
|
rules: Array<PrivacyRule>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/AccountDaysTTL
|
|
|
|
*/
|
|
|
|
export type AccountDaysTTL = AccountDaysTTL.accountDaysTTL;
|
|
|
|
|
|
|
|
export namespace AccountDaysTTL {
|
|
|
|
export type accountDaysTTL = {
|
|
|
|
_: 'accountDaysTTL',
|
|
|
|
days: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/DocumentAttribute
|
|
|
|
*/
|
|
|
|
export type DocumentAttribute = DocumentAttribute.documentAttributeImageSize | DocumentAttribute.documentAttributeAnimated | DocumentAttribute.documentAttributeSticker | DocumentAttribute.documentAttributeVideo | DocumentAttribute.documentAttributeAudio | DocumentAttribute.documentAttributeFilename | DocumentAttribute.documentAttributeHasStickers;
|
|
|
|
|
|
|
|
export namespace DocumentAttribute {
|
|
|
|
export type documentAttributeImageSize = {
|
|
|
|
_: 'documentAttributeImageSize',
|
|
|
|
w: number,
|
|
|
|
h: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type documentAttributeAnimated = {
|
|
|
|
_: 'documentAttributeAnimated'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type documentAttributeSticker = {
|
|
|
|
_: 'documentAttributeSticker',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
mask?: true,
|
|
|
|
}>,
|
|
|
|
alt: string,
|
|
|
|
stickerset: InputStickerSet,
|
|
|
|
mask_coords?: MaskCoords
|
|
|
|
};
|
|
|
|
|
|
|
|
export type documentAttributeVideo = {
|
|
|
|
_: 'documentAttributeVideo',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
round_message?: true,
|
|
|
|
supports_streaming?: true,
|
|
|
|
}>,
|
|
|
|
duration: number,
|
|
|
|
w: number,
|
|
|
|
h: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type documentAttributeAudio = {
|
|
|
|
_: 'documentAttributeAudio',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
voice?: true,
|
|
|
|
}>,
|
|
|
|
duration: number,
|
|
|
|
title?: string,
|
|
|
|
performer?: string,
|
|
|
|
waveform?: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type documentAttributeFilename = {
|
|
|
|
_: 'documentAttributeFilename',
|
|
|
|
file_name: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type documentAttributeHasStickers = {
|
|
|
|
_: 'documentAttributeHasStickers'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.Stickers
|
|
|
|
*/
|
|
|
|
export type MessagesStickers = MessagesStickers.messagesStickersNotModified | MessagesStickers.messagesStickers;
|
|
|
|
|
|
|
|
export namespace MessagesStickers {
|
|
|
|
export type messagesStickersNotModified = {
|
|
|
|
_: 'messages.stickersNotModified'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messagesStickers = {
|
|
|
|
_: 'messages.stickers',
|
|
|
|
hash: number,
|
|
|
|
stickers: Array<Document>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/StickerPack
|
|
|
|
*/
|
|
|
|
export type StickerPack = StickerPack.stickerPack;
|
|
|
|
|
|
|
|
export namespace StickerPack {
|
|
|
|
export type stickerPack = {
|
|
|
|
_: 'stickerPack',
|
|
|
|
emoticon: string,
|
|
|
|
documents: Array<string>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.AllStickers
|
|
|
|
*/
|
|
|
|
export type MessagesAllStickers = MessagesAllStickers.messagesAllStickersNotModified | MessagesAllStickers.messagesAllStickers;
|
|
|
|
|
|
|
|
export namespace MessagesAllStickers {
|
|
|
|
export type messagesAllStickersNotModified = {
|
|
|
|
_: 'messages.allStickersNotModified'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messagesAllStickers = {
|
|
|
|
_: 'messages.allStickers',
|
|
|
|
hash: number,
|
|
|
|
sets: Array<StickerSet>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.AffectedMessages
|
|
|
|
*/
|
|
|
|
export type MessagesAffectedMessages = MessagesAffectedMessages.messagesAffectedMessages;
|
|
|
|
|
|
|
|
export namespace MessagesAffectedMessages {
|
|
|
|
export type messagesAffectedMessages = {
|
|
|
|
_: 'messages.affectedMessages',
|
|
|
|
pts: number,
|
|
|
|
pts_count: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/WebPage
|
|
|
|
*/
|
|
|
|
export type WebPage = WebPage.webPageEmpty | WebPage.webPagePending | WebPage.webPage | WebPage.webPageNotModified;
|
|
|
|
|
|
|
|
export namespace WebPage {
|
|
|
|
export type webPageEmpty = {
|
|
|
|
_: 'webPageEmpty',
|
|
|
|
id: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type webPagePending = {
|
|
|
|
_: 'webPagePending',
|
|
|
|
id: string,
|
|
|
|
date: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type webPage = {
|
|
|
|
_: 'webPage',
|
|
|
|
flags?: number,
|
|
|
|
id: string,
|
|
|
|
url: string,
|
|
|
|
display_url: string,
|
|
|
|
hash: number,
|
|
|
|
type?: string,
|
|
|
|
site_name?: string,
|
|
|
|
title?: string,
|
|
|
|
description?: string,
|
|
|
|
photo?: Photo,
|
|
|
|
embed_url?: string,
|
|
|
|
embed_type?: string,
|
|
|
|
embed_width?: number,
|
|
|
|
embed_height?: number,
|
|
|
|
duration?: number,
|
|
|
|
author?: string,
|
|
|
|
document?: Document,
|
|
|
|
cached_page?: Page,
|
|
|
|
attributes?: Array<WebPageAttribute>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type webPageNotModified = {
|
|
|
|
_: 'webPageNotModified',
|
|
|
|
flags?: number,
|
|
|
|
cached_page_views?: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Authorization
|
|
|
|
*/
|
|
|
|
export type Authorization = Authorization.authorization;
|
|
|
|
|
|
|
|
export namespace Authorization {
|
|
|
|
export type authorization = {
|
|
|
|
_: 'authorization',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
current?: true,
|
|
|
|
official_app?: true,
|
|
|
|
password_pending?: true,
|
|
|
|
}>,
|
|
|
|
hash: string,
|
|
|
|
device_model: string,
|
|
|
|
platform: string,
|
|
|
|
system_version: string,
|
|
|
|
api_id: number,
|
|
|
|
app_name: string,
|
|
|
|
app_version: string,
|
|
|
|
date_created: number,
|
|
|
|
date_active: number,
|
|
|
|
ip: string,
|
|
|
|
country: string,
|
|
|
|
region: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/account.Authorizations
|
|
|
|
*/
|
|
|
|
export type AccountAuthorizations = AccountAuthorizations.accountAuthorizations;
|
|
|
|
|
|
|
|
export namespace AccountAuthorizations {
|
|
|
|
export type accountAuthorizations = {
|
|
|
|
_: 'account.authorizations',
|
|
|
|
authorizations: Array<Authorization>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/account.Password
|
|
|
|
*/
|
|
|
|
export type AccountPassword = AccountPassword.accountPassword;
|
|
|
|
|
|
|
|
export namespace AccountPassword {
|
|
|
|
export type accountPassword = {
|
|
|
|
_: 'account.password',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
has_recovery?: true,
|
|
|
|
has_secure_values?: true,
|
|
|
|
has_password?: true,
|
|
|
|
}>,
|
|
|
|
current_algo?: PasswordKdfAlgo,
|
|
|
|
srp_B?: Uint8Array | number[],
|
|
|
|
srp_id?: string,
|
|
|
|
hint?: string,
|
|
|
|
email_unconfirmed_pattern?: string,
|
|
|
|
new_algo: PasswordKdfAlgo,
|
|
|
|
new_secure_algo: SecurePasswordKdfAlgo,
|
|
|
|
secure_random: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/account.PasswordSettings
|
|
|
|
*/
|
|
|
|
export type AccountPasswordSettings = AccountPasswordSettings.accountPasswordSettings;
|
|
|
|
|
|
|
|
export namespace AccountPasswordSettings {
|
|
|
|
export type accountPasswordSettings = {
|
|
|
|
_: 'account.passwordSettings',
|
|
|
|
flags?: number,
|
|
|
|
email?: string,
|
|
|
|
secure_settings?: SecureSecretSettings
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/account.PasswordInputSettings
|
|
|
|
*/
|
|
|
|
export type AccountPasswordInputSettings = AccountPasswordInputSettings.accountPasswordInputSettings;
|
|
|
|
|
|
|
|
export namespace AccountPasswordInputSettings {
|
|
|
|
export type accountPasswordInputSettings = {
|
|
|
|
_: 'account.passwordInputSettings',
|
|
|
|
flags?: number,
|
|
|
|
new_algo?: PasswordKdfAlgo,
|
|
|
|
new_password_hash?: Uint8Array | number[],
|
|
|
|
hint?: string,
|
|
|
|
email?: string,
|
|
|
|
new_secure_settings?: SecureSecretSettings
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/auth.PasswordRecovery
|
|
|
|
*/
|
|
|
|
export type AuthPasswordRecovery = AuthPasswordRecovery.authPasswordRecovery;
|
|
|
|
|
|
|
|
export namespace AuthPasswordRecovery {
|
|
|
|
export type authPasswordRecovery = {
|
|
|
|
_: 'auth.passwordRecovery',
|
|
|
|
email_pattern: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ReceivedNotifyMessage
|
|
|
|
*/
|
|
|
|
export type ReceivedNotifyMessage = ReceivedNotifyMessage.receivedNotifyMessage;
|
|
|
|
|
|
|
|
export namespace ReceivedNotifyMessage {
|
|
|
|
export type receivedNotifyMessage = {
|
|
|
|
_: 'receivedNotifyMessage',
|
|
|
|
id: number,
|
|
|
|
flags?: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ExportedChatInvite
|
|
|
|
*/
|
|
|
|
export type ExportedChatInvite = ExportedChatInvite.chatInviteEmpty | ExportedChatInvite.chatInviteExported;
|
|
|
|
|
|
|
|
export namespace ExportedChatInvite {
|
|
|
|
export type chatInviteEmpty = {
|
|
|
|
_: 'chatInviteEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type chatInviteExported = {
|
|
|
|
_: 'chatInviteExported',
|
|
|
|
link: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ChatInvite
|
|
|
|
*/
|
|
|
|
export type ChatInvite = ChatInvite.chatInviteAlready | ChatInvite.chatInvite;
|
|
|
|
|
|
|
|
export namespace ChatInvite {
|
|
|
|
export type chatInviteAlready = {
|
|
|
|
_: 'chatInviteAlready',
|
|
|
|
chat: Chat
|
|
|
|
};
|
|
|
|
|
|
|
|
export type chatInvite = {
|
|
|
|
_: 'chatInvite',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
channel?: true,
|
|
|
|
broadcast?: true,
|
|
|
|
public?: true,
|
|
|
|
megagroup?: true,
|
|
|
|
}>,
|
|
|
|
title: string,
|
|
|
|
photo: Photo,
|
|
|
|
participants_count: number,
|
|
|
|
participants?: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputStickerSet
|
|
|
|
*/
|
|
|
|
export type InputStickerSet = InputStickerSet.inputStickerSetEmpty | InputStickerSet.inputStickerSetID | InputStickerSet.inputStickerSetShortName | InputStickerSet.inputStickerSetAnimatedEmoji | InputStickerSet.inputStickerSetDice;
|
|
|
|
|
|
|
|
export namespace InputStickerSet {
|
|
|
|
export type inputStickerSetEmpty = {
|
|
|
|
_: 'inputStickerSetEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputStickerSetID = {
|
|
|
|
_: 'inputStickerSetID',
|
|
|
|
id: string,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputStickerSetShortName = {
|
|
|
|
_: 'inputStickerSetShortName',
|
|
|
|
short_name: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputStickerSetAnimatedEmoji = {
|
|
|
|
_: 'inputStickerSetAnimatedEmoji'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputStickerSetDice = {
|
|
|
|
_: 'inputStickerSetDice',
|
|
|
|
emoticon: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/StickerSet
|
|
|
|
*/
|
|
|
|
export type StickerSet = StickerSet.stickerSet;
|
|
|
|
|
|
|
|
export namespace StickerSet {
|
|
|
|
export type stickerSet = {
|
|
|
|
_: 'stickerSet',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
archived?: true,
|
|
|
|
official?: true,
|
|
|
|
masks?: true,
|
|
|
|
animated?: true,
|
|
|
|
}>,
|
|
|
|
installed_date?: number,
|
|
|
|
id: string,
|
|
|
|
access_hash: string,
|
|
|
|
title: string,
|
|
|
|
short_name: string,
|
|
|
|
thumb?: PhotoSize,
|
|
|
|
thumb_dc_id?: number,
|
|
|
|
count: number,
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.StickerSet
|
|
|
|
*/
|
|
|
|
export type MessagesStickerSet = MessagesStickerSet.messagesStickerSet;
|
|
|
|
|
|
|
|
export namespace MessagesStickerSet {
|
|
|
|
export type messagesStickerSet = {
|
|
|
|
_: 'messages.stickerSet',
|
|
|
|
set: StickerSet,
|
|
|
|
packs: Array<StickerPack>,
|
|
|
|
documents: Array<Document>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/BotCommand
|
|
|
|
*/
|
|
|
|
export type BotCommand = BotCommand.botCommand;
|
|
|
|
|
|
|
|
export namespace BotCommand {
|
|
|
|
export type botCommand = {
|
|
|
|
_: 'botCommand',
|
|
|
|
command: string,
|
|
|
|
description: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/BotInfo
|
|
|
|
*/
|
|
|
|
export type BotInfo = BotInfo.botInfo;
|
|
|
|
|
|
|
|
export namespace BotInfo {
|
|
|
|
export type botInfo = {
|
|
|
|
_: 'botInfo',
|
|
|
|
user_id: number,
|
|
|
|
description: string,
|
|
|
|
commands: Array<BotCommand>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/KeyboardButton
|
|
|
|
*/
|
|
|
|
export type KeyboardButton = KeyboardButton.keyboardButton | KeyboardButton.keyboardButtonUrl | KeyboardButton.keyboardButtonCallback | KeyboardButton.keyboardButtonRequestPhone | KeyboardButton.keyboardButtonRequestGeoLocation | KeyboardButton.keyboardButtonSwitchInline | KeyboardButton.keyboardButtonGame | KeyboardButton.keyboardButtonBuy | KeyboardButton.keyboardButtonUrlAuth | KeyboardButton.inputKeyboardButtonUrlAuth | KeyboardButton.keyboardButtonRequestPoll;
|
|
|
|
|
|
|
|
export namespace KeyboardButton {
|
|
|
|
export type keyboardButton = {
|
|
|
|
_: 'keyboardButton',
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type keyboardButtonUrl = {
|
|
|
|
_: 'keyboardButtonUrl',
|
|
|
|
text: string,
|
|
|
|
url: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type keyboardButtonCallback = {
|
|
|
|
_: 'keyboardButtonCallback',
|
|
|
|
text: string,
|
|
|
|
data: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type keyboardButtonRequestPhone = {
|
|
|
|
_: 'keyboardButtonRequestPhone',
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type keyboardButtonRequestGeoLocation = {
|
|
|
|
_: 'keyboardButtonRequestGeoLocation',
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type keyboardButtonSwitchInline = {
|
|
|
|
_: 'keyboardButtonSwitchInline',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
same_peer?: true,
|
|
|
|
}>,
|
|
|
|
text: string,
|
|
|
|
query: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type keyboardButtonGame = {
|
|
|
|
_: 'keyboardButtonGame',
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type keyboardButtonBuy = {
|
|
|
|
_: 'keyboardButtonBuy',
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type keyboardButtonUrlAuth = {
|
|
|
|
_: 'keyboardButtonUrlAuth',
|
|
|
|
flags?: number,
|
|
|
|
text: string,
|
|
|
|
fwd_text?: string,
|
|
|
|
url: string,
|
|
|
|
button_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputKeyboardButtonUrlAuth = {
|
|
|
|
_: 'inputKeyboardButtonUrlAuth',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
request_write_access?: true,
|
|
|
|
}>,
|
|
|
|
text: string,
|
|
|
|
fwd_text?: string,
|
|
|
|
url: string,
|
|
|
|
bot: InputUser
|
|
|
|
};
|
|
|
|
|
|
|
|
export type keyboardButtonRequestPoll = {
|
|
|
|
_: 'keyboardButtonRequestPoll',
|
|
|
|
flags?: number,
|
|
|
|
quiz?: boolean,
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/KeyboardButtonRow
|
|
|
|
*/
|
|
|
|
export type KeyboardButtonRow = KeyboardButtonRow.keyboardButtonRow;
|
|
|
|
|
|
|
|
export namespace KeyboardButtonRow {
|
|
|
|
export type keyboardButtonRow = {
|
|
|
|
_: 'keyboardButtonRow',
|
|
|
|
buttons: Array<KeyboardButton>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ReplyMarkup
|
|
|
|
*/
|
|
|
|
export type ReplyMarkup = ReplyMarkup.replyKeyboardHide | ReplyMarkup.replyKeyboardForceReply | ReplyMarkup.replyKeyboardMarkup | ReplyMarkup.replyInlineMarkup;
|
|
|
|
|
|
|
|
export namespace ReplyMarkup {
|
|
|
|
export type replyKeyboardHide = {
|
|
|
|
_: 'replyKeyboardHide',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
selective?: true,
|
|
|
|
}>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type replyKeyboardForceReply = {
|
|
|
|
_: 'replyKeyboardForceReply',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
single_use?: true,
|
|
|
|
selective?: true,
|
|
|
|
}>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type replyKeyboardMarkup = {
|
|
|
|
_: 'replyKeyboardMarkup',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
resize?: true,
|
|
|
|
single_use?: true,
|
|
|
|
selective?: true,
|
|
|
|
}>,
|
|
|
|
rows: Array<KeyboardButtonRow>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type replyInlineMarkup = {
|
|
|
|
_: 'replyInlineMarkup',
|
|
|
|
rows: Array<KeyboardButtonRow>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/MessageEntity
|
|
|
|
*/
|
|
|
|
export type MessageEntity = MessageEntity.messageEntityUnknown | MessageEntity.messageEntityMention | MessageEntity.messageEntityHashtag | MessageEntity.messageEntityBotCommand | MessageEntity.messageEntityUrl | MessageEntity.messageEntityEmail | MessageEntity.messageEntityBold | MessageEntity.messageEntityItalic | MessageEntity.messageEntityCode | MessageEntity.messageEntityPre | MessageEntity.messageEntityTextUrl | MessageEntity.messageEntityMentionName | MessageEntity.inputMessageEntityMentionName | MessageEntity.messageEntityPhone | MessageEntity.messageEntityCashtag | MessageEntity.messageEntityUnderline | MessageEntity.messageEntityStrike | MessageEntity.messageEntityBlockquote | MessageEntity.messageEntityBankCard;
|
|
|
|
|
|
|
|
export namespace MessageEntity {
|
|
|
|
export type messageEntityUnknown = {
|
|
|
|
_: 'messageEntityUnknown',
|
|
|
|
offset: number,
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityMention = {
|
|
|
|
_: 'messageEntityMention',
|
|
|
|
offset: number,
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityHashtag = {
|
|
|
|
_: 'messageEntityHashtag',
|
|
|
|
offset: number,
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityBotCommand = {
|
|
|
|
_: 'messageEntityBotCommand',
|
|
|
|
offset: number,
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityUrl = {
|
|
|
|
_: 'messageEntityUrl',
|
|
|
|
offset: number,
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityEmail = {
|
|
|
|
_: 'messageEntityEmail',
|
|
|
|
offset: number,
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityBold = {
|
|
|
|
_: 'messageEntityBold',
|
|
|
|
offset: number,
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityItalic = {
|
|
|
|
_: 'messageEntityItalic',
|
|
|
|
offset: number,
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityCode = {
|
|
|
|
_: 'messageEntityCode',
|
|
|
|
offset: number,
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityPre = {
|
|
|
|
_: 'messageEntityPre',
|
|
|
|
offset: number,
|
|
|
|
length: number,
|
|
|
|
language: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityTextUrl = {
|
|
|
|
_: 'messageEntityTextUrl',
|
|
|
|
offset: number,
|
|
|
|
length: number,
|
|
|
|
url: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityMentionName = {
|
|
|
|
_: 'messageEntityMentionName',
|
|
|
|
offset: number,
|
|
|
|
length: number,
|
|
|
|
user_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessageEntityMentionName = {
|
|
|
|
_: 'inputMessageEntityMentionName',
|
|
|
|
offset: number,
|
|
|
|
length: number,
|
|
|
|
user_id: InputUser
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityPhone = {
|
|
|
|
_: 'messageEntityPhone',
|
|
|
|
offset: number,
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityCashtag = {
|
|
|
|
_: 'messageEntityCashtag',
|
|
|
|
offset: number,
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityUnderline = {
|
|
|
|
_: 'messageEntityUnderline',
|
|
|
|
offset: number,
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityStrike = {
|
|
|
|
_: 'messageEntityStrike',
|
|
|
|
offset: number,
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityBlockquote = {
|
|
|
|
_: 'messageEntityBlockquote',
|
|
|
|
offset: number,
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageEntityBankCard = {
|
|
|
|
_: 'messageEntityBankCard',
|
|
|
|
offset: number,
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputChannel
|
|
|
|
*/
|
|
|
|
export type InputChannel = InputChannel.inputChannelEmpty | InputChannel.inputChannel | InputChannel.inputChannelFromMessage;
|
|
|
|
|
|
|
|
export namespace InputChannel {
|
|
|
|
export type inputChannelEmpty = {
|
|
|
|
_: 'inputChannelEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputChannel = {
|
|
|
|
_: 'inputChannel',
|
|
|
|
channel_id: number,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputChannelFromMessage = {
|
|
|
|
_: 'inputChannelFromMessage',
|
|
|
|
peer: InputPeer,
|
|
|
|
msg_id: number,
|
|
|
|
channel_id: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/contacts.ResolvedPeer
|
|
|
|
*/
|
|
|
|
export type ContactsResolvedPeer = ContactsResolvedPeer.contactsResolvedPeer;
|
|
|
|
|
|
|
|
export namespace ContactsResolvedPeer {
|
|
|
|
export type contactsResolvedPeer = {
|
|
|
|
_: 'contacts.resolvedPeer',
|
|
|
|
peer: Peer,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/MessageRange
|
|
|
|
*/
|
|
|
|
export type MessageRange = MessageRange.messageRange;
|
|
|
|
|
|
|
|
export namespace MessageRange {
|
|
|
|
export type messageRange = {
|
|
|
|
_: 'messageRange',
|
|
|
|
min_id: number,
|
|
|
|
max_id: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/updates.ChannelDifference
|
|
|
|
*/
|
|
|
|
export type UpdatesChannelDifference = UpdatesChannelDifference.updatesChannelDifferenceEmpty | UpdatesChannelDifference.updatesChannelDifferenceTooLong | UpdatesChannelDifference.updatesChannelDifference;
|
|
|
|
|
|
|
|
export namespace UpdatesChannelDifference {
|
|
|
|
export type updatesChannelDifferenceEmpty = {
|
|
|
|
_: 'updates.channelDifferenceEmpty',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
final?: true,
|
|
|
|
}>,
|
|
|
|
pts: number,
|
|
|
|
timeout?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updatesChannelDifferenceTooLong = {
|
|
|
|
_: 'updates.channelDifferenceTooLong',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
final?: true,
|
|
|
|
}>,
|
|
|
|
timeout?: number,
|
|
|
|
dialog: Dialog,
|
|
|
|
messages: Array<Message>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type updatesChannelDifference = {
|
|
|
|
_: 'updates.channelDifference',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
final?: true,
|
|
|
|
}>,
|
|
|
|
pts: number,
|
|
|
|
timeout?: number,
|
|
|
|
new_messages: Array<Message>,
|
|
|
|
other_updates: Array<Update>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ChannelMessagesFilter
|
|
|
|
*/
|
|
|
|
export type ChannelMessagesFilter = ChannelMessagesFilter.channelMessagesFilterEmpty | ChannelMessagesFilter.channelMessagesFilter;
|
|
|
|
|
|
|
|
export namespace ChannelMessagesFilter {
|
|
|
|
export type channelMessagesFilterEmpty = {
|
|
|
|
_: 'channelMessagesFilterEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelMessagesFilter = {
|
|
|
|
_: 'channelMessagesFilter',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
exclude_new_messages?: true,
|
|
|
|
}>,
|
|
|
|
ranges: Array<MessageRange>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ChannelParticipant
|
|
|
|
*/
|
|
|
|
export type ChannelParticipant = ChannelParticipant.channelParticipant | ChannelParticipant.channelParticipantSelf | ChannelParticipant.channelParticipantCreator | ChannelParticipant.channelParticipantAdmin | ChannelParticipant.channelParticipantBanned;
|
|
|
|
|
|
|
|
export namespace ChannelParticipant {
|
|
|
|
export type channelParticipant = {
|
|
|
|
_: 'channelParticipant',
|
|
|
|
user_id: number,
|
|
|
|
date: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelParticipantSelf = {
|
|
|
|
_: 'channelParticipantSelf',
|
|
|
|
user_id: number,
|
|
|
|
inviter_id: number,
|
|
|
|
date: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelParticipantCreator = {
|
|
|
|
_: 'channelParticipantCreator',
|
|
|
|
flags?: number,
|
|
|
|
user_id: number,
|
|
|
|
rank?: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelParticipantAdmin = {
|
|
|
|
_: 'channelParticipantAdmin',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
can_edit?: true,
|
|
|
|
self?: true,
|
|
|
|
}>,
|
|
|
|
user_id: number,
|
|
|
|
inviter_id?: number,
|
|
|
|
promoted_by: number,
|
|
|
|
date: number,
|
|
|
|
admin_rights: ChatAdminRights,
|
|
|
|
rank?: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelParticipantBanned = {
|
|
|
|
_: 'channelParticipantBanned',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
left?: true,
|
|
|
|
}>,
|
|
|
|
user_id: number,
|
|
|
|
kicked_by: number,
|
|
|
|
date: number,
|
|
|
|
banned_rights: ChatBannedRights
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ChannelParticipantsFilter
|
|
|
|
*/
|
|
|
|
export type ChannelParticipantsFilter = ChannelParticipantsFilter.channelParticipantsRecent | ChannelParticipantsFilter.channelParticipantsAdmins | ChannelParticipantsFilter.channelParticipantsKicked | ChannelParticipantsFilter.channelParticipantsBots | ChannelParticipantsFilter.channelParticipantsBanned | ChannelParticipantsFilter.channelParticipantsSearch | ChannelParticipantsFilter.channelParticipantsContacts;
|
|
|
|
|
|
|
|
export namespace ChannelParticipantsFilter {
|
|
|
|
export type channelParticipantsRecent = {
|
|
|
|
_: 'channelParticipantsRecent'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelParticipantsAdmins = {
|
|
|
|
_: 'channelParticipantsAdmins'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelParticipantsKicked = {
|
|
|
|
_: 'channelParticipantsKicked',
|
|
|
|
q: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelParticipantsBots = {
|
|
|
|
_: 'channelParticipantsBots'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelParticipantsBanned = {
|
|
|
|
_: 'channelParticipantsBanned',
|
|
|
|
q: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelParticipantsSearch = {
|
|
|
|
_: 'channelParticipantsSearch',
|
|
|
|
q: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelParticipantsContacts = {
|
|
|
|
_: 'channelParticipantsContacts',
|
|
|
|
q: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/channels.ChannelParticipants
|
|
|
|
*/
|
|
|
|
export type ChannelsChannelParticipants = ChannelsChannelParticipants.channelsChannelParticipants | ChannelsChannelParticipants.channelsChannelParticipantsNotModified;
|
|
|
|
|
|
|
|
export namespace ChannelsChannelParticipants {
|
|
|
|
export type channelsChannelParticipants = {
|
|
|
|
_: 'channels.channelParticipants',
|
|
|
|
count: number,
|
|
|
|
participants: Array<ChannelParticipant>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelsChannelParticipantsNotModified = {
|
|
|
|
_: 'channels.channelParticipantsNotModified'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/channels.ChannelParticipant
|
|
|
|
*/
|
|
|
|
export type ChannelsChannelParticipant = ChannelsChannelParticipant.channelsChannelParticipant;
|
|
|
|
|
|
|
|
export namespace ChannelsChannelParticipant {
|
|
|
|
export type channelsChannelParticipant = {
|
|
|
|
_: 'channels.channelParticipant',
|
|
|
|
participant: ChannelParticipant,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/help.TermsOfService
|
|
|
|
*/
|
|
|
|
export type HelpTermsOfService = HelpTermsOfService.helpTermsOfService;
|
|
|
|
|
|
|
|
export namespace HelpTermsOfService {
|
|
|
|
export type helpTermsOfService = {
|
|
|
|
_: 'help.termsOfService',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
popup?: true,
|
|
|
|
}>,
|
|
|
|
id: DataJSON,
|
|
|
|
text: string,
|
|
|
|
entities: Array<MessageEntity>,
|
|
|
|
min_age_confirm?: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/FoundGif
|
|
|
|
*/
|
|
|
|
export type FoundGif = FoundGif.foundGif | FoundGif.foundGifCached;
|
|
|
|
|
|
|
|
export namespace FoundGif {
|
|
|
|
export type foundGif = {
|
|
|
|
_: 'foundGif',
|
|
|
|
url: string,
|
|
|
|
thumb_url: string,
|
|
|
|
content_url: string,
|
|
|
|
content_type: string,
|
|
|
|
w: number,
|
|
|
|
h: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type foundGifCached = {
|
|
|
|
_: 'foundGifCached',
|
|
|
|
url: string,
|
|
|
|
photo: Photo,
|
|
|
|
document: Document
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.FoundGifs
|
|
|
|
*/
|
|
|
|
export type MessagesFoundGifs = MessagesFoundGifs.messagesFoundGifs;
|
|
|
|
|
|
|
|
export namespace MessagesFoundGifs {
|
|
|
|
export type messagesFoundGifs = {
|
|
|
|
_: 'messages.foundGifs',
|
|
|
|
next_offset: number,
|
|
|
|
results: Array<FoundGif>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.SavedGifs
|
|
|
|
*/
|
|
|
|
export type MessagesSavedGifs = MessagesSavedGifs.messagesSavedGifsNotModified | MessagesSavedGifs.messagesSavedGifs;
|
|
|
|
|
|
|
|
export namespace MessagesSavedGifs {
|
|
|
|
export type messagesSavedGifsNotModified = {
|
|
|
|
_: 'messages.savedGifsNotModified'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messagesSavedGifs = {
|
|
|
|
_: 'messages.savedGifs',
|
|
|
|
hash: number,
|
|
|
|
gifs: Array<Document>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputBotInlineMessage
|
|
|
|
*/
|
|
|
|
export type InputBotInlineMessage = InputBotInlineMessage.inputBotInlineMessageMediaAuto | InputBotInlineMessage.inputBotInlineMessageText | InputBotInlineMessage.inputBotInlineMessageMediaGeo | InputBotInlineMessage.inputBotInlineMessageMediaVenue | InputBotInlineMessage.inputBotInlineMessageMediaContact | InputBotInlineMessage.inputBotInlineMessageGame;
|
|
|
|
|
|
|
|
export namespace InputBotInlineMessage {
|
|
|
|
export type inputBotInlineMessageMediaAuto = {
|
|
|
|
_: 'inputBotInlineMessageMediaAuto',
|
|
|
|
flags?: number,
|
|
|
|
message: string,
|
|
|
|
entities?: Array<MessageEntity>,
|
|
|
|
reply_markup?: ReplyMarkup
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputBotInlineMessageText = {
|
|
|
|
_: 'inputBotInlineMessageText',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
no_webpage?: true,
|
|
|
|
}>,
|
|
|
|
message: string,
|
|
|
|
entities?: Array<MessageEntity>,
|
|
|
|
reply_markup?: ReplyMarkup
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputBotInlineMessageMediaGeo = {
|
|
|
|
_: 'inputBotInlineMessageMediaGeo',
|
|
|
|
flags?: number,
|
|
|
|
geo_point: InputGeoPoint,
|
|
|
|
period: number,
|
|
|
|
reply_markup?: ReplyMarkup
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputBotInlineMessageMediaVenue = {
|
|
|
|
_: 'inputBotInlineMessageMediaVenue',
|
|
|
|
flags?: number,
|
|
|
|
geo_point: InputGeoPoint,
|
|
|
|
title: string,
|
|
|
|
address: string,
|
|
|
|
provider: string,
|
|
|
|
venue_id: string,
|
|
|
|
venue_type: string,
|
|
|
|
reply_markup?: ReplyMarkup
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputBotInlineMessageMediaContact = {
|
|
|
|
_: 'inputBotInlineMessageMediaContact',
|
|
|
|
flags?: number,
|
|
|
|
phone_number: string,
|
|
|
|
first_name: string,
|
|
|
|
last_name: string,
|
|
|
|
vcard: string,
|
|
|
|
reply_markup?: ReplyMarkup
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputBotInlineMessageGame = {
|
|
|
|
_: 'inputBotInlineMessageGame',
|
|
|
|
flags?: number,
|
|
|
|
reply_markup?: ReplyMarkup
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputBotInlineResult
|
|
|
|
*/
|
|
|
|
export type InputBotInlineResult = InputBotInlineResult.inputBotInlineResult | InputBotInlineResult.inputBotInlineResultPhoto | InputBotInlineResult.inputBotInlineResultDocument | InputBotInlineResult.inputBotInlineResultGame;
|
|
|
|
|
|
|
|
export namespace InputBotInlineResult {
|
|
|
|
export type inputBotInlineResult = {
|
|
|
|
_: 'inputBotInlineResult',
|
|
|
|
flags?: number,
|
|
|
|
id: string,
|
|
|
|
type: string,
|
|
|
|
title?: string,
|
|
|
|
description?: string,
|
|
|
|
url?: string,
|
|
|
|
thumb?: InputWebDocument,
|
|
|
|
content?: InputWebDocument,
|
|
|
|
send_message: InputBotInlineMessage
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputBotInlineResultPhoto = {
|
|
|
|
_: 'inputBotInlineResultPhoto',
|
|
|
|
id: string,
|
|
|
|
type: string,
|
|
|
|
photo: InputPhoto,
|
|
|
|
send_message: InputBotInlineMessage
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputBotInlineResultDocument = {
|
|
|
|
_: 'inputBotInlineResultDocument',
|
|
|
|
flags?: number,
|
|
|
|
id: string,
|
|
|
|
type: string,
|
|
|
|
title?: string,
|
|
|
|
description?: string,
|
|
|
|
document: InputDocument,
|
|
|
|
send_message: InputBotInlineMessage
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputBotInlineResultGame = {
|
|
|
|
_: 'inputBotInlineResultGame',
|
|
|
|
id: string,
|
|
|
|
short_name: string,
|
|
|
|
send_message: InputBotInlineMessage
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/BotInlineMessage
|
|
|
|
*/
|
|
|
|
export type BotInlineMessage = BotInlineMessage.botInlineMessageMediaAuto | BotInlineMessage.botInlineMessageText | BotInlineMessage.botInlineMessageMediaGeo | BotInlineMessage.botInlineMessageMediaVenue | BotInlineMessage.botInlineMessageMediaContact;
|
|
|
|
|
|
|
|
export namespace BotInlineMessage {
|
|
|
|
export type botInlineMessageMediaAuto = {
|
|
|
|
_: 'botInlineMessageMediaAuto',
|
|
|
|
flags?: number,
|
|
|
|
message: string,
|
|
|
|
entities?: Array<MessageEntity>,
|
|
|
|
reply_markup?: ReplyMarkup
|
|
|
|
};
|
|
|
|
|
|
|
|
export type botInlineMessageText = {
|
|
|
|
_: 'botInlineMessageText',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
no_webpage?: true,
|
|
|
|
}>,
|
|
|
|
message: string,
|
|
|
|
entities?: Array<MessageEntity>,
|
|
|
|
reply_markup?: ReplyMarkup
|
|
|
|
};
|
|
|
|
|
|
|
|
export type botInlineMessageMediaGeo = {
|
|
|
|
_: 'botInlineMessageMediaGeo',
|
|
|
|
flags?: number,
|
|
|
|
geo: GeoPoint,
|
|
|
|
period: number,
|
|
|
|
reply_markup?: ReplyMarkup
|
|
|
|
};
|
|
|
|
|
|
|
|
export type botInlineMessageMediaVenue = {
|
|
|
|
_: 'botInlineMessageMediaVenue',
|
|
|
|
flags?: number,
|
|
|
|
geo: GeoPoint,
|
|
|
|
title: string,
|
|
|
|
address: string,
|
|
|
|
provider: string,
|
|
|
|
venue_id: string,
|
|
|
|
venue_type: string,
|
|
|
|
reply_markup?: ReplyMarkup
|
|
|
|
};
|
|
|
|
|
|
|
|
export type botInlineMessageMediaContact = {
|
|
|
|
_: 'botInlineMessageMediaContact',
|
|
|
|
flags?: number,
|
|
|
|
phone_number: string,
|
|
|
|
first_name: string,
|
|
|
|
last_name: string,
|
|
|
|
vcard: string,
|
|
|
|
reply_markup?: ReplyMarkup
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/BotInlineResult
|
|
|
|
*/
|
|
|
|
export type BotInlineResult = BotInlineResult.botInlineResult | BotInlineResult.botInlineMediaResult;
|
|
|
|
|
|
|
|
export namespace BotInlineResult {
|
|
|
|
export type botInlineResult = {
|
|
|
|
_: 'botInlineResult',
|
|
|
|
flags?: number,
|
|
|
|
id: string,
|
|
|
|
type: string,
|
|
|
|
title?: string,
|
|
|
|
description?: string,
|
|
|
|
url?: string,
|
|
|
|
thumb?: WebDocument,
|
|
|
|
content?: WebDocument,
|
|
|
|
send_message: BotInlineMessage
|
|
|
|
};
|
|
|
|
|
|
|
|
export type botInlineMediaResult = {
|
|
|
|
_: 'botInlineMediaResult',
|
|
|
|
flags?: number,
|
|
|
|
id: string,
|
|
|
|
type: string,
|
|
|
|
photo?: Photo,
|
|
|
|
document?: Document,
|
|
|
|
title?: string,
|
|
|
|
description?: string,
|
|
|
|
send_message: BotInlineMessage
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.BotResults
|
|
|
|
*/
|
|
|
|
export type MessagesBotResults = MessagesBotResults.messagesBotResults;
|
|
|
|
|
|
|
|
export namespace MessagesBotResults {
|
|
|
|
export type messagesBotResults = {
|
|
|
|
_: 'messages.botResults',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
gallery?: true,
|
|
|
|
}>,
|
|
|
|
query_id: string,
|
|
|
|
next_offset?: string,
|
|
|
|
switch_pm?: InlineBotSwitchPM,
|
|
|
|
results: Array<BotInlineResult>,
|
|
|
|
cache_time: number,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ExportedMessageLink
|
|
|
|
*/
|
|
|
|
export type ExportedMessageLink = ExportedMessageLink.exportedMessageLink;
|
|
|
|
|
|
|
|
export namespace ExportedMessageLink {
|
|
|
|
export type exportedMessageLink = {
|
|
|
|
_: 'exportedMessageLink',
|
|
|
|
link: string,
|
|
|
|
html: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/MessageFwdHeader
|
|
|
|
*/
|
|
|
|
export type MessageFwdHeader = MessageFwdHeader.messageFwdHeader;
|
|
|
|
|
|
|
|
export namespace MessageFwdHeader {
|
|
|
|
export type messageFwdHeader = {
|
|
|
|
_: 'messageFwdHeader',
|
|
|
|
flags?: number,
|
|
|
|
from_id?: number,
|
|
|
|
from_name?: string,
|
|
|
|
date: number,
|
|
|
|
channel_id?: number,
|
|
|
|
channel_post?: number,
|
|
|
|
post_author?: string,
|
|
|
|
saved_from_peer?: Peer,
|
|
|
|
saved_from_msg_id?: number,
|
|
|
|
psa_type?: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/auth.CodeType
|
|
|
|
*/
|
|
|
|
export type AuthCodeType = AuthCodeType.authCodeTypeSms | AuthCodeType.authCodeTypeCall | AuthCodeType.authCodeTypeFlashCall;
|
|
|
|
|
|
|
|
export namespace AuthCodeType {
|
|
|
|
export type authCodeTypeSms = {
|
|
|
|
_: 'auth.codeTypeSms'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type authCodeTypeCall = {
|
|
|
|
_: 'auth.codeTypeCall'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type authCodeTypeFlashCall = {
|
|
|
|
_: 'auth.codeTypeFlashCall'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/auth.SentCodeType
|
|
|
|
*/
|
|
|
|
export type AuthSentCodeType = AuthSentCodeType.authSentCodeTypeApp | AuthSentCodeType.authSentCodeTypeSms | AuthSentCodeType.authSentCodeTypeCall | AuthSentCodeType.authSentCodeTypeFlashCall;
|
|
|
|
|
|
|
|
export namespace AuthSentCodeType {
|
|
|
|
export type authSentCodeTypeApp = {
|
|
|
|
_: 'auth.sentCodeTypeApp',
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type authSentCodeTypeSms = {
|
|
|
|
_: 'auth.sentCodeTypeSms',
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type authSentCodeTypeCall = {
|
|
|
|
_: 'auth.sentCodeTypeCall',
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type authSentCodeTypeFlashCall = {
|
|
|
|
_: 'auth.sentCodeTypeFlashCall',
|
|
|
|
pattern: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.BotCallbackAnswer
|
|
|
|
*/
|
|
|
|
export type MessagesBotCallbackAnswer = MessagesBotCallbackAnswer.messagesBotCallbackAnswer;
|
|
|
|
|
|
|
|
export namespace MessagesBotCallbackAnswer {
|
|
|
|
export type messagesBotCallbackAnswer = {
|
|
|
|
_: 'messages.botCallbackAnswer',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
alert?: true,
|
|
|
|
has_url?: true,
|
|
|
|
native_ui?: true,
|
|
|
|
}>,
|
|
|
|
message?: string,
|
|
|
|
url?: string,
|
|
|
|
cache_time: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.MessageEditData
|
|
|
|
*/
|
|
|
|
export type MessagesMessageEditData = MessagesMessageEditData.messagesMessageEditData;
|
|
|
|
|
|
|
|
export namespace MessagesMessageEditData {
|
|
|
|
export type messagesMessageEditData = {
|
|
|
|
_: 'messages.messageEditData',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
caption?: true,
|
|
|
|
}>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputBotInlineMessageID
|
|
|
|
*/
|
|
|
|
export type InputBotInlineMessageID = InputBotInlineMessageID.inputBotInlineMessageID;
|
|
|
|
|
|
|
|
export namespace InputBotInlineMessageID {
|
|
|
|
export type inputBotInlineMessageID = {
|
|
|
|
_: 'inputBotInlineMessageID',
|
|
|
|
dc_id: number,
|
|
|
|
id: string,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InlineBotSwitchPM
|
|
|
|
*/
|
|
|
|
export type InlineBotSwitchPM = InlineBotSwitchPM.inlineBotSwitchPM;
|
|
|
|
|
|
|
|
export namespace InlineBotSwitchPM {
|
|
|
|
export type inlineBotSwitchPM = {
|
|
|
|
_: 'inlineBotSwitchPM',
|
|
|
|
text: string,
|
|
|
|
start_param: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.PeerDialogs
|
|
|
|
*/
|
|
|
|
export type MessagesPeerDialogs = MessagesPeerDialogs.messagesPeerDialogs;
|
|
|
|
|
|
|
|
export namespace MessagesPeerDialogs {
|
|
|
|
export type messagesPeerDialogs = {
|
|
|
|
_: 'messages.peerDialogs',
|
|
|
|
dialogs: Array<Dialog>,
|
|
|
|
messages: Array<Message>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>,
|
|
|
|
state: UpdatesState
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/TopPeer
|
|
|
|
*/
|
|
|
|
export type TopPeer = TopPeer.topPeer;
|
|
|
|
|
|
|
|
export namespace TopPeer {
|
|
|
|
export type topPeer = {
|
|
|
|
_: 'topPeer',
|
|
|
|
peer: Peer,
|
|
|
|
rating: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/TopPeerCategory
|
|
|
|
*/
|
|
|
|
export type TopPeerCategory = TopPeerCategory.topPeerCategoryBotsPM | TopPeerCategory.topPeerCategoryBotsInline | TopPeerCategory.topPeerCategoryCorrespondents | TopPeerCategory.topPeerCategoryGroups | TopPeerCategory.topPeerCategoryChannels | TopPeerCategory.topPeerCategoryPhoneCalls | TopPeerCategory.topPeerCategoryForwardUsers | TopPeerCategory.topPeerCategoryForwardChats;
|
|
|
|
|
|
|
|
export namespace TopPeerCategory {
|
|
|
|
export type topPeerCategoryBotsPM = {
|
|
|
|
_: 'topPeerCategoryBotsPM'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type topPeerCategoryBotsInline = {
|
|
|
|
_: 'topPeerCategoryBotsInline'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type topPeerCategoryCorrespondents = {
|
|
|
|
_: 'topPeerCategoryCorrespondents'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type topPeerCategoryGroups = {
|
|
|
|
_: 'topPeerCategoryGroups'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type topPeerCategoryChannels = {
|
|
|
|
_: 'topPeerCategoryChannels'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type topPeerCategoryPhoneCalls = {
|
|
|
|
_: 'topPeerCategoryPhoneCalls'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type topPeerCategoryForwardUsers = {
|
|
|
|
_: 'topPeerCategoryForwardUsers'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type topPeerCategoryForwardChats = {
|
|
|
|
_: 'topPeerCategoryForwardChats'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/TopPeerCategoryPeers
|
|
|
|
*/
|
|
|
|
export type TopPeerCategoryPeers = TopPeerCategoryPeers.topPeerCategoryPeers;
|
|
|
|
|
|
|
|
export namespace TopPeerCategoryPeers {
|
|
|
|
export type topPeerCategoryPeers = {
|
|
|
|
_: 'topPeerCategoryPeers',
|
|
|
|
category: TopPeerCategory,
|
|
|
|
count: number,
|
|
|
|
peers: Array<TopPeer>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/contacts.TopPeers
|
|
|
|
*/
|
|
|
|
export type ContactsTopPeers = ContactsTopPeers.contactsTopPeersNotModified | ContactsTopPeers.contactsTopPeers | ContactsTopPeers.contactsTopPeersDisabled;
|
|
|
|
|
|
|
|
export namespace ContactsTopPeers {
|
|
|
|
export type contactsTopPeersNotModified = {
|
|
|
|
_: 'contacts.topPeersNotModified'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type contactsTopPeers = {
|
|
|
|
_: 'contacts.topPeers',
|
|
|
|
categories: Array<TopPeerCategoryPeers>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type contactsTopPeersDisabled = {
|
|
|
|
_: 'contacts.topPeersDisabled'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/DraftMessage
|
|
|
|
*/
|
|
|
|
export type DraftMessage = DraftMessage.draftMessageEmpty | DraftMessage.draftMessage;
|
|
|
|
|
|
|
|
export namespace DraftMessage {
|
|
|
|
export type draftMessageEmpty = {
|
|
|
|
_: 'draftMessageEmpty',
|
|
|
|
flags?: number,
|
|
|
|
date?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type draftMessage = {
|
|
|
|
_: 'draftMessage',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
no_webpage?: true,
|
|
|
|
}>,
|
|
|
|
reply_to_msg_id?: number,
|
|
|
|
message: string,
|
|
|
|
entities?: Array<MessageEntity>,
|
|
|
|
date: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.FeaturedStickers
|
|
|
|
*/
|
|
|
|
export type MessagesFeaturedStickers = MessagesFeaturedStickers.messagesFeaturedStickersNotModified | MessagesFeaturedStickers.messagesFeaturedStickers;
|
|
|
|
|
|
|
|
export namespace MessagesFeaturedStickers {
|
|
|
|
export type messagesFeaturedStickersNotModified = {
|
|
|
|
_: 'messages.featuredStickersNotModified',
|
|
|
|
count: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messagesFeaturedStickers = {
|
|
|
|
_: 'messages.featuredStickers',
|
|
|
|
hash: number,
|
|
|
|
count: number,
|
|
|
|
sets: Array<StickerSetCovered>,
|
|
|
|
unread: Array<string>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.RecentStickers
|
|
|
|
*/
|
|
|
|
export type MessagesRecentStickers = MessagesRecentStickers.messagesRecentStickersNotModified | MessagesRecentStickers.messagesRecentStickers;
|
|
|
|
|
|
|
|
export namespace MessagesRecentStickers {
|
|
|
|
export type messagesRecentStickersNotModified = {
|
|
|
|
_: 'messages.recentStickersNotModified'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messagesRecentStickers = {
|
|
|
|
_: 'messages.recentStickers',
|
|
|
|
hash: number,
|
|
|
|
packs: Array<StickerPack>,
|
|
|
|
stickers: Array<Document>,
|
|
|
|
dates: Array<number>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.ArchivedStickers
|
|
|
|
*/
|
|
|
|
export type MessagesArchivedStickers = MessagesArchivedStickers.messagesArchivedStickers;
|
|
|
|
|
|
|
|
export namespace MessagesArchivedStickers {
|
|
|
|
export type messagesArchivedStickers = {
|
|
|
|
_: 'messages.archivedStickers',
|
|
|
|
count: number,
|
|
|
|
sets: Array<StickerSetCovered>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.StickerSetInstallResult
|
|
|
|
*/
|
|
|
|
export type MessagesStickerSetInstallResult = MessagesStickerSetInstallResult.messagesStickerSetInstallResultSuccess | MessagesStickerSetInstallResult.messagesStickerSetInstallResultArchive;
|
|
|
|
|
|
|
|
export namespace MessagesStickerSetInstallResult {
|
|
|
|
export type messagesStickerSetInstallResultSuccess = {
|
|
|
|
_: 'messages.stickerSetInstallResultSuccess'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messagesStickerSetInstallResultArchive = {
|
|
|
|
_: 'messages.stickerSetInstallResultArchive',
|
|
|
|
sets: Array<StickerSetCovered>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/StickerSetCovered
|
|
|
|
*/
|
|
|
|
export type StickerSetCovered = StickerSetCovered.stickerSetCovered | StickerSetCovered.stickerSetMultiCovered;
|
|
|
|
|
|
|
|
export namespace StickerSetCovered {
|
|
|
|
export type stickerSetCovered = {
|
|
|
|
_: 'stickerSetCovered',
|
|
|
|
set: StickerSet,
|
|
|
|
cover: Document
|
|
|
|
};
|
|
|
|
|
|
|
|
export type stickerSetMultiCovered = {
|
|
|
|
_: 'stickerSetMultiCovered',
|
|
|
|
set: StickerSet,
|
|
|
|
covers: Array<Document>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/MaskCoords
|
|
|
|
*/
|
|
|
|
export type MaskCoords = MaskCoords.maskCoords;
|
|
|
|
|
|
|
|
export namespace MaskCoords {
|
|
|
|
export type maskCoords = {
|
|
|
|
_: 'maskCoords',
|
|
|
|
n: number,
|
|
|
|
x: number,
|
|
|
|
y: number,
|
|
|
|
zoom: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputStickeredMedia
|
|
|
|
*/
|
|
|
|
export type InputStickeredMedia = InputStickeredMedia.inputStickeredMediaPhoto | InputStickeredMedia.inputStickeredMediaDocument;
|
|
|
|
|
|
|
|
export namespace InputStickeredMedia {
|
|
|
|
export type inputStickeredMediaPhoto = {
|
|
|
|
_: 'inputStickeredMediaPhoto',
|
|
|
|
id: InputPhoto
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputStickeredMediaDocument = {
|
|
|
|
_: 'inputStickeredMediaDocument',
|
|
|
|
id: InputDocument
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Game
|
|
|
|
*/
|
|
|
|
export type Game = Game.game;
|
|
|
|
|
|
|
|
export namespace Game {
|
|
|
|
export type game = {
|
|
|
|
_: 'game',
|
|
|
|
flags?: number,
|
|
|
|
id: string,
|
|
|
|
access_hash: string,
|
|
|
|
short_name: string,
|
|
|
|
title: string,
|
|
|
|
description: string,
|
|
|
|
photo: Photo,
|
|
|
|
document?: Document
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputGame
|
|
|
|
*/
|
|
|
|
export type InputGame = InputGame.inputGameID | InputGame.inputGameShortName;
|
|
|
|
|
|
|
|
export namespace InputGame {
|
|
|
|
export type inputGameID = {
|
|
|
|
_: 'inputGameID',
|
|
|
|
id: string,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputGameShortName = {
|
|
|
|
_: 'inputGameShortName',
|
|
|
|
bot_id: InputUser,
|
|
|
|
short_name: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/HighScore
|
|
|
|
*/
|
|
|
|
export type HighScore = HighScore.highScore;
|
|
|
|
|
|
|
|
export namespace HighScore {
|
|
|
|
export type highScore = {
|
|
|
|
_: 'highScore',
|
|
|
|
pos: number,
|
|
|
|
user_id: number,
|
|
|
|
score: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.HighScores
|
|
|
|
*/
|
|
|
|
export type MessagesHighScores = MessagesHighScores.messagesHighScores;
|
|
|
|
|
|
|
|
export namespace MessagesHighScores {
|
|
|
|
export type messagesHighScores = {
|
|
|
|
_: 'messages.highScores',
|
|
|
|
scores: Array<HighScore>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/RichText
|
|
|
|
*/
|
|
|
|
export type RichText = RichText.textEmpty | RichText.textPlain | RichText.textBold | RichText.textItalic | RichText.textUnderline | RichText.textStrike | RichText.textFixed | RichText.textUrl | RichText.textEmail | RichText.textConcat | RichText.textSubscript | RichText.textSuperscript | RichText.textMarked | RichText.textPhone | RichText.textImage | RichText.textAnchor;
|
|
|
|
|
|
|
|
export namespace RichText {
|
|
|
|
export type textEmpty = {
|
|
|
|
_: 'textEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type textPlain = {
|
|
|
|
_: 'textPlain',
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type textBold = {
|
|
|
|
_: 'textBold',
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type textItalic = {
|
|
|
|
_: 'textItalic',
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type textUnderline = {
|
|
|
|
_: 'textUnderline',
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type textStrike = {
|
|
|
|
_: 'textStrike',
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type textFixed = {
|
|
|
|
_: 'textFixed',
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type textUrl = {
|
|
|
|
_: 'textUrl',
|
|
|
|
text: RichText,
|
|
|
|
url: string,
|
|
|
|
webpage_id: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type textEmail = {
|
|
|
|
_: 'textEmail',
|
|
|
|
text: RichText,
|
|
|
|
email: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type textConcat = {
|
|
|
|
_: 'textConcat',
|
|
|
|
texts: Array<RichText>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type textSubscript = {
|
|
|
|
_: 'textSubscript',
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type textSuperscript = {
|
|
|
|
_: 'textSuperscript',
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type textMarked = {
|
|
|
|
_: 'textMarked',
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type textPhone = {
|
|
|
|
_: 'textPhone',
|
|
|
|
text: RichText,
|
|
|
|
phone: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type textImage = {
|
|
|
|
_: 'textImage',
|
|
|
|
document_id: string,
|
|
|
|
w: number,
|
|
|
|
h: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type textAnchor = {
|
|
|
|
_: 'textAnchor',
|
|
|
|
text: RichText,
|
|
|
|
name: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PageBlock
|
|
|
|
*/
|
|
|
|
export type PageBlock = PageBlock.pageBlockUnsupported | PageBlock.pageBlockTitle | PageBlock.pageBlockSubtitle | PageBlock.pageBlockAuthorDate | PageBlock.pageBlockHeader | PageBlock.pageBlockSubheader | PageBlock.pageBlockParagraph | PageBlock.pageBlockPreformatted | PageBlock.pageBlockFooter | PageBlock.pageBlockDivider | PageBlock.pageBlockAnchor | PageBlock.pageBlockList | PageBlock.pageBlockBlockquote | PageBlock.pageBlockPullquote | PageBlock.pageBlockPhoto | PageBlock.pageBlockVideo | PageBlock.pageBlockCover | PageBlock.pageBlockEmbed | PageBlock.pageBlockEmbedPost | PageBlock.pageBlockCollage | PageBlock.pageBlockSlideshow | PageBlock.pageBlockChannel | PageBlock.pageBlockAudio | PageBlock.pageBlockKicker | PageBlock.pageBlockTable | PageBlock.pageBlockOrderedList | PageBlock.pageBlockDetails | PageBlock.pageBlockRelatedArticles | PageBlock.pageBlockMap;
|
|
|
|
|
|
|
|
export namespace PageBlock {
|
|
|
|
export type pageBlockUnsupported = {
|
|
|
|
_: 'pageBlockUnsupported'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockTitle = {
|
|
|
|
_: 'pageBlockTitle',
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockSubtitle = {
|
|
|
|
_: 'pageBlockSubtitle',
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockAuthorDate = {
|
|
|
|
_: 'pageBlockAuthorDate',
|
|
|
|
author: RichText,
|
|
|
|
published_date: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockHeader = {
|
|
|
|
_: 'pageBlockHeader',
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockSubheader = {
|
|
|
|
_: 'pageBlockSubheader',
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockParagraph = {
|
|
|
|
_: 'pageBlockParagraph',
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockPreformatted = {
|
|
|
|
_: 'pageBlockPreformatted',
|
|
|
|
text: RichText,
|
|
|
|
language: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockFooter = {
|
|
|
|
_: 'pageBlockFooter',
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockDivider = {
|
|
|
|
_: 'pageBlockDivider'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockAnchor = {
|
|
|
|
_: 'pageBlockAnchor',
|
|
|
|
name: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockList = {
|
|
|
|
_: 'pageBlockList',
|
|
|
|
items: Array<PageListItem>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockBlockquote = {
|
|
|
|
_: 'pageBlockBlockquote',
|
|
|
|
text: RichText,
|
|
|
|
caption: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockPullquote = {
|
|
|
|
_: 'pageBlockPullquote',
|
|
|
|
text: RichText,
|
|
|
|
caption: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockPhoto = {
|
|
|
|
_: 'pageBlockPhoto',
|
|
|
|
flags?: number,
|
|
|
|
photo_id: string,
|
|
|
|
caption: PageCaption,
|
|
|
|
url?: string,
|
|
|
|
webpage_id?: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockVideo = {
|
|
|
|
_: 'pageBlockVideo',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
autoplay?: true,
|
|
|
|
loop?: true,
|
|
|
|
}>,
|
|
|
|
video_id: string,
|
|
|
|
caption: PageCaption
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockCover = {
|
|
|
|
_: 'pageBlockCover',
|
|
|
|
cover: PageBlock
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockEmbed = {
|
|
|
|
_: 'pageBlockEmbed',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
full_width?: true,
|
|
|
|
allow_scrolling?: true,
|
|
|
|
}>,
|
|
|
|
url?: string,
|
|
|
|
html?: string,
|
|
|
|
poster_photo_id?: string,
|
|
|
|
w?: number,
|
|
|
|
h?: number,
|
|
|
|
caption: PageCaption
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockEmbedPost = {
|
|
|
|
_: 'pageBlockEmbedPost',
|
|
|
|
url: string,
|
|
|
|
webpage_id: string,
|
|
|
|
author_photo_id: string,
|
|
|
|
author: string,
|
|
|
|
date: number,
|
|
|
|
blocks: Array<PageBlock>,
|
|
|
|
caption: PageCaption
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockCollage = {
|
|
|
|
_: 'pageBlockCollage',
|
|
|
|
items: Array<PageBlock>,
|
|
|
|
caption: PageCaption
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockSlideshow = {
|
|
|
|
_: 'pageBlockSlideshow',
|
|
|
|
items: Array<PageBlock>,
|
|
|
|
caption: PageCaption
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockChannel = {
|
|
|
|
_: 'pageBlockChannel',
|
|
|
|
channel: Chat
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockAudio = {
|
|
|
|
_: 'pageBlockAudio',
|
|
|
|
audio_id: string,
|
|
|
|
caption: PageCaption
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockKicker = {
|
|
|
|
_: 'pageBlockKicker',
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockTable = {
|
|
|
|
_: 'pageBlockTable',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
bordered?: true,
|
|
|
|
striped?: true,
|
|
|
|
}>,
|
|
|
|
title: RichText,
|
|
|
|
rows: Array<PageTableRow>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockOrderedList = {
|
|
|
|
_: 'pageBlockOrderedList',
|
|
|
|
items: Array<PageListOrderedItem>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockDetails = {
|
|
|
|
_: 'pageBlockDetails',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
open?: true,
|
|
|
|
}>,
|
|
|
|
blocks: Array<PageBlock>,
|
|
|
|
title: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockRelatedArticles = {
|
|
|
|
_: 'pageBlockRelatedArticles',
|
|
|
|
title: RichText,
|
|
|
|
articles: Array<PageRelatedArticle>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageBlockMap = {
|
|
|
|
_: 'pageBlockMap',
|
|
|
|
geo: GeoPoint,
|
|
|
|
zoom: number,
|
|
|
|
w: number,
|
|
|
|
h: number,
|
|
|
|
caption: PageCaption
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PhoneCallDiscardReason
|
|
|
|
*/
|
|
|
|
export type PhoneCallDiscardReason = PhoneCallDiscardReason.phoneCallDiscardReasonMissed | PhoneCallDiscardReason.phoneCallDiscardReasonDisconnect | PhoneCallDiscardReason.phoneCallDiscardReasonHangup | PhoneCallDiscardReason.phoneCallDiscardReasonBusy;
|
|
|
|
|
|
|
|
export namespace PhoneCallDiscardReason {
|
|
|
|
export type phoneCallDiscardReasonMissed = {
|
|
|
|
_: 'phoneCallDiscardReasonMissed'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type phoneCallDiscardReasonDisconnect = {
|
|
|
|
_: 'phoneCallDiscardReasonDisconnect'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type phoneCallDiscardReasonHangup = {
|
|
|
|
_: 'phoneCallDiscardReasonHangup'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type phoneCallDiscardReasonBusy = {
|
|
|
|
_: 'phoneCallDiscardReasonBusy'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/DataJSON
|
|
|
|
*/
|
|
|
|
export type DataJSON = DataJSON.dataJSON;
|
|
|
|
|
|
|
|
export namespace DataJSON {
|
|
|
|
export type dataJSON = {
|
|
|
|
_: 'dataJSON',
|
|
|
|
data: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/LabeledPrice
|
|
|
|
*/
|
|
|
|
export type LabeledPrice = LabeledPrice.labeledPrice;
|
|
|
|
|
|
|
|
export namespace LabeledPrice {
|
|
|
|
export type labeledPrice = {
|
|
|
|
_: 'labeledPrice',
|
|
|
|
label: string,
|
|
|
|
amount: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Invoice
|
|
|
|
*/
|
|
|
|
export type Invoice = Invoice.invoice;
|
|
|
|
|
|
|
|
export namespace Invoice {
|
|
|
|
export type invoice = {
|
|
|
|
_: 'invoice',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
test?: true,
|
|
|
|
name_requested?: true,
|
|
|
|
phone_requested?: true,
|
|
|
|
email_requested?: true,
|
|
|
|
shipping_address_requested?: true,
|
|
|
|
flexible?: true,
|
|
|
|
phone_to_provider?: true,
|
|
|
|
email_to_provider?: true,
|
|
|
|
}>,
|
|
|
|
currency: string,
|
|
|
|
prices: Array<LabeledPrice>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PaymentCharge
|
|
|
|
*/
|
|
|
|
export type PaymentCharge = PaymentCharge.paymentCharge;
|
|
|
|
|
|
|
|
export namespace PaymentCharge {
|
|
|
|
export type paymentCharge = {
|
|
|
|
_: 'paymentCharge',
|
|
|
|
id: string,
|
|
|
|
provider_charge_id: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PostAddress
|
|
|
|
*/
|
|
|
|
export type PostAddress = PostAddress.postAddress;
|
|
|
|
|
|
|
|
export namespace PostAddress {
|
|
|
|
export type postAddress = {
|
|
|
|
_: 'postAddress',
|
|
|
|
street_line1: string,
|
|
|
|
street_line2: string,
|
|
|
|
city: string,
|
|
|
|
state: string,
|
|
|
|
country_iso2: string,
|
|
|
|
post_code: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PaymentRequestedInfo
|
|
|
|
*/
|
|
|
|
export type PaymentRequestedInfo = PaymentRequestedInfo.paymentRequestedInfo;
|
|
|
|
|
|
|
|
export namespace PaymentRequestedInfo {
|
|
|
|
export type paymentRequestedInfo = {
|
|
|
|
_: 'paymentRequestedInfo',
|
|
|
|
flags?: number,
|
|
|
|
name?: string,
|
|
|
|
phone?: string,
|
|
|
|
email?: string,
|
|
|
|
shipping_address?: PostAddress
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PaymentSavedCredentials
|
|
|
|
*/
|
|
|
|
export type PaymentSavedCredentials = PaymentSavedCredentials.paymentSavedCredentialsCard;
|
|
|
|
|
|
|
|
export namespace PaymentSavedCredentials {
|
|
|
|
export type paymentSavedCredentialsCard = {
|
|
|
|
_: 'paymentSavedCredentialsCard',
|
|
|
|
id: string,
|
|
|
|
title: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/WebDocument
|
|
|
|
*/
|
|
|
|
export type WebDocument = WebDocument.webDocument | WebDocument.webDocumentNoProxy;
|
|
|
|
|
|
|
|
export namespace WebDocument {
|
|
|
|
export type webDocument = {
|
|
|
|
_: 'webDocument',
|
|
|
|
url: string,
|
|
|
|
access_hash: string,
|
|
|
|
size: number,
|
|
|
|
mime_type: string,
|
|
|
|
attributes: Array<DocumentAttribute>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type webDocumentNoProxy = {
|
|
|
|
_: 'webDocumentNoProxy',
|
|
|
|
url: string,
|
|
|
|
size: number,
|
|
|
|
mime_type: string,
|
|
|
|
attributes: Array<DocumentAttribute>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputWebDocument
|
|
|
|
*/
|
|
|
|
export type InputWebDocument = InputWebDocument.inputWebDocument;
|
|
|
|
|
|
|
|
export namespace InputWebDocument {
|
|
|
|
export type inputWebDocument = {
|
|
|
|
_: 'inputWebDocument',
|
|
|
|
url: string,
|
|
|
|
size: number,
|
|
|
|
mime_type: string,
|
|
|
|
attributes: Array<DocumentAttribute>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputWebFileLocation
|
|
|
|
*/
|
|
|
|
export type InputWebFileLocation = InputWebFileLocation.inputWebFileLocation | InputWebFileLocation.inputWebFileGeoPointLocation;
|
|
|
|
|
|
|
|
export namespace InputWebFileLocation {
|
|
|
|
export type inputWebFileLocation = {
|
|
|
|
_: 'inputWebFileLocation',
|
|
|
|
url: string,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputWebFileGeoPointLocation = {
|
|
|
|
_: 'inputWebFileGeoPointLocation',
|
|
|
|
geo_point: InputGeoPoint,
|
|
|
|
access_hash: string,
|
|
|
|
w: number,
|
|
|
|
h: number,
|
|
|
|
zoom: number,
|
|
|
|
scale: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/upload.WebFile
|
|
|
|
*/
|
|
|
|
export type UploadWebFile = UploadWebFile.uploadWebFile;
|
|
|
|
|
|
|
|
export namespace UploadWebFile {
|
|
|
|
export type uploadWebFile = {
|
|
|
|
_: 'upload.webFile',
|
|
|
|
size: number,
|
|
|
|
mime_type: string,
|
|
|
|
file_type: StorageFileType,
|
|
|
|
mtime: number,
|
|
|
|
bytes: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/payments.PaymentForm
|
|
|
|
*/
|
|
|
|
export type PaymentsPaymentForm = PaymentsPaymentForm.paymentsPaymentForm;
|
|
|
|
|
|
|
|
export namespace PaymentsPaymentForm {
|
|
|
|
export type paymentsPaymentForm = {
|
|
|
|
_: 'payments.paymentForm',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
can_save_credentials?: true,
|
|
|
|
password_missing?: true,
|
|
|
|
}>,
|
|
|
|
bot_id: number,
|
|
|
|
invoice: Invoice,
|
|
|
|
provider_id: number,
|
|
|
|
url: string,
|
|
|
|
native_provider?: string,
|
|
|
|
native_params?: DataJSON,
|
|
|
|
saved_info?: PaymentRequestedInfo,
|
|
|
|
saved_credentials?: PaymentSavedCredentials,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/payments.ValidatedRequestedInfo
|
|
|
|
*/
|
|
|
|
export type PaymentsValidatedRequestedInfo = PaymentsValidatedRequestedInfo.paymentsValidatedRequestedInfo;
|
|
|
|
|
|
|
|
export namespace PaymentsValidatedRequestedInfo {
|
|
|
|
export type paymentsValidatedRequestedInfo = {
|
|
|
|
_: 'payments.validatedRequestedInfo',
|
|
|
|
flags?: number,
|
|
|
|
id?: string,
|
|
|
|
shipping_options?: Array<ShippingOption>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/payments.PaymentResult
|
|
|
|
*/
|
|
|
|
export type PaymentsPaymentResult = PaymentsPaymentResult.paymentsPaymentResult | PaymentsPaymentResult.paymentsPaymentVerificationNeeded;
|
|
|
|
|
|
|
|
export namespace PaymentsPaymentResult {
|
|
|
|
export type paymentsPaymentResult = {
|
|
|
|
_: 'payments.paymentResult',
|
|
|
|
updates: Updates
|
|
|
|
};
|
|
|
|
|
|
|
|
export type paymentsPaymentVerificationNeeded = {
|
|
|
|
_: 'payments.paymentVerificationNeeded',
|
|
|
|
url: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/payments.PaymentReceipt
|
|
|
|
*/
|
|
|
|
export type PaymentsPaymentReceipt = PaymentsPaymentReceipt.paymentsPaymentReceipt;
|
|
|
|
|
|
|
|
export namespace PaymentsPaymentReceipt {
|
|
|
|
export type paymentsPaymentReceipt = {
|
|
|
|
_: 'payments.paymentReceipt',
|
|
|
|
flags?: number,
|
|
|
|
date: number,
|
|
|
|
bot_id: number,
|
|
|
|
invoice: Invoice,
|
|
|
|
provider_id: number,
|
|
|
|
info?: PaymentRequestedInfo,
|
|
|
|
shipping?: ShippingOption,
|
|
|
|
currency: string,
|
|
|
|
total_amount: string,
|
|
|
|
credentials_title: string,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/payments.SavedInfo
|
|
|
|
*/
|
|
|
|
export type PaymentsSavedInfo = PaymentsSavedInfo.paymentsSavedInfo;
|
|
|
|
|
|
|
|
export namespace PaymentsSavedInfo {
|
|
|
|
export type paymentsSavedInfo = {
|
|
|
|
_: 'payments.savedInfo',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
has_saved_credentials?: true,
|
|
|
|
}>,
|
|
|
|
saved_info?: PaymentRequestedInfo
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputPaymentCredentials
|
|
|
|
*/
|
|
|
|
export type InputPaymentCredentials = InputPaymentCredentials.inputPaymentCredentialsSaved | InputPaymentCredentials.inputPaymentCredentials | InputPaymentCredentials.inputPaymentCredentialsApplePay | InputPaymentCredentials.inputPaymentCredentialsAndroidPay;
|
|
|
|
|
|
|
|
export namespace InputPaymentCredentials {
|
|
|
|
export type inputPaymentCredentialsSaved = {
|
|
|
|
_: 'inputPaymentCredentialsSaved',
|
|
|
|
id: string,
|
|
|
|
tmp_password: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPaymentCredentials = {
|
|
|
|
_: 'inputPaymentCredentials',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
save?: true,
|
|
|
|
}>,
|
|
|
|
data: DataJSON
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPaymentCredentialsApplePay = {
|
|
|
|
_: 'inputPaymentCredentialsApplePay',
|
|
|
|
payment_data: DataJSON
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputPaymentCredentialsAndroidPay = {
|
|
|
|
_: 'inputPaymentCredentialsAndroidPay',
|
|
|
|
payment_token: DataJSON,
|
|
|
|
google_transaction_id: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/account.TmpPassword
|
|
|
|
*/
|
|
|
|
export type AccountTmpPassword = AccountTmpPassword.accountTmpPassword;
|
|
|
|
|
|
|
|
export namespace AccountTmpPassword {
|
|
|
|
export type accountTmpPassword = {
|
|
|
|
_: 'account.tmpPassword',
|
|
|
|
tmp_password: Uint8Array | number[],
|
|
|
|
valid_until: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ShippingOption
|
|
|
|
*/
|
|
|
|
export type ShippingOption = ShippingOption.shippingOption;
|
|
|
|
|
|
|
|
export namespace ShippingOption {
|
|
|
|
export type shippingOption = {
|
|
|
|
_: 'shippingOption',
|
|
|
|
id: string,
|
|
|
|
title: string,
|
|
|
|
prices: Array<LabeledPrice>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputStickerSetItem
|
|
|
|
*/
|
|
|
|
export type InputStickerSetItem = InputStickerSetItem.inputStickerSetItem;
|
|
|
|
|
|
|
|
export namespace InputStickerSetItem {
|
|
|
|
export type inputStickerSetItem = {
|
|
|
|
_: 'inputStickerSetItem',
|
|
|
|
flags?: number,
|
|
|
|
document: InputDocument,
|
|
|
|
emoji: string,
|
|
|
|
mask_coords?: MaskCoords
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputPhoneCall
|
|
|
|
*/
|
|
|
|
export type InputPhoneCall = InputPhoneCall.inputPhoneCall;
|
|
|
|
|
|
|
|
export namespace InputPhoneCall {
|
|
|
|
export type inputPhoneCall = {
|
|
|
|
_: 'inputPhoneCall',
|
|
|
|
id: string,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PhoneCall
|
|
|
|
*/
|
|
|
|
export type PhoneCall = PhoneCall.phoneCallEmpty | PhoneCall.phoneCallWaiting | PhoneCall.phoneCallRequested | PhoneCall.phoneCallAccepted | PhoneCall.phoneCall | PhoneCall.phoneCallDiscarded;
|
|
|
|
|
|
|
|
export namespace PhoneCall {
|
|
|
|
export type phoneCallEmpty = {
|
|
|
|
_: 'phoneCallEmpty',
|
|
|
|
id: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type phoneCallWaiting = {
|
|
|
|
_: 'phoneCallWaiting',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
video?: true,
|
|
|
|
}>,
|
|
|
|
id: string,
|
|
|
|
access_hash: string,
|
|
|
|
date: number,
|
|
|
|
admin_id: number,
|
|
|
|
participant_id: number,
|
|
|
|
protocol: PhoneCallProtocol,
|
|
|
|
receive_date?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type phoneCallRequested = {
|
|
|
|
_: 'phoneCallRequested',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
video?: true,
|
|
|
|
}>,
|
|
|
|
id: string,
|
|
|
|
access_hash: string,
|
|
|
|
date: number,
|
|
|
|
admin_id: number,
|
|
|
|
participant_id: number,
|
|
|
|
g_a_hash: Uint8Array | number[],
|
|
|
|
protocol: PhoneCallProtocol
|
|
|
|
};
|
|
|
|
|
|
|
|
export type phoneCallAccepted = {
|
|
|
|
_: 'phoneCallAccepted',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
video?: true,
|
|
|
|
}>,
|
|
|
|
id: string,
|
|
|
|
access_hash: string,
|
|
|
|
date: number,
|
|
|
|
admin_id: number,
|
|
|
|
participant_id: number,
|
|
|
|
g_b: Uint8Array | number[],
|
|
|
|
protocol: PhoneCallProtocol
|
|
|
|
};
|
|
|
|
|
|
|
|
export type phoneCall = {
|
|
|
|
_: 'phoneCall',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
p2p_allowed?: true,
|
|
|
|
}>,
|
|
|
|
id: string,
|
|
|
|
access_hash: string,
|
|
|
|
date: number,
|
|
|
|
admin_id: number,
|
|
|
|
participant_id: number,
|
|
|
|
g_a_or_b: Uint8Array | number[],
|
|
|
|
key_fingerprint: string,
|
|
|
|
protocol: PhoneCallProtocol,
|
|
|
|
connections: Array<PhoneConnection>,
|
|
|
|
start_date: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type phoneCallDiscarded = {
|
|
|
|
_: 'phoneCallDiscarded',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
need_rating?: true,
|
|
|
|
need_debug?: true,
|
|
|
|
video?: true,
|
|
|
|
}>,
|
|
|
|
id: string,
|
|
|
|
reason?: PhoneCallDiscardReason,
|
|
|
|
duration?: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PhoneConnection
|
|
|
|
*/
|
|
|
|
export type PhoneConnection = PhoneConnection.phoneConnection;
|
|
|
|
|
|
|
|
export namespace PhoneConnection {
|
|
|
|
export type phoneConnection = {
|
|
|
|
_: 'phoneConnection',
|
|
|
|
id: string,
|
|
|
|
ip: string,
|
|
|
|
ipv6: string,
|
|
|
|
port: number,
|
|
|
|
peer_tag: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PhoneCallProtocol
|
|
|
|
*/
|
|
|
|
export type PhoneCallProtocol = PhoneCallProtocol.phoneCallProtocol;
|
|
|
|
|
|
|
|
export namespace PhoneCallProtocol {
|
|
|
|
export type phoneCallProtocol = {
|
|
|
|
_: 'phoneCallProtocol',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
udp_p2p?: true,
|
|
|
|
udp_reflector?: true,
|
|
|
|
}>,
|
|
|
|
min_layer: number,
|
|
|
|
max_layer: number,
|
|
|
|
library_versions: Array<string>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/phone.PhoneCall
|
|
|
|
*/
|
|
|
|
export type PhonePhoneCall = PhonePhoneCall.phonePhoneCall;
|
|
|
|
|
|
|
|
export namespace PhonePhoneCall {
|
|
|
|
export type phonePhoneCall = {
|
|
|
|
_: 'phone.phoneCall',
|
|
|
|
phone_call: PhoneCall,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/upload.CdnFile
|
|
|
|
*/
|
|
|
|
export type UploadCdnFile = UploadCdnFile.uploadCdnFileReuploadNeeded | UploadCdnFile.uploadCdnFile;
|
|
|
|
|
|
|
|
export namespace UploadCdnFile {
|
|
|
|
export type uploadCdnFileReuploadNeeded = {
|
|
|
|
_: 'upload.cdnFileReuploadNeeded',
|
|
|
|
request_token: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type uploadCdnFile = {
|
|
|
|
_: 'upload.cdnFile',
|
|
|
|
bytes: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/CdnPublicKey
|
|
|
|
*/
|
|
|
|
export type CdnPublicKey = CdnPublicKey.cdnPublicKey;
|
|
|
|
|
|
|
|
export namespace CdnPublicKey {
|
|
|
|
export type cdnPublicKey = {
|
|
|
|
_: 'cdnPublicKey',
|
|
|
|
dc_id: number,
|
|
|
|
public_key: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/CdnConfig
|
|
|
|
*/
|
|
|
|
export type CdnConfig = CdnConfig.cdnConfig;
|
|
|
|
|
|
|
|
export namespace CdnConfig {
|
|
|
|
export type cdnConfig = {
|
|
|
|
_: 'cdnConfig',
|
|
|
|
public_keys: Array<CdnPublicKey>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/LangPackString
|
|
|
|
*/
|
|
|
|
export type LangPackString = LangPackString.langPackString | LangPackString.langPackStringPluralized | LangPackString.langPackStringDeleted;
|
|
|
|
|
|
|
|
export namespace LangPackString {
|
|
|
|
export type langPackString = {
|
|
|
|
_: 'langPackString',
|
|
|
|
key: string,
|
|
|
|
value: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type langPackStringPluralized = {
|
|
|
|
_: 'langPackStringPluralized',
|
|
|
|
flags?: number,
|
|
|
|
key: string,
|
|
|
|
zero_value?: string,
|
|
|
|
one_value?: string,
|
|
|
|
two_value?: string,
|
|
|
|
few_value?: string,
|
|
|
|
many_value?: string,
|
|
|
|
other_value: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type langPackStringDeleted = {
|
|
|
|
_: 'langPackStringDeleted',
|
|
|
|
key: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/LangPackDifference
|
|
|
|
*/
|
|
|
|
export type LangPackDifference = LangPackDifference.langPackDifference;
|
|
|
|
|
|
|
|
export namespace LangPackDifference {
|
|
|
|
export type langPackDifference = {
|
|
|
|
_: 'langPackDifference',
|
|
|
|
lang_code: string,
|
|
|
|
from_version: number,
|
|
|
|
version: number,
|
|
|
|
strings: Array<LangPackString>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/LangPackLanguage
|
|
|
|
*/
|
|
|
|
export type LangPackLanguage = LangPackLanguage.langPackLanguage;
|
|
|
|
|
|
|
|
export namespace LangPackLanguage {
|
|
|
|
export type langPackLanguage = {
|
|
|
|
_: 'langPackLanguage',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
official?: true,
|
|
|
|
rtl?: true,
|
|
|
|
beta?: true,
|
|
|
|
}>,
|
|
|
|
name: string,
|
|
|
|
native_name: string,
|
|
|
|
lang_code: string,
|
|
|
|
base_lang_code?: string,
|
|
|
|
plural_code: string,
|
|
|
|
strings_count: number,
|
|
|
|
translated_count: number,
|
|
|
|
translations_url: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ChannelAdminLogEventAction
|
|
|
|
*/
|
|
|
|
export type ChannelAdminLogEventAction = ChannelAdminLogEventAction.channelAdminLogEventActionChangeTitle | ChannelAdminLogEventAction.channelAdminLogEventActionChangeAbout | ChannelAdminLogEventAction.channelAdminLogEventActionChangeUsername | ChannelAdminLogEventAction.channelAdminLogEventActionChangePhoto | ChannelAdminLogEventAction.channelAdminLogEventActionToggleInvites | ChannelAdminLogEventAction.channelAdminLogEventActionToggleSignatures | ChannelAdminLogEventAction.channelAdminLogEventActionUpdatePinned | ChannelAdminLogEventAction.channelAdminLogEventActionEditMessage | ChannelAdminLogEventAction.channelAdminLogEventActionDeleteMessage | ChannelAdminLogEventAction.channelAdminLogEventActionParticipantJoin | ChannelAdminLogEventAction.channelAdminLogEventActionParticipantLeave | ChannelAdminLogEventAction.channelAdminLogEventActionParticipantInvite | ChannelAdminLogEventAction.channelAdminLogEventActionParticipantToggleBan | ChannelAdminLogEventAction.channelAdminLogEventActionParticipantToggleAdmin | ChannelAdminLogEventAction.channelAdminLogEventActionChangeStickerSet | ChannelAdminLogEventAction.channelAdminLogEventActionTogglePreHistoryHidden | ChannelAdminLogEventAction.channelAdminLogEventActionDefaultBannedRights | ChannelAdminLogEventAction.channelAdminLogEventActionStopPoll | ChannelAdminLogEventAction.channelAdminLogEventActionChangeLinkedChat | ChannelAdminLogEventAction.channelAdminLogEventActionChangeLocation | ChannelAdminLogEventAction.channelAdminLogEventActionToggleSlowMode;
|
|
|
|
|
|
|
|
export namespace ChannelAdminLogEventAction {
|
|
|
|
export type channelAdminLogEventActionChangeTitle = {
|
|
|
|
_: 'channelAdminLogEventActionChangeTitle',
|
|
|
|
prev_value: string,
|
|
|
|
new_value: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionChangeAbout = {
|
|
|
|
_: 'channelAdminLogEventActionChangeAbout',
|
|
|
|
prev_value: string,
|
|
|
|
new_value: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionChangeUsername = {
|
|
|
|
_: 'channelAdminLogEventActionChangeUsername',
|
|
|
|
prev_value: string,
|
|
|
|
new_value: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionChangePhoto = {
|
|
|
|
_: 'channelAdminLogEventActionChangePhoto',
|
|
|
|
prev_photo: Photo,
|
|
|
|
new_photo: Photo
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionToggleInvites = {
|
|
|
|
_: 'channelAdminLogEventActionToggleInvites',
|
|
|
|
new_value: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionToggleSignatures = {
|
|
|
|
_: 'channelAdminLogEventActionToggleSignatures',
|
|
|
|
new_value: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionUpdatePinned = {
|
|
|
|
_: 'channelAdminLogEventActionUpdatePinned',
|
|
|
|
message: Message
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionEditMessage = {
|
|
|
|
_: 'channelAdminLogEventActionEditMessage',
|
|
|
|
prev_message: Message,
|
|
|
|
new_message: Message
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionDeleteMessage = {
|
|
|
|
_: 'channelAdminLogEventActionDeleteMessage',
|
|
|
|
message: Message
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionParticipantJoin = {
|
|
|
|
_: 'channelAdminLogEventActionParticipantJoin'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionParticipantLeave = {
|
|
|
|
_: 'channelAdminLogEventActionParticipantLeave'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionParticipantInvite = {
|
|
|
|
_: 'channelAdminLogEventActionParticipantInvite',
|
|
|
|
participant: ChannelParticipant
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionParticipantToggleBan = {
|
|
|
|
_: 'channelAdminLogEventActionParticipantToggleBan',
|
|
|
|
prev_participant: ChannelParticipant,
|
|
|
|
new_participant: ChannelParticipant
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionParticipantToggleAdmin = {
|
|
|
|
_: 'channelAdminLogEventActionParticipantToggleAdmin',
|
|
|
|
prev_participant: ChannelParticipant,
|
|
|
|
new_participant: ChannelParticipant
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionChangeStickerSet = {
|
|
|
|
_: 'channelAdminLogEventActionChangeStickerSet',
|
|
|
|
prev_stickerset: InputStickerSet,
|
|
|
|
new_stickerset: InputStickerSet
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionTogglePreHistoryHidden = {
|
|
|
|
_: 'channelAdminLogEventActionTogglePreHistoryHidden',
|
|
|
|
new_value: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionDefaultBannedRights = {
|
|
|
|
_: 'channelAdminLogEventActionDefaultBannedRights',
|
|
|
|
prev_banned_rights: ChatBannedRights,
|
|
|
|
new_banned_rights: ChatBannedRights
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionStopPoll = {
|
|
|
|
_: 'channelAdminLogEventActionStopPoll',
|
|
|
|
message: Message
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionChangeLinkedChat = {
|
|
|
|
_: 'channelAdminLogEventActionChangeLinkedChat',
|
|
|
|
prev_value: number,
|
|
|
|
new_value: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionChangeLocation = {
|
|
|
|
_: 'channelAdminLogEventActionChangeLocation',
|
|
|
|
prev_value: ChannelLocation,
|
|
|
|
new_value: ChannelLocation
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelAdminLogEventActionToggleSlowMode = {
|
|
|
|
_: 'channelAdminLogEventActionToggleSlowMode',
|
|
|
|
prev_value: number,
|
|
|
|
new_value: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ChannelAdminLogEvent
|
|
|
|
*/
|
|
|
|
export type ChannelAdminLogEvent = ChannelAdminLogEvent.channelAdminLogEvent;
|
|
|
|
|
|
|
|
export namespace ChannelAdminLogEvent {
|
|
|
|
export type channelAdminLogEvent = {
|
|
|
|
_: 'channelAdminLogEvent',
|
|
|
|
id: string,
|
|
|
|
date: number,
|
|
|
|
user_id: number,
|
|
|
|
action: ChannelAdminLogEventAction
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/channels.AdminLogResults
|
|
|
|
*/
|
|
|
|
export type ChannelsAdminLogResults = ChannelsAdminLogResults.channelsAdminLogResults;
|
|
|
|
|
|
|
|
export namespace ChannelsAdminLogResults {
|
|
|
|
export type channelsAdminLogResults = {
|
|
|
|
_: 'channels.adminLogResults',
|
|
|
|
events: Array<ChannelAdminLogEvent>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ChannelAdminLogEventsFilter
|
|
|
|
*/
|
|
|
|
export type ChannelAdminLogEventsFilter = ChannelAdminLogEventsFilter.channelAdminLogEventsFilter;
|
|
|
|
|
|
|
|
export namespace ChannelAdminLogEventsFilter {
|
|
|
|
export type channelAdminLogEventsFilter = {
|
|
|
|
_: 'channelAdminLogEventsFilter',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
join?: true,
|
|
|
|
leave?: true,
|
|
|
|
invite?: true,
|
|
|
|
ban?: true,
|
|
|
|
unban?: true,
|
|
|
|
kick?: true,
|
|
|
|
unkick?: true,
|
|
|
|
promote?: true,
|
|
|
|
demote?: true,
|
|
|
|
info?: true,
|
|
|
|
settings?: true,
|
|
|
|
pinned?: true,
|
|
|
|
edit?: true,
|
|
|
|
delete?: true,
|
|
|
|
}>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PopularContact
|
|
|
|
*/
|
|
|
|
export type PopularContact = PopularContact.popularContact;
|
|
|
|
|
|
|
|
export namespace PopularContact {
|
|
|
|
export type popularContact = {
|
|
|
|
_: 'popularContact',
|
|
|
|
client_id: string,
|
|
|
|
importers: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.FavedStickers
|
|
|
|
*/
|
|
|
|
export type MessagesFavedStickers = MessagesFavedStickers.messagesFavedStickersNotModified | MessagesFavedStickers.messagesFavedStickers;
|
|
|
|
|
|
|
|
export namespace MessagesFavedStickers {
|
|
|
|
export type messagesFavedStickersNotModified = {
|
|
|
|
_: 'messages.favedStickersNotModified'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messagesFavedStickers = {
|
|
|
|
_: 'messages.favedStickers',
|
|
|
|
hash: number,
|
|
|
|
packs: Array<StickerPack>,
|
|
|
|
stickers: Array<Document>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/RecentMeUrl
|
|
|
|
*/
|
|
|
|
export type RecentMeUrl = RecentMeUrl.recentMeUrlUnknown | RecentMeUrl.recentMeUrlUser | RecentMeUrl.recentMeUrlChat | RecentMeUrl.recentMeUrlChatInvite | RecentMeUrl.recentMeUrlStickerSet;
|
|
|
|
|
|
|
|
export namespace RecentMeUrl {
|
|
|
|
export type recentMeUrlUnknown = {
|
|
|
|
_: 'recentMeUrlUnknown',
|
|
|
|
url: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type recentMeUrlUser = {
|
|
|
|
_: 'recentMeUrlUser',
|
|
|
|
url: string,
|
|
|
|
user_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type recentMeUrlChat = {
|
|
|
|
_: 'recentMeUrlChat',
|
|
|
|
url: string,
|
|
|
|
chat_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type recentMeUrlChatInvite = {
|
|
|
|
_: 'recentMeUrlChatInvite',
|
|
|
|
url: string,
|
|
|
|
chat_invite: ChatInvite
|
|
|
|
};
|
|
|
|
|
|
|
|
export type recentMeUrlStickerSet = {
|
|
|
|
_: 'recentMeUrlStickerSet',
|
|
|
|
url: string,
|
|
|
|
set: StickerSetCovered
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/help.RecentMeUrls
|
|
|
|
*/
|
|
|
|
export type HelpRecentMeUrls = HelpRecentMeUrls.helpRecentMeUrls;
|
|
|
|
|
|
|
|
export namespace HelpRecentMeUrls {
|
|
|
|
export type helpRecentMeUrls = {
|
|
|
|
_: 'help.recentMeUrls',
|
|
|
|
urls: Array<RecentMeUrl>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputSingleMedia
|
|
|
|
*/
|
|
|
|
export type InputSingleMedia = InputSingleMedia.inputSingleMedia;
|
|
|
|
|
|
|
|
export namespace InputSingleMedia {
|
|
|
|
export type inputSingleMedia = {
|
|
|
|
_: 'inputSingleMedia',
|
|
|
|
flags?: number,
|
|
|
|
media: InputMedia,
|
|
|
|
random_id: string,
|
|
|
|
message: string,
|
|
|
|
entities?: Array<MessageEntity>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/WebAuthorization
|
|
|
|
*/
|
|
|
|
export type WebAuthorization = WebAuthorization.webAuthorization;
|
|
|
|
|
|
|
|
export namespace WebAuthorization {
|
|
|
|
export type webAuthorization = {
|
|
|
|
_: 'webAuthorization',
|
|
|
|
hash: string,
|
|
|
|
bot_id: number,
|
|
|
|
domain: string,
|
|
|
|
browser: string,
|
|
|
|
platform: string,
|
|
|
|
date_created: number,
|
|
|
|
date_active: number,
|
|
|
|
ip: string,
|
|
|
|
region: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/account.WebAuthorizations
|
|
|
|
*/
|
|
|
|
export type AccountWebAuthorizations = AccountWebAuthorizations.accountWebAuthorizations;
|
|
|
|
|
|
|
|
export namespace AccountWebAuthorizations {
|
|
|
|
export type accountWebAuthorizations = {
|
|
|
|
_: 'account.webAuthorizations',
|
|
|
|
authorizations: Array<WebAuthorization>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputMessage
|
|
|
|
*/
|
|
|
|
export type InputMessage = InputMessage.inputMessageID | InputMessage.inputMessageReplyTo | InputMessage.inputMessagePinned;
|
|
|
|
|
|
|
|
export namespace InputMessage {
|
|
|
|
export type inputMessageID = {
|
|
|
|
_: 'inputMessageID',
|
|
|
|
id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessageReplyTo = {
|
|
|
|
_: 'inputMessageReplyTo',
|
|
|
|
id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputMessagePinned = {
|
|
|
|
_: 'inputMessagePinned'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputDialogPeer
|
|
|
|
*/
|
|
|
|
export type InputDialogPeer = InputDialogPeer.inputDialogPeer | InputDialogPeer.inputDialogPeerFolder;
|
|
|
|
|
|
|
|
export namespace InputDialogPeer {
|
|
|
|
export type inputDialogPeer = {
|
|
|
|
_: 'inputDialogPeer',
|
|
|
|
peer: InputPeer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputDialogPeerFolder = {
|
|
|
|
_: 'inputDialogPeerFolder',
|
|
|
|
folder_id: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/DialogPeer
|
|
|
|
*/
|
|
|
|
export type DialogPeer = DialogPeer.dialogPeer | DialogPeer.dialogPeerFolder;
|
|
|
|
|
|
|
|
export namespace DialogPeer {
|
|
|
|
export type dialogPeer = {
|
|
|
|
_: 'dialogPeer',
|
|
|
|
peer: Peer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type dialogPeerFolder = {
|
|
|
|
_: 'dialogPeerFolder',
|
|
|
|
folder_id: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.FoundStickerSets
|
|
|
|
*/
|
|
|
|
export type MessagesFoundStickerSets = MessagesFoundStickerSets.messagesFoundStickerSetsNotModified | MessagesFoundStickerSets.messagesFoundStickerSets;
|
|
|
|
|
|
|
|
export namespace MessagesFoundStickerSets {
|
|
|
|
export type messagesFoundStickerSetsNotModified = {
|
|
|
|
_: 'messages.foundStickerSetsNotModified'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messagesFoundStickerSets = {
|
|
|
|
_: 'messages.foundStickerSets',
|
|
|
|
hash: number,
|
|
|
|
sets: Array<StickerSetCovered>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/FileHash
|
|
|
|
*/
|
|
|
|
export type FileHash = FileHash.fileHash;
|
|
|
|
|
|
|
|
export namespace FileHash {
|
|
|
|
export type fileHash = {
|
|
|
|
_: 'fileHash',
|
|
|
|
offset: number,
|
|
|
|
limit: number,
|
|
|
|
hash: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputClientProxy
|
|
|
|
*/
|
|
|
|
export type InputClientProxy = InputClientProxy.inputClientProxy;
|
|
|
|
|
|
|
|
export namespace InputClientProxy {
|
|
|
|
export type inputClientProxy = {
|
|
|
|
_: 'inputClientProxy',
|
|
|
|
address: string,
|
|
|
|
port: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/help.TermsOfServiceUpdate
|
|
|
|
*/
|
|
|
|
export type HelpTermsOfServiceUpdate = HelpTermsOfServiceUpdate.helpTermsOfServiceUpdateEmpty | HelpTermsOfServiceUpdate.helpTermsOfServiceUpdate;
|
|
|
|
|
|
|
|
export namespace HelpTermsOfServiceUpdate {
|
|
|
|
export type helpTermsOfServiceUpdateEmpty = {
|
|
|
|
_: 'help.termsOfServiceUpdateEmpty',
|
|
|
|
expires: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type helpTermsOfServiceUpdate = {
|
|
|
|
_: 'help.termsOfServiceUpdate',
|
|
|
|
expires: number,
|
|
|
|
terms_of_service: HelpTermsOfService
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputSecureFile
|
|
|
|
*/
|
|
|
|
export type InputSecureFile = InputSecureFile.inputSecureFileUploaded | InputSecureFile.inputSecureFile;
|
|
|
|
|
|
|
|
export namespace InputSecureFile {
|
|
|
|
export type inputSecureFileUploaded = {
|
|
|
|
_: 'inputSecureFileUploaded',
|
|
|
|
id: string,
|
|
|
|
parts: number,
|
|
|
|
md5_checksum: string,
|
|
|
|
file_hash: Uint8Array | number[],
|
|
|
|
secret: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputSecureFile = {
|
|
|
|
_: 'inputSecureFile',
|
|
|
|
id: string,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/SecureFile
|
|
|
|
*/
|
|
|
|
export type SecureFile = SecureFile.secureFileEmpty | SecureFile.secureFile;
|
|
|
|
|
|
|
|
export namespace SecureFile {
|
|
|
|
export type secureFileEmpty = {
|
|
|
|
_: 'secureFileEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureFile = {
|
|
|
|
_: 'secureFile',
|
|
|
|
id: string,
|
|
|
|
access_hash: string,
|
|
|
|
size: number,
|
|
|
|
dc_id: number,
|
|
|
|
date: number,
|
|
|
|
file_hash: Uint8Array | number[],
|
|
|
|
secret: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/SecureData
|
|
|
|
*/
|
|
|
|
export type SecureData = SecureData.secureData;
|
|
|
|
|
|
|
|
export namespace SecureData {
|
|
|
|
export type secureData = {
|
|
|
|
_: 'secureData',
|
|
|
|
data: Uint8Array | number[],
|
|
|
|
data_hash: Uint8Array | number[],
|
|
|
|
secret: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/SecurePlainData
|
|
|
|
*/
|
|
|
|
export type SecurePlainData = SecurePlainData.securePlainPhone | SecurePlainData.securePlainEmail;
|
|
|
|
|
|
|
|
export namespace SecurePlainData {
|
|
|
|
export type securePlainPhone = {
|
|
|
|
_: 'securePlainPhone',
|
|
|
|
phone: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type securePlainEmail = {
|
|
|
|
_: 'securePlainEmail',
|
|
|
|
email: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/SecureValueType
|
|
|
|
*/
|
|
|
|
export type SecureValueType = SecureValueType.secureValueTypePersonalDetails | SecureValueType.secureValueTypePassport | SecureValueType.secureValueTypeDriverLicense | SecureValueType.secureValueTypeIdentityCard | SecureValueType.secureValueTypeInternalPassport | SecureValueType.secureValueTypeAddress | SecureValueType.secureValueTypeUtilityBill | SecureValueType.secureValueTypeBankStatement | SecureValueType.secureValueTypeRentalAgreement | SecureValueType.secureValueTypePassportRegistration | SecureValueType.secureValueTypeTemporaryRegistration | SecureValueType.secureValueTypePhone | SecureValueType.secureValueTypeEmail;
|
|
|
|
|
|
|
|
export namespace SecureValueType {
|
|
|
|
export type secureValueTypePersonalDetails = {
|
|
|
|
_: 'secureValueTypePersonalDetails'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueTypePassport = {
|
|
|
|
_: 'secureValueTypePassport'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueTypeDriverLicense = {
|
|
|
|
_: 'secureValueTypeDriverLicense'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueTypeIdentityCard = {
|
|
|
|
_: 'secureValueTypeIdentityCard'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueTypeInternalPassport = {
|
|
|
|
_: 'secureValueTypeInternalPassport'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueTypeAddress = {
|
|
|
|
_: 'secureValueTypeAddress'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueTypeUtilityBill = {
|
|
|
|
_: 'secureValueTypeUtilityBill'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueTypeBankStatement = {
|
|
|
|
_: 'secureValueTypeBankStatement'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueTypeRentalAgreement = {
|
|
|
|
_: 'secureValueTypeRentalAgreement'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueTypePassportRegistration = {
|
|
|
|
_: 'secureValueTypePassportRegistration'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueTypeTemporaryRegistration = {
|
|
|
|
_: 'secureValueTypeTemporaryRegistration'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueTypePhone = {
|
|
|
|
_: 'secureValueTypePhone'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueTypeEmail = {
|
|
|
|
_: 'secureValueTypeEmail'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/SecureValue
|
|
|
|
*/
|
|
|
|
export type SecureValue = SecureValue.secureValue;
|
|
|
|
|
|
|
|
export namespace SecureValue {
|
|
|
|
export type secureValue = {
|
|
|
|
_: 'secureValue',
|
|
|
|
flags?: number,
|
|
|
|
type: SecureValueType,
|
|
|
|
data?: SecureData,
|
|
|
|
front_side?: SecureFile,
|
|
|
|
reverse_side?: SecureFile,
|
|
|
|
selfie?: SecureFile,
|
|
|
|
translation?: Array<SecureFile>,
|
|
|
|
files?: Array<SecureFile>,
|
|
|
|
plain_data?: SecurePlainData,
|
|
|
|
hash: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputSecureValue
|
|
|
|
*/
|
|
|
|
export type InputSecureValue = InputSecureValue.inputSecureValue;
|
|
|
|
|
|
|
|
export namespace InputSecureValue {
|
|
|
|
export type inputSecureValue = {
|
|
|
|
_: 'inputSecureValue',
|
|
|
|
flags?: number,
|
|
|
|
type: SecureValueType,
|
|
|
|
data?: SecureData,
|
|
|
|
front_side?: InputSecureFile,
|
|
|
|
reverse_side?: InputSecureFile,
|
|
|
|
selfie?: InputSecureFile,
|
|
|
|
translation?: Array<InputSecureFile>,
|
|
|
|
files?: Array<InputSecureFile>,
|
|
|
|
plain_data?: SecurePlainData
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/SecureValueHash
|
|
|
|
*/
|
|
|
|
export type SecureValueHash = SecureValueHash.secureValueHash;
|
|
|
|
|
|
|
|
export namespace SecureValueHash {
|
|
|
|
export type secureValueHash = {
|
|
|
|
_: 'secureValueHash',
|
|
|
|
type: SecureValueType,
|
|
|
|
hash: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/SecureValueError
|
|
|
|
*/
|
|
|
|
export type SecureValueError = SecureValueError.secureValueErrorData | SecureValueError.secureValueErrorFrontSide | SecureValueError.secureValueErrorReverseSide | SecureValueError.secureValueErrorSelfie | SecureValueError.secureValueErrorFile | SecureValueError.secureValueErrorFiles | SecureValueError.secureValueError | SecureValueError.secureValueErrorTranslationFile | SecureValueError.secureValueErrorTranslationFiles;
|
|
|
|
|
|
|
|
export namespace SecureValueError {
|
|
|
|
export type secureValueErrorData = {
|
|
|
|
_: 'secureValueErrorData',
|
|
|
|
type: SecureValueType,
|
|
|
|
data_hash: Uint8Array | number[],
|
|
|
|
field: string,
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueErrorFrontSide = {
|
|
|
|
_: 'secureValueErrorFrontSide',
|
|
|
|
type: SecureValueType,
|
|
|
|
file_hash: Uint8Array | number[],
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueErrorReverseSide = {
|
|
|
|
_: 'secureValueErrorReverseSide',
|
|
|
|
type: SecureValueType,
|
|
|
|
file_hash: Uint8Array | number[],
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueErrorSelfie = {
|
|
|
|
_: 'secureValueErrorSelfie',
|
|
|
|
type: SecureValueType,
|
|
|
|
file_hash: Uint8Array | number[],
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueErrorFile = {
|
|
|
|
_: 'secureValueErrorFile',
|
|
|
|
type: SecureValueType,
|
|
|
|
file_hash: Uint8Array | number[],
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueErrorFiles = {
|
|
|
|
_: 'secureValueErrorFiles',
|
|
|
|
type: SecureValueType,
|
|
|
|
file_hash: Array<Uint8Array | number[]>,
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueError = {
|
|
|
|
_: 'secureValueError',
|
|
|
|
type: SecureValueType,
|
|
|
|
hash: Uint8Array | number[],
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueErrorTranslationFile = {
|
|
|
|
_: 'secureValueErrorTranslationFile',
|
|
|
|
type: SecureValueType,
|
|
|
|
file_hash: Uint8Array | number[],
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureValueErrorTranslationFiles = {
|
|
|
|
_: 'secureValueErrorTranslationFiles',
|
|
|
|
type: SecureValueType,
|
|
|
|
file_hash: Array<Uint8Array | number[]>,
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/SecureCredentialsEncrypted
|
|
|
|
*/
|
|
|
|
export type SecureCredentialsEncrypted = SecureCredentialsEncrypted.secureCredentialsEncrypted;
|
|
|
|
|
|
|
|
export namespace SecureCredentialsEncrypted {
|
|
|
|
export type secureCredentialsEncrypted = {
|
|
|
|
_: 'secureCredentialsEncrypted',
|
|
|
|
data: Uint8Array | number[],
|
|
|
|
hash: Uint8Array | number[],
|
|
|
|
secret: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/account.AuthorizationForm
|
|
|
|
*/
|
|
|
|
export type AccountAuthorizationForm = AccountAuthorizationForm.accountAuthorizationForm;
|
|
|
|
|
|
|
|
export namespace AccountAuthorizationForm {
|
|
|
|
export type accountAuthorizationForm = {
|
|
|
|
_: 'account.authorizationForm',
|
|
|
|
flags?: number,
|
|
|
|
required_types: Array<SecureRequiredType>,
|
|
|
|
values: Array<SecureValue>,
|
|
|
|
errors: Array<SecureValueError>,
|
|
|
|
users: Array<User>,
|
|
|
|
privacy_policy_url?: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/account.SentEmailCode
|
|
|
|
*/
|
|
|
|
export type AccountSentEmailCode = AccountSentEmailCode.accountSentEmailCode;
|
|
|
|
|
|
|
|
export namespace AccountSentEmailCode {
|
|
|
|
export type accountSentEmailCode = {
|
|
|
|
_: 'account.sentEmailCode',
|
|
|
|
email_pattern: string,
|
|
|
|
length: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/help.DeepLinkInfo
|
|
|
|
*/
|
|
|
|
export type HelpDeepLinkInfo = HelpDeepLinkInfo.helpDeepLinkInfoEmpty | HelpDeepLinkInfo.helpDeepLinkInfo;
|
|
|
|
|
|
|
|
export namespace HelpDeepLinkInfo {
|
|
|
|
export type helpDeepLinkInfoEmpty = {
|
|
|
|
_: 'help.deepLinkInfoEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type helpDeepLinkInfo = {
|
|
|
|
_: 'help.deepLinkInfo',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
update_app?: true,
|
|
|
|
}>,
|
|
|
|
message: string,
|
|
|
|
entities?: Array<MessageEntity>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/SavedContact
|
|
|
|
*/
|
|
|
|
export type SavedContact = SavedContact.savedPhoneContact;
|
|
|
|
|
|
|
|
export namespace SavedContact {
|
|
|
|
export type savedPhoneContact = {
|
|
|
|
_: 'savedPhoneContact',
|
|
|
|
phone: string,
|
|
|
|
first_name: string,
|
|
|
|
last_name: string,
|
|
|
|
date: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/account.Takeout
|
|
|
|
*/
|
|
|
|
export type AccountTakeout = AccountTakeout.accountTakeout;
|
|
|
|
|
|
|
|
export namespace AccountTakeout {
|
|
|
|
export type accountTakeout = {
|
|
|
|
_: 'account.takeout',
|
|
|
|
id: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PasswordKdfAlgo
|
|
|
|
*/
|
|
|
|
export type PasswordKdfAlgo = PasswordKdfAlgo.passwordKdfAlgoUnknown | PasswordKdfAlgo.passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow;
|
|
|
|
|
|
|
|
export namespace PasswordKdfAlgo {
|
|
|
|
export type passwordKdfAlgoUnknown = {
|
|
|
|
_: 'passwordKdfAlgoUnknown'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow = {
|
|
|
|
_: 'passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow',
|
|
|
|
salt1: Uint8Array | number[],
|
|
|
|
salt2: Uint8Array | number[],
|
|
|
|
g: number,
|
|
|
|
p: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/SecurePasswordKdfAlgo
|
|
|
|
*/
|
|
|
|
export type SecurePasswordKdfAlgo = SecurePasswordKdfAlgo.securePasswordKdfAlgoUnknown | SecurePasswordKdfAlgo.securePasswordKdfAlgoPBKDF2HMACSHA512iter100000 | SecurePasswordKdfAlgo.securePasswordKdfAlgoSHA512;
|
|
|
|
|
|
|
|
export namespace SecurePasswordKdfAlgo {
|
|
|
|
export type securePasswordKdfAlgoUnknown = {
|
|
|
|
_: 'securePasswordKdfAlgoUnknown'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type securePasswordKdfAlgoPBKDF2HMACSHA512iter100000 = {
|
|
|
|
_: 'securePasswordKdfAlgoPBKDF2HMACSHA512iter100000',
|
|
|
|
salt: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type securePasswordKdfAlgoSHA512 = {
|
|
|
|
_: 'securePasswordKdfAlgoSHA512',
|
|
|
|
salt: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/SecureSecretSettings
|
|
|
|
*/
|
|
|
|
export type SecureSecretSettings = SecureSecretSettings.secureSecretSettings;
|
|
|
|
|
|
|
|
export namespace SecureSecretSettings {
|
|
|
|
export type secureSecretSettings = {
|
|
|
|
_: 'secureSecretSettings',
|
|
|
|
secure_algo: SecurePasswordKdfAlgo,
|
|
|
|
secure_secret: Uint8Array | number[],
|
|
|
|
secure_secret_id: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputCheckPasswordSRP
|
|
|
|
*/
|
|
|
|
export type InputCheckPasswordSRP = InputCheckPasswordSRP.inputCheckPasswordEmpty | InputCheckPasswordSRP.inputCheckPasswordSRP;
|
|
|
|
|
|
|
|
export namespace InputCheckPasswordSRP {
|
|
|
|
export type inputCheckPasswordEmpty = {
|
|
|
|
_: 'inputCheckPasswordEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputCheckPasswordSRP = {
|
|
|
|
_: 'inputCheckPasswordSRP',
|
|
|
|
srp_id: string,
|
|
|
|
A: Uint8Array | number[],
|
|
|
|
M1: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/SecureRequiredType
|
|
|
|
*/
|
|
|
|
export type SecureRequiredType = SecureRequiredType.secureRequiredType | SecureRequiredType.secureRequiredTypeOneOf;
|
|
|
|
|
|
|
|
export namespace SecureRequiredType {
|
|
|
|
export type secureRequiredType = {
|
|
|
|
_: 'secureRequiredType',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
native_names?: true,
|
|
|
|
selfie_required?: true,
|
|
|
|
translation_required?: true,
|
|
|
|
}>,
|
|
|
|
type: SecureValueType
|
|
|
|
};
|
|
|
|
|
|
|
|
export type secureRequiredTypeOneOf = {
|
|
|
|
_: 'secureRequiredTypeOneOf',
|
|
|
|
types: Array<SecureRequiredType>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/help.PassportConfig
|
|
|
|
*/
|
|
|
|
export type HelpPassportConfig = HelpPassportConfig.helpPassportConfigNotModified | HelpPassportConfig.helpPassportConfig;
|
|
|
|
|
|
|
|
export namespace HelpPassportConfig {
|
|
|
|
export type helpPassportConfigNotModified = {
|
|
|
|
_: 'help.passportConfigNotModified'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type helpPassportConfig = {
|
|
|
|
_: 'help.passportConfig',
|
|
|
|
hash: number,
|
|
|
|
countries_langs: DataJSON
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputAppEvent
|
|
|
|
*/
|
|
|
|
export type InputAppEvent = InputAppEvent.inputAppEvent;
|
|
|
|
|
|
|
|
export namespace InputAppEvent {
|
|
|
|
export type inputAppEvent = {
|
|
|
|
_: 'inputAppEvent',
|
|
|
|
time: number,
|
|
|
|
type: string,
|
|
|
|
peer: string,
|
|
|
|
data: JSONValue
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/JSONObjectValue
|
|
|
|
*/
|
|
|
|
export type JSONObjectValue = JSONObjectValue.jsonObjectValue;
|
|
|
|
|
|
|
|
export namespace JSONObjectValue {
|
|
|
|
export type jsonObjectValue = {
|
|
|
|
_: 'jsonObjectValue',
|
|
|
|
key: string,
|
|
|
|
value: JSONValue
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/JSONValue
|
|
|
|
*/
|
|
|
|
export type JSONValue = JSONValue.jsonNull | JSONValue.jsonBool | JSONValue.jsonNumber | JSONValue.jsonString | JSONValue.jsonArray | JSONValue.jsonObject;
|
|
|
|
|
|
|
|
export namespace JSONValue {
|
|
|
|
export type jsonNull = {
|
|
|
|
_: 'jsonNull'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type jsonBool = {
|
|
|
|
_: 'jsonBool',
|
|
|
|
value: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type jsonNumber = {
|
|
|
|
_: 'jsonNumber',
|
|
|
|
value: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type jsonString = {
|
|
|
|
_: 'jsonString',
|
|
|
|
value: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type jsonArray = {
|
|
|
|
_: 'jsonArray',
|
|
|
|
value: Array<JSONValue>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type jsonObject = {
|
|
|
|
_: 'jsonObject',
|
|
|
|
value: Array<JSONObjectValue>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PageTableCell
|
|
|
|
*/
|
|
|
|
export type PageTableCell = PageTableCell.pageTableCell;
|
|
|
|
|
|
|
|
export namespace PageTableCell {
|
|
|
|
export type pageTableCell = {
|
|
|
|
_: 'pageTableCell',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
header?: true,
|
|
|
|
align_center?: true,
|
|
|
|
align_right?: true,
|
|
|
|
valign_middle?: true,
|
|
|
|
valign_bottom?: true,
|
|
|
|
}>,
|
|
|
|
text?: RichText,
|
|
|
|
colspan?: number,
|
|
|
|
rowspan?: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PageTableRow
|
|
|
|
*/
|
|
|
|
export type PageTableRow = PageTableRow.pageTableRow;
|
|
|
|
|
|
|
|
export namespace PageTableRow {
|
|
|
|
export type pageTableRow = {
|
|
|
|
_: 'pageTableRow',
|
|
|
|
cells: Array<PageTableCell>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PageCaption
|
|
|
|
*/
|
|
|
|
export type PageCaption = PageCaption.pageCaption;
|
|
|
|
|
|
|
|
export namespace PageCaption {
|
|
|
|
export type pageCaption = {
|
|
|
|
_: 'pageCaption',
|
|
|
|
text: RichText,
|
|
|
|
credit: RichText
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PageListItem
|
|
|
|
*/
|
|
|
|
export type PageListItem = PageListItem.pageListItemText | PageListItem.pageListItemBlocks;
|
|
|
|
|
|
|
|
export namespace PageListItem {
|
|
|
|
export type pageListItemText = {
|
|
|
|
_: 'pageListItemText',
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageListItemBlocks = {
|
|
|
|
_: 'pageListItemBlocks',
|
|
|
|
blocks: Array<PageBlock>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PageListOrderedItem
|
|
|
|
*/
|
|
|
|
export type PageListOrderedItem = PageListOrderedItem.pageListOrderedItemText | PageListOrderedItem.pageListOrderedItemBlocks;
|
|
|
|
|
|
|
|
export namespace PageListOrderedItem {
|
|
|
|
export type pageListOrderedItemText = {
|
|
|
|
_: 'pageListOrderedItemText',
|
|
|
|
num: string,
|
|
|
|
text: RichText
|
|
|
|
};
|
|
|
|
|
|
|
|
export type pageListOrderedItemBlocks = {
|
|
|
|
_: 'pageListOrderedItemBlocks',
|
|
|
|
num: string,
|
|
|
|
blocks: Array<PageBlock>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PageRelatedArticle
|
|
|
|
*/
|
|
|
|
export type PageRelatedArticle = PageRelatedArticle.pageRelatedArticle;
|
|
|
|
|
|
|
|
export namespace PageRelatedArticle {
|
|
|
|
export type pageRelatedArticle = {
|
|
|
|
_: 'pageRelatedArticle',
|
|
|
|
flags?: number,
|
|
|
|
url: string,
|
|
|
|
webpage_id: string,
|
|
|
|
title?: string,
|
|
|
|
description?: string,
|
|
|
|
photo_id?: string,
|
|
|
|
author?: string,
|
|
|
|
published_date?: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Page
|
|
|
|
*/
|
|
|
|
export type Page = Page.page;
|
|
|
|
|
|
|
|
export namespace Page {
|
|
|
|
export type page = {
|
|
|
|
_: 'page',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
part?: true,
|
|
|
|
rtl?: true,
|
|
|
|
v2?: true,
|
|
|
|
}>,
|
|
|
|
url: string,
|
|
|
|
blocks: Array<PageBlock>,
|
|
|
|
photos: Array<Photo>,
|
|
|
|
documents: Array<Document>,
|
|
|
|
views?: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/help.SupportName
|
|
|
|
*/
|
|
|
|
export type HelpSupportName = HelpSupportName.helpSupportName;
|
|
|
|
|
|
|
|
export namespace HelpSupportName {
|
|
|
|
export type helpSupportName = {
|
|
|
|
_: 'help.supportName',
|
|
|
|
name: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/help.UserInfo
|
|
|
|
*/
|
|
|
|
export type HelpUserInfo = HelpUserInfo.helpUserInfoEmpty | HelpUserInfo.helpUserInfo;
|
|
|
|
|
|
|
|
export namespace HelpUserInfo {
|
|
|
|
export type helpUserInfoEmpty = {
|
|
|
|
_: 'help.userInfoEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type helpUserInfo = {
|
|
|
|
_: 'help.userInfo',
|
|
|
|
message: string,
|
|
|
|
entities: Array<MessageEntity>,
|
|
|
|
author: string,
|
|
|
|
date: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PollAnswer
|
|
|
|
*/
|
|
|
|
export type PollAnswer = PollAnswer.pollAnswer;
|
|
|
|
|
|
|
|
export namespace PollAnswer {
|
|
|
|
export type pollAnswer = {
|
|
|
|
_: 'pollAnswer',
|
|
|
|
text: string,
|
|
|
|
option: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Poll
|
|
|
|
*/
|
|
|
|
export type Poll = Poll.poll;
|
|
|
|
|
|
|
|
export namespace Poll {
|
|
|
|
export type poll = {
|
|
|
|
_: 'poll',
|
|
|
|
id: string,
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
closed?: true,
|
|
|
|
public_voters?: true,
|
|
|
|
multiple_choice?: true,
|
|
|
|
quiz?: true,
|
|
|
|
}>,
|
|
|
|
question: string,
|
|
|
|
answers: Array<PollAnswer>,
|
|
|
|
close_period?: number,
|
|
|
|
close_date?: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PollAnswerVoters
|
|
|
|
*/
|
|
|
|
export type PollAnswerVoters = PollAnswerVoters.pollAnswerVoters;
|
|
|
|
|
|
|
|
export namespace PollAnswerVoters {
|
|
|
|
export type pollAnswerVoters = {
|
|
|
|
_: 'pollAnswerVoters',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
chosen?: true,
|
|
|
|
correct?: true,
|
|
|
|
}>,
|
|
|
|
option: Uint8Array | number[],
|
|
|
|
voters: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PollResults
|
|
|
|
*/
|
|
|
|
export type PollResults = PollResults.pollResults;
|
|
|
|
|
|
|
|
export namespace PollResults {
|
|
|
|
export type pollResults = {
|
|
|
|
_: 'pollResults',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
min?: true,
|
|
|
|
}>,
|
|
|
|
results?: Array<PollAnswerVoters>,
|
|
|
|
total_voters?: number,
|
|
|
|
recent_voters?: Array<number>,
|
|
|
|
solution?: string,
|
|
|
|
solution_entities?: Array<MessageEntity>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ChatOnlines
|
|
|
|
*/
|
|
|
|
export type ChatOnlines = ChatOnlines.chatOnlines;
|
|
|
|
|
|
|
|
export namespace ChatOnlines {
|
|
|
|
export type chatOnlines = {
|
|
|
|
_: 'chatOnlines',
|
|
|
|
onlines: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/StatsURL
|
|
|
|
*/
|
|
|
|
export type StatsURL = StatsURL.statsURL;
|
|
|
|
|
|
|
|
export namespace StatsURL {
|
|
|
|
export type statsURL = {
|
|
|
|
_: 'statsURL',
|
|
|
|
url: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ChatAdminRights
|
|
|
|
*/
|
|
|
|
export type ChatAdminRights = ChatAdminRights.chatAdminRights;
|
|
|
|
|
|
|
|
export namespace ChatAdminRights {
|
|
|
|
export type chatAdminRights = {
|
|
|
|
_: 'chatAdminRights',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
change_info?: true,
|
|
|
|
post_messages?: true,
|
|
|
|
edit_messages?: true,
|
|
|
|
delete_messages?: true,
|
|
|
|
ban_users?: true,
|
|
|
|
invite_users?: true,
|
|
|
|
pin_messages?: true,
|
|
|
|
add_admins?: true,
|
|
|
|
}>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ChatBannedRights
|
|
|
|
*/
|
|
|
|
export type ChatBannedRights = ChatBannedRights.chatBannedRights;
|
|
|
|
|
|
|
|
export namespace ChatBannedRights {
|
|
|
|
export type chatBannedRights = {
|
|
|
|
_: 'chatBannedRights',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
view_messages?: true,
|
|
|
|
send_messages?: true,
|
|
|
|
send_media?: true,
|
|
|
|
send_stickers?: true,
|
|
|
|
send_gifs?: true,
|
|
|
|
send_games?: true,
|
|
|
|
send_inline?: true,
|
|
|
|
embed_links?: true,
|
|
|
|
send_polls?: true,
|
|
|
|
change_info?: true,
|
|
|
|
invite_users?: true,
|
|
|
|
pin_messages?: true,
|
|
|
|
}>,
|
|
|
|
until_date: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputWallPaper
|
|
|
|
*/
|
|
|
|
export type InputWallPaper = InputWallPaper.inputWallPaper | InputWallPaper.inputWallPaperSlug | InputWallPaper.inputWallPaperNoFile;
|
|
|
|
|
|
|
|
export namespace InputWallPaper {
|
|
|
|
export type inputWallPaper = {
|
|
|
|
_: 'inputWallPaper',
|
|
|
|
id: string,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputWallPaperSlug = {
|
|
|
|
_: 'inputWallPaperSlug',
|
|
|
|
slug: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputWallPaperNoFile = {
|
|
|
|
_: 'inputWallPaperNoFile'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/account.WallPapers
|
|
|
|
*/
|
|
|
|
export type AccountWallPapers = AccountWallPapers.accountWallPapersNotModified | AccountWallPapers.accountWallPapers;
|
|
|
|
|
|
|
|
export namespace AccountWallPapers {
|
|
|
|
export type accountWallPapersNotModified = {
|
|
|
|
_: 'account.wallPapersNotModified'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type accountWallPapers = {
|
|
|
|
_: 'account.wallPapers',
|
|
|
|
hash: number,
|
|
|
|
wallpapers: Array<WallPaper>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/CodeSettings
|
|
|
|
*/
|
|
|
|
export type CodeSettings = CodeSettings.codeSettings;
|
|
|
|
|
|
|
|
export namespace CodeSettings {
|
|
|
|
export type codeSettings = {
|
|
|
|
_: 'codeSettings',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
allow_flashcall?: true,
|
|
|
|
current_number?: true,
|
|
|
|
allow_app_hash?: true,
|
|
|
|
}>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/WallPaperSettings
|
|
|
|
*/
|
|
|
|
export type WallPaperSettings = WallPaperSettings.wallPaperSettings;
|
|
|
|
|
|
|
|
export namespace WallPaperSettings {
|
|
|
|
export type wallPaperSettings = {
|
|
|
|
_: 'wallPaperSettings',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
blur?: true,
|
|
|
|
motion?: true,
|
|
|
|
}>,
|
|
|
|
background_color?: number,
|
|
|
|
second_background_color?: number,
|
|
|
|
intensity?: number,
|
|
|
|
rotation?: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/AutoDownloadSettings
|
|
|
|
*/
|
|
|
|
export type AutoDownloadSettings = AutoDownloadSettings.autoDownloadSettings;
|
|
|
|
|
|
|
|
export namespace AutoDownloadSettings {
|
|
|
|
export type autoDownloadSettings = {
|
|
|
|
_: 'autoDownloadSettings',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
disabled?: true,
|
|
|
|
video_preload_large?: true,
|
|
|
|
audio_preload_next?: true,
|
|
|
|
phonecalls_less_data?: true,
|
|
|
|
}>,
|
|
|
|
photo_size_max: number,
|
|
|
|
video_size_max: number,
|
|
|
|
file_size_max: number,
|
|
|
|
video_upload_maxbitrate: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/account.AutoDownloadSettings
|
|
|
|
*/
|
|
|
|
export type AccountAutoDownloadSettings = AccountAutoDownloadSettings.accountAutoDownloadSettings;
|
|
|
|
|
|
|
|
export namespace AccountAutoDownloadSettings {
|
|
|
|
export type accountAutoDownloadSettings = {
|
|
|
|
_: 'account.autoDownloadSettings',
|
|
|
|
low: AutoDownloadSettings,
|
|
|
|
medium: AutoDownloadSettings,
|
|
|
|
high: AutoDownloadSettings
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/EmojiKeyword
|
|
|
|
*/
|
|
|
|
export type EmojiKeyword = EmojiKeyword.emojiKeyword | EmojiKeyword.emojiKeywordDeleted;
|
|
|
|
|
|
|
|
export namespace EmojiKeyword {
|
|
|
|
export type emojiKeyword = {
|
|
|
|
_: 'emojiKeyword',
|
|
|
|
keyword: string,
|
|
|
|
emoticons: Array<string>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type emojiKeywordDeleted = {
|
|
|
|
_: 'emojiKeywordDeleted',
|
|
|
|
keyword: string,
|
|
|
|
emoticons: Array<string>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/EmojiKeywordsDifference
|
|
|
|
*/
|
|
|
|
export type EmojiKeywordsDifference = EmojiKeywordsDifference.emojiKeywordsDifference;
|
|
|
|
|
|
|
|
export namespace EmojiKeywordsDifference {
|
|
|
|
export type emojiKeywordsDifference = {
|
|
|
|
_: 'emojiKeywordsDifference',
|
|
|
|
lang_code: string,
|
|
|
|
from_version: number,
|
|
|
|
version: number,
|
|
|
|
keywords: Array<EmojiKeyword>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/EmojiURL
|
|
|
|
*/
|
|
|
|
export type EmojiURL = EmojiURL.emojiURL;
|
|
|
|
|
|
|
|
export namespace EmojiURL {
|
|
|
|
export type emojiURL = {
|
|
|
|
_: 'emojiURL',
|
|
|
|
url: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/EmojiLanguage
|
|
|
|
*/
|
|
|
|
export type EmojiLanguage = EmojiLanguage.emojiLanguage;
|
|
|
|
|
|
|
|
export namespace EmojiLanguage {
|
|
|
|
export type emojiLanguage = {
|
|
|
|
_: 'emojiLanguage',
|
|
|
|
lang_code: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/FileLocation
|
|
|
|
*/
|
|
|
|
export type FileLocation = FileLocation.fileLocationToBeDeprecated;
|
|
|
|
|
|
|
|
export namespace FileLocation {
|
|
|
|
export type fileLocationToBeDeprecated = {
|
|
|
|
_: 'fileLocationToBeDeprecated',
|
|
|
|
volume_id: string,
|
|
|
|
local_id: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Folder
|
|
|
|
*/
|
|
|
|
export type Folder = Folder.folder;
|
|
|
|
|
|
|
|
export namespace Folder {
|
|
|
|
export type folder = {
|
|
|
|
_: 'folder',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
autofill_new_broadcasts?: true,
|
|
|
|
autofill_public_groups?: true,
|
|
|
|
autofill_new_correspondents?: true,
|
|
|
|
}>,
|
|
|
|
id: number,
|
|
|
|
title: string,
|
|
|
|
photo?: ChatPhoto
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputFolderPeer
|
|
|
|
*/
|
|
|
|
export type InputFolderPeer = InputFolderPeer.inputFolderPeer;
|
|
|
|
|
|
|
|
export namespace InputFolderPeer {
|
|
|
|
export type inputFolderPeer = {
|
|
|
|
_: 'inputFolderPeer',
|
|
|
|
peer: InputPeer,
|
|
|
|
folder_id: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/FolderPeer
|
|
|
|
*/
|
|
|
|
export type FolderPeer = FolderPeer.folderPeer;
|
|
|
|
|
|
|
|
export namespace FolderPeer {
|
|
|
|
export type folderPeer = {
|
|
|
|
_: 'folderPeer',
|
|
|
|
peer: Peer,
|
|
|
|
folder_id: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.SearchCounter
|
|
|
|
*/
|
|
|
|
export type MessagesSearchCounter = MessagesSearchCounter.messagesSearchCounter;
|
|
|
|
|
|
|
|
export namespace MessagesSearchCounter {
|
|
|
|
export type messagesSearchCounter = {
|
|
|
|
_: 'messages.searchCounter',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
inexact?: true,
|
|
|
|
}>,
|
|
|
|
filter: MessagesFilter,
|
|
|
|
count: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/UrlAuthResult
|
|
|
|
*/
|
|
|
|
export type UrlAuthResult = UrlAuthResult.urlAuthResultRequest | UrlAuthResult.urlAuthResultAccepted | UrlAuthResult.urlAuthResultDefault;
|
|
|
|
|
|
|
|
export namespace UrlAuthResult {
|
|
|
|
export type urlAuthResultRequest = {
|
|
|
|
_: 'urlAuthResultRequest',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
request_write_access?: true,
|
|
|
|
}>,
|
|
|
|
bot: User,
|
|
|
|
domain: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type urlAuthResultAccepted = {
|
|
|
|
_: 'urlAuthResultAccepted',
|
|
|
|
url: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type urlAuthResultDefault = {
|
|
|
|
_: 'urlAuthResultDefault'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ChannelLocation
|
|
|
|
*/
|
|
|
|
export type ChannelLocation = ChannelLocation.channelLocationEmpty | ChannelLocation.channelLocation;
|
|
|
|
|
|
|
|
export namespace ChannelLocation {
|
|
|
|
export type channelLocationEmpty = {
|
|
|
|
_: 'channelLocationEmpty'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type channelLocation = {
|
|
|
|
_: 'channelLocation',
|
|
|
|
geo_point: GeoPoint,
|
|
|
|
address: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/PeerLocated
|
|
|
|
*/
|
|
|
|
export type PeerLocated = PeerLocated.peerLocated | PeerLocated.peerSelfLocated;
|
|
|
|
|
|
|
|
export namespace PeerLocated {
|
|
|
|
export type peerLocated = {
|
|
|
|
_: 'peerLocated',
|
|
|
|
peer: Peer,
|
|
|
|
expires: number,
|
|
|
|
distance: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type peerSelfLocated = {
|
|
|
|
_: 'peerSelfLocated',
|
|
|
|
expires: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/RestrictionReason
|
|
|
|
*/
|
|
|
|
export type RestrictionReason = RestrictionReason.restrictionReason;
|
|
|
|
|
|
|
|
export namespace RestrictionReason {
|
|
|
|
export type restrictionReason = {
|
|
|
|
_: 'restrictionReason',
|
|
|
|
platform: string,
|
|
|
|
reason: string,
|
|
|
|
text: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputTheme
|
|
|
|
*/
|
|
|
|
export type InputTheme = InputTheme.inputTheme | InputTheme.inputThemeSlug;
|
|
|
|
|
|
|
|
export namespace InputTheme {
|
|
|
|
export type inputTheme = {
|
|
|
|
_: 'inputTheme',
|
|
|
|
id: string,
|
|
|
|
access_hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type inputThemeSlug = {
|
|
|
|
_: 'inputThemeSlug',
|
|
|
|
slug: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/Theme
|
|
|
|
*/
|
|
|
|
export type Theme = Theme.theme;
|
|
|
|
|
|
|
|
export namespace Theme {
|
|
|
|
export type theme = {
|
|
|
|
_: 'theme',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
creator?: true,
|
|
|
|
default?: true,
|
|
|
|
}>,
|
|
|
|
id: string,
|
|
|
|
access_hash: string,
|
|
|
|
slug: string,
|
|
|
|
title: string,
|
|
|
|
document?: Document,
|
|
|
|
settings?: ThemeSettings,
|
|
|
|
installs_count: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/account.Themes
|
|
|
|
*/
|
|
|
|
export type AccountThemes = AccountThemes.accountThemesNotModified | AccountThemes.accountThemes;
|
|
|
|
|
|
|
|
export namespace AccountThemes {
|
|
|
|
export type accountThemesNotModified = {
|
|
|
|
_: 'account.themesNotModified'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type accountThemes = {
|
|
|
|
_: 'account.themes',
|
|
|
|
hash: number,
|
|
|
|
themes: Array<Theme>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/auth.LoginToken
|
|
|
|
*/
|
|
|
|
export type AuthLoginToken = AuthLoginToken.authLoginToken | AuthLoginToken.authLoginTokenMigrateTo | AuthLoginToken.authLoginTokenSuccess;
|
|
|
|
|
|
|
|
export namespace AuthLoginToken {
|
|
|
|
export type authLoginToken = {
|
|
|
|
_: 'auth.loginToken',
|
|
|
|
expires: number,
|
|
|
|
token: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type authLoginTokenMigrateTo = {
|
|
|
|
_: 'auth.loginTokenMigrateTo',
|
|
|
|
dc_id: number,
|
|
|
|
token: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type authLoginTokenSuccess = {
|
|
|
|
_: 'auth.loginTokenSuccess',
|
|
|
|
authorization: AuthAuthorization
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/account.ContentSettings
|
|
|
|
*/
|
|
|
|
export type AccountContentSettings = AccountContentSettings.accountContentSettings;
|
|
|
|
|
|
|
|
export namespace AccountContentSettings {
|
|
|
|
export type accountContentSettings = {
|
|
|
|
_: 'account.contentSettings',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
sensitive_enabled?: true,
|
|
|
|
sensitive_can_change?: true,
|
|
|
|
}>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.InactiveChats
|
|
|
|
*/
|
|
|
|
export type MessagesInactiveChats = MessagesInactiveChats.messagesInactiveChats;
|
|
|
|
|
|
|
|
export namespace MessagesInactiveChats {
|
|
|
|
export type messagesInactiveChats = {
|
|
|
|
_: 'messages.inactiveChats',
|
|
|
|
dates: Array<number>,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/BaseTheme
|
|
|
|
*/
|
|
|
|
export type BaseTheme = BaseTheme.baseThemeClassic | BaseTheme.baseThemeDay | BaseTheme.baseThemeNight | BaseTheme.baseThemeTinted | BaseTheme.baseThemeArctic;
|
|
|
|
|
|
|
|
export namespace BaseTheme {
|
|
|
|
export type baseThemeClassic = {
|
|
|
|
_: 'baseThemeClassic'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type baseThemeDay = {
|
|
|
|
_: 'baseThemeDay'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type baseThemeNight = {
|
|
|
|
_: 'baseThemeNight'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type baseThemeTinted = {
|
|
|
|
_: 'baseThemeTinted'
|
|
|
|
};
|
|
|
|
|
|
|
|
export type baseThemeArctic = {
|
|
|
|
_: 'baseThemeArctic'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/InputThemeSettings
|
|
|
|
*/
|
|
|
|
export type InputThemeSettings = InputThemeSettings.inputThemeSettings;
|
|
|
|
|
|
|
|
export namespace InputThemeSettings {
|
|
|
|
export type inputThemeSettings = {
|
|
|
|
_: 'inputThemeSettings',
|
|
|
|
flags?: number,
|
|
|
|
base_theme: BaseTheme,
|
|
|
|
accent_color: number,
|
|
|
|
message_top_color?: number,
|
|
|
|
message_bottom_color?: number,
|
|
|
|
wallpaper?: InputWallPaper,
|
|
|
|
wallpaper_settings?: WallPaperSettings
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/ThemeSettings
|
|
|
|
*/
|
|
|
|
export type ThemeSettings = ThemeSettings.themeSettings;
|
|
|
|
|
|
|
|
export namespace ThemeSettings {
|
|
|
|
export type themeSettings = {
|
|
|
|
_: 'themeSettings',
|
|
|
|
flags?: number,
|
|
|
|
base_theme: BaseTheme,
|
|
|
|
accent_color: number,
|
|
|
|
message_top_color?: number,
|
|
|
|
message_bottom_color?: number,
|
|
|
|
wallpaper?: WallPaper
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/WebPageAttribute
|
|
|
|
*/
|
|
|
|
export type WebPageAttribute = WebPageAttribute.webPageAttributeTheme;
|
|
|
|
|
|
|
|
export namespace WebPageAttribute {
|
|
|
|
export type webPageAttributeTheme = {
|
|
|
|
_: 'webPageAttributeTheme',
|
|
|
|
flags?: number,
|
|
|
|
documents?: Array<Document>,
|
|
|
|
settings?: ThemeSettings
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/MessageUserVote
|
|
|
|
*/
|
|
|
|
export type MessageUserVote = MessageUserVote.messageUserVote | MessageUserVote.messageUserVoteInputOption | MessageUserVote.messageUserVoteMultiple;
|
|
|
|
|
|
|
|
export namespace MessageUserVote {
|
|
|
|
export type messageUserVote = {
|
|
|
|
_: 'messageUserVote',
|
|
|
|
user_id: number,
|
|
|
|
option: Uint8Array | number[],
|
|
|
|
date: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageUserVoteInputOption = {
|
|
|
|
_: 'messageUserVoteInputOption',
|
|
|
|
user_id: number,
|
|
|
|
date: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type messageUserVoteMultiple = {
|
|
|
|
_: 'messageUserVoteMultiple',
|
|
|
|
user_id: number,
|
|
|
|
options: Array<Uint8Array | number[]>,
|
|
|
|
date: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/messages.VotesList
|
|
|
|
*/
|
|
|
|
export type MessagesVotesList = MessagesVotesList.messagesVotesList;
|
|
|
|
|
|
|
|
export namespace MessagesVotesList {
|
|
|
|
export type messagesVotesList = {
|
|
|
|
_: 'messages.votesList',
|
|
|
|
flags?: number,
|
|
|
|
count: number,
|
|
|
|
votes: Array<MessageUserVote>,
|
|
|
|
users: Array<User>,
|
|
|
|
next_offset?: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/BankCardOpenUrl
|
|
|
|
*/
|
|
|
|
export type BankCardOpenUrl = BankCardOpenUrl.bankCardOpenUrl;
|
|
|
|
|
|
|
|
export namespace BankCardOpenUrl {
|
|
|
|
export type bankCardOpenUrl = {
|
|
|
|
_: 'bankCardOpenUrl',
|
|
|
|
url: string,
|
|
|
|
name: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/payments.BankCardData
|
|
|
|
*/
|
|
|
|
export type PaymentsBankCardData = PaymentsBankCardData.paymentsBankCardData;
|
|
|
|
|
|
|
|
export namespace PaymentsBankCardData {
|
|
|
|
export type paymentsBankCardData = {
|
|
|
|
_: 'payments.bankCardData',
|
|
|
|
title: string,
|
|
|
|
open_urls: Array<BankCardOpenUrl>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/DialogFilter
|
|
|
|
*/
|
|
|
|
export type DialogFilter = DialogFilter.dialogFilter;
|
|
|
|
|
|
|
|
export namespace DialogFilter {
|
|
|
|
export type dialogFilter = {
|
|
|
|
_: 'dialogFilter',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
contacts?: true,
|
|
|
|
non_contacts?: true,
|
|
|
|
groups?: true,
|
|
|
|
broadcasts?: true,
|
|
|
|
bots?: true,
|
|
|
|
exclude_muted?: true,
|
|
|
|
exclude_read?: true,
|
|
|
|
exclude_archived?: true,
|
|
|
|
}>,
|
|
|
|
id: number,
|
|
|
|
title: string,
|
|
|
|
emoticon?: string,
|
|
|
|
pinned_peers: Array<InputPeer>,
|
|
|
|
include_peers: Array<InputPeer>,
|
|
|
|
exclude_peers: Array<InputPeer>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/DialogFilterSuggested
|
|
|
|
*/
|
|
|
|
export type DialogFilterSuggested = DialogFilterSuggested.dialogFilterSuggested;
|
|
|
|
|
|
|
|
export namespace DialogFilterSuggested {
|
|
|
|
export type dialogFilterSuggested = {
|
|
|
|
_: 'dialogFilterSuggested',
|
|
|
|
filter: DialogFilter,
|
|
|
|
description: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/StatsDateRangeDays
|
|
|
|
*/
|
|
|
|
export type StatsDateRangeDays = StatsDateRangeDays.statsDateRangeDays;
|
|
|
|
|
|
|
|
export namespace StatsDateRangeDays {
|
|
|
|
export type statsDateRangeDays = {
|
|
|
|
_: 'statsDateRangeDays',
|
|
|
|
min_date: number,
|
|
|
|
max_date: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/StatsAbsValueAndPrev
|
|
|
|
*/
|
|
|
|
export type StatsAbsValueAndPrev = StatsAbsValueAndPrev.statsAbsValueAndPrev;
|
|
|
|
|
|
|
|
export namespace StatsAbsValueAndPrev {
|
|
|
|
export type statsAbsValueAndPrev = {
|
|
|
|
_: 'statsAbsValueAndPrev',
|
|
|
|
current: number,
|
|
|
|
previous: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/StatsPercentValue
|
|
|
|
*/
|
|
|
|
export type StatsPercentValue = StatsPercentValue.statsPercentValue;
|
|
|
|
|
|
|
|
export namespace StatsPercentValue {
|
|
|
|
export type statsPercentValue = {
|
|
|
|
_: 'statsPercentValue',
|
|
|
|
part: number,
|
|
|
|
total: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/StatsGraph
|
|
|
|
*/
|
|
|
|
export type StatsGraph = StatsGraph.statsGraphAsync | StatsGraph.statsGraphError | StatsGraph.statsGraph;
|
|
|
|
|
|
|
|
export namespace StatsGraph {
|
|
|
|
export type statsGraphAsync = {
|
|
|
|
_: 'statsGraphAsync',
|
|
|
|
token: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type statsGraphError = {
|
|
|
|
_: 'statsGraphError',
|
|
|
|
error: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type statsGraph = {
|
|
|
|
_: 'statsGraph',
|
|
|
|
flags?: number,
|
|
|
|
json: DataJSON,
|
|
|
|
zoom_token?: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/MessageInteractionCounters
|
|
|
|
*/
|
|
|
|
export type MessageInteractionCounters = MessageInteractionCounters.messageInteractionCounters;
|
|
|
|
|
|
|
|
export namespace MessageInteractionCounters {
|
|
|
|
export type messageInteractionCounters = {
|
|
|
|
_: 'messageInteractionCounters',
|
|
|
|
msg_id: number,
|
|
|
|
views: number,
|
|
|
|
forwards: number
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/stats.BroadcastStats
|
|
|
|
*/
|
|
|
|
export type StatsBroadcastStats = StatsBroadcastStats.statsBroadcastStats;
|
|
|
|
|
|
|
|
export namespace StatsBroadcastStats {
|
|
|
|
export type statsBroadcastStats = {
|
|
|
|
_: 'stats.broadcastStats',
|
|
|
|
period: StatsDateRangeDays,
|
|
|
|
followers: StatsAbsValueAndPrev,
|
|
|
|
views_per_post: StatsAbsValueAndPrev,
|
|
|
|
shares_per_post: StatsAbsValueAndPrev,
|
|
|
|
enabled_notifications: StatsPercentValue,
|
|
|
|
growth_graph: StatsGraph,
|
|
|
|
followers_graph: StatsGraph,
|
|
|
|
mute_graph: StatsGraph,
|
|
|
|
top_hours_graph: StatsGraph,
|
|
|
|
interactions_graph: StatsGraph,
|
|
|
|
iv_interactions_graph: StatsGraph,
|
|
|
|
views_by_source_graph: StatsGraph,
|
|
|
|
new_followers_by_source_graph: StatsGraph,
|
|
|
|
languages_graph: StatsGraph,
|
|
|
|
recent_message_interactions: Array<MessageInteractionCounters>
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @link https://core.telegram.org/type/help.PromoData
|
|
|
|
*/
|
|
|
|
export type HelpPromoData = HelpPromoData.helpPromoDataEmpty | HelpPromoData.helpPromoData;
|
|
|
|
|
|
|
|
export namespace HelpPromoData {
|
|
|
|
export type helpPromoDataEmpty = {
|
|
|
|
_: 'help.promoDataEmpty',
|
|
|
|
expires: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type helpPromoData = {
|
|
|
|
_: 'help.promoData',
|
|
|
|
flags?: number,
|
|
|
|
pFlags?: Partial<{
|
|
|
|
proxy?: true,
|
|
|
|
}>,
|
|
|
|
expires: number,
|
|
|
|
peer: Peer,
|
|
|
|
chats: Array<Chat>,
|
|
|
|
users: Array<User>,
|
|
|
|
psa_type?: string,
|
|
|
|
psa_message?: string
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ConstructorDeclMap {
|
|
|
|
'error': Error.error,
|
|
|
|
'inputPeerEmpty': InputPeer.inputPeerEmpty,
|
|
|
|
'inputPeerSelf': InputPeer.inputPeerSelf,
|
|
|
|
'inputPeerChat': InputPeer.inputPeerChat,
|
|
|
|
'inputPeerUser': InputPeer.inputPeerUser,
|
|
|
|
'inputPeerChannel': InputPeer.inputPeerChannel,
|
|
|
|
'inputPeerUserFromMessage': InputPeer.inputPeerUserFromMessage,
|
|
|
|
'inputPeerChannelFromMessage': InputPeer.inputPeerChannelFromMessage,
|
|
|
|
'inputUserEmpty': InputUser.inputUserEmpty,
|
|
|
|
'inputUserSelf': InputUser.inputUserSelf,
|
|
|
|
'inputUser': InputUser.inputUser,
|
|
|
|
'inputUserFromMessage': InputUser.inputUserFromMessage,
|
|
|
|
'inputPhoneContact': InputContact.inputPhoneContact,
|
|
|
|
'inputFile': InputFile.inputFile,
|
|
|
|
'inputFileBig': InputFile.inputFileBig,
|
|
|
|
'inputMediaEmpty': InputMedia.inputMediaEmpty,
|
|
|
|
'inputMediaUploadedPhoto': InputMedia.inputMediaUploadedPhoto,
|
|
|
|
'inputMediaPhoto': InputMedia.inputMediaPhoto,
|
|
|
|
'inputMediaGeoPoint': InputMedia.inputMediaGeoPoint,
|
|
|
|
'inputMediaContact': InputMedia.inputMediaContact,
|
|
|
|
'inputMediaUploadedDocument': InputMedia.inputMediaUploadedDocument,
|
|
|
|
'inputMediaDocument': InputMedia.inputMediaDocument,
|
|
|
|
'inputMediaVenue': InputMedia.inputMediaVenue,
|
|
|
|
'inputMediaGifExternal': InputMedia.inputMediaGifExternal,
|
|
|
|
'inputMediaPhotoExternal': InputMedia.inputMediaPhotoExternal,
|
|
|
|
'inputMediaDocumentExternal': InputMedia.inputMediaDocumentExternal,
|
|
|
|
'inputMediaGame': InputMedia.inputMediaGame,
|
|
|
|
'inputMediaInvoice': InputMedia.inputMediaInvoice,
|
|
|
|
'inputMediaGeoLive': InputMedia.inputMediaGeoLive,
|
|
|
|
'inputMediaPoll': InputMedia.inputMediaPoll,
|
|
|
|
'inputMediaDice': InputMedia.inputMediaDice,
|
|
|
|
'inputChatPhotoEmpty': InputChatPhoto.inputChatPhotoEmpty,
|
|
|
|
'inputChatUploadedPhoto': InputChatPhoto.inputChatUploadedPhoto,
|
|
|
|
'inputChatPhoto': InputChatPhoto.inputChatPhoto,
|
|
|
|
'inputGeoPointEmpty': InputGeoPoint.inputGeoPointEmpty,
|
|
|
|
'inputGeoPoint': InputGeoPoint.inputGeoPoint,
|
|
|
|
'inputPhotoEmpty': InputPhoto.inputPhotoEmpty,
|
|
|
|
'inputPhoto': InputPhoto.inputPhoto,
|
|
|
|
'inputFileLocation': InputFileLocation.inputFileLocation,
|
|
|
|
'inputEncryptedFileLocation': InputFileLocation.inputEncryptedFileLocation,
|
|
|
|
'inputDocumentFileLocation': InputFileLocation.inputDocumentFileLocation,
|
|
|
|
'inputSecureFileLocation': InputFileLocation.inputSecureFileLocation,
|
|
|
|
'inputTakeoutFileLocation': InputFileLocation.inputTakeoutFileLocation,
|
|
|
|
'inputPhotoFileLocation': InputFileLocation.inputPhotoFileLocation,
|
|
|
|
'inputPhotoLegacyFileLocation': InputFileLocation.inputPhotoLegacyFileLocation,
|
|
|
|
'inputPeerPhotoFileLocation': InputFileLocation.inputPeerPhotoFileLocation,
|
|
|
|
'inputStickerSetThumb': InputFileLocation.inputStickerSetThumb,
|
|
|
|
'peerUser': Peer.peerUser,
|
|
|
|
'peerChat': Peer.peerChat,
|
|
|
|
'peerChannel': Peer.peerChannel,
|
|
|
|
'storage.fileUnknown': StorageFileType.storageFileUnknown,
|
|
|
|
'storage.filePartial': StorageFileType.storageFilePartial,
|
|
|
|
'storage.fileJpeg': StorageFileType.storageFileJpeg,
|
|
|
|
'storage.fileGif': StorageFileType.storageFileGif,
|
|
|
|
'storage.filePng': StorageFileType.storageFilePng,
|
|
|
|
'storage.filePdf': StorageFileType.storageFilePdf,
|
|
|
|
'storage.fileMp3': StorageFileType.storageFileMp3,
|
|
|
|
'storage.fileMov': StorageFileType.storageFileMov,
|
|
|
|
'storage.fileMp4': StorageFileType.storageFileMp4,
|
|
|
|
'storage.fileWebp': StorageFileType.storageFileWebp,
|
|
|
|
'userEmpty': User.userEmpty,
|
|
|
|
'user': User.user,
|
|
|
|
'userProfilePhotoEmpty': UserProfilePhoto.userProfilePhotoEmpty,
|
|
|
|
'userProfilePhoto': UserProfilePhoto.userProfilePhoto,
|
|
|
|
'userStatusEmpty': UserStatus.userStatusEmpty,
|
|
|
|
'userStatusOnline': UserStatus.userStatusOnline,
|
|
|
|
'userStatusOffline': UserStatus.userStatusOffline,
|
|
|
|
'userStatusRecently': UserStatus.userStatusRecently,
|
|
|
|
'userStatusLastWeek': UserStatus.userStatusLastWeek,
|
|
|
|
'userStatusLastMonth': UserStatus.userStatusLastMonth,
|
|
|
|
'chatEmpty': Chat.chatEmpty,
|
|
|
|
'chat': Chat.chat,
|
|
|
|
'chatForbidden': Chat.chatForbidden,
|
|
|
|
'channel': Chat.channel,
|
|
|
|
'channelForbidden': Chat.channelForbidden,
|
|
|
|
'chatFull': ChatFull.chatFull,
|
|
|
|
'channelFull': ChatFull.channelFull,
|
|
|
|
'chatParticipant': ChatParticipant.chatParticipant,
|
|
|
|
'chatParticipantCreator': ChatParticipant.chatParticipantCreator,
|
|
|
|
'chatParticipantAdmin': ChatParticipant.chatParticipantAdmin,
|
|
|
|
'chatParticipantsForbidden': ChatParticipants.chatParticipantsForbidden,
|
|
|
|
'chatParticipants': ChatParticipants.chatParticipants,
|
|
|
|
'chatPhotoEmpty': ChatPhoto.chatPhotoEmpty,
|
|
|
|
'chatPhoto': ChatPhoto.chatPhoto,
|
|
|
|
'messageEmpty': Message.messageEmpty,
|
|
|
|
'message': Message.message,
|
|
|
|
'messageService': Message.messageService,
|
|
|
|
'messageMediaEmpty': MessageMedia.messageMediaEmpty,
|
|
|
|
'messageMediaPhoto': MessageMedia.messageMediaPhoto,
|
|
|
|
'messageMediaGeo': MessageMedia.messageMediaGeo,
|
|
|
|
'messageMediaContact': MessageMedia.messageMediaContact,
|
|
|
|
'messageMediaUnsupported': MessageMedia.messageMediaUnsupported,
|
|
|
|
'messageMediaDocument': MessageMedia.messageMediaDocument,
|
|
|
|
'messageMediaWebPage': MessageMedia.messageMediaWebPage,
|
|
|
|
'messageMediaVenue': MessageMedia.messageMediaVenue,
|
|
|
|
'messageMediaGame': MessageMedia.messageMediaGame,
|
|
|
|
'messageMediaInvoice': MessageMedia.messageMediaInvoice,
|
|
|
|
'messageMediaGeoLive': MessageMedia.messageMediaGeoLive,
|
|
|
|
'messageMediaPoll': MessageMedia.messageMediaPoll,
|
|
|
|
'messageMediaDice': MessageMedia.messageMediaDice,
|
|
|
|
'messageActionEmpty': MessageAction.messageActionEmpty,
|
|
|
|
'messageActionChatCreate': MessageAction.messageActionChatCreate,
|
|
|
|
'messageActionChatEditTitle': MessageAction.messageActionChatEditTitle,
|
|
|
|
'messageActionChatEditPhoto': MessageAction.messageActionChatEditPhoto,
|
|
|
|
'messageActionChatDeletePhoto': MessageAction.messageActionChatDeletePhoto,
|
|
|
|
'messageActionChatAddUser': MessageAction.messageActionChatAddUser,
|
|
|
|
'messageActionChatDeleteUser': MessageAction.messageActionChatDeleteUser,
|
|
|
|
'messageActionChatJoinedByLink': MessageAction.messageActionChatJoinedByLink,
|
|
|
|
'messageActionChannelCreate': MessageAction.messageActionChannelCreate,
|
|
|
|
'messageActionChatMigrateTo': MessageAction.messageActionChatMigrateTo,
|
|
|
|
'messageActionChannelMigrateFrom': MessageAction.messageActionChannelMigrateFrom,
|
|
|
|
'messageActionPinMessage': MessageAction.messageActionPinMessage,
|
|
|
|
'messageActionHistoryClear': MessageAction.messageActionHistoryClear,
|
|
|
|
'messageActionGameScore': MessageAction.messageActionGameScore,
|
|
|
|
'messageActionPaymentSentMe': MessageAction.messageActionPaymentSentMe,
|
|
|
|
'messageActionPaymentSent': MessageAction.messageActionPaymentSent,
|
|
|
|
'messageActionPhoneCall': MessageAction.messageActionPhoneCall,
|
|
|
|
'messageActionScreenshotTaken': MessageAction.messageActionScreenshotTaken,
|
|
|
|
'messageActionCustomAction': MessageAction.messageActionCustomAction,
|
|
|
|
'messageActionBotAllowed': MessageAction.messageActionBotAllowed,
|
|
|
|
'messageActionSecureValuesSentMe': MessageAction.messageActionSecureValuesSentMe,
|
|
|
|
'messageActionSecureValuesSent': MessageAction.messageActionSecureValuesSent,
|
|
|
|
'messageActionContactSignUp': MessageAction.messageActionContactSignUp,
|
|
|
|
'dialog': Dialog.dialog,
|
|
|
|
'dialogFolder': Dialog.dialogFolder,
|
|
|
|
'photoEmpty': Photo.photoEmpty,
|
|
|
|
'photo': Photo.photo,
|
|
|
|
'photoSizeEmpty': PhotoSize.photoSizeEmpty,
|
|
|
|
'photoSize': PhotoSize.photoSize,
|
|
|
|
'photoCachedSize': PhotoSize.photoCachedSize,
|
|
|
|
'photoStrippedSize': PhotoSize.photoStrippedSize,
|
|
|
|
'geoPointEmpty': GeoPoint.geoPointEmpty,
|
|
|
|
'geoPoint': GeoPoint.geoPoint,
|
|
|
|
'auth.sentCode': AuthSentCode.authSentCode,
|
|
|
|
'auth.authorization': AuthAuthorization.authAuthorization,
|
|
|
|
'auth.authorizationSignUpRequired': AuthAuthorization.authAuthorizationSignUpRequired,
|
|
|
|
'auth.exportedAuthorization': AuthExportedAuthorization.authExportedAuthorization,
|
|
|
|
'inputNotifyPeer': InputNotifyPeer.inputNotifyPeer,
|
|
|
|
'inputNotifyUsers': InputNotifyPeer.inputNotifyUsers,
|
|
|
|
'inputNotifyChats': InputNotifyPeer.inputNotifyChats,
|
|
|
|
'inputNotifyBroadcasts': InputNotifyPeer.inputNotifyBroadcasts,
|
|
|
|
'inputPeerNotifySettings': InputPeerNotifySettings.inputPeerNotifySettings,
|
|
|
|
'peerNotifySettings': PeerNotifySettings.peerNotifySettings,
|
|
|
|
'peerSettings': PeerSettings.peerSettings,
|
|
|
|
'wallPaper': WallPaper.wallPaper,
|
|
|
|
'wallPaperNoFile': WallPaper.wallPaperNoFile,
|
|
|
|
'inputReportReasonSpam': ReportReason.inputReportReasonSpam,
|
|
|
|
'inputReportReasonViolence': ReportReason.inputReportReasonViolence,
|
|
|
|
'inputReportReasonPornography': ReportReason.inputReportReasonPornography,
|
|
|
|
'inputReportReasonChildAbuse': ReportReason.inputReportReasonChildAbuse,
|
|
|
|
'inputReportReasonOther': ReportReason.inputReportReasonOther,
|
|
|
|
'inputReportReasonCopyright': ReportReason.inputReportReasonCopyright,
|
|
|
|
'inputReportReasonGeoIrrelevant': ReportReason.inputReportReasonGeoIrrelevant,
|
|
|
|
'userFull': UserFull.userFull,
|
|
|
|
'contact': Contact.contact,
|
|
|
|
'importedContact': ImportedContact.importedContact,
|
|
|
|
'contactBlocked': ContactBlocked.contactBlocked,
|
|
|
|
'contactStatus': ContactStatus.contactStatus,
|
|
|
|
'contacts.contactsNotModified': ContactsContacts.contactsContactsNotModified,
|
|
|
|
'contacts.contacts': ContactsContacts.contactsContacts,
|
|
|
|
'contacts.importedContacts': ContactsImportedContacts.contactsImportedContacts,
|
|
|
|
'contacts.blocked': ContactsBlocked.contactsBlocked,
|
|
|
|
'contacts.blockedSlice': ContactsBlocked.contactsBlockedSlice,
|
|
|
|
'messages.dialogs': MessagesDialogs.messagesDialogs,
|
|
|
|
'messages.dialogsSlice': MessagesDialogs.messagesDialogsSlice,
|
|
|
|
'messages.dialogsNotModified': MessagesDialogs.messagesDialogsNotModified,
|
|
|
|
'messages.messages': MessagesMessages.messagesMessages,
|
|
|
|
'messages.messagesSlice': MessagesMessages.messagesMessagesSlice,
|
|
|
|
'messages.channelMessages': MessagesMessages.messagesChannelMessages,
|
|
|
|
'messages.messagesNotModified': MessagesMessages.messagesMessagesNotModified,
|
|
|
|
'messages.chats': MessagesChats.messagesChats,
|
|
|
|
'messages.chatsSlice': MessagesChats.messagesChatsSlice,
|
|
|
|
'messages.chatFull': MessagesChatFull.messagesChatFull,
|
|
|
|
'messages.affectedHistory': MessagesAffectedHistory.messagesAffectedHistory,
|
|
|
|
'inputMessagesFilterEmpty': MessagesFilter.inputMessagesFilterEmpty,
|
|
|
|
'inputMessagesFilterPhotos': MessagesFilter.inputMessagesFilterPhotos,
|
|
|
|
'inputMessagesFilterVideo': MessagesFilter.inputMessagesFilterVideo,
|
|
|
|
'inputMessagesFilterPhotoVideo': MessagesFilter.inputMessagesFilterPhotoVideo,
|
|
|
|
'inputMessagesFilterDocument': MessagesFilter.inputMessagesFilterDocument,
|
|
|
|
'inputMessagesFilterUrl': MessagesFilter.inputMessagesFilterUrl,
|
|
|
|
'inputMessagesFilterGif': MessagesFilter.inputMessagesFilterGif,
|
|
|
|
'inputMessagesFilterVoice': MessagesFilter.inputMessagesFilterVoice,
|
|
|
|
'inputMessagesFilterMusic': MessagesFilter.inputMessagesFilterMusic,
|
|
|
|
'inputMessagesFilterChatPhotos': MessagesFilter.inputMessagesFilterChatPhotos,
|
|
|
|
'inputMessagesFilterPhoneCalls': MessagesFilter.inputMessagesFilterPhoneCalls,
|
|
|
|
'inputMessagesFilterRoundVoice': MessagesFilter.inputMessagesFilterRoundVoice,
|
|
|
|
'inputMessagesFilterRoundVideo': MessagesFilter.inputMessagesFilterRoundVideo,
|
|
|
|
'inputMessagesFilterMyMentions': MessagesFilter.inputMessagesFilterMyMentions,
|
|
|
|
'inputMessagesFilterGeo': MessagesFilter.inputMessagesFilterGeo,
|
|
|
|
'inputMessagesFilterContacts': MessagesFilter.inputMessagesFilterContacts,
|
|
|
|
'updateNewMessage': Update.updateNewMessage,
|
|
|
|
'updateMessageID': Update.updateMessageID,
|
|
|
|
'updateDeleteMessages': Update.updateDeleteMessages,
|
|
|
|
'updateUserTyping': Update.updateUserTyping,
|
|
|
|
'updateChatUserTyping': Update.updateChatUserTyping,
|
|
|
|
'updateChatParticipants': Update.updateChatParticipants,
|
|
|
|
'updateUserStatus': Update.updateUserStatus,
|
|
|
|
'updateUserName': Update.updateUserName,
|
|
|
|
'updateUserPhoto': Update.updateUserPhoto,
|
|
|
|
'updateNewEncryptedMessage': Update.updateNewEncryptedMessage,
|
|
|
|
'updateEncryptedChatTyping': Update.updateEncryptedChatTyping,
|
|
|
|
'updateEncryption': Update.updateEncryption,
|
|
|
|
'updateEncryptedMessagesRead': Update.updateEncryptedMessagesRead,
|
|
|
|
'updateChatParticipantAdd': Update.updateChatParticipantAdd,
|
|
|
|
'updateChatParticipantDelete': Update.updateChatParticipantDelete,
|
|
|
|
'updateDcOptions': Update.updateDcOptions,
|
|
|
|
'updateUserBlocked': Update.updateUserBlocked,
|
|
|
|
'updateNotifySettings': Update.updateNotifySettings,
|
|
|
|
'updateServiceNotification': Update.updateServiceNotification,
|
|
|
|
'updatePrivacy': Update.updatePrivacy,
|
|
|
|
'updateUserPhone': Update.updateUserPhone,
|
|
|
|
'updateReadHistoryInbox': Update.updateReadHistoryInbox,
|
|
|
|
'updateReadHistoryOutbox': Update.updateReadHistoryOutbox,
|
|
|
|
'updateWebPage': Update.updateWebPage,
|
|
|
|
'updateReadMessagesContents': Update.updateReadMessagesContents,
|
|
|
|
'updateChannelTooLong': Update.updateChannelTooLong,
|
|
|
|
'updateChannel': Update.updateChannel,
|
|
|
|
'updateNewChannelMessage': Update.updateNewChannelMessage,
|
|
|
|
'updateReadChannelInbox': Update.updateReadChannelInbox,
|
|
|
|
'updateDeleteChannelMessages': Update.updateDeleteChannelMessages,
|
|
|
|
'updateChannelMessageViews': Update.updateChannelMessageViews,
|
|
|
|
'updateChatParticipantAdmin': Update.updateChatParticipantAdmin,
|
|
|
|
'updateNewStickerSet': Update.updateNewStickerSet,
|
|
|
|
'updateStickerSetsOrder': Update.updateStickerSetsOrder,
|
|
|
|
'updateStickerSets': Update.updateStickerSets,
|
|
|
|
'updateSavedGifs': Update.updateSavedGifs,
|
|
|
|
'updateBotInlineQuery': Update.updateBotInlineQuery,
|
|
|
|
'updateBotInlineSend': Update.updateBotInlineSend,
|
|
|
|
'updateEditChannelMessage': Update.updateEditChannelMessage,
|
|
|
|
'updateChannelPinnedMessage': Update.updateChannelPinnedMessage,
|
|
|
|
'updateBotCallbackQuery': Update.updateBotCallbackQuery,
|
|
|
|
'updateEditMessage': Update.updateEditMessage,
|
|
|
|
'updateInlineBotCallbackQuery': Update.updateInlineBotCallbackQuery,
|
|
|
|
'updateReadChannelOutbox': Update.updateReadChannelOutbox,
|
|
|
|
'updateDraftMessage': Update.updateDraftMessage,
|
|
|
|
'updateReadFeaturedStickers': Update.updateReadFeaturedStickers,
|
|
|
|
'updateRecentStickers': Update.updateRecentStickers,
|
|
|
|
'updateConfig': Update.updateConfig,
|
|
|
|
'updatePtsChanged': Update.updatePtsChanged,
|
|
|
|
'updateChannelWebPage': Update.updateChannelWebPage,
|
|
|
|
'updateDialogPinned': Update.updateDialogPinned,
|
|
|
|
'updatePinnedDialogs': Update.updatePinnedDialogs,
|
|
|
|
'updateBotWebhookJSON': Update.updateBotWebhookJSON,
|
|
|
|
'updateBotWebhookJSONQuery': Update.updateBotWebhookJSONQuery,
|
|
|
|
'updateBotShippingQuery': Update.updateBotShippingQuery,
|
|
|
|
'updateBotPrecheckoutQuery': Update.updateBotPrecheckoutQuery,
|
|
|
|
'updatePhoneCall': Update.updatePhoneCall,
|
|
|
|
'updateLangPackTooLong': Update.updateLangPackTooLong,
|
|
|
|
'updateLangPack': Update.updateLangPack,
|
|
|
|
'updateFavedStickers': Update.updateFavedStickers,
|
|
|
|
'updateChannelReadMessagesContents': Update.updateChannelReadMessagesContents,
|
|
|
|
'updateContactsReset': Update.updateContactsReset,
|
|
|
|
'updateChannelAvailableMessages': Update.updateChannelAvailableMessages,
|
|
|
|
'updateDialogUnreadMark': Update.updateDialogUnreadMark,
|
|
|
|
'updateUserPinnedMessage': Update.updateUserPinnedMessage,
|
|
|
|
'updateChatPinnedMessage': Update.updateChatPinnedMessage,
|
|
|
|
'updateMessagePoll': Update.updateMessagePoll,
|
|
|
|
'updateChatDefaultBannedRights': Update.updateChatDefaultBannedRights,
|
|
|
|
'updateFolderPeers': Update.updateFolderPeers,
|
|
|
|
'updatePeerSettings': Update.updatePeerSettings,
|
|
|
|
'updatePeerLocated': Update.updatePeerLocated,
|
|
|
|
'updateNewScheduledMessage': Update.updateNewScheduledMessage,
|
|
|
|
'updateDeleteScheduledMessages': Update.updateDeleteScheduledMessages,
|
|
|
|
'updateTheme': Update.updateTheme,
|
|
|
|
'updateGeoLiveViewed': Update.updateGeoLiveViewed,
|
|
|
|
'updateLoginToken': Update.updateLoginToken,
|
|
|
|
'updateMessagePollVote': Update.updateMessagePollVote,
|
|
|
|
'updateDialogFilter': Update.updateDialogFilter,
|
|
|
|
'updateDialogFilterOrder': Update.updateDialogFilterOrder,
|
|
|
|
'updateDialogFilters': Update.updateDialogFilters,
|
|
|
|
'updates.state': UpdatesState.updatesState,
|
|
|
|
'updates.differenceEmpty': UpdatesDifference.updatesDifferenceEmpty,
|
|
|
|
'updates.difference': UpdatesDifference.updatesDifference,
|
|
|
|
'updates.differenceSlice': UpdatesDifference.updatesDifferenceSlice,
|
|
|
|
'updates.differenceTooLong': UpdatesDifference.updatesDifferenceTooLong,
|
|
|
|
'updatesTooLong': Updates.updatesTooLong,
|
|
|
|
'updateShortMessage': Updates.updateShortMessage,
|
|
|
|
'updateShortChatMessage': Updates.updateShortChatMessage,
|
|
|
|
'updateShort': Updates.updateShort,
|
|
|
|
'updatesCombined': Updates.updatesCombined,
|
|
|
|
'updates': Updates.updates,
|
|
|
|
'updateShortSentMessage': Updates.updateShortSentMessage,
|
|
|
|
'photos.photos': PhotosPhotos.photosPhotos,
|
|
|
|
'photos.photosSlice': PhotosPhotos.photosPhotosSlice,
|
|
|
|
'photos.photo': PhotosPhoto.photosPhoto,
|
|
|
|
'upload.file': UploadFile.uploadFile,
|
|
|
|
'upload.fileCdnRedirect': UploadFile.uploadFileCdnRedirect,
|
|
|
|
'dcOption': DcOption.dcOption,
|
|
|
|
'config': Config.config,
|
|
|
|
'nearestDc': NearestDc.nearestDc,
|
|
|
|
'help.appUpdate': HelpAppUpdate.helpAppUpdate,
|
|
|
|
'help.noAppUpdate': HelpAppUpdate.helpNoAppUpdate,
|
|
|
|
'help.inviteText': HelpInviteText.helpInviteText,
|
|
|
|
'encryptedChatEmpty': EncryptedChat.encryptedChatEmpty,
|
|
|
|
'encryptedChatWaiting': EncryptedChat.encryptedChatWaiting,
|
|
|
|
'encryptedChatRequested': EncryptedChat.encryptedChatRequested,
|
|
|
|
'encryptedChat': EncryptedChat.encryptedChat,
|
|
|
|
'encryptedChatDiscarded': EncryptedChat.encryptedChatDiscarded,
|
|
|
|
'inputEncryptedChat': InputEncryptedChat.inputEncryptedChat,
|
|
|
|
'encryptedFileEmpty': EncryptedFile.encryptedFileEmpty,
|
|
|
|
'encryptedFile': EncryptedFile.encryptedFile,
|
|
|
|
'inputEncryptedFileEmpty': InputEncryptedFile.inputEncryptedFileEmpty,
|
|
|
|
'inputEncryptedFileUploaded': InputEncryptedFile.inputEncryptedFileUploaded,
|
|
|
|
'inputEncryptedFile': InputEncryptedFile.inputEncryptedFile,
|
|
|
|
'inputEncryptedFileBigUploaded': InputEncryptedFile.inputEncryptedFileBigUploaded,
|
|
|
|
'encryptedMessage': EncryptedMessage.encryptedMessage,
|
|
|
|
'encryptedMessageService': EncryptedMessage.encryptedMessageService,
|
|
|
|
'messages.dhConfigNotModified': MessagesDhConfig.messagesDhConfigNotModified,
|
|
|
|
'messages.dhConfig': MessagesDhConfig.messagesDhConfig,
|
|
|
|
'messages.sentEncryptedMessage': MessagesSentEncryptedMessage.messagesSentEncryptedMessage,
|
|
|
|
'messages.sentEncryptedFile': MessagesSentEncryptedMessage.messagesSentEncryptedFile,
|
|
|
|
'inputDocumentEmpty': InputDocument.inputDocumentEmpty,
|
|
|
|
'inputDocument': InputDocument.inputDocument,
|
|
|
|
'documentEmpty': Document.documentEmpty,
|
|
|
|
'document': Document.document,
|
|
|
|
'help.support': HelpSupport.helpSupport,
|
|
|
|
'notifyPeer': NotifyPeer.notifyPeer,
|
|
|
|
'notifyUsers': NotifyPeer.notifyUsers,
|
|
|
|
'notifyChats': NotifyPeer.notifyChats,
|
|
|
|
'notifyBroadcasts': NotifyPeer.notifyBroadcasts,
|
|
|
|
'sendMessageTypingAction': SendMessageAction.sendMessageTypingAction,
|
|
|
|
'sendMessageCancelAction': SendMessageAction.sendMessageCancelAction,
|
|
|
|
'sendMessageRecordVideoAction': SendMessageAction.sendMessageRecordVideoAction,
|
|
|
|
'sendMessageUploadVideoAction': SendMessageAction.sendMessageUploadVideoAction,
|
|
|
|
'sendMessageRecordAudioAction': SendMessageAction.sendMessageRecordAudioAction,
|
|
|
|
'sendMessageUploadAudioAction': SendMessageAction.sendMessageUploadAudioAction,
|
|
|
|
'sendMessageUploadPhotoAction': SendMessageAction.sendMessageUploadPhotoAction,
|
|
|
|
'sendMessageUploadDocumentAction': SendMessageAction.sendMessageUploadDocumentAction,
|
|
|
|
'sendMessageGeoLocationAction': SendMessageAction.sendMessageGeoLocationAction,
|
|
|
|
'sendMessageChooseContactAction': SendMessageAction.sendMessageChooseContactAction,
|
|
|
|
'sendMessageGamePlayAction': SendMessageAction.sendMessageGamePlayAction,
|
|
|
|
'sendMessageRecordRoundAction': SendMessageAction.sendMessageRecordRoundAction,
|
|
|
|
'sendMessageUploadRoundAction': SendMessageAction.sendMessageUploadRoundAction,
|
|
|
|
'contacts.found': ContactsFound.contactsFound,
|
|
|
|
'inputPrivacyKeyStatusTimestamp': InputPrivacyKey.inputPrivacyKeyStatusTimestamp,
|
|
|
|
'inputPrivacyKeyChatInvite': InputPrivacyKey.inputPrivacyKeyChatInvite,
|
|
|
|
'inputPrivacyKeyPhoneCall': InputPrivacyKey.inputPrivacyKeyPhoneCall,
|
|
|
|
'inputPrivacyKeyPhoneP2P': InputPrivacyKey.inputPrivacyKeyPhoneP2P,
|
|
|
|
'inputPrivacyKeyForwards': InputPrivacyKey.inputPrivacyKeyForwards,
|
|
|
|
'inputPrivacyKeyProfilePhoto': InputPrivacyKey.inputPrivacyKeyProfilePhoto,
|
|
|
|
'inputPrivacyKeyPhoneNumber': InputPrivacyKey.inputPrivacyKeyPhoneNumber,
|
|
|
|
'inputPrivacyKeyAddedByPhone': InputPrivacyKey.inputPrivacyKeyAddedByPhone,
|
|
|
|
'privacyKeyStatusTimestamp': PrivacyKey.privacyKeyStatusTimestamp,
|
|
|
|
'privacyKeyChatInvite': PrivacyKey.privacyKeyChatInvite,
|
|
|
|
'privacyKeyPhoneCall': PrivacyKey.privacyKeyPhoneCall,
|
|
|
|
'privacyKeyPhoneP2P': PrivacyKey.privacyKeyPhoneP2P,
|
|
|
|
'privacyKeyForwards': PrivacyKey.privacyKeyForwards,
|
|
|
|
'privacyKeyProfilePhoto': PrivacyKey.privacyKeyProfilePhoto,
|
|
|
|
'privacyKeyPhoneNumber': PrivacyKey.privacyKeyPhoneNumber,
|
|
|
|
'privacyKeyAddedByPhone': PrivacyKey.privacyKeyAddedByPhone,
|
|
|
|
'inputPrivacyValueAllowContacts': InputPrivacyRule.inputPrivacyValueAllowContacts,
|
|
|
|
'inputPrivacyValueAllowAll': InputPrivacyRule.inputPrivacyValueAllowAll,
|
|
|
|
'inputPrivacyValueAllowUsers': InputPrivacyRule.inputPrivacyValueAllowUsers,
|
|
|
|
'inputPrivacyValueDisallowContacts': InputPrivacyRule.inputPrivacyValueDisallowContacts,
|
|
|
|
'inputPrivacyValueDisallowAll': InputPrivacyRule.inputPrivacyValueDisallowAll,
|
|
|
|
'inputPrivacyValueDisallowUsers': InputPrivacyRule.inputPrivacyValueDisallowUsers,
|
|
|
|
'inputPrivacyValueAllowChatParticipants': InputPrivacyRule.inputPrivacyValueAllowChatParticipants,
|
|
|
|
'inputPrivacyValueDisallowChatParticipants': InputPrivacyRule.inputPrivacyValueDisallowChatParticipants,
|
|
|
|
'privacyValueAllowContacts': PrivacyRule.privacyValueAllowContacts,
|
|
|
|
'privacyValueAllowAll': PrivacyRule.privacyValueAllowAll,
|
|
|
|
'privacyValueAllowUsers': PrivacyRule.privacyValueAllowUsers,
|
|
|
|
'privacyValueDisallowContacts': PrivacyRule.privacyValueDisallowContacts,
|
|
|
|
'privacyValueDisallowAll': PrivacyRule.privacyValueDisallowAll,
|
|
|
|
'privacyValueDisallowUsers': PrivacyRule.privacyValueDisallowUsers,
|
|
|
|
'privacyValueAllowChatParticipants': PrivacyRule.privacyValueAllowChatParticipants,
|
|
|
|
'privacyValueDisallowChatParticipants': PrivacyRule.privacyValueDisallowChatParticipants,
|
|
|
|
'account.privacyRules': AccountPrivacyRules.accountPrivacyRules,
|
|
|
|
'accountDaysTTL': AccountDaysTTL.accountDaysTTL,
|
|
|
|
'documentAttributeImageSize': DocumentAttribute.documentAttributeImageSize,
|
|
|
|
'documentAttributeAnimated': DocumentAttribute.documentAttributeAnimated,
|
|
|
|
'documentAttributeSticker': DocumentAttribute.documentAttributeSticker,
|
|
|
|
'documentAttributeVideo': DocumentAttribute.documentAttributeVideo,
|
|
|
|
'documentAttributeAudio': DocumentAttribute.documentAttributeAudio,
|
|
|
|
'documentAttributeFilename': DocumentAttribute.documentAttributeFilename,
|
|
|
|
'documentAttributeHasStickers': DocumentAttribute.documentAttributeHasStickers,
|
|
|
|
'messages.stickersNotModified': MessagesStickers.messagesStickersNotModified,
|
|
|
|
'messages.stickers': MessagesStickers.messagesStickers,
|
|
|
|
'stickerPack': StickerPack.stickerPack,
|
|
|
|
'messages.allStickersNotModified': MessagesAllStickers.messagesAllStickersNotModified,
|
|
|
|
'messages.allStickers': MessagesAllStickers.messagesAllStickers,
|
|
|
|
'messages.affectedMessages': MessagesAffectedMessages.messagesAffectedMessages,
|
|
|
|
'webPageEmpty': WebPage.webPageEmpty,
|
|
|
|
'webPagePending': WebPage.webPagePending,
|
|
|
|
'webPage': WebPage.webPage,
|
|
|
|
'webPageNotModified': WebPage.webPageNotModified,
|
|
|
|
'authorization': Authorization.authorization,
|
|
|
|
'account.authorizations': AccountAuthorizations.accountAuthorizations,
|
|
|
|
'account.password': AccountPassword.accountPassword,
|
|
|
|
'account.passwordSettings': AccountPasswordSettings.accountPasswordSettings,
|
|
|
|
'account.passwordInputSettings': AccountPasswordInputSettings.accountPasswordInputSettings,
|
|
|
|
'auth.passwordRecovery': AuthPasswordRecovery.authPasswordRecovery,
|
|
|
|
'receivedNotifyMessage': ReceivedNotifyMessage.receivedNotifyMessage,
|
|
|
|
'chatInviteEmpty': ExportedChatInvite.chatInviteEmpty,
|
|
|
|
'chatInviteExported': ExportedChatInvite.chatInviteExported,
|
|
|
|
'chatInviteAlready': ChatInvite.chatInviteAlready,
|
|
|
|
'chatInvite': ChatInvite.chatInvite,
|
|
|
|
'inputStickerSetEmpty': InputStickerSet.inputStickerSetEmpty,
|
|
|
|
'inputStickerSetID': InputStickerSet.inputStickerSetID,
|
|
|
|
'inputStickerSetShortName': InputStickerSet.inputStickerSetShortName,
|
|
|
|
'inputStickerSetAnimatedEmoji': InputStickerSet.inputStickerSetAnimatedEmoji,
|
|
|
|
'inputStickerSetDice': InputStickerSet.inputStickerSetDice,
|
|
|
|
'stickerSet': StickerSet.stickerSet,
|
|
|
|
'messages.stickerSet': MessagesStickerSet.messagesStickerSet,
|
|
|
|
'botCommand': BotCommand.botCommand,
|
|
|
|
'botInfo': BotInfo.botInfo,
|
|
|
|
'keyboardButton': KeyboardButton.keyboardButton,
|
|
|
|
'keyboardButtonUrl': KeyboardButton.keyboardButtonUrl,
|
|
|
|
'keyboardButtonCallback': KeyboardButton.keyboardButtonCallback,
|
|
|
|
'keyboardButtonRequestPhone': KeyboardButton.keyboardButtonRequestPhone,
|
|
|
|
'keyboardButtonRequestGeoLocation': KeyboardButton.keyboardButtonRequestGeoLocation,
|
|
|
|
'keyboardButtonSwitchInline': KeyboardButton.keyboardButtonSwitchInline,
|
|
|
|
'keyboardButtonGame': KeyboardButton.keyboardButtonGame,
|
|
|
|
'keyboardButtonBuy': KeyboardButton.keyboardButtonBuy,
|
|
|
|
'keyboardButtonUrlAuth': KeyboardButton.keyboardButtonUrlAuth,
|
|
|
|
'inputKeyboardButtonUrlAuth': KeyboardButton.inputKeyboardButtonUrlAuth,
|
|
|
|
'keyboardButtonRequestPoll': KeyboardButton.keyboardButtonRequestPoll,
|
|
|
|
'keyboardButtonRow': KeyboardButtonRow.keyboardButtonRow,
|
|
|
|
'replyKeyboardHide': ReplyMarkup.replyKeyboardHide,
|
|
|
|
'replyKeyboardForceReply': ReplyMarkup.replyKeyboardForceReply,
|
|
|
|
'replyKeyboardMarkup': ReplyMarkup.replyKeyboardMarkup,
|
|
|
|
'replyInlineMarkup': ReplyMarkup.replyInlineMarkup,
|
|
|
|
'messageEntityUnknown': MessageEntity.messageEntityUnknown,
|
|
|
|
'messageEntityMention': MessageEntity.messageEntityMention,
|
|
|
|
'messageEntityHashtag': MessageEntity.messageEntityHashtag,
|
|
|
|
'messageEntityBotCommand': MessageEntity.messageEntityBotCommand,
|
|
|
|
'messageEntityUrl': MessageEntity.messageEntityUrl,
|
|
|
|
'messageEntityEmail': MessageEntity.messageEntityEmail,
|
|
|
|
'messageEntityBold': MessageEntity.messageEntityBold,
|
|
|
|
'messageEntityItalic': MessageEntity.messageEntityItalic,
|
|
|
|
'messageEntityCode': MessageEntity.messageEntityCode,
|
|
|
|
'messageEntityPre': MessageEntity.messageEntityPre,
|
|
|
|
'messageEntityTextUrl': MessageEntity.messageEntityTextUrl,
|
|
|
|
'messageEntityMentionName': MessageEntity.messageEntityMentionName,
|
|
|
|
'inputMessageEntityMentionName': MessageEntity.inputMessageEntityMentionName,
|
|
|
|
'messageEntityPhone': MessageEntity.messageEntityPhone,
|
|
|
|
'messageEntityCashtag': MessageEntity.messageEntityCashtag,
|
|
|
|
'messageEntityUnderline': MessageEntity.messageEntityUnderline,
|
|
|
|
'messageEntityStrike': MessageEntity.messageEntityStrike,
|
|
|
|
'messageEntityBlockquote': MessageEntity.messageEntityBlockquote,
|
|
|
|
'messageEntityBankCard': MessageEntity.messageEntityBankCard,
|
|
|
|
'inputChannelEmpty': InputChannel.inputChannelEmpty,
|
|
|
|
'inputChannel': InputChannel.inputChannel,
|
|
|
|
'inputChannelFromMessage': InputChannel.inputChannelFromMessage,
|
|
|
|
'contacts.resolvedPeer': ContactsResolvedPeer.contactsResolvedPeer,
|
|
|
|
'messageRange': MessageRange.messageRange,
|
|
|
|
'updates.channelDifferenceEmpty': UpdatesChannelDifference.updatesChannelDifferenceEmpty,
|
|
|
|
'updates.channelDifferenceTooLong': UpdatesChannelDifference.updatesChannelDifferenceTooLong,
|
|
|
|
'updates.channelDifference': UpdatesChannelDifference.updatesChannelDifference,
|
|
|
|
'channelMessagesFilterEmpty': ChannelMessagesFilter.channelMessagesFilterEmpty,
|
|
|
|
'channelMessagesFilter': ChannelMessagesFilter.channelMessagesFilter,
|
|
|
|
'channelParticipant': ChannelParticipant.channelParticipant,
|
|
|
|
'channelParticipantSelf': ChannelParticipant.channelParticipantSelf,
|
|
|
|
'channelParticipantCreator': ChannelParticipant.channelParticipantCreator,
|
|
|
|
'channelParticipantAdmin': ChannelParticipant.channelParticipantAdmin,
|
|
|
|
'channelParticipantBanned': ChannelParticipant.channelParticipantBanned,
|
|
|
|
'channelParticipantsRecent': ChannelParticipantsFilter.channelParticipantsRecent,
|
|
|
|
'channelParticipantsAdmins': ChannelParticipantsFilter.channelParticipantsAdmins,
|
|
|
|
'channelParticipantsKicked': ChannelParticipantsFilter.channelParticipantsKicked,
|
|
|
|
'channelParticipantsBots': ChannelParticipantsFilter.channelParticipantsBots,
|
|
|
|
'channelParticipantsBanned': ChannelParticipantsFilter.channelParticipantsBanned,
|
|
|
|
'channelParticipantsSearch': ChannelParticipantsFilter.channelParticipantsSearch,
|
|
|
|
'channelParticipantsContacts': ChannelParticipantsFilter.channelParticipantsContacts,
|
|
|
|
'channels.channelParticipants': ChannelsChannelParticipants.channelsChannelParticipants,
|
|
|
|
'channels.channelParticipantsNotModified': ChannelsChannelParticipants.channelsChannelParticipantsNotModified,
|
|
|
|
'channels.channelParticipant': ChannelsChannelParticipant.channelsChannelParticipant,
|
|
|
|
'help.termsOfService': HelpTermsOfService.helpTermsOfService,
|
|
|
|
'foundGif': FoundGif.foundGif,
|
|
|
|
'foundGifCached': FoundGif.foundGifCached,
|
|
|
|
'messages.foundGifs': MessagesFoundGifs.messagesFoundGifs,
|
|
|
|
'messages.savedGifsNotModified': MessagesSavedGifs.messagesSavedGifsNotModified,
|
|
|
|
'messages.savedGifs': MessagesSavedGifs.messagesSavedGifs,
|
|
|
|
'inputBotInlineMessageMediaAuto': InputBotInlineMessage.inputBotInlineMessageMediaAuto,
|
|
|
|
'inputBotInlineMessageText': InputBotInlineMessage.inputBotInlineMessageText,
|
|
|
|
'inputBotInlineMessageMediaGeo': InputBotInlineMessage.inputBotInlineMessageMediaGeo,
|
|
|
|
'inputBotInlineMessageMediaVenue': InputBotInlineMessage.inputBotInlineMessageMediaVenue,
|
|
|
|
'inputBotInlineMessageMediaContact': InputBotInlineMessage.inputBotInlineMessageMediaContact,
|
|
|
|
'inputBotInlineMessageGame': InputBotInlineMessage.inputBotInlineMessageGame,
|
|
|
|
'inputBotInlineResult': InputBotInlineResult.inputBotInlineResult,
|
|
|
|
'inputBotInlineResultPhoto': InputBotInlineResult.inputBotInlineResultPhoto,
|
|
|
|
'inputBotInlineResultDocument': InputBotInlineResult.inputBotInlineResultDocument,
|
|
|
|
'inputBotInlineResultGame': InputBotInlineResult.inputBotInlineResultGame,
|
|
|
|
'botInlineMessageMediaAuto': BotInlineMessage.botInlineMessageMediaAuto,
|
|
|
|
'botInlineMessageText': BotInlineMessage.botInlineMessageText,
|
|
|
|
'botInlineMessageMediaGeo': BotInlineMessage.botInlineMessageMediaGeo,
|
|
|
|
'botInlineMessageMediaVenue': BotInlineMessage.botInlineMessageMediaVenue,
|
|
|
|
'botInlineMessageMediaContact': BotInlineMessage.botInlineMessageMediaContact,
|
|
|
|
'botInlineResult': BotInlineResult.botInlineResult,
|
|
|
|
'botInlineMediaResult': BotInlineResult.botInlineMediaResult,
|
|
|
|
'messages.botResults': MessagesBotResults.messagesBotResults,
|
|
|
|
'exportedMessageLink': ExportedMessageLink.exportedMessageLink,
|
|
|
|
'messageFwdHeader': MessageFwdHeader.messageFwdHeader,
|
|
|
|
'auth.codeTypeSms': AuthCodeType.authCodeTypeSms,
|
|
|
|
'auth.codeTypeCall': AuthCodeType.authCodeTypeCall,
|
|
|
|
'auth.codeTypeFlashCall': AuthCodeType.authCodeTypeFlashCall,
|
|
|
|
'auth.sentCodeTypeApp': AuthSentCodeType.authSentCodeTypeApp,
|
|
|
|
'auth.sentCodeTypeSms': AuthSentCodeType.authSentCodeTypeSms,
|
|
|
|
'auth.sentCodeTypeCall': AuthSentCodeType.authSentCodeTypeCall,
|
|
|
|
'auth.sentCodeTypeFlashCall': AuthSentCodeType.authSentCodeTypeFlashCall,
|
|
|
|
'messages.botCallbackAnswer': MessagesBotCallbackAnswer.messagesBotCallbackAnswer,
|
|
|
|
'messages.messageEditData': MessagesMessageEditData.messagesMessageEditData,
|
|
|
|
'inputBotInlineMessageID': InputBotInlineMessageID.inputBotInlineMessageID,
|
|
|
|
'inlineBotSwitchPM': InlineBotSwitchPM.inlineBotSwitchPM,
|
|
|
|
'messages.peerDialogs': MessagesPeerDialogs.messagesPeerDialogs,
|
|
|
|
'topPeer': TopPeer.topPeer,
|
|
|
|
'topPeerCategoryBotsPM': TopPeerCategory.topPeerCategoryBotsPM,
|
|
|
|
'topPeerCategoryBotsInline': TopPeerCategory.topPeerCategoryBotsInline,
|
|
|
|
'topPeerCategoryCorrespondents': TopPeerCategory.topPeerCategoryCorrespondents,
|
|
|
|
'topPeerCategoryGroups': TopPeerCategory.topPeerCategoryGroups,
|
|
|
|
'topPeerCategoryChannels': TopPeerCategory.topPeerCategoryChannels,
|
|
|
|
'topPeerCategoryPhoneCalls': TopPeerCategory.topPeerCategoryPhoneCalls,
|
|
|
|
'topPeerCategoryForwardUsers': TopPeerCategory.topPeerCategoryForwardUsers,
|
|
|
|
'topPeerCategoryForwardChats': TopPeerCategory.topPeerCategoryForwardChats,
|
|
|
|
'topPeerCategoryPeers': TopPeerCategoryPeers.topPeerCategoryPeers,
|
|
|
|
'contacts.topPeersNotModified': ContactsTopPeers.contactsTopPeersNotModified,
|
|
|
|
'contacts.topPeers': ContactsTopPeers.contactsTopPeers,
|
|
|
|
'contacts.topPeersDisabled': ContactsTopPeers.contactsTopPeersDisabled,
|
|
|
|
'draftMessageEmpty': DraftMessage.draftMessageEmpty,
|
|
|
|
'draftMessage': DraftMessage.draftMessage,
|
|
|
|
'messages.featuredStickersNotModified': MessagesFeaturedStickers.messagesFeaturedStickersNotModified,
|
|
|
|
'messages.featuredStickers': MessagesFeaturedStickers.messagesFeaturedStickers,
|
|
|
|
'messages.recentStickersNotModified': MessagesRecentStickers.messagesRecentStickersNotModified,
|
|
|
|
'messages.recentStickers': MessagesRecentStickers.messagesRecentStickers,
|
|
|
|
'messages.archivedStickers': MessagesArchivedStickers.messagesArchivedStickers,
|
|
|
|
'messages.stickerSetInstallResultSuccess': MessagesStickerSetInstallResult.messagesStickerSetInstallResultSuccess,
|
|
|
|
'messages.stickerSetInstallResultArchive': MessagesStickerSetInstallResult.messagesStickerSetInstallResultArchive,
|
|
|
|
'stickerSetCovered': StickerSetCovered.stickerSetCovered,
|
|
|
|
'stickerSetMultiCovered': StickerSetCovered.stickerSetMultiCovered,
|
|
|
|
'maskCoords': MaskCoords.maskCoords,
|
|
|
|
'inputStickeredMediaPhoto': InputStickeredMedia.inputStickeredMediaPhoto,
|
|
|
|
'inputStickeredMediaDocument': InputStickeredMedia.inputStickeredMediaDocument,
|
|
|
|
'game': Game.game,
|
|
|
|
'inputGameID': InputGame.inputGameID,
|
|
|
|
'inputGameShortName': InputGame.inputGameShortName,
|
|
|
|
'highScore': HighScore.highScore,
|
|
|
|
'messages.highScores': MessagesHighScores.messagesHighScores,
|
|
|
|
'textEmpty': RichText.textEmpty,
|
|
|
|
'textPlain': RichText.textPlain,
|
|
|
|
'textBold': RichText.textBold,
|
|
|
|
'textItalic': RichText.textItalic,
|
|
|
|
'textUnderline': RichText.textUnderline,
|
|
|
|
'textStrike': RichText.textStrike,
|
|
|
|
'textFixed': RichText.textFixed,
|
|
|
|
'textUrl': RichText.textUrl,
|
|
|
|
'textEmail': RichText.textEmail,
|
|
|
|
'textConcat': RichText.textConcat,
|
|
|
|
'textSubscript': RichText.textSubscript,
|
|
|
|
'textSuperscript': RichText.textSuperscript,
|
|
|
|
'textMarked': RichText.textMarked,
|
|
|
|
'textPhone': RichText.textPhone,
|
|
|
|
'textImage': RichText.textImage,
|
|
|
|
'textAnchor': RichText.textAnchor,
|
|
|
|
'pageBlockUnsupported': PageBlock.pageBlockUnsupported,
|
|
|
|
'pageBlockTitle': PageBlock.pageBlockTitle,
|
|
|
|
'pageBlockSubtitle': PageBlock.pageBlockSubtitle,
|
|
|
|
'pageBlockAuthorDate': PageBlock.pageBlockAuthorDate,
|
|
|
|
'pageBlockHeader': PageBlock.pageBlockHeader,
|
|
|
|
'pageBlockSubheader': PageBlock.pageBlockSubheader,
|
|
|
|
'pageBlockParagraph': PageBlock.pageBlockParagraph,
|
|
|
|
'pageBlockPreformatted': PageBlock.pageBlockPreformatted,
|
|
|
|
'pageBlockFooter': PageBlock.pageBlockFooter,
|
|
|
|
'pageBlockDivider': PageBlock.pageBlockDivider,
|
|
|
|
'pageBlockAnchor': PageBlock.pageBlockAnchor,
|
|
|
|
'pageBlockList': PageBlock.pageBlockList,
|
|
|
|
'pageBlockBlockquote': PageBlock.pageBlockBlockquote,
|
|
|
|
'pageBlockPullquote': PageBlock.pageBlockPullquote,
|
|
|
|
'pageBlockPhoto': PageBlock.pageBlockPhoto,
|
|
|
|
'pageBlockVideo': PageBlock.pageBlockVideo,
|
|
|
|
'pageBlockCover': PageBlock.pageBlockCover,
|
|
|
|
'pageBlockEmbed': PageBlock.pageBlockEmbed,
|
|
|
|
'pageBlockEmbedPost': PageBlock.pageBlockEmbedPost,
|
|
|
|
'pageBlockCollage': PageBlock.pageBlockCollage,
|
|
|
|
'pageBlockSlideshow': PageBlock.pageBlockSlideshow,
|
|
|
|
'pageBlockChannel': PageBlock.pageBlockChannel,
|
|
|
|
'pageBlockAudio': PageBlock.pageBlockAudio,
|
|
|
|
'pageBlockKicker': PageBlock.pageBlockKicker,
|
|
|
|
'pageBlockTable': PageBlock.pageBlockTable,
|
|
|
|
'pageBlockOrderedList': PageBlock.pageBlockOrderedList,
|
|
|
|
'pageBlockDetails': PageBlock.pageBlockDetails,
|
|
|
|
'pageBlockRelatedArticles': PageBlock.pageBlockRelatedArticles,
|
|
|
|
'pageBlockMap': PageBlock.pageBlockMap,
|
|
|
|
'phoneCallDiscardReasonMissed': PhoneCallDiscardReason.phoneCallDiscardReasonMissed,
|
|
|
|
'phoneCallDiscardReasonDisconnect': PhoneCallDiscardReason.phoneCallDiscardReasonDisconnect,
|
|
|
|
'phoneCallDiscardReasonHangup': PhoneCallDiscardReason.phoneCallDiscardReasonHangup,
|
|
|
|
'phoneCallDiscardReasonBusy': PhoneCallDiscardReason.phoneCallDiscardReasonBusy,
|
|
|
|
'dataJSON': DataJSON.dataJSON,
|
|
|
|
'labeledPrice': LabeledPrice.labeledPrice,
|
|
|
|
'invoice': Invoice.invoice,
|
|
|
|
'paymentCharge': PaymentCharge.paymentCharge,
|
|
|
|
'postAddress': PostAddress.postAddress,
|
|
|
|
'paymentRequestedInfo': PaymentRequestedInfo.paymentRequestedInfo,
|
|
|
|
'paymentSavedCredentialsCard': PaymentSavedCredentials.paymentSavedCredentialsCard,
|
|
|
|
'webDocument': WebDocument.webDocument,
|
|
|
|
'webDocumentNoProxy': WebDocument.webDocumentNoProxy,
|
|
|
|
'inputWebDocument': InputWebDocument.inputWebDocument,
|
|
|
|
'inputWebFileLocation': InputWebFileLocation.inputWebFileLocation,
|
|
|
|
'inputWebFileGeoPointLocation': InputWebFileLocation.inputWebFileGeoPointLocation,
|
|
|
|
'upload.webFile': UploadWebFile.uploadWebFile,
|
|
|
|
'payments.paymentForm': PaymentsPaymentForm.paymentsPaymentForm,
|
|
|
|
'payments.validatedRequestedInfo': PaymentsValidatedRequestedInfo.paymentsValidatedRequestedInfo,
|
|
|
|
'payments.paymentResult': PaymentsPaymentResult.paymentsPaymentResult,
|
|
|
|
'payments.paymentVerificationNeeded': PaymentsPaymentResult.paymentsPaymentVerificationNeeded,
|
|
|
|
'payments.paymentReceipt': PaymentsPaymentReceipt.paymentsPaymentReceipt,
|
|
|
|
'payments.savedInfo': PaymentsSavedInfo.paymentsSavedInfo,
|
|
|
|
'inputPaymentCredentialsSaved': InputPaymentCredentials.inputPaymentCredentialsSaved,
|
|
|
|
'inputPaymentCredentials': InputPaymentCredentials.inputPaymentCredentials,
|
|
|
|
'inputPaymentCredentialsApplePay': InputPaymentCredentials.inputPaymentCredentialsApplePay,
|
|
|
|
'inputPaymentCredentialsAndroidPay': InputPaymentCredentials.inputPaymentCredentialsAndroidPay,
|
|
|
|
'account.tmpPassword': AccountTmpPassword.accountTmpPassword,
|
|
|
|
'shippingOption': ShippingOption.shippingOption,
|
|
|
|
'inputStickerSetItem': InputStickerSetItem.inputStickerSetItem,
|
|
|
|
'inputPhoneCall': InputPhoneCall.inputPhoneCall,
|
|
|
|
'phoneCallEmpty': PhoneCall.phoneCallEmpty,
|
|
|
|
'phoneCallWaiting': PhoneCall.phoneCallWaiting,
|
|
|
|
'phoneCallRequested': PhoneCall.phoneCallRequested,
|
|
|
|
'phoneCallAccepted': PhoneCall.phoneCallAccepted,
|
|
|
|
'phoneCall': PhoneCall.phoneCall,
|
|
|
|
'phoneCallDiscarded': PhoneCall.phoneCallDiscarded,
|
|
|
|
'phoneConnection': PhoneConnection.phoneConnection,
|
|
|
|
'phoneCallProtocol': PhoneCallProtocol.phoneCallProtocol,
|
|
|
|
'phone.phoneCall': PhonePhoneCall.phonePhoneCall,
|
|
|
|
'upload.cdnFileReuploadNeeded': UploadCdnFile.uploadCdnFileReuploadNeeded,
|
|
|
|
'upload.cdnFile': UploadCdnFile.uploadCdnFile,
|
|
|
|
'cdnPublicKey': CdnPublicKey.cdnPublicKey,
|
|
|
|
'cdnConfig': CdnConfig.cdnConfig,
|
|
|
|
'langPackString': LangPackString.langPackString,
|
|
|
|
'langPackStringPluralized': LangPackString.langPackStringPluralized,
|
|
|
|
'langPackStringDeleted': LangPackString.langPackStringDeleted,
|
|
|
|
'langPackDifference': LangPackDifference.langPackDifference,
|
|
|
|
'langPackLanguage': LangPackLanguage.langPackLanguage,
|
|
|
|
'channelAdminLogEventActionChangeTitle': ChannelAdminLogEventAction.channelAdminLogEventActionChangeTitle,
|
|
|
|
'channelAdminLogEventActionChangeAbout': ChannelAdminLogEventAction.channelAdminLogEventActionChangeAbout,
|
|
|
|
'channelAdminLogEventActionChangeUsername': ChannelAdminLogEventAction.channelAdminLogEventActionChangeUsername,
|
|
|
|
'channelAdminLogEventActionChangePhoto': ChannelAdminLogEventAction.channelAdminLogEventActionChangePhoto,
|
|
|
|
'channelAdminLogEventActionToggleInvites': ChannelAdminLogEventAction.channelAdminLogEventActionToggleInvites,
|
|
|
|
'channelAdminLogEventActionToggleSignatures': ChannelAdminLogEventAction.channelAdminLogEventActionToggleSignatures,
|
|
|
|
'channelAdminLogEventActionUpdatePinned': ChannelAdminLogEventAction.channelAdminLogEventActionUpdatePinned,
|
|
|
|
'channelAdminLogEventActionEditMessage': ChannelAdminLogEventAction.channelAdminLogEventActionEditMessage,
|
|
|
|
'channelAdminLogEventActionDeleteMessage': ChannelAdminLogEventAction.channelAdminLogEventActionDeleteMessage,
|
|
|
|
'channelAdminLogEventActionParticipantJoin': ChannelAdminLogEventAction.channelAdminLogEventActionParticipantJoin,
|
|
|
|
'channelAdminLogEventActionParticipantLeave': ChannelAdminLogEventAction.channelAdminLogEventActionParticipantLeave,
|
|
|
|
'channelAdminLogEventActionParticipantInvite': ChannelAdminLogEventAction.channelAdminLogEventActionParticipantInvite,
|
|
|
|
'channelAdminLogEventActionParticipantToggleBan': ChannelAdminLogEventAction.channelAdminLogEventActionParticipantToggleBan,
|
|
|
|
'channelAdminLogEventActionParticipantToggleAdmin': ChannelAdminLogEventAction.channelAdminLogEventActionParticipantToggleAdmin,
|
|
|
|
'channelAdminLogEventActionChangeStickerSet': ChannelAdminLogEventAction.channelAdminLogEventActionChangeStickerSet,
|
|
|
|
'channelAdminLogEventActionTogglePreHistoryHidden': ChannelAdminLogEventAction.channelAdminLogEventActionTogglePreHistoryHidden,
|
|
|
|
'channelAdminLogEventActionDefaultBannedRights': ChannelAdminLogEventAction.channelAdminLogEventActionDefaultBannedRights,
|
|
|
|
'channelAdminLogEventActionStopPoll': ChannelAdminLogEventAction.channelAdminLogEventActionStopPoll,
|
|
|
|
'channelAdminLogEventActionChangeLinkedChat': ChannelAdminLogEventAction.channelAdminLogEventActionChangeLinkedChat,
|
|
|
|
'channelAdminLogEventActionChangeLocation': ChannelAdminLogEventAction.channelAdminLogEventActionChangeLocation,
|
|
|
|
'channelAdminLogEventActionToggleSlowMode': ChannelAdminLogEventAction.channelAdminLogEventActionToggleSlowMode,
|
|
|
|
'channelAdminLogEvent': ChannelAdminLogEvent.channelAdminLogEvent,
|
|
|
|
'channels.adminLogResults': ChannelsAdminLogResults.channelsAdminLogResults,
|
|
|
|
'channelAdminLogEventsFilter': ChannelAdminLogEventsFilter.channelAdminLogEventsFilter,
|
|
|
|
'popularContact': PopularContact.popularContact,
|
|
|
|
'messages.favedStickersNotModified': MessagesFavedStickers.messagesFavedStickersNotModified,
|
|
|
|
'messages.favedStickers': MessagesFavedStickers.messagesFavedStickers,
|
|
|
|
'recentMeUrlUnknown': RecentMeUrl.recentMeUrlUnknown,
|
|
|
|
'recentMeUrlUser': RecentMeUrl.recentMeUrlUser,
|
|
|
|
'recentMeUrlChat': RecentMeUrl.recentMeUrlChat,
|
|
|
|
'recentMeUrlChatInvite': RecentMeUrl.recentMeUrlChatInvite,
|
|
|
|
'recentMeUrlStickerSet': RecentMeUrl.recentMeUrlStickerSet,
|
|
|
|
'help.recentMeUrls': HelpRecentMeUrls.helpRecentMeUrls,
|
|
|
|
'inputSingleMedia': InputSingleMedia.inputSingleMedia,
|
|
|
|
'webAuthorization': WebAuthorization.webAuthorization,
|
|
|
|
'account.webAuthorizations': AccountWebAuthorizations.accountWebAuthorizations,
|
|
|
|
'inputMessageID': InputMessage.inputMessageID,
|
|
|
|
'inputMessageReplyTo': InputMessage.inputMessageReplyTo,
|
|
|
|
'inputMessagePinned': InputMessage.inputMessagePinned,
|
|
|
|
'inputDialogPeer': InputDialogPeer.inputDialogPeer,
|
|
|
|
'inputDialogPeerFolder': InputDialogPeer.inputDialogPeerFolder,
|
|
|
|
'dialogPeer': DialogPeer.dialogPeer,
|
|
|
|
'dialogPeerFolder': DialogPeer.dialogPeerFolder,
|
|
|
|
'messages.foundStickerSetsNotModified': MessagesFoundStickerSets.messagesFoundStickerSetsNotModified,
|
|
|
|
'messages.foundStickerSets': MessagesFoundStickerSets.messagesFoundStickerSets,
|
|
|
|
'fileHash': FileHash.fileHash,
|
|
|
|
'inputClientProxy': InputClientProxy.inputClientProxy,
|
|
|
|
'help.termsOfServiceUpdateEmpty': HelpTermsOfServiceUpdate.helpTermsOfServiceUpdateEmpty,
|
|
|
|
'help.termsOfServiceUpdate': HelpTermsOfServiceUpdate.helpTermsOfServiceUpdate,
|
|
|
|
'inputSecureFileUploaded': InputSecureFile.inputSecureFileUploaded,
|
|
|
|
'inputSecureFile': InputSecureFile.inputSecureFile,
|
|
|
|
'secureFileEmpty': SecureFile.secureFileEmpty,
|
|
|
|
'secureFile': SecureFile.secureFile,
|
|
|
|
'secureData': SecureData.secureData,
|
|
|
|
'securePlainPhone': SecurePlainData.securePlainPhone,
|
|
|
|
'securePlainEmail': SecurePlainData.securePlainEmail,
|
|
|
|
'secureValueTypePersonalDetails': SecureValueType.secureValueTypePersonalDetails,
|
|
|
|
'secureValueTypePassport': SecureValueType.secureValueTypePassport,
|
|
|
|
'secureValueTypeDriverLicense': SecureValueType.secureValueTypeDriverLicense,
|
|
|
|
'secureValueTypeIdentityCard': SecureValueType.secureValueTypeIdentityCard,
|
|
|
|
'secureValueTypeInternalPassport': SecureValueType.secureValueTypeInternalPassport,
|
|
|
|
'secureValueTypeAddress': SecureValueType.secureValueTypeAddress,
|
|
|
|
'secureValueTypeUtilityBill': SecureValueType.secureValueTypeUtilityBill,
|
|
|
|
'secureValueTypeBankStatement': SecureValueType.secureValueTypeBankStatement,
|
|
|
|
'secureValueTypeRentalAgreement': SecureValueType.secureValueTypeRentalAgreement,
|
|
|
|
'secureValueTypePassportRegistration': SecureValueType.secureValueTypePassportRegistration,
|
|
|
|
'secureValueTypeTemporaryRegistration': SecureValueType.secureValueTypeTemporaryRegistration,
|
|
|
|
'secureValueTypePhone': SecureValueType.secureValueTypePhone,
|
|
|
|
'secureValueTypeEmail': SecureValueType.secureValueTypeEmail,
|
|
|
|
'secureValue': SecureValue.secureValue,
|
|
|
|
'inputSecureValue': InputSecureValue.inputSecureValue,
|
|
|
|
'secureValueHash': SecureValueHash.secureValueHash,
|
|
|
|
'secureValueErrorData': SecureValueError.secureValueErrorData,
|
|
|
|
'secureValueErrorFrontSide': SecureValueError.secureValueErrorFrontSide,
|
|
|
|
'secureValueErrorReverseSide': SecureValueError.secureValueErrorReverseSide,
|
|
|
|
'secureValueErrorSelfie': SecureValueError.secureValueErrorSelfie,
|
|
|
|
'secureValueErrorFile': SecureValueError.secureValueErrorFile,
|
|
|
|
'secureValueErrorFiles': SecureValueError.secureValueErrorFiles,
|
|
|
|
'secureValueError': SecureValueError.secureValueError,
|
|
|
|
'secureValueErrorTranslationFile': SecureValueError.secureValueErrorTranslationFile,
|
|
|
|
'secureValueErrorTranslationFiles': SecureValueError.secureValueErrorTranslationFiles,
|
|
|
|
'secureCredentialsEncrypted': SecureCredentialsEncrypted.secureCredentialsEncrypted,
|
|
|
|
'account.authorizationForm': AccountAuthorizationForm.accountAuthorizationForm,
|
|
|
|
'account.sentEmailCode': AccountSentEmailCode.accountSentEmailCode,
|
|
|
|
'help.deepLinkInfoEmpty': HelpDeepLinkInfo.helpDeepLinkInfoEmpty,
|
|
|
|
'help.deepLinkInfo': HelpDeepLinkInfo.helpDeepLinkInfo,
|
|
|
|
'savedPhoneContact': SavedContact.savedPhoneContact,
|
|
|
|
'account.takeout': AccountTakeout.accountTakeout,
|
|
|
|
'passwordKdfAlgoUnknown': PasswordKdfAlgo.passwordKdfAlgoUnknown,
|
|
|
|
'passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow': PasswordKdfAlgo.passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow,
|
|
|
|
'securePasswordKdfAlgoUnknown': SecurePasswordKdfAlgo.securePasswordKdfAlgoUnknown,
|
|
|
|
'securePasswordKdfAlgoPBKDF2HMACSHA512iter100000': SecurePasswordKdfAlgo.securePasswordKdfAlgoPBKDF2HMACSHA512iter100000,
|
|
|
|
'securePasswordKdfAlgoSHA512': SecurePasswordKdfAlgo.securePasswordKdfAlgoSHA512,
|
|
|
|
'secureSecretSettings': SecureSecretSettings.secureSecretSettings,
|
|
|
|
'inputCheckPasswordEmpty': InputCheckPasswordSRP.inputCheckPasswordEmpty,
|
|
|
|
'inputCheckPasswordSRP': InputCheckPasswordSRP.inputCheckPasswordSRP,
|
|
|
|
'secureRequiredType': SecureRequiredType.secureRequiredType,
|
|
|
|
'secureRequiredTypeOneOf': SecureRequiredType.secureRequiredTypeOneOf,
|
|
|
|
'help.passportConfigNotModified': HelpPassportConfig.helpPassportConfigNotModified,
|
|
|
|
'help.passportConfig': HelpPassportConfig.helpPassportConfig,
|
|
|
|
'inputAppEvent': InputAppEvent.inputAppEvent,
|
|
|
|
'jsonObjectValue': JSONObjectValue.jsonObjectValue,
|
|
|
|
'jsonNull': JSONValue.jsonNull,
|
|
|
|
'jsonBool': JSONValue.jsonBool,
|
|
|
|
'jsonNumber': JSONValue.jsonNumber,
|
|
|
|
'jsonString': JSONValue.jsonString,
|
|
|
|
'jsonArray': JSONValue.jsonArray,
|
|
|
|
'jsonObject': JSONValue.jsonObject,
|
|
|
|
'pageTableCell': PageTableCell.pageTableCell,
|
|
|
|
'pageTableRow': PageTableRow.pageTableRow,
|
|
|
|
'pageCaption': PageCaption.pageCaption,
|
|
|
|
'pageListItemText': PageListItem.pageListItemText,
|
|
|
|
'pageListItemBlocks': PageListItem.pageListItemBlocks,
|
|
|
|
'pageListOrderedItemText': PageListOrderedItem.pageListOrderedItemText,
|
|
|
|
'pageListOrderedItemBlocks': PageListOrderedItem.pageListOrderedItemBlocks,
|
|
|
|
'pageRelatedArticle': PageRelatedArticle.pageRelatedArticle,
|
|
|
|
'page': Page.page,
|
|
|
|
'help.supportName': HelpSupportName.helpSupportName,
|
|
|
|
'help.userInfoEmpty': HelpUserInfo.helpUserInfoEmpty,
|
|
|
|
'help.userInfo': HelpUserInfo.helpUserInfo,
|
|
|
|
'pollAnswer': PollAnswer.pollAnswer,
|
|
|
|
'poll': Poll.poll,
|
|
|
|
'pollAnswerVoters': PollAnswerVoters.pollAnswerVoters,
|
|
|
|
'pollResults': PollResults.pollResults,
|
|
|
|
'chatOnlines': ChatOnlines.chatOnlines,
|
|
|
|
'statsURL': StatsURL.statsURL,
|
|
|
|
'chatAdminRights': ChatAdminRights.chatAdminRights,
|
|
|
|
'chatBannedRights': ChatBannedRights.chatBannedRights,
|
|
|
|
'inputWallPaper': InputWallPaper.inputWallPaper,
|
|
|
|
'inputWallPaperSlug': InputWallPaper.inputWallPaperSlug,
|
|
|
|
'inputWallPaperNoFile': InputWallPaper.inputWallPaperNoFile,
|
|
|
|
'account.wallPapersNotModified': AccountWallPapers.accountWallPapersNotModified,
|
|
|
|
'account.wallPapers': AccountWallPapers.accountWallPapers,
|
|
|
|
'codeSettings': CodeSettings.codeSettings,
|
|
|
|
'wallPaperSettings': WallPaperSettings.wallPaperSettings,
|
|
|
|
'autoDownloadSettings': AutoDownloadSettings.autoDownloadSettings,
|
|
|
|
'account.autoDownloadSettings': AccountAutoDownloadSettings.accountAutoDownloadSettings,
|
|
|
|
'emojiKeyword': EmojiKeyword.emojiKeyword,
|
|
|
|
'emojiKeywordDeleted': EmojiKeyword.emojiKeywordDeleted,
|
|
|
|
'emojiKeywordsDifference': EmojiKeywordsDifference.emojiKeywordsDifference,
|
|
|
|
'emojiURL': EmojiURL.emojiURL,
|
|
|
|
'emojiLanguage': EmojiLanguage.emojiLanguage,
|
|
|
|
'fileLocationToBeDeprecated': FileLocation.fileLocationToBeDeprecated,
|
|
|
|
'folder': Folder.folder,
|
|
|
|
'inputFolderPeer': InputFolderPeer.inputFolderPeer,
|
|
|
|
'folderPeer': FolderPeer.folderPeer,
|
|
|
|
'messages.searchCounter': MessagesSearchCounter.messagesSearchCounter,
|
|
|
|
'urlAuthResultRequest': UrlAuthResult.urlAuthResultRequest,
|
|
|
|
'urlAuthResultAccepted': UrlAuthResult.urlAuthResultAccepted,
|
|
|
|
'urlAuthResultDefault': UrlAuthResult.urlAuthResultDefault,
|
|
|
|
'channelLocationEmpty': ChannelLocation.channelLocationEmpty,
|
|
|
|
'channelLocation': ChannelLocation.channelLocation,
|
|
|
|
'peerLocated': PeerLocated.peerLocated,
|
|
|
|
'peerSelfLocated': PeerLocated.peerSelfLocated,
|
|
|
|
'restrictionReason': RestrictionReason.restrictionReason,
|
|
|
|
'inputTheme': InputTheme.inputTheme,
|
|
|
|
'inputThemeSlug': InputTheme.inputThemeSlug,
|
|
|
|
'theme': Theme.theme,
|
|
|
|
'account.themesNotModified': AccountThemes.accountThemesNotModified,
|
|
|
|
'account.themes': AccountThemes.accountThemes,
|
|
|
|
'auth.loginToken': AuthLoginToken.authLoginToken,
|
|
|
|
'auth.loginTokenMigrateTo': AuthLoginToken.authLoginTokenMigrateTo,
|
|
|
|
'auth.loginTokenSuccess': AuthLoginToken.authLoginTokenSuccess,
|
|
|
|
'account.contentSettings': AccountContentSettings.accountContentSettings,
|
|
|
|
'messages.inactiveChats': MessagesInactiveChats.messagesInactiveChats,
|
|
|
|
'baseThemeClassic': BaseTheme.baseThemeClassic,
|
|
|
|
'baseThemeDay': BaseTheme.baseThemeDay,
|
|
|
|
'baseThemeNight': BaseTheme.baseThemeNight,
|
|
|
|
'baseThemeTinted': BaseTheme.baseThemeTinted,
|
|
|
|
'baseThemeArctic': BaseTheme.baseThemeArctic,
|
|
|
|
'inputThemeSettings': InputThemeSettings.inputThemeSettings,
|
|
|
|
'themeSettings': ThemeSettings.themeSettings,
|
|
|
|
'webPageAttributeTheme': WebPageAttribute.webPageAttributeTheme,
|
|
|
|
'messageUserVote': MessageUserVote.messageUserVote,
|
|
|
|
'messageUserVoteInputOption': MessageUserVote.messageUserVoteInputOption,
|
|
|
|
'messageUserVoteMultiple': MessageUserVote.messageUserVoteMultiple,
|
|
|
|
'messages.votesList': MessagesVotesList.messagesVotesList,
|
|
|
|
'bankCardOpenUrl': BankCardOpenUrl.bankCardOpenUrl,
|
|
|
|
'payments.bankCardData': PaymentsBankCardData.paymentsBankCardData,
|
|
|
|
'dialogFilter': DialogFilter.dialogFilter,
|
|
|
|
'dialogFilterSuggested': DialogFilterSuggested.dialogFilterSuggested,
|
|
|
|
'statsDateRangeDays': StatsDateRangeDays.statsDateRangeDays,
|
|
|
|
'statsAbsValueAndPrev': StatsAbsValueAndPrev.statsAbsValueAndPrev,
|
|
|
|
'statsPercentValue': StatsPercentValue.statsPercentValue,
|
|
|
|
'statsGraphAsync': StatsGraph.statsGraphAsync,
|
|
|
|
'statsGraphError': StatsGraph.statsGraphError,
|
|
|
|
'statsGraph': StatsGraph.statsGraph,
|
|
|
|
'messageInteractionCounters': MessageInteractionCounters.messageInteractionCounters,
|
|
|
|
'stats.broadcastStats': StatsBroadcastStats.statsBroadcastStats,
|
|
|
|
'help.promoDataEmpty': HelpPromoData.helpPromoDataEmpty,
|
|
|
|
'help.promoData': HelpPromoData.helpPromoData,
|
|
|
|
}
|
|
|
|
|
|
|
|
export type InvokeAfterMsg = {
|
|
|
|
msg_id: string,
|
|
|
|
query: any
|
|
|
|
};
|
|
|
|
|
|
|
|
export type InvokeAfterMsgs = {
|
|
|
|
msg_ids: Array<string>,
|
|
|
|
query: any
|
|
|
|
};
|
|
|
|
|
|
|
|
export type InitConnection = {
|
|
|
|
flags?: number,
|
|
|
|
api_id: number,
|
|
|
|
device_model: string,
|
|
|
|
system_version: string,
|
|
|
|
app_version: string,
|
|
|
|
system_lang_code: string,
|
|
|
|
lang_pack: string,
|
|
|
|
lang_code: string,
|
|
|
|
proxy?: InputClientProxy,
|
|
|
|
params?: JSONValue,
|
|
|
|
query: any
|
|
|
|
};
|
|
|
|
|
|
|
|
export type InvokeWithLayer = {
|
|
|
|
layer: number,
|
|
|
|
query: any
|
|
|
|
};
|
|
|
|
|
|
|
|
export type InvokeWithoutUpdates = {
|
|
|
|
query: any
|
|
|
|
};
|
|
|
|
|
|
|
|
export type InvokeWithMessagesRange = {
|
|
|
|
range: MessageRange,
|
|
|
|
query: any
|
|
|
|
};
|
|
|
|
|
|
|
|
export type InvokeWithTakeout = {
|
|
|
|
takeout_id: string,
|
|
|
|
query: any
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthSendCode = {
|
|
|
|
phone_number: string,
|
|
|
|
api_id: number,
|
|
|
|
api_hash: string,
|
|
|
|
settings: CodeSettings
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthSignUp = {
|
|
|
|
phone_number: string,
|
|
|
|
phone_code_hash: string,
|
|
|
|
first_name: string,
|
|
|
|
last_name: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthSignIn = {
|
|
|
|
phone_number: string,
|
|
|
|
phone_code_hash: string,
|
|
|
|
phone_code: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthLogOut = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthResetAuthorizations = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthExportAuthorization = {
|
|
|
|
dc_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthImportAuthorization = {
|
|
|
|
id: number,
|
|
|
|
bytes: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthBindTempAuthKey = {
|
|
|
|
perm_auth_key_id: string,
|
|
|
|
nonce: string,
|
|
|
|
expires_at: number,
|
|
|
|
encrypted_message: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthImportBotAuthorization = {
|
|
|
|
flags?: number,
|
|
|
|
api_id: number,
|
|
|
|
api_hash: string,
|
|
|
|
bot_auth_token: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthCheckPassword = {
|
|
|
|
password: InputCheckPasswordSRP
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthRequestPasswordRecovery = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthRecoverPassword = {
|
|
|
|
code: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthResendCode = {
|
|
|
|
phone_number: string,
|
|
|
|
phone_code_hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthCancelCode = {
|
|
|
|
phone_number: string,
|
|
|
|
phone_code_hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthDropTempAuthKeys = {
|
|
|
|
except_auth_keys: Array<string>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthExportLoginToken = {
|
|
|
|
api_id: number,
|
|
|
|
api_hash: string,
|
|
|
|
except_ids: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthImportLoginToken = {
|
|
|
|
token: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AuthAcceptLoginToken = {
|
|
|
|
token: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountRegisterDevice = {
|
|
|
|
flags?: number,
|
|
|
|
no_muted?: true,
|
|
|
|
token_type: number,
|
|
|
|
token: string,
|
|
|
|
app_sandbox: boolean,
|
|
|
|
secret: Uint8Array | number[],
|
|
|
|
other_uids: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountUnregisterDevice = {
|
|
|
|
token_type: number,
|
|
|
|
token: string,
|
|
|
|
other_uids: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountUpdateNotifySettings = {
|
|
|
|
peer: InputNotifyPeer,
|
|
|
|
settings: InputPeerNotifySettings
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetNotifySettings = {
|
|
|
|
peer: InputNotifyPeer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountResetNotifySettings = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountUpdateProfile = {
|
|
|
|
flags?: number,
|
|
|
|
first_name?: string,
|
|
|
|
last_name?: string,
|
|
|
|
about?: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountUpdateStatus = {
|
|
|
|
offline: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetWallPapers = {
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountReportPeer = {
|
|
|
|
peer: InputPeer,
|
|
|
|
reason: ReportReason
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountCheckUsername = {
|
|
|
|
username: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountUpdateUsername = {
|
|
|
|
username: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetPrivacy = {
|
|
|
|
key: InputPrivacyKey
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountSetPrivacy = {
|
|
|
|
key: InputPrivacyKey,
|
|
|
|
rules: Array<InputPrivacyRule>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountDeleteAccount = {
|
|
|
|
reason: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetAccountTTL = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountSetAccountTTL = {
|
|
|
|
ttl: AccountDaysTTL
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountSendChangePhoneCode = {
|
|
|
|
phone_number: string,
|
|
|
|
settings: CodeSettings
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountChangePhone = {
|
|
|
|
phone_number: string,
|
|
|
|
phone_code_hash: string,
|
|
|
|
phone_code: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountUpdateDeviceLocked = {
|
|
|
|
period: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetAuthorizations = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountResetAuthorization = {
|
|
|
|
hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetPassword = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetPasswordSettings = {
|
|
|
|
password: InputCheckPasswordSRP
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountUpdatePasswordSettings = {
|
|
|
|
password: InputCheckPasswordSRP,
|
|
|
|
new_settings: AccountPasswordInputSettings
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountSendConfirmPhoneCode = {
|
|
|
|
hash: string,
|
|
|
|
settings: CodeSettings
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountConfirmPhone = {
|
|
|
|
phone_code_hash: string,
|
|
|
|
phone_code: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetTmpPassword = {
|
|
|
|
password: InputCheckPasswordSRP,
|
|
|
|
period: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetWebAuthorizations = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountResetWebAuthorization = {
|
|
|
|
hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountResetWebAuthorizations = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetAllSecureValues = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetSecureValue = {
|
|
|
|
types: Array<SecureValueType>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountSaveSecureValue = {
|
|
|
|
value: InputSecureValue,
|
|
|
|
secure_secret_id: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountDeleteSecureValue = {
|
|
|
|
types: Array<SecureValueType>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetAuthorizationForm = {
|
|
|
|
bot_id: number,
|
|
|
|
scope: string,
|
|
|
|
public_key: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountAcceptAuthorization = {
|
|
|
|
bot_id: number,
|
|
|
|
scope: string,
|
|
|
|
public_key: string,
|
|
|
|
value_hashes: Array<SecureValueHash>,
|
|
|
|
credentials: SecureCredentialsEncrypted
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountSendVerifyPhoneCode = {
|
|
|
|
phone_number: string,
|
|
|
|
settings: CodeSettings
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountVerifyPhone = {
|
|
|
|
phone_number: string,
|
|
|
|
phone_code_hash: string,
|
|
|
|
phone_code: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountSendVerifyEmailCode = {
|
|
|
|
email: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountVerifyEmail = {
|
|
|
|
email: string,
|
|
|
|
code: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountInitTakeoutSession = {
|
|
|
|
flags?: number,
|
|
|
|
contacts?: true,
|
|
|
|
message_users?: true,
|
|
|
|
message_chats?: true,
|
|
|
|
message_megagroups?: true,
|
|
|
|
message_channels?: true,
|
|
|
|
files?: true,
|
|
|
|
file_max_size?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountFinishTakeoutSession = {
|
|
|
|
flags?: number,
|
|
|
|
success?: true
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountConfirmPasswordEmail = {
|
|
|
|
code: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountResendPasswordEmail = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountCancelPasswordEmail = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetContactSignUpNotification = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountSetContactSignUpNotification = {
|
|
|
|
silent: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetNotifyExceptions = {
|
|
|
|
flags?: number,
|
|
|
|
compare_sound?: true,
|
|
|
|
peer?: InputNotifyPeer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetWallPaper = {
|
|
|
|
wallpaper: InputWallPaper
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountUploadWallPaper = {
|
|
|
|
file: InputFile,
|
|
|
|
mime_type: string,
|
|
|
|
settings: WallPaperSettings
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountSaveWallPaper = {
|
|
|
|
wallpaper: InputWallPaper,
|
|
|
|
unsave: boolean,
|
|
|
|
settings: WallPaperSettings
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountInstallWallPaper = {
|
|
|
|
wallpaper: InputWallPaper,
|
|
|
|
settings: WallPaperSettings
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountResetWallPapers = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetAutoDownloadSettings = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountSaveAutoDownloadSettings = {
|
|
|
|
flags?: number,
|
|
|
|
low?: true,
|
|
|
|
high?: true,
|
|
|
|
settings: AutoDownloadSettings
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountUploadTheme = {
|
|
|
|
flags?: number,
|
|
|
|
file: InputFile,
|
|
|
|
thumb?: InputFile,
|
|
|
|
file_name: string,
|
|
|
|
mime_type: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountCreateTheme = {
|
|
|
|
flags?: number,
|
|
|
|
slug: string,
|
|
|
|
title: string,
|
|
|
|
document?: InputDocument,
|
|
|
|
settings?: InputThemeSettings
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountUpdateTheme = {
|
|
|
|
flags?: number,
|
|
|
|
format: string,
|
|
|
|
theme: InputTheme,
|
|
|
|
slug?: string,
|
|
|
|
title?: string,
|
|
|
|
document?: InputDocument,
|
|
|
|
settings?: InputThemeSettings
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountSaveTheme = {
|
|
|
|
theme: InputTheme,
|
|
|
|
unsave: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountInstallTheme = {
|
|
|
|
flags?: number,
|
|
|
|
dark?: true,
|
|
|
|
format?: string,
|
|
|
|
theme?: InputTheme
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetTheme = {
|
|
|
|
format: string,
|
|
|
|
theme: InputTheme,
|
|
|
|
document_id: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetThemes = {
|
|
|
|
format: string,
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountSetContentSettings = {
|
|
|
|
flags?: number,
|
|
|
|
sensitive_enabled?: true
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetContentSettings = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type AccountGetMultiWallPapers = {
|
|
|
|
wallpapers: Array<InputWallPaper>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type UsersGetUsers = {
|
|
|
|
id: Array<InputUser>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type UsersGetFullUser = {
|
|
|
|
id: InputUser
|
|
|
|
};
|
|
|
|
|
|
|
|
export type UsersSetSecureValueErrors = {
|
|
|
|
id: InputUser,
|
|
|
|
errors: Array<SecureValueError>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsGetContactIDs = {
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsGetStatuses = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsGetContacts = {
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsImportContacts = {
|
|
|
|
contacts: Array<InputContact>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsDeleteContacts = {
|
|
|
|
id: Array<InputUser>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsDeleteByPhones = {
|
|
|
|
phones: Array<string>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsBlock = {
|
|
|
|
id: InputUser
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsUnblock = {
|
|
|
|
id: InputUser
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsGetBlocked = {
|
|
|
|
offset: number,
|
|
|
|
limit: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsSearch = {
|
|
|
|
q: string,
|
|
|
|
limit: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsResolveUsername = {
|
|
|
|
username: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsGetTopPeers = {
|
|
|
|
flags?: number,
|
|
|
|
correspondents?: true,
|
|
|
|
bots_pm?: true,
|
|
|
|
bots_inline?: true,
|
|
|
|
phone_calls?: true,
|
|
|
|
forward_users?: true,
|
|
|
|
forward_chats?: true,
|
|
|
|
groups?: true,
|
|
|
|
channels?: true,
|
|
|
|
offset: number,
|
|
|
|
limit: number,
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsResetTopPeerRating = {
|
|
|
|
category: TopPeerCategory,
|
|
|
|
peer: InputPeer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsResetSaved = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsGetSaved = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsToggleTopPeers = {
|
|
|
|
enabled: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsAddContact = {
|
|
|
|
flags?: number,
|
|
|
|
add_phone_privacy_exception?: true,
|
|
|
|
id: InputUser,
|
|
|
|
first_name: string,
|
|
|
|
last_name: string,
|
|
|
|
phone: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsAcceptContact = {
|
|
|
|
id: InputUser
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ContactsGetLocated = {
|
|
|
|
flags?: number,
|
|
|
|
background?: true,
|
|
|
|
geo_point: InputGeoPoint,
|
|
|
|
self_expires?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetMessages = {
|
|
|
|
id: Array<InputMessage>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetDialogs = {
|
|
|
|
flags?: number,
|
|
|
|
exclude_pinned?: true,
|
|
|
|
folder_id?: number,
|
|
|
|
offset_date: number,
|
|
|
|
offset_id: number,
|
|
|
|
offset_peer: InputPeer,
|
|
|
|
limit: number,
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetHistory = {
|
|
|
|
peer: InputPeer,
|
|
|
|
offset_id: number,
|
|
|
|
offset_date: number,
|
|
|
|
add_offset: number,
|
|
|
|
limit: number,
|
|
|
|
max_id: number,
|
|
|
|
min_id: number,
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSearch = {
|
|
|
|
flags?: number,
|
|
|
|
peer: InputPeer,
|
|
|
|
q: string,
|
|
|
|
from_id?: InputUser,
|
|
|
|
filter: MessagesFilter,
|
|
|
|
min_date: number,
|
|
|
|
max_date: number,
|
|
|
|
offset_id: number,
|
|
|
|
add_offset: number,
|
|
|
|
limit: number,
|
|
|
|
max_id: number,
|
|
|
|
min_id: number,
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesReadHistory = {
|
|
|
|
peer: InputPeer,
|
|
|
|
max_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesDeleteHistory = {
|
|
|
|
flags?: number,
|
|
|
|
just_clear?: true,
|
|
|
|
revoke?: true,
|
|
|
|
peer: InputPeer,
|
|
|
|
max_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesDeleteMessages = {
|
|
|
|
flags?: number,
|
|
|
|
revoke?: true,
|
|
|
|
id: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesReceivedMessages = {
|
|
|
|
max_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSetTyping = {
|
|
|
|
peer: InputPeer,
|
|
|
|
action: SendMessageAction
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSendMessage = {
|
|
|
|
flags?: number,
|
|
|
|
no_webpage?: true,
|
|
|
|
silent?: true,
|
|
|
|
background?: true,
|
|
|
|
clear_draft?: true,
|
|
|
|
peer: InputPeer,
|
|
|
|
reply_to_msg_id?: number,
|
|
|
|
message: string,
|
|
|
|
random_id: string,
|
|
|
|
reply_markup?: ReplyMarkup,
|
|
|
|
entities?: Array<MessageEntity>,
|
|
|
|
schedule_date?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSendMedia = {
|
|
|
|
flags?: number,
|
|
|
|
silent?: true,
|
|
|
|
background?: true,
|
|
|
|
clear_draft?: true,
|
|
|
|
peer: InputPeer,
|
|
|
|
reply_to_msg_id?: number,
|
|
|
|
media: InputMedia,
|
|
|
|
message: string,
|
|
|
|
random_id: string,
|
|
|
|
reply_markup?: ReplyMarkup,
|
|
|
|
entities?: Array<MessageEntity>,
|
|
|
|
schedule_date?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesForwardMessages = {
|
|
|
|
flags?: number,
|
|
|
|
silent?: true,
|
|
|
|
background?: true,
|
|
|
|
with_my_score?: true,
|
|
|
|
grouped?: true,
|
|
|
|
from_peer: InputPeer,
|
|
|
|
id: Array<number>,
|
|
|
|
random_id: Array<string>,
|
|
|
|
to_peer: InputPeer,
|
|
|
|
schedule_date?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesReportSpam = {
|
|
|
|
peer: InputPeer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetPeerSettings = {
|
|
|
|
peer: InputPeer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesReport = {
|
|
|
|
peer: InputPeer,
|
|
|
|
id: Array<number>,
|
|
|
|
reason: ReportReason
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetChats = {
|
|
|
|
id: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetFullChat = {
|
|
|
|
chat_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesEditChatTitle = {
|
|
|
|
chat_id: number,
|
|
|
|
title: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesEditChatPhoto = {
|
|
|
|
chat_id: number,
|
|
|
|
photo: InputChatPhoto
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesAddChatUser = {
|
|
|
|
chat_id: number,
|
|
|
|
user_id: InputUser,
|
|
|
|
fwd_limit: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesDeleteChatUser = {
|
|
|
|
chat_id: number,
|
|
|
|
user_id: InputUser
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesCreateChat = {
|
|
|
|
users: Array<InputUser>,
|
|
|
|
title: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetDhConfig = {
|
|
|
|
version: number,
|
|
|
|
random_length: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesRequestEncryption = {
|
|
|
|
user_id: InputUser,
|
|
|
|
random_id: number,
|
|
|
|
g_a: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesAcceptEncryption = {
|
|
|
|
peer: InputEncryptedChat,
|
|
|
|
g_b: Uint8Array | number[],
|
|
|
|
key_fingerprint: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesDiscardEncryption = {
|
|
|
|
chat_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSetEncryptedTyping = {
|
|
|
|
peer: InputEncryptedChat,
|
|
|
|
typing: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesReadEncryptedHistory = {
|
|
|
|
peer: InputEncryptedChat,
|
|
|
|
max_date: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSendEncrypted = {
|
|
|
|
peer: InputEncryptedChat,
|
|
|
|
random_id: string,
|
|
|
|
data: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSendEncryptedFile = {
|
|
|
|
peer: InputEncryptedChat,
|
|
|
|
random_id: string,
|
|
|
|
data: Uint8Array | number[],
|
|
|
|
file: InputEncryptedFile
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSendEncryptedService = {
|
|
|
|
peer: InputEncryptedChat,
|
|
|
|
random_id: string,
|
|
|
|
data: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesReceivedQueue = {
|
|
|
|
max_qts: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesReportEncryptedSpam = {
|
|
|
|
peer: InputEncryptedChat
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesReadMessageContents = {
|
|
|
|
id: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetStickers = {
|
|
|
|
emoticon: string,
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetAllStickers = {
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetWebPagePreview = {
|
|
|
|
flags?: number,
|
|
|
|
message: string,
|
|
|
|
entities?: Array<MessageEntity>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesExportChatInvite = {
|
|
|
|
peer: InputPeer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesCheckChatInvite = {
|
|
|
|
hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesImportChatInvite = {
|
|
|
|
hash: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetStickerSet = {
|
|
|
|
stickerset: InputStickerSet
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesInstallStickerSet = {
|
|
|
|
stickerset: InputStickerSet,
|
|
|
|
archived: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesUninstallStickerSet = {
|
|
|
|
stickerset: InputStickerSet
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesStartBot = {
|
|
|
|
bot: InputUser,
|
|
|
|
peer: InputPeer,
|
|
|
|
random_id: string,
|
|
|
|
start_param: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetMessagesViews = {
|
|
|
|
peer: InputPeer,
|
|
|
|
id: Array<number>,
|
|
|
|
increment: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesEditChatAdmin = {
|
|
|
|
chat_id: number,
|
|
|
|
user_id: InputUser,
|
|
|
|
is_admin: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesMigrateChat = {
|
|
|
|
chat_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSearchGlobal = {
|
|
|
|
flags?: number,
|
|
|
|
folder_id?: number,
|
|
|
|
q: string,
|
|
|
|
offset_rate: number,
|
|
|
|
offset_peer: InputPeer,
|
|
|
|
offset_id: number,
|
|
|
|
limit: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesReorderStickerSets = {
|
|
|
|
flags?: number,
|
|
|
|
masks?: true,
|
|
|
|
order: Array<string>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetDocumentByHash = {
|
|
|
|
sha256: Uint8Array | number[],
|
|
|
|
size: number,
|
|
|
|
mime_type: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSearchGifs = {
|
|
|
|
q: string,
|
|
|
|
offset: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetSavedGifs = {
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSaveGif = {
|
|
|
|
id: InputDocument,
|
|
|
|
unsave: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetInlineBotResults = {
|
|
|
|
flags?: number,
|
|
|
|
bot: InputUser,
|
|
|
|
peer: InputPeer,
|
|
|
|
geo_point?: InputGeoPoint,
|
|
|
|
query: string,
|
|
|
|
offset: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSetInlineBotResults = {
|
|
|
|
flags?: number,
|
|
|
|
gallery?: true,
|
|
|
|
private?: true,
|
|
|
|
query_id: string,
|
|
|
|
results: Array<InputBotInlineResult>,
|
|
|
|
cache_time: number,
|
|
|
|
next_offset?: string,
|
|
|
|
switch_pm?: InlineBotSwitchPM
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSendInlineBotResult = {
|
|
|
|
flags?: number,
|
|
|
|
silent?: true,
|
|
|
|
background?: true,
|
|
|
|
clear_draft?: true,
|
|
|
|
hide_via?: true,
|
|
|
|
peer: InputPeer,
|
|
|
|
reply_to_msg_id?: number,
|
|
|
|
random_id: string,
|
|
|
|
query_id: string,
|
|
|
|
id: string,
|
|
|
|
schedule_date?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetMessageEditData = {
|
|
|
|
peer: InputPeer,
|
|
|
|
id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesEditMessage = {
|
|
|
|
flags?: number,
|
|
|
|
no_webpage?: true,
|
|
|
|
peer: InputPeer,
|
|
|
|
id: number,
|
|
|
|
message?: string,
|
|
|
|
media?: InputMedia,
|
|
|
|
reply_markup?: ReplyMarkup,
|
|
|
|
entities?: Array<MessageEntity>,
|
|
|
|
schedule_date?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesEditInlineBotMessage = {
|
|
|
|
flags?: number,
|
|
|
|
no_webpage?: true,
|
|
|
|
id: InputBotInlineMessageID,
|
|
|
|
message?: string,
|
|
|
|
media?: InputMedia,
|
|
|
|
reply_markup?: ReplyMarkup,
|
|
|
|
entities?: Array<MessageEntity>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetBotCallbackAnswer = {
|
|
|
|
flags?: number,
|
|
|
|
game?: true,
|
|
|
|
peer: InputPeer,
|
|
|
|
msg_id: number,
|
|
|
|
data?: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSetBotCallbackAnswer = {
|
|
|
|
flags?: number,
|
|
|
|
alert?: true,
|
|
|
|
query_id: string,
|
|
|
|
message?: string,
|
|
|
|
url?: string,
|
|
|
|
cache_time: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetPeerDialogs = {
|
|
|
|
peers: Array<InputDialogPeer>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSaveDraft = {
|
|
|
|
flags?: number,
|
|
|
|
no_webpage?: true,
|
|
|
|
reply_to_msg_id?: number,
|
|
|
|
peer: InputPeer,
|
|
|
|
message: string,
|
|
|
|
entities?: Array<MessageEntity>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetAllDrafts = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetFeaturedStickers = {
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesReadFeaturedStickers = {
|
|
|
|
id: Array<string>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetRecentStickers = {
|
|
|
|
flags?: number,
|
|
|
|
attached?: true,
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSaveRecentSticker = {
|
|
|
|
flags?: number,
|
|
|
|
attached?: true,
|
|
|
|
id: InputDocument,
|
|
|
|
unsave: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesClearRecentStickers = {
|
|
|
|
flags?: number,
|
|
|
|
attached?: true
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetArchivedStickers = {
|
|
|
|
flags?: number,
|
|
|
|
masks?: true,
|
|
|
|
offset_id: string,
|
|
|
|
limit: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetMaskStickers = {
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetAttachedStickers = {
|
|
|
|
media: InputStickeredMedia
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSetGameScore = {
|
|
|
|
flags?: number,
|
|
|
|
edit_message?: true,
|
|
|
|
force?: true,
|
|
|
|
peer: InputPeer,
|
|
|
|
id: number,
|
|
|
|
user_id: InputUser,
|
|
|
|
score: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSetInlineGameScore = {
|
|
|
|
flags?: number,
|
|
|
|
edit_message?: true,
|
|
|
|
force?: true,
|
|
|
|
id: InputBotInlineMessageID,
|
|
|
|
user_id: InputUser,
|
|
|
|
score: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetGameHighScores = {
|
|
|
|
peer: InputPeer,
|
|
|
|
id: number,
|
|
|
|
user_id: InputUser
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetInlineGameHighScores = {
|
|
|
|
id: InputBotInlineMessageID,
|
|
|
|
user_id: InputUser
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetCommonChats = {
|
|
|
|
user_id: InputUser,
|
|
|
|
max_id: number,
|
|
|
|
limit: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetAllChats = {
|
|
|
|
except_ids: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetWebPage = {
|
|
|
|
url: string,
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesToggleDialogPin = {
|
|
|
|
flags?: number,
|
|
|
|
pinned?: true,
|
|
|
|
peer: InputDialogPeer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesReorderPinnedDialogs = {
|
|
|
|
flags?: number,
|
|
|
|
force?: true,
|
|
|
|
folder_id: number,
|
|
|
|
order: Array<InputDialogPeer>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetPinnedDialogs = {
|
|
|
|
folder_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSetBotShippingResults = {
|
|
|
|
flags?: number,
|
|
|
|
query_id: string,
|
|
|
|
error?: string,
|
|
|
|
shipping_options?: Array<ShippingOption>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSetBotPrecheckoutResults = {
|
|
|
|
flags?: number,
|
|
|
|
success?: true,
|
|
|
|
query_id: string,
|
|
|
|
error?: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesUploadMedia = {
|
|
|
|
peer: InputPeer,
|
|
|
|
media: InputMedia
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSendScreenshotNotification = {
|
|
|
|
peer: InputPeer,
|
|
|
|
reply_to_msg_id: number,
|
|
|
|
random_id: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetFavedStickers = {
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesFaveSticker = {
|
|
|
|
id: InputDocument,
|
|
|
|
unfave: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetUnreadMentions = {
|
|
|
|
peer: InputPeer,
|
|
|
|
offset_id: number,
|
|
|
|
add_offset: number,
|
|
|
|
limit: number,
|
|
|
|
max_id: number,
|
|
|
|
min_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesReadMentions = {
|
|
|
|
peer: InputPeer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetRecentLocations = {
|
|
|
|
peer: InputPeer,
|
|
|
|
limit: number,
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSendMultiMedia = {
|
|
|
|
flags?: number,
|
|
|
|
silent?: true,
|
|
|
|
background?: true,
|
|
|
|
clear_draft?: true,
|
|
|
|
peer: InputPeer,
|
|
|
|
reply_to_msg_id?: number,
|
|
|
|
multi_media: Array<InputSingleMedia>,
|
|
|
|
schedule_date?: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesUploadEncryptedFile = {
|
|
|
|
peer: InputEncryptedChat,
|
|
|
|
file: InputEncryptedFile
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSearchStickerSets = {
|
|
|
|
flags?: number,
|
|
|
|
exclude_featured?: true,
|
|
|
|
q: string,
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetSplitRanges = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesMarkDialogUnread = {
|
|
|
|
flags?: number,
|
|
|
|
unread?: true,
|
|
|
|
peer: InputDialogPeer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetDialogUnreadMarks = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesClearAllDrafts = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesUpdatePinnedMessage = {
|
|
|
|
flags?: number,
|
|
|
|
silent?: true,
|
|
|
|
peer: InputPeer,
|
|
|
|
id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSendVote = {
|
|
|
|
peer: InputPeer,
|
|
|
|
msg_id: number,
|
|
|
|
options: Array<Uint8Array | number[]>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetPollResults = {
|
|
|
|
peer: InputPeer,
|
|
|
|
msg_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetOnlines = {
|
|
|
|
peer: InputPeer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetStatsURL = {
|
|
|
|
flags?: number,
|
|
|
|
dark?: true,
|
|
|
|
peer: InputPeer,
|
|
|
|
params: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesEditChatAbout = {
|
|
|
|
peer: InputPeer,
|
|
|
|
about: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesEditChatDefaultBannedRights = {
|
|
|
|
peer: InputPeer,
|
|
|
|
banned_rights: ChatBannedRights
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetEmojiKeywords = {
|
|
|
|
lang_code: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetEmojiKeywordsDifference = {
|
|
|
|
lang_code: string,
|
|
|
|
from_version: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetEmojiKeywordsLanguages = {
|
|
|
|
lang_codes: Array<string>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetEmojiURL = {
|
|
|
|
lang_code: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetSearchCounters = {
|
|
|
|
peer: InputPeer,
|
|
|
|
filters: Array<MessagesFilter>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesRequestUrlAuth = {
|
|
|
|
peer: InputPeer,
|
|
|
|
msg_id: number,
|
|
|
|
button_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesAcceptUrlAuth = {
|
|
|
|
flags?: number,
|
|
|
|
write_allowed?: true,
|
|
|
|
peer: InputPeer,
|
|
|
|
msg_id: number,
|
|
|
|
button_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesHidePeerSettingsBar = {
|
|
|
|
peer: InputPeer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetScheduledHistory = {
|
|
|
|
peer: InputPeer,
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetScheduledMessages = {
|
|
|
|
peer: InputPeer,
|
|
|
|
id: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesSendScheduledMessages = {
|
|
|
|
peer: InputPeer,
|
|
|
|
id: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesDeleteScheduledMessages = {
|
|
|
|
peer: InputPeer,
|
|
|
|
id: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetPollVotes = {
|
|
|
|
flags?: number,
|
|
|
|
peer: InputPeer,
|
|
|
|
id: number,
|
|
|
|
option?: Uint8Array | number[],
|
|
|
|
offset?: string,
|
|
|
|
limit: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesToggleStickerSets = {
|
|
|
|
flags?: number,
|
|
|
|
uninstall?: true,
|
|
|
|
archive?: true,
|
|
|
|
unarchive?: true,
|
|
|
|
stickersets: Array<InputStickerSet>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetDialogFilters = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetSuggestedDialogFilters = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesUpdateDialogFilter = {
|
|
|
|
flags?: number,
|
|
|
|
id: number,
|
|
|
|
filter?: DialogFilter
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesUpdateDialogFiltersOrder = {
|
|
|
|
order: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type MessagesGetOldFeaturedStickers = {
|
|
|
|
offset: number,
|
|
|
|
limit: number,
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type UpdatesGetState = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type UpdatesGetDifference = {
|
|
|
|
flags?: number,
|
|
|
|
pts: number,
|
|
|
|
pts_total_limit?: number,
|
|
|
|
date: number,
|
|
|
|
qts: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type UpdatesGetChannelDifference = {
|
|
|
|
flags?: number,
|
|
|
|
force?: true,
|
|
|
|
channel: InputChannel,
|
|
|
|
filter: ChannelMessagesFilter,
|
|
|
|
pts: number,
|
|
|
|
limit: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PhotosUpdateProfilePhoto = {
|
|
|
|
id: InputPhoto
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PhotosUploadProfilePhoto = {
|
|
|
|
file: InputFile
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PhotosDeletePhotos = {
|
|
|
|
id: Array<InputPhoto>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PhotosGetUserPhotos = {
|
|
|
|
user_id: InputUser,
|
|
|
|
offset: number,
|
|
|
|
max_id: string,
|
|
|
|
limit: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type UploadSaveFilePart = {
|
|
|
|
file_id: string,
|
|
|
|
file_part: number,
|
|
|
|
bytes: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type UploadGetFile = {
|
|
|
|
flags?: number,
|
|
|
|
precise?: true,
|
|
|
|
cdn_supported?: true,
|
|
|
|
location: InputFileLocation,
|
|
|
|
offset: number,
|
|
|
|
limit: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type UploadSaveBigFilePart = {
|
|
|
|
file_id: string,
|
|
|
|
file_part: number,
|
|
|
|
file_total_parts: number,
|
|
|
|
bytes: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type UploadGetWebFile = {
|
|
|
|
location: InputWebFileLocation,
|
|
|
|
offset: number,
|
|
|
|
limit: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type UploadGetCdnFile = {
|
|
|
|
file_token: Uint8Array | number[],
|
|
|
|
offset: number,
|
|
|
|
limit: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type UploadReuploadCdnFile = {
|
|
|
|
file_token: Uint8Array | number[],
|
|
|
|
request_token: Uint8Array | number[]
|
|
|
|
};
|
|
|
|
|
|
|
|
export type UploadGetCdnFileHashes = {
|
|
|
|
file_token: Uint8Array | number[],
|
|
|
|
offset: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type UploadGetFileHashes = {
|
|
|
|
location: InputFileLocation,
|
|
|
|
offset: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpGetConfig = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpGetNearestDc = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpGetAppUpdate = {
|
|
|
|
source: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpGetInviteText = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpGetSupport = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpGetAppChangelog = {
|
|
|
|
prev_app_version: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpSetBotUpdatesStatus = {
|
|
|
|
pending_updates_count: number,
|
|
|
|
message: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpGetCdnConfig = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpGetRecentMeUrls = {
|
|
|
|
referer: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpGetTermsOfServiceUpdate = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpAcceptTermsOfService = {
|
|
|
|
id: DataJSON
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpGetDeepLinkInfo = {
|
|
|
|
path: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpGetAppConfig = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpSaveAppLog = {
|
|
|
|
events: Array<InputAppEvent>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpGetPassportConfig = {
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpGetSupportName = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpGetUserInfo = {
|
|
|
|
user_id: InputUser
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpEditUserInfo = {
|
|
|
|
user_id: InputUser,
|
|
|
|
message: string,
|
|
|
|
entities: Array<MessageEntity>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpGetPromoData = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type HelpHidePromoData = {
|
|
|
|
peer: InputPeer
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsReadHistory = {
|
|
|
|
channel: InputChannel,
|
|
|
|
max_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsDeleteMessages = {
|
|
|
|
channel: InputChannel,
|
|
|
|
id: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsDeleteUserHistory = {
|
|
|
|
channel: InputChannel,
|
|
|
|
user_id: InputUser
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsReportSpam = {
|
|
|
|
channel: InputChannel,
|
|
|
|
user_id: InputUser,
|
|
|
|
id: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsGetMessages = {
|
|
|
|
channel: InputChannel,
|
|
|
|
id: Array<InputMessage>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsGetParticipants = {
|
|
|
|
channel: InputChannel,
|
|
|
|
filter: ChannelParticipantsFilter,
|
|
|
|
offset: number,
|
|
|
|
limit: number,
|
|
|
|
hash: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsGetParticipant = {
|
|
|
|
channel: InputChannel,
|
|
|
|
user_id: InputUser
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsGetChannels = {
|
|
|
|
id: Array<InputChannel>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsGetFullChannel = {
|
|
|
|
channel: InputChannel
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsCreateChannel = {
|
|
|
|
flags?: number,
|
|
|
|
broadcast?: true,
|
|
|
|
megagroup?: true,
|
|
|
|
title: string,
|
|
|
|
about: string,
|
|
|
|
geo_point?: InputGeoPoint,
|
|
|
|
address?: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsEditAdmin = {
|
|
|
|
channel: InputChannel,
|
|
|
|
user_id: InputUser,
|
|
|
|
admin_rights: ChatAdminRights,
|
|
|
|
rank: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsEditTitle = {
|
|
|
|
channel: InputChannel,
|
|
|
|
title: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsEditPhoto = {
|
|
|
|
channel: InputChannel,
|
|
|
|
photo: InputChatPhoto
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsCheckUsername = {
|
|
|
|
channel: InputChannel,
|
|
|
|
username: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsUpdateUsername = {
|
|
|
|
channel: InputChannel,
|
|
|
|
username: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsJoinChannel = {
|
|
|
|
channel: InputChannel
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsLeaveChannel = {
|
|
|
|
channel: InputChannel
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsInviteToChannel = {
|
|
|
|
channel: InputChannel,
|
|
|
|
users: Array<InputUser>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsDeleteChannel = {
|
|
|
|
channel: InputChannel
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsExportMessageLink = {
|
|
|
|
channel: InputChannel,
|
|
|
|
id: number,
|
|
|
|
grouped: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsToggleSignatures = {
|
|
|
|
channel: InputChannel,
|
|
|
|
enabled: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsGetAdminedPublicChannels = {
|
|
|
|
flags?: number,
|
|
|
|
by_location?: true,
|
|
|
|
check_limit?: true
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsEditBanned = {
|
|
|
|
channel: InputChannel,
|
|
|
|
user_id: InputUser,
|
|
|
|
banned_rights: ChatBannedRights
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsGetAdminLog = {
|
|
|
|
flags?: number,
|
|
|
|
channel: InputChannel,
|
|
|
|
q: string,
|
|
|
|
events_filter?: ChannelAdminLogEventsFilter,
|
|
|
|
admins?: Array<InputUser>,
|
|
|
|
max_id: string,
|
|
|
|
min_id: string,
|
|
|
|
limit: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsSetStickers = {
|
|
|
|
channel: InputChannel,
|
|
|
|
stickerset: InputStickerSet
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsReadMessageContents = {
|
|
|
|
channel: InputChannel,
|
|
|
|
id: Array<number>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsDeleteHistory = {
|
|
|
|
channel: InputChannel,
|
|
|
|
max_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsTogglePreHistoryHidden = {
|
|
|
|
channel: InputChannel,
|
|
|
|
enabled: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsGetLeftChannels = {
|
|
|
|
offset: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsGetGroupsForDiscussion = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsSetDiscussionGroup = {
|
|
|
|
broadcast: InputChannel,
|
|
|
|
group: InputChannel
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsEditCreator = {
|
|
|
|
channel: InputChannel,
|
|
|
|
user_id: InputUser,
|
|
|
|
password: InputCheckPasswordSRP
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsEditLocation = {
|
|
|
|
channel: InputChannel,
|
|
|
|
geo_point: InputGeoPoint,
|
|
|
|
address: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsToggleSlowMode = {
|
|
|
|
channel: InputChannel,
|
|
|
|
seconds: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ChannelsGetInactiveChannels = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type BotsSendCustomRequest = {
|
|
|
|
custom_method: string,
|
|
|
|
params: DataJSON
|
|
|
|
};
|
|
|
|
|
|
|
|
export type BotsAnswerWebhookJSONQuery = {
|
|
|
|
query_id: string,
|
|
|
|
data: DataJSON
|
|
|
|
};
|
|
|
|
|
|
|
|
export type BotsSetBotCommands = {
|
|
|
|
commands: Array<BotCommand>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PaymentsGetPaymentForm = {
|
|
|
|
msg_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PaymentsGetPaymentReceipt = {
|
|
|
|
msg_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PaymentsValidateRequestedInfo = {
|
|
|
|
flags?: number,
|
|
|
|
save?: true,
|
|
|
|
msg_id: number,
|
|
|
|
info: PaymentRequestedInfo
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PaymentsSendPaymentForm = {
|
|
|
|
flags?: number,
|
|
|
|
msg_id: number,
|
|
|
|
requested_info_id?: string,
|
|
|
|
shipping_option_id?: string,
|
|
|
|
credentials: InputPaymentCredentials
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PaymentsGetSavedInfo = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PaymentsClearSavedInfo = {
|
|
|
|
flags?: number,
|
|
|
|
credentials?: true,
|
|
|
|
info?: true
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PaymentsGetBankCardData = {
|
|
|
|
number: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type StickersCreateStickerSet = {
|
|
|
|
flags?: number,
|
|
|
|
masks?: true,
|
|
|
|
animated?: true,
|
|
|
|
user_id: InputUser,
|
|
|
|
title: string,
|
|
|
|
short_name: string,
|
|
|
|
thumb?: InputDocument,
|
|
|
|
stickers: Array<InputStickerSetItem>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type StickersRemoveStickerFromSet = {
|
|
|
|
sticker: InputDocument
|
|
|
|
};
|
|
|
|
|
|
|
|
export type StickersChangeStickerPosition = {
|
|
|
|
sticker: InputDocument,
|
|
|
|
position: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type StickersAddStickerToSet = {
|
|
|
|
stickerset: InputStickerSet,
|
|
|
|
sticker: InputStickerSetItem
|
|
|
|
};
|
|
|
|
|
|
|
|
export type StickersSetStickerSetThumb = {
|
|
|
|
stickerset: InputStickerSet,
|
|
|
|
thumb: InputDocument
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PhoneGetCallConfig = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PhoneRequestCall = {
|
|
|
|
flags?: number,
|
|
|
|
video?: true,
|
|
|
|
user_id: InputUser,
|
|
|
|
random_id: number,
|
|
|
|
g_a_hash: Uint8Array | number[],
|
|
|
|
protocol: PhoneCallProtocol
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PhoneAcceptCall = {
|
|
|
|
peer: InputPhoneCall,
|
|
|
|
g_b: Uint8Array | number[],
|
|
|
|
protocol: PhoneCallProtocol
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PhoneConfirmCall = {
|
|
|
|
peer: InputPhoneCall,
|
|
|
|
g_a: Uint8Array | number[],
|
|
|
|
key_fingerprint: string,
|
|
|
|
protocol: PhoneCallProtocol
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PhoneReceivedCall = {
|
|
|
|
peer: InputPhoneCall
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PhoneDiscardCall = {
|
|
|
|
flags?: number,
|
|
|
|
video?: true,
|
|
|
|
peer: InputPhoneCall,
|
|
|
|
duration: number,
|
|
|
|
reason: PhoneCallDiscardReason,
|
|
|
|
connection_id: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PhoneSetCallRating = {
|
|
|
|
flags?: number,
|
|
|
|
user_initiative?: true,
|
|
|
|
peer: InputPhoneCall,
|
|
|
|
rating: number,
|
|
|
|
comment: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PhoneSaveCallDebug = {
|
|
|
|
peer: InputPhoneCall,
|
|
|
|
debug: DataJSON
|
|
|
|
};
|
|
|
|
|
|
|
|
export type LangpackGetLangPack = {
|
|
|
|
lang_pack: string,
|
|
|
|
lang_code: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type LangpackGetStrings = {
|
|
|
|
lang_pack: string,
|
|
|
|
lang_code: string,
|
|
|
|
keys: Array<string>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type LangpackGetDifference = {
|
|
|
|
lang_pack: string,
|
|
|
|
lang_code: string,
|
|
|
|
from_version: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type LangpackGetLanguages = {
|
|
|
|
lang_pack: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type LangpackGetLanguage = {
|
|
|
|
lang_pack: string,
|
|
|
|
lang_code: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type FoldersEditPeerFolders = {
|
|
|
|
folder_peers: Array<InputFolderPeer>
|
|
|
|
};
|
|
|
|
|
|
|
|
export type FoldersDeleteFolder = {
|
|
|
|
folder_id: number
|
|
|
|
};
|
|
|
|
|
|
|
|
export type StatsGetBroadcastStats = {
|
|
|
|
flags?: number,
|
|
|
|
dark?: true,
|
|
|
|
channel: InputChannel
|
|
|
|
};
|
|
|
|
|
|
|
|
export type StatsLoadAsyncGraph = {
|
|
|
|
flags?: number,
|
|
|
|
token: string,
|
|
|
|
x?: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export interface MethodDeclMap {
|
|
|
|
'invokeAfterMsg': {req: InvokeAfterMsg, res: any},
|
|
|
|
'invokeAfterMsgs': {req: InvokeAfterMsgs, res: any},
|
|
|
|
'initConnection': {req: InitConnection, res: any},
|
|
|
|
'invokeWithLayer': {req: InvokeWithLayer, res: any},
|
|
|
|
'invokeWithoutUpdates': {req: InvokeWithoutUpdates, res: any},
|
|
|
|
'invokeWithMessagesRange': {req: InvokeWithMessagesRange, res: any},
|
|
|
|
'invokeWithTakeout': {req: InvokeWithTakeout, res: any},
|
|
|
|
'auth.sendCode': {req: AuthSendCode, res: AuthSentCode},
|
|
|
|
'auth.signUp': {req: AuthSignUp, res: AuthAuthorization},
|
|
|
|
'auth.signIn': {req: AuthSignIn, res: AuthAuthorization},
|
|
|
|
'auth.logOut': {req: AuthLogOut, res: boolean},
|
|
|
|
'auth.resetAuthorizations': {req: AuthResetAuthorizations, res: boolean},
|
|
|
|
'auth.exportAuthorization': {req: AuthExportAuthorization, res: AuthExportedAuthorization},
|
|
|
|
'auth.importAuthorization': {req: AuthImportAuthorization, res: AuthAuthorization},
|
|
|
|
'auth.bindTempAuthKey': {req: AuthBindTempAuthKey, res: boolean},
|
|
|
|
'auth.importBotAuthorization': {req: AuthImportBotAuthorization, res: AuthAuthorization},
|
|
|
|
'auth.checkPassword': {req: AuthCheckPassword, res: AuthAuthorization},
|
|
|
|
'auth.requestPasswordRecovery': {req: AuthRequestPasswordRecovery, res: AuthPasswordRecovery},
|
|
|
|
'auth.recoverPassword': {req: AuthRecoverPassword, res: AuthAuthorization},
|
|
|
|
'auth.resendCode': {req: AuthResendCode, res: AuthSentCode},
|
|
|
|
'auth.cancelCode': {req: AuthCancelCode, res: boolean},
|
|
|
|
'auth.dropTempAuthKeys': {req: AuthDropTempAuthKeys, res: boolean},
|
|
|
|
'auth.exportLoginToken': {req: AuthExportLoginToken, res: AuthLoginToken},
|
|
|
|
'auth.importLoginToken': {req: AuthImportLoginToken, res: AuthLoginToken},
|
|
|
|
'auth.acceptLoginToken': {req: AuthAcceptLoginToken, res: Authorization},
|
|
|
|
'account.registerDevice': {req: AccountRegisterDevice, res: boolean},
|
|
|
|
'account.unregisterDevice': {req: AccountUnregisterDevice, res: boolean},
|
|
|
|
'account.updateNotifySettings': {req: AccountUpdateNotifySettings, res: boolean},
|
|
|
|
'account.getNotifySettings': {req: AccountGetNotifySettings, res: PeerNotifySettings},
|
|
|
|
'account.resetNotifySettings': {req: AccountResetNotifySettings, res: boolean},
|
|
|
|
'account.updateProfile': {req: AccountUpdateProfile, res: User},
|
|
|
|
'account.updateStatus': {req: AccountUpdateStatus, res: boolean},
|
|
|
|
'account.getWallPapers': {req: AccountGetWallPapers, res: AccountWallPapers},
|
|
|
|
'account.reportPeer': {req: AccountReportPeer, res: boolean},
|
|
|
|
'account.checkUsername': {req: AccountCheckUsername, res: boolean},
|
|
|
|
'account.updateUsername': {req: AccountUpdateUsername, res: User},
|
|
|
|
'account.getPrivacy': {req: AccountGetPrivacy, res: AccountPrivacyRules},
|
|
|
|
'account.setPrivacy': {req: AccountSetPrivacy, res: AccountPrivacyRules},
|
|
|
|
'account.deleteAccount': {req: AccountDeleteAccount, res: boolean},
|
|
|
|
'account.getAccountTTL': {req: AccountGetAccountTTL, res: AccountDaysTTL},
|
|
|
|
'account.setAccountTTL': {req: AccountSetAccountTTL, res: boolean},
|
|
|
|
'account.sendChangePhoneCode': {req: AccountSendChangePhoneCode, res: AuthSentCode},
|
|
|
|
'account.changePhone': {req: AccountChangePhone, res: User},
|
|
|
|
'account.updateDeviceLocked': {req: AccountUpdateDeviceLocked, res: boolean},
|
|
|
|
'account.getAuthorizations': {req: AccountGetAuthorizations, res: AccountAuthorizations},
|
|
|
|
'account.resetAuthorization': {req: AccountResetAuthorization, res: boolean},
|
|
|
|
'account.getPassword': {req: AccountGetPassword, res: AccountPassword},
|
|
|
|
'account.getPasswordSettings': {req: AccountGetPasswordSettings, res: AccountPasswordSettings},
|
|
|
|
'account.updatePasswordSettings': {req: AccountUpdatePasswordSettings, res: boolean},
|
|
|
|
'account.sendConfirmPhoneCode': {req: AccountSendConfirmPhoneCode, res: AuthSentCode},
|
|
|
|
'account.confirmPhone': {req: AccountConfirmPhone, res: boolean},
|
|
|
|
'account.getTmpPassword': {req: AccountGetTmpPassword, res: AccountTmpPassword},
|
|
|
|
'account.getWebAuthorizations': {req: AccountGetWebAuthorizations, res: AccountWebAuthorizations},
|
|
|
|
'account.resetWebAuthorization': {req: AccountResetWebAuthorization, res: boolean},
|
|
|
|
'account.resetWebAuthorizations': {req: AccountResetWebAuthorizations, res: boolean},
|
|
|
|
'account.getAllSecureValues': {req: AccountGetAllSecureValues, res: Array<SecureValue>},
|
|
|
|
'account.getSecureValue': {req: AccountGetSecureValue, res: Array<SecureValue>},
|
|
|
|
'account.saveSecureValue': {req: AccountSaveSecureValue, res: SecureValue},
|
|
|
|
'account.deleteSecureValue': {req: AccountDeleteSecureValue, res: boolean},
|
|
|
|
'account.getAuthorizationForm': {req: AccountGetAuthorizationForm, res: AccountAuthorizationForm},
|
|
|
|
'account.acceptAuthorization': {req: AccountAcceptAuthorization, res: boolean},
|
|
|
|
'account.sendVerifyPhoneCode': {req: AccountSendVerifyPhoneCode, res: AuthSentCode},
|
|
|
|
'account.verifyPhone': {req: AccountVerifyPhone, res: boolean},
|
|
|
|
'account.sendVerifyEmailCode': {req: AccountSendVerifyEmailCode, res: AccountSentEmailCode},
|
|
|
|
'account.verifyEmail': {req: AccountVerifyEmail, res: boolean},
|
|
|
|
'account.initTakeoutSession': {req: AccountInitTakeoutSession, res: AccountTakeout},
|
|
|
|
'account.finishTakeoutSession': {req: AccountFinishTakeoutSession, res: boolean},
|
|
|
|
'account.confirmPasswordEmail': {req: AccountConfirmPasswordEmail, res: boolean},
|
|
|
|
'account.resendPasswordEmail': {req: AccountResendPasswordEmail, res: boolean},
|
|
|
|
'account.cancelPasswordEmail': {req: AccountCancelPasswordEmail, res: boolean},
|
|
|
|
'account.getContactSignUpNotification': {req: AccountGetContactSignUpNotification, res: boolean},
|
|
|
|
'account.setContactSignUpNotification': {req: AccountSetContactSignUpNotification, res: boolean},
|
|
|
|
'account.getNotifyExceptions': {req: AccountGetNotifyExceptions, res: Updates},
|
|
|
|
'account.getWallPaper': {req: AccountGetWallPaper, res: WallPaper},
|
|
|
|
'account.uploadWallPaper': {req: AccountUploadWallPaper, res: WallPaper},
|
|
|
|
'account.saveWallPaper': {req: AccountSaveWallPaper, res: boolean},
|
|
|
|
'account.installWallPaper': {req: AccountInstallWallPaper, res: boolean},
|
|
|
|
'account.resetWallPapers': {req: AccountResetWallPapers, res: boolean},
|
|
|
|
'account.getAutoDownloadSettings': {req: AccountGetAutoDownloadSettings, res: AccountAutoDownloadSettings},
|
|
|
|
'account.saveAutoDownloadSettings': {req: AccountSaveAutoDownloadSettings, res: boolean},
|
|
|
|
'account.uploadTheme': {req: AccountUploadTheme, res: Document},
|
|
|
|
'account.createTheme': {req: AccountCreateTheme, res: Theme},
|
|
|
|
'account.updateTheme': {req: AccountUpdateTheme, res: Theme},
|
|
|
|
'account.saveTheme': {req: AccountSaveTheme, res: boolean},
|
|
|
|
'account.installTheme': {req: AccountInstallTheme, res: boolean},
|
|
|
|
'account.getTheme': {req: AccountGetTheme, res: Theme},
|
|
|
|
'account.getThemes': {req: AccountGetThemes, res: AccountThemes},
|
|
|
|
'account.setContentSettings': {req: AccountSetContentSettings, res: boolean},
|
|
|
|
'account.getContentSettings': {req: AccountGetContentSettings, res: AccountContentSettings},
|
|
|
|
'account.getMultiWallPapers': {req: AccountGetMultiWallPapers, res: Array<WallPaper>},
|
|
|
|
'users.getUsers': {req: UsersGetUsers, res: Array<User>},
|
|
|
|
'users.getFullUser': {req: UsersGetFullUser, res: UserFull},
|
|
|
|
'users.setSecureValueErrors': {req: UsersSetSecureValueErrors, res: boolean},
|
|
|
|
'contacts.getContactIDs': {req: ContactsGetContactIDs, res: Array<number>},
|
|
|
|
'contacts.getStatuses': {req: ContactsGetStatuses, res: Array<ContactStatus>},
|
|
|
|
'contacts.getContacts': {req: ContactsGetContacts, res: ContactsContacts},
|
|
|
|
'contacts.importContacts': {req: ContactsImportContacts, res: ContactsImportedContacts},
|
|
|
|
'contacts.deleteContacts': {req: ContactsDeleteContacts, res: Updates},
|
|
|
|
'contacts.deleteByPhones': {req: ContactsDeleteByPhones, res: boolean},
|
|
|
|
'contacts.block': {req: ContactsBlock, res: boolean},
|
|
|
|
'contacts.unblock': {req: ContactsUnblock, res: boolean},
|
|
|
|
'contacts.getBlocked': {req: ContactsGetBlocked, res: ContactsBlocked},
|
|
|
|
'contacts.search': {req: ContactsSearch, res: ContactsFound},
|
|
|
|
'contacts.resolveUsername': {req: ContactsResolveUsername, res: ContactsResolvedPeer},
|
|
|
|
'contacts.getTopPeers': {req: ContactsGetTopPeers, res: ContactsTopPeers},
|
|
|
|
'contacts.resetTopPeerRating': {req: ContactsResetTopPeerRating, res: boolean},
|
|
|
|
'contacts.resetSaved': {req: ContactsResetSaved, res: boolean},
|
|
|
|
'contacts.getSaved': {req: ContactsGetSaved, res: Array<SavedContact>},
|
|
|
|
'contacts.toggleTopPeers': {req: ContactsToggleTopPeers, res: boolean},
|
|
|
|
'contacts.addContact': {req: ContactsAddContact, res: Updates},
|
|
|
|
'contacts.acceptContact': {req: ContactsAcceptContact, res: Updates},
|
|
|
|
'contacts.getLocated': {req: ContactsGetLocated, res: Updates},
|
|
|
|
'messages.getMessages': {req: MessagesGetMessages, res: MessagesMessages},
|
|
|
|
'messages.getDialogs': {req: MessagesGetDialogs, res: MessagesDialogs},
|
|
|
|
'messages.getHistory': {req: MessagesGetHistory, res: MessagesMessages},
|
|
|
|
'messages.search': {req: MessagesSearch, res: MessagesMessages},
|
|
|
|
'messages.readHistory': {req: MessagesReadHistory, res: MessagesAffectedMessages},
|
|
|
|
'messages.deleteHistory': {req: MessagesDeleteHistory, res: MessagesAffectedHistory},
|
|
|
|
'messages.deleteMessages': {req: MessagesDeleteMessages, res: MessagesAffectedMessages},
|
|
|
|
'messages.receivedMessages': {req: MessagesReceivedMessages, res: Array<ReceivedNotifyMessage>},
|
|
|
|
'messages.setTyping': {req: MessagesSetTyping, res: boolean},
|
|
|
|
'messages.sendMessage': {req: MessagesSendMessage, res: Updates},
|
|
|
|
'messages.sendMedia': {req: MessagesSendMedia, res: Updates},
|
|
|
|
'messages.forwardMessages': {req: MessagesForwardMessages, res: Updates},
|
|
|
|
'messages.reportSpam': {req: MessagesReportSpam, res: boolean},
|
|
|
|
'messages.getPeerSettings': {req: MessagesGetPeerSettings, res: PeerSettings},
|
|
|
|
'messages.report': {req: MessagesReport, res: boolean},
|
|
|
|
'messages.getChats': {req: MessagesGetChats, res: MessagesChats},
|
|
|
|
'messages.getFullChat': {req: MessagesGetFullChat, res: MessagesChatFull},
|
|
|
|
'messages.editChatTitle': {req: MessagesEditChatTitle, res: Updates},
|
|
|
|
'messages.editChatPhoto': {req: MessagesEditChatPhoto, res: Updates},
|
|
|
|
'messages.addChatUser': {req: MessagesAddChatUser, res: Updates},
|
|
|
|
'messages.deleteChatUser': {req: MessagesDeleteChatUser, res: Updates},
|
|
|
|
'messages.createChat': {req: MessagesCreateChat, res: Updates},
|
|
|
|
'messages.getDhConfig': {req: MessagesGetDhConfig, res: MessagesDhConfig},
|
|
|
|
'messages.requestEncryption': {req: MessagesRequestEncryption, res: EncryptedChat},
|
|
|
|
'messages.acceptEncryption': {req: MessagesAcceptEncryption, res: EncryptedChat},
|
|
|
|
'messages.discardEncryption': {req: MessagesDiscardEncryption, res: boolean},
|
|
|
|
'messages.setEncryptedTyping': {req: MessagesSetEncryptedTyping, res: boolean},
|
|
|
|
'messages.readEncryptedHistory': {req: MessagesReadEncryptedHistory, res: boolean},
|
|
|
|
'messages.sendEncrypted': {req: MessagesSendEncrypted, res: MessagesSentEncryptedMessage},
|
|
|
|
'messages.sendEncryptedFile': {req: MessagesSendEncryptedFile, res: MessagesSentEncryptedMessage},
|
|
|
|
'messages.sendEncryptedService': {req: MessagesSendEncryptedService, res: MessagesSentEncryptedMessage},
|
|
|
|
'messages.receivedQueue': {req: MessagesReceivedQueue, res: Array<string>},
|
|
|
|
'messages.reportEncryptedSpam': {req: MessagesReportEncryptedSpam, res: boolean},
|
|
|
|
'messages.readMessageContents': {req: MessagesReadMessageContents, res: MessagesAffectedMessages},
|
|
|
|
'messages.getStickers': {req: MessagesGetStickers, res: MessagesStickers},
|
|
|
|
'messages.getAllStickers': {req: MessagesGetAllStickers, res: MessagesAllStickers},
|
|
|
|
'messages.getWebPagePreview': {req: MessagesGetWebPagePreview, res: MessageMedia},
|
|
|
|
'messages.exportChatInvite': {req: MessagesExportChatInvite, res: ExportedChatInvite},
|
|
|
|
'messages.checkChatInvite': {req: MessagesCheckChatInvite, res: ChatInvite},
|
|
|
|
'messages.importChatInvite': {req: MessagesImportChatInvite, res: Updates},
|
|
|
|
'messages.getStickerSet': {req: MessagesGetStickerSet, res: MessagesStickerSet},
|
|
|
|
'messages.installStickerSet': {req: MessagesInstallStickerSet, res: MessagesStickerSetInstallResult},
|
|
|
|
'messages.uninstallStickerSet': {req: MessagesUninstallStickerSet, res: boolean},
|
|
|
|
'messages.startBot': {req: MessagesStartBot, res: Updates},
|
|
|
|
'messages.getMessagesViews': {req: MessagesGetMessagesViews, res: Array<number>},
|
|
|
|
'messages.editChatAdmin': {req: MessagesEditChatAdmin, res: boolean},
|
|
|
|
'messages.migrateChat': {req: MessagesMigrateChat, res: Updates},
|
|
|
|
'messages.searchGlobal': {req: MessagesSearchGlobal, res: MessagesMessages},
|
|
|
|
'messages.reorderStickerSets': {req: MessagesReorderStickerSets, res: boolean},
|
|
|
|
'messages.getDocumentByHash': {req: MessagesGetDocumentByHash, res: Document},
|
|
|
|
'messages.searchGifs': {req: MessagesSearchGifs, res: MessagesFoundGifs},
|
|
|
|
'messages.getSavedGifs': {req: MessagesGetSavedGifs, res: MessagesSavedGifs},
|
|
|
|
'messages.saveGif': {req: MessagesSaveGif, res: boolean},
|
|
|
|
'messages.getInlineBotResults': {req: MessagesGetInlineBotResults, res: MessagesBotResults},
|
|
|
|
'messages.setInlineBotResults': {req: MessagesSetInlineBotResults, res: boolean},
|
|
|
|
'messages.sendInlineBotResult': {req: MessagesSendInlineBotResult, res: Updates},
|
|
|
|
'messages.getMessageEditData': {req: MessagesGetMessageEditData, res: MessagesMessageEditData},
|
|
|
|
'messages.editMessage': {req: MessagesEditMessage, res: Updates},
|
|
|
|
'messages.editInlineBotMessage': {req: MessagesEditInlineBotMessage, res: boolean},
|
|
|
|
'messages.getBotCallbackAnswer': {req: MessagesGetBotCallbackAnswer, res: MessagesBotCallbackAnswer},
|
|
|
|
'messages.setBotCallbackAnswer': {req: MessagesSetBotCallbackAnswer, res: boolean},
|
|
|
|
'messages.getPeerDialogs': {req: MessagesGetPeerDialogs, res: MessagesPeerDialogs},
|
|
|
|
'messages.saveDraft': {req: MessagesSaveDraft, res: boolean},
|
|
|
|
'messages.getAllDrafts': {req: MessagesGetAllDrafts, res: Updates},
|
|
|
|
'messages.getFeaturedStickers': {req: MessagesGetFeaturedStickers, res: MessagesFeaturedStickers},
|
|
|
|
'messages.readFeaturedStickers': {req: MessagesReadFeaturedStickers, res: boolean},
|
|
|
|
'messages.getRecentStickers': {req: MessagesGetRecentStickers, res: MessagesRecentStickers},
|
|
|
|
'messages.saveRecentSticker': {req: MessagesSaveRecentSticker, res: boolean},
|
|
|
|
'messages.clearRecentStickers': {req: MessagesClearRecentStickers, res: boolean},
|
|
|
|
'messages.getArchivedStickers': {req: MessagesGetArchivedStickers, res: MessagesArchivedStickers},
|
|
|
|
'messages.getMaskStickers': {req: MessagesGetMaskStickers, res: MessagesAllStickers},
|
|
|
|
'messages.getAttachedStickers': {req: MessagesGetAttachedStickers, res: Array<StickerSetCovered>},
|
|
|
|
'messages.setGameScore': {req: MessagesSetGameScore, res: Updates},
|
|
|
|
'messages.setInlineGameScore': {req: MessagesSetInlineGameScore, res: boolean},
|
|
|
|
'messages.getGameHighScores': {req: MessagesGetGameHighScores, res: MessagesHighScores},
|
|
|
|
'messages.getInlineGameHighScores': {req: MessagesGetInlineGameHighScores, res: MessagesHighScores},
|
|
|
|
'messages.getCommonChats': {req: MessagesGetCommonChats, res: MessagesChats},
|
|
|
|
'messages.getAllChats': {req: MessagesGetAllChats, res: MessagesChats},
|
|
|
|
'messages.getWebPage': {req: MessagesGetWebPage, res: WebPage},
|
|
|
|
'messages.toggleDialogPin': {req: MessagesToggleDialogPin, res: boolean},
|
|
|
|
'messages.reorderPinnedDialogs': {req: MessagesReorderPinnedDialogs, res: boolean},
|
|
|
|
'messages.getPinnedDialogs': {req: MessagesGetPinnedDialogs, res: MessagesPeerDialogs},
|
|
|
|
'messages.setBotShippingResults': {req: MessagesSetBotShippingResults, res: boolean},
|
|
|
|
'messages.setBotPrecheckoutResults': {req: MessagesSetBotPrecheckoutResults, res: boolean},
|
|
|
|
'messages.uploadMedia': {req: MessagesUploadMedia, res: MessageMedia},
|
|
|
|
'messages.sendScreenshotNotification': {req: MessagesSendScreenshotNotification, res: Updates},
|
|
|
|
'messages.getFavedStickers': {req: MessagesGetFavedStickers, res: MessagesFavedStickers},
|
|
|
|
'messages.faveSticker': {req: MessagesFaveSticker, res: boolean},
|
|
|
|
'messages.getUnreadMentions': {req: MessagesGetUnreadMentions, res: MessagesMessages},
|
|
|
|
'messages.readMentions': {req: MessagesReadMentions, res: MessagesAffectedHistory},
|
|
|
|
'messages.getRecentLocations': {req: MessagesGetRecentLocations, res: MessagesMessages},
|
|
|
|
'messages.sendMultiMedia': {req: MessagesSendMultiMedia, res: Updates},
|
|
|
|
'messages.uploadEncryptedFile': {req: MessagesUploadEncryptedFile, res: EncryptedFile},
|
|
|
|
'messages.searchStickerSets': {req: MessagesSearchStickerSets, res: MessagesFoundStickerSets},
|
|
|
|
'messages.getSplitRanges': {req: MessagesGetSplitRanges, res: Array<MessageRange>},
|
|
|
|
'messages.markDialogUnread': {req: MessagesMarkDialogUnread, res: boolean},
|
|
|
|
'messages.getDialogUnreadMarks': {req: MessagesGetDialogUnreadMarks, res: Array<DialogPeer>},
|
|
|
|
'messages.clearAllDrafts': {req: MessagesClearAllDrafts, res: boolean},
|
|
|
|
'messages.updatePinnedMessage': {req: MessagesUpdatePinnedMessage, res: Updates},
|
|
|
|
'messages.sendVote': {req: MessagesSendVote, res: Updates},
|
|
|
|
'messages.getPollResults': {req: MessagesGetPollResults, res: Updates},
|
|
|
|
'messages.getOnlines': {req: MessagesGetOnlines, res: ChatOnlines},
|
|
|
|
'messages.getStatsURL': {req: MessagesGetStatsURL, res: StatsURL},
|
|
|
|
'messages.editChatAbout': {req: MessagesEditChatAbout, res: boolean},
|
|
|
|
'messages.editChatDefaultBannedRights': {req: MessagesEditChatDefaultBannedRights, res: Updates},
|
|
|
|
'messages.getEmojiKeywords': {req: MessagesGetEmojiKeywords, res: EmojiKeywordsDifference},
|
|
|
|
'messages.getEmojiKeywordsDifference': {req: MessagesGetEmojiKeywordsDifference, res: EmojiKeywordsDifference},
|
|
|
|
'messages.getEmojiKeywordsLanguages': {req: MessagesGetEmojiKeywordsLanguages, res: Array<EmojiLanguage>},
|
|
|
|
'messages.getEmojiURL': {req: MessagesGetEmojiURL, res: EmojiURL},
|
|
|
|
'messages.getSearchCounters': {req: MessagesGetSearchCounters, res: Array<MessagesSearchCounter>},
|
|
|
|
'messages.requestUrlAuth': {req: MessagesRequestUrlAuth, res: UrlAuthResult},
|
|
|
|
'messages.acceptUrlAuth': {req: MessagesAcceptUrlAuth, res: UrlAuthResult},
|
|
|
|
'messages.hidePeerSettingsBar': {req: MessagesHidePeerSettingsBar, res: boolean},
|
|
|
|
'messages.getScheduledHistory': {req: MessagesGetScheduledHistory, res: MessagesMessages},
|
|
|
|
'messages.getScheduledMessages': {req: MessagesGetScheduledMessages, res: MessagesMessages},
|
|
|
|
'messages.sendScheduledMessages': {req: MessagesSendScheduledMessages, res: Updates},
|
|
|
|
'messages.deleteScheduledMessages': {req: MessagesDeleteScheduledMessages, res: Updates},
|
|
|
|
'messages.getPollVotes': {req: MessagesGetPollVotes, res: MessagesVotesList},
|
|
|
|
'messages.toggleStickerSets': {req: MessagesToggleStickerSets, res: boolean},
|
|
|
|
'messages.getDialogFilters': {req: MessagesGetDialogFilters, res: Array<DialogFilter>},
|
|
|
|
'messages.getSuggestedDialogFilters': {req: MessagesGetSuggestedDialogFilters, res: Array<DialogFilterSuggested>},
|
|
|
|
'messages.updateDialogFilter': {req: MessagesUpdateDialogFilter, res: boolean},
|
|
|
|
'messages.updateDialogFiltersOrder': {req: MessagesUpdateDialogFiltersOrder, res: boolean},
|
|
|
|
'messages.getOldFeaturedStickers': {req: MessagesGetOldFeaturedStickers, res: MessagesFeaturedStickers},
|
|
|
|
'updates.getState': {req: UpdatesGetState, res: UpdatesState},
|
|
|
|
'updates.getDifference': {req: UpdatesGetDifference, res: UpdatesDifference},
|
|
|
|
'updates.getChannelDifference': {req: UpdatesGetChannelDifference, res: UpdatesChannelDifference},
|
|
|
|
'photos.updateProfilePhoto': {req: PhotosUpdateProfilePhoto, res: UserProfilePhoto},
|
|
|
|
'photos.uploadProfilePhoto': {req: PhotosUploadProfilePhoto, res: PhotosPhoto},
|
|
|
|
'photos.deletePhotos': {req: PhotosDeletePhotos, res: Array<string>},
|
|
|
|
'photos.getUserPhotos': {req: PhotosGetUserPhotos, res: PhotosPhotos},
|
|
|
|
'upload.saveFilePart': {req: UploadSaveFilePart, res: boolean},
|
|
|
|
'upload.getFile': {req: UploadGetFile, res: UploadFile},
|
|
|
|
'upload.saveBigFilePart': {req: UploadSaveBigFilePart, res: boolean},
|
|
|
|
'upload.getWebFile': {req: UploadGetWebFile, res: UploadWebFile},
|
|
|
|
'upload.getCdnFile': {req: UploadGetCdnFile, res: UploadCdnFile},
|
|
|
|
'upload.reuploadCdnFile': {req: UploadReuploadCdnFile, res: Array<FileHash>},
|
|
|
|
'upload.getCdnFileHashes': {req: UploadGetCdnFileHashes, res: Array<FileHash>},
|
|
|
|
'upload.getFileHashes': {req: UploadGetFileHashes, res: Array<FileHash>},
|
|
|
|
'help.getConfig': {req: HelpGetConfig, res: Config},
|
|
|
|
'help.getNearestDc': {req: HelpGetNearestDc, res: NearestDc},
|
|
|
|
'help.getAppUpdate': {req: HelpGetAppUpdate, res: HelpAppUpdate},
|
|
|
|
'help.getInviteText': {req: HelpGetInviteText, res: HelpInviteText},
|
|
|
|
'help.getSupport': {req: HelpGetSupport, res: HelpSupport},
|
|
|
|
'help.getAppChangelog': {req: HelpGetAppChangelog, res: Updates},
|
|
|
|
'help.setBotUpdatesStatus': {req: HelpSetBotUpdatesStatus, res: boolean},
|
|
|
|
'help.getCdnConfig': {req: HelpGetCdnConfig, res: CdnConfig},
|
|
|
|
'help.getRecentMeUrls': {req: HelpGetRecentMeUrls, res: HelpRecentMeUrls},
|
|
|
|
'help.getTermsOfServiceUpdate': {req: HelpGetTermsOfServiceUpdate, res: HelpTermsOfServiceUpdate},
|
|
|
|
'help.acceptTermsOfService': {req: HelpAcceptTermsOfService, res: boolean},
|
|
|
|
'help.getDeepLinkInfo': {req: HelpGetDeepLinkInfo, res: HelpDeepLinkInfo},
|
|
|
|
'help.getAppConfig': {req: HelpGetAppConfig, res: JSONValue},
|
|
|
|
'help.saveAppLog': {req: HelpSaveAppLog, res: boolean},
|
|
|
|
'help.getPassportConfig': {req: HelpGetPassportConfig, res: HelpPassportConfig},
|
|
|
|
'help.getSupportName': {req: HelpGetSupportName, res: HelpSupportName},
|
|
|
|
'help.getUserInfo': {req: HelpGetUserInfo, res: HelpUserInfo},
|
|
|
|
'help.editUserInfo': {req: HelpEditUserInfo, res: HelpUserInfo},
|
|
|
|
'help.getPromoData': {req: HelpGetPromoData, res: HelpPromoData},
|
|
|
|
'help.hidePromoData': {req: HelpHidePromoData, res: boolean},
|
|
|
|
'channels.readHistory': {req: ChannelsReadHistory, res: boolean},
|
|
|
|
'channels.deleteMessages': {req: ChannelsDeleteMessages, res: MessagesAffectedMessages},
|
|
|
|
'channels.deleteUserHistory': {req: ChannelsDeleteUserHistory, res: MessagesAffectedHistory},
|
|
|
|
'channels.reportSpam': {req: ChannelsReportSpam, res: boolean},
|
|
|
|
'channels.getMessages': {req: ChannelsGetMessages, res: MessagesMessages},
|
|
|
|
'channels.getParticipants': {req: ChannelsGetParticipants, res: ChannelsChannelParticipants},
|
|
|
|
'channels.getParticipant': {req: ChannelsGetParticipant, res: ChannelsChannelParticipant},
|
|
|
|
'channels.getChannels': {req: ChannelsGetChannels, res: MessagesChats},
|
|
|
|
'channels.getFullChannel': {req: ChannelsGetFullChannel, res: MessagesChatFull},
|
|
|
|
'channels.createChannel': {req: ChannelsCreateChannel, res: Updates},
|
|
|
|
'channels.editAdmin': {req: ChannelsEditAdmin, res: Updates},
|
|
|
|
'channels.editTitle': {req: ChannelsEditTitle, res: Updates},
|
|
|
|
'channels.editPhoto': {req: ChannelsEditPhoto, res: Updates},
|
|
|
|
'channels.checkUsername': {req: ChannelsCheckUsername, res: boolean},
|
|
|
|
'channels.updateUsername': {req: ChannelsUpdateUsername, res: boolean},
|
|
|
|
'channels.joinChannel': {req: ChannelsJoinChannel, res: Updates},
|
|
|
|
'channels.leaveChannel': {req: ChannelsLeaveChannel, res: Updates},
|
|
|
|
'channels.inviteToChannel': {req: ChannelsInviteToChannel, res: Updates},
|
|
|
|
'channels.deleteChannel': {req: ChannelsDeleteChannel, res: Updates},
|
|
|
|
'channels.exportMessageLink': {req: ChannelsExportMessageLink, res: ExportedMessageLink},
|
|
|
|
'channels.toggleSignatures': {req: ChannelsToggleSignatures, res: Updates},
|
|
|
|
'channels.getAdminedPublicChannels': {req: ChannelsGetAdminedPublicChannels, res: MessagesChats},
|
|
|
|
'channels.editBanned': {req: ChannelsEditBanned, res: Updates},
|
|
|
|
'channels.getAdminLog': {req: ChannelsGetAdminLog, res: ChannelsAdminLogResults},
|
|
|
|
'channels.setStickers': {req: ChannelsSetStickers, res: boolean},
|
|
|
|
'channels.readMessageContents': {req: ChannelsReadMessageContents, res: boolean},
|
|
|
|
'channels.deleteHistory': {req: ChannelsDeleteHistory, res: boolean},
|
|
|
|
'channels.togglePreHistoryHidden': {req: ChannelsTogglePreHistoryHidden, res: Updates},
|
|
|
|
'channels.getLeftChannels': {req: ChannelsGetLeftChannels, res: MessagesChats},
|
|
|
|
'channels.getGroupsForDiscussion': {req: ChannelsGetGroupsForDiscussion, res: MessagesChats},
|
|
|
|
'channels.setDiscussionGroup': {req: ChannelsSetDiscussionGroup, res: boolean},
|
|
|
|
'channels.editCreator': {req: ChannelsEditCreator, res: Updates},
|
|
|
|
'channels.editLocation': {req: ChannelsEditLocation, res: boolean},
|
|
|
|
'channels.toggleSlowMode': {req: ChannelsToggleSlowMode, res: Updates},
|
|
|
|
'channels.getInactiveChannels': {req: ChannelsGetInactiveChannels, res: MessagesInactiveChats},
|
|
|
|
'bots.sendCustomRequest': {req: BotsSendCustomRequest, res: DataJSON},
|
|
|
|
'bots.answerWebhookJSONQuery': {req: BotsAnswerWebhookJSONQuery, res: boolean},
|
|
|
|
'bots.setBotCommands': {req: BotsSetBotCommands, res: boolean},
|
|
|
|
'payments.getPaymentForm': {req: PaymentsGetPaymentForm, res: PaymentsPaymentForm},
|
|
|
|
'payments.getPaymentReceipt': {req: PaymentsGetPaymentReceipt, res: PaymentsPaymentReceipt},
|
|
|
|
'payments.validateRequestedInfo': {req: PaymentsValidateRequestedInfo, res: PaymentsValidatedRequestedInfo},
|
|
|
|
'payments.sendPaymentForm': {req: PaymentsSendPaymentForm, res: PaymentsPaymentResult},
|
|
|
|
'payments.getSavedInfo': {req: PaymentsGetSavedInfo, res: PaymentsSavedInfo},
|
|
|
|
'payments.clearSavedInfo': {req: PaymentsClearSavedInfo, res: boolean},
|
|
|
|
'payments.getBankCardData': {req: PaymentsGetBankCardData, res: PaymentsBankCardData},
|
|
|
|
'stickers.createStickerSet': {req: StickersCreateStickerSet, res: MessagesStickerSet},
|
|
|
|
'stickers.removeStickerFromSet': {req: StickersRemoveStickerFromSet, res: MessagesStickerSet},
|
|
|
|
'stickers.changeStickerPosition': {req: StickersChangeStickerPosition, res: MessagesStickerSet},
|
|
|
|
'stickers.addStickerToSet': {req: StickersAddStickerToSet, res: MessagesStickerSet},
|
|
|
|
'stickers.setStickerSetThumb': {req: StickersSetStickerSetThumb, res: MessagesStickerSet},
|
|
|
|
'phone.getCallConfig': {req: PhoneGetCallConfig, res: DataJSON},
|
|
|
|
'phone.requestCall': {req: PhoneRequestCall, res: PhonePhoneCall},
|
|
|
|
'phone.acceptCall': {req: PhoneAcceptCall, res: PhonePhoneCall},
|
|
|
|
'phone.confirmCall': {req: PhoneConfirmCall, res: PhonePhoneCall},
|
|
|
|
'phone.receivedCall': {req: PhoneReceivedCall, res: boolean},
|
|
|
|
'phone.discardCall': {req: PhoneDiscardCall, res: Updates},
|
|
|
|
'phone.setCallRating': {req: PhoneSetCallRating, res: Updates},
|
|
|
|
'phone.saveCallDebug': {req: PhoneSaveCallDebug, res: boolean},
|
|
|
|
'langpack.getLangPack': {req: LangpackGetLangPack, res: LangPackDifference},
|
|
|
|
'langpack.getStrings': {req: LangpackGetStrings, res: Array<LangPackString>},
|
|
|
|
'langpack.getDifference': {req: LangpackGetDifference, res: LangPackDifference},
|
|
|
|
'langpack.getLanguages': {req: LangpackGetLanguages, res: Array<LangPackLanguage>},
|
|
|
|
'langpack.getLanguage': {req: LangpackGetLanguage, res: LangPackLanguage},
|
|
|
|
'folders.editPeerFolders': {req: FoldersEditPeerFolders, res: Updates},
|
|
|
|
'folders.deleteFolder': {req: FoldersDeleteFolder, res: Updates},
|
|
|
|
'stats.getBroadcastStats': {req: StatsGetBroadcastStats, res: StatsBroadcastStats},
|
|
|
|
'stats.loadAsyncGraph': {req: StatsLoadAsyncGraph, res: StatsGraph},
|
|
|
|
}
|
|
|
|
|