2025-01-03 17:15:23 +01:00

19586 lines
570 KiB
TypeScript

// This file is autogenerated. All changes will be overwritten.
import { BigInteger } from 'big-integer';
export default Api;
namespace Api {
type AnyClass = new (...args: any[]) => any;
type I<T extends AnyClass> = InstanceType<T>;
type ValuesOf<T> = T[keyof T];
type AnyLiteral = Record<string, any>;
type Reader = any; // To be defined.
type Client = any; // To be defined.
type Utils = any; // To be defined.
type X = AnyLiteral;
type Bool = boolean;
type int = number;
type int128 = BigInteger;
type int256 = BigInteger;
type long = BigInteger;
type bytes = Buffer;
class VirtualClass<Args extends AnyLiteral> {
static CONSTRUCTOR_ID: number;
static SUBCLASS_OF_ID: number;
static className: string;
static classType: 'constructor' | 'request';
static serializeBytes(data: Buffer | string): Buffer;
static serializeDate(date: Date | number): Buffer;
static fromReader(reader: Reader): VirtualClass<Args>;
getBytes(): Buffer;
CONSTRUCTOR_ID: number;
SUBCLASS_OF_ID: number;
className: string;
classType: 'constructor' | 'request';
constructor(args: Args);
}
class Request<Args, Response> extends VirtualClass<Partial<Args>> {
static readResult(reader: Reader): Buffer;
static resolve(client: Client, utils: Utils): Promise<void>;
__response: Response;
}
export type TypeInputPeer = InputPeerEmpty | InputPeerSelf | InputPeerChat | InputPeerUser | InputPeerChannel | InputPeerUserFromMessage | InputPeerChannelFromMessage;
export type TypeInputUser = InputUserEmpty | InputUserSelf | InputUser | InputUserFromMessage;
export type TypeInputContact = InputPhoneContact;
export type TypeInputFile = InputFile | InputFileBig | InputFileStoryDocument;
export type TypeInputMedia = InputMediaEmpty | InputMediaUploadedPhoto | InputMediaPhoto | InputMediaGeoPoint | InputMediaContact | InputMediaUploadedDocument | InputMediaDocument | InputMediaVenue | InputMediaPhotoExternal | InputMediaDocumentExternal | InputMediaGame | InputMediaInvoice | InputMediaGeoLive | InputMediaPoll | InputMediaDice | InputMediaStory | InputMediaWebPage | InputMediaPaidMedia;
export type TypeInputChatPhoto = InputChatPhotoEmpty | InputChatUploadedPhoto | InputChatPhoto;
export type TypeInputGeoPoint = InputGeoPointEmpty | InputGeoPoint;
export type TypeInputPhoto = InputPhotoEmpty | InputPhoto;
export type TypeInputFileLocation = InputFileLocation | InputEncryptedFileLocation | InputDocumentFileLocation | InputSecureFileLocation | InputTakeoutFileLocation | InputPhotoFileLocation | InputPhotoLegacyFileLocation | InputPeerPhotoFileLocation | InputStickerSetThumb | InputGroupCallStream;
export type TypePeer = PeerUser | PeerChat | PeerChannel;
export type TypeUser = UserEmpty | User;
export type TypeUserProfilePhoto = UserProfilePhotoEmpty | UserProfilePhoto;
export type TypeUserStatus = UserStatusEmpty | UserStatusOnline | UserStatusOffline | UserStatusRecently | UserStatusLastWeek | UserStatusLastMonth;
export type TypeChat = ChatEmpty | Chat | ChatForbidden | Channel | ChannelForbidden;
export type TypeChatFull = ChatFull | ChannelFull;
export type TypeChatParticipant = ChatParticipant | ChatParticipantCreator | ChatParticipantAdmin;
export type TypeChatParticipants = ChatParticipantsForbidden | ChatParticipants;
export type TypeChatPhoto = ChatPhotoEmpty | ChatPhoto;
export type TypeMessage = MessageEmpty | Message | MessageService;
export type TypeMessageMedia = MessageMediaEmpty | MessageMediaPhoto | MessageMediaGeo | MessageMediaContact | MessageMediaUnsupported | MessageMediaDocument | MessageMediaWebPage | MessageMediaVenue | MessageMediaGame | MessageMediaInvoice | MessageMediaGeoLive | MessageMediaPoll | MessageMediaDice | MessageMediaStory | MessageMediaGiveaway | MessageMediaGiveawayResults | MessageMediaPaidMedia;
export type TypeMessageAction = MessageActionEmpty | MessageActionChatCreate | MessageActionChatEditTitle | MessageActionChatEditPhoto | MessageActionChatDeletePhoto | MessageActionChatAddUser | MessageActionChatDeleteUser | MessageActionChatJoinedByLink | MessageActionChannelCreate | MessageActionChatMigrateTo | MessageActionChannelMigrateFrom | MessageActionPinMessage | MessageActionHistoryClear | MessageActionGameScore | MessageActionPaymentSentMe | MessageActionPaymentSent | MessageActionPhoneCall | MessageActionScreenshotTaken | MessageActionCustomAction | MessageActionBotAllowed | MessageActionSecureValuesSentMe | MessageActionSecureValuesSent | MessageActionContactSignUp | MessageActionGeoProximityReached | MessageActionGroupCall | MessageActionInviteToGroupCall | MessageActionSetMessagesTTL | MessageActionGroupCallScheduled | MessageActionSetChatTheme | MessageActionChatJoinedByRequest | MessageActionWebViewDataSentMe | MessageActionWebViewDataSent | MessageActionGiftPremium | MessageActionTopicCreate | MessageActionTopicEdit | MessageActionSuggestProfilePhoto | MessageActionRequestedPeer | MessageActionSetChatWallPaper | MessageActionGiftCode | MessageActionGiveawayLaunch | MessageActionGiveawayResults | MessageActionBoostApply | MessageActionRequestedPeerSentMe | MessageActionPaymentRefunded | MessageActionGiftStars | MessageActionPrizeStars | MessageActionStarGift | MessageActionStarGiftUnique;
export type TypeDialog = Dialog | DialogFolder;
export type TypePhoto = PhotoEmpty | Photo;
export type TypePhotoSize = PhotoSizeEmpty | PhotoSize | PhotoCachedSize | PhotoStrippedSize | PhotoSizeProgressive | PhotoPathSize;
export type TypeGeoPoint = GeoPointEmpty | GeoPoint;
export type TypeInputNotifyPeer = InputNotifyPeer | InputNotifyUsers | InputNotifyChats | InputNotifyBroadcasts | InputNotifyForumTopic;
export type TypeInputPeerNotifySettings = InputPeerNotifySettings;
export type TypePeerNotifySettings = PeerNotifySettings;
export type TypePeerSettings = PeerSettings;
export type TypeWallPaper = WallPaper | WallPaperNoFile;
export type TypeReportReason = InputReportReasonSpam | InputReportReasonViolence | InputReportReasonPornography | InputReportReasonChildAbuse | InputReportReasonOther | InputReportReasonCopyright | InputReportReasonGeoIrrelevant | InputReportReasonFake | InputReportReasonIllegalDrugs | InputReportReasonPersonalDetails;
export type TypeUserFull = UserFull;
export type TypeContact = Contact;
export type TypeImportedContact = ImportedContact;
export type TypeContactStatus = ContactStatus;
export type TypeMessagesFilter = InputMessagesFilterEmpty | InputMessagesFilterPhotos | InputMessagesFilterVideo | InputMessagesFilterPhotoVideo | InputMessagesFilterDocument | InputMessagesFilterUrl | InputMessagesFilterGif | InputMessagesFilterVoice | InputMessagesFilterMusic | InputMessagesFilterChatPhotos | InputMessagesFilterPhoneCalls | InputMessagesFilterRoundVoice | InputMessagesFilterRoundVideo | InputMessagesFilterMyMentions | InputMessagesFilterGeo | InputMessagesFilterContacts | InputMessagesFilterPinned;
export type TypeUpdate = UpdateNewMessage | UpdateMessageID | UpdateDeleteMessages | UpdateUserTyping | UpdateChatUserTyping | UpdateChatParticipants | UpdateUserStatus | UpdateUserName | UpdateNewAuthorization | UpdateNewEncryptedMessage | UpdateEncryptedChatTyping | UpdateEncryption | UpdateEncryptedMessagesRead | UpdateChatParticipantAdd | UpdateChatParticipantDelete | UpdateDcOptions | UpdateNotifySettings | UpdateServiceNotification | UpdatePrivacy | UpdateUserPhone | UpdateReadHistoryInbox | UpdateReadHistoryOutbox | UpdateWebPage | UpdateReadMessagesContents | UpdateChannelTooLong | UpdateChannel | UpdateNewChannelMessage | UpdateReadChannelInbox | UpdateDeleteChannelMessages | UpdateChannelMessageViews | UpdateChatParticipantAdmin | UpdateNewStickerSet | UpdateStickerSetsOrder | UpdateStickerSets | UpdateSavedGifs | UpdateBotInlineQuery | UpdateBotInlineSend | UpdateEditChannelMessage | UpdateBotCallbackQuery | UpdateEditMessage | UpdateInlineBotCallbackQuery | UpdateReadChannelOutbox | UpdateDraftMessage | UpdateReadFeaturedStickers | UpdateRecentStickers | UpdateConfig | UpdatePtsChanged | UpdateChannelWebPage | UpdateDialogPinned | UpdatePinnedDialogs | UpdateBotWebhookJSON | UpdateBotWebhookJSONQuery | UpdateBotShippingQuery | UpdateBotPrecheckoutQuery | UpdatePhoneCall | UpdateLangPackTooLong | UpdateLangPack | UpdateFavedStickers | UpdateChannelReadMessagesContents | UpdateContactsReset | UpdateChannelAvailableMessages | UpdateDialogUnreadMark | UpdateMessagePoll | UpdateChatDefaultBannedRights | UpdateFolderPeers | UpdatePeerSettings | UpdatePeerLocated | UpdateNewScheduledMessage | UpdateDeleteScheduledMessages | UpdateTheme | UpdateGeoLiveViewed | UpdateLoginToken | UpdateMessagePollVote | UpdateDialogFilter | UpdateDialogFilterOrder | UpdateDialogFilters | UpdatePhoneCallSignalingData | UpdateChannelMessageForwards | UpdateReadChannelDiscussionInbox | UpdateReadChannelDiscussionOutbox | UpdatePeerBlocked | UpdateChannelUserTyping | UpdatePinnedMessages | UpdatePinnedChannelMessages | UpdateChat | UpdateGroupCallParticipants | UpdateGroupCall | UpdatePeerHistoryTTL | UpdateChatParticipant | UpdateChannelParticipant | UpdateBotStopped | UpdateGroupCallConnection | UpdateBotCommands | UpdatePendingJoinRequests | UpdateBotChatInviteRequester | UpdateMessageReactions | UpdateAttachMenuBots | UpdateWebViewResultSent | UpdateBotMenuButton | UpdateSavedRingtones | UpdateTranscribedAudio | UpdateReadFeaturedEmojiStickers | UpdateUserEmojiStatus | UpdateRecentEmojiStatuses | UpdateRecentReactions | UpdateMoveStickerSetToTop | UpdateMessageExtendedMedia | UpdateChannelPinnedTopic | UpdateChannelPinnedTopics | UpdateUser | UpdateAutoSaveSettings | UpdateStory | UpdateReadStories | UpdateStoryID | UpdateStoriesStealthMode | UpdateSentStoryReaction | UpdateBotChatBoost | UpdateChannelViewForumAsMessages | UpdatePeerWallpaper | UpdateBotMessageReaction | UpdateBotMessageReactions | UpdateSavedDialogPinned | UpdatePinnedSavedDialogs | UpdateSavedReactionTags | UpdateSmsJob | UpdateQuickReplies | UpdateNewQuickReply | UpdateDeleteQuickReply | UpdateQuickReplyMessage | UpdateDeleteQuickReplyMessages | UpdateBotBusinessConnect | UpdateBotNewBusinessMessage | UpdateBotEditBusinessMessage | UpdateBotDeleteBusinessMessage | UpdateNewStoryReaction | UpdateBroadcastRevenueTransactions | UpdateStarsBalance | UpdateBusinessBotCallbackQuery | UpdateStarsRevenueStatus | UpdateBotPurchasedPaidMedia | UpdatePaidReactionPrivacy;
export type TypeUpdates = UpdatesTooLong | UpdateShortMessage | UpdateShortChatMessage | UpdateShort | UpdatesCombined | Updates | UpdateShortSentMessage;
export type TypeDcOption = DcOption;
export type TypeConfig = Config;
export type TypeNearestDc = NearestDc;
export type TypeEncryptedChat = EncryptedChatEmpty | EncryptedChatWaiting | EncryptedChatRequested | EncryptedChat | EncryptedChatDiscarded;
export type TypeInputEncryptedChat = InputEncryptedChat;
export type TypeEncryptedFile = EncryptedFileEmpty | EncryptedFile;
export type TypeInputEncryptedFile = InputEncryptedFileEmpty | InputEncryptedFileUploaded | InputEncryptedFile | InputEncryptedFileBigUploaded;
export type TypeEncryptedMessage = EncryptedMessage | EncryptedMessageService;
export type TypeInputDocument = InputDocumentEmpty | InputDocument;
export type TypeDocument = DocumentEmpty | Document;
export type TypeNotifyPeer = NotifyPeer | NotifyUsers | NotifyChats | NotifyBroadcasts | NotifyForumTopic;
export type TypeSendMessageAction = SendMessageTypingAction | SendMessageCancelAction | SendMessageRecordVideoAction | SendMessageUploadVideoAction | SendMessageRecordAudioAction | SendMessageUploadAudioAction | SendMessageUploadPhotoAction | SendMessageUploadDocumentAction | SendMessageGeoLocationAction | SendMessageChooseContactAction | SendMessageGamePlayAction | SendMessageRecordRoundAction | SendMessageUploadRoundAction | SpeakingInGroupCallAction | SendMessageHistoryImportAction | SendMessageChooseStickerAction | SendMessageEmojiInteraction | SendMessageEmojiInteractionSeen;
export type TypeInputPrivacyKey = InputPrivacyKeyStatusTimestamp | InputPrivacyKeyChatInvite | InputPrivacyKeyPhoneCall | InputPrivacyKeyPhoneP2P | InputPrivacyKeyForwards | InputPrivacyKeyProfilePhoto | InputPrivacyKeyPhoneNumber | InputPrivacyKeyAddedByPhone | InputPrivacyKeyVoiceMessages | InputPrivacyKeyAbout | InputPrivacyKeyBirthday | InputPrivacyKeyStarGiftsAutoSave;
export type TypePrivacyKey = PrivacyKeyStatusTimestamp | PrivacyKeyChatInvite | PrivacyKeyPhoneCall | PrivacyKeyPhoneP2P | PrivacyKeyForwards | PrivacyKeyProfilePhoto | PrivacyKeyPhoneNumber | PrivacyKeyAddedByPhone | PrivacyKeyVoiceMessages | PrivacyKeyAbout | PrivacyKeyBirthday | PrivacyKeyStarGiftsAutoSave;
export type TypeInputPrivacyRule = InputPrivacyValueAllowContacts | InputPrivacyValueAllowAll | InputPrivacyValueAllowUsers | InputPrivacyValueDisallowContacts | InputPrivacyValueDisallowAll | InputPrivacyValueDisallowUsers | InputPrivacyValueAllowChatParticipants | InputPrivacyValueDisallowChatParticipants | InputPrivacyValueAllowCloseFriends | InputPrivacyValueAllowPremium | InputPrivacyValueAllowBots | InputPrivacyValueDisallowBots;
export type TypePrivacyRule = PrivacyValueAllowContacts | PrivacyValueAllowAll | PrivacyValueAllowUsers | PrivacyValueDisallowContacts | PrivacyValueDisallowAll | PrivacyValueDisallowUsers | PrivacyValueAllowChatParticipants | PrivacyValueDisallowChatParticipants | PrivacyValueAllowCloseFriends | PrivacyValueAllowPremium | PrivacyValueAllowBots | PrivacyValueDisallowBots;
export type TypeAccountDaysTTL = AccountDaysTTL;
export type TypeDocumentAttribute = DocumentAttributeImageSize | DocumentAttributeAnimated | DocumentAttributeSticker | DocumentAttributeVideo | DocumentAttributeAudio | DocumentAttributeFilename | DocumentAttributeHasStickers | DocumentAttributeCustomEmoji;
export type TypeStickerPack = StickerPack;
export type TypeWebPage = WebPageEmpty | WebPagePending | WebPage | WebPageNotModified;
export type TypeAuthorization = Authorization;
export type TypeReceivedNotifyMessage = ReceivedNotifyMessage;
export type TypeExportedChatInvite = ChatInviteExported | ChatInvitePublicJoinRequests;
export type TypeChatInvite = ChatInviteAlready | ChatInvite | ChatInvitePeek;
export type TypeInputStickerSet = InputStickerSetEmpty | InputStickerSetID | InputStickerSetShortName | InputStickerSetAnimatedEmoji | InputStickerSetDice | InputStickerSetAnimatedEmojiAnimations | InputStickerSetPremiumGifts | InputStickerSetEmojiGenericAnimations | InputStickerSetEmojiDefaultStatuses | InputStickerSetEmojiDefaultTopicIcons | InputStickerSetEmojiChannelDefaultStatuses;
export type TypeStickerSet = StickerSet;
export type TypeBotCommand = BotCommand;
export type TypeBotInfo = BotInfo;
export type TypeKeyboardButton = KeyboardButton | KeyboardButtonUrl | KeyboardButtonCallback | KeyboardButtonRequestPhone | KeyboardButtonRequestGeoLocation | KeyboardButtonSwitchInline | KeyboardButtonGame | KeyboardButtonBuy | KeyboardButtonUrlAuth | InputKeyboardButtonUrlAuth | KeyboardButtonRequestPoll | InputKeyboardButtonUserProfile | KeyboardButtonUserProfile | KeyboardButtonWebView | KeyboardButtonSimpleWebView | KeyboardButtonRequestPeer | InputKeyboardButtonRequestPeer | KeyboardButtonCopy;
export type TypeKeyboardButtonRow = KeyboardButtonRow;
export type TypeReplyMarkup = ReplyKeyboardHide | ReplyKeyboardForceReply | ReplyKeyboardMarkup | ReplyInlineMarkup;
export type TypeMessageEntity = MessageEntityUnknown | MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityUrl | MessageEntityEmail | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextUrl | MessageEntityMentionName | InputMessageEntityMentionName | MessageEntityPhone | MessageEntityCashtag | MessageEntityUnderline | MessageEntityStrike | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji | MessageEntityBlockquote;
export type TypeInputChannel = InputChannelEmpty | InputChannel | InputChannelFromMessage;
export type TypeMessageRange = MessageRange;
export type TypeChannelMessagesFilter = ChannelMessagesFilterEmpty | ChannelMessagesFilter;
export type TypeChannelParticipant = ChannelParticipant | ChannelParticipantSelf | ChannelParticipantCreator | ChannelParticipantAdmin | ChannelParticipantBanned | ChannelParticipantLeft;
export type TypeChannelParticipantsFilter = ChannelParticipantsRecent | ChannelParticipantsAdmins | ChannelParticipantsKicked | ChannelParticipantsBots | ChannelParticipantsBanned | ChannelParticipantsSearch | ChannelParticipantsContacts | ChannelParticipantsMentions;
export type TypeInputBotInlineMessage = InputBotInlineMessageMediaAuto | InputBotInlineMessageText | InputBotInlineMessageMediaGeo | InputBotInlineMessageMediaVenue | InputBotInlineMessageMediaContact | InputBotInlineMessageGame | InputBotInlineMessageMediaInvoice | InputBotInlineMessageMediaWebPage;
export type TypeInputBotInlineResult = InputBotInlineResult | InputBotInlineResultPhoto | InputBotInlineResultDocument | InputBotInlineResultGame;
export type TypeBotInlineMessage = BotInlineMessageMediaAuto | BotInlineMessageText | BotInlineMessageMediaGeo | BotInlineMessageMediaVenue | BotInlineMessageMediaContact | BotInlineMessageMediaInvoice | BotInlineMessageMediaWebPage;
export type TypeBotInlineResult = BotInlineResult | BotInlineMediaResult;
export type TypeExportedMessageLink = ExportedMessageLink;
export type TypeMessageFwdHeader = MessageFwdHeader;
export type TypeInputBotInlineMessageID = InputBotInlineMessageID | InputBotInlineMessageID64;
export type TypeInlineBotSwitchPM = InlineBotSwitchPM;
export type TypeTopPeer = TopPeer;
export type TypeTopPeerCategory = TopPeerCategoryBotsPM | TopPeerCategoryBotsInline | TopPeerCategoryCorrespondents | TopPeerCategoryGroups | TopPeerCategoryChannels | TopPeerCategoryPhoneCalls | TopPeerCategoryForwardUsers | TopPeerCategoryForwardChats | TopPeerCategoryBotsApp;
export type TypeTopPeerCategoryPeers = TopPeerCategoryPeers;
export type TypeDraftMessage = DraftMessageEmpty | DraftMessage;
export type TypeStickerSetCovered = StickerSetCovered | StickerSetMultiCovered | StickerSetFullCovered | StickerSetNoCovered;
export type TypeMaskCoords = MaskCoords;
export type TypeInputStickeredMedia = InputStickeredMediaPhoto | InputStickeredMediaDocument;
export type TypeGame = Game;
export type TypeInputGame = InputGameID | InputGameShortName;
export type TypeHighScore = HighScore;
export type TypeRichText = TextEmpty | TextPlain | TextBold | TextItalic | TextUnderline | TextStrike | TextFixed | TextUrl | TextEmail | TextConcat | TextSubscript | TextSuperscript | TextMarked | TextPhone | TextImage | TextAnchor;
export type TypePageBlock = PageBlockUnsupported | PageBlockTitle | PageBlockSubtitle | PageBlockAuthorDate | PageBlockHeader | PageBlockSubheader | PageBlockParagraph | PageBlockPreformatted | PageBlockFooter | PageBlockDivider | PageBlockAnchor | PageBlockList | PageBlockBlockquote | PageBlockPullquote | PageBlockPhoto | PageBlockVideo | PageBlockCover | PageBlockEmbed | PageBlockEmbedPost | PageBlockCollage | PageBlockSlideshow | PageBlockChannel | PageBlockAudio | PageBlockKicker | PageBlockTable | PageBlockOrderedList | PageBlockDetails | PageBlockRelatedArticles | PageBlockMap;
export type TypePhoneCallDiscardReason = PhoneCallDiscardReasonMissed | PhoneCallDiscardReasonDisconnect | PhoneCallDiscardReasonHangup | PhoneCallDiscardReasonBusy | PhoneCallDiscardReasonAllowGroupCall;
export type TypeDataJSON = DataJSON;
export type TypeLabeledPrice = LabeledPrice;
export type TypeInvoice = Invoice;
export type TypePaymentCharge = PaymentCharge;
export type TypePostAddress = PostAddress;
export type TypePaymentRequestedInfo = PaymentRequestedInfo;
export type TypePaymentSavedCredentials = PaymentSavedCredentialsCard;
export type TypeWebDocument = WebDocument | WebDocumentNoProxy;
export type TypeInputWebDocument = InputWebDocument;
export type TypeInputWebFileLocation = InputWebFileLocation | InputWebFileGeoPointLocation | InputWebFileAudioAlbumThumbLocation;
export type TypeInputPaymentCredentials = InputPaymentCredentialsSaved | InputPaymentCredentials | InputPaymentCredentialsApplePay | InputPaymentCredentialsGooglePay;
export type TypeShippingOption = ShippingOption;
export type TypeInputStickerSetItem = InputStickerSetItem;
export type TypeInputPhoneCall = InputPhoneCall;
export type TypePhoneCall = PhoneCallEmpty | PhoneCallWaiting | PhoneCallRequested | PhoneCallAccepted | PhoneCall | PhoneCallDiscarded;
export type TypePhoneConnection = PhoneConnection | PhoneConnectionWebrtc;
export type TypePhoneCallProtocol = PhoneCallProtocol;
export type TypeCdnPublicKey = CdnPublicKey;
export type TypeCdnConfig = CdnConfig;
export type TypeLangPackString = LangPackString | LangPackStringPluralized | LangPackStringDeleted;
export type TypeLangPackDifference = LangPackDifference;
export type TypeLangPackLanguage = LangPackLanguage;
export type TypeChannelAdminLogEventAction = ChannelAdminLogEventActionChangeTitle | ChannelAdminLogEventActionChangeAbout | ChannelAdminLogEventActionChangeUsername | ChannelAdminLogEventActionChangePhoto | ChannelAdminLogEventActionToggleInvites | ChannelAdminLogEventActionToggleSignatures | ChannelAdminLogEventActionUpdatePinned | ChannelAdminLogEventActionEditMessage | ChannelAdminLogEventActionDeleteMessage | ChannelAdminLogEventActionParticipantJoin | ChannelAdminLogEventActionParticipantLeave | ChannelAdminLogEventActionParticipantInvite | ChannelAdminLogEventActionParticipantToggleBan | ChannelAdminLogEventActionParticipantToggleAdmin | ChannelAdminLogEventActionChangeStickerSet | ChannelAdminLogEventActionTogglePreHistoryHidden | ChannelAdminLogEventActionDefaultBannedRights | ChannelAdminLogEventActionStopPoll | ChannelAdminLogEventActionChangeLinkedChat | ChannelAdminLogEventActionChangeLocation | ChannelAdminLogEventActionToggleSlowMode | ChannelAdminLogEventActionStartGroupCall | ChannelAdminLogEventActionDiscardGroupCall | ChannelAdminLogEventActionParticipantMute | ChannelAdminLogEventActionParticipantUnmute | ChannelAdminLogEventActionToggleGroupCallSetting | ChannelAdminLogEventActionParticipantJoinByInvite | ChannelAdminLogEventActionExportedInviteDelete | ChannelAdminLogEventActionExportedInviteRevoke | ChannelAdminLogEventActionExportedInviteEdit | ChannelAdminLogEventActionParticipantVolume | ChannelAdminLogEventActionChangeHistoryTTL | ChannelAdminLogEventActionParticipantJoinByRequest | ChannelAdminLogEventActionToggleNoForwards | ChannelAdminLogEventActionSendMessage | ChannelAdminLogEventActionChangeAvailableReactions | ChannelAdminLogEventActionChangeUsernames | ChannelAdminLogEventActionToggleForum | ChannelAdminLogEventActionCreateTopic | ChannelAdminLogEventActionEditTopic | ChannelAdminLogEventActionDeleteTopic | ChannelAdminLogEventActionPinTopic | ChannelAdminLogEventActionToggleAntiSpam | ChannelAdminLogEventActionChangePeerColor | ChannelAdminLogEventActionChangeProfilePeerColor | ChannelAdminLogEventActionChangeWallpaper | ChannelAdminLogEventActionChangeEmojiStatus | ChannelAdminLogEventActionChangeEmojiStickerSet | ChannelAdminLogEventActionToggleSignatureProfiles | ChannelAdminLogEventActionParticipantSubExtend;
export type TypeChannelAdminLogEvent = ChannelAdminLogEvent;
export type TypeChannelAdminLogEventsFilter = ChannelAdminLogEventsFilter;
export type TypePopularContact = PopularContact;
export type TypeRecentMeUrl = RecentMeUrlUnknown | RecentMeUrlUser | RecentMeUrlChat | RecentMeUrlChatInvite | RecentMeUrlStickerSet;
export type TypeInputSingleMedia = InputSingleMedia;
export type TypeWebAuthorization = WebAuthorization;
export type TypeInputMessage = InputMessageID | InputMessageReplyTo | InputMessagePinned | InputMessageCallbackQuery;
export type TypeInputDialogPeer = InputDialogPeer | InputDialogPeerFolder;
export type TypeDialogPeer = DialogPeer | DialogPeerFolder;
export type TypeFileHash = FileHash;
export type TypeInputClientProxy = InputClientProxy;
export type TypeInputSecureFile = InputSecureFileUploaded | InputSecureFile;
export type TypeSecureFile = SecureFileEmpty | SecureFile;
export type TypeSecureData = SecureData;
export type TypeSecurePlainData = SecurePlainPhone | SecurePlainEmail;
export type TypeSecureValueType = SecureValueTypePersonalDetails | SecureValueTypePassport | SecureValueTypeDriverLicense | SecureValueTypeIdentityCard | SecureValueTypeInternalPassport | SecureValueTypeAddress | SecureValueTypeUtilityBill | SecureValueTypeBankStatement | SecureValueTypeRentalAgreement | SecureValueTypePassportRegistration | SecureValueTypeTemporaryRegistration | SecureValueTypePhone | SecureValueTypeEmail;
export type TypeSecureValue = SecureValue;
export type TypeInputSecureValue = InputSecureValue;
export type TypeSecureValueHash = SecureValueHash;
export type TypeSecureValueError = SecureValueErrorData | SecureValueErrorFrontSide | SecureValueErrorReverseSide | SecureValueErrorSelfie | SecureValueErrorFile | SecureValueErrorFiles | SecureValueError | SecureValueErrorTranslationFile | SecureValueErrorTranslationFiles;
export type TypeSecureCredentialsEncrypted = SecureCredentialsEncrypted;
export type TypeSavedContact = SavedPhoneContact;
export type TypePasswordKdfAlgo = PasswordKdfAlgoUnknown | PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow;
export type TypeSecurePasswordKdfAlgo = SecurePasswordKdfAlgoUnknown | SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 | SecurePasswordKdfAlgoSHA512;
export type TypeSecureSecretSettings = SecureSecretSettings;
export type TypeInputCheckPasswordSRP = InputCheckPasswordEmpty | InputCheckPasswordSRP;
export type TypeSecureRequiredType = SecureRequiredType | SecureRequiredTypeOneOf;
export type TypeInputAppEvent = InputAppEvent;
export type TypeJSONObjectValue = JsonObjectValue;
export type TypeJSONValue = JsonNull | JsonBool | JsonNumber | JsonString | JsonArray | JsonObject;
export type TypePageTableCell = PageTableCell;
export type TypePageTableRow = PageTableRow;
export type TypePageCaption = PageCaption;
export type TypePageListItem = PageListItemText | PageListItemBlocks;
export type TypePageListOrderedItem = PageListOrderedItemText | PageListOrderedItemBlocks;
export type TypePageRelatedArticle = PageRelatedArticle;
export type TypePage = Page;
export type TypePollAnswer = PollAnswer;
export type TypePoll = Poll;
export type TypePollAnswerVoters = PollAnswerVoters;
export type TypePollResults = PollResults;
export type TypeChatOnlines = ChatOnlines;
export type TypeStatsURL = StatsURL;
export type TypeChatAdminRights = ChatAdminRights;
export type TypeChatBannedRights = ChatBannedRights;
export type TypeInputWallPaper = InputWallPaper | InputWallPaperSlug | InputWallPaperNoFile;
export type TypeCodeSettings = CodeSettings;
export type TypeWallPaperSettings = WallPaperSettings;
export type TypeAutoDownloadSettings = AutoDownloadSettings;
export type TypeEmojiKeyword = EmojiKeyword | EmojiKeywordDeleted;
export type TypeEmojiKeywordsDifference = EmojiKeywordsDifference;
export type TypeEmojiURL = EmojiURL;
export type TypeEmojiLanguage = EmojiLanguage;
export type TypeFolder = Folder;
export type TypeInputFolderPeer = InputFolderPeer;
export type TypeFolderPeer = FolderPeer;
export type TypeUrlAuthResult = UrlAuthResultRequest | UrlAuthResultAccepted | UrlAuthResultDefault;
export type TypeChannelLocation = ChannelLocationEmpty | ChannelLocation;
export type TypePeerLocated = PeerLocated | PeerSelfLocated;
export type TypeRestrictionReason = RestrictionReason;
export type TypeInputTheme = InputTheme | InputThemeSlug;
export type TypeTheme = Theme;
export type TypeBaseTheme = BaseThemeClassic | BaseThemeDay | BaseThemeNight | BaseThemeTinted | BaseThemeArctic;
export type TypeInputThemeSettings = InputThemeSettings;
export type TypeThemeSettings = ThemeSettings;
export type TypeWebPageAttribute = WebPageAttributeTheme | WebPageAttributeStory | WebPageAttributeStickerSet;
export type TypeBankCardOpenUrl = BankCardOpenUrl;
export type TypeDialogFilter = DialogFilter | DialogFilterDefault | DialogFilterChatlist;
export type TypeDialogFilterSuggested = DialogFilterSuggested;
export type TypeStatsDateRangeDays = StatsDateRangeDays;
export type TypeStatsAbsValueAndPrev = StatsAbsValueAndPrev;
export type TypeStatsPercentValue = StatsPercentValue;
export type TypeStatsGraph = StatsGraphAsync | StatsGraphError | StatsGraph;
export type TypeVideoSize = VideoSize | VideoSizeEmojiMarkup | VideoSizeStickerMarkup;
export type TypeStatsGroupTopPoster = StatsGroupTopPoster;
export type TypeStatsGroupTopAdmin = StatsGroupTopAdmin;
export type TypeStatsGroupTopInviter = StatsGroupTopInviter;
export type TypeGlobalPrivacySettings = GlobalPrivacySettings;
export type TypeMessageViews = MessageViews;
export type TypeMessageReplyHeader = MessageReplyHeader | MessageReplyStoryHeader;
export type TypeMessageReplies = MessageReplies;
export type TypePeerBlocked = PeerBlocked;
export type TypeGroupCall = GroupCallDiscarded | GroupCall;
export type TypeInputGroupCall = InputGroupCall;
export type TypeGroupCallParticipant = GroupCallParticipant;
export type TypeInlineQueryPeerType = InlineQueryPeerTypeSameBotPM | InlineQueryPeerTypePM | InlineQueryPeerTypeChat | InlineQueryPeerTypeMegagroup | InlineQueryPeerTypeBroadcast | InlineQueryPeerTypeBotPM;
export type TypeChatInviteImporter = ChatInviteImporter;
export type TypeChatAdminWithInvites = ChatAdminWithInvites;
export type TypeGroupCallParticipantVideoSourceGroup = GroupCallParticipantVideoSourceGroup;
export type TypeGroupCallParticipantVideo = GroupCallParticipantVideo;
export type TypeBotCommandScope = BotCommandScopeDefault | BotCommandScopeUsers | BotCommandScopeChats | BotCommandScopeChatAdmins | BotCommandScopePeer | BotCommandScopePeerAdmins | BotCommandScopePeerUser;
export type TypeSponsoredMessage = SponsoredMessage;
export type TypeSearchResultsCalendarPeriod = SearchResultsCalendarPeriod;
export type TypeSearchResultsPosition = SearchResultPosition;
export type TypeReactionCount = ReactionCount;
export type TypeMessageReactions = MessageReactions;
export type TypeAvailableReaction = AvailableReaction;
export type TypeMessagePeerReaction = MessagePeerReaction;
export type TypeGroupCallStreamChannel = GroupCallStreamChannel;
export type TypeAttachMenuBotIconColor = AttachMenuBotIconColor;
export type TypeAttachMenuBotIcon = AttachMenuBotIcon;
export type TypeAttachMenuBot = AttachMenuBot;
export type TypeAttachMenuBots = AttachMenuBotsNotModified | AttachMenuBots;
export type TypeAttachMenuBotsBot = AttachMenuBotsBot;
export type TypeWebViewResult = WebViewResultUrl;
export type TypeWebViewMessageSent = WebViewMessageSent;
export type TypeBotMenuButton = BotMenuButtonDefault | BotMenuButtonCommands | BotMenuButton;
export type TypeNotificationSound = NotificationSoundDefault | NotificationSoundNone | NotificationSoundLocal | NotificationSoundRingtone;
export type TypeAttachMenuPeerType = AttachMenuPeerTypeSameBotPM | AttachMenuPeerTypeBotPM | AttachMenuPeerTypePM | AttachMenuPeerTypeChat | AttachMenuPeerTypeBroadcast;
export type TypeInputInvoice = InputInvoiceMessage | InputInvoiceSlug | InputInvoicePremiumGiftCode | InputInvoiceStars | InputInvoiceChatInviteSubscription | InputInvoiceStarGift | InputInvoiceStarGiftUpgrade | InputInvoiceStarGiftTransfer;
export type TypeInputStorePaymentPurpose = InputStorePaymentPremiumSubscription | InputStorePaymentGiftPremium | InputStorePaymentPremiumGiftCode | InputStorePaymentPremiumGiveaway | InputStorePaymentStarsTopup | InputStorePaymentStarsGift | InputStorePaymentStarsGiveaway;
export type TypePremiumGiftOption = PremiumGiftOption;
export type TypePaymentFormMethod = PaymentFormMethod;
export type TypeEmojiStatus = EmojiStatusEmpty | EmojiStatus | EmojiStatusUntil;
export type TypeReaction = ReactionEmpty | ReactionEmoji | ReactionCustomEmoji | ReactionPaid;
export type TypeChatReactions = ChatReactionsNone | ChatReactionsAll | ChatReactionsSome;
export type TypeEmailVerifyPurpose = EmailVerifyPurposeLoginSetup | EmailVerifyPurposeLoginChange | EmailVerifyPurposePassport;
export type TypeEmailVerification = EmailVerificationCode | EmailVerificationGoogle | EmailVerificationApple;
export type TypePremiumSubscriptionOption = PremiumSubscriptionOption;
export type TypeSendAsPeer = SendAsPeer;
export type TypeMessageExtendedMedia = MessageExtendedMediaPreview | MessageExtendedMedia;
export type TypeStickerKeyword = StickerKeyword;
export type TypeUsername = Username;
export type TypeForumTopic = ForumTopicDeleted | ForumTopic;
export type TypeDefaultHistoryTTL = DefaultHistoryTTL;
export type TypeExportedContactToken = ExportedContactToken;
export type TypeRequestPeerType = RequestPeerTypeUser | RequestPeerTypeChat | RequestPeerTypeBroadcast;
export type TypeEmojiList = EmojiListNotModified | EmojiList;
export type TypeEmojiGroup = EmojiGroup | EmojiGroupGreeting | EmojiGroupPremium;
export type TypeTextWithEntities = TextWithEntities;
export type TypeAutoSaveSettings = AutoSaveSettings;
export type TypeAutoSaveException = AutoSaveException;
export type TypeInputBotApp = InputBotAppID | InputBotAppShortName;
export type TypeBotApp = BotAppNotModified | BotApp;
export type TypeInlineBotWebView = InlineBotWebView;
export type TypeReadParticipantDate = ReadParticipantDate;
export type TypeInputChatlist = InputChatlistDialogFilter;
export type TypeExportedChatlistInvite = ExportedChatlistInvite;
export type TypeMessagePeerVote = MessagePeerVote | MessagePeerVoteInputOption | MessagePeerVoteMultiple;
export type TypeStoryViews = StoryViews;
export type TypeStoryItem = StoryItemDeleted | StoryItemSkipped | StoryItem;
export type TypeStoryView = StoryView | StoryViewPublicForward | StoryViewPublicRepost;
export type TypeInputReplyTo = InputReplyToMessage | InputReplyToStory;
export type TypeExportedStoryLink = ExportedStoryLink;
export type TypeStoriesStealthMode = StoriesStealthMode;
export type TypeMediaAreaCoordinates = MediaAreaCoordinates;
export type TypeMediaArea = MediaAreaVenue | InputMediaAreaVenue | MediaAreaGeoPoint | MediaAreaSuggestedReaction | MediaAreaChannelPost | InputMediaAreaChannelPost | MediaAreaUrl | MediaAreaWeather;
export type TypePeerStories = PeerStories;
export type TypePremiumGiftCodeOption = PremiumGiftCodeOption;
export type TypePrepaidGiveaway = PrepaidGiveaway | PrepaidStarsGiveaway;
export type TypeBoost = Boost;
export type TypeMyBoost = MyBoost;
export type TypeStoryFwdHeader = StoryFwdHeader;
export type TypePostInteractionCounters = PostInteractionCountersMessage | PostInteractionCountersStory;
export type TypePublicForward = PublicForwardMessage | PublicForwardStory;
export type TypePeerColor = PeerColor;
export type TypeStoryReaction = StoryReaction | StoryReactionPublicForward | StoryReactionPublicRepost;
export type TypeSavedDialog = SavedDialog;
export type TypeSavedReactionTag = SavedReactionTag;
export type TypeOutboxReadDate = OutboxReadDate;
export type TypeSmsJob = SmsJob;
export type TypeBusinessWeeklyOpen = BusinessWeeklyOpen;
export type TypeBusinessWorkHours = BusinessWorkHours;
export type TypeBusinessLocation = BusinessLocation;
export type TypeInputBusinessRecipients = InputBusinessRecipients;
export type TypeBusinessRecipients = BusinessRecipients;
export type TypeBusinessAwayMessageSchedule = BusinessAwayMessageScheduleAlways | BusinessAwayMessageScheduleOutsideWorkHours | BusinessAwayMessageScheduleCustom;
export type TypeInputBusinessGreetingMessage = InputBusinessGreetingMessage;
export type TypeBusinessGreetingMessage = BusinessGreetingMessage;
export type TypeInputBusinessAwayMessage = InputBusinessAwayMessage;
export type TypeBusinessAwayMessage = BusinessAwayMessage;
export type TypeTimezone = Timezone;
export type TypeQuickReply = QuickReply;
export type TypeInputQuickReplyShortcut = InputQuickReplyShortcut | InputQuickReplyShortcutId;
export type TypeConnectedBot = ConnectedBot;
export type TypeBirthday = Birthday;
export type TypeBotBusinessConnection = BotBusinessConnection;
export type TypeInputBusinessIntro = InputBusinessIntro;
export type TypeBusinessIntro = BusinessIntro;
export type TypeInputCollectible = InputCollectibleUsername | InputCollectiblePhone;
export type TypeInputBusinessBotRecipients = InputBusinessBotRecipients;
export type TypeBusinessBotRecipients = BusinessBotRecipients;
export type TypeContactBirthday = ContactBirthday;
export type TypeMissingInvitee = MissingInvitee;
export type TypeInputBusinessChatLink = InputBusinessChatLink;
export type TypeBusinessChatLink = BusinessChatLink;
export type TypeRequestedPeer = RequestedPeerUser | RequestedPeerChat | RequestedPeerChannel;
export type TypeSponsoredMessageReportOption = SponsoredMessageReportOption;
export type TypeBroadcastRevenueTransaction = BroadcastRevenueTransactionProceeds | BroadcastRevenueTransactionWithdrawal | BroadcastRevenueTransactionRefund;
export type TypeReactionNotificationsFrom = ReactionNotificationsFromContacts | ReactionNotificationsFromAll;
export type TypeReactionsNotifySettings = ReactionsNotifySettings;
export type TypeBroadcastRevenueBalances = BroadcastRevenueBalances;
export type TypeAvailableEffect = AvailableEffect;
export type TypeFactCheck = FactCheck;
export type TypeStarsTransactionPeer = StarsTransactionPeerUnsupported | StarsTransactionPeerAppStore | StarsTransactionPeerPlayMarket | StarsTransactionPeerPremiumBot | StarsTransactionPeerFragment | StarsTransactionPeer | StarsTransactionPeerAds | StarsTransactionPeerAPI;
export type TypeStarsTopupOption = StarsTopupOption;
export type TypeStarsTransaction = StarsTransaction;
export type TypeFoundStory = FoundStory;
export type TypeGeoPointAddress = GeoPointAddress;
export type TypeStarsRevenueStatus = StarsRevenueStatus;
export type TypeInputStarsTransaction = InputStarsTransaction;
export type TypeStarsGiftOption = StarsGiftOption;
export type TypeBotPreviewMedia = BotPreviewMedia;
export type TypeStarsSubscriptionPricing = StarsSubscriptionPricing;
export type TypeStarsSubscription = StarsSubscription;
export type TypeMessageReactor = MessageReactor;
export type TypeStarsGiveawayOption = StarsGiveawayOption;
export type TypeStarsGiveawayWinnersOption = StarsGiveawayWinnersOption;
export type TypeStarGift = StarGift | StarGiftUnique;
export type TypeUserStarGift = UserStarGift;
export type TypeMessageReportOption = MessageReportOption;
export type TypeReportResult = ReportResultChooseOption | ReportResultAddComment | ReportResultReported;
export type TypeBotAppSettings = BotAppSettings;
export type TypeStarRefProgram = StarRefProgram;
export type TypeConnectedBotStarRef = ConnectedBotStarRef;
export type TypeStarsAmount = StarsAmount;
export type TypeBotVerifierSettings = BotVerifierSettings;
export type TypeBotVerification = BotVerification;
export type TypeStarGiftAttribute = StarGiftAttributeModel | StarGiftAttributePattern | StarGiftAttributeBackdrop | StarGiftAttributeOriginalDetails;
export type TypeResPQ = ResPQ;
export type TypeP_Q_inner_data = PQInnerData | PQInnerDataDc | PQInnerDataTemp | PQInnerDataTempDc;
export type TypeServer_DH_Params = ServerDHParamsFail | ServerDHParamsOk;
export type TypeServer_DH_inner_data = ServerDHInnerData;
export type TypeClient_DH_Inner_Data = ClientDHInnerData;
export type TypeSet_client_DH_params_answer = DhGenOk | DhGenRetry | DhGenFail;
export type TypeDestroyAuthKeyRes = DestroyAuthKeyOk | DestroyAuthKeyNone | DestroyAuthKeyFail;
export type TypeMsgsAck = MsgsAck;
export type TypeBadMsgNotification = BadMsgNotification | BadServerSalt;
export type TypeMsgsStateReq = MsgsStateReq;
export type TypeMsgsStateInfo = MsgsStateInfo;
export type TypeMsgsAllInfo = MsgsAllInfo;
export type TypeMsgDetailedInfo = MsgDetailedInfo | MsgNewDetailedInfo;
export type TypeMsgResendReq = MsgResendReq;
export type TypeRpcError = RpcError;
export type TypeRpcDropAnswer = RpcAnswerUnknown | RpcAnswerDroppedRunning | RpcAnswerDropped;
export type TypeFutureSalt = FutureSalt;
export type TypeFutureSalts = FutureSalts;
export type TypePong = Pong;
export type TypeDestroySessionRes = DestroySessionOk | DestroySessionNone;
export type TypeNewSession = NewSessionCreated;
export type TypeHttpWait = HttpWait;
export type TypeIpPort = IpPort | IpPortSecret;
export type TypeAccessPointRule = AccessPointRule;
export type TypeTlsClientHello = TlsClientHello;
export type TypeTlsBlock = TlsBlockString | TlsBlockRandom | TlsBlockZero | TlsBlockDomain | TlsBlockGrease | TlsBlockScope;
export namespace storage {
export type TypeFileType = storage.FileUnknown | storage.FilePartial | storage.FileJpeg | storage.FileGif | storage.FilePng | storage.FilePdf | storage.FileMp3 | storage.FileMov | storage.FileMp4 | storage.FileWebp;
}
export namespace auth {
export type TypeSentCode = auth.SentCode | auth.SentCodeSuccess;
export type TypeAuthorization = auth.Authorization | auth.AuthorizationSignUpRequired;
export type TypeExportedAuthorization = auth.ExportedAuthorization;
export type TypePasswordRecovery = auth.PasswordRecovery;
export type TypeCodeType = auth.CodeTypeSms | auth.CodeTypeCall | auth.CodeTypeFlashCall | auth.CodeTypeMissedCall | auth.CodeTypeFragmentSms;
export type TypeSentCodeType = auth.SentCodeTypeApp | auth.SentCodeTypeSms | auth.SentCodeTypeCall | auth.SentCodeTypeFlashCall | auth.SentCodeTypeMissedCall | auth.SentCodeTypeEmailCode | auth.SentCodeTypeSetUpEmailRequired | auth.SentCodeTypeFragmentSms | auth.SentCodeTypeFirebaseSms | auth.SentCodeTypeSmsWord | auth.SentCodeTypeSmsPhrase;
export type TypeLoginToken = auth.LoginToken | auth.LoginTokenMigrateTo | auth.LoginTokenSuccess;
export type TypeLoggedOut = auth.LoggedOut;
}
export namespace contacts {
export type TypeContacts = contacts.ContactsNotModified | contacts.Contacts;
export type TypeImportedContacts = contacts.ImportedContacts;
export type TypeBlocked = contacts.Blocked | contacts.BlockedSlice;
export type TypeFound = contacts.Found;
export type TypeResolvedPeer = contacts.ResolvedPeer;
export type TypeTopPeers = contacts.TopPeersNotModified | contacts.TopPeers | contacts.TopPeersDisabled;
export type TypeContactBirthdays = contacts.ContactBirthdays;
}
export namespace messages {
export type TypeDialogs = messages.Dialogs | messages.DialogsSlice | messages.DialogsNotModified;
export type TypeMessages = messages.Messages | messages.MessagesSlice | messages.ChannelMessages | messages.MessagesNotModified;
export type TypeChats = messages.Chats | messages.ChatsSlice;
export type TypeChatFull = messages.ChatFull;
export type TypeAffectedHistory = messages.AffectedHistory;
export type TypeDhConfig = messages.DhConfigNotModified | messages.DhConfig;
export type TypeSentEncryptedMessage = messages.SentEncryptedMessage | messages.SentEncryptedFile;
export type TypeStickers = messages.StickersNotModified | messages.Stickers;
export type TypeAllStickers = messages.AllStickersNotModified | messages.AllStickers;
export type TypeAffectedMessages = messages.AffectedMessages;
export type TypeStickerSet = messages.StickerSet | messages.StickerSetNotModified;
export type TypeSavedGifs = messages.SavedGifsNotModified | messages.SavedGifs;
export type TypeBotResults = messages.BotResults;
export type TypeBotCallbackAnswer = messages.BotCallbackAnswer;
export type TypeMessageEditData = messages.MessageEditData;
export type TypePeerDialogs = messages.PeerDialogs;
export type TypeFeaturedStickers = messages.FeaturedStickersNotModified | messages.FeaturedStickers;
export type TypeRecentStickers = messages.RecentStickersNotModified | messages.RecentStickers;
export type TypeArchivedStickers = messages.ArchivedStickers;
export type TypeStickerSetInstallResult = messages.StickerSetInstallResultSuccess | messages.StickerSetInstallResultArchive;
export type TypeHighScores = messages.HighScores;
export type TypeFavedStickers = messages.FavedStickersNotModified | messages.FavedStickers;
export type TypeFoundStickerSets = messages.FoundStickerSetsNotModified | messages.FoundStickerSets;
export type TypeSearchCounter = messages.SearchCounter;
export type TypeInactiveChats = messages.InactiveChats;
export type TypeVotesList = messages.VotesList;
export type TypeMessageViews = messages.MessageViews;
export type TypeDiscussionMessage = messages.DiscussionMessage;
export type TypeHistoryImport = messages.HistoryImport;
export type TypeHistoryImportParsed = messages.HistoryImportParsed;
export type TypeAffectedFoundMessages = messages.AffectedFoundMessages;
export type TypeExportedChatInvites = messages.ExportedChatInvites;
export type TypeExportedChatInvite = messages.ExportedChatInvite | messages.ExportedChatInviteReplaced;
export type TypeChatInviteImporters = messages.ChatInviteImporters;
export type TypeChatAdminsWithInvites = messages.ChatAdminsWithInvites;
export type TypeCheckedHistoryImportPeer = messages.CheckedHistoryImportPeer;
export type TypeSponsoredMessages = messages.SponsoredMessages | messages.SponsoredMessagesEmpty;
export type TypeSearchResultsCalendar = messages.SearchResultsCalendar;
export type TypeSearchResultsPositions = messages.SearchResultsPositions;
export type TypePeerSettings = messages.PeerSettings;
export type TypeMessageReactionsList = messages.MessageReactionsList;
export type TypeAvailableReactions = messages.AvailableReactionsNotModified | messages.AvailableReactions;
export type TypeTranscribedAudio = messages.TranscribedAudio;
export type TypeReactions = messages.ReactionsNotModified | messages.Reactions;
export type TypeForumTopics = messages.ForumTopics;
export type TypeEmojiGroups = messages.EmojiGroupsNotModified | messages.EmojiGroups;
export type TypeTranslatedText = messages.TranslateResult;
export type TypeBotApp = messages.BotApp;
export type TypeWebPage = messages.WebPage;
export type TypeSavedDialogs = messages.SavedDialogs | messages.SavedDialogsSlice | messages.SavedDialogsNotModified;
export type TypeSavedReactionTags = messages.SavedReactionTagsNotModified | messages.SavedReactionTags;
export type TypeQuickReplies = messages.QuickReplies | messages.QuickRepliesNotModified;
export type TypeDialogFilters = messages.DialogFilters;
export type TypeMyStickers = messages.MyStickers;
export type TypeInvitedUsers = messages.InvitedUsers;
export type TypeAvailableEffects = messages.AvailableEffectsNotModified | messages.AvailableEffects;
export type TypeBotPreparedInlineMessage = messages.BotPreparedInlineMessage;
export type TypePreparedInlineMessage = messages.PreparedInlineMessage;
export type TypeFoundStickers = messages.FoundStickersNotModified | messages.FoundStickers;
}
export namespace updates {
export type TypeState = updates.State;
export type TypeDifference = updates.DifferenceEmpty | updates.Difference | updates.DifferenceSlice | updates.DifferenceTooLong;
export type TypeChannelDifference = updates.ChannelDifferenceEmpty | updates.ChannelDifferenceTooLong | updates.ChannelDifference;
}
export namespace photos {
export type TypePhotos = photos.Photos | photos.PhotosSlice;
export type TypePhoto = photos.Photo;
}
export namespace upload {
export type TypeFile = upload.File | upload.FileCdnRedirect;
export type TypeWebFile = upload.WebFile;
export type TypeCdnFile = upload.CdnFileReuploadNeeded | upload.CdnFile;
}
export namespace help {
export type TypeAppUpdate = help.AppUpdate | help.NoAppUpdate;
export type TypeInviteText = help.InviteText;
export type TypeSupport = help.Support;
export type TypeTermsOfService = help.TermsOfService;
export type TypeRecentMeUrls = help.RecentMeUrls;
export type TypeTermsOfServiceUpdate = help.TermsOfServiceUpdateEmpty | help.TermsOfServiceUpdate;
export type TypeDeepLinkInfo = help.DeepLinkInfoEmpty | help.DeepLinkInfo;
export type TypePassportConfig = help.PassportConfigNotModified | help.PassportConfig;
export type TypeSupportName = help.SupportName;
export type TypeUserInfo = help.UserInfoEmpty | help.UserInfo;
export type TypePromoData = help.PromoDataEmpty | help.PromoData;
export type TypeCountryCode = help.CountryCode;
export type TypeCountry = help.Country;
export type TypeCountriesList = help.CountriesListNotModified | help.CountriesList;
export type TypePremiumPromo = help.PremiumPromo;
export type TypeAppConfig = help.AppConfigNotModified | help.AppConfig;
export type TypePeerColorSet = help.PeerColorSet | help.PeerColorProfileSet;
export type TypePeerColorOption = help.PeerColorOption;
export type TypePeerColors = help.PeerColorsNotModified | help.PeerColors;
export type TypeTimezonesList = help.TimezonesListNotModified | help.TimezonesList;
export type TypeConfigSimple = help.ConfigSimple;
}
export namespace account {
export type TypePrivacyRules = account.PrivacyRules;
export type TypeAuthorizations = account.Authorizations;
export type TypePassword = account.Password;
export type TypePasswordSettings = account.PasswordSettings;
export type TypePasswordInputSettings = account.PasswordInputSettings;
export type TypeTmpPassword = account.TmpPassword;
export type TypeWebAuthorizations = account.WebAuthorizations;
export type TypeAuthorizationForm = account.AuthorizationForm;
export type TypeSentEmailCode = account.SentEmailCode;
export type TypeTakeout = account.Takeout;
export type TypeWallPapers = account.WallPapersNotModified | account.WallPapers;
export type TypeAutoDownloadSettings = account.AutoDownloadSettings;
export type TypeThemes = account.ThemesNotModified | account.Themes;
export type TypeContentSettings = account.ContentSettings;
export type TypeResetPasswordResult = account.ResetPasswordFailedWait | account.ResetPasswordRequestedWait | account.ResetPasswordOk;
export type TypeSavedRingtones = account.SavedRingtonesNotModified | account.SavedRingtones;
export type TypeSavedRingtone = account.SavedRingtone | account.SavedRingtoneConverted;
export type TypeEmojiStatuses = account.EmojiStatusesNotModified | account.EmojiStatuses;
export type TypeEmailVerified = account.EmailVerified | account.EmailVerifiedLogin;
export type TypeAutoSaveSettings = account.AutoSaveSettings;
export type TypeConnectedBots = account.ConnectedBots;
export type TypeBusinessChatLinks = account.BusinessChatLinks;
export type TypeResolvedBusinessChatLinks = account.ResolvedBusinessChatLinks;
}
export namespace channels {
export type TypeChannelParticipants = channels.ChannelParticipants | channels.ChannelParticipantsNotModified;
export type TypeChannelParticipant = channels.ChannelParticipant;
export type TypeAdminLogResults = channels.AdminLogResults;
export type TypeSendAsPeers = channels.SendAsPeers;
export type TypeSponsoredMessageReportResult = channels.SponsoredMessageReportResultChooseOption | channels.SponsoredMessageReportResultAdsHidden | channels.SponsoredMessageReportResultReported;
}
export namespace payments {
export type TypePaymentForm = payments.PaymentForm | payments.PaymentFormStars | payments.PaymentFormStarGift;
export type TypeValidatedRequestedInfo = payments.ValidatedRequestedInfo;
export type TypePaymentResult = payments.PaymentResult | payments.PaymentVerificationNeeded;
export type TypePaymentReceipt = payments.PaymentReceipt | payments.PaymentReceiptStars;
export type TypeSavedInfo = payments.SavedInfo;
export type TypeBankCardData = payments.BankCardData;
export type TypeExportedInvoice = payments.ExportedInvoice;
export type TypeCheckedGiftCode = payments.CheckedGiftCode;
export type TypeGiveawayInfo = payments.GiveawayInfo | payments.GiveawayInfoResults;
export type TypeStarsStatus = payments.StarsStatus;
export type TypeStarsRevenueStats = payments.StarsRevenueStats;
export type TypeStarsRevenueWithdrawalUrl = payments.StarsRevenueWithdrawalUrl;
export type TypeStarsRevenueAdsAccountUrl = payments.StarsRevenueAdsAccountUrl;
export type TypeStarGifts = payments.StarGiftsNotModified | payments.StarGifts;
export type TypeUserStarGifts = payments.UserStarGifts;
export type TypeConnectedStarRefBots = payments.ConnectedStarRefBots;
export type TypeSuggestedStarRefBots = payments.SuggestedStarRefBots;
export type TypeStarGiftUpgradePreview = payments.StarGiftUpgradePreview;
}
export namespace phone {
export type TypePhoneCall = phone.PhoneCall;
export type TypeGroupCall = phone.GroupCall;
export type TypeGroupParticipants = phone.GroupParticipants;
export type TypeJoinAsPeers = phone.JoinAsPeers;
export type TypeExportedGroupCallInvite = phone.ExportedGroupCallInvite;
export type TypeGroupCallStreamChannels = phone.GroupCallStreamChannels;
export type TypeGroupCallStreamRtmpUrl = phone.GroupCallStreamRtmpUrl;
}
export namespace stats {
export type TypeBroadcastStats = stats.BroadcastStats;
export type TypeMegagroupStats = stats.MegagroupStats;
export type TypeMessageStats = stats.MessageStats;
export type TypeStoryStats = stats.StoryStats;
export type TypePublicForwards = stats.PublicForwards;
export type TypeBroadcastRevenueStats = stats.BroadcastRevenueStats;
export type TypeBroadcastRevenueWithdrawalUrl = stats.BroadcastRevenueWithdrawalUrl;
export type TypeBroadcastRevenueTransactions = stats.BroadcastRevenueTransactions;
}
export namespace stickers {
export type TypeSuggestedShortName = stickers.SuggestedShortName;
}
export namespace users {
export type TypeUserFull = users.UserFull;
}
export namespace chatlists {
export type TypeExportedChatlistInvite = chatlists.ExportedChatlistInvite;
export type TypeExportedInvites = chatlists.ExportedInvites;
export type TypeChatlistInvite = chatlists.ChatlistInviteAlready | chatlists.ChatlistInvite;
export type TypeChatlistUpdates = chatlists.ChatlistUpdates;
}
export namespace bots {
export type TypeBotInfo = bots.BotInfo;
export type TypePopularAppBots = bots.PopularAppBots;
export type TypePreviewInfo = bots.PreviewInfo;
}
export namespace stories {
export type TypeAllStories = stories.AllStoriesNotModified | stories.AllStories;
export type TypeStories = stories.Stories;
export type TypeStoryViewsList = stories.StoryViewsList;
export type TypeStoryViews = stories.StoryViews;
export type TypePeerStories = stories.PeerStories;
export type TypeStoryReactionsList = stories.StoryReactionsList;
export type TypeFoundStories = stories.FoundStories;
}
export namespace premium {
export type TypeBoostsList = premium.BoostsList;
export type TypeMyBoosts = premium.MyBoosts;
export type TypeBoostsStatus = premium.BoostsStatus;
}
export namespace smsjobs {
export type TypeEligibilityToJoin = smsjobs.EligibleToJoin;
export type TypeStatus = smsjobs.Status;
}
export namespace fragment {
export type TypeCollectibleInfo = fragment.CollectibleInfo;
}
export class InputPeerEmpty extends VirtualClass<void> {};
export class InputPeerSelf extends VirtualClass<void> {};
export class InputPeerChat extends VirtualClass<{
chatId: long;
}> {
chatId: long;
};
export class InputPeerUser extends VirtualClass<{
userId: long;
accessHash: long;
}> {
userId: long;
accessHash: long;
};
export class InputPeerChannel extends VirtualClass<{
channelId: long;
accessHash: long;
}> {
channelId: long;
accessHash: long;
};
export class InputPeerUserFromMessage extends VirtualClass<{
peer: Api.TypeInputPeer;
msgId: int;
userId: long;
}> {
peer: Api.TypeInputPeer;
msgId: int;
userId: long;
};
export class InputPeerChannelFromMessage extends VirtualClass<{
peer: Api.TypeInputPeer;
msgId: int;
channelId: long;
}> {
peer: Api.TypeInputPeer;
msgId: int;
channelId: long;
};
export class InputUserEmpty extends VirtualClass<void> {};
export class InputUserSelf extends VirtualClass<void> {};
export class InputUser extends VirtualClass<{
userId: long;
accessHash: long;
}> {
userId: long;
accessHash: long;
};
export class InputUserFromMessage extends VirtualClass<{
peer: Api.TypeInputPeer;
msgId: int;
userId: long;
}> {
peer: Api.TypeInputPeer;
msgId: int;
userId: long;
};
export class InputPhoneContact extends VirtualClass<{
clientId: long;
phone: string;
firstName: string;
lastName: string;
}> {
clientId: long;
phone: string;
firstName: string;
lastName: string;
};
export class InputFile extends VirtualClass<{
id: long;
parts: int;
name: string;
md5Checksum: string;
}> {
id: long;
parts: int;
name: string;
md5Checksum: string;
};
export class InputFileBig extends VirtualClass<{
id: long;
parts: int;
name: string;
}> {
id: long;
parts: int;
name: string;
};
export class InputFileStoryDocument extends VirtualClass<{
id: Api.TypeInputDocument;
}> {
id: Api.TypeInputDocument;
};
export class InputMediaEmpty extends VirtualClass<void> {};
export class InputMediaUploadedPhoto extends VirtualClass<{
// flags: undefined;
spoiler?: true;
file: Api.TypeInputFile;
stickers?: Api.TypeInputDocument[];
ttlSeconds?: int;
}> {
// flags: undefined;
spoiler?: true;
file: Api.TypeInputFile;
stickers?: Api.TypeInputDocument[];
ttlSeconds?: int;
};
export class InputMediaPhoto extends VirtualClass<{
// flags: undefined;
spoiler?: true;
id: Api.TypeInputPhoto;
ttlSeconds?: int;
}> {
// flags: undefined;
spoiler?: true;
id: Api.TypeInputPhoto;
ttlSeconds?: int;
};
export class InputMediaGeoPoint extends VirtualClass<{
geoPoint: Api.TypeInputGeoPoint;
}> {
geoPoint: Api.TypeInputGeoPoint;
};
export class InputMediaContact extends VirtualClass<{
phoneNumber: string;
firstName: string;
lastName: string;
vcard: string;
}> {
phoneNumber: string;
firstName: string;
lastName: string;
vcard: string;
};
export class InputMediaUploadedDocument extends VirtualClass<{
// flags: undefined;
nosoundVideo?: true;
forceFile?: true;
spoiler?: true;
file: Api.TypeInputFile;
thumb?: Api.TypeInputFile;
mimeType: string;
attributes: Api.TypeDocumentAttribute[];
stickers?: Api.TypeInputDocument[];
ttlSeconds?: int;
}> {
// flags: undefined;
nosoundVideo?: true;
forceFile?: true;
spoiler?: true;
file: Api.TypeInputFile;
thumb?: Api.TypeInputFile;
mimeType: string;
attributes: Api.TypeDocumentAttribute[];
stickers?: Api.TypeInputDocument[];
ttlSeconds?: int;
};
export class InputMediaDocument extends VirtualClass<{
// flags: undefined;
spoiler?: true;
id: Api.TypeInputDocument;
ttlSeconds?: int;
query?: string;
}> {
// flags: undefined;
spoiler?: true;
id: Api.TypeInputDocument;
ttlSeconds?: int;
query?: string;
};
export class InputMediaVenue extends VirtualClass<{
geoPoint: Api.TypeInputGeoPoint;
title: string;
address: string;
provider: string;
venueId: string;
venueType: string;
}> {
geoPoint: Api.TypeInputGeoPoint;
title: string;
address: string;
provider: string;
venueId: string;
venueType: string;
};
export class InputMediaPhotoExternal extends VirtualClass<{
// flags: undefined;
spoiler?: true;
url: string;
ttlSeconds?: int;
}> {
// flags: undefined;
spoiler?: true;
url: string;
ttlSeconds?: int;
};
export class InputMediaDocumentExternal extends VirtualClass<{
// flags: undefined;
spoiler?: true;
url: string;
ttlSeconds?: int;
}> {
// flags: undefined;
spoiler?: true;
url: string;
ttlSeconds?: int;
};
export class InputMediaGame extends VirtualClass<{
id: Api.TypeInputGame;
}> {
id: Api.TypeInputGame;
};
export class InputMediaInvoice extends VirtualClass<{
// flags: undefined;
title: string;
description: string;
photo?: Api.TypeInputWebDocument;
invoice: Api.TypeInvoice;
payload: bytes;
provider?: string;
providerData: Api.TypeDataJSON;
startParam?: string;
extendedMedia?: Api.TypeInputMedia;
}> {
// flags: undefined;
title: string;
description: string;
photo?: Api.TypeInputWebDocument;
invoice: Api.TypeInvoice;
payload: bytes;
provider?: string;
providerData: Api.TypeDataJSON;
startParam?: string;
extendedMedia?: Api.TypeInputMedia;
};
export class InputMediaGeoLive extends VirtualClass<{
// flags: undefined;
stopped?: true;
geoPoint: Api.TypeInputGeoPoint;
heading?: int;
period?: int;
proximityNotificationRadius?: int;
}> {
// flags: undefined;
stopped?: true;
geoPoint: Api.TypeInputGeoPoint;
heading?: int;
period?: int;
proximityNotificationRadius?: int;
};
export class InputMediaPoll extends VirtualClass<{
// flags: undefined;
poll: Api.TypePoll;
correctAnswers?: bytes[];
solution?: string;
solutionEntities?: Api.TypeMessageEntity[];
}> {
// flags: undefined;
poll: Api.TypePoll;
correctAnswers?: bytes[];
solution?: string;
solutionEntities?: Api.TypeMessageEntity[];
};
export class InputMediaDice extends VirtualClass<{
emoticon: string;
}> {
emoticon: string;
};
export class InputMediaStory extends VirtualClass<{
peer: Api.TypeInputPeer;
id: int;
}> {
peer: Api.TypeInputPeer;
id: int;
};
export class InputMediaWebPage extends VirtualClass<{
// flags: undefined;
forceLargeMedia?: true;
forceSmallMedia?: true;
optional?: true;
url: string;
}> {
// flags: undefined;
forceLargeMedia?: true;
forceSmallMedia?: true;
optional?: true;
url: string;
};
export class InputMediaPaidMedia extends VirtualClass<{
// flags: undefined;
starsAmount: long;
extendedMedia: Api.TypeInputMedia[];
payload?: string;
}> {
// flags: undefined;
starsAmount: long;
extendedMedia: Api.TypeInputMedia[];
payload?: string;
};
export class InputChatPhotoEmpty extends VirtualClass<void> {};
export class InputChatUploadedPhoto extends VirtualClass<{
// flags: undefined;
file?: Api.TypeInputFile;
video?: Api.TypeInputFile;
videoStartTs?: double;
videoEmojiMarkup?: Api.TypeVideoSize;
} | void> {
// flags: undefined;
file?: Api.TypeInputFile;
video?: Api.TypeInputFile;
videoStartTs?: double;
videoEmojiMarkup?: Api.TypeVideoSize;
};
export class InputChatPhoto extends VirtualClass<{
id: Api.TypeInputPhoto;
}> {
id: Api.TypeInputPhoto;
};
export class InputGeoPointEmpty extends VirtualClass<void> {};
export class InputGeoPoint extends VirtualClass<{
// flags: undefined;
lat: double;
long: double;
accuracyRadius?: int;
}> {
// flags: undefined;
lat: double;
long: double;
accuracyRadius?: int;
};
export class InputPhotoEmpty extends VirtualClass<void> {};
export class InputPhoto extends VirtualClass<{
id: long;
accessHash: long;
fileReference: bytes;
}> {
id: long;
accessHash: long;
fileReference: bytes;
};
export class InputFileLocation extends VirtualClass<{
volumeId: long;
localId: int;
secret: long;
fileReference: bytes;
}> {
volumeId: long;
localId: int;
secret: long;
fileReference: bytes;
};
export class InputEncryptedFileLocation extends VirtualClass<{
id: long;
accessHash: long;
}> {
id: long;
accessHash: long;
};
export class InputDocumentFileLocation extends VirtualClass<{
id: long;
accessHash: long;
fileReference: bytes;
thumbSize: string;
}> {
id: long;
accessHash: long;
fileReference: bytes;
thumbSize: string;
};
export class InputSecureFileLocation extends VirtualClass<{
id: long;
accessHash: long;
}> {
id: long;
accessHash: long;
};
export class InputTakeoutFileLocation extends VirtualClass<void> {};
export class InputPhotoFileLocation extends VirtualClass<{
id: long;
accessHash: long;
fileReference: bytes;
thumbSize: string;
}> {
id: long;
accessHash: long;
fileReference: bytes;
thumbSize: string;
};
export class InputPhotoLegacyFileLocation extends VirtualClass<{
id: long;
accessHash: long;
fileReference: bytes;
volumeId: long;
localId: int;
secret: long;
}> {
id: long;
accessHash: long;
fileReference: bytes;
volumeId: long;
localId: int;
secret: long;
};
export class InputPeerPhotoFileLocation extends VirtualClass<{
// flags: undefined;
big?: true;
peer: Api.TypeInputPeer;
photoId: long;
}> {
// flags: undefined;
big?: true;
peer: Api.TypeInputPeer;
photoId: long;
};
export class InputStickerSetThumb extends VirtualClass<{
stickerset: Api.TypeInputStickerSet;
thumbVersion: int;
}> {
stickerset: Api.TypeInputStickerSet;
thumbVersion: int;
};
export class InputGroupCallStream extends VirtualClass<{
// flags: undefined;
call: Api.TypeInputGroupCall;
timeMs: long;
scale: int;
videoChannel?: int;
videoQuality?: int;
}> {
// flags: undefined;
call: Api.TypeInputGroupCall;
timeMs: long;
scale: int;
videoChannel?: int;
videoQuality?: int;
};
export class PeerUser extends VirtualClass<{
userId: long;
}> {
userId: long;
};
export class PeerChat extends VirtualClass<{
chatId: long;
}> {
chatId: long;
};
export class PeerChannel extends VirtualClass<{
channelId: long;
}> {
channelId: long;
};
export class UserEmpty extends VirtualClass<{
id: long;
}> {
id: long;
};
export class User extends VirtualClass<{
// flags: undefined;
self?: true;
contact?: true;
mutualContact?: true;
deleted?: true;
bot?: true;
botChatHistory?: true;
botNochats?: true;
verified?: true;
restricted?: true;
min?: true;
botInlineGeo?: true;
support?: true;
scam?: true;
applyMinPhoto?: true;
fake?: true;
botAttachMenu?: true;
premium?: true;
attachMenuEnabled?: true;
// flags2: undefined;
botCanEdit?: true;
closeFriend?: true;
storiesHidden?: true;
storiesUnavailable?: true;
contactRequirePremium?: true;
botBusiness?: true;
botHasMainApp?: true;
id: long;
accessHash?: long;
firstName?: string;
lastName?: string;
username?: string;
phone?: string;
photo?: Api.TypeUserProfilePhoto;
status?: Api.TypeUserStatus;
botInfoVersion?: int;
restrictionReason?: Api.TypeRestrictionReason[];
botInlinePlaceholder?: string;
langCode?: string;
emojiStatus?: Api.TypeEmojiStatus;
usernames?: Api.TypeUsername[];
storiesMaxId?: int;
color?: Api.TypePeerColor;
profileColor?: Api.TypePeerColor;
botActiveUsers?: int;
botVerificationIcon?: long;
}> {
// flags: undefined;
self?: true;
contact?: true;
mutualContact?: true;
deleted?: true;
bot?: true;
botChatHistory?: true;
botNochats?: true;
verified?: true;
restricted?: true;
min?: true;
botInlineGeo?: true;
support?: true;
scam?: true;
applyMinPhoto?: true;
fake?: true;
botAttachMenu?: true;
premium?: true;
attachMenuEnabled?: true;
// flags2: undefined;
botCanEdit?: true;
closeFriend?: true;
storiesHidden?: true;
storiesUnavailable?: true;
contactRequirePremium?: true;
botBusiness?: true;
botHasMainApp?: true;
id: long;
accessHash?: long;
firstName?: string;
lastName?: string;
username?: string;
phone?: string;
photo?: Api.TypeUserProfilePhoto;
status?: Api.TypeUserStatus;
botInfoVersion?: int;
restrictionReason?: Api.TypeRestrictionReason[];
botInlinePlaceholder?: string;
langCode?: string;
emojiStatus?: Api.TypeEmojiStatus;
usernames?: Api.TypeUsername[];
storiesMaxId?: int;
color?: Api.TypePeerColor;
profileColor?: Api.TypePeerColor;
botActiveUsers?: int;
botVerificationIcon?: long;
};
export class UserProfilePhotoEmpty extends VirtualClass<void> {};
export class UserProfilePhoto extends VirtualClass<{
// flags: undefined;
hasVideo?: true;
personal?: true;
photoId: long;
strippedThumb?: bytes;
dcId: int;
}> {
// flags: undefined;
hasVideo?: true;
personal?: true;
photoId: long;
strippedThumb?: bytes;
dcId: int;
};
export class UserStatusEmpty extends VirtualClass<void> {};
export class UserStatusOnline extends VirtualClass<{
expires: int;
}> {
expires: int;
};
export class UserStatusOffline extends VirtualClass<{
wasOnline: int;
}> {
wasOnline: int;
};
export class UserStatusRecently extends VirtualClass<{
// flags: undefined;
byMe?: true;
} | void> {
// flags: undefined;
byMe?: true;
};
export class UserStatusLastWeek extends VirtualClass<{
// flags: undefined;
byMe?: true;
} | void> {
// flags: undefined;
byMe?: true;
};
export class UserStatusLastMonth extends VirtualClass<{
// flags: undefined;
byMe?: true;
} | void> {
// flags: undefined;
byMe?: true;
};
export class ChatEmpty extends VirtualClass<{
id: long;
}> {
id: long;
};
export class Chat extends VirtualClass<{
// flags: undefined;
creator?: true;
left?: true;
deactivated?: true;
callActive?: true;
callNotEmpty?: true;
noforwards?: true;
id: long;
title: string;
photo: Api.TypeChatPhoto;
participantsCount: int;
date: int;
version: int;
migratedTo?: Api.TypeInputChannel;
adminRights?: Api.TypeChatAdminRights;
defaultBannedRights?: Api.TypeChatBannedRights;
}> {
// flags: undefined;
creator?: true;
left?: true;
deactivated?: true;
callActive?: true;
callNotEmpty?: true;
noforwards?: true;
id: long;
title: string;
photo: Api.TypeChatPhoto;
participantsCount: int;
date: int;
version: int;
migratedTo?: Api.TypeInputChannel;
adminRights?: Api.TypeChatAdminRights;
defaultBannedRights?: Api.TypeChatBannedRights;
};
export class ChatForbidden extends VirtualClass<{
id: long;
title: string;
}> {
id: long;
title: string;
};
export class Channel extends VirtualClass<{
// flags: undefined;
creator?: true;
left?: true;
broadcast?: true;
verified?: true;
megagroup?: true;
restricted?: true;
signatures?: true;
min?: true;
scam?: true;
hasLink?: true;
hasGeo?: true;
slowmodeEnabled?: true;
callActive?: true;
callNotEmpty?: true;
fake?: true;
gigagroup?: true;
noforwards?: true;
joinToSend?: true;
joinRequest?: true;
forum?: true;
// flags2: undefined;
storiesHidden?: true;
storiesHiddenMin?: true;
storiesUnavailable?: true;
signatureProfiles?: true;
id: long;
accessHash?: long;
title: string;
username?: string;
photo: Api.TypeChatPhoto;
date: int;
restrictionReason?: Api.TypeRestrictionReason[];
adminRights?: Api.TypeChatAdminRights;
bannedRights?: Api.TypeChatBannedRights;
defaultBannedRights?: Api.TypeChatBannedRights;
participantsCount?: int;
usernames?: Api.TypeUsername[];
storiesMaxId?: int;
color?: Api.TypePeerColor;
profileColor?: Api.TypePeerColor;
emojiStatus?: Api.TypeEmojiStatus;
level?: int;
subscriptionUntilDate?: int;
botVerificationIcon?: long;
}> {
// flags: undefined;
creator?: true;
left?: true;
broadcast?: true;
verified?: true;
megagroup?: true;
restricted?: true;
signatures?: true;
min?: true;
scam?: true;
hasLink?: true;
hasGeo?: true;
slowmodeEnabled?: true;
callActive?: true;
callNotEmpty?: true;
fake?: true;
gigagroup?: true;
noforwards?: true;
joinToSend?: true;
joinRequest?: true;
forum?: true;
// flags2: undefined;
storiesHidden?: true;
storiesHiddenMin?: true;
storiesUnavailable?: true;
signatureProfiles?: true;
id: long;
accessHash?: long;
title: string;
username?: string;
photo: Api.TypeChatPhoto;
date: int;
restrictionReason?: Api.TypeRestrictionReason[];
adminRights?: Api.TypeChatAdminRights;
bannedRights?: Api.TypeChatBannedRights;
defaultBannedRights?: Api.TypeChatBannedRights;
participantsCount?: int;
usernames?: Api.TypeUsername[];
storiesMaxId?: int;
color?: Api.TypePeerColor;
profileColor?: Api.TypePeerColor;
emojiStatus?: Api.TypeEmojiStatus;
level?: int;
subscriptionUntilDate?: int;
botVerificationIcon?: long;
};
export class ChannelForbidden extends VirtualClass<{
// flags: undefined;
broadcast?: true;
megagroup?: true;
id: long;
accessHash: long;
title: string;
untilDate?: int;
}> {
// flags: undefined;
broadcast?: true;
megagroup?: true;
id: long;
accessHash: long;
title: string;
untilDate?: int;
};
export class ChatFull extends VirtualClass<{
// flags: undefined;
canSetUsername?: true;
hasScheduled?: true;
translationsDisabled?: true;
id: long;
about: string;
participants: Api.TypeChatParticipants;
chatPhoto?: Api.TypePhoto;
notifySettings: Api.TypePeerNotifySettings;
exportedInvite?: Api.TypeExportedChatInvite;
botInfo?: Api.TypeBotInfo[];
pinnedMsgId?: int;
folderId?: int;
call?: Api.TypeInputGroupCall;
ttlPeriod?: int;
groupcallDefaultJoinAs?: Api.TypePeer;
themeEmoticon?: string;
requestsPending?: int;
recentRequesters?: long[];
availableReactions?: Api.TypeChatReactions;
reactionsLimit?: int;
}> {
// flags: undefined;
canSetUsername?: true;
hasScheduled?: true;
translationsDisabled?: true;
id: long;
about: string;
participants: Api.TypeChatParticipants;
chatPhoto?: Api.TypePhoto;
notifySettings: Api.TypePeerNotifySettings;
exportedInvite?: Api.TypeExportedChatInvite;
botInfo?: Api.TypeBotInfo[];
pinnedMsgId?: int;
folderId?: int;
call?: Api.TypeInputGroupCall;
ttlPeriod?: int;
groupcallDefaultJoinAs?: Api.TypePeer;
themeEmoticon?: string;
requestsPending?: int;
recentRequesters?: long[];
availableReactions?: Api.TypeChatReactions;
reactionsLimit?: int;
};
export class ChannelFull extends VirtualClass<{
// flags: undefined;
canViewParticipants?: true;
canSetUsername?: true;
canSetStickers?: true;
hiddenPrehistory?: true;
canSetLocation?: true;
hasScheduled?: true;
canViewStats?: true;
blocked?: true;
// flags2: undefined;
canDeleteChannel?: true;
antispam?: true;
participantsHidden?: true;
translationsDisabled?: true;
storiesPinnedAvailable?: true;
viewForumAsMessages?: true;
restrictedSponsored?: true;
canViewRevenue?: true;
paidMediaAllowed?: true;
canViewStarsRevenue?: true;
paidReactionsAvailable?: true;
id: long;
about: string;
participantsCount?: int;
adminsCount?: int;
kickedCount?: int;
bannedCount?: int;
onlineCount?: int;
readInboxMaxId: int;
readOutboxMaxId: int;
unreadCount: int;
chatPhoto: Api.TypePhoto;
notifySettings: Api.TypePeerNotifySettings;
exportedInvite?: Api.TypeExportedChatInvite;
botInfo: Api.TypeBotInfo[];
migratedFromChatId?: long;
migratedFromMaxId?: int;
pinnedMsgId?: int;
stickerset?: Api.TypeStickerSet;
availableMinId?: int;
folderId?: int;
linkedChatId?: long;
location?: Api.TypeChannelLocation;
slowmodeSeconds?: int;
slowmodeNextSendDate?: int;
statsDc?: int;
pts: int;
call?: Api.TypeInputGroupCall;
ttlPeriod?: int;
pendingSuggestions?: string[];
groupcallDefaultJoinAs?: Api.TypePeer;
themeEmoticon?: string;
requestsPending?: int;
recentRequesters?: long[];
defaultSendAs?: Api.TypePeer;
availableReactions?: Api.TypeChatReactions;
reactionsLimit?: int;
stories?: Api.TypePeerStories;
wallpaper?: Api.TypeWallPaper;
boostsApplied?: int;
boostsUnrestrict?: int;
emojiset?: Api.TypeStickerSet;
botVerification?: Api.TypeBotVerification;
}> {
// flags: undefined;
canViewParticipants?: true;
canSetUsername?: true;
canSetStickers?: true;
hiddenPrehistory?: true;
canSetLocation?: true;
hasScheduled?: true;
canViewStats?: true;
blocked?: true;
// flags2: undefined;
canDeleteChannel?: true;
antispam?: true;
participantsHidden?: true;
translationsDisabled?: true;
storiesPinnedAvailable?: true;
viewForumAsMessages?: true;
restrictedSponsored?: true;
canViewRevenue?: true;
paidMediaAllowed?: true;
canViewStarsRevenue?: true;
paidReactionsAvailable?: true;
id: long;
about: string;
participantsCount?: int;
adminsCount?: int;
kickedCount?: int;
bannedCount?: int;
onlineCount?: int;
readInboxMaxId: int;
readOutboxMaxId: int;
unreadCount: int;
chatPhoto: Api.TypePhoto;
notifySettings: Api.TypePeerNotifySettings;
exportedInvite?: Api.TypeExportedChatInvite;
botInfo: Api.TypeBotInfo[];
migratedFromChatId?: long;
migratedFromMaxId?: int;
pinnedMsgId?: int;
stickerset?: Api.TypeStickerSet;
availableMinId?: int;
folderId?: int;
linkedChatId?: long;
location?: Api.TypeChannelLocation;
slowmodeSeconds?: int;
slowmodeNextSendDate?: int;
statsDc?: int;
pts: int;
call?: Api.TypeInputGroupCall;
ttlPeriod?: int;
pendingSuggestions?: string[];
groupcallDefaultJoinAs?: Api.TypePeer;
themeEmoticon?: string;
requestsPending?: int;
recentRequesters?: long[];
defaultSendAs?: Api.TypePeer;
availableReactions?: Api.TypeChatReactions;
reactionsLimit?: int;
stories?: Api.TypePeerStories;
wallpaper?: Api.TypeWallPaper;
boostsApplied?: int;
boostsUnrestrict?: int;
emojiset?: Api.TypeStickerSet;
botVerification?: Api.TypeBotVerification;
};
export class ChatParticipant extends VirtualClass<{
userId: long;
inviterId: long;
date: int;
}> {
userId: long;
inviterId: long;
date: int;
};
export class ChatParticipantCreator extends VirtualClass<{
userId: long;
}> {
userId: long;
};
export class ChatParticipantAdmin extends VirtualClass<{
userId: long;
inviterId: long;
date: int;
}> {
userId: long;
inviterId: long;
date: int;
};
export class ChatParticipantsForbidden extends VirtualClass<{
// flags: undefined;
chatId: long;
selfParticipant?: Api.TypeChatParticipant;
}> {
// flags: undefined;
chatId: long;
selfParticipant?: Api.TypeChatParticipant;
};
export class ChatParticipants extends VirtualClass<{
chatId: long;
participants: Api.TypeChatParticipant[];
version: int;
}> {
chatId: long;
participants: Api.TypeChatParticipant[];
version: int;
};
export class ChatPhotoEmpty extends VirtualClass<void> {};
export class ChatPhoto extends VirtualClass<{
// flags: undefined;
hasVideo?: true;
photoId: long;
strippedThumb?: bytes;
dcId: int;
}> {
// flags: undefined;
hasVideo?: true;
photoId: long;
strippedThumb?: bytes;
dcId: int;
};
export class MessageEmpty extends VirtualClass<{
// flags: undefined;
id: int;
peerId?: Api.TypePeer;
}> {
// flags: undefined;
id: int;
peerId?: Api.TypePeer;
};
export class Message extends VirtualClass<{
// flags: undefined;
out?: true;
mentioned?: true;
mediaUnread?: true;
silent?: true;
post?: true;
fromScheduled?: true;
legacy?: true;
editHide?: true;
pinned?: true;
noforwards?: true;
invertMedia?: true;
// flags2: undefined;
offline?: true;
videoProcessingPending?: true;
id: int;
fromId?: Api.TypePeer;
fromBoostsApplied?: int;
peerId: Api.TypePeer;
savedPeerId?: Api.TypePeer;
fwdFrom?: Api.TypeMessageFwdHeader;
viaBotId?: long;
viaBusinessBotId?: long;
replyTo?: Api.TypeMessageReplyHeader;
date: int;
message: string;
media?: Api.TypeMessageMedia;
replyMarkup?: Api.TypeReplyMarkup;
entities?: Api.TypeMessageEntity[];
views?: int;
forwards?: int;
replies?: Api.TypeMessageReplies;
editDate?: int;
postAuthor?: string;
groupedId?: long;
reactions?: Api.TypeMessageReactions;
restrictionReason?: Api.TypeRestrictionReason[];
ttlPeriod?: int;
quickReplyShortcutId?: int;
effect?: long;
factcheck?: Api.TypeFactCheck;
reportDeliveryUntilDate?: int;
}> {
// flags: undefined;
out?: true;
mentioned?: true;
mediaUnread?: true;
silent?: true;
post?: true;
fromScheduled?: true;
legacy?: true;
editHide?: true;
pinned?: true;
noforwards?: true;
invertMedia?: true;
// flags2: undefined;
offline?: true;
videoProcessingPending?: true;
id: int;
fromId?: Api.TypePeer;
fromBoostsApplied?: int;
peerId: Api.TypePeer;
savedPeerId?: Api.TypePeer;
fwdFrom?: Api.TypeMessageFwdHeader;
viaBotId?: long;
viaBusinessBotId?: long;
replyTo?: Api.TypeMessageReplyHeader;
date: int;
message: string;
media?: Api.TypeMessageMedia;
replyMarkup?: Api.TypeReplyMarkup;
entities?: Api.TypeMessageEntity[];
views?: int;
forwards?: int;
replies?: Api.TypeMessageReplies;
editDate?: int;
postAuthor?: string;
groupedId?: long;
reactions?: Api.TypeMessageReactions;
restrictionReason?: Api.TypeRestrictionReason[];
ttlPeriod?: int;
quickReplyShortcutId?: int;
effect?: long;
factcheck?: Api.TypeFactCheck;
reportDeliveryUntilDate?: int;
};
export class MessageService extends VirtualClass<{
// flags: undefined;
out?: true;
mentioned?: true;
mediaUnread?: true;
reactionsArePossible?: true;
silent?: true;
post?: true;
legacy?: true;
id: int;
fromId?: Api.TypePeer;
peerId: Api.TypePeer;
replyTo?: Api.TypeMessageReplyHeader;
date: int;
action: Api.TypeMessageAction;
reactions?: Api.TypeMessageReactions;
ttlPeriod?: int;
}> {
// flags: undefined;
out?: true;
mentioned?: true;
mediaUnread?: true;
reactionsArePossible?: true;
silent?: true;
post?: true;
legacy?: true;
id: int;
fromId?: Api.TypePeer;
peerId: Api.TypePeer;
replyTo?: Api.TypeMessageReplyHeader;
date: int;
action: Api.TypeMessageAction;
reactions?: Api.TypeMessageReactions;
ttlPeriod?: int;
};
export class MessageMediaEmpty extends VirtualClass<void> {};
export class MessageMediaPhoto extends VirtualClass<{
// flags: undefined;
spoiler?: true;
photo?: Api.TypePhoto;
ttlSeconds?: int;
} | void> {
// flags: undefined;
spoiler?: true;
photo?: Api.TypePhoto;
ttlSeconds?: int;
};
export class MessageMediaGeo extends VirtualClass<{
geo: Api.TypeGeoPoint;
}> {
geo: Api.TypeGeoPoint;
};
export class MessageMediaContact extends VirtualClass<{
phoneNumber: string;
firstName: string;
lastName: string;
vcard: string;
userId: long;
}> {
phoneNumber: string;
firstName: string;
lastName: string;
vcard: string;
userId: long;
};
export class MessageMediaUnsupported extends VirtualClass<void> {};
export class MessageMediaDocument extends VirtualClass<{
// flags: undefined;
nopremium?: true;
spoiler?: true;
video?: true;
round?: true;
voice?: true;
document?: Api.TypeDocument;
altDocuments?: Api.TypeDocument[];
ttlSeconds?: int;
} | void> {
// flags: undefined;
nopremium?: true;
spoiler?: true;
video?: true;
round?: true;
voice?: true;
document?: Api.TypeDocument;
altDocuments?: Api.TypeDocument[];
ttlSeconds?: int;
};
export class MessageMediaWebPage extends VirtualClass<{
// flags: undefined;
forceLargeMedia?: true;
forceSmallMedia?: true;
manual?: true;
safe?: true;
webpage: Api.TypeWebPage;
}> {
// flags: undefined;
forceLargeMedia?: true;
forceSmallMedia?: true;
manual?: true;
safe?: true;
webpage: Api.TypeWebPage;
};
export class MessageMediaVenue extends VirtualClass<{
geo: Api.TypeGeoPoint;
title: string;
address: string;
provider: string;
venueId: string;
venueType: string;
}> {
geo: Api.TypeGeoPoint;
title: string;
address: string;
provider: string;
venueId: string;
venueType: string;
};
export class MessageMediaGame extends VirtualClass<{
game: Api.TypeGame;
}> {
game: Api.TypeGame;
};
export class MessageMediaInvoice extends VirtualClass<{
// flags: undefined;
shippingAddressRequested?: true;
test?: true;
title: string;
description: string;
photo?: Api.TypeWebDocument;
receiptMsgId?: int;
currency: string;
totalAmount: long;
startParam: string;
extendedMedia?: Api.TypeMessageExtendedMedia;
}> {
// flags: undefined;
shippingAddressRequested?: true;
test?: true;
title: string;
description: string;
photo?: Api.TypeWebDocument;
receiptMsgId?: int;
currency: string;
totalAmount: long;
startParam: string;
extendedMedia?: Api.TypeMessageExtendedMedia;
};
export class MessageMediaGeoLive extends VirtualClass<{
// flags: undefined;
geo: Api.TypeGeoPoint;
heading?: int;
period: int;
proximityNotificationRadius?: int;
}> {
// flags: undefined;
geo: Api.TypeGeoPoint;
heading?: int;
period: int;
proximityNotificationRadius?: int;
};
export class MessageMediaPoll extends VirtualClass<{
poll: Api.TypePoll;
results: Api.TypePollResults;
}> {
poll: Api.TypePoll;
results: Api.TypePollResults;
};
export class MessageMediaDice extends VirtualClass<{
value: int;
emoticon: string;
}> {
value: int;
emoticon: string;
};
export class MessageMediaStory extends VirtualClass<{
// flags: undefined;
viaMention?: true;
peer: Api.TypePeer;
id: int;
story?: Api.TypeStoryItem;
}> {
// flags: undefined;
viaMention?: true;
peer: Api.TypePeer;
id: int;
story?: Api.TypeStoryItem;
};
export class MessageMediaGiveaway extends VirtualClass<{
// flags: undefined;
onlyNewSubscribers?: true;
winnersAreVisible?: true;
channels: long[];
countriesIso2?: string[];
prizeDescription?: string;
quantity: int;
months?: int;
stars?: long;
untilDate: int;
}> {
// flags: undefined;
onlyNewSubscribers?: true;
winnersAreVisible?: true;
channels: long[];
countriesIso2?: string[];
prizeDescription?: string;
quantity: int;
months?: int;
stars?: long;
untilDate: int;
};
export class MessageMediaGiveawayResults extends VirtualClass<{
// flags: undefined;
onlyNewSubscribers?: true;
refunded?: true;
channelId: long;
additionalPeersCount?: int;
launchMsgId: int;
winnersCount: int;
unclaimedCount: int;
winners: long[];
months?: int;
stars?: long;
prizeDescription?: string;
untilDate: int;
}> {
// flags: undefined;
onlyNewSubscribers?: true;
refunded?: true;
channelId: long;
additionalPeersCount?: int;
launchMsgId: int;
winnersCount: int;
unclaimedCount: int;
winners: long[];
months?: int;
stars?: long;
prizeDescription?: string;
untilDate: int;
};
export class MessageMediaPaidMedia extends VirtualClass<{
starsAmount: long;
extendedMedia: Api.TypeMessageExtendedMedia[];
}> {
starsAmount: long;
extendedMedia: Api.TypeMessageExtendedMedia[];
};
export class MessageActionEmpty extends VirtualClass<void> {};
export class MessageActionChatCreate extends VirtualClass<{
title: string;
users: long[];
}> {
title: string;
users: long[];
};
export class MessageActionChatEditTitle extends VirtualClass<{
title: string;
}> {
title: string;
};
export class MessageActionChatEditPhoto extends VirtualClass<{
photo: Api.TypePhoto;
}> {
photo: Api.TypePhoto;
};
export class MessageActionChatDeletePhoto extends VirtualClass<void> {};
export class MessageActionChatAddUser extends VirtualClass<{
users: long[];
}> {
users: long[];
};
export class MessageActionChatDeleteUser extends VirtualClass<{
userId: long;
}> {
userId: long;
};
export class MessageActionChatJoinedByLink extends VirtualClass<{
inviterId: long;
}> {
inviterId: long;
};
export class MessageActionChannelCreate extends VirtualClass<{
title: string;
}> {
title: string;
};
export class MessageActionChatMigrateTo extends VirtualClass<{
channelId: long;
}> {
channelId: long;
};
export class MessageActionChannelMigrateFrom extends VirtualClass<{
title: string;
chatId: long;
}> {
title: string;
chatId: long;
};
export class MessageActionPinMessage extends VirtualClass<void> {};
export class MessageActionHistoryClear extends VirtualClass<void> {};
export class MessageActionGameScore extends VirtualClass<{
gameId: long;
score: int;
}> {
gameId: long;
score: int;
};
export class MessageActionPaymentSentMe extends VirtualClass<{
// flags: undefined;
recurringInit?: true;
recurringUsed?: true;
currency: string;
totalAmount: long;
payload: bytes;
info?: Api.TypePaymentRequestedInfo;
shippingOptionId?: string;
charge: Api.TypePaymentCharge;
subscriptionUntilDate?: int;
}> {
// flags: undefined;
recurringInit?: true;
recurringUsed?: true;
currency: string;
totalAmount: long;
payload: bytes;
info?: Api.TypePaymentRequestedInfo;
shippingOptionId?: string;
charge: Api.TypePaymentCharge;
subscriptionUntilDate?: int;
};
export class MessageActionPaymentSent extends VirtualClass<{
// flags: undefined;
recurringInit?: true;
recurringUsed?: true;
currency: string;
totalAmount: long;
invoiceSlug?: string;
subscriptionUntilDate?: int;
}> {
// flags: undefined;
recurringInit?: true;
recurringUsed?: true;
currency: string;
totalAmount: long;
invoiceSlug?: string;
subscriptionUntilDate?: int;
};
export class MessageActionPhoneCall extends VirtualClass<{
// flags: undefined;
video?: true;
callId: long;
reason?: Api.TypePhoneCallDiscardReason;
duration?: int;
}> {
// flags: undefined;
video?: true;
callId: long;
reason?: Api.TypePhoneCallDiscardReason;
duration?: int;
};
export class MessageActionScreenshotTaken extends VirtualClass<void> {};
export class MessageActionCustomAction extends VirtualClass<{
message: string;
}> {
message: string;
};
export class MessageActionBotAllowed extends VirtualClass<{
// flags: undefined;
attachMenu?: true;
fromRequest?: true;
domain?: string;
app?: Api.TypeBotApp;
} | void> {
// flags: undefined;
attachMenu?: true;
fromRequest?: true;
domain?: string;
app?: Api.TypeBotApp;
};
export class MessageActionSecureValuesSentMe extends VirtualClass<{
values: Api.TypeSecureValue[];
credentials: Api.TypeSecureCredentialsEncrypted;
}> {
values: Api.TypeSecureValue[];
credentials: Api.TypeSecureCredentialsEncrypted;
};
export class MessageActionSecureValuesSent extends VirtualClass<{
types: Api.TypeSecureValueType[];
}> {
types: Api.TypeSecureValueType[];
};
export class MessageActionContactSignUp extends VirtualClass<void> {};
export class MessageActionGeoProximityReached extends VirtualClass<{
fromId: Api.TypePeer;
toId: Api.TypePeer;
distance: int;
}> {
fromId: Api.TypePeer;
toId: Api.TypePeer;
distance: int;
};
export class MessageActionGroupCall extends VirtualClass<{
// flags: undefined;
call: Api.TypeInputGroupCall;
duration?: int;
}> {
// flags: undefined;
call: Api.TypeInputGroupCall;
duration?: int;
};
export class MessageActionInviteToGroupCall extends VirtualClass<{
call: Api.TypeInputGroupCall;
users: long[];
}> {
call: Api.TypeInputGroupCall;
users: long[];
};
export class MessageActionSetMessagesTTL extends VirtualClass<{
// flags: undefined;
period: int;
autoSettingFrom?: long;
}> {
// flags: undefined;
period: int;
autoSettingFrom?: long;
};
export class MessageActionGroupCallScheduled extends VirtualClass<{
call: Api.TypeInputGroupCall;
scheduleDate: int;
}> {
call: Api.TypeInputGroupCall;
scheduleDate: int;
};
export class MessageActionSetChatTheme extends VirtualClass<{
emoticon: string;
}> {
emoticon: string;
};
export class MessageActionChatJoinedByRequest extends VirtualClass<void> {};
export class MessageActionWebViewDataSentMe extends VirtualClass<{
text: string;
data: string;
}> {
text: string;
data: string;
};
export class MessageActionWebViewDataSent extends VirtualClass<{
text: string;
}> {
text: string;
};
export class MessageActionGiftPremium extends VirtualClass<{
// flags: undefined;
currency: string;
amount: long;
months: int;
cryptoCurrency?: string;
cryptoAmount?: long;
message?: Api.TypeTextWithEntities;
}> {
// flags: undefined;
currency: string;
amount: long;
months: int;
cryptoCurrency?: string;
cryptoAmount?: long;
message?: Api.TypeTextWithEntities;
};
export class MessageActionTopicCreate extends VirtualClass<{
// flags: undefined;
title: string;
iconColor: int;
iconEmojiId?: long;
}> {
// flags: undefined;
title: string;
iconColor: int;
iconEmojiId?: long;
};
export class MessageActionTopicEdit extends VirtualClass<{
// flags: undefined;
title?: string;
iconEmojiId?: long;
closed?: Bool;
hidden?: Bool;
} | void> {
// flags: undefined;
title?: string;
iconEmojiId?: long;
closed?: Bool;
hidden?: Bool;
};
export class MessageActionSuggestProfilePhoto extends VirtualClass<{
photo: Api.TypePhoto;
}> {
photo: Api.TypePhoto;
};
export class MessageActionRequestedPeer extends VirtualClass<{
buttonId: int;
peers: Api.TypePeer[];
}> {
buttonId: int;
peers: Api.TypePeer[];
};
export class MessageActionSetChatWallPaper extends VirtualClass<{
// flags: undefined;
same?: true;
forBoth?: true;
wallpaper: Api.TypeWallPaper;
}> {
// flags: undefined;
same?: true;
forBoth?: true;
wallpaper: Api.TypeWallPaper;
};
export class MessageActionGiftCode extends VirtualClass<{
// flags: undefined;
viaGiveaway?: true;
unclaimed?: true;
boostPeer?: Api.TypePeer;
months: int;
slug: string;
currency?: string;
amount?: long;
cryptoCurrency?: string;
cryptoAmount?: long;
message?: Api.TypeTextWithEntities;
}> {
// flags: undefined;
viaGiveaway?: true;
unclaimed?: true;
boostPeer?: Api.TypePeer;
months: int;
slug: string;
currency?: string;
amount?: long;
cryptoCurrency?: string;
cryptoAmount?: long;
message?: Api.TypeTextWithEntities;
};
export class MessageActionGiveawayLaunch extends VirtualClass<{
// flags: undefined;
stars?: long;
} | void> {
// flags: undefined;
stars?: long;
};
export class MessageActionGiveawayResults extends VirtualClass<{
// flags: undefined;
stars?: true;
winnersCount: int;
unclaimedCount: int;
}> {
// flags: undefined;
stars?: true;
winnersCount: int;
unclaimedCount: int;
};
export class MessageActionBoostApply extends VirtualClass<{
boosts: int;
}> {
boosts: int;
};
export class MessageActionRequestedPeerSentMe extends VirtualClass<{
buttonId: int;
peers: Api.TypeRequestedPeer[];
}> {
buttonId: int;
peers: Api.TypeRequestedPeer[];
};
export class MessageActionPaymentRefunded extends VirtualClass<{
// flags: undefined;
peer: Api.TypePeer;
currency: string;
totalAmount: long;
payload?: bytes;
charge: Api.TypePaymentCharge;
}> {
// flags: undefined;
peer: Api.TypePeer;
currency: string;
totalAmount: long;
payload?: bytes;
charge: Api.TypePaymentCharge;
};
export class MessageActionGiftStars extends VirtualClass<{
// flags: undefined;
currency: string;
amount: long;
stars: long;
cryptoCurrency?: string;
cryptoAmount?: long;
transactionId?: string;
}> {
// flags: undefined;
currency: string;
amount: long;
stars: long;
cryptoCurrency?: string;
cryptoAmount?: long;
transactionId?: string;
};
export class MessageActionPrizeStars extends VirtualClass<{
// flags: undefined;
unclaimed?: true;
stars: long;
transactionId: string;
boostPeer: Api.TypePeer;
giveawayMsgId: int;
}> {
// flags: undefined;
unclaimed?: true;
stars: long;
transactionId: string;
boostPeer: Api.TypePeer;
giveawayMsgId: int;
};
export class MessageActionStarGift extends VirtualClass<{
// flags: undefined;
nameHidden?: true;
saved?: true;
converted?: true;
upgraded?: true;
refunded?: true;
canUpgrade?: true;
gift: Api.TypeStarGift;
message?: Api.TypeTextWithEntities;
convertStars?: long;
upgradeMsgId?: int;
upgradeStars?: long;
}> {
// flags: undefined;
nameHidden?: true;
saved?: true;
converted?: true;
upgraded?: true;
refunded?: true;
canUpgrade?: true;
gift: Api.TypeStarGift;
message?: Api.TypeTextWithEntities;
convertStars?: long;
upgradeMsgId?: int;
upgradeStars?: long;
};
export class MessageActionStarGiftUnique extends VirtualClass<{
// flags: undefined;
upgrade?: true;
transferred?: true;
saved?: true;
refunded?: true;
gift: Api.TypeStarGift;
canExportAt?: int;
transferStars?: long;
}> {
// flags: undefined;
upgrade?: true;
transferred?: true;
saved?: true;
refunded?: true;
gift: Api.TypeStarGift;
canExportAt?: int;
transferStars?: long;
};
export class Dialog extends VirtualClass<{
// flags: undefined;
pinned?: true;
unreadMark?: true;
viewForumAsMessages?: true;
peer: Api.TypePeer;
topMessage: int;
readInboxMaxId: int;
readOutboxMaxId: int;
unreadCount: int;
unreadMentionsCount: int;
unreadReactionsCount: int;
notifySettings: Api.TypePeerNotifySettings;
pts?: int;
draft?: Api.TypeDraftMessage;
folderId?: int;
ttlPeriod?: int;
}> {
// flags: undefined;
pinned?: true;
unreadMark?: true;
viewForumAsMessages?: true;
peer: Api.TypePeer;
topMessage: int;
readInboxMaxId: int;
readOutboxMaxId: int;
unreadCount: int;
unreadMentionsCount: int;
unreadReactionsCount: int;
notifySettings: Api.TypePeerNotifySettings;
pts?: int;
draft?: Api.TypeDraftMessage;
folderId?: int;
ttlPeriod?: int;
};
export class DialogFolder extends VirtualClass<{
// flags: undefined;
pinned?: true;
folder: Api.TypeFolder;
peer: Api.TypePeer;
topMessage: int;
unreadMutedPeersCount: int;
unreadUnmutedPeersCount: int;
unreadMutedMessagesCount: int;
unreadUnmutedMessagesCount: int;
}> {
// flags: undefined;
pinned?: true;
folder: Api.TypeFolder;
peer: Api.TypePeer;
topMessage: int;
unreadMutedPeersCount: int;
unreadUnmutedPeersCount: int;
unreadMutedMessagesCount: int;
unreadUnmutedMessagesCount: int;
};
export class PhotoEmpty extends VirtualClass<{
id: long;
}> {
id: long;
};
export class Photo extends VirtualClass<{
// flags: undefined;
hasStickers?: true;
id: long;
accessHash: long;
fileReference: bytes;
date: int;
sizes: Api.TypePhotoSize[];
videoSizes?: Api.TypeVideoSize[];
dcId: int;
}> {
// flags: undefined;
hasStickers?: true;
id: long;
accessHash: long;
fileReference: bytes;
date: int;
sizes: Api.TypePhotoSize[];
videoSizes?: Api.TypeVideoSize[];
dcId: int;
};
export class PhotoSizeEmpty extends VirtualClass<{
type: string;
}> {
type: string;
};
export class PhotoSize extends VirtualClass<{
type: string;
w: int;
h: int;
size: int;
}> {
type: string;
w: int;
h: int;
size: int;
};
export class PhotoCachedSize extends VirtualClass<{
type: string;
w: int;
h: int;
bytes: bytes;
}> {
type: string;
w: int;
h: int;
bytes: bytes;
};
export class PhotoStrippedSize extends VirtualClass<{
type: string;
bytes: bytes;
}> {
type: string;
bytes: bytes;
};
export class PhotoSizeProgressive extends VirtualClass<{
type: string;
w: int;
h: int;
sizes: int[];
}> {
type: string;
w: int;
h: int;
sizes: int[];
};
export class PhotoPathSize extends VirtualClass<{
type: string;
bytes: bytes;
}> {
type: string;
bytes: bytes;
};
export class GeoPointEmpty extends VirtualClass<void> {};
export class GeoPoint extends VirtualClass<{
// flags: undefined;
long: double;
lat: double;
accessHash: long;
accuracyRadius?: int;
}> {
// flags: undefined;
long: double;
lat: double;
accessHash: long;
accuracyRadius?: int;
};
export class InputNotifyPeer extends VirtualClass<{
peer: Api.TypeInputPeer;
}> {
peer: Api.TypeInputPeer;
};
export class InputNotifyUsers extends VirtualClass<void> {};
export class InputNotifyChats extends VirtualClass<void> {};
export class InputNotifyBroadcasts extends VirtualClass<void> {};
export class InputNotifyForumTopic extends VirtualClass<{
peer: Api.TypeInputPeer;
topMsgId: int;
}> {
peer: Api.TypeInputPeer;
topMsgId: int;
};
export class InputPeerNotifySettings extends VirtualClass<{
// flags: undefined;
showPreviews?: Bool;
silent?: Bool;
muteUntil?: int;
sound?: Api.TypeNotificationSound;
storiesMuted?: Bool;
storiesHideSender?: Bool;
storiesSound?: Api.TypeNotificationSound;
} | void> {
// flags: undefined;
showPreviews?: Bool;
silent?: Bool;
muteUntil?: int;
sound?: Api.TypeNotificationSound;
storiesMuted?: Bool;
storiesHideSender?: Bool;
storiesSound?: Api.TypeNotificationSound;
};
export class PeerNotifySettings extends VirtualClass<{
// flags: undefined;
showPreviews?: Bool;
silent?: Bool;
muteUntil?: int;
iosSound?: Api.TypeNotificationSound;
androidSound?: Api.TypeNotificationSound;
otherSound?: Api.TypeNotificationSound;
storiesMuted?: Bool;
storiesHideSender?: Bool;
storiesIosSound?: Api.TypeNotificationSound;
storiesAndroidSound?: Api.TypeNotificationSound;
storiesOtherSound?: Api.TypeNotificationSound;
} | void> {
// flags: undefined;
showPreviews?: Bool;
silent?: Bool;
muteUntil?: int;
iosSound?: Api.TypeNotificationSound;
androidSound?: Api.TypeNotificationSound;
otherSound?: Api.TypeNotificationSound;
storiesMuted?: Bool;
storiesHideSender?: Bool;
storiesIosSound?: Api.TypeNotificationSound;
storiesAndroidSound?: Api.TypeNotificationSound;
storiesOtherSound?: Api.TypeNotificationSound;
};
export class PeerSettings extends VirtualClass<{
// flags: undefined;
reportSpam?: true;
addContact?: true;
blockContact?: true;
shareContact?: true;
needContactsException?: true;
reportGeo?: true;
autoarchived?: true;
inviteMembers?: true;
requestChatBroadcast?: true;
businessBotPaused?: true;
businessBotCanReply?: true;
geoDistance?: int;
requestChatTitle?: string;
requestChatDate?: int;
businessBotId?: long;
businessBotManageUrl?: string;
} | void> {
// flags: undefined;
reportSpam?: true;
addContact?: true;
blockContact?: true;
shareContact?: true;
needContactsException?: true;
reportGeo?: true;
autoarchived?: true;
inviteMembers?: true;
requestChatBroadcast?: true;
businessBotPaused?: true;
businessBotCanReply?: true;
geoDistance?: int;
requestChatTitle?: string;
requestChatDate?: int;
businessBotId?: long;
businessBotManageUrl?: string;
};
export class WallPaper extends VirtualClass<{
id: long;
// flags: undefined;
creator?: true;
default?: true;
pattern?: true;
dark?: true;
accessHash: long;
slug: string;
document: Api.TypeDocument;
settings?: Api.TypeWallPaperSettings;
}> {
id: long;
// flags: undefined;
creator?: true;
default?: true;
pattern?: true;
dark?: true;
accessHash: long;
slug: string;
document: Api.TypeDocument;
settings?: Api.TypeWallPaperSettings;
};
export class WallPaperNoFile extends VirtualClass<{
id: long;
// flags: undefined;
default?: true;
dark?: true;
settings?: Api.TypeWallPaperSettings;
}> {
id: long;
// flags: undefined;
default?: true;
dark?: true;
settings?: Api.TypeWallPaperSettings;
};
export class InputReportReasonSpam extends VirtualClass<void> {};
export class InputReportReasonViolence extends VirtualClass<void> {};
export class InputReportReasonPornography extends VirtualClass<void> {};
export class InputReportReasonChildAbuse extends VirtualClass<void> {};
export class InputReportReasonOther extends VirtualClass<void> {};
export class InputReportReasonCopyright extends VirtualClass<void> {};
export class InputReportReasonGeoIrrelevant extends VirtualClass<void> {};
export class InputReportReasonFake extends VirtualClass<void> {};
export class InputReportReasonIllegalDrugs extends VirtualClass<void> {};
export class InputReportReasonPersonalDetails extends VirtualClass<void> {};
export class UserFull extends VirtualClass<{
// flags: undefined;
blocked?: true;
phoneCallsAvailable?: true;
phoneCallsPrivate?: true;
canPinMessage?: true;
hasScheduled?: true;
videoCallsAvailable?: true;
voiceMessagesForbidden?: true;
translationsDisabled?: true;
storiesPinnedAvailable?: true;
blockedMyStoriesFrom?: true;
wallpaperOverridden?: true;
contactRequirePremium?: true;
readDatesPrivate?: true;
// flags2: undefined;
sponsoredEnabled?: true;
canViewRevenue?: true;
botCanManageEmojiStatus?: true;
id: long;
about?: string;
settings: Api.TypePeerSettings;
personalPhoto?: Api.TypePhoto;
profilePhoto?: Api.TypePhoto;
fallbackPhoto?: Api.TypePhoto;
notifySettings: Api.TypePeerNotifySettings;
botInfo?: Api.TypeBotInfo;
pinnedMsgId?: int;
commonChatsCount: int;
folderId?: int;
ttlPeriod?: int;
themeEmoticon?: string;
privateForwardName?: string;
botGroupAdminRights?: Api.TypeChatAdminRights;
botBroadcastAdminRights?: Api.TypeChatAdminRights;
premiumGifts?: Api.TypePremiumGiftOption[];
wallpaper?: Api.TypeWallPaper;
stories?: Api.TypePeerStories;
businessWorkHours?: Api.TypeBusinessWorkHours;
businessLocation?: Api.TypeBusinessLocation;
businessGreetingMessage?: Api.TypeBusinessGreetingMessage;
businessAwayMessage?: Api.TypeBusinessAwayMessage;
businessIntro?: Api.TypeBusinessIntro;
birthday?: Api.TypeBirthday;
personalChannelId?: long;
personalChannelMessage?: int;
stargiftsCount?: int;
starrefProgram?: Api.TypeStarRefProgram;
botVerification?: Api.TypeBotVerification;
}> {
// flags: undefined;
blocked?: true;
phoneCallsAvailable?: true;
phoneCallsPrivate?: true;
canPinMessage?: true;
hasScheduled?: true;
videoCallsAvailable?: true;
voiceMessagesForbidden?: true;
translationsDisabled?: true;
storiesPinnedAvailable?: true;
blockedMyStoriesFrom?: true;
wallpaperOverridden?: true;
contactRequirePremium?: true;
readDatesPrivate?: true;
// flags2: undefined;
sponsoredEnabled?: true;
canViewRevenue?: true;
botCanManageEmojiStatus?: true;
id: long;
about?: string;
settings: Api.TypePeerSettings;
personalPhoto?: Api.TypePhoto;
profilePhoto?: Api.TypePhoto;
fallbackPhoto?: Api.TypePhoto;
notifySettings: Api.TypePeerNotifySettings;
botInfo?: Api.TypeBotInfo;
pinnedMsgId?: int;
commonChatsCount: int;
folderId?: int;
ttlPeriod?: int;
themeEmoticon?: string;
privateForwardName?: string;
botGroupAdminRights?: Api.TypeChatAdminRights;
botBroadcastAdminRights?: Api.TypeChatAdminRights;
premiumGifts?: Api.TypePremiumGiftOption[];
wallpaper?: Api.TypeWallPaper;
stories?: Api.TypePeerStories;
businessWorkHours?: Api.TypeBusinessWorkHours;
businessLocation?: Api.TypeBusinessLocation;
businessGreetingMessage?: Api.TypeBusinessGreetingMessage;
businessAwayMessage?: Api.TypeBusinessAwayMessage;
businessIntro?: Api.TypeBusinessIntro;
birthday?: Api.TypeBirthday;
personalChannelId?: long;
personalChannelMessage?: int;
stargiftsCount?: int;
starrefProgram?: Api.TypeStarRefProgram;
botVerification?: Api.TypeBotVerification;
};
export class Contact extends VirtualClass<{
userId: long;
mutual: Bool;
}> {
userId: long;
mutual: Bool;
};
export class ImportedContact extends VirtualClass<{
userId: long;
clientId: long;
}> {
userId: long;
clientId: long;
};
export class ContactStatus extends VirtualClass<{
userId: long;
status: Api.TypeUserStatus;
}> {
userId: long;
status: Api.TypeUserStatus;
};
export class InputMessagesFilterEmpty extends VirtualClass<void> {};
export class InputMessagesFilterPhotos extends VirtualClass<void> {};
export class InputMessagesFilterVideo extends VirtualClass<void> {};
export class InputMessagesFilterPhotoVideo extends VirtualClass<void> {};
export class InputMessagesFilterDocument extends VirtualClass<void> {};
export class InputMessagesFilterUrl extends VirtualClass<void> {};
export class InputMessagesFilterGif extends VirtualClass<void> {};
export class InputMessagesFilterVoice extends VirtualClass<void> {};
export class InputMessagesFilterMusic extends VirtualClass<void> {};
export class InputMessagesFilterChatPhotos extends VirtualClass<void> {};
export class InputMessagesFilterPhoneCalls extends VirtualClass<{
// flags: undefined;
missed?: true;
} | void> {
// flags: undefined;
missed?: true;
};
export class InputMessagesFilterRoundVoice extends VirtualClass<void> {};
export class InputMessagesFilterRoundVideo extends VirtualClass<void> {};
export class InputMessagesFilterMyMentions extends VirtualClass<void> {};
export class InputMessagesFilterGeo extends VirtualClass<void> {};
export class InputMessagesFilterContacts extends VirtualClass<void> {};
export class InputMessagesFilterPinned extends VirtualClass<void> {};
export class UpdateNewMessage extends VirtualClass<{
message: Api.TypeMessage;
pts: int;
ptsCount: int;
}> {
message: Api.TypeMessage;
pts: int;
ptsCount: int;
};
export class UpdateMessageID extends VirtualClass<{
id: int;
randomId: long;
}> {
id: int;
randomId: long;
};
export class UpdateDeleteMessages extends VirtualClass<{
messages: int[];
pts: int;
ptsCount: int;
}> {
messages: int[];
pts: int;
ptsCount: int;
};
export class UpdateUserTyping extends VirtualClass<{
userId: long;
action: Api.TypeSendMessageAction;
}> {
userId: long;
action: Api.TypeSendMessageAction;
};
export class UpdateChatUserTyping extends VirtualClass<{
chatId: long;
fromId: Api.TypePeer;
action: Api.TypeSendMessageAction;
}> {
chatId: long;
fromId: Api.TypePeer;
action: Api.TypeSendMessageAction;
};
export class UpdateChatParticipants extends VirtualClass<{
participants: Api.TypeChatParticipants;
}> {
participants: Api.TypeChatParticipants;
};
export class UpdateUserStatus extends VirtualClass<{
userId: long;
status: Api.TypeUserStatus;
}> {
userId: long;
status: Api.TypeUserStatus;
};
export class UpdateUserName extends VirtualClass<{
userId: long;
firstName: string;
lastName: string;
usernames: Api.TypeUsername[];
}> {
userId: long;
firstName: string;
lastName: string;
usernames: Api.TypeUsername[];
};
export class UpdateNewAuthorization extends VirtualClass<{
// flags: undefined;
unconfirmed?: true;
hash: long;
date?: int;
device?: string;
location?: string;
}> {
// flags: undefined;
unconfirmed?: true;
hash: long;
date?: int;
device?: string;
location?: string;
};
export class UpdateNewEncryptedMessage extends VirtualClass<{
message: Api.TypeEncryptedMessage;
qts: int;
}> {
message: Api.TypeEncryptedMessage;
qts: int;
};
export class UpdateEncryptedChatTyping extends VirtualClass<{
chatId: int;
}> {
chatId: int;
};
export class UpdateEncryption extends VirtualClass<{
chat: Api.TypeEncryptedChat;
date: int;
}> {
chat: Api.TypeEncryptedChat;
date: int;
};
export class UpdateEncryptedMessagesRead extends VirtualClass<{
chatId: int;
maxDate: int;
date: int;
}> {
chatId: int;
maxDate: int;
date: int;
};
export class UpdateChatParticipantAdd extends VirtualClass<{
chatId: long;
userId: long;
inviterId: long;
date: int;
version: int;
}> {
chatId: long;
userId: long;
inviterId: long;
date: int;
version: int;
};
export class UpdateChatParticipantDelete extends VirtualClass<{
chatId: long;
userId: long;
version: int;
}> {
chatId: long;
userId: long;
version: int;
};
export class UpdateDcOptions extends VirtualClass<{
dcOptions: Api.TypeDcOption[];
}> {
dcOptions: Api.TypeDcOption[];
};
export class UpdateNotifySettings extends VirtualClass<{
peer: Api.TypeNotifyPeer;
notifySettings: Api.TypePeerNotifySettings;
}> {
peer: Api.TypeNotifyPeer;
notifySettings: Api.TypePeerNotifySettings;
};
export class UpdateServiceNotification extends VirtualClass<{
// flags: undefined;
popup?: true;
invertMedia?: true;
inboxDate?: int;
type: string;
message: string;
media: Api.TypeMessageMedia;
entities: Api.TypeMessageEntity[];
}> {
// flags: undefined;
popup?: true;
invertMedia?: true;
inboxDate?: int;
type: string;
message: string;
media: Api.TypeMessageMedia;
entities: Api.TypeMessageEntity[];
};
export class UpdatePrivacy extends VirtualClass<{
key: Api.TypePrivacyKey;
rules: Api.TypePrivacyRule[];
}> {
key: Api.TypePrivacyKey;
rules: Api.TypePrivacyRule[];
};
export class UpdateUserPhone extends VirtualClass<{
userId: long;
phone: string;
}> {
userId: long;
phone: string;
};
export class UpdateReadHistoryInbox extends VirtualClass<{
// flags: undefined;
folderId?: int;
peer: Api.TypePeer;
maxId: int;
stillUnreadCount: int;
pts: int;
ptsCount: int;
}> {
// flags: undefined;
folderId?: int;
peer: Api.TypePeer;
maxId: int;
stillUnreadCount: int;
pts: int;
ptsCount: int;
};
export class UpdateReadHistoryOutbox extends VirtualClass<{
peer: Api.TypePeer;
maxId: int;
pts: int;
ptsCount: int;
}> {
peer: Api.TypePeer;
maxId: int;
pts: int;
ptsCount: int;
};
export class UpdateWebPage extends VirtualClass<{
webpage: Api.TypeWebPage;
pts: int;
ptsCount: int;
}> {
webpage: Api.TypeWebPage;
pts: int;
ptsCount: int;
};
export class UpdateReadMessagesContents extends VirtualClass<{
// flags: undefined;
messages: int[];
pts: int;
ptsCount: int;
date?: int;
}> {
// flags: undefined;
messages: int[];
pts: int;
ptsCount: int;
date?: int;
};
export class UpdateChannelTooLong extends VirtualClass<{
// flags: undefined;
channelId: long;
pts?: int;
}> {
// flags: undefined;
channelId: long;
pts?: int;
};
export class UpdateChannel extends VirtualClass<{
channelId: long;
}> {
channelId: long;
};
export class UpdateNewChannelMessage extends VirtualClass<{
message: Api.TypeMessage;
pts: int;
ptsCount: int;
}> {
message: Api.TypeMessage;
pts: int;
ptsCount: int;
};
export class UpdateReadChannelInbox extends VirtualClass<{
// flags: undefined;
folderId?: int;
channelId: long;
maxId: int;
stillUnreadCount: int;
pts: int;
}> {
// flags: undefined;
folderId?: int;
channelId: long;
maxId: int;
stillUnreadCount: int;
pts: int;
};
export class UpdateDeleteChannelMessages extends VirtualClass<{
channelId: long;
messages: int[];
pts: int;
ptsCount: int;
}> {
channelId: long;
messages: int[];
pts: int;
ptsCount: int;
};
export class UpdateChannelMessageViews extends VirtualClass<{
channelId: long;
id: int;
views: int;
}> {
channelId: long;
id: int;
views: int;
};
export class UpdateChatParticipantAdmin extends VirtualClass<{
chatId: long;
userId: long;
isAdmin: Bool;
version: int;
}> {
chatId: long;
userId: long;
isAdmin: Bool;
version: int;
};
export class UpdateNewStickerSet extends VirtualClass<{
stickerset: messages.TypeStickerSet;
}> {
stickerset: messages.TypeStickerSet;
};
export class UpdateStickerSetsOrder extends VirtualClass<{
// flags: undefined;
masks?: true;
emojis?: true;
order: long[];
}> {
// flags: undefined;
masks?: true;
emojis?: true;
order: long[];
};
export class UpdateStickerSets extends VirtualClass<{
// flags: undefined;
masks?: true;
emojis?: true;
} | void> {
// flags: undefined;
masks?: true;
emojis?: true;
};
export class UpdateSavedGifs extends VirtualClass<void> {};
export class UpdateBotInlineQuery extends VirtualClass<{
// flags: undefined;
queryId: long;
userId: long;
query: string;
geo?: Api.TypeGeoPoint;
peerType?: Api.TypeInlineQueryPeerType;
offset: string;
}> {
// flags: undefined;
queryId: long;
userId: long;
query: string;
geo?: Api.TypeGeoPoint;
peerType?: Api.TypeInlineQueryPeerType;
offset: string;
};
export class UpdateBotInlineSend extends VirtualClass<{
// flags: undefined;
userId: long;
query: string;
geo?: Api.TypeGeoPoint;
id: string;
msgId?: Api.TypeInputBotInlineMessageID;
}> {
// flags: undefined;
userId: long;
query: string;
geo?: Api.TypeGeoPoint;
id: string;
msgId?: Api.TypeInputBotInlineMessageID;
};
export class UpdateEditChannelMessage extends VirtualClass<{
message: Api.TypeMessage;
pts: int;
ptsCount: int;
}> {
message: Api.TypeMessage;
pts: int;
ptsCount: int;
};
export class UpdateBotCallbackQuery extends VirtualClass<{
// flags: undefined;
queryId: long;
userId: long;
peer: Api.TypePeer;
msgId: int;
chatInstance: long;
data?: bytes;
gameShortName?: string;
}> {
// flags: undefined;
queryId: long;
userId: long;
peer: Api.TypePeer;
msgId: int;
chatInstance: long;
data?: bytes;
gameShortName?: string;
};
export class UpdateEditMessage extends VirtualClass<{
message: Api.TypeMessage;
pts: int;
ptsCount: int;
}> {
message: Api.TypeMessage;
pts: int;
ptsCount: int;
};
export class UpdateInlineBotCallbackQuery extends VirtualClass<{
// flags: undefined;
queryId: long;
userId: long;
msgId: Api.TypeInputBotInlineMessageID;
chatInstance: long;
data?: bytes;
gameShortName?: string;
}> {
// flags: undefined;
queryId: long;
userId: long;
msgId: Api.TypeInputBotInlineMessageID;
chatInstance: long;
data?: bytes;
gameShortName?: string;
};
export class UpdateReadChannelOutbox extends VirtualClass<{
channelId: long;
maxId: int;
}> {
channelId: long;
maxId: int;
};
export class UpdateDraftMessage extends VirtualClass<{
// flags: undefined;
peer: Api.TypePeer;
topMsgId?: int;
draft: Api.TypeDraftMessage;
}> {
// flags: undefined;
peer: Api.TypePeer;
topMsgId?: int;
draft: Api.TypeDraftMessage;
};
export class UpdateReadFeaturedStickers extends VirtualClass<void> {};
export class UpdateRecentStickers extends VirtualClass<void> {};
export class UpdateConfig extends VirtualClass<void> {};
export class UpdatePtsChanged extends VirtualClass<void> {};
export class UpdateChannelWebPage extends VirtualClass<{
channelId: long;
webpage: Api.TypeWebPage;
pts: int;
ptsCount: int;
}> {
channelId: long;
webpage: Api.TypeWebPage;
pts: int;
ptsCount: int;
};
export class UpdateDialogPinned extends VirtualClass<{
// flags: undefined;
pinned?: true;
folderId?: int;
peer: Api.TypeDialogPeer;
}> {
// flags: undefined;
pinned?: true;
folderId?: int;
peer: Api.TypeDialogPeer;
};
export class UpdatePinnedDialogs extends VirtualClass<{
// flags: undefined;
folderId?: int;
order?: Api.TypeDialogPeer[];
} | void> {
// flags: undefined;
folderId?: int;
order?: Api.TypeDialogPeer[];
};
export class UpdateBotWebhookJSON extends VirtualClass<{
data: Api.TypeDataJSON;
}> {
data: Api.TypeDataJSON;
};
export class UpdateBotWebhookJSONQuery extends VirtualClass<{
queryId: long;
data: Api.TypeDataJSON;
timeout: int;
}> {
queryId: long;
data: Api.TypeDataJSON;
timeout: int;
};
export class UpdateBotShippingQuery extends VirtualClass<{
queryId: long;
userId: long;
payload: bytes;
shippingAddress: Api.TypePostAddress;
}> {
queryId: long;
userId: long;
payload: bytes;
shippingAddress: Api.TypePostAddress;
};
export class UpdateBotPrecheckoutQuery extends VirtualClass<{
// flags: undefined;
queryId: long;
userId: long;
payload: bytes;
info?: Api.TypePaymentRequestedInfo;
shippingOptionId?: string;
currency: string;
totalAmount: long;
}> {
// flags: undefined;
queryId: long;
userId: long;
payload: bytes;
info?: Api.TypePaymentRequestedInfo;
shippingOptionId?: string;
currency: string;
totalAmount: long;
};
export class UpdatePhoneCall extends VirtualClass<{
phoneCall: Api.TypePhoneCall;
}> {
phoneCall: Api.TypePhoneCall;
};
export class UpdateLangPackTooLong extends VirtualClass<{
langCode: string;
}> {
langCode: string;
};
export class UpdateLangPack extends VirtualClass<{
difference: Api.TypeLangPackDifference;
}> {
difference: Api.TypeLangPackDifference;
};
export class UpdateFavedStickers extends VirtualClass<void> {};
export class UpdateChannelReadMessagesContents extends VirtualClass<{
// flags: undefined;
channelId: long;
topMsgId?: int;
messages: int[];
}> {
// flags: undefined;
channelId: long;
topMsgId?: int;
messages: int[];
};
export class UpdateContactsReset extends VirtualClass<void> {};
export class UpdateChannelAvailableMessages extends VirtualClass<{
channelId: long;
availableMinId: int;
}> {
channelId: long;
availableMinId: int;
};
export class UpdateDialogUnreadMark extends VirtualClass<{
// flags: undefined;
unread?: true;
peer: Api.TypeDialogPeer;
}> {
// flags: undefined;
unread?: true;
peer: Api.TypeDialogPeer;
};
export class UpdateMessagePoll extends VirtualClass<{
// flags: undefined;
pollId: long;
poll?: Api.TypePoll;
results: Api.TypePollResults;
}> {
// flags: undefined;
pollId: long;
poll?: Api.TypePoll;
results: Api.TypePollResults;
};
export class UpdateChatDefaultBannedRights extends VirtualClass<{
peer: Api.TypePeer;
defaultBannedRights: Api.TypeChatBannedRights;
version: int;
}> {
peer: Api.TypePeer;
defaultBannedRights: Api.TypeChatBannedRights;
version: int;
};
export class UpdateFolderPeers extends VirtualClass<{
folderPeers: Api.TypeFolderPeer[];
pts: int;
ptsCount: int;
}> {
folderPeers: Api.TypeFolderPeer[];
pts: int;
ptsCount: int;
};
export class UpdatePeerSettings extends VirtualClass<{
peer: Api.TypePeer;
settings: Api.TypePeerSettings;
}> {
peer: Api.TypePeer;
settings: Api.TypePeerSettings;
};
export class UpdatePeerLocated extends VirtualClass<{
peers: Api.TypePeerLocated[];
}> {
peers: Api.TypePeerLocated[];
};
export class UpdateNewScheduledMessage extends VirtualClass<{
message: Api.TypeMessage;
}> {
message: Api.TypeMessage;
};
export class UpdateDeleteScheduledMessages extends VirtualClass<{
// flags: undefined;
peer: Api.TypePeer;
messages: int[];
sentMessages?: int[];
}> {
// flags: undefined;
peer: Api.TypePeer;
messages: int[];
sentMessages?: int[];
};
export class UpdateTheme extends VirtualClass<{
theme: Api.TypeTheme;
}> {
theme: Api.TypeTheme;
};
export class UpdateGeoLiveViewed extends VirtualClass<{
peer: Api.TypePeer;
msgId: int;
}> {
peer: Api.TypePeer;
msgId: int;
};
export class UpdateLoginToken extends VirtualClass<void> {};
export class UpdateMessagePollVote extends VirtualClass<{
pollId: long;
peer: Api.TypePeer;
options: bytes[];
qts: int;
}> {
pollId: long;
peer: Api.TypePeer;
options: bytes[];
qts: int;
};
export class UpdateDialogFilter extends VirtualClass<{
// flags: undefined;
id: int;
filter?: Api.TypeDialogFilter;
}> {
// flags: undefined;
id: int;
filter?: Api.TypeDialogFilter;
};
export class UpdateDialogFilterOrder extends VirtualClass<{
order: int[];
}> {
order: int[];
};
export class UpdateDialogFilters extends VirtualClass<void> {};
export class UpdatePhoneCallSignalingData extends VirtualClass<{
phoneCallId: long;
data: bytes;
}> {
phoneCallId: long;
data: bytes;
};
export class UpdateChannelMessageForwards extends VirtualClass<{
channelId: long;
id: int;
forwards: int;
}> {
channelId: long;
id: int;
forwards: int;
};
export class UpdateReadChannelDiscussionInbox extends VirtualClass<{
// flags: undefined;
channelId: long;
topMsgId: int;
readMaxId: int;
broadcastId?: long;
broadcastPost?: int;
}> {
// flags: undefined;
channelId: long;
topMsgId: int;
readMaxId: int;
broadcastId?: long;
broadcastPost?: int;
};
export class UpdateReadChannelDiscussionOutbox extends VirtualClass<{
channelId: long;
topMsgId: int;
readMaxId: int;
}> {
channelId: long;
topMsgId: int;
readMaxId: int;
};
export class UpdatePeerBlocked extends VirtualClass<{
// flags: undefined;
blocked?: true;
blockedMyStoriesFrom?: true;
peerId: Api.TypePeer;
}> {
// flags: undefined;
blocked?: true;
blockedMyStoriesFrom?: true;
peerId: Api.TypePeer;
};
export class UpdateChannelUserTyping extends VirtualClass<{
// flags: undefined;
channelId: long;
topMsgId?: int;
fromId: Api.TypePeer;
action: Api.TypeSendMessageAction;
}> {
// flags: undefined;
channelId: long;
topMsgId?: int;
fromId: Api.TypePeer;
action: Api.TypeSendMessageAction;
};
export class UpdatePinnedMessages extends VirtualClass<{
// flags: undefined;
pinned?: true;
peer: Api.TypePeer;
messages: int[];
pts: int;
ptsCount: int;
}> {
// flags: undefined;
pinned?: true;
peer: Api.TypePeer;
messages: int[];
pts: int;
ptsCount: int;
};
export class UpdatePinnedChannelMessages extends VirtualClass<{
// flags: undefined;
pinned?: true;
channelId: long;
messages: int[];
pts: int;
ptsCount: int;
}> {
// flags: undefined;
pinned?: true;
channelId: long;
messages: int[];
pts: int;
ptsCount: int;
};
export class UpdateChat extends VirtualClass<{
chatId: long;
}> {
chatId: long;
};
export class UpdateGroupCallParticipants extends VirtualClass<{
call: Api.TypeInputGroupCall;
participants: Api.TypeGroupCallParticipant[];
version: int;
}> {
call: Api.TypeInputGroupCall;
participants: Api.TypeGroupCallParticipant[];
version: int;
};
export class UpdateGroupCall extends VirtualClass<{
// flags: undefined;
chatId?: long;
call: Api.TypeGroupCall;
}> {
// flags: undefined;
chatId?: long;
call: Api.TypeGroupCall;
};
export class UpdatePeerHistoryTTL extends VirtualClass<{
// flags: undefined;
peer: Api.TypePeer;
ttlPeriod?: int;
}> {
// flags: undefined;
peer: Api.TypePeer;
ttlPeriod?: int;
};
export class UpdateChatParticipant extends VirtualClass<{
// flags: undefined;
chatId: long;
date: int;
actorId: long;
userId: long;
prevParticipant?: Api.TypeChatParticipant;
newParticipant?: Api.TypeChatParticipant;
invite?: Api.TypeExportedChatInvite;
qts: int;
}> {
// flags: undefined;
chatId: long;
date: int;
actorId: long;
userId: long;
prevParticipant?: Api.TypeChatParticipant;
newParticipant?: Api.TypeChatParticipant;
invite?: Api.TypeExportedChatInvite;
qts: int;
};
export class UpdateChannelParticipant extends VirtualClass<{
// flags: undefined;
viaChatlist?: true;
channelId: long;
date: int;
actorId: long;
userId: long;
prevParticipant?: Api.TypeChannelParticipant;
newParticipant?: Api.TypeChannelParticipant;
invite?: Api.TypeExportedChatInvite;
qts: int;
}> {
// flags: undefined;
viaChatlist?: true;
channelId: long;
date: int;
actorId: long;
userId: long;
prevParticipant?: Api.TypeChannelParticipant;
newParticipant?: Api.TypeChannelParticipant;
invite?: Api.TypeExportedChatInvite;
qts: int;
};
export class UpdateBotStopped extends VirtualClass<{
userId: long;
date: int;
stopped: Bool;
qts: int;
}> {
userId: long;
date: int;
stopped: Bool;
qts: int;
};
export class UpdateGroupCallConnection extends VirtualClass<{
// flags: undefined;
presentation?: true;
params: Api.TypeDataJSON;
}> {
// flags: undefined;
presentation?: true;
params: Api.TypeDataJSON;
};
export class UpdateBotCommands extends VirtualClass<{
peer: Api.TypePeer;
botId: long;
commands: Api.TypeBotCommand[];
}> {
peer: Api.TypePeer;
botId: long;
commands: Api.TypeBotCommand[];
};
export class UpdatePendingJoinRequests extends VirtualClass<{
peer: Api.TypePeer;
requestsPending: int;
recentRequesters: long[];
}> {
peer: Api.TypePeer;
requestsPending: int;
recentRequesters: long[];
};
export class UpdateBotChatInviteRequester extends VirtualClass<{
peer: Api.TypePeer;
date: int;
userId: long;
about: string;
invite: Api.TypeExportedChatInvite;
qts: int;
}> {
peer: Api.TypePeer;
date: int;
userId: long;
about: string;
invite: Api.TypeExportedChatInvite;
qts: int;
};
export class UpdateMessageReactions extends VirtualClass<{
// flags: undefined;
peer: Api.TypePeer;
msgId: int;
topMsgId?: int;
reactions: Api.TypeMessageReactions;
}> {
// flags: undefined;
peer: Api.TypePeer;
msgId: int;
topMsgId?: int;
reactions: Api.TypeMessageReactions;
};
export class UpdateAttachMenuBots extends VirtualClass<void> {};
export class UpdateWebViewResultSent extends VirtualClass<{
queryId: long;
}> {
queryId: long;
};
export class UpdateBotMenuButton extends VirtualClass<{
botId: long;
button: Api.TypeBotMenuButton;
}> {
botId: long;
button: Api.TypeBotMenuButton;
};
export class UpdateSavedRingtones extends VirtualClass<void> {};
export class UpdateTranscribedAudio extends VirtualClass<{
// flags: undefined;
pending?: true;
peer: Api.TypePeer;
msgId: int;
transcriptionId: long;
text: string;
}> {
// flags: undefined;
pending?: true;
peer: Api.TypePeer;
msgId: int;
transcriptionId: long;
text: string;
};
export class UpdateReadFeaturedEmojiStickers extends VirtualClass<void> {};
export class UpdateUserEmojiStatus extends VirtualClass<{
userId: long;
emojiStatus: Api.TypeEmojiStatus;
}> {
userId: long;
emojiStatus: Api.TypeEmojiStatus;
};
export class UpdateRecentEmojiStatuses extends VirtualClass<void> {};
export class UpdateRecentReactions extends VirtualClass<void> {};
export class UpdateMoveStickerSetToTop extends VirtualClass<{
// flags: undefined;
masks?: true;
emojis?: true;
stickerset: long;
}> {
// flags: undefined;
masks?: true;
emojis?: true;
stickerset: long;
};
export class UpdateMessageExtendedMedia extends VirtualClass<{
peer: Api.TypePeer;
msgId: int;
extendedMedia: Api.TypeMessageExtendedMedia[];
}> {
peer: Api.TypePeer;
msgId: int;
extendedMedia: Api.TypeMessageExtendedMedia[];
};
export class UpdateChannelPinnedTopic extends VirtualClass<{
// flags: undefined;
pinned?: true;
channelId: long;
topicId: int;
}> {
// flags: undefined;
pinned?: true;
channelId: long;
topicId: int;
};
export class UpdateChannelPinnedTopics extends VirtualClass<{
// flags: undefined;
channelId: long;
order?: int[];
}> {
// flags: undefined;
channelId: long;
order?: int[];
};
export class UpdateUser extends VirtualClass<{
userId: long;
}> {
userId: long;
};
export class UpdateAutoSaveSettings extends VirtualClass<void> {};
export class UpdateStory extends VirtualClass<{
peer: Api.TypePeer;
story: Api.TypeStoryItem;
}> {
peer: Api.TypePeer;
story: Api.TypeStoryItem;
};
export class UpdateReadStories extends VirtualClass<{
peer: Api.TypePeer;
maxId: int;
}> {
peer: Api.TypePeer;
maxId: int;
};
export class UpdateStoryID extends VirtualClass<{
id: int;
randomId: long;
}> {
id: int;
randomId: long;
};
export class UpdateStoriesStealthMode extends VirtualClass<{
stealthMode: Api.TypeStoriesStealthMode;
}> {
stealthMode: Api.TypeStoriesStealthMode;
};
export class UpdateSentStoryReaction extends VirtualClass<{
peer: Api.TypePeer;
storyId: int;
reaction: Api.TypeReaction;
}> {
peer: Api.TypePeer;
storyId: int;
reaction: Api.TypeReaction;
};
export class UpdateBotChatBoost extends VirtualClass<{
peer: Api.TypePeer;
boost: Api.TypeBoost;
qts: int;
}> {
peer: Api.TypePeer;
boost: Api.TypeBoost;
qts: int;
};
export class UpdateChannelViewForumAsMessages extends VirtualClass<{
channelId: long;
enabled: Bool;
}> {
channelId: long;
enabled: Bool;
};
export class UpdatePeerWallpaper extends VirtualClass<{
// flags: undefined;
wallpaperOverridden?: true;
peer: Api.TypePeer;
wallpaper?: Api.TypeWallPaper;
}> {
// flags: undefined;
wallpaperOverridden?: true;
peer: Api.TypePeer;
wallpaper?: Api.TypeWallPaper;
};
export class UpdateBotMessageReaction extends VirtualClass<{
peer: Api.TypePeer;
msgId: int;
date: int;
actor: Api.TypePeer;
oldReactions: Api.TypeReaction[];
newReactions: Api.TypeReaction[];
qts: int;
}> {
peer: Api.TypePeer;
msgId: int;
date: int;
actor: Api.TypePeer;
oldReactions: Api.TypeReaction[];
newReactions: Api.TypeReaction[];
qts: int;
};
export class UpdateBotMessageReactions extends VirtualClass<{
peer: Api.TypePeer;
msgId: int;
date: int;
reactions: Api.TypeReactionCount[];
qts: int;
}> {
peer: Api.TypePeer;
msgId: int;
date: int;
reactions: Api.TypeReactionCount[];
qts: int;
};
export class UpdateSavedDialogPinned extends VirtualClass<{
// flags: undefined;
pinned?: true;
peer: Api.TypeDialogPeer;
}> {
// flags: undefined;
pinned?: true;
peer: Api.TypeDialogPeer;
};
export class UpdatePinnedSavedDialogs extends VirtualClass<{
// flags: undefined;
order?: Api.TypeDialogPeer[];
} | void> {
// flags: undefined;
order?: Api.TypeDialogPeer[];
};
export class UpdateSavedReactionTags extends VirtualClass<void> {};
export class UpdateSmsJob extends VirtualClass<{
jobId: string;
}> {
jobId: string;
};
export class UpdateQuickReplies extends VirtualClass<{
quickReplies: Api.TypeQuickReply[];
}> {
quickReplies: Api.TypeQuickReply[];
};
export class UpdateNewQuickReply extends VirtualClass<{
quickReply: Api.TypeQuickReply;
}> {
quickReply: Api.TypeQuickReply;
};
export class UpdateDeleteQuickReply extends VirtualClass<{
shortcutId: int;
}> {
shortcutId: int;
};
export class UpdateQuickReplyMessage extends VirtualClass<{
message: Api.TypeMessage;
}> {
message: Api.TypeMessage;
};
export class UpdateDeleteQuickReplyMessages extends VirtualClass<{
shortcutId: int;
messages: int[];
}> {
shortcutId: int;
messages: int[];
};
export class UpdateBotBusinessConnect extends VirtualClass<{
connection: Api.TypeBotBusinessConnection;
qts: int;
}> {
connection: Api.TypeBotBusinessConnection;
qts: int;
};
export class UpdateBotNewBusinessMessage extends VirtualClass<{
// flags: undefined;
connectionId: string;
message: Api.TypeMessage;
replyToMessage?: Api.TypeMessage;
qts: int;
}> {
// flags: undefined;
connectionId: string;
message: Api.TypeMessage;
replyToMessage?: Api.TypeMessage;
qts: int;
};
export class UpdateBotEditBusinessMessage extends VirtualClass<{
// flags: undefined;
connectionId: string;
message: Api.TypeMessage;
replyToMessage?: Api.TypeMessage;
qts: int;
}> {
// flags: undefined;
connectionId: string;
message: Api.TypeMessage;
replyToMessage?: Api.TypeMessage;
qts: int;
};
export class UpdateBotDeleteBusinessMessage extends VirtualClass<{
connectionId: string;
peer: Api.TypePeer;
messages: int[];
qts: int;
}> {
connectionId: string;
peer: Api.TypePeer;
messages: int[];
qts: int;
};
export class UpdateNewStoryReaction extends VirtualClass<{
storyId: int;
peer: Api.TypePeer;
reaction: Api.TypeReaction;
}> {
storyId: int;
peer: Api.TypePeer;
reaction: Api.TypeReaction;
};
export class UpdateBroadcastRevenueTransactions extends VirtualClass<{
peer: Api.TypePeer;
balances: Api.TypeBroadcastRevenueBalances;
}> {
peer: Api.TypePeer;
balances: Api.TypeBroadcastRevenueBalances;
};
export class UpdateStarsBalance extends VirtualClass<{
balance: Api.TypeStarsAmount;
}> {
balance: Api.TypeStarsAmount;
};
export class UpdateBusinessBotCallbackQuery extends VirtualClass<{
// flags: undefined;
queryId: long;
userId: long;
connectionId: string;
message: Api.TypeMessage;
replyToMessage?: Api.TypeMessage;
chatInstance: long;
data?: bytes;
}> {
// flags: undefined;
queryId: long;
userId: long;
connectionId: string;
message: Api.TypeMessage;
replyToMessage?: Api.TypeMessage;
chatInstance: long;
data?: bytes;
};
export class UpdateStarsRevenueStatus extends VirtualClass<{
peer: Api.TypePeer;
status: Api.TypeStarsRevenueStatus;
}> {
peer: Api.TypePeer;
status: Api.TypeStarsRevenueStatus;
};
export class UpdateBotPurchasedPaidMedia extends VirtualClass<{
userId: long;
payload: string;
qts: int;
}> {
userId: long;
payload: string;
qts: int;
};
export class UpdatePaidReactionPrivacy extends VirtualClass<{
private: Bool;
}> {
private: Bool;
};
export class UpdatesTooLong extends VirtualClass<void> {};
export class UpdateShortMessage extends VirtualClass<{
// flags: undefined;
out?: true;
mentioned?: true;
mediaUnread?: true;
silent?: true;
id: int;
userId: long;
message: string;
pts: int;
ptsCount: int;
date: int;
fwdFrom?: Api.TypeMessageFwdHeader;
viaBotId?: long;
replyTo?: Api.TypeMessageReplyHeader;
entities?: Api.TypeMessageEntity[];
ttlPeriod?: int;
}> {
// flags: undefined;
out?: true;
mentioned?: true;
mediaUnread?: true;
silent?: true;
id: int;
userId: long;
message: string;
pts: int;
ptsCount: int;
date: int;
fwdFrom?: Api.TypeMessageFwdHeader;
viaBotId?: long;
replyTo?: Api.TypeMessageReplyHeader;
entities?: Api.TypeMessageEntity[];
ttlPeriod?: int;
};
export class UpdateShortChatMessage extends VirtualClass<{
// flags: undefined;
out?: true;
mentioned?: true;
mediaUnread?: true;
silent?: true;
id: int;
fromId: long;
chatId: long;
message: string;
pts: int;
ptsCount: int;
date: int;
fwdFrom?: Api.TypeMessageFwdHeader;
viaBotId?: long;
replyTo?: Api.TypeMessageReplyHeader;
entities?: Api.TypeMessageEntity[];
ttlPeriod?: int;
}> {
// flags: undefined;
out?: true;
mentioned?: true;
mediaUnread?: true;
silent?: true;
id: int;
fromId: long;
chatId: long;
message: string;
pts: int;
ptsCount: int;
date: int;
fwdFrom?: Api.TypeMessageFwdHeader;
viaBotId?: long;
replyTo?: Api.TypeMessageReplyHeader;
entities?: Api.TypeMessageEntity[];
ttlPeriod?: int;
};
export class UpdateShort extends VirtualClass<{
update: Api.TypeUpdate;
date: int;
}> {
update: Api.TypeUpdate;
date: int;
};
export class UpdatesCombined extends VirtualClass<{
updates: Api.TypeUpdate[];
users: Api.TypeUser[];
chats: Api.TypeChat[];
date: int;
seqStart: int;
seq: int;
}> {
updates: Api.TypeUpdate[];
users: Api.TypeUser[];
chats: Api.TypeChat[];
date: int;
seqStart: int;
seq: int;
};
export class Updates extends VirtualClass<{
updates: Api.TypeUpdate[];
users: Api.TypeUser[];
chats: Api.TypeChat[];
date: int;
seq: int;
}> {
updates: Api.TypeUpdate[];
users: Api.TypeUser[];
chats: Api.TypeChat[];
date: int;
seq: int;
};
export class UpdateShortSentMessage extends VirtualClass<{
// flags: undefined;
out?: true;
id: int;
pts: int;
ptsCount: int;
date: int;
media?: Api.TypeMessageMedia;
entities?: Api.TypeMessageEntity[];
ttlPeriod?: int;
}> {
// flags: undefined;
out?: true;
id: int;
pts: int;
ptsCount: int;
date: int;
media?: Api.TypeMessageMedia;
entities?: Api.TypeMessageEntity[];
ttlPeriod?: int;
};
export class DcOption extends VirtualClass<{
// flags: undefined;
ipv6?: true;
mediaOnly?: true;
tcpoOnly?: true;
cdn?: true;
static?: true;
thisPortOnly?: true;
id: int;
ipAddress: string;
port: int;
secret?: bytes;
}> {
// flags: undefined;
ipv6?: true;
mediaOnly?: true;
tcpoOnly?: true;
cdn?: true;
static?: true;
thisPortOnly?: true;
id: int;
ipAddress: string;
port: int;
secret?: bytes;
};
export class Config extends VirtualClass<{
// flags: undefined;
defaultP2pContacts?: true;
preloadFeaturedStickers?: true;
revokePmInbox?: true;
blockedMode?: true;
forceTryIpv6?: true;
date: int;
expires: int;
testMode: Bool;
thisDc: int;
dcOptions: Api.TypeDcOption[];
dcTxtDomainName: string;
chatSizeMax: int;
megagroupSizeMax: int;
forwardedCountMax: int;
onlineUpdatePeriodMs: int;
offlineBlurTimeoutMs: int;
offlineIdleTimeoutMs: int;
onlineCloudTimeoutMs: int;
notifyCloudDelayMs: int;
notifyDefaultDelayMs: int;
pushChatPeriodMs: int;
pushChatLimit: int;
editTimeLimit: int;
revokeTimeLimit: int;
revokePmTimeLimit: int;
ratingEDecay: int;
stickersRecentLimit: int;
channelsReadMediaPeriod: int;
tmpSessions?: int;
callReceiveTimeoutMs: int;
callRingTimeoutMs: int;
callConnectTimeoutMs: int;
callPacketTimeoutMs: int;
meUrlPrefix: string;
autoupdateUrlPrefix?: string;
gifSearchUsername?: string;
venueSearchUsername?: string;
imgSearchUsername?: string;
staticMapsProvider?: string;
captionLengthMax: int;
messageLengthMax: int;
webfileDcId: int;
suggestedLangCode?: string;
langPackVersion?: int;
baseLangPackVersion?: int;
reactionsDefault?: Api.TypeReaction;
autologinToken?: string;
}> {
// flags: undefined;
defaultP2pContacts?: true;
preloadFeaturedStickers?: true;
revokePmInbox?: true;
blockedMode?: true;
forceTryIpv6?: true;
date: int;
expires: int;
testMode: Bool;
thisDc: int;
dcOptions: Api.TypeDcOption[];
dcTxtDomainName: string;
chatSizeMax: int;
megagroupSizeMax: int;
forwardedCountMax: int;
onlineUpdatePeriodMs: int;
offlineBlurTimeoutMs: int;
offlineIdleTimeoutMs: int;
onlineCloudTimeoutMs: int;
notifyCloudDelayMs: int;
notifyDefaultDelayMs: int;
pushChatPeriodMs: int;
pushChatLimit: int;
editTimeLimit: int;
revokeTimeLimit: int;
revokePmTimeLimit: int;
ratingEDecay: int;
stickersRecentLimit: int;
channelsReadMediaPeriod: int;
tmpSessions?: int;
callReceiveTimeoutMs: int;
callRingTimeoutMs: int;
callConnectTimeoutMs: int;
callPacketTimeoutMs: int;
meUrlPrefix: string;
autoupdateUrlPrefix?: string;
gifSearchUsername?: string;
venueSearchUsername?: string;
imgSearchUsername?: string;
staticMapsProvider?: string;
captionLengthMax: int;
messageLengthMax: int;
webfileDcId: int;
suggestedLangCode?: string;
langPackVersion?: int;
baseLangPackVersion?: int;
reactionsDefault?: Api.TypeReaction;
autologinToken?: string;
};
export class NearestDc extends VirtualClass<{
country: string;
thisDc: int;
nearestDc: int;
}> {
country: string;
thisDc: int;
nearestDc: int;
};
export class EncryptedChatEmpty extends VirtualClass<{
id: int;
}> {
id: int;
};
export class EncryptedChatWaiting extends VirtualClass<{
id: int;
accessHash: long;
date: int;
adminId: long;
participantId: long;
}> {
id: int;
accessHash: long;
date: int;
adminId: long;
participantId: long;
};
export class EncryptedChatRequested extends VirtualClass<{
// flags: undefined;
folderId?: int;
id: int;
accessHash: long;
date: int;
adminId: long;
participantId: long;
gA: bytes;
}> {
// flags: undefined;
folderId?: int;
id: int;
accessHash: long;
date: int;
adminId: long;
participantId: long;
gA: bytes;
};
export class EncryptedChat extends VirtualClass<{
id: int;
accessHash: long;
date: int;
adminId: long;
participantId: long;
gAOrB: bytes;
keyFingerprint: long;
}> {
id: int;
accessHash: long;
date: int;
adminId: long;
participantId: long;
gAOrB: bytes;
keyFingerprint: long;
};
export class EncryptedChatDiscarded extends VirtualClass<{
// flags: undefined;
historyDeleted?: true;
id: int;
}> {
// flags: undefined;
historyDeleted?: true;
id: int;
};
export class InputEncryptedChat extends VirtualClass<{
chatId: int;
accessHash: long;
}> {
chatId: int;
accessHash: long;
};
export class EncryptedFileEmpty extends VirtualClass<void> {};
export class EncryptedFile extends VirtualClass<{
id: long;
accessHash: long;
size: long;
dcId: int;
keyFingerprint: int;
}> {
id: long;
accessHash: long;
size: long;
dcId: int;
keyFingerprint: int;
};
export class InputEncryptedFileEmpty extends VirtualClass<void> {};
export class InputEncryptedFileUploaded extends VirtualClass<{
id: long;
parts: int;
md5Checksum: string;
keyFingerprint: int;
}> {
id: long;
parts: int;
md5Checksum: string;
keyFingerprint: int;
};
export class InputEncryptedFile extends VirtualClass<{
id: long;
accessHash: long;
}> {
id: long;
accessHash: long;
};
export class InputEncryptedFileBigUploaded extends VirtualClass<{
id: long;
parts: int;
keyFingerprint: int;
}> {
id: long;
parts: int;
keyFingerprint: int;
};
export class EncryptedMessage extends VirtualClass<{
randomId: long;
chatId: int;
date: int;
bytes: bytes;
file: Api.TypeEncryptedFile;
}> {
randomId: long;
chatId: int;
date: int;
bytes: bytes;
file: Api.TypeEncryptedFile;
};
export class EncryptedMessageService extends VirtualClass<{
randomId: long;
chatId: int;
date: int;
bytes: bytes;
}> {
randomId: long;
chatId: int;
date: int;
bytes: bytes;
};
export class InputDocumentEmpty extends VirtualClass<void> {};
export class InputDocument extends VirtualClass<{
id: long;
accessHash: long;
fileReference: bytes;
}> {
id: long;
accessHash: long;
fileReference: bytes;
};
export class DocumentEmpty extends VirtualClass<{
id: long;
}> {
id: long;
};
export class Document extends VirtualClass<{
// flags: undefined;
id: long;
accessHash: long;
fileReference: bytes;
date: int;
mimeType: string;
size: long;
thumbs?: Api.TypePhotoSize[];
videoThumbs?: Api.TypeVideoSize[];
dcId: int;
attributes: Api.TypeDocumentAttribute[];
}> {
// flags: undefined;
id: long;
accessHash: long;
fileReference: bytes;
date: int;
mimeType: string;
size: long;
thumbs?: Api.TypePhotoSize[];
videoThumbs?: Api.TypeVideoSize[];
dcId: int;
attributes: Api.TypeDocumentAttribute[];
};
export class NotifyPeer extends VirtualClass<{
peer: Api.TypePeer;
}> {
peer: Api.TypePeer;
};
export class NotifyUsers extends VirtualClass<void> {};
export class NotifyChats extends VirtualClass<void> {};
export class NotifyBroadcasts extends VirtualClass<void> {};
export class NotifyForumTopic extends VirtualClass<{
peer: Api.TypePeer;
topMsgId: int;
}> {
peer: Api.TypePeer;
topMsgId: int;
};
export class SendMessageTypingAction extends VirtualClass<void> {};
export class SendMessageCancelAction extends VirtualClass<void> {};
export class SendMessageRecordVideoAction extends VirtualClass<void> {};
export class SendMessageUploadVideoAction extends VirtualClass<{
progress: int;
}> {
progress: int;
};
export class SendMessageRecordAudioAction extends VirtualClass<void> {};
export class SendMessageUploadAudioAction extends VirtualClass<{
progress: int;
}> {
progress: int;
};
export class SendMessageUploadPhotoAction extends VirtualClass<{
progress: int;
}> {
progress: int;
};
export class SendMessageUploadDocumentAction extends VirtualClass<{
progress: int;
}> {
progress: int;
};
export class SendMessageGeoLocationAction extends VirtualClass<void> {};
export class SendMessageChooseContactAction extends VirtualClass<void> {};
export class SendMessageGamePlayAction extends VirtualClass<void> {};
export class SendMessageRecordRoundAction extends VirtualClass<void> {};
export class SendMessageUploadRoundAction extends VirtualClass<{
progress: int;
}> {
progress: int;
};
export class SpeakingInGroupCallAction extends VirtualClass<void> {};
export class SendMessageHistoryImportAction extends VirtualClass<{
progress: int;
}> {
progress: int;
};
export class SendMessageChooseStickerAction extends VirtualClass<void> {};
export class SendMessageEmojiInteraction extends VirtualClass<{
emoticon: string;
msgId: int;
interaction: Api.TypeDataJSON;
}> {
emoticon: string;
msgId: int;
interaction: Api.TypeDataJSON;
};
export class SendMessageEmojiInteractionSeen extends VirtualClass<{
emoticon: string;
}> {
emoticon: string;
};
export class InputPrivacyKeyStatusTimestamp extends VirtualClass<void> {};
export class InputPrivacyKeyChatInvite extends VirtualClass<void> {};
export class InputPrivacyKeyPhoneCall extends VirtualClass<void> {};
export class InputPrivacyKeyPhoneP2P extends VirtualClass<void> {};
export class InputPrivacyKeyForwards extends VirtualClass<void> {};
export class InputPrivacyKeyProfilePhoto extends VirtualClass<void> {};
export class InputPrivacyKeyPhoneNumber extends VirtualClass<void> {};
export class InputPrivacyKeyAddedByPhone extends VirtualClass<void> {};
export class InputPrivacyKeyVoiceMessages extends VirtualClass<void> {};
export class InputPrivacyKeyAbout extends VirtualClass<void> {};
export class InputPrivacyKeyBirthday extends VirtualClass<void> {};
export class InputPrivacyKeyStarGiftsAutoSave extends VirtualClass<void> {};
export class PrivacyKeyStatusTimestamp extends VirtualClass<void> {};
export class PrivacyKeyChatInvite extends VirtualClass<void> {};
export class PrivacyKeyPhoneCall extends VirtualClass<void> {};
export class PrivacyKeyPhoneP2P extends VirtualClass<void> {};
export class PrivacyKeyForwards extends VirtualClass<void> {};
export class PrivacyKeyProfilePhoto extends VirtualClass<void> {};
export class PrivacyKeyPhoneNumber extends VirtualClass<void> {};
export class PrivacyKeyAddedByPhone extends VirtualClass<void> {};
export class PrivacyKeyVoiceMessages extends VirtualClass<void> {};
export class PrivacyKeyAbout extends VirtualClass<void> {};
export class PrivacyKeyBirthday extends VirtualClass<void> {};
export class PrivacyKeyStarGiftsAutoSave extends VirtualClass<void> {};
export class InputPrivacyValueAllowContacts extends VirtualClass<void> {};
export class InputPrivacyValueAllowAll extends VirtualClass<void> {};
export class InputPrivacyValueAllowUsers extends VirtualClass<{
users: Api.TypeInputUser[];
}> {
users: Api.TypeInputUser[];
};
export class InputPrivacyValueDisallowContacts extends VirtualClass<void> {};
export class InputPrivacyValueDisallowAll extends VirtualClass<void> {};
export class InputPrivacyValueDisallowUsers extends VirtualClass<{
users: Api.TypeInputUser[];
}> {
users: Api.TypeInputUser[];
};
export class InputPrivacyValueAllowChatParticipants extends VirtualClass<{
chats: long[];
}> {
chats: long[];
};
export class InputPrivacyValueDisallowChatParticipants extends VirtualClass<{
chats: long[];
}> {
chats: long[];
};
export class InputPrivacyValueAllowCloseFriends extends VirtualClass<void> {};
export class InputPrivacyValueAllowPremium extends VirtualClass<void> {};
export class InputPrivacyValueAllowBots extends VirtualClass<void> {};
export class InputPrivacyValueDisallowBots extends VirtualClass<void> {};
export class PrivacyValueAllowContacts extends VirtualClass<void> {};
export class PrivacyValueAllowAll extends VirtualClass<void> {};
export class PrivacyValueAllowUsers extends VirtualClass<{
users: long[];
}> {
users: long[];
};
export class PrivacyValueDisallowContacts extends VirtualClass<void> {};
export class PrivacyValueDisallowAll extends VirtualClass<void> {};
export class PrivacyValueDisallowUsers extends VirtualClass<{
users: long[];
}> {
users: long[];
};
export class PrivacyValueAllowChatParticipants extends VirtualClass<{
chats: long[];
}> {
chats: long[];
};
export class PrivacyValueDisallowChatParticipants extends VirtualClass<{
chats: long[];
}> {
chats: long[];
};
export class PrivacyValueAllowCloseFriends extends VirtualClass<void> {};
export class PrivacyValueAllowPremium extends VirtualClass<void> {};
export class PrivacyValueAllowBots extends VirtualClass<void> {};
export class PrivacyValueDisallowBots extends VirtualClass<void> {};
export class AccountDaysTTL extends VirtualClass<{
days: int;
}> {
days: int;
};
export class DocumentAttributeImageSize extends VirtualClass<{
w: int;
h: int;
}> {
w: int;
h: int;
};
export class DocumentAttributeAnimated extends VirtualClass<void> {};
export class DocumentAttributeSticker extends VirtualClass<{
// flags: undefined;
mask?: true;
alt: string;
stickerset: Api.TypeInputStickerSet;
maskCoords?: Api.TypeMaskCoords;
}> {
// flags: undefined;
mask?: true;
alt: string;
stickerset: Api.TypeInputStickerSet;
maskCoords?: Api.TypeMaskCoords;
};
export class DocumentAttributeVideo extends VirtualClass<{
// flags: undefined;
roundMessage?: true;
supportsStreaming?: true;
nosound?: true;
duration: double;
w: int;
h: int;
preloadPrefixSize?: int;
videoStartTs?: double;
videoCodec?: string;
}> {
// flags: undefined;
roundMessage?: true;
supportsStreaming?: true;
nosound?: true;
duration: double;
w: int;
h: int;
preloadPrefixSize?: int;
videoStartTs?: double;
videoCodec?: string;
};
export class DocumentAttributeAudio extends VirtualClass<{
// flags: undefined;
voice?: true;
duration: int;
title?: string;
performer?: string;
waveform?: bytes;
}> {
// flags: undefined;
voice?: true;
duration: int;
title?: string;
performer?: string;
waveform?: bytes;
};
export class DocumentAttributeFilename extends VirtualClass<{
fileName: string;
}> {
fileName: string;
};
export class DocumentAttributeHasStickers extends VirtualClass<void> {};
export class DocumentAttributeCustomEmoji extends VirtualClass<{
// flags: undefined;
free?: true;
textColor?: true;
alt: string;
stickerset: Api.TypeInputStickerSet;
}> {
// flags: undefined;
free?: true;
textColor?: true;
alt: string;
stickerset: Api.TypeInputStickerSet;
};
export class StickerPack extends VirtualClass<{
emoticon: string;
documents: long[];
}> {
emoticon: string;
documents: long[];
};
export class WebPageEmpty extends VirtualClass<{
// flags: undefined;
id: long;
url?: string;
}> {
// flags: undefined;
id: long;
url?: string;
};
export class WebPagePending extends VirtualClass<{
// flags: undefined;
id: long;
url?: string;
date: int;
}> {
// flags: undefined;
id: long;
url?: string;
date: int;
};
export class WebPage extends VirtualClass<{
// flags: undefined;
hasLargeMedia?: true;
id: long;
url: string;
displayUrl: string;
hash: int;
type?: string;
siteName?: string;
title?: string;
description?: string;
photo?: Api.TypePhoto;
embedUrl?: string;
embedType?: string;
embedWidth?: int;
embedHeight?: int;
duration?: int;
author?: string;
document?: Api.TypeDocument;
cachedPage?: Api.TypePage;
attributes?: Api.TypeWebPageAttribute[];
}> {
// flags: undefined;
hasLargeMedia?: true;
id: long;
url: string;
displayUrl: string;
hash: int;
type?: string;
siteName?: string;
title?: string;
description?: string;
photo?: Api.TypePhoto;
embedUrl?: string;
embedType?: string;
embedWidth?: int;
embedHeight?: int;
duration?: int;
author?: string;
document?: Api.TypeDocument;
cachedPage?: Api.TypePage;
attributes?: Api.TypeWebPageAttribute[];
};
export class WebPageNotModified extends VirtualClass<{
// flags: undefined;
cachedPageViews?: int;
} | void> {
// flags: undefined;
cachedPageViews?: int;
};
export class Authorization extends VirtualClass<{
// flags: undefined;
current?: true;
officialApp?: true;
passwordPending?: true;
encryptedRequestsDisabled?: true;
callRequestsDisabled?: true;
unconfirmed?: true;
hash: long;
deviceModel: string;
platform: string;
systemVersion: string;
apiId: int;
appName: string;
appVersion: string;
dateCreated: int;
dateActive: int;
ip: string;
country: string;
region: string;
}> {
// flags: undefined;
current?: true;
officialApp?: true;
passwordPending?: true;
encryptedRequestsDisabled?: true;
callRequestsDisabled?: true;
unconfirmed?: true;
hash: long;
deviceModel: string;
platform: string;
systemVersion: string;
apiId: int;
appName: string;
appVersion: string;
dateCreated: int;
dateActive: int;
ip: string;
country: string;
region: string;
};
export class ReceivedNotifyMessage extends VirtualClass<{
id: int;
// flags: int;
}> {
id: int;
// flags: int;
};
export class ChatInviteExported extends VirtualClass<{
// flags: undefined;
revoked?: true;
permanent?: true;
requestNeeded?: true;
link: string;
adminId: long;
date: int;
startDate?: int;
expireDate?: int;
usageLimit?: int;
usage?: int;
requested?: int;
subscriptionExpired?: int;
title?: string;
subscriptionPricing?: Api.TypeStarsSubscriptionPricing;
}> {
// flags: undefined;
revoked?: true;
permanent?: true;
requestNeeded?: true;
link: string;
adminId: long;
date: int;
startDate?: int;
expireDate?: int;
usageLimit?: int;
usage?: int;
requested?: int;
subscriptionExpired?: int;
title?: string;
subscriptionPricing?: Api.TypeStarsSubscriptionPricing;
};
export class ChatInvitePublicJoinRequests extends VirtualClass<void> {};
export class ChatInviteAlready extends VirtualClass<{
chat: Api.TypeChat;
}> {
chat: Api.TypeChat;
};
export class ChatInvite extends VirtualClass<{
// flags: undefined;
channel?: true;
broadcast?: true;
public?: true;
megagroup?: true;
requestNeeded?: true;
verified?: true;
scam?: true;
fake?: true;
canRefulfillSubscription?: true;
title: string;
about?: string;
photo: Api.TypePhoto;
participantsCount: int;
participants?: Api.TypeUser[];
color: int;
subscriptionPricing?: Api.TypeStarsSubscriptionPricing;
subscriptionFormId?: long;
botVerification?: Api.TypeBotVerification;
}> {
// flags: undefined;
channel?: true;
broadcast?: true;
public?: true;
megagroup?: true;
requestNeeded?: true;
verified?: true;
scam?: true;
fake?: true;
canRefulfillSubscription?: true;
title: string;
about?: string;
photo: Api.TypePhoto;
participantsCount: int;
participants?: Api.TypeUser[];
color: int;
subscriptionPricing?: Api.TypeStarsSubscriptionPricing;
subscriptionFormId?: long;
botVerification?: Api.TypeBotVerification;
};
export class ChatInvitePeek extends VirtualClass<{
chat: Api.TypeChat;
expires: int;
}> {
chat: Api.TypeChat;
expires: int;
};
export class InputStickerSetEmpty extends VirtualClass<void> {};
export class InputStickerSetID extends VirtualClass<{
id: long;
accessHash: long;
}> {
id: long;
accessHash: long;
};
export class InputStickerSetShortName extends VirtualClass<{
shortName: string;
}> {
shortName: string;
};
export class InputStickerSetAnimatedEmoji extends VirtualClass<void> {};
export class InputStickerSetDice extends VirtualClass<{
emoticon: string;
}> {
emoticon: string;
};
export class InputStickerSetAnimatedEmojiAnimations extends VirtualClass<void> {};
export class InputStickerSetPremiumGifts extends VirtualClass<void> {};
export class InputStickerSetEmojiGenericAnimations extends VirtualClass<void> {};
export class InputStickerSetEmojiDefaultStatuses extends VirtualClass<void> {};
export class InputStickerSetEmojiDefaultTopicIcons extends VirtualClass<void> {};
export class InputStickerSetEmojiChannelDefaultStatuses extends VirtualClass<void> {};
export class StickerSet extends VirtualClass<{
// flags: undefined;
archived?: true;
official?: true;
masks?: true;
emojis?: true;
textColor?: true;
channelEmojiStatus?: true;
creator?: true;
installedDate?: int;
id: long;
accessHash: long;
title: string;
shortName: string;
thumbs?: Api.TypePhotoSize[];
thumbDcId?: int;
thumbVersion?: int;
thumbDocumentId?: long;
count: int;
hash: int;
}> {
// flags: undefined;
archived?: true;
official?: true;
masks?: true;
emojis?: true;
textColor?: true;
channelEmojiStatus?: true;
creator?: true;
installedDate?: int;
id: long;
accessHash: long;
title: string;
shortName: string;
thumbs?: Api.TypePhotoSize[];
thumbDcId?: int;
thumbVersion?: int;
thumbDocumentId?: long;
count: int;
hash: int;
};
export class BotCommand extends VirtualClass<{
command: string;
description: string;
}> {
command: string;
description: string;
};
export class BotInfo extends VirtualClass<{
// flags: undefined;
hasPreviewMedias?: true;
userId?: long;
description?: string;
descriptionPhoto?: Api.TypePhoto;
descriptionDocument?: Api.TypeDocument;
commands?: Api.TypeBotCommand[];
menuButton?: Api.TypeBotMenuButton;
privacyPolicyUrl?: string;
appSettings?: Api.TypeBotAppSettings;
verifierSettings?: Api.TypeBotVerifierSettings;
} | void> {
// flags: undefined;
hasPreviewMedias?: true;
userId?: long;
description?: string;
descriptionPhoto?: Api.TypePhoto;
descriptionDocument?: Api.TypeDocument;
commands?: Api.TypeBotCommand[];
menuButton?: Api.TypeBotMenuButton;
privacyPolicyUrl?: string;
appSettings?: Api.TypeBotAppSettings;
verifierSettings?: Api.TypeBotVerifierSettings;
};
export class KeyboardButton extends VirtualClass<{
text: string;
}> {
text: string;
};
export class KeyboardButtonUrl extends VirtualClass<{
text: string;
url: string;
}> {
text: string;
url: string;
};
export class KeyboardButtonCallback extends VirtualClass<{
// flags: undefined;
requiresPassword?: true;
text: string;
data: bytes;
}> {
// flags: undefined;
requiresPassword?: true;
text: string;
data: bytes;
};
export class KeyboardButtonRequestPhone extends VirtualClass<{
text: string;
}> {
text: string;
};
export class KeyboardButtonRequestGeoLocation extends VirtualClass<{
text: string;
}> {
text: string;
};
export class KeyboardButtonSwitchInline extends VirtualClass<{
// flags: undefined;
samePeer?: true;
text: string;
query: string;
peerTypes?: Api.TypeInlineQueryPeerType[];
}> {
// flags: undefined;
samePeer?: true;
text: string;
query: string;
peerTypes?: Api.TypeInlineQueryPeerType[];
};
export class KeyboardButtonGame extends VirtualClass<{
text: string;
}> {
text: string;
};
export class KeyboardButtonBuy extends VirtualClass<{
text: string;
}> {
text: string;
};
export class KeyboardButtonUrlAuth extends VirtualClass<{
// flags: undefined;
text: string;
fwdText?: string;
url: string;
buttonId: int;
}> {
// flags: undefined;
text: string;
fwdText?: string;
url: string;
buttonId: int;
};
export class InputKeyboardButtonUrlAuth extends VirtualClass<{
// flags: undefined;
requestWriteAccess?: true;
text: string;
fwdText?: string;
url: string;
bot: Api.TypeInputUser;
}> {
// flags: undefined;
requestWriteAccess?: true;
text: string;
fwdText?: string;
url: string;
bot: Api.TypeInputUser;
};
export class KeyboardButtonRequestPoll extends VirtualClass<{
// flags: undefined;
quiz?: Bool;
text: string;
}> {
// flags: undefined;
quiz?: Bool;
text: string;
};
export class InputKeyboardButtonUserProfile extends VirtualClass<{
text: string;
userId: Api.TypeInputUser;
}> {
text: string;
userId: Api.TypeInputUser;
};
export class KeyboardButtonUserProfile extends VirtualClass<{
text: string;
userId: long;
}> {
text: string;
userId: long;
};
export class KeyboardButtonWebView extends VirtualClass<{
text: string;
url: string;
}> {
text: string;
url: string;
};
export class KeyboardButtonSimpleWebView extends VirtualClass<{
text: string;
url: string;
}> {
text: string;
url: string;
};
export class KeyboardButtonRequestPeer extends VirtualClass<{
text: string;
buttonId: int;
peerType: Api.TypeRequestPeerType;
maxQuantity: int;
}> {
text: string;
buttonId: int;
peerType: Api.TypeRequestPeerType;
maxQuantity: int;
};
export class InputKeyboardButtonRequestPeer extends VirtualClass<{
// flags: undefined;
nameRequested?: true;
usernameRequested?: true;
photoRequested?: true;
text: string;
buttonId: int;
peerType: Api.TypeRequestPeerType;
maxQuantity: int;
}> {
// flags: undefined;
nameRequested?: true;
usernameRequested?: true;
photoRequested?: true;
text: string;
buttonId: int;
peerType: Api.TypeRequestPeerType;
maxQuantity: int;
};
export class KeyboardButtonCopy extends VirtualClass<{
text: string;
copyText: string;
}> {
text: string;
copyText: string;
};
export class KeyboardButtonRow extends VirtualClass<{
buttons: Api.TypeKeyboardButton[];
}> {
buttons: Api.TypeKeyboardButton[];
};
export class ReplyKeyboardHide extends VirtualClass<{
// flags: undefined;
selective?: true;
} | void> {
// flags: undefined;
selective?: true;
};
export class ReplyKeyboardForceReply extends VirtualClass<{
// flags: undefined;
singleUse?: true;
selective?: true;
placeholder?: string;
} | void> {
// flags: undefined;
singleUse?: true;
selective?: true;
placeholder?: string;
};
export class ReplyKeyboardMarkup extends VirtualClass<{
// flags: undefined;
resize?: true;
singleUse?: true;
selective?: true;
persistent?: true;
rows: Api.TypeKeyboardButtonRow[];
placeholder?: string;
}> {
// flags: undefined;
resize?: true;
singleUse?: true;
selective?: true;
persistent?: true;
rows: Api.TypeKeyboardButtonRow[];
placeholder?: string;
};
export class ReplyInlineMarkup extends VirtualClass<{
rows: Api.TypeKeyboardButtonRow[];
}> {
rows: Api.TypeKeyboardButtonRow[];
};
export class MessageEntityUnknown extends VirtualClass<{
offset: int;
length: int;
}> {
offset: int;
length: int;
};
export class MessageEntityMention extends VirtualClass<{
offset: int;
length: int;
}> {
offset: int;
length: int;
};
export class MessageEntityHashtag extends VirtualClass<{
offset: int;
length: int;
}> {
offset: int;
length: int;
};
export class MessageEntityBotCommand extends VirtualClass<{
offset: int;
length: int;
}> {
offset: int;
length: int;
};
export class MessageEntityUrl extends VirtualClass<{
offset: int;
length: int;
}> {
offset: int;
length: int;
};
export class MessageEntityEmail extends VirtualClass<{
offset: int;
length: int;
}> {
offset: int;
length: int;
};
export class MessageEntityBold extends VirtualClass<{
offset: int;
length: int;
}> {
offset: int;
length: int;
};
export class MessageEntityItalic extends VirtualClass<{
offset: int;
length: int;
}> {
offset: int;
length: int;
};
export class MessageEntityCode extends VirtualClass<{
offset: int;
length: int;
}> {
offset: int;
length: int;
};
export class MessageEntityPre extends VirtualClass<{
offset: int;
length: int;
language: string;
}> {
offset: int;
length: int;
language: string;
};
export class MessageEntityTextUrl extends VirtualClass<{
offset: int;
length: int;
url: string;
}> {
offset: int;
length: int;
url: string;
};
export class MessageEntityMentionName extends VirtualClass<{
offset: int;
length: int;
userId: long;
}> {
offset: int;
length: int;
userId: long;
};
export class InputMessageEntityMentionName extends VirtualClass<{
offset: int;
length: int;
userId: Api.TypeInputUser;
}> {
offset: int;
length: int;
userId: Api.TypeInputUser;
};
export class MessageEntityPhone extends VirtualClass<{
offset: int;
length: int;
}> {
offset: int;
length: int;
};
export class MessageEntityCashtag extends VirtualClass<{
offset: int;
length: int;
}> {
offset: int;
length: int;
};
export class MessageEntityUnderline extends VirtualClass<{
offset: int;
length: int;
}> {
offset: int;
length: int;
};
export class MessageEntityStrike extends VirtualClass<{
offset: int;
length: int;
}> {
offset: int;
length: int;
};
export class MessageEntityBankCard extends VirtualClass<{
offset: int;
length: int;
}> {
offset: int;
length: int;
};
export class MessageEntitySpoiler extends VirtualClass<{
offset: int;
length: int;
}> {
offset: int;
length: int;
};
export class MessageEntityCustomEmoji extends VirtualClass<{
offset: int;
length: int;
documentId: long;
}> {
offset: int;
length: int;
documentId: long;
};
export class MessageEntityBlockquote extends VirtualClass<{
// flags: undefined;
collapsed?: true;
offset: int;
length: int;
}> {
// flags: undefined;
collapsed?: true;
offset: int;
length: int;
};
export class InputChannelEmpty extends VirtualClass<void> {};
export class InputChannel extends VirtualClass<{
channelId: long;
accessHash: long;
}> {
channelId: long;
accessHash: long;
};
export class InputChannelFromMessage extends VirtualClass<{
peer: Api.TypeInputPeer;
msgId: int;
channelId: long;
}> {
peer: Api.TypeInputPeer;
msgId: int;
channelId: long;
};
export class MessageRange extends VirtualClass<{
minId: int;
maxId: int;
}> {
minId: int;
maxId: int;
};
export class ChannelMessagesFilterEmpty extends VirtualClass<void> {};
export class ChannelMessagesFilter extends VirtualClass<{
// flags: undefined;
excludeNewMessages?: true;
ranges: Api.TypeMessageRange[];
}> {
// flags: undefined;
excludeNewMessages?: true;
ranges: Api.TypeMessageRange[];
};
export class ChannelParticipant extends VirtualClass<{
// flags: undefined;
userId: long;
date: int;
subscriptionUntilDate?: int;
}> {
// flags: undefined;
userId: long;
date: int;
subscriptionUntilDate?: int;
};
export class ChannelParticipantSelf extends VirtualClass<{
// flags: undefined;
viaRequest?: true;
userId: long;
inviterId: long;
date: int;
subscriptionUntilDate?: int;
}> {
// flags: undefined;
viaRequest?: true;
userId: long;
inviterId: long;
date: int;
subscriptionUntilDate?: int;
};
export class ChannelParticipantCreator extends VirtualClass<{
// flags: undefined;
userId: long;
adminRights: Api.TypeChatAdminRights;
rank?: string;
}> {
// flags: undefined;
userId: long;
adminRights: Api.TypeChatAdminRights;
rank?: string;
};
export class ChannelParticipantAdmin extends VirtualClass<{
// flags: undefined;
canEdit?: true;
self?: true;
userId: long;
inviterId?: long;
promotedBy: long;
date: int;
adminRights: Api.TypeChatAdminRights;
rank?: string;
}> {
// flags: undefined;
canEdit?: true;
self?: true;
userId: long;
inviterId?: long;
promotedBy: long;
date: int;
adminRights: Api.TypeChatAdminRights;
rank?: string;
};
export class ChannelParticipantBanned extends VirtualClass<{
// flags: undefined;
left?: true;
peer: Api.TypePeer;
kickedBy: long;
date: int;
bannedRights: Api.TypeChatBannedRights;
}> {
// flags: undefined;
left?: true;
peer: Api.TypePeer;
kickedBy: long;
date: int;
bannedRights: Api.TypeChatBannedRights;
};
export class ChannelParticipantLeft extends VirtualClass<{
peer: Api.TypePeer;
}> {
peer: Api.TypePeer;
};
export class ChannelParticipantsRecent extends VirtualClass<void> {};
export class ChannelParticipantsAdmins extends VirtualClass<void> {};
export class ChannelParticipantsKicked extends VirtualClass<{
q: string;
}> {
q: string;
};
export class ChannelParticipantsBots extends VirtualClass<void> {};
export class ChannelParticipantsBanned extends VirtualClass<{
q: string;
}> {
q: string;
};
export class ChannelParticipantsSearch extends VirtualClass<{
q: string;
}> {
q: string;
};
export class ChannelParticipantsContacts extends VirtualClass<{
q: string;
}> {
q: string;
};
export class ChannelParticipantsMentions extends VirtualClass<{
// flags: undefined;
q?: string;
topMsgId?: int;
} | void> {
// flags: undefined;
q?: string;
topMsgId?: int;
};
export class InputBotInlineMessageMediaAuto extends VirtualClass<{
// flags: undefined;
invertMedia?: true;
message: string;
entities?: Api.TypeMessageEntity[];
replyMarkup?: Api.TypeReplyMarkup;
}> {
// flags: undefined;
invertMedia?: true;
message: string;
entities?: Api.TypeMessageEntity[];
replyMarkup?: Api.TypeReplyMarkup;
};
export class InputBotInlineMessageText extends VirtualClass<{
// flags: undefined;
noWebpage?: true;
invertMedia?: true;
message: string;
entities?: Api.TypeMessageEntity[];
replyMarkup?: Api.TypeReplyMarkup;
}> {
// flags: undefined;
noWebpage?: true;
invertMedia?: true;
message: string;
entities?: Api.TypeMessageEntity[];
replyMarkup?: Api.TypeReplyMarkup;
};
export class InputBotInlineMessageMediaGeo extends VirtualClass<{
// flags: undefined;
geoPoint: Api.TypeInputGeoPoint;
heading?: int;
period?: int;
proximityNotificationRadius?: int;
replyMarkup?: Api.TypeReplyMarkup;
}> {
// flags: undefined;
geoPoint: Api.TypeInputGeoPoint;
heading?: int;
period?: int;
proximityNotificationRadius?: int;
replyMarkup?: Api.TypeReplyMarkup;
};
export class InputBotInlineMessageMediaVenue extends VirtualClass<{
// flags: undefined;
geoPoint: Api.TypeInputGeoPoint;
title: string;
address: string;
provider: string;
venueId: string;
venueType: string;
replyMarkup?: Api.TypeReplyMarkup;
}> {
// flags: undefined;
geoPoint: Api.TypeInputGeoPoint;
title: string;
address: string;
provider: string;
venueId: string;
venueType: string;
replyMarkup?: Api.TypeReplyMarkup;
};
export class InputBotInlineMessageMediaContact extends VirtualClass<{
// flags: undefined;
phoneNumber: string;
firstName: string;
lastName: string;
vcard: string;
replyMarkup?: Api.TypeReplyMarkup;
}> {
// flags: undefined;
phoneNumber: string;
firstName: string;
lastName: string;
vcard: string;
replyMarkup?: Api.TypeReplyMarkup;
};
export class InputBotInlineMessageGame extends VirtualClass<{
// flags: undefined;
replyMarkup?: Api.TypeReplyMarkup;
} | void> {
// flags: undefined;
replyMarkup?: Api.TypeReplyMarkup;
};
export class InputBotInlineMessageMediaInvoice extends VirtualClass<{
// flags: undefined;
title: string;
description: string;
photo?: Api.TypeInputWebDocument;
invoice: Api.TypeInvoice;
payload: bytes;
provider: string;
providerData: Api.TypeDataJSON;
replyMarkup?: Api.TypeReplyMarkup;
}> {
// flags: undefined;
title: string;
description: string;
photo?: Api.TypeInputWebDocument;
invoice: Api.TypeInvoice;
payload: bytes;
provider: string;
providerData: Api.TypeDataJSON;
replyMarkup?: Api.TypeReplyMarkup;
};
export class InputBotInlineMessageMediaWebPage extends VirtualClass<{
// flags: undefined;
invertMedia?: true;
forceLargeMedia?: true;
forceSmallMedia?: true;
optional?: true;
message: string;
entities?: Api.TypeMessageEntity[];
url: string;
replyMarkup?: Api.TypeReplyMarkup;
}> {
// flags: undefined;
invertMedia?: true;
forceLargeMedia?: true;
forceSmallMedia?: true;
optional?: true;
message: string;
entities?: Api.TypeMessageEntity[];
url: string;
replyMarkup?: Api.TypeReplyMarkup;
};
export class InputBotInlineResult extends VirtualClass<{
// flags: undefined;
id: string;
type: string;
title?: string;
description?: string;
url?: string;
thumb?: Api.TypeInputWebDocument;
content?: Api.TypeInputWebDocument;
sendMessage: Api.TypeInputBotInlineMessage;
}> {
// flags: undefined;
id: string;
type: string;
title?: string;
description?: string;
url?: string;
thumb?: Api.TypeInputWebDocument;
content?: Api.TypeInputWebDocument;
sendMessage: Api.TypeInputBotInlineMessage;
};
export class InputBotInlineResultPhoto extends VirtualClass<{
id: string;
type: string;
photo: Api.TypeInputPhoto;
sendMessage: Api.TypeInputBotInlineMessage;
}> {
id: string;
type: string;
photo: Api.TypeInputPhoto;
sendMessage: Api.TypeInputBotInlineMessage;
};
export class InputBotInlineResultDocument extends VirtualClass<{
// flags: undefined;
id: string;
type: string;
title?: string;
description?: string;
document: Api.TypeInputDocument;
sendMessage: Api.TypeInputBotInlineMessage;
}> {
// flags: undefined;
id: string;
type: string;
title?: string;
description?: string;
document: Api.TypeInputDocument;
sendMessage: Api.TypeInputBotInlineMessage;
};
export class InputBotInlineResultGame extends VirtualClass<{
id: string;
shortName: string;
sendMessage: Api.TypeInputBotInlineMessage;
}> {
id: string;
shortName: string;
sendMessage: Api.TypeInputBotInlineMessage;
};
export class BotInlineMessageMediaAuto extends VirtualClass<{
// flags: undefined;
invertMedia?: true;
message: string;
entities?: Api.TypeMessageEntity[];
replyMarkup?: Api.TypeReplyMarkup;
}> {
// flags: undefined;
invertMedia?: true;
message: string;
entities?: Api.TypeMessageEntity[];
replyMarkup?: Api.TypeReplyMarkup;
};
export class BotInlineMessageText extends VirtualClass<{
// flags: undefined;
noWebpage?: true;
invertMedia?: true;
message: string;
entities?: Api.TypeMessageEntity[];
replyMarkup?: Api.TypeReplyMarkup;
}> {
// flags: undefined;
noWebpage?: true;
invertMedia?: true;
message: string;
entities?: Api.TypeMessageEntity[];
replyMarkup?: Api.TypeReplyMarkup;
};
export class BotInlineMessageMediaGeo extends VirtualClass<{
// flags: undefined;
geo: Api.TypeGeoPoint;
heading?: int;
period?: int;
proximityNotificationRadius?: int;
replyMarkup?: Api.TypeReplyMarkup;
}> {
// flags: undefined;
geo: Api.TypeGeoPoint;
heading?: int;
period?: int;
proximityNotificationRadius?: int;
replyMarkup?: Api.TypeReplyMarkup;
};
export class BotInlineMessageMediaVenue extends VirtualClass<{
// flags: undefined;
geo: Api.TypeGeoPoint;
title: string;
address: string;
provider: string;
venueId: string;
venueType: string;
replyMarkup?: Api.TypeReplyMarkup;
}> {
// flags: undefined;
geo: Api.TypeGeoPoint;
title: string;
address: string;
provider: string;
venueId: string;
venueType: string;
replyMarkup?: Api.TypeReplyMarkup;
};
export class BotInlineMessageMediaContact extends VirtualClass<{
// flags: undefined;
phoneNumber: string;
firstName: string;
lastName: string;
vcard: string;
replyMarkup?: Api.TypeReplyMarkup;
}> {
// flags: undefined;
phoneNumber: string;
firstName: string;
lastName: string;
vcard: string;
replyMarkup?: Api.TypeReplyMarkup;
};
export class BotInlineMessageMediaInvoice extends VirtualClass<{
// flags: undefined;
shippingAddressRequested?: true;
test?: true;
title: string;
description: string;
photo?: Api.TypeWebDocument;
currency: string;
totalAmount: long;
replyMarkup?: Api.TypeReplyMarkup;
}> {
// flags: undefined;
shippingAddressRequested?: true;
test?: true;
title: string;
description: string;
photo?: Api.TypeWebDocument;
currency: string;
totalAmount: long;
replyMarkup?: Api.TypeReplyMarkup;
};
export class BotInlineMessageMediaWebPage extends VirtualClass<{
// flags: undefined;
invertMedia?: true;
forceLargeMedia?: true;
forceSmallMedia?: true;
manual?: true;
safe?: true;
message: string;
entities?: Api.TypeMessageEntity[];
url: string;
replyMarkup?: Api.TypeReplyMarkup;
}> {
// flags: undefined;
invertMedia?: true;
forceLargeMedia?: true;
forceSmallMedia?: true;
manual?: true;
safe?: true;
message: string;
entities?: Api.TypeMessageEntity[];
url: string;
replyMarkup?: Api.TypeReplyMarkup;
};
export class BotInlineResult extends VirtualClass<{
// flags: undefined;
id: string;
type: string;
title?: string;
description?: string;
url?: string;
thumb?: Api.TypeWebDocument;
content?: Api.TypeWebDocument;
sendMessage: Api.TypeBotInlineMessage;
}> {
// flags: undefined;
id: string;
type: string;
title?: string;
description?: string;
url?: string;
thumb?: Api.TypeWebDocument;
content?: Api.TypeWebDocument;
sendMessage: Api.TypeBotInlineMessage;
};
export class BotInlineMediaResult extends VirtualClass<{
// flags: undefined;
id: string;
type: string;
photo?: Api.TypePhoto;
document?: Api.TypeDocument;
title?: string;
description?: string;
sendMessage: Api.TypeBotInlineMessage;
}> {
// flags: undefined;
id: string;
type: string;
photo?: Api.TypePhoto;
document?: Api.TypeDocument;
title?: string;
description?: string;
sendMessage: Api.TypeBotInlineMessage;
};
export class ExportedMessageLink extends VirtualClass<{
link: string;
html: string;
}> {
link: string;
html: string;
};
export class MessageFwdHeader extends VirtualClass<{
// flags: undefined;
imported?: true;
savedOut?: true;
fromId?: Api.TypePeer;
fromName?: string;
date: int;
channelPost?: int;
postAuthor?: string;
savedFromPeer?: Api.TypePeer;
savedFromMsgId?: int;
savedFromId?: Api.TypePeer;
savedFromName?: string;
savedDate?: int;
psaType?: string;
}> {
// flags: undefined;
imported?: true;
savedOut?: true;
fromId?: Api.TypePeer;
fromName?: string;
date: int;
channelPost?: int;
postAuthor?: string;
savedFromPeer?: Api.TypePeer;
savedFromMsgId?: int;
savedFromId?: Api.TypePeer;
savedFromName?: string;
savedDate?: int;
psaType?: string;
};
export class InputBotInlineMessageID extends VirtualClass<{
dcId: int;
id: long;
accessHash: long;
}> {
dcId: int;
id: long;
accessHash: long;
};
export class InputBotInlineMessageID64 extends VirtualClass<{
dcId: int;
ownerId: long;
id: int;
accessHash: long;
}> {
dcId: int;
ownerId: long;
id: int;
accessHash: long;
};
export class InlineBotSwitchPM extends VirtualClass<{
text: string;
startParam: string;
}> {
text: string;
startParam: string;
};
export class TopPeer extends VirtualClass<{
peer: Api.TypePeer;
rating: double;
}> {
peer: Api.TypePeer;
rating: double;
};
export class TopPeerCategoryBotsPM extends VirtualClass<void> {};
export class TopPeerCategoryBotsInline extends VirtualClass<void> {};
export class TopPeerCategoryCorrespondents extends VirtualClass<void> {};
export class TopPeerCategoryGroups extends VirtualClass<void> {};
export class TopPeerCategoryChannels extends VirtualClass<void> {};
export class TopPeerCategoryPhoneCalls extends VirtualClass<void> {};
export class TopPeerCategoryForwardUsers extends VirtualClass<void> {};
export class TopPeerCategoryForwardChats extends VirtualClass<void> {};
export class TopPeerCategoryBotsApp extends VirtualClass<void> {};
export class TopPeerCategoryPeers extends VirtualClass<{
category: Api.TypeTopPeerCategory;
count: int;
peers: Api.TypeTopPeer[];
}> {
category: Api.TypeTopPeerCategory;
count: int;
peers: Api.TypeTopPeer[];
};
export class DraftMessageEmpty extends VirtualClass<{
// flags: undefined;
date?: int;
} | void> {
// flags: undefined;
date?: int;
};
export class DraftMessage extends VirtualClass<{
// flags: undefined;
noWebpage?: true;
invertMedia?: true;
replyTo?: Api.TypeInputReplyTo;
message: string;
entities?: Api.TypeMessageEntity[];
media?: Api.TypeInputMedia;
date: int;
effect?: long;
}> {
// flags: undefined;
noWebpage?: true;
invertMedia?: true;
replyTo?: Api.TypeInputReplyTo;
message: string;
entities?: Api.TypeMessageEntity[];
media?: Api.TypeInputMedia;
date: int;
effect?: long;
};
export class StickerSetCovered extends VirtualClass<{
set: Api.TypeStickerSet;
cover: Api.TypeDocument;
}> {
set: Api.TypeStickerSet;
cover: Api.TypeDocument;
};
export class StickerSetMultiCovered extends VirtualClass<{
set: Api.TypeStickerSet;
covers: Api.TypeDocument[];
}> {
set: Api.TypeStickerSet;
covers: Api.TypeDocument[];
};
export class StickerSetFullCovered extends VirtualClass<{
set: Api.TypeStickerSet;
packs: Api.TypeStickerPack[];
keywords: Api.TypeStickerKeyword[];
documents: Api.TypeDocument[];
}> {
set: Api.TypeStickerSet;
packs: Api.TypeStickerPack[];
keywords: Api.TypeStickerKeyword[];
documents: Api.TypeDocument[];
};
export class StickerSetNoCovered extends VirtualClass<{
set: Api.TypeStickerSet;
}> {
set: Api.TypeStickerSet;
};
export class MaskCoords extends VirtualClass<{
n: int;
x: double;
y: double;
zoom: double;
}> {
n: int;
x: double;
y: double;
zoom: double;
};
export class InputStickeredMediaPhoto extends VirtualClass<{
id: Api.TypeInputPhoto;
}> {
id: Api.TypeInputPhoto;
};
export class InputStickeredMediaDocument extends VirtualClass<{
id: Api.TypeInputDocument;
}> {
id: Api.TypeInputDocument;
};
export class Game extends VirtualClass<{
// flags: undefined;
id: long;
accessHash: long;
shortName: string;
title: string;
description: string;
photo: Api.TypePhoto;
document?: Api.TypeDocument;
}> {
// flags: undefined;
id: long;
accessHash: long;
shortName: string;
title: string;
description: string;
photo: Api.TypePhoto;
document?: Api.TypeDocument;
};
export class InputGameID extends VirtualClass<{
id: long;
accessHash: long;
}> {
id: long;
accessHash: long;
};
export class InputGameShortName extends VirtualClass<{
botId: Api.TypeInputUser;
shortName: string;
}> {
botId: Api.TypeInputUser;
shortName: string;
};
export class HighScore extends VirtualClass<{
pos: int;
userId: long;
score: int;
}> {
pos: int;
userId: long;
score: int;
};
export class TextEmpty extends VirtualClass<void> {};
export class TextPlain extends VirtualClass<{
text: string;
}> {
text: string;
};
export class TextBold extends VirtualClass<{
text: Api.TypeRichText;
}> {
text: Api.TypeRichText;
};
export class TextItalic extends VirtualClass<{
text: Api.TypeRichText;
}> {
text: Api.TypeRichText;
};
export class TextUnderline extends VirtualClass<{
text: Api.TypeRichText;
}> {
text: Api.TypeRichText;
};
export class TextStrike extends VirtualClass<{
text: Api.TypeRichText;
}> {
text: Api.TypeRichText;
};
export class TextFixed extends VirtualClass<{
text: Api.TypeRichText;
}> {
text: Api.TypeRichText;
};
export class TextUrl extends VirtualClass<{
text: Api.TypeRichText;
url: string;
webpageId: long;
}> {
text: Api.TypeRichText;
url: string;
webpageId: long;
};
export class TextEmail extends VirtualClass<{
text: Api.TypeRichText;
email: string;
}> {
text: Api.TypeRichText;
email: string;
};
export class TextConcat extends VirtualClass<{
texts: Api.TypeRichText[];
}> {
texts: Api.TypeRichText[];
};
export class TextSubscript extends VirtualClass<{
text: Api.TypeRichText;
}> {
text: Api.TypeRichText;
};
export class TextSuperscript extends VirtualClass<{
text: Api.TypeRichText;
}> {
text: Api.TypeRichText;
};
export class TextMarked extends VirtualClass<{
text: Api.TypeRichText;
}> {
text: Api.TypeRichText;
};
export class TextPhone extends VirtualClass<{
text: Api.TypeRichText;
phone: string;
}> {
text: Api.TypeRichText;
phone: string;
};
export class TextImage extends VirtualClass<{
documentId: long;
w: int;
h: int;
}> {
documentId: long;
w: int;
h: int;
};
export class TextAnchor extends VirtualClass<{
text: Api.TypeRichText;
name: string;
}> {
text: Api.TypeRichText;
name: string;
};
export class PageBlockUnsupported extends VirtualClass<void> {};
export class PageBlockTitle extends VirtualClass<{
text: Api.TypeRichText;
}> {
text: Api.TypeRichText;
};
export class PageBlockSubtitle extends VirtualClass<{
text: Api.TypeRichText;
}> {
text: Api.TypeRichText;
};
export class PageBlockAuthorDate extends VirtualClass<{
author: Api.TypeRichText;
publishedDate: int;
}> {
author: Api.TypeRichText;
publishedDate: int;
};
export class PageBlockHeader extends VirtualClass<{
text: Api.TypeRichText;
}> {
text: Api.TypeRichText;
};
export class PageBlockSubheader extends VirtualClass<{
text: Api.TypeRichText;
}> {
text: Api.TypeRichText;
};
export class PageBlockParagraph extends VirtualClass<{
text: Api.TypeRichText;
}> {
text: Api.TypeRichText;
};
export class PageBlockPreformatted extends VirtualClass<{
text: Api.TypeRichText;
language: string;
}> {
text: Api.TypeRichText;
language: string;
};
export class PageBlockFooter extends VirtualClass<{
text: Api.TypeRichText;
}> {
text: Api.TypeRichText;
};
export class PageBlockDivider extends VirtualClass<void> {};
export class PageBlockAnchor extends VirtualClass<{
name: string;
}> {
name: string;
};
export class PageBlockList extends VirtualClass<{
items: Api.TypePageListItem[];
}> {
items: Api.TypePageListItem[];
};
export class PageBlockBlockquote extends VirtualClass<{
text: Api.TypeRichText;
caption: Api.TypeRichText;
}> {
text: Api.TypeRichText;
caption: Api.TypeRichText;
};
export class PageBlockPullquote extends VirtualClass<{
text: Api.TypeRichText;
caption: Api.TypeRichText;
}> {
text: Api.TypeRichText;
caption: Api.TypeRichText;
};
export class PageBlockPhoto extends VirtualClass<{
// flags: undefined;
photoId: long;
caption: Api.TypePageCaption;
url?: string;
webpageId?: long;
}> {
// flags: undefined;
photoId: long;
caption: Api.TypePageCaption;
url?: string;
webpageId?: long;
};
export class PageBlockVideo extends VirtualClass<{
// flags: undefined;
autoplay?: true;
loop?: true;
videoId: long;
caption: Api.TypePageCaption;
}> {
// flags: undefined;
autoplay?: true;
loop?: true;
videoId: long;
caption: Api.TypePageCaption;
};
export class PageBlockCover extends VirtualClass<{
cover: Api.TypePageBlock;
}> {
cover: Api.TypePageBlock;
};
export class PageBlockEmbed extends VirtualClass<{
// flags: undefined;
fullWidth?: true;
allowScrolling?: true;
url?: string;
html?: string;
posterPhotoId?: long;
w?: int;
h?: int;
caption: Api.TypePageCaption;
}> {
// flags: undefined;
fullWidth?: true;
allowScrolling?: true;
url?: string;
html?: string;
posterPhotoId?: long;
w?: int;
h?: int;
caption: Api.TypePageCaption;
};
export class PageBlockEmbedPost extends VirtualClass<{
url: string;
webpageId: long;
authorPhotoId: long;
author: string;
date: int;
blocks: Api.TypePageBlock[];
caption: Api.TypePageCaption;
}> {
url: string;
webpageId: long;
authorPhotoId: long;
author: string;
date: int;
blocks: Api.TypePageBlock[];
caption: Api.TypePageCaption;
};
export class PageBlockCollage extends VirtualClass<{
items: Api.TypePageBlock[];
caption: Api.TypePageCaption;
}> {
items: Api.TypePageBlock[];
caption: Api.TypePageCaption;
};
export class PageBlockSlideshow extends VirtualClass<{
items: Api.TypePageBlock[];
caption: Api.TypePageCaption;
}> {
items: Api.TypePageBlock[];
caption: Api.TypePageCaption;
};
export class PageBlockChannel extends VirtualClass<{
channel: Api.TypeChat;
}> {
channel: Api.TypeChat;
};
export class PageBlockAudio extends VirtualClass<{
audioId: long;
caption: Api.TypePageCaption;
}> {
audioId: long;
caption: Api.TypePageCaption;
};
export class PageBlockKicker extends VirtualClass<{
text: Api.TypeRichText;
}> {
text: Api.TypeRichText;
};
export class PageBlockTable extends VirtualClass<{
// flags: undefined;
bordered?: true;
striped?: true;
title: Api.TypeRichText;
rows: Api.TypePageTableRow[];
}> {
// flags: undefined;
bordered?: true;
striped?: true;
title: Api.TypeRichText;
rows: Api.TypePageTableRow[];
};
export class PageBlockOrderedList extends VirtualClass<{
items: Api.TypePageListOrderedItem[];
}> {
items: Api.TypePageListOrderedItem[];
};
export class PageBlockDetails extends VirtualClass<{
// flags: undefined;
open?: true;
blocks: Api.TypePageBlock[];
title: Api.TypeRichText;
}> {
// flags: undefined;
open?: true;
blocks: Api.TypePageBlock[];
title: Api.TypeRichText;
};
export class PageBlockRelatedArticles extends VirtualClass<{
title: Api.TypeRichText;
articles: Api.TypePageRelatedArticle[];
}> {
title: Api.TypeRichText;
articles: Api.TypePageRelatedArticle[];
};
export class PageBlockMap extends VirtualClass<{
geo: Api.TypeGeoPoint;
zoom: int;
w: int;
h: int;
caption: Api.TypePageCaption;
}> {
geo: Api.TypeGeoPoint;
zoom: int;
w: int;
h: int;
caption: Api.TypePageCaption;
};
export class PhoneCallDiscardReasonMissed extends VirtualClass<void> {};
export class PhoneCallDiscardReasonDisconnect extends VirtualClass<void> {};
export class PhoneCallDiscardReasonHangup extends VirtualClass<void> {};
export class PhoneCallDiscardReasonBusy extends VirtualClass<void> {};
export class PhoneCallDiscardReasonAllowGroupCall extends VirtualClass<{
encryptedKey: bytes;
}> {
encryptedKey: bytes;
};
export class DataJSON extends VirtualClass<{
data: string;
}> {
data: string;
};
export class LabeledPrice extends VirtualClass<{
label: string;
amount: long;
}> {
label: string;
amount: long;
};
export class Invoice extends VirtualClass<{
// flags: undefined;
test?: true;
nameRequested?: true;
phoneRequested?: true;
emailRequested?: true;
shippingAddressRequested?: true;
flexible?: true;
phoneToProvider?: true;
emailToProvider?: true;
recurring?: true;
currency: string;
prices: Api.TypeLabeledPrice[];
maxTipAmount?: long;
suggestedTipAmounts?: long[];
termsUrl?: string;
subscriptionPeriod?: int;
}> {
// flags: undefined;
test?: true;
nameRequested?: true;
phoneRequested?: true;
emailRequested?: true;
shippingAddressRequested?: true;
flexible?: true;
phoneToProvider?: true;
emailToProvider?: true;
recurring?: true;
currency: string;
prices: Api.TypeLabeledPrice[];
maxTipAmount?: long;
suggestedTipAmounts?: long[];
termsUrl?: string;
subscriptionPeriod?: int;
};
export class PaymentCharge extends VirtualClass<{
id: string;
providerChargeId: string;
}> {
id: string;
providerChargeId: string;
};
export class PostAddress extends VirtualClass<{
streetLine1: string;
streetLine2: string;
city: string;
state: string;
countryIso2: string;
postCode: string;
}> {
streetLine1: string;
streetLine2: string;
city: string;
state: string;
countryIso2: string;
postCode: string;
};
export class PaymentRequestedInfo extends VirtualClass<{
// flags: undefined;
name?: string;
phone?: string;
email?: string;
shippingAddress?: Api.TypePostAddress;
} | void> {
// flags: undefined;
name?: string;
phone?: string;
email?: string;
shippingAddress?: Api.TypePostAddress;
};
export class PaymentSavedCredentialsCard extends VirtualClass<{
id: string;
title: string;
}> {
id: string;
title: string;
};
export class WebDocument extends VirtualClass<{
url: string;
accessHash: long;
size: int;
mimeType: string;
attributes: Api.TypeDocumentAttribute[];
}> {
url: string;
accessHash: long;
size: int;
mimeType: string;
attributes: Api.TypeDocumentAttribute[];
};
export class WebDocumentNoProxy extends VirtualClass<{
url: string;
size: int;
mimeType: string;
attributes: Api.TypeDocumentAttribute[];
}> {
url: string;
size: int;
mimeType: string;
attributes: Api.TypeDocumentAttribute[];
};
export class InputWebDocument extends VirtualClass<{
url: string;
size: int;
mimeType: string;
attributes: Api.TypeDocumentAttribute[];
}> {
url: string;
size: int;
mimeType: string;
attributes: Api.TypeDocumentAttribute[];
};
export class InputWebFileLocation extends VirtualClass<{
url: string;
accessHash: long;
}> {
url: string;
accessHash: long;
};
export class InputWebFileGeoPointLocation extends VirtualClass<{
geoPoint: Api.TypeInputGeoPoint;
accessHash: long;
w: int;
h: int;
zoom: int;
scale: int;
}> {
geoPoint: Api.TypeInputGeoPoint;
accessHash: long;
w: int;
h: int;
zoom: int;
scale: int;
};
export class InputWebFileAudioAlbumThumbLocation extends VirtualClass<{
// flags: undefined;
small?: true;
document?: Api.TypeInputDocument;
title?: string;
performer?: string;
} | void> {
// flags: undefined;
small?: true;
document?: Api.TypeInputDocument;
title?: string;
performer?: string;
};
export class InputPaymentCredentialsSaved extends VirtualClass<{
id: string;
tmpPassword: bytes;
}> {
id: string;
tmpPassword: bytes;
};
export class InputPaymentCredentials extends VirtualClass<{
// flags: undefined;
save?: true;
data: Api.TypeDataJSON;
}> {
// flags: undefined;
save?: true;
data: Api.TypeDataJSON;
};
export class InputPaymentCredentialsApplePay extends VirtualClass<{
paymentData: Api.TypeDataJSON;
}> {
paymentData: Api.TypeDataJSON;
};
export class InputPaymentCredentialsGooglePay extends VirtualClass<{
paymentToken: Api.TypeDataJSON;
}> {
paymentToken: Api.TypeDataJSON;
};
export class ShippingOption extends VirtualClass<{
id: string;
title: string;
prices: Api.TypeLabeledPrice[];
}> {
id: string;
title: string;
prices: Api.TypeLabeledPrice[];
};
export class InputStickerSetItem extends VirtualClass<{
// flags: undefined;
document: Api.TypeInputDocument;
emoji: string;
maskCoords?: Api.TypeMaskCoords;
keywords?: string;
}> {
// flags: undefined;
document: Api.TypeInputDocument;
emoji: string;
maskCoords?: Api.TypeMaskCoords;
keywords?: string;
};
export class InputPhoneCall extends VirtualClass<{
id: long;
accessHash: long;
}> {
id: long;
accessHash: long;
};
export class PhoneCallEmpty extends VirtualClass<{
id: long;
}> {
id: long;
};
export class PhoneCallWaiting extends VirtualClass<{
// flags: undefined;
video?: true;
id: long;
accessHash: long;
date: int;
adminId: long;
participantId: long;
protocol: Api.TypePhoneCallProtocol;
receiveDate?: int;
conferenceCall?: Api.TypeInputGroupCall;
}> {
// flags: undefined;
video?: true;
id: long;
accessHash: long;
date: int;
adminId: long;
participantId: long;
protocol: Api.TypePhoneCallProtocol;
receiveDate?: int;
conferenceCall?: Api.TypeInputGroupCall;
};
export class PhoneCallRequested extends VirtualClass<{
// flags: undefined;
video?: true;
id: long;
accessHash: long;
date: int;
adminId: long;
participantId: long;
gAHash: bytes;
protocol: Api.TypePhoneCallProtocol;
conferenceCall?: Api.TypeInputGroupCall;
}> {
// flags: undefined;
video?: true;
id: long;
accessHash: long;
date: int;
adminId: long;
participantId: long;
gAHash: bytes;
protocol: Api.TypePhoneCallProtocol;
conferenceCall?: Api.TypeInputGroupCall;
};
export class PhoneCallAccepted extends VirtualClass<{
// flags: undefined;
video?: true;
id: long;
accessHash: long;
date: int;
adminId: long;
participantId: long;
gB: bytes;
protocol: Api.TypePhoneCallProtocol;
conferenceCall?: Api.TypeInputGroupCall;
}> {
// flags: undefined;
video?: true;
id: long;
accessHash: long;
date: int;
adminId: long;
participantId: long;
gB: bytes;
protocol: Api.TypePhoneCallProtocol;
conferenceCall?: Api.TypeInputGroupCall;
};
export class PhoneCall extends VirtualClass<{
// flags: undefined;
p2pAllowed?: true;
video?: true;
id: long;
accessHash: long;
date: int;
adminId: long;
participantId: long;
gAOrB: bytes;
keyFingerprint: long;
protocol: Api.TypePhoneCallProtocol;
connections: Api.TypePhoneConnection[];
startDate: int;
customParameters?: Api.TypeDataJSON;
conferenceCall?: Api.TypeInputGroupCall;
}> {
// flags: undefined;
p2pAllowed?: true;
video?: true;
id: long;
accessHash: long;
date: int;
adminId: long;
participantId: long;
gAOrB: bytes;
keyFingerprint: long;
protocol: Api.TypePhoneCallProtocol;
connections: Api.TypePhoneConnection[];
startDate: int;
customParameters?: Api.TypeDataJSON;
conferenceCall?: Api.TypeInputGroupCall;
};
export class PhoneCallDiscarded extends VirtualClass<{
// flags: undefined;
needRating?: true;
needDebug?: true;
video?: true;
id: long;
reason?: Api.TypePhoneCallDiscardReason;
duration?: int;
conferenceCall?: Api.TypeInputGroupCall;
}> {
// flags: undefined;
needRating?: true;
needDebug?: true;
video?: true;
id: long;
reason?: Api.TypePhoneCallDiscardReason;
duration?: int;
conferenceCall?: Api.TypeInputGroupCall;
};
export class PhoneConnection extends VirtualClass<{
// flags: undefined;
tcp?: true;
id: long;
ip: string;
ipv6: string;
port: int;
peerTag: bytes;
}> {
// flags: undefined;
tcp?: true;
id: long;
ip: string;
ipv6: string;
port: int;
peerTag: bytes;
};
export class PhoneConnectionWebrtc extends VirtualClass<{
// flags: undefined;
turn?: true;
stun?: true;
id: long;
ip: string;
ipv6: string;
port: int;
username: string;
password: string;
}> {
// flags: undefined;
turn?: true;
stun?: true;
id: long;
ip: string;
ipv6: string;
port: int;
username: string;
password: string;
};
export class PhoneCallProtocol extends VirtualClass<{
// flags: undefined;
udpP2p?: true;
udpReflector?: true;
minLayer: int;
maxLayer: int;
libraryVersions: string[];
}> {
// flags: undefined;
udpP2p?: true;
udpReflector?: true;
minLayer: int;
maxLayer: int;
libraryVersions: string[];
};
export class CdnPublicKey extends VirtualClass<{
dcId: int;
publicKey: string;
}> {
dcId: int;
publicKey: string;
};
export class CdnConfig extends VirtualClass<{
publicKeys: Api.TypeCdnPublicKey[];
}> {
publicKeys: Api.TypeCdnPublicKey[];
};
export class LangPackString extends VirtualClass<{
key: string;
value: string;
}> {
key: string;
value: string;
};
export class LangPackStringPluralized extends VirtualClass<{
// flags: undefined;
key: string;
zeroValue?: string;
oneValue?: string;
twoValue?: string;
fewValue?: string;
manyValue?: string;
otherValue: string;
}> {
// flags: undefined;
key: string;
zeroValue?: string;
oneValue?: string;
twoValue?: string;
fewValue?: string;
manyValue?: string;
otherValue: string;
};
export class LangPackStringDeleted extends VirtualClass<{
key: string;
}> {
key: string;
};
export class LangPackDifference extends VirtualClass<{
langCode: string;
fromVersion: int;
version: int;
strings: Api.TypeLangPackString[];
}> {
langCode: string;
fromVersion: int;
version: int;
strings: Api.TypeLangPackString[];
};
export class LangPackLanguage extends VirtualClass<{
// flags: undefined;
official?: true;
rtl?: true;
beta?: true;
name: string;
nativeName: string;
langCode: string;
baseLangCode?: string;
pluralCode: string;
stringsCount: int;
translatedCount: int;
translationsUrl: string;
}> {
// flags: undefined;
official?: true;
rtl?: true;
beta?: true;
name: string;
nativeName: string;
langCode: string;
baseLangCode?: string;
pluralCode: string;
stringsCount: int;
translatedCount: int;
translationsUrl: string;
};
export class ChannelAdminLogEventActionChangeTitle extends VirtualClass<{
prevValue: string;
newValue: string;
}> {
prevValue: string;
newValue: string;
};
export class ChannelAdminLogEventActionChangeAbout extends VirtualClass<{
prevValue: string;
newValue: string;
}> {
prevValue: string;
newValue: string;
};
export class ChannelAdminLogEventActionChangeUsername extends VirtualClass<{
prevValue: string;
newValue: string;
}> {
prevValue: string;
newValue: string;
};
export class ChannelAdminLogEventActionChangePhoto extends VirtualClass<{
prevPhoto: Api.TypePhoto;
newPhoto: Api.TypePhoto;
}> {
prevPhoto: Api.TypePhoto;
newPhoto: Api.TypePhoto;
};
export class ChannelAdminLogEventActionToggleInvites extends VirtualClass<{
newValue: Bool;
}> {
newValue: Bool;
};
export class ChannelAdminLogEventActionToggleSignatures extends VirtualClass<{
newValue: Bool;
}> {
newValue: Bool;
};
export class ChannelAdminLogEventActionUpdatePinned extends VirtualClass<{
message: Api.TypeMessage;
}> {
message: Api.TypeMessage;
};
export class ChannelAdminLogEventActionEditMessage extends VirtualClass<{
prevMessage: Api.TypeMessage;
newMessage: Api.TypeMessage;
}> {
prevMessage: Api.TypeMessage;
newMessage: Api.TypeMessage;
};
export class ChannelAdminLogEventActionDeleteMessage extends VirtualClass<{
message: Api.TypeMessage;
}> {
message: Api.TypeMessage;
};
export class ChannelAdminLogEventActionParticipantJoin extends VirtualClass<void> {};
export class ChannelAdminLogEventActionParticipantLeave extends VirtualClass<void> {};
export class ChannelAdminLogEventActionParticipantInvite extends VirtualClass<{
participant: Api.TypeChannelParticipant;
}> {
participant: Api.TypeChannelParticipant;
};
export class ChannelAdminLogEventActionParticipantToggleBan extends VirtualClass<{
prevParticipant: Api.TypeChannelParticipant;
newParticipant: Api.TypeChannelParticipant;
}> {
prevParticipant: Api.TypeChannelParticipant;
newParticipant: Api.TypeChannelParticipant;
};
export class ChannelAdminLogEventActionParticipantToggleAdmin extends VirtualClass<{
prevParticipant: Api.TypeChannelParticipant;
newParticipant: Api.TypeChannelParticipant;
}> {
prevParticipant: Api.TypeChannelParticipant;
newParticipant: Api.TypeChannelParticipant;
};
export class ChannelAdminLogEventActionChangeStickerSet extends VirtualClass<{
prevStickerset: Api.TypeInputStickerSet;
newStickerset: Api.TypeInputStickerSet;
}> {
prevStickerset: Api.TypeInputStickerSet;
newStickerset: Api.TypeInputStickerSet;
};
export class ChannelAdminLogEventActionTogglePreHistoryHidden extends VirtualClass<{
newValue: Bool;
}> {
newValue: Bool;
};
export class ChannelAdminLogEventActionDefaultBannedRights extends VirtualClass<{
prevBannedRights: Api.TypeChatBannedRights;
newBannedRights: Api.TypeChatBannedRights;
}> {
prevBannedRights: Api.TypeChatBannedRights;
newBannedRights: Api.TypeChatBannedRights;
};
export class ChannelAdminLogEventActionStopPoll extends VirtualClass<{
message: Api.TypeMessage;
}> {
message: Api.TypeMessage;
};
export class ChannelAdminLogEventActionChangeLinkedChat extends VirtualClass<{
prevValue: long;
newValue: long;
}> {
prevValue: long;
newValue: long;
};
export class ChannelAdminLogEventActionChangeLocation extends VirtualClass<{
prevValue: Api.TypeChannelLocation;
newValue: Api.TypeChannelLocation;
}> {
prevValue: Api.TypeChannelLocation;
newValue: Api.TypeChannelLocation;
};
export class ChannelAdminLogEventActionToggleSlowMode extends VirtualClass<{
prevValue: int;
newValue: int;
}> {
prevValue: int;
newValue: int;
};
export class ChannelAdminLogEventActionStartGroupCall extends VirtualClass<{
call: Api.TypeInputGroupCall;
}> {
call: Api.TypeInputGroupCall;
};
export class ChannelAdminLogEventActionDiscardGroupCall extends VirtualClass<{
call: Api.TypeInputGroupCall;
}> {
call: Api.TypeInputGroupCall;
};
export class ChannelAdminLogEventActionParticipantMute extends VirtualClass<{
participant: Api.TypeGroupCallParticipant;
}> {
participant: Api.TypeGroupCallParticipant;
};
export class ChannelAdminLogEventActionParticipantUnmute extends VirtualClass<{
participant: Api.TypeGroupCallParticipant;
}> {
participant: Api.TypeGroupCallParticipant;
};
export class ChannelAdminLogEventActionToggleGroupCallSetting extends VirtualClass<{
joinMuted: Bool;
}> {
joinMuted: Bool;
};
export class ChannelAdminLogEventActionParticipantJoinByInvite extends VirtualClass<{
// flags: undefined;
viaChatlist?: true;
invite: Api.TypeExportedChatInvite;
}> {
// flags: undefined;
viaChatlist?: true;
invite: Api.TypeExportedChatInvite;
};
export class ChannelAdminLogEventActionExportedInviteDelete extends VirtualClass<{
invite: Api.TypeExportedChatInvite;
}> {
invite: Api.TypeExportedChatInvite;
};
export class ChannelAdminLogEventActionExportedInviteRevoke extends VirtualClass<{
invite: Api.TypeExportedChatInvite;
}> {
invite: Api.TypeExportedChatInvite;
};
export class ChannelAdminLogEventActionExportedInviteEdit extends VirtualClass<{
prevInvite: Api.TypeExportedChatInvite;
newInvite: Api.TypeExportedChatInvite;
}> {
prevInvite: Api.TypeExportedChatInvite;
newInvite: Api.TypeExportedChatInvite;
};
export class ChannelAdminLogEventActionParticipantVolume extends VirtualClass<{
participant: Api.TypeGroupCallParticipant;
}> {
participant: Api.TypeGroupCallParticipant;
};
export class ChannelAdminLogEventActionChangeHistoryTTL extends VirtualClass<{
prevValue: int;
newValue: int;
}> {
prevValue: int;
newValue: int;
};
export class ChannelAdminLogEventActionParticipantJoinByRequest extends VirtualClass<{
invite: Api.TypeExportedChatInvite;
approvedBy: long;
}> {
invite: Api.TypeExportedChatInvite;
approvedBy: long;
};
export class ChannelAdminLogEventActionToggleNoForwards extends VirtualClass<{
newValue: Bool;
}> {
newValue: Bool;
};
export class ChannelAdminLogEventActionSendMessage extends VirtualClass<{
message: Api.TypeMessage;
}> {
message: Api.TypeMessage;
};
export class ChannelAdminLogEventActionChangeAvailableReactions extends VirtualClass<{
prevValue: Api.TypeChatReactions;
newValue: Api.TypeChatReactions;
}> {
prevValue: Api.TypeChatReactions;
newValue: Api.TypeChatReactions;
};
export class ChannelAdminLogEventActionChangeUsernames extends VirtualClass<{
prevValue: string[];
newValue: string[];
}> {
prevValue: string[];
newValue: string[];
};
export class ChannelAdminLogEventActionToggleForum extends VirtualClass<{
newValue: Bool;
}> {
newValue: Bool;
};
export class ChannelAdminLogEventActionCreateTopic extends VirtualClass<{
topic: Api.TypeForumTopic;
}> {
topic: Api.TypeForumTopic;
};
export class ChannelAdminLogEventActionEditTopic extends VirtualClass<{
prevTopic: Api.TypeForumTopic;
newTopic: Api.TypeForumTopic;
}> {
prevTopic: Api.TypeForumTopic;
newTopic: Api.TypeForumTopic;
};
export class ChannelAdminLogEventActionDeleteTopic extends VirtualClass<{
topic: Api.TypeForumTopic;
}> {
topic: Api.TypeForumTopic;
};
export class ChannelAdminLogEventActionPinTopic extends VirtualClass<{
// flags: undefined;
prevTopic?: Api.TypeForumTopic;
newTopic?: Api.TypeForumTopic;
} | void> {
// flags: undefined;
prevTopic?: Api.TypeForumTopic;
newTopic?: Api.TypeForumTopic;
};
export class ChannelAdminLogEventActionToggleAntiSpam extends VirtualClass<{
newValue: Bool;
}> {
newValue: Bool;
};
export class ChannelAdminLogEventActionChangePeerColor extends VirtualClass<{
prevValue: Api.TypePeerColor;
newValue: Api.TypePeerColor;
}> {
prevValue: Api.TypePeerColor;
newValue: Api.TypePeerColor;
};
export class ChannelAdminLogEventActionChangeProfilePeerColor extends VirtualClass<{
prevValue: Api.TypePeerColor;
newValue: Api.TypePeerColor;
}> {
prevValue: Api.TypePeerColor;
newValue: Api.TypePeerColor;
};
export class ChannelAdminLogEventActionChangeWallpaper extends VirtualClass<{
prevValue: Api.TypeWallPaper;
newValue: Api.TypeWallPaper;
}> {
prevValue: Api.TypeWallPaper;
newValue: Api.TypeWallPaper;
};
export class ChannelAdminLogEventActionChangeEmojiStatus extends VirtualClass<{
prevValue: Api.TypeEmojiStatus;
newValue: Api.TypeEmojiStatus;
}> {
prevValue: Api.TypeEmojiStatus;
newValue: Api.TypeEmojiStatus;
};
export class ChannelAdminLogEventActionChangeEmojiStickerSet extends VirtualClass<{
prevStickerset: Api.TypeInputStickerSet;
newStickerset: Api.TypeInputStickerSet;
}> {
prevStickerset: Api.TypeInputStickerSet;
newStickerset: Api.TypeInputStickerSet;
};
export class ChannelAdminLogEventActionToggleSignatureProfiles extends VirtualClass<{
newValue: Bool;
}> {
newValue: Bool;
};
export class ChannelAdminLogEventActionParticipantSubExtend extends VirtualClass<{
prevParticipant: Api.TypeChannelParticipant;
newParticipant: Api.TypeChannelParticipant;
}> {
prevParticipant: Api.TypeChannelParticipant;
newParticipant: Api.TypeChannelParticipant;
};
export class ChannelAdminLogEvent extends VirtualClass<{
id: long;
date: int;
userId: long;
action: Api.TypeChannelAdminLogEventAction;
}> {
id: long;
date: int;
userId: long;
action: Api.TypeChannelAdminLogEventAction;
};
export class ChannelAdminLogEventsFilter extends VirtualClass<{
// flags: undefined;
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;
groupCall?: true;
invites?: true;
send?: true;
forums?: true;
subExtend?: true;
} | void> {
// flags: undefined;
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;
groupCall?: true;
invites?: true;
send?: true;
forums?: true;
subExtend?: true;
};
export class PopularContact extends VirtualClass<{
clientId: long;
importers: int;
}> {
clientId: long;
importers: int;
};
export class RecentMeUrlUnknown extends VirtualClass<{
url: string;
}> {
url: string;
};
export class RecentMeUrlUser extends VirtualClass<{
url: string;
userId: long;
}> {
url: string;
userId: long;
};
export class RecentMeUrlChat extends VirtualClass<{
url: string;
chatId: long;
}> {
url: string;
chatId: long;
};
export class RecentMeUrlChatInvite extends VirtualClass<{
url: string;
chatInvite: Api.TypeChatInvite;
}> {
url: string;
chatInvite: Api.TypeChatInvite;
};
export class RecentMeUrlStickerSet extends VirtualClass<{
url: string;
set: Api.TypeStickerSetCovered;
}> {
url: string;
set: Api.TypeStickerSetCovered;
};
export class InputSingleMedia extends VirtualClass<{
// flags: undefined;
media: Api.TypeInputMedia;
randomId: long;
message: string;
entities?: Api.TypeMessageEntity[];
}> {
// flags: undefined;
media: Api.TypeInputMedia;
randomId: long;
message: string;
entities?: Api.TypeMessageEntity[];
};
export class WebAuthorization extends VirtualClass<{
hash: long;
botId: long;
domain: string;
browser: string;
platform: string;
dateCreated: int;
dateActive: int;
ip: string;
region: string;
}> {
hash: long;
botId: long;
domain: string;
browser: string;
platform: string;
dateCreated: int;
dateActive: int;
ip: string;
region: string;
};
export class InputMessageID extends VirtualClass<{
id: int;
}> {
id: int;
};
export class InputMessageReplyTo extends VirtualClass<{
id: int;
}> {
id: int;
};
export class InputMessagePinned extends VirtualClass<void> {};
export class InputMessageCallbackQuery extends VirtualClass<{
id: int;
queryId: long;
}> {
id: int;
queryId: long;
};
export class InputDialogPeer extends VirtualClass<{
peer: Api.TypeInputPeer;
}> {
peer: Api.TypeInputPeer;
};
export class InputDialogPeerFolder extends VirtualClass<{
folderId: int;
}> {
folderId: int;
};
export class DialogPeer extends VirtualClass<{
peer: Api.TypePeer;
}> {
peer: Api.TypePeer;
};
export class DialogPeerFolder extends VirtualClass<{
folderId: int;
}> {
folderId: int;
};
export class FileHash extends VirtualClass<{
offset: long;
limit: int;
hash: bytes;
}> {
offset: long;
limit: int;
hash: bytes;
};
export class InputClientProxy extends VirtualClass<{
address: string;
port: int;
}> {
address: string;
port: int;
};
export class InputSecureFileUploaded extends VirtualClass<{
id: long;
parts: int;
md5Checksum: string;
fileHash: bytes;
secret: bytes;
}> {
id: long;
parts: int;
md5Checksum: string;
fileHash: bytes;
secret: bytes;
};
export class InputSecureFile extends VirtualClass<{
id: long;
accessHash: long;
}> {
id: long;
accessHash: long;
};
export class SecureFileEmpty extends VirtualClass<void> {};
export class SecureFile extends VirtualClass<{
id: long;
accessHash: long;
size: long;
dcId: int;
date: int;
fileHash: bytes;
secret: bytes;
}> {
id: long;
accessHash: long;
size: long;
dcId: int;
date: int;
fileHash: bytes;
secret: bytes;
};
export class SecureData extends VirtualClass<{
data: bytes;
dataHash: bytes;
secret: bytes;
}> {
data: bytes;
dataHash: bytes;
secret: bytes;
};
export class SecurePlainPhone extends VirtualClass<{
phone: string;
}> {
phone: string;
};
export class SecurePlainEmail extends VirtualClass<{
email: string;
}> {
email: string;
};
export class SecureValueTypePersonalDetails extends VirtualClass<void> {};
export class SecureValueTypePassport extends VirtualClass<void> {};
export class SecureValueTypeDriverLicense extends VirtualClass<void> {};
export class SecureValueTypeIdentityCard extends VirtualClass<void> {};
export class SecureValueTypeInternalPassport extends VirtualClass<void> {};
export class SecureValueTypeAddress extends VirtualClass<void> {};
export class SecureValueTypeUtilityBill extends VirtualClass<void> {};
export class SecureValueTypeBankStatement extends VirtualClass<void> {};
export class SecureValueTypeRentalAgreement extends VirtualClass<void> {};
export class SecureValueTypePassportRegistration extends VirtualClass<void> {};
export class SecureValueTypeTemporaryRegistration extends VirtualClass<void> {};
export class SecureValueTypePhone extends VirtualClass<void> {};
export class SecureValueTypeEmail extends VirtualClass<void> {};
export class SecureValue extends VirtualClass<{
// flags: undefined;
type: Api.TypeSecureValueType;
data?: Api.TypeSecureData;
frontSide?: Api.TypeSecureFile;
reverseSide?: Api.TypeSecureFile;
selfie?: Api.TypeSecureFile;
translation?: Api.TypeSecureFile[];
files?: Api.TypeSecureFile[];
plainData?: Api.TypeSecurePlainData;
hash: bytes;
}> {
// flags: undefined;
type: Api.TypeSecureValueType;
data?: Api.TypeSecureData;
frontSide?: Api.TypeSecureFile;
reverseSide?: Api.TypeSecureFile;
selfie?: Api.TypeSecureFile;
translation?: Api.TypeSecureFile[];
files?: Api.TypeSecureFile[];
plainData?: Api.TypeSecurePlainData;
hash: bytes;
};
export class InputSecureValue extends VirtualClass<{
// flags: undefined;
type: Api.TypeSecureValueType;
data?: Api.TypeSecureData;
frontSide?: Api.TypeInputSecureFile;
reverseSide?: Api.TypeInputSecureFile;
selfie?: Api.TypeInputSecureFile;
translation?: Api.TypeInputSecureFile[];
files?: Api.TypeInputSecureFile[];
plainData?: Api.TypeSecurePlainData;
}> {
// flags: undefined;
type: Api.TypeSecureValueType;
data?: Api.TypeSecureData;
frontSide?: Api.TypeInputSecureFile;
reverseSide?: Api.TypeInputSecureFile;
selfie?: Api.TypeInputSecureFile;
translation?: Api.TypeInputSecureFile[];
files?: Api.TypeInputSecureFile[];
plainData?: Api.TypeSecurePlainData;
};
export class SecureValueHash extends VirtualClass<{
type: Api.TypeSecureValueType;
hash: bytes;
}> {
type: Api.TypeSecureValueType;
hash: bytes;
};
export class SecureValueErrorData extends VirtualClass<{
type: Api.TypeSecureValueType;
dataHash: bytes;
field: string;
text: string;
}> {
type: Api.TypeSecureValueType;
dataHash: bytes;
field: string;
text: string;
};
export class SecureValueErrorFrontSide extends VirtualClass<{
type: Api.TypeSecureValueType;
fileHash: bytes;
text: string;
}> {
type: Api.TypeSecureValueType;
fileHash: bytes;
text: string;
};
export class SecureValueErrorReverseSide extends VirtualClass<{
type: Api.TypeSecureValueType;
fileHash: bytes;
text: string;
}> {
type: Api.TypeSecureValueType;
fileHash: bytes;
text: string;
};
export class SecureValueErrorSelfie extends VirtualClass<{
type: Api.TypeSecureValueType;
fileHash: bytes;
text: string;
}> {
type: Api.TypeSecureValueType;
fileHash: bytes;
text: string;
};
export class SecureValueErrorFile extends VirtualClass<{
type: Api.TypeSecureValueType;
fileHash: bytes;
text: string;
}> {
type: Api.TypeSecureValueType;
fileHash: bytes;
text: string;
};
export class SecureValueErrorFiles extends VirtualClass<{
type: Api.TypeSecureValueType;
fileHash: bytes[];
text: string;
}> {
type: Api.TypeSecureValueType;
fileHash: bytes[];
text: string;
};
export class SecureValueError extends VirtualClass<{
type: Api.TypeSecureValueType;
hash: bytes;
text: string;
}> {
type: Api.TypeSecureValueType;
hash: bytes;
text: string;
};
export class SecureValueErrorTranslationFile extends VirtualClass<{
type: Api.TypeSecureValueType;
fileHash: bytes;
text: string;
}> {
type: Api.TypeSecureValueType;
fileHash: bytes;
text: string;
};
export class SecureValueErrorTranslationFiles extends VirtualClass<{
type: Api.TypeSecureValueType;
fileHash: bytes[];
text: string;
}> {
type: Api.TypeSecureValueType;
fileHash: bytes[];
text: string;
};
export class SecureCredentialsEncrypted extends VirtualClass<{
data: bytes;
hash: bytes;
secret: bytes;
}> {
data: bytes;
hash: bytes;
secret: bytes;
};
export class SavedPhoneContact extends VirtualClass<{
phone: string;
firstName: string;
lastName: string;
date: int;
}> {
phone: string;
firstName: string;
lastName: string;
date: int;
};
export class PasswordKdfAlgoUnknown extends VirtualClass<void> {};
export class PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow extends VirtualClass<{
salt1: bytes;
salt2: bytes;
g: int;
p: bytes;
}> {
salt1: bytes;
salt2: bytes;
g: int;
p: bytes;
};
export class SecurePasswordKdfAlgoUnknown extends VirtualClass<void> {};
export class SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 extends VirtualClass<{
salt: bytes;
}> {
salt: bytes;
};
export class SecurePasswordKdfAlgoSHA512 extends VirtualClass<{
salt: bytes;
}> {
salt: bytes;
};
export class SecureSecretSettings extends VirtualClass<{
secureAlgo: Api.TypeSecurePasswordKdfAlgo;
secureSecret: bytes;
secureSecretId: long;
}> {
secureAlgo: Api.TypeSecurePasswordKdfAlgo;
secureSecret: bytes;
secureSecretId: long;
};
export class InputCheckPasswordEmpty extends VirtualClass<void> {};
export class InputCheckPasswordSRP extends VirtualClass<{
srpId: long;
A: bytes;
M1: bytes;
}> {
srpId: long;
A: bytes;
M1: bytes;
};
export class SecureRequiredType extends VirtualClass<{
// flags: undefined;
nativeNames?: true;
selfieRequired?: true;
translationRequired?: true;
type: Api.TypeSecureValueType;
}> {
// flags: undefined;
nativeNames?: true;
selfieRequired?: true;
translationRequired?: true;
type: Api.TypeSecureValueType;
};
export class SecureRequiredTypeOneOf extends VirtualClass<{
types: Api.TypeSecureRequiredType[];
}> {
types: Api.TypeSecureRequiredType[];
};
export class InputAppEvent extends VirtualClass<{
time: double;
type: string;
peer: long;
data: Api.TypeJSONValue;
}> {
time: double;
type: string;
peer: long;
data: Api.TypeJSONValue;
};
export class JsonObjectValue extends VirtualClass<{
key: string;
value: Api.TypeJSONValue;
}> {
key: string;
value: Api.TypeJSONValue;
};
export class JsonNull extends VirtualClass<void> {};
export class JsonBool extends VirtualClass<{
value: Bool;
}> {
value: Bool;
};
export class JsonNumber extends VirtualClass<{
value: double;
}> {
value: double;
};
export class JsonString extends VirtualClass<{
value: string;
}> {
value: string;
};
export class JsonArray extends VirtualClass<{
value: Api.TypeJSONValue[];
}> {
value: Api.TypeJSONValue[];
};
export class JsonObject extends VirtualClass<{
value: Api.TypeJSONObjectValue[];
}> {
value: Api.TypeJSONObjectValue[];
};
export class PageTableCell extends VirtualClass<{
// flags: undefined;
header?: true;
alignCenter?: true;
alignRight?: true;
valignMiddle?: true;
valignBottom?: true;
text?: Api.TypeRichText;
colspan?: int;
rowspan?: int;
} | void> {
// flags: undefined;
header?: true;
alignCenter?: true;
alignRight?: true;
valignMiddle?: true;
valignBottom?: true;
text?: Api.TypeRichText;
colspan?: int;
rowspan?: int;
};
export class PageTableRow extends VirtualClass<{
cells: Api.TypePageTableCell[];
}> {
cells: Api.TypePageTableCell[];
};
export class PageCaption extends VirtualClass<{
text: Api.TypeRichText;
credit: Api.TypeRichText;
}> {
text: Api.TypeRichText;
credit: Api.TypeRichText;
};
export class PageListItemText extends VirtualClass<{
text: Api.TypeRichText;
}> {
text: Api.TypeRichText;
};
export class PageListItemBlocks extends VirtualClass<{
blocks: Api.TypePageBlock[];
}> {
blocks: Api.TypePageBlock[];
};
export class PageListOrderedItemText extends VirtualClass<{
num: string;
text: Api.TypeRichText;
}> {
num: string;
text: Api.TypeRichText;
};
export class PageListOrderedItemBlocks extends VirtualClass<{
num: string;
blocks: Api.TypePageBlock[];
}> {
num: string;
blocks: Api.TypePageBlock[];
};
export class PageRelatedArticle extends VirtualClass<{
// flags: undefined;
url: string;
webpageId: long;
title?: string;
description?: string;
photoId?: long;
author?: string;
publishedDate?: int;
}> {
// flags: undefined;
url: string;
webpageId: long;
title?: string;
description?: string;
photoId?: long;
author?: string;
publishedDate?: int;
};
export class Page extends VirtualClass<{
// flags: undefined;
part?: true;
rtl?: true;
v2?: true;
url: string;
blocks: Api.TypePageBlock[];
photos: Api.TypePhoto[];
documents: Api.TypeDocument[];
views?: int;
}> {
// flags: undefined;
part?: true;
rtl?: true;
v2?: true;
url: string;
blocks: Api.TypePageBlock[];
photos: Api.TypePhoto[];
documents: Api.TypeDocument[];
views?: int;
};
export class PollAnswer extends VirtualClass<{
text: Api.TypeTextWithEntities;
option: bytes;
}> {
text: Api.TypeTextWithEntities;
option: bytes;
};
export class Poll extends VirtualClass<{
id: long;
// flags: undefined;
closed?: true;
publicVoters?: true;
multipleChoice?: true;
quiz?: true;
question: Api.TypeTextWithEntities;
answers: Api.TypePollAnswer[];
closePeriod?: int;
closeDate?: int;
}> {
id: long;
// flags: undefined;
closed?: true;
publicVoters?: true;
multipleChoice?: true;
quiz?: true;
question: Api.TypeTextWithEntities;
answers: Api.TypePollAnswer[];
closePeriod?: int;
closeDate?: int;
};
export class PollAnswerVoters extends VirtualClass<{
// flags: undefined;
chosen?: true;
correct?: true;
option: bytes;
voters: int;
}> {
// flags: undefined;
chosen?: true;
correct?: true;
option: bytes;
voters: int;
};
export class PollResults extends VirtualClass<{
// flags: undefined;
min?: true;
results?: Api.TypePollAnswerVoters[];
totalVoters?: int;
recentVoters?: Api.TypePeer[];
solution?: string;
solutionEntities?: Api.TypeMessageEntity[];
} | void> {
// flags: undefined;
min?: true;
results?: Api.TypePollAnswerVoters[];
totalVoters?: int;
recentVoters?: Api.TypePeer[];
solution?: string;
solutionEntities?: Api.TypeMessageEntity[];
};
export class ChatOnlines extends VirtualClass<{
onlines: int;
}> {
onlines: int;
};
export class StatsURL extends VirtualClass<{
url: string;
}> {
url: string;
};
export class ChatAdminRights extends VirtualClass<{
// flags: undefined;
changeInfo?: true;
postMessages?: true;
editMessages?: true;
deleteMessages?: true;
banUsers?: true;
inviteUsers?: true;
pinMessages?: true;
addAdmins?: true;
anonymous?: true;
manageCall?: true;
other?: true;
manageTopics?: true;
postStories?: true;
editStories?: true;
deleteStories?: true;
} | void> {
// flags: undefined;
changeInfo?: true;
postMessages?: true;
editMessages?: true;
deleteMessages?: true;
banUsers?: true;
inviteUsers?: true;
pinMessages?: true;
addAdmins?: true;
anonymous?: true;
manageCall?: true;
other?: true;
manageTopics?: true;
postStories?: true;
editStories?: true;
deleteStories?: true;
};
export class ChatBannedRights extends VirtualClass<{
// flags: undefined;
viewMessages?: true;
sendMessages?: true;
sendMedia?: true;
sendStickers?: true;
sendGifs?: true;
sendGames?: true;
sendInline?: true;
embedLinks?: true;
sendPolls?: true;
changeInfo?: true;
inviteUsers?: true;
pinMessages?: true;
manageTopics?: true;
sendPhotos?: true;
sendVideos?: true;
sendRoundvideos?: true;
sendAudios?: true;
sendVoices?: true;
sendDocs?: true;
sendPlain?: true;
untilDate: int;
}> {
// flags: undefined;
viewMessages?: true;
sendMessages?: true;
sendMedia?: true;
sendStickers?: true;
sendGifs?: true;
sendGames?: true;
sendInline?: true;
embedLinks?: true;
sendPolls?: true;
changeInfo?: true;
inviteUsers?: true;
pinMessages?: true;
manageTopics?: true;
sendPhotos?: true;
sendVideos?: true;
sendRoundvideos?: true;
sendAudios?: true;
sendVoices?: true;
sendDocs?: true;
sendPlain?: true;
untilDate: int;
};
export class InputWallPaper extends VirtualClass<{
id: long;
accessHash: long;
}> {
id: long;
accessHash: long;
};
export class InputWallPaperSlug extends VirtualClass<{
slug: string;
}> {
slug: string;
};
export class InputWallPaperNoFile extends VirtualClass<{
id: long;
}> {
id: long;
};
export class CodeSettings extends VirtualClass<{
// flags: undefined;
allowFlashcall?: true;
currentNumber?: true;
allowAppHash?: true;
allowMissedCall?: true;
allowFirebase?: true;
unknownNumber?: true;
logoutTokens?: bytes[];
token?: string;
appSandbox?: Bool;
} | void> {
// flags: undefined;
allowFlashcall?: true;
currentNumber?: true;
allowAppHash?: true;
allowMissedCall?: true;
allowFirebase?: true;
unknownNumber?: true;
logoutTokens?: bytes[];
token?: string;
appSandbox?: Bool;
};
export class WallPaperSettings extends VirtualClass<{
// flags: undefined;
blur?: true;
motion?: true;
backgroundColor?: int;
secondBackgroundColor?: int;
thirdBackgroundColor?: int;
fourthBackgroundColor?: int;
intensity?: int;
rotation?: int;
emoticon?: string;
} | void> {
// flags: undefined;
blur?: true;
motion?: true;
backgroundColor?: int;
secondBackgroundColor?: int;
thirdBackgroundColor?: int;
fourthBackgroundColor?: int;
intensity?: int;
rotation?: int;
emoticon?: string;
};
export class AutoDownloadSettings extends VirtualClass<{
// flags: undefined;
disabled?: true;
videoPreloadLarge?: true;
audioPreloadNext?: true;
phonecallsLessData?: true;
storiesPreload?: true;
photoSizeMax: int;
videoSizeMax: long;
fileSizeMax: long;
videoUploadMaxbitrate: int;
smallQueueActiveOperationsMax: int;
largeQueueActiveOperationsMax: int;
}> {
// flags: undefined;
disabled?: true;
videoPreloadLarge?: true;
audioPreloadNext?: true;
phonecallsLessData?: true;
storiesPreload?: true;
photoSizeMax: int;
videoSizeMax: long;
fileSizeMax: long;
videoUploadMaxbitrate: int;
smallQueueActiveOperationsMax: int;
largeQueueActiveOperationsMax: int;
};
export class EmojiKeyword extends VirtualClass<{
keyword: string;
emoticons: string[];
}> {
keyword: string;
emoticons: string[];
};
export class EmojiKeywordDeleted extends VirtualClass<{
keyword: string;
emoticons: string[];
}> {
keyword: string;
emoticons: string[];
};
export class EmojiKeywordsDifference extends VirtualClass<{
langCode: string;
fromVersion: int;
version: int;
keywords: Api.TypeEmojiKeyword[];
}> {
langCode: string;
fromVersion: int;
version: int;
keywords: Api.TypeEmojiKeyword[];
};
export class EmojiURL extends VirtualClass<{
url: string;
}> {
url: string;
};
export class EmojiLanguage extends VirtualClass<{
langCode: string;
}> {
langCode: string;
};
export class Folder extends VirtualClass<{
// flags: undefined;
autofillNewBroadcasts?: true;
autofillPublicGroups?: true;
autofillNewCorrespondents?: true;
id: int;
title: string;
photo?: Api.TypeChatPhoto;
}> {
// flags: undefined;
autofillNewBroadcasts?: true;
autofillPublicGroups?: true;
autofillNewCorrespondents?: true;
id: int;
title: string;
photo?: Api.TypeChatPhoto;
};
export class InputFolderPeer extends VirtualClass<{
peer: Api.TypeInputPeer;
folderId: int;
}> {
peer: Api.TypeInputPeer;
folderId: int;
};
export class FolderPeer extends VirtualClass<{
peer: Api.TypePeer;
folderId: int;
}> {
peer: Api.TypePeer;
folderId: int;
};
export class UrlAuthResultRequest extends VirtualClass<{
// flags: undefined;
requestWriteAccess?: true;
bot: Api.TypeUser;
domain: string;
}> {
// flags: undefined;
requestWriteAccess?: true;
bot: Api.TypeUser;
domain: string;
};
export class UrlAuthResultAccepted extends VirtualClass<{
url: string;
}> {
url: string;
};
export class UrlAuthResultDefault extends VirtualClass<void> {};
export class ChannelLocationEmpty extends VirtualClass<void> {};
export class ChannelLocation extends VirtualClass<{
geoPoint: Api.TypeGeoPoint;
address: string;
}> {
geoPoint: Api.TypeGeoPoint;
address: string;
};
export class PeerLocated extends VirtualClass<{
peer: Api.TypePeer;
expires: int;
distance: int;
}> {
peer: Api.TypePeer;
expires: int;
distance: int;
};
export class PeerSelfLocated extends VirtualClass<{
expires: int;
}> {
expires: int;
};
export class RestrictionReason extends VirtualClass<{
platform: string;
reason: string;
text: string;
}> {
platform: string;
reason: string;
text: string;
};
export class InputTheme extends VirtualClass<{
id: long;
accessHash: long;
}> {
id: long;
accessHash: long;
};
export class InputThemeSlug extends VirtualClass<{
slug: string;
}> {
slug: string;
};
export class Theme extends VirtualClass<{
// flags: undefined;
creator?: true;
default?: true;
forChat?: true;
id: long;
accessHash: long;
slug: string;
title: string;
document?: Api.TypeDocument;
settings?: Api.TypeThemeSettings[];
emoticon?: string;
installsCount?: int;
}> {
// flags: undefined;
creator?: true;
default?: true;
forChat?: true;
id: long;
accessHash: long;
slug: string;
title: string;
document?: Api.TypeDocument;
settings?: Api.TypeThemeSettings[];
emoticon?: string;
installsCount?: int;
};
export class BaseThemeClassic extends VirtualClass<void> {};
export class BaseThemeDay extends VirtualClass<void> {};
export class BaseThemeNight extends VirtualClass<void> {};
export class BaseThemeTinted extends VirtualClass<void> {};
export class BaseThemeArctic extends VirtualClass<void> {};
export class InputThemeSettings extends VirtualClass<{
// flags: undefined;
messageColorsAnimated?: true;
baseTheme: Api.TypeBaseTheme;
accentColor: int;
outboxAccentColor?: int;
messageColors?: int[];
wallpaper?: Api.TypeInputWallPaper;
wallpaperSettings?: Api.TypeWallPaperSettings;
}> {
// flags: undefined;
messageColorsAnimated?: true;
baseTheme: Api.TypeBaseTheme;
accentColor: int;
outboxAccentColor?: int;
messageColors?: int[];
wallpaper?: Api.TypeInputWallPaper;
wallpaperSettings?: Api.TypeWallPaperSettings;
};
export class ThemeSettings extends VirtualClass<{
// flags: undefined;
messageColorsAnimated?: true;
baseTheme: Api.TypeBaseTheme;
accentColor: int;
outboxAccentColor?: int;
messageColors?: int[];
wallpaper?: Api.TypeWallPaper;
}> {
// flags: undefined;
messageColorsAnimated?: true;
baseTheme: Api.TypeBaseTheme;
accentColor: int;
outboxAccentColor?: int;
messageColors?: int[];
wallpaper?: Api.TypeWallPaper;
};
export class WebPageAttributeTheme extends VirtualClass<{
// flags: undefined;
documents?: Api.TypeDocument[];
settings?: Api.TypeThemeSettings;
} | void> {
// flags: undefined;
documents?: Api.TypeDocument[];
settings?: Api.TypeThemeSettings;
};
export class WebPageAttributeStory extends VirtualClass<{
// flags: undefined;
peer: Api.TypePeer;
id: int;
story?: Api.TypeStoryItem;
}> {
// flags: undefined;
peer: Api.TypePeer;
id: int;
story?: Api.TypeStoryItem;
};
export class WebPageAttributeStickerSet extends VirtualClass<{
// flags: undefined;
emojis?: true;
textColor?: true;
stickers: Api.TypeDocument[];
}> {
// flags: undefined;
emojis?: true;
textColor?: true;
stickers: Api.TypeDocument[];
};
export class BankCardOpenUrl extends VirtualClass<{
url: string;
name: string;
}> {
url: string;
name: string;
};
export class DialogFilter extends VirtualClass<{
// flags: undefined;
contacts?: true;
nonContacts?: true;
groups?: true;
broadcasts?: true;
bots?: true;
excludeMuted?: true;
excludeRead?: true;
excludeArchived?: true;
titleNoanimate?: true;
id: int;
title: Api.TypeTextWithEntities;
emoticon?: string;
color?: int;
pinnedPeers: Api.TypeInputPeer[];
includePeers: Api.TypeInputPeer[];
excludePeers: Api.TypeInputPeer[];
}> {
// flags: undefined;
contacts?: true;
nonContacts?: true;
groups?: true;
broadcasts?: true;
bots?: true;
excludeMuted?: true;
excludeRead?: true;
excludeArchived?: true;
titleNoanimate?: true;
id: int;
title: Api.TypeTextWithEntities;
emoticon?: string;
color?: int;
pinnedPeers: Api.TypeInputPeer[];
includePeers: Api.TypeInputPeer[];
excludePeers: Api.TypeInputPeer[];
};
export class DialogFilterDefault extends VirtualClass<void> {};
export class DialogFilterChatlist extends VirtualClass<{
// flags: undefined;
hasMyInvites?: true;
titleNoanimate?: true;
id: int;
title: Api.TypeTextWithEntities;
emoticon?: string;
color?: int;
pinnedPeers: Api.TypeInputPeer[];
includePeers: Api.TypeInputPeer[];
}> {
// flags: undefined;
hasMyInvites?: true;
titleNoanimate?: true;
id: int;
title: Api.TypeTextWithEntities;
emoticon?: string;
color?: int;
pinnedPeers: Api.TypeInputPeer[];
includePeers: Api.TypeInputPeer[];
};
export class DialogFilterSuggested extends VirtualClass<{
filter: Api.TypeDialogFilter;
description: string;
}> {
filter: Api.TypeDialogFilter;
description: string;
};
export class StatsDateRangeDays extends VirtualClass<{
minDate: int;
maxDate: int;
}> {
minDate: int;
maxDate: int;
};
export class StatsAbsValueAndPrev extends VirtualClass<{
current: double;
previous: double;
}> {
current: double;
previous: double;
};
export class StatsPercentValue extends VirtualClass<{
part: double;
total: double;
}> {
part: double;
total: double;
};
export class StatsGraphAsync extends VirtualClass<{
token: string;
}> {
token: string;
};
export class StatsGraphError extends VirtualClass<{
error: string;
}> {
error: string;
};
export class StatsGraph extends VirtualClass<{
// flags: undefined;
json: Api.TypeDataJSON;
zoomToken?: string;
}> {
// flags: undefined;
json: Api.TypeDataJSON;
zoomToken?: string;
};
export class VideoSize extends VirtualClass<{
// flags: undefined;
type: string;
w: int;
h: int;
size: int;
videoStartTs?: double;
}> {
// flags: undefined;
type: string;
w: int;
h: int;
size: int;
videoStartTs?: double;
};
export class VideoSizeEmojiMarkup extends VirtualClass<{
emojiId: long;
backgroundColors: int[];
}> {
emojiId: long;
backgroundColors: int[];
};
export class VideoSizeStickerMarkup extends VirtualClass<{
stickerset: Api.TypeInputStickerSet;
stickerId: long;
backgroundColors: int[];
}> {
stickerset: Api.TypeInputStickerSet;
stickerId: long;
backgroundColors: int[];
};
export class StatsGroupTopPoster extends VirtualClass<{
userId: long;
messages: int;
avgChars: int;
}> {
userId: long;
messages: int;
avgChars: int;
};
export class StatsGroupTopAdmin extends VirtualClass<{
userId: long;
deleted: int;
kicked: int;
banned: int;
}> {
userId: long;
deleted: int;
kicked: int;
banned: int;
};
export class StatsGroupTopInviter extends VirtualClass<{
userId: long;
invitations: int;
}> {
userId: long;
invitations: int;
};
export class GlobalPrivacySettings extends VirtualClass<{
// flags: undefined;
archiveAndMuteNewNoncontactPeers?: true;
keepArchivedUnmuted?: true;
keepArchivedFolders?: true;
hideReadMarks?: true;
newNoncontactPeersRequirePremium?: true;
} | void> {
// flags: undefined;
archiveAndMuteNewNoncontactPeers?: true;
keepArchivedUnmuted?: true;
keepArchivedFolders?: true;
hideReadMarks?: true;
newNoncontactPeersRequirePremium?: true;
};
export class MessageViews extends VirtualClass<{
// flags: undefined;
views?: int;
forwards?: int;
replies?: Api.TypeMessageReplies;
} | void> {
// flags: undefined;
views?: int;
forwards?: int;
replies?: Api.TypeMessageReplies;
};
export class MessageReplyHeader extends VirtualClass<{
// flags: undefined;
replyToScheduled?: true;
forumTopic?: true;
quote?: true;
replyToMsgId?: int;
replyToPeerId?: Api.TypePeer;
replyFrom?: Api.TypeMessageFwdHeader;
replyMedia?: Api.TypeMessageMedia;
replyToTopId?: int;
quoteText?: string;
quoteEntities?: Api.TypeMessageEntity[];
quoteOffset?: int;
} | void> {
// flags: undefined;
replyToScheduled?: true;
forumTopic?: true;
quote?: true;
replyToMsgId?: int;
replyToPeerId?: Api.TypePeer;
replyFrom?: Api.TypeMessageFwdHeader;
replyMedia?: Api.TypeMessageMedia;
replyToTopId?: int;
quoteText?: string;
quoteEntities?: Api.TypeMessageEntity[];
quoteOffset?: int;
};
export class MessageReplyStoryHeader extends VirtualClass<{
peer: Api.TypePeer;
storyId: int;
}> {
peer: Api.TypePeer;
storyId: int;
};
export class MessageReplies extends VirtualClass<{
// flags: undefined;
comments?: true;
replies: int;
repliesPts: int;
recentRepliers?: Api.TypePeer[];
channelId?: long;
maxId?: int;
readMaxId?: int;
}> {
// flags: undefined;
comments?: true;
replies: int;
repliesPts: int;
recentRepliers?: Api.TypePeer[];
channelId?: long;
maxId?: int;
readMaxId?: int;
};
export class PeerBlocked extends VirtualClass<{
peerId: Api.TypePeer;
date: int;
}> {
peerId: Api.TypePeer;
date: int;
};
export class GroupCallDiscarded extends VirtualClass<{
id: long;
accessHash: long;
duration: int;
}> {
id: long;
accessHash: long;
duration: int;
};
export class GroupCall extends VirtualClass<{
// flags: undefined;
joinMuted?: true;
canChangeJoinMuted?: true;
joinDateAsc?: true;
scheduleStartSubscribed?: true;
canStartVideo?: true;
recordVideoActive?: true;
rtmpStream?: true;
listenersHidden?: true;
id: long;
accessHash: long;
participantsCount: int;
title?: string;
streamDcId?: int;
recordStartDate?: int;
scheduleDate?: int;
unmutedVideoCount?: int;
unmutedVideoLimit: int;
version: int;
conferenceFromCall?: long;
}> {
// flags: undefined;
joinMuted?: true;
canChangeJoinMuted?: true;
joinDateAsc?: true;
scheduleStartSubscribed?: true;
canStartVideo?: true;
recordVideoActive?: true;
rtmpStream?: true;
listenersHidden?: true;
id: long;
accessHash: long;
participantsCount: int;
title?: string;
streamDcId?: int;
recordStartDate?: int;
scheduleDate?: int;
unmutedVideoCount?: int;
unmutedVideoLimit: int;
version: int;
conferenceFromCall?: long;
};
export class InputGroupCall extends VirtualClass<{
id: long;
accessHash: long;
}> {
id: long;
accessHash: long;
};
export class GroupCallParticipant extends VirtualClass<{
// flags: undefined;
muted?: true;
left?: true;
canSelfUnmute?: true;
justJoined?: true;
versioned?: true;
min?: true;
mutedByYou?: true;
volumeByAdmin?: true;
self?: true;
videoJoined?: true;
peer: Api.TypePeer;
date: int;
activeDate?: int;
source: int;
volume?: int;
about?: string;
raiseHandRating?: long;
video?: Api.TypeGroupCallParticipantVideo;
presentation?: Api.TypeGroupCallParticipantVideo;
}> {
// flags: undefined;
muted?: true;
left?: true;
canSelfUnmute?: true;
justJoined?: true;
versioned?: true;
min?: true;
mutedByYou?: true;
volumeByAdmin?: true;
self?: true;
videoJoined?: true;
peer: Api.TypePeer;
date: int;
activeDate?: int;
source: int;
volume?: int;
about?: string;
raiseHandRating?: long;
video?: Api.TypeGroupCallParticipantVideo;
presentation?: Api.TypeGroupCallParticipantVideo;
};
export class InlineQueryPeerTypeSameBotPM extends VirtualClass<void> {};
export class InlineQueryPeerTypePM extends VirtualClass<void> {};
export class InlineQueryPeerTypeChat extends VirtualClass<void> {};
export class InlineQueryPeerTypeMegagroup extends VirtualClass<void> {};
export class InlineQueryPeerTypeBroadcast extends VirtualClass<void> {};
export class InlineQueryPeerTypeBotPM extends VirtualClass<void> {};
export class ChatInviteImporter extends VirtualClass<{
// flags: undefined;
requested?: true;
viaChatlist?: true;
userId: long;
date: int;
about?: string;
approvedBy?: long;
}> {
// flags: undefined;
requested?: true;
viaChatlist?: true;
userId: long;
date: int;
about?: string;
approvedBy?: long;
};
export class ChatAdminWithInvites extends VirtualClass<{
adminId: long;
invitesCount: int;
revokedInvitesCount: int;
}> {
adminId: long;
invitesCount: int;
revokedInvitesCount: int;
};
export class GroupCallParticipantVideoSourceGroup extends VirtualClass<{
semantics: string;
sources: int[];
}> {
semantics: string;
sources: int[];
};
export class GroupCallParticipantVideo extends VirtualClass<{
// flags: undefined;
paused?: true;
endpoint: string;
sourceGroups: Api.TypeGroupCallParticipantVideoSourceGroup[];
audioSource?: int;
}> {
// flags: undefined;
paused?: true;
endpoint: string;
sourceGroups: Api.TypeGroupCallParticipantVideoSourceGroup[];
audioSource?: int;
};
export class BotCommandScopeDefault extends VirtualClass<void> {};
export class BotCommandScopeUsers extends VirtualClass<void> {};
export class BotCommandScopeChats extends VirtualClass<void> {};
export class BotCommandScopeChatAdmins extends VirtualClass<void> {};
export class BotCommandScopePeer extends VirtualClass<{
peer: Api.TypeInputPeer;
}> {
peer: Api.TypeInputPeer;
};
export class BotCommandScopePeerAdmins extends VirtualClass<{
peer: Api.TypeInputPeer;
}> {
peer: Api.TypeInputPeer;
};
export class BotCommandScopePeerUser extends VirtualClass<{
peer: Api.TypeInputPeer;
userId: Api.TypeInputUser;
}> {
peer: Api.TypeInputPeer;
userId: Api.TypeInputUser;
};
export class SponsoredMessage extends VirtualClass<{
// flags: undefined;
recommended?: true;
canReport?: true;
randomId: bytes;
url: string;
title: string;
message: string;
entities?: Api.TypeMessageEntity[];
photo?: Api.TypePhoto;
media?: Api.TypeMessageMedia;
color?: Api.TypePeerColor;
buttonText: string;
sponsorInfo?: string;
additionalInfo?: string;
}> {
// flags: undefined;
recommended?: true;
canReport?: true;
randomId: bytes;
url: string;
title: string;
message: string;
entities?: Api.TypeMessageEntity[];
photo?: Api.TypePhoto;
media?: Api.TypeMessageMedia;
color?: Api.TypePeerColor;
buttonText: string;
sponsorInfo?: string;
additionalInfo?: string;
};
export class SearchResultsCalendarPeriod extends VirtualClass<{
date: int;
minMsgId: int;
maxMsgId: int;
count: int;
}> {
date: int;
minMsgId: int;
maxMsgId: int;
count: int;
};
export class SearchResultPosition extends VirtualClass<{
msgId: int;
date: int;
offset: int;
}> {
msgId: int;
date: int;
offset: int;
};
export class ReactionCount extends VirtualClass<{
// flags: undefined;
chosenOrder?: int;
reaction: Api.TypeReaction;
count: int;
}> {
// flags: undefined;
chosenOrder?: int;
reaction: Api.TypeReaction;
count: int;
};
export class MessageReactions extends VirtualClass<{
// flags: undefined;
min?: true;
canSeeList?: true;
reactionsAsTags?: true;
results: Api.TypeReactionCount[];
recentReactions?: Api.TypeMessagePeerReaction[];
topReactors?: Api.TypeMessageReactor[];
}> {
// flags: undefined;
min?: true;
canSeeList?: true;
reactionsAsTags?: true;
results: Api.TypeReactionCount[];
recentReactions?: Api.TypeMessagePeerReaction[];
topReactors?: Api.TypeMessageReactor[];
};
export class AvailableReaction extends VirtualClass<{
// flags: undefined;
inactive?: true;
premium?: true;
reaction: string;
title: string;
staticIcon: Api.TypeDocument;
appearAnimation: Api.TypeDocument;
selectAnimation: Api.TypeDocument;
activateAnimation: Api.TypeDocument;
effectAnimation: Api.TypeDocument;
aroundAnimation?: Api.TypeDocument;
centerIcon?: Api.TypeDocument;
}> {
// flags: undefined;
inactive?: true;
premium?: true;
reaction: string;
title: string;
staticIcon: Api.TypeDocument;
appearAnimation: Api.TypeDocument;
selectAnimation: Api.TypeDocument;
activateAnimation: Api.TypeDocument;
effectAnimation: Api.TypeDocument;
aroundAnimation?: Api.TypeDocument;
centerIcon?: Api.TypeDocument;
};
export class MessagePeerReaction extends VirtualClass<{
// flags: undefined;
big?: true;
unread?: true;
my?: true;
peerId: Api.TypePeer;
date: int;
reaction: Api.TypeReaction;
}> {
// flags: undefined;
big?: true;
unread?: true;
my?: true;
peerId: Api.TypePeer;
date: int;
reaction: Api.TypeReaction;
};
export class GroupCallStreamChannel extends VirtualClass<{
channel: int;
scale: int;
lastTimestampMs: long;
}> {
channel: int;
scale: int;
lastTimestampMs: long;
};
export class AttachMenuBotIconColor extends VirtualClass<{
name: string;
color: int;
}> {
name: string;
color: int;
};
export class AttachMenuBotIcon extends VirtualClass<{
// flags: undefined;
name: string;
icon: Api.TypeDocument;
colors?: Api.TypeAttachMenuBotIconColor[];
}> {
// flags: undefined;
name: string;
icon: Api.TypeDocument;
colors?: Api.TypeAttachMenuBotIconColor[];
};
export class AttachMenuBot extends VirtualClass<{
// flags: undefined;
inactive?: true;
hasSettings?: true;
requestWriteAccess?: true;
showInAttachMenu?: true;
showInSideMenu?: true;
sideMenuDisclaimerNeeded?: true;
botId: long;
shortName: string;
peerTypes?: Api.TypeAttachMenuPeerType[];
icons: Api.TypeAttachMenuBotIcon[];
}> {
// flags: undefined;
inactive?: true;
hasSettings?: true;
requestWriteAccess?: true;
showInAttachMenu?: true;
showInSideMenu?: true;
sideMenuDisclaimerNeeded?: true;
botId: long;
shortName: string;
peerTypes?: Api.TypeAttachMenuPeerType[];
icons: Api.TypeAttachMenuBotIcon[];
};
export class AttachMenuBotsNotModified extends VirtualClass<void> {};
export class AttachMenuBots extends VirtualClass<{
hash: long;
bots: Api.TypeAttachMenuBot[];
users: Api.TypeUser[];
}> {
hash: long;
bots: Api.TypeAttachMenuBot[];
users: Api.TypeUser[];
};
export class AttachMenuBotsBot extends VirtualClass<{
bot: Api.TypeAttachMenuBot;
users: Api.TypeUser[];
}> {
bot: Api.TypeAttachMenuBot;
users: Api.TypeUser[];
};
export class WebViewResultUrl extends VirtualClass<{
// flags: undefined;
fullsize?: true;
fullscreen?: true;
queryId?: long;
url: string;
}> {
// flags: undefined;
fullsize?: true;
fullscreen?: true;
queryId?: long;
url: string;
};
export class WebViewMessageSent extends VirtualClass<{
// flags: undefined;
msgId?: Api.TypeInputBotInlineMessageID;
} | void> {
// flags: undefined;
msgId?: Api.TypeInputBotInlineMessageID;
};
export class BotMenuButtonDefault extends VirtualClass<void> {};
export class BotMenuButtonCommands extends VirtualClass<void> {};
export class BotMenuButton extends VirtualClass<{
text: string;
url: string;
}> {
text: string;
url: string;
};
export class NotificationSoundDefault extends VirtualClass<void> {};
export class NotificationSoundNone extends VirtualClass<void> {};
export class NotificationSoundLocal extends VirtualClass<{
title: string;
data: string;
}> {
title: string;
data: string;
};
export class NotificationSoundRingtone extends VirtualClass<{
id: long;
}> {
id: long;
};
export class AttachMenuPeerTypeSameBotPM extends VirtualClass<void> {};
export class AttachMenuPeerTypeBotPM extends VirtualClass<void> {};
export class AttachMenuPeerTypePM extends VirtualClass<void> {};
export class AttachMenuPeerTypeChat extends VirtualClass<void> {};
export class AttachMenuPeerTypeBroadcast extends VirtualClass<void> {};
export class InputInvoiceMessage extends VirtualClass<{
peer: Api.TypeInputPeer;
msgId: int;
}> {
peer: Api.TypeInputPeer;
msgId: int;
};
export class InputInvoiceSlug extends VirtualClass<{
slug: string;
}> {
slug: string;
};
export class InputInvoicePremiumGiftCode extends VirtualClass<{
purpose: Api.TypeInputStorePaymentPurpose;
option: Api.TypePremiumGiftCodeOption;
}> {
purpose: Api.TypeInputStorePaymentPurpose;
option: Api.TypePremiumGiftCodeOption;
};
export class InputInvoiceStars extends VirtualClass<{
purpose: Api.TypeInputStorePaymentPurpose;
}> {
purpose: Api.TypeInputStorePaymentPurpose;
};
export class InputInvoiceChatInviteSubscription extends VirtualClass<{
hash: string;
}> {
hash: string;
};
export class InputInvoiceStarGift extends VirtualClass<{
// flags: undefined;
hideName?: true;
includeUpgrade?: true;
userId: Api.TypeInputUser;
giftId: long;
message?: Api.TypeTextWithEntities;
}> {
// flags: undefined;
hideName?: true;
includeUpgrade?: true;
userId: Api.TypeInputUser;
giftId: long;
message?: Api.TypeTextWithEntities;
};
export class InputInvoiceStarGiftUpgrade extends VirtualClass<{
// flags: undefined;
keepOriginalDetails?: true;
msgId: int;
}> {
// flags: undefined;
keepOriginalDetails?: true;
msgId: int;
};
export class InputInvoiceStarGiftTransfer extends VirtualClass<{
msgId: int;
toId: Api.TypeInputUser;
}> {
msgId: int;
toId: Api.TypeInputUser;
};
export class InputStorePaymentPremiumSubscription extends VirtualClass<{
// flags: undefined;
restore?: true;
upgrade?: true;
} | void> {
// flags: undefined;
restore?: true;
upgrade?: true;
};
export class InputStorePaymentGiftPremium extends VirtualClass<{
userId: Api.TypeInputUser;
currency: string;
amount: long;
}> {
userId: Api.TypeInputUser;
currency: string;
amount: long;
};
export class InputStorePaymentPremiumGiftCode extends VirtualClass<{
// flags: undefined;
users: Api.TypeInputUser[];
boostPeer?: Api.TypeInputPeer;
currency: string;
amount: long;
message?: Api.TypeTextWithEntities;
}> {
// flags: undefined;
users: Api.TypeInputUser[];
boostPeer?: Api.TypeInputPeer;
currency: string;
amount: long;
message?: Api.TypeTextWithEntities;
};
export class InputStorePaymentPremiumGiveaway extends VirtualClass<{
// flags: undefined;
onlyNewSubscribers?: true;
winnersAreVisible?: true;
boostPeer: Api.TypeInputPeer;
additionalPeers?: Api.TypeInputPeer[];
countriesIso2?: string[];
prizeDescription?: string;
randomId: long;
untilDate: int;
currency: string;
amount: long;
}> {
// flags: undefined;
onlyNewSubscribers?: true;
winnersAreVisible?: true;
boostPeer: Api.TypeInputPeer;
additionalPeers?: Api.TypeInputPeer[];
countriesIso2?: string[];
prizeDescription?: string;
randomId: long;
untilDate: int;
currency: string;
amount: long;
};
export class InputStorePaymentStarsTopup extends VirtualClass<{
stars: long;
currency: string;
amount: long;
}> {
stars: long;
currency: string;
amount: long;
};
export class InputStorePaymentStarsGift extends VirtualClass<{
userId: Api.TypeInputUser;
stars: long;
currency: string;
amount: long;
}> {
userId: Api.TypeInputUser;
stars: long;
currency: string;
amount: long;
};
export class InputStorePaymentStarsGiveaway extends VirtualClass<{
// flags: undefined;
onlyNewSubscribers?: true;
winnersAreVisible?: true;
stars: long;
boostPeer: Api.TypeInputPeer;
additionalPeers?: Api.TypeInputPeer[];
countriesIso2?: string[];
prizeDescription?: string;
randomId: long;
untilDate: int;
currency: string;
amount: long;
users: int;
}> {
// flags: undefined;
onlyNewSubscribers?: true;
winnersAreVisible?: true;
stars: long;
boostPeer: Api.TypeInputPeer;
additionalPeers?: Api.TypeInputPeer[];
countriesIso2?: string[];
prizeDescription?: string;
randomId: long;
untilDate: int;
currency: string;
amount: long;
users: int;
};
export class PremiumGiftOption extends VirtualClass<{
// flags: undefined;
months: int;
currency: string;
amount: long;
botUrl: string;
storeProduct?: string;
}> {
// flags: undefined;
months: int;
currency: string;
amount: long;
botUrl: string;
storeProduct?: string;
};
export class PaymentFormMethod extends VirtualClass<{
url: string;
title: string;
}> {
url: string;
title: string;
};
export class EmojiStatusEmpty extends VirtualClass<void> {};
export class EmojiStatus extends VirtualClass<{
documentId: long;
}> {
documentId: long;
};
export class EmojiStatusUntil extends VirtualClass<{
documentId: long;
until: int;
}> {
documentId: long;
until: int;
};
export class ReactionEmpty extends VirtualClass<void> {};
export class ReactionEmoji extends VirtualClass<{
emoticon: string;
}> {
emoticon: string;
};
export class ReactionCustomEmoji extends VirtualClass<{
documentId: long;
}> {
documentId: long;
};
export class ReactionPaid extends VirtualClass<void> {};
export class ChatReactionsNone extends VirtualClass<void> {};
export class ChatReactionsAll extends VirtualClass<{
// flags: undefined;
allowCustom?: true;
} | void> {
// flags: undefined;
allowCustom?: true;
};
export class ChatReactionsSome extends VirtualClass<{
reactions: Api.TypeReaction[];
}> {
reactions: Api.TypeReaction[];
};
export class EmailVerifyPurposeLoginSetup extends VirtualClass<{
phoneNumber: string;
phoneCodeHash: string;
}> {
phoneNumber: string;
phoneCodeHash: string;
};
export class EmailVerifyPurposeLoginChange extends VirtualClass<void> {};
export class EmailVerifyPurposePassport extends VirtualClass<void> {};
export class EmailVerificationCode extends VirtualClass<{
code: string;
}> {
code: string;
};
export class EmailVerificationGoogle extends VirtualClass<{
token: string;
}> {
token: string;
};
export class EmailVerificationApple extends VirtualClass<{
token: string;
}> {
token: string;
};
export class PremiumSubscriptionOption extends VirtualClass<{
// flags: undefined;
current?: true;
canPurchaseUpgrade?: true;
transaction?: string;
months: int;
currency: string;
amount: long;
botUrl: string;
storeProduct?: string;
}> {
// flags: undefined;
current?: true;
canPurchaseUpgrade?: true;
transaction?: string;
months: int;
currency: string;
amount: long;
botUrl: string;
storeProduct?: string;
};
export class SendAsPeer extends VirtualClass<{
// flags: undefined;
premiumRequired?: true;
peer: Api.TypePeer;
}> {
// flags: undefined;
premiumRequired?: true;
peer: Api.TypePeer;
};
export class MessageExtendedMediaPreview extends VirtualClass<{
// flags: undefined;
w?: int;
h?: int;
thumb?: Api.TypePhotoSize;
videoDuration?: int;
} | void> {
// flags: undefined;
w?: int;
h?: int;
thumb?: Api.TypePhotoSize;
videoDuration?: int;
};
export class MessageExtendedMedia extends VirtualClass<{
media: Api.TypeMessageMedia;
}> {
media: Api.TypeMessageMedia;
};
export class StickerKeyword extends VirtualClass<{
documentId: long;
keyword: string[];
}> {
documentId: long;
keyword: string[];
};
export class Username extends VirtualClass<{
// flags: undefined;
editable?: true;
active?: true;
username: string;
}> {
// flags: undefined;
editable?: true;
active?: true;
username: string;
};
export class ForumTopicDeleted extends VirtualClass<{
id: int;
}> {
id: int;
};
export class ForumTopic extends VirtualClass<{
// flags: undefined;
my?: true;
closed?: true;
pinned?: true;
short?: true;
hidden?: true;
id: int;
date: int;
title: string;
iconColor: int;
iconEmojiId?: long;
topMessage: int;
readInboxMaxId: int;
readOutboxMaxId: int;
unreadCount: int;
unreadMentionsCount: int;
unreadReactionsCount: int;
fromId: Api.TypePeer;
notifySettings: Api.TypePeerNotifySettings;
draft?: Api.TypeDraftMessage;
}> {
// flags: undefined;
my?: true;
closed?: true;
pinned?: true;
short?: true;
hidden?: true;
id: int;
date: int;
title: string;
iconColor: int;
iconEmojiId?: long;
topMessage: int;
readInboxMaxId: int;
readOutboxMaxId: int;
unreadCount: int;
unreadMentionsCount: int;
unreadReactionsCount: int;
fromId: Api.TypePeer;
notifySettings: Api.TypePeerNotifySettings;
draft?: Api.TypeDraftMessage;
};
export class DefaultHistoryTTL extends VirtualClass<{
period: int;
}> {
period: int;
};
export class ExportedContactToken extends VirtualClass<{
url: string;
expires: int;
}> {
url: string;
expires: int;
};
export class RequestPeerTypeUser extends VirtualClass<{
// flags: undefined;
bot?: Bool;
premium?: Bool;
} | void> {
// flags: undefined;
bot?: Bool;
premium?: Bool;
};
export class RequestPeerTypeChat extends VirtualClass<{
// flags: undefined;
creator?: true;
botParticipant?: true;
hasUsername?: Bool;
forum?: Bool;
userAdminRights?: Api.TypeChatAdminRights;
botAdminRights?: Api.TypeChatAdminRights;
} | void> {
// flags: undefined;
creator?: true;
botParticipant?: true;
hasUsername?: Bool;
forum?: Bool;
userAdminRights?: Api.TypeChatAdminRights;
botAdminRights?: Api.TypeChatAdminRights;
};
export class RequestPeerTypeBroadcast extends VirtualClass<{
// flags: undefined;
creator?: true;
hasUsername?: Bool;
userAdminRights?: Api.TypeChatAdminRights;
botAdminRights?: Api.TypeChatAdminRights;
} | void> {
// flags: undefined;
creator?: true;
hasUsername?: Bool;
userAdminRights?: Api.TypeChatAdminRights;
botAdminRights?: Api.TypeChatAdminRights;
};
export class EmojiListNotModified extends VirtualClass<void> {};
export class EmojiList extends VirtualClass<{
hash: long;
documentId: long[];
}> {
hash: long;
documentId: long[];
};
export class EmojiGroup extends VirtualClass<{
title: string;
iconEmojiId: long;
emoticons: string[];
}> {
title: string;
iconEmojiId: long;
emoticons: string[];
};
export class EmojiGroupGreeting extends VirtualClass<{
title: string;
iconEmojiId: long;
emoticons: string[];
}> {
title: string;
iconEmojiId: long;
emoticons: string[];
};
export class EmojiGroupPremium extends VirtualClass<{
title: string;
iconEmojiId: long;
}> {
title: string;
iconEmojiId: long;
};
export class TextWithEntities extends VirtualClass<{
text: string;
entities: Api.TypeMessageEntity[];
}> {
text: string;
entities: Api.TypeMessageEntity[];
};
export class AutoSaveSettings extends VirtualClass<{
// flags: undefined;
photos?: true;
videos?: true;
videoMaxSize?: long;
} | void> {
// flags: undefined;
photos?: true;
videos?: true;
videoMaxSize?: long;
};
export class AutoSaveException extends VirtualClass<{
peer: Api.TypePeer;
settings: Api.TypeAutoSaveSettings;
}> {
peer: Api.TypePeer;
settings: Api.TypeAutoSaveSettings;
};
export class InputBotAppID extends VirtualClass<{
id: long;
accessHash: long;
}> {
id: long;
accessHash: long;
};
export class InputBotAppShortName extends VirtualClass<{
botId: Api.TypeInputUser;
shortName: string;
}> {
botId: Api.TypeInputUser;
shortName: string;
};
export class BotAppNotModified extends VirtualClass<void> {};
export class BotApp extends VirtualClass<{
// flags: undefined;
id: long;
accessHash: long;
shortName: string;
title: string;
description: string;
photo: Api.TypePhoto;
document?: Api.TypeDocument;
hash: long;
}> {
// flags: undefined;
id: long;
accessHash: long;
shortName: string;
title: string;
description: string;
photo: Api.TypePhoto;
document?: Api.TypeDocument;
hash: long;
};
export class InlineBotWebView extends VirtualClass<{
text: string;
url: string;
}> {
text: string;
url: string;
};
export class ReadParticipantDate extends VirtualClass<{
userId: long;
date: int;
}> {
userId: long;
date: int;
};
export class InputChatlistDialogFilter extends VirtualClass<{
filterId: int;
}> {
filterId: int;
};
export class ExportedChatlistInvite extends VirtualClass<{
// flags: undefined;
title: string;
url: string;
peers: Api.TypePeer[];
}> {
// flags: undefined;
title: string;
url: string;
peers: Api.TypePeer[];
};
export class MessagePeerVote extends VirtualClass<{
peer: Api.TypePeer;
option: bytes;
date: int;
}> {
peer: Api.TypePeer;
option: bytes;
date: int;
};
export class MessagePeerVoteInputOption extends VirtualClass<{
peer: Api.TypePeer;
date: int;
}> {
peer: Api.TypePeer;
date: int;
};
export class MessagePeerVoteMultiple extends VirtualClass<{
peer: Api.TypePeer;
options: bytes[];
date: int;
}> {
peer: Api.TypePeer;
options: bytes[];
date: int;
};
export class StoryViews extends VirtualClass<{
// flags: undefined;
hasViewers?: true;
viewsCount: int;
forwardsCount?: int;
reactions?: Api.TypeReactionCount[];
reactionsCount?: int;
recentViewers?: long[];
}> {
// flags: undefined;
hasViewers?: true;
viewsCount: int;
forwardsCount?: int;
reactions?: Api.TypeReactionCount[];
reactionsCount?: int;
recentViewers?: long[];
};
export class StoryItemDeleted extends VirtualClass<{
id: int;
}> {
id: int;
};
export class StoryItemSkipped extends VirtualClass<{
// flags: undefined;
closeFriends?: true;
id: int;
date: int;
expireDate: int;
}> {
// flags: undefined;
closeFriends?: true;
id: int;
date: int;
expireDate: int;
};
export class StoryItem extends VirtualClass<{
// flags: undefined;
pinned?: true;
public?: true;
closeFriends?: true;
min?: true;
noforwards?: true;
edited?: true;
contacts?: true;
selectedContacts?: true;
out?: true;
id: int;
date: int;
fromId?: Api.TypePeer;
fwdFrom?: Api.TypeStoryFwdHeader;
expireDate: int;
caption?: string;
entities?: Api.TypeMessageEntity[];
media: Api.TypeMessageMedia;
mediaAreas?: Api.TypeMediaArea[];
privacy?: Api.TypePrivacyRule[];
views?: Api.TypeStoryViews;
sentReaction?: Api.TypeReaction;
}> {
// flags: undefined;
pinned?: true;
public?: true;
closeFriends?: true;
min?: true;
noforwards?: true;
edited?: true;
contacts?: true;
selectedContacts?: true;
out?: true;
id: int;
date: int;
fromId?: Api.TypePeer;
fwdFrom?: Api.TypeStoryFwdHeader;
expireDate: int;
caption?: string;
entities?: Api.TypeMessageEntity[];
media: Api.TypeMessageMedia;
mediaAreas?: Api.TypeMediaArea[];
privacy?: Api.TypePrivacyRule[];
views?: Api.TypeStoryViews;
sentReaction?: Api.TypeReaction;
};
export class StoryView extends VirtualClass<{
// flags: undefined;
blocked?: true;
blockedMyStoriesFrom?: true;
userId: long;
date: int;
reaction?: Api.TypeReaction;
}> {
// flags: undefined;
blocked?: true;
blockedMyStoriesFrom?: true;
userId: long;
date: int;
reaction?: Api.TypeReaction;
};
export class StoryViewPublicForward extends VirtualClass<{
// flags: undefined;
blocked?: true;
blockedMyStoriesFrom?: true;
message: Api.TypeMessage;
}> {
// flags: undefined;
blocked?: true;
blockedMyStoriesFrom?: true;
message: Api.TypeMessage;
};
export class StoryViewPublicRepost extends VirtualClass<{
// flags: undefined;
blocked?: true;
blockedMyStoriesFrom?: true;
peerId: Api.TypePeer;
story: Api.TypeStoryItem;
}> {
// flags: undefined;
blocked?: true;
blockedMyStoriesFrom?: true;
peerId: Api.TypePeer;
story: Api.TypeStoryItem;
};
export class InputReplyToMessage extends VirtualClass<{
// flags: undefined;
replyToMsgId: int;
topMsgId?: int;
replyToPeerId?: Api.TypeInputPeer;
quoteText?: string;
quoteEntities?: Api.TypeMessageEntity[];
quoteOffset?: int;
}> {
// flags: undefined;
replyToMsgId: int;
topMsgId?: int;
replyToPeerId?: Api.TypeInputPeer;
quoteText?: string;
quoteEntities?: Api.TypeMessageEntity[];
quoteOffset?: int;
};
export class InputReplyToStory extends VirtualClass<{
peer: Api.TypeInputPeer;
storyId: int;
}> {
peer: Api.TypeInputPeer;
storyId: int;
};
export class ExportedStoryLink extends VirtualClass<{
link: string;
}> {
link: string;
};
export class StoriesStealthMode extends VirtualClass<{
// flags: undefined;
activeUntilDate?: int;
cooldownUntilDate?: int;
} | void> {
// flags: undefined;
activeUntilDate?: int;
cooldownUntilDate?: int;
};
export class MediaAreaCoordinates extends VirtualClass<{
// flags: undefined;
x: double;
y: double;
w: double;
h: double;
rotation: double;
radius?: double;
}> {
// flags: undefined;
x: double;
y: double;
w: double;
h: double;
rotation: double;
radius?: double;
};
export class MediaAreaVenue extends VirtualClass<{
coordinates: Api.TypeMediaAreaCoordinates;
geo: Api.TypeGeoPoint;
title: string;
address: string;
provider: string;
venueId: string;
venueType: string;
}> {
coordinates: Api.TypeMediaAreaCoordinates;
geo: Api.TypeGeoPoint;
title: string;
address: string;
provider: string;
venueId: string;
venueType: string;
};
export class InputMediaAreaVenue extends VirtualClass<{
coordinates: Api.TypeMediaAreaCoordinates;
queryId: long;
resultId: string;
}> {
coordinates: Api.TypeMediaAreaCoordinates;
queryId: long;
resultId: string;
};
export class MediaAreaGeoPoint extends VirtualClass<{
// flags: undefined;
coordinates: Api.TypeMediaAreaCoordinates;
geo: Api.TypeGeoPoint;
address?: Api.TypeGeoPointAddress;
}> {
// flags: undefined;
coordinates: Api.TypeMediaAreaCoordinates;
geo: Api.TypeGeoPoint;
address?: Api.TypeGeoPointAddress;
};
export class MediaAreaSuggestedReaction extends VirtualClass<{
// flags: undefined;
dark?: true;
flipped?: true;
coordinates: Api.TypeMediaAreaCoordinates;
reaction: Api.TypeReaction;
}> {
// flags: undefined;
dark?: true;
flipped?: true;
coordinates: Api.TypeMediaAreaCoordinates;
reaction: Api.TypeReaction;
};
export class MediaAreaChannelPost extends VirtualClass<{
coordinates: Api.TypeMediaAreaCoordinates;
channelId: long;
msgId: int;
}> {
coordinates: Api.TypeMediaAreaCoordinates;
channelId: long;
msgId: int;
};
export class InputMediaAreaChannelPost extends VirtualClass<{
coordinates: Api.TypeMediaAreaCoordinates;
channel: Api.TypeInputChannel;
msgId: int;
}> {
coordinates: Api.TypeMediaAreaCoordinates;
channel: Api.TypeInputChannel;
msgId: int;
};
export class MediaAreaUrl extends VirtualClass<{
coordinates: Api.TypeMediaAreaCoordinates;
url: string;
}> {
coordinates: Api.TypeMediaAreaCoordinates;
url: string;
};
export class MediaAreaWeather extends VirtualClass<{
coordinates: Api.TypeMediaAreaCoordinates;
emoji: string;
temperatureC: double;
color: int;
}> {
coordinates: Api.TypeMediaAreaCoordinates;
emoji: string;
temperatureC: double;
color: int;
};
export class PeerStories extends VirtualClass<{
// flags: undefined;
peer: Api.TypePeer;
maxReadId?: int;
stories: Api.TypeStoryItem[];
}> {
// flags: undefined;
peer: Api.TypePeer;
maxReadId?: int;
stories: Api.TypeStoryItem[];
};
export class PremiumGiftCodeOption extends VirtualClass<{
// flags: undefined;
users: int;
months: int;
storeProduct?: string;
storeQuantity?: int;
currency: string;
amount: long;
}> {
// flags: undefined;
users: int;
months: int;
storeProduct?: string;
storeQuantity?: int;
currency: string;
amount: long;
};
export class PrepaidGiveaway extends VirtualClass<{
id: long;
months: int;
quantity: int;
date: int;
}> {
id: long;
months: int;
quantity: int;
date: int;
};
export class PrepaidStarsGiveaway extends VirtualClass<{
id: long;
stars: long;
quantity: int;
boosts: int;
date: int;
}> {
id: long;
stars: long;
quantity: int;
boosts: int;
date: int;
};
export class Boost extends VirtualClass<{
// flags: undefined;
gift?: true;
giveaway?: true;
unclaimed?: true;
id: string;
userId?: long;
giveawayMsgId?: int;
date: int;
expires: int;
usedGiftSlug?: string;
multiplier?: int;
stars?: long;
}> {
// flags: undefined;
gift?: true;
giveaway?: true;
unclaimed?: true;
id: string;
userId?: long;
giveawayMsgId?: int;
date: int;
expires: int;
usedGiftSlug?: string;
multiplier?: int;
stars?: long;
};
export class MyBoost extends VirtualClass<{
// flags: undefined;
slot: int;
peer?: Api.TypePeer;
date: int;
expires: int;
cooldownUntilDate?: int;
}> {
// flags: undefined;
slot: int;
peer?: Api.TypePeer;
date: int;
expires: int;
cooldownUntilDate?: int;
};
export class StoryFwdHeader extends VirtualClass<{
// flags: undefined;
modified?: true;
from?: Api.TypePeer;
fromName?: string;
storyId?: int;
} | void> {
// flags: undefined;
modified?: true;
from?: Api.TypePeer;
fromName?: string;
storyId?: int;
};
export class PostInteractionCountersMessage extends VirtualClass<{
msgId: int;
views: int;
forwards: int;
reactions: int;
}> {
msgId: int;
views: int;
forwards: int;
reactions: int;
};
export class PostInteractionCountersStory extends VirtualClass<{
storyId: int;
views: int;
forwards: int;
reactions: int;
}> {
storyId: int;
views: int;
forwards: int;
reactions: int;
};
export class PublicForwardMessage extends VirtualClass<{
message: Api.TypeMessage;
}> {
message: Api.TypeMessage;
};
export class PublicForwardStory extends VirtualClass<{
peer: Api.TypePeer;
story: Api.TypeStoryItem;
}> {
peer: Api.TypePeer;
story: Api.TypeStoryItem;
};
export class PeerColor extends VirtualClass<{
// flags: undefined;
color?: int;
backgroundEmojiId?: long;
} | void> {
// flags: undefined;
color?: int;
backgroundEmojiId?: long;
};
export class StoryReaction extends VirtualClass<{
peerId: Api.TypePeer;
date: int;
reaction: Api.TypeReaction;
}> {
peerId: Api.TypePeer;
date: int;
reaction: Api.TypeReaction;
};
export class StoryReactionPublicForward extends VirtualClass<{
message: Api.TypeMessage;
}> {
message: Api.TypeMessage;
};
export class StoryReactionPublicRepost extends VirtualClass<{
peerId: Api.TypePeer;
story: Api.TypeStoryItem;
}> {
peerId: Api.TypePeer;
story: Api.TypeStoryItem;
};
export class SavedDialog extends VirtualClass<{
// flags: undefined;
pinned?: true;
peer: Api.TypePeer;
topMessage: int;
}> {
// flags: undefined;
pinned?: true;
peer: Api.TypePeer;
topMessage: int;
};
export class SavedReactionTag extends VirtualClass<{
// flags: undefined;
reaction: Api.TypeReaction;
title?: string;
count: int;
}> {
// flags: undefined;
reaction: Api.TypeReaction;
title?: string;
count: int;
};
export class OutboxReadDate extends VirtualClass<{
date: int;
}> {
date: int;
};
export class SmsJob extends VirtualClass<{
jobId: string;
phoneNumber: string;
text: string;
}> {
jobId: string;
phoneNumber: string;
text: string;
};
export class BusinessWeeklyOpen extends VirtualClass<{
startMinute: int;
endMinute: int;
}> {
startMinute: int;
endMinute: int;
};
export class BusinessWorkHours extends VirtualClass<{
// flags: undefined;
openNow?: true;
timezoneId: string;
weeklyOpen: Api.TypeBusinessWeeklyOpen[];
}> {
// flags: undefined;
openNow?: true;
timezoneId: string;
weeklyOpen: Api.TypeBusinessWeeklyOpen[];
};
export class BusinessLocation extends VirtualClass<{
// flags: undefined;
geoPoint?: Api.TypeGeoPoint;
address: string;
}> {
// flags: undefined;
geoPoint?: Api.TypeGeoPoint;
address: string;
};
export class InputBusinessRecipients extends VirtualClass<{
// flags: undefined;
existingChats?: true;
newChats?: true;
contacts?: true;
nonContacts?: true;
excludeSelected?: true;
users?: Api.TypeInputUser[];
} | void> {
// flags: undefined;
existingChats?: true;
newChats?: true;
contacts?: true;
nonContacts?: true;
excludeSelected?: true;
users?: Api.TypeInputUser[];
};
export class BusinessRecipients extends VirtualClass<{
// flags: undefined;
existingChats?: true;
newChats?: true;
contacts?: true;
nonContacts?: true;
excludeSelected?: true;
users?: long[];
} | void> {
// flags: undefined;
existingChats?: true;
newChats?: true;
contacts?: true;
nonContacts?: true;
excludeSelected?: true;
users?: long[];
};
export class BusinessAwayMessageScheduleAlways extends VirtualClass<void> {};
export class BusinessAwayMessageScheduleOutsideWorkHours extends VirtualClass<void> {};
export class BusinessAwayMessageScheduleCustom extends VirtualClass<{
startDate: int;
endDate: int;
}> {
startDate: int;
endDate: int;
};
export class InputBusinessGreetingMessage extends VirtualClass<{
shortcutId: int;
recipients: Api.TypeInputBusinessRecipients;
noActivityDays: int;
}> {
shortcutId: int;
recipients: Api.TypeInputBusinessRecipients;
noActivityDays: int;
};
export class BusinessGreetingMessage extends VirtualClass<{
shortcutId: int;
recipients: Api.TypeBusinessRecipients;
noActivityDays: int;
}> {
shortcutId: int;
recipients: Api.TypeBusinessRecipients;
noActivityDays: int;
};
export class InputBusinessAwayMessage extends VirtualClass<{
// flags: undefined;
offlineOnly?: true;
shortcutId: int;
schedule: Api.TypeBusinessAwayMessageSchedule;
recipients: Api.TypeInputBusinessRecipients;
}> {
// flags: undefined;
offlineOnly?: true;
shortcutId: int;
schedule: Api.TypeBusinessAwayMessageSchedule;
recipients: Api.TypeInputBusinessRecipients;
};
export class BusinessAwayMessage extends VirtualClass<{
// flags: undefined;
offlineOnly?: true;
shortcutId: int;
schedule: Api.TypeBusinessAwayMessageSchedule;
recipients: Api.TypeBusinessRecipients;
}> {
// flags: undefined;
offlineOnly?: true;
shortcutId: int;
schedule: Api.TypeBusinessAwayMessageSchedule;
recipients: Api.TypeBusinessRecipients;
};
export class Timezone extends VirtualClass<{
id: string;
name: string;
utcOffset: int;
}> {
id: string;
name: string;
utcOffset: int;
};
export class QuickReply extends VirtualClass<{
shortcutId: int;
shortcut: string;
topMessage: int;
count: int;
}> {
shortcutId: int;
shortcut: string;
topMessage: int;
count: int;
};
export class InputQuickReplyShortcut extends VirtualClass<{
shortcut: string;
}> {
shortcut: string;
};
export class InputQuickReplyShortcutId extends VirtualClass<{
shortcutId: int;
}> {
shortcutId: int;
};
export class ConnectedBot extends VirtualClass<{
// flags: undefined;
canReply?: true;
botId: long;
recipients: Api.TypeBusinessBotRecipients;
}> {
// flags: undefined;
canReply?: true;
botId: long;
recipients: Api.TypeBusinessBotRecipients;
};
export class Birthday extends VirtualClass<{
// flags: undefined;
day: int;
month: int;
year?: int;
}> {
// flags: undefined;
day: int;
month: int;
year?: int;
};
export class BotBusinessConnection extends VirtualClass<{
// flags: undefined;
canReply?: true;
disabled?: true;
connectionId: string;
userId: long;
dcId: int;
date: int;
}> {
// flags: undefined;
canReply?: true;
disabled?: true;
connectionId: string;
userId: long;
dcId: int;
date: int;
};
export class InputBusinessIntro extends VirtualClass<{
// flags: undefined;
title: string;
description: string;
sticker?: Api.TypeInputDocument;
}> {
// flags: undefined;
title: string;
description: string;
sticker?: Api.TypeInputDocument;
};
export class BusinessIntro extends VirtualClass<{
// flags: undefined;
title: string;
description: string;
sticker?: Api.TypeDocument;
}> {
// flags: undefined;
title: string;
description: string;
sticker?: Api.TypeDocument;
};
export class InputCollectibleUsername extends VirtualClass<{
username: string;
}> {
username: string;
};
export class InputCollectiblePhone extends VirtualClass<{
phone: string;
}> {
phone: string;
};
export class InputBusinessBotRecipients extends VirtualClass<{
// flags: undefined;
existingChats?: true;
newChats?: true;
contacts?: true;
nonContacts?: true;
excludeSelected?: true;
users?: Api.TypeInputUser[];
excludeUsers?: Api.TypeInputUser[];
} | void> {
// flags: undefined;
existingChats?: true;
newChats?: true;
contacts?: true;
nonContacts?: true;
excludeSelected?: true;
users?: Api.TypeInputUser[];
excludeUsers?: Api.TypeInputUser[];
};
export class BusinessBotRecipients extends VirtualClass<{
// flags: undefined;
existingChats?: true;
newChats?: true;
contacts?: true;
nonContacts?: true;
excludeSelected?: true;
users?: long[];
excludeUsers?: long[];
} | void> {
// flags: undefined;
existingChats?: true;
newChats?: true;
contacts?: true;
nonContacts?: true;
excludeSelected?: true;
users?: long[];
excludeUsers?: long[];
};
export class ContactBirthday extends VirtualClass<{
contactId: long;
birthday: Api.TypeBirthday;
}> {
contactId: long;
birthday: Api.TypeBirthday;
};
export class MissingInvitee extends VirtualClass<{
// flags: undefined;
premiumWouldAllowInvite?: true;
premiumRequiredForPm?: true;
userId: long;
}> {
// flags: undefined;
premiumWouldAllowInvite?: true;
premiumRequiredForPm?: true;
userId: long;
};
export class InputBusinessChatLink extends VirtualClass<{
// flags: undefined;
message: string;
entities?: Api.TypeMessageEntity[];
title?: string;
}> {
// flags: undefined;
message: string;
entities?: Api.TypeMessageEntity[];
title?: string;
};
export class BusinessChatLink extends VirtualClass<{
// flags: undefined;
link: string;
message: string;
entities?: Api.TypeMessageEntity[];
title?: string;
views: int;
}> {
// flags: undefined;
link: string;
message: string;
entities?: Api.TypeMessageEntity[];
title?: string;
views: int;
};
export class RequestedPeerUser extends VirtualClass<{
// flags: undefined;
userId: long;
firstName?: string;
lastName?: string;
username?: string;
photo?: Api.TypePhoto;
}> {
// flags: undefined;
userId: long;
firstName?: string;
lastName?: string;
username?: string;
photo?: Api.TypePhoto;
};
export class RequestedPeerChat extends VirtualClass<{
// flags: undefined;
chatId: long;
title?: string;
photo?: Api.TypePhoto;
}> {
// flags: undefined;
chatId: long;
title?: string;
photo?: Api.TypePhoto;
};
export class RequestedPeerChannel extends VirtualClass<{
// flags: undefined;
channelId: long;
title?: string;
username?: string;
photo?: Api.TypePhoto;
}> {
// flags: undefined;
channelId: long;
title?: string;
username?: string;
photo?: Api.TypePhoto;
};
export class SponsoredMessageReportOption extends VirtualClass<{
text: string;
option: bytes;
}> {
text: string;
option: bytes;
};
export class BroadcastRevenueTransactionProceeds extends VirtualClass<{
amount: long;
fromDate: int;
toDate: int;
}> {
amount: long;
fromDate: int;
toDate: int;
};
export class BroadcastRevenueTransactionWithdrawal extends VirtualClass<{
// flags: undefined;
pending?: true;
failed?: true;
amount: long;
date: int;
provider: string;
transactionDate?: int;
transactionUrl?: string;
}> {
// flags: undefined;
pending?: true;
failed?: true;
amount: long;
date: int;
provider: string;
transactionDate?: int;
transactionUrl?: string;
};
export class BroadcastRevenueTransactionRefund extends VirtualClass<{
amount: long;
date: int;
provider: string;
}> {
amount: long;
date: int;
provider: string;
};
export class ReactionNotificationsFromContacts extends VirtualClass<void> {};
export class ReactionNotificationsFromAll extends VirtualClass<void> {};
export class ReactionsNotifySettings extends VirtualClass<{
// flags: undefined;
messagesNotifyFrom?: Api.TypeReactionNotificationsFrom;
storiesNotifyFrom?: Api.TypeReactionNotificationsFrom;
sound: Api.TypeNotificationSound;
showPreviews: Bool;
}> {
// flags: undefined;
messagesNotifyFrom?: Api.TypeReactionNotificationsFrom;
storiesNotifyFrom?: Api.TypeReactionNotificationsFrom;
sound: Api.TypeNotificationSound;
showPreviews: Bool;
};
export class BroadcastRevenueBalances extends VirtualClass<{
// flags: undefined;
withdrawalEnabled?: true;
currentBalance: long;
availableBalance: long;
overallRevenue: long;
}> {
// flags: undefined;
withdrawalEnabled?: true;
currentBalance: long;
availableBalance: long;
overallRevenue: long;
};
export class AvailableEffect extends VirtualClass<{
// flags: undefined;
premiumRequired?: true;
id: long;
emoticon: string;
staticIconId?: long;
effectStickerId: long;
effectAnimationId?: long;
}> {
// flags: undefined;
premiumRequired?: true;
id: long;
emoticon: string;
staticIconId?: long;
effectStickerId: long;
effectAnimationId?: long;
};
export class FactCheck extends VirtualClass<{
// flags: undefined;
needCheck?: true;
country?: string;
text?: Api.TypeTextWithEntities;
hash: long;
}> {
// flags: undefined;
needCheck?: true;
country?: string;
text?: Api.TypeTextWithEntities;
hash: long;
};
export class StarsTransactionPeerUnsupported extends VirtualClass<void> {};
export class StarsTransactionPeerAppStore extends VirtualClass<void> {};
export class StarsTransactionPeerPlayMarket extends VirtualClass<void> {};
export class StarsTransactionPeerPremiumBot extends VirtualClass<void> {};
export class StarsTransactionPeerFragment extends VirtualClass<void> {};
export class StarsTransactionPeer extends VirtualClass<{
peer: Api.TypePeer;
}> {
peer: Api.TypePeer;
};
export class StarsTransactionPeerAds extends VirtualClass<void> {};
export class StarsTransactionPeerAPI extends VirtualClass<void> {};
export class StarsTopupOption extends VirtualClass<{
// flags: undefined;
extended?: true;
stars: long;
storeProduct?: string;
currency: string;
amount: long;
}> {
// flags: undefined;
extended?: true;
stars: long;
storeProduct?: string;
currency: string;
amount: long;
};
export class StarsTransaction extends VirtualClass<{
// flags: undefined;
refund?: true;
pending?: true;
failed?: true;
gift?: true;
reaction?: true;
stargiftUpgrade?: true;
id: string;
stars: Api.TypeStarsAmount;
date: int;
peer: Api.TypeStarsTransactionPeer;
title?: string;
description?: string;
photo?: Api.TypeWebDocument;
transactionDate?: int;
transactionUrl?: string;
botPayload?: bytes;
msgId?: int;
extendedMedia?: Api.TypeMessageMedia[];
subscriptionPeriod?: int;
giveawayPostId?: int;
stargift?: Api.TypeStarGift;
floodskipNumber?: int;
starrefCommissionPermille?: int;
starrefPeer?: Api.TypePeer;
starrefAmount?: Api.TypeStarsAmount;
}> {
// flags: undefined;
refund?: true;
pending?: true;
failed?: true;
gift?: true;
reaction?: true;
stargiftUpgrade?: true;
id: string;
stars: Api.TypeStarsAmount;
date: int;
peer: Api.TypeStarsTransactionPeer;
title?: string;
description?: string;
photo?: Api.TypeWebDocument;
transactionDate?: int;
transactionUrl?: string;
botPayload?: bytes;
msgId?: int;
extendedMedia?: Api.TypeMessageMedia[];
subscriptionPeriod?: int;
giveawayPostId?: int;
stargift?: Api.TypeStarGift;
floodskipNumber?: int;
starrefCommissionPermille?: int;
starrefPeer?: Api.TypePeer;
starrefAmount?: Api.TypeStarsAmount;
};
export class FoundStory extends VirtualClass<{
peer: Api.TypePeer;
story: Api.TypeStoryItem;
}> {
peer: Api.TypePeer;
story: Api.TypeStoryItem;
};
export class GeoPointAddress extends VirtualClass<{
// flags: undefined;
countryIso2: string;
state?: string;
city?: string;
street?: string;
}> {
// flags: undefined;
countryIso2: string;
state?: string;
city?: string;
street?: string;
};
export class StarsRevenueStatus extends VirtualClass<{
// flags: undefined;
withdrawalEnabled?: true;
currentBalance: Api.TypeStarsAmount;
availableBalance: Api.TypeStarsAmount;
overallRevenue: Api.TypeStarsAmount;
nextWithdrawalAt?: int;
}> {
// flags: undefined;
withdrawalEnabled?: true;
currentBalance: Api.TypeStarsAmount;
availableBalance: Api.TypeStarsAmount;
overallRevenue: Api.TypeStarsAmount;
nextWithdrawalAt?: int;
};
export class InputStarsTransaction extends VirtualClass<{
// flags: undefined;
refund?: true;
id: string;
}> {
// flags: undefined;
refund?: true;
id: string;
};
export class StarsGiftOption extends VirtualClass<{
// flags: undefined;
extended?: true;
stars: long;
storeProduct?: string;
currency: string;
amount: long;
}> {
// flags: undefined;
extended?: true;
stars: long;
storeProduct?: string;
currency: string;
amount: long;
};
export class BotPreviewMedia extends VirtualClass<{
date: int;
media: Api.TypeMessageMedia;
}> {
date: int;
media: Api.TypeMessageMedia;
};
export class StarsSubscriptionPricing extends VirtualClass<{
period: int;
amount: long;
}> {
period: int;
amount: long;
};
export class StarsSubscription extends VirtualClass<{
// flags: undefined;
canceled?: true;
canRefulfill?: true;
missingBalance?: true;
botCanceled?: true;
id: string;
peer: Api.TypePeer;
untilDate: int;
pricing: Api.TypeStarsSubscriptionPricing;
chatInviteHash?: string;
title?: string;
photo?: Api.TypeWebDocument;
invoiceSlug?: string;
}> {
// flags: undefined;
canceled?: true;
canRefulfill?: true;
missingBalance?: true;
botCanceled?: true;
id: string;
peer: Api.TypePeer;
untilDate: int;
pricing: Api.TypeStarsSubscriptionPricing;
chatInviteHash?: string;
title?: string;
photo?: Api.TypeWebDocument;
invoiceSlug?: string;
};
export class MessageReactor extends VirtualClass<{
// flags: undefined;
top?: true;
my?: true;
anonymous?: true;
peerId?: Api.TypePeer;
count: int;
}> {
// flags: undefined;
top?: true;
my?: true;
anonymous?: true;
peerId?: Api.TypePeer;
count: int;
};
export class StarsGiveawayOption extends VirtualClass<{
// flags: undefined;
extended?: true;
default?: true;
stars: long;
yearlyBoosts: int;
storeProduct?: string;
currency: string;
amount: long;
winners: Api.TypeStarsGiveawayWinnersOption[];
}> {
// flags: undefined;
extended?: true;
default?: true;
stars: long;
yearlyBoosts: int;
storeProduct?: string;
currency: string;
amount: long;
winners: Api.TypeStarsGiveawayWinnersOption[];
};
export class StarsGiveawayWinnersOption extends VirtualClass<{
// flags: undefined;
default?: true;
users: int;
perUserStars: long;
}> {
// flags: undefined;
default?: true;
users: int;
perUserStars: long;
};
export class StarGift extends VirtualClass<{
// flags: undefined;
limited?: true;
soldOut?: true;
birthday?: true;
id: long;
sticker: Api.TypeDocument;
stars: long;
availabilityRemains?: int;
availabilityTotal?: int;
convertStars: long;
firstSaleDate?: int;
lastSaleDate?: int;
upgradeStars?: long;
}> {
// flags: undefined;
limited?: true;
soldOut?: true;
birthday?: true;
id: long;
sticker: Api.TypeDocument;
stars: long;
availabilityRemains?: int;
availabilityTotal?: int;
convertStars: long;
firstSaleDate?: int;
lastSaleDate?: int;
upgradeStars?: long;
};
export class StarGiftUnique extends VirtualClass<{
id: long;
title: string;
num: int;
ownerId: long;
attributes: Api.TypeStarGiftAttribute[];
availabilityIssued: int;
availabilityTotal: int;
}> {
id: long;
title: string;
num: int;
ownerId: long;
attributes: Api.TypeStarGiftAttribute[];
availabilityIssued: int;
availabilityTotal: int;
};
export class UserStarGift extends VirtualClass<{
// flags: undefined;
nameHidden?: true;
unsaved?: true;
refunded?: true;
canUpgrade?: true;
fromId?: long;
date: int;
gift: Api.TypeStarGift;
message?: Api.TypeTextWithEntities;
msgId?: int;
convertStars?: long;
upgradeStars?: long;
canExportAt?: int;
transferStars?: long;
}> {
// flags: undefined;
nameHidden?: true;
unsaved?: true;
refunded?: true;
canUpgrade?: true;
fromId?: long;
date: int;
gift: Api.TypeStarGift;
message?: Api.TypeTextWithEntities;
msgId?: int;
convertStars?: long;
upgradeStars?: long;
canExportAt?: int;
transferStars?: long;
};
export class MessageReportOption extends VirtualClass<{
text: string;
option: bytes;
}> {
text: string;
option: bytes;
};
export class ReportResultChooseOption extends VirtualClass<{
title: string;
options: Api.TypeMessageReportOption[];
}> {
title: string;
options: Api.TypeMessageReportOption[];
};
export class ReportResultAddComment extends VirtualClass<{
// flags: undefined;
optional?: true;
option: bytes;
}> {
// flags: undefined;
optional?: true;
option: bytes;
};
export class ReportResultReported extends VirtualClass<void> {};
export class BotAppSettings extends VirtualClass<{
// flags: undefined;
placeholderPath?: bytes;
backgroundColor?: int;
backgroundDarkColor?: int;
headerColor?: int;
headerDarkColor?: int;
} | void> {
// flags: undefined;
placeholderPath?: bytes;
backgroundColor?: int;
backgroundDarkColor?: int;
headerColor?: int;
headerDarkColor?: int;
};
export class StarRefProgram extends VirtualClass<{
// flags: undefined;
botId: long;
commissionPermille: int;
durationMonths?: int;
endDate?: int;
dailyRevenuePerUser?: Api.TypeStarsAmount;
}> {
// flags: undefined;
botId: long;
commissionPermille: int;
durationMonths?: int;
endDate?: int;
dailyRevenuePerUser?: Api.TypeStarsAmount;
};
export class ConnectedBotStarRef extends VirtualClass<{
// flags: undefined;
revoked?: true;
url: string;
date: int;
botId: long;
commissionPermille: int;
durationMonths?: int;
participants: long;
revenue: long;
}> {
// flags: undefined;
revoked?: true;
url: string;
date: int;
botId: long;
commissionPermille: int;
durationMonths?: int;
participants: long;
revenue: long;
};
export class StarsAmount extends VirtualClass<{
amount: long;
nanos: int;
}> {
amount: long;
nanos: int;
};
export class BotVerifierSettings extends VirtualClass<{
// flags: undefined;
canModifyCustomDescription?: true;
icon: long;
company: string;
customDescription?: string;
}> {
// flags: undefined;
canModifyCustomDescription?: true;
icon: long;
company: string;
customDescription?: string;
};
export class BotVerification extends VirtualClass<{
botId: long;
icon: long;
description: string;
}> {
botId: long;
icon: long;
description: string;
};
export class StarGiftAttributeModel extends VirtualClass<{
name: string;
document: Api.TypeDocument;
rarityPermille: int;
}> {
name: string;
document: Api.TypeDocument;
rarityPermille: int;
};
export class StarGiftAttributePattern extends VirtualClass<{
name: string;
document: Api.TypeDocument;
rarityPermille: int;
}> {
name: string;
document: Api.TypeDocument;
rarityPermille: int;
};
export class StarGiftAttributeBackdrop extends VirtualClass<{
name: string;
centerColor: int;
edgeColor: int;
patternColor: int;
textColor: int;
rarityPermille: int;
}> {
name: string;
centerColor: int;
edgeColor: int;
patternColor: int;
textColor: int;
rarityPermille: int;
};
export class StarGiftAttributeOriginalDetails extends VirtualClass<{
// flags: undefined;
senderId?: long;
recipientId: long;
date: int;
message?: Api.TypeTextWithEntities;
}> {
// flags: undefined;
senderId?: long;
recipientId: long;
date: int;
message?: Api.TypeTextWithEntities;
};
export class ResPQ extends VirtualClass<{
nonce: int128;
serverNonce: int128;
pq: bytes;
serverPublicKeyFingerprints: long[];
}> {
nonce: int128;
serverNonce: int128;
pq: bytes;
serverPublicKeyFingerprints: long[];
};
export class PQInnerData extends VirtualClass<{
pq: bytes;
p: bytes;
q: bytes;
nonce: int128;
serverNonce: int128;
newNonce: int256;
}> {
pq: bytes;
p: bytes;
q: bytes;
nonce: int128;
serverNonce: int128;
newNonce: int256;
};
export class PQInnerDataDc extends VirtualClass<{
pq: bytes;
p: bytes;
q: bytes;
nonce: int128;
serverNonce: int128;
newNonce: int256;
dc: int;
}> {
pq: bytes;
p: bytes;
q: bytes;
nonce: int128;
serverNonce: int128;
newNonce: int256;
dc: int;
};
export class PQInnerDataTemp extends VirtualClass<{
pq: bytes;
p: bytes;
q: bytes;
nonce: int128;
serverNonce: int128;
newNonce: int256;
expiresIn: int;
}> {
pq: bytes;
p: bytes;
q: bytes;
nonce: int128;
serverNonce: int128;
newNonce: int256;
expiresIn: int;
};
export class PQInnerDataTempDc extends VirtualClass<{
pq: bytes;
p: bytes;
q: bytes;
nonce: int128;
serverNonce: int128;
newNonce: int256;
dc: int;
expiresIn: int;
}> {
pq: bytes;
p: bytes;
q: bytes;
nonce: int128;
serverNonce: int128;
newNonce: int256;
dc: int;
expiresIn: int;
};
export class ServerDHParamsFail extends VirtualClass<{
nonce: int128;
serverNonce: int128;
newNonceHash: int128;
}> {
nonce: int128;
serverNonce: int128;
newNonceHash: int128;
};
export class ServerDHParamsOk extends VirtualClass<{
nonce: int128;
serverNonce: int128;
encryptedAnswer: bytes;
}> {
nonce: int128;
serverNonce: int128;
encryptedAnswer: bytes;
};
export class ServerDHInnerData extends VirtualClass<{
nonce: int128;
serverNonce: int128;
g: int;
dhPrime: bytes;
gA: bytes;
serverTime: int;
}> {
nonce: int128;
serverNonce: int128;
g: int;
dhPrime: bytes;
gA: bytes;
serverTime: int;
};
export class ClientDHInnerData extends VirtualClass<{
nonce: int128;
serverNonce: int128;
retryId: long;
gB: bytes;
}> {
nonce: int128;
serverNonce: int128;
retryId: long;
gB: bytes;
};
export class DhGenOk extends VirtualClass<{
nonce: int128;
serverNonce: int128;
newNonceHash1: int128;
}> {
nonce: int128;
serverNonce: int128;
newNonceHash1: int128;
};
export class DhGenRetry extends VirtualClass<{
nonce: int128;
serverNonce: int128;
newNonceHash2: int128;
}> {
nonce: int128;
serverNonce: int128;
newNonceHash2: int128;
};
export class DhGenFail extends VirtualClass<{
nonce: int128;
serverNonce: int128;
newNonceHash3: int128;
}> {
nonce: int128;
serverNonce: int128;
newNonceHash3: int128;
};
export class DestroyAuthKeyOk extends VirtualClass<void> {};
export class DestroyAuthKeyNone extends VirtualClass<void> {};
export class DestroyAuthKeyFail extends VirtualClass<void> {};
export class MsgsAck extends VirtualClass<{
msgIds: long[];
}> {
msgIds: long[];
};
export class BadMsgNotification extends VirtualClass<{
badMsgId: long;
badMsgSeqno: int;
errorCode: int;
}> {
badMsgId: long;
badMsgSeqno: int;
errorCode: int;
};
export class BadServerSalt extends VirtualClass<{
badMsgId: long;
badMsgSeqno: int;
errorCode: int;
newServerSalt: long;
}> {
badMsgId: long;
badMsgSeqno: int;
errorCode: int;
newServerSalt: long;
};
export class MsgsStateReq extends VirtualClass<{
msgIds: long[];
}> {
msgIds: long[];
};
export class MsgsStateInfo extends VirtualClass<{
reqMsgId: long;
info: string;
}> {
reqMsgId: long;
info: string;
};
export class MsgsAllInfo extends VirtualClass<{
msgIds: long[];
info: string;
}> {
msgIds: long[];
info: string;
};
export class MsgDetailedInfo extends VirtualClass<{
msgId: long;
answerMsgId: long;
bytes: int;
status: int;
}> {
msgId: long;
answerMsgId: long;
bytes: int;
status: int;
};
export class MsgNewDetailedInfo extends VirtualClass<{
answerMsgId: long;
bytes: int;
status: int;
}> {
answerMsgId: long;
bytes: int;
status: int;
};
export class MsgResendReq extends VirtualClass<{
msgIds: long[];
}> {
msgIds: long[];
};
export class RpcError extends VirtualClass<{
errorCode: int;
errorMessage: string;
}> {
errorCode: int;
errorMessage: string;
};
export class RpcAnswerUnknown extends VirtualClass<void> {};
export class RpcAnswerDroppedRunning extends VirtualClass<void> {};
export class RpcAnswerDropped extends VirtualClass<{
msgId: long;
seqNo: int;
bytes: int;
}> {
msgId: long;
seqNo: int;
bytes: int;
};
export class FutureSalt extends VirtualClass<{
validSince: int;
validUntil: int;
salt: long;
}> {
validSince: int;
validUntil: int;
salt: long;
};
export class FutureSalts extends VirtualClass<{
reqMsgId: long;
now: int;
salts: future_salt[];
}> {
reqMsgId: long;
now: int;
salts: future_salt[];
};
export class Pong extends VirtualClass<{
msgId: long;
pingId: long;
}> {
msgId: long;
pingId: long;
};
export class DestroySessionOk extends VirtualClass<{
sessionId: long;
}> {
sessionId: long;
};
export class DestroySessionNone extends VirtualClass<{
sessionId: long;
}> {
sessionId: long;
};
export class NewSessionCreated extends VirtualClass<{
firstMsgId: long;
uniqueId: long;
serverSalt: long;
}> {
firstMsgId: long;
uniqueId: long;
serverSalt: long;
};
export class HttpWait extends VirtualClass<{
maxDelay: int;
waitAfter: int;
maxWait: int;
}> {
maxDelay: int;
waitAfter: int;
maxWait: int;
};
export class IpPort extends VirtualClass<{
ipv4: int;
port: int;
}> {
ipv4: int;
port: int;
};
export class IpPortSecret extends VirtualClass<{
ipv4: int;
port: int;
secret: bytes;
}> {
ipv4: int;
port: int;
secret: bytes;
};
export class AccessPointRule extends VirtualClass<{
phonePrefixRules: string;
dcId: int;
ips: Api.TypeIpPort[];
}> {
phonePrefixRules: string;
dcId: int;
ips: Api.TypeIpPort[];
};
export class TlsClientHello extends VirtualClass<{
blocks: Api.TypeTlsBlock[];
}> {
blocks: Api.TypeTlsBlock[];
};
export class TlsBlockString extends VirtualClass<{
data: string;
}> {
data: string;
};
export class TlsBlockRandom extends VirtualClass<{
length: int;
}> {
length: int;
};
export class TlsBlockZero extends VirtualClass<{
length: int;
}> {
length: int;
};
export class TlsBlockDomain extends VirtualClass<void> {};
export class TlsBlockGrease extends VirtualClass<{
seed: int;
}> {
seed: int;
};
export class TlsBlockScope extends VirtualClass<{
entries: Api.TypeTlsBlock[];
}> {
entries: Api.TypeTlsBlock[];
};
export namespace storage {
export class FileUnknown extends VirtualClass<void> {};
export class FilePartial extends VirtualClass<void> {};
export class FileJpeg extends VirtualClass<void> {};
export class FileGif extends VirtualClass<void> {};
export class FilePng extends VirtualClass<void> {};
export class FilePdf extends VirtualClass<void> {};
export class FileMp3 extends VirtualClass<void> {};
export class FileMov extends VirtualClass<void> {};
export class FileMp4 extends VirtualClass<void> {};
export class FileWebp extends VirtualClass<void> {};
}
export namespace auth {
export class SentCode extends VirtualClass<{
// flags: undefined;
type: auth.TypeSentCodeType;
phoneCodeHash: string;
nextType?: auth.TypeCodeType;
timeout?: int;
}> {
// flags: undefined;
type: auth.TypeSentCodeType;
phoneCodeHash: string;
nextType?: auth.TypeCodeType;
timeout?: int;
};
export class SentCodeSuccess extends VirtualClass<{
authorization: auth.TypeAuthorization;
}> {
authorization: auth.TypeAuthorization;
};
export class Authorization extends VirtualClass<{
// flags: undefined;
setupPasswordRequired?: true;
otherwiseReloginDays?: int;
tmpSessions?: int;
futureAuthToken?: bytes;
user: Api.TypeUser;
}> {
// flags: undefined;
setupPasswordRequired?: true;
otherwiseReloginDays?: int;
tmpSessions?: int;
futureAuthToken?: bytes;
user: Api.TypeUser;
};
export class AuthorizationSignUpRequired extends VirtualClass<{
// flags: undefined;
termsOfService?: help.TypeTermsOfService;
} | void> {
// flags: undefined;
termsOfService?: help.TypeTermsOfService;
};
export class ExportedAuthorization extends VirtualClass<{
id: long;
bytes: bytes;
}> {
id: long;
bytes: bytes;
};
export class PasswordRecovery extends VirtualClass<{
emailPattern: string;
}> {
emailPattern: string;
};
export class CodeTypeSms extends VirtualClass<void> {};
export class CodeTypeCall extends VirtualClass<void> {};
export class CodeTypeFlashCall extends VirtualClass<void> {};
export class CodeTypeMissedCall extends VirtualClass<void> {};
export class CodeTypeFragmentSms extends VirtualClass<void> {};
export class SentCodeTypeApp extends VirtualClass<{
length: int;
}> {
length: int;
};
export class SentCodeTypeSms extends VirtualClass<{
length: int;
}> {
length: int;
};
export class SentCodeTypeCall extends VirtualClass<{
length: int;
}> {
length: int;
};
export class SentCodeTypeFlashCall extends VirtualClass<{
pattern: string;
}> {
pattern: string;
};
export class SentCodeTypeMissedCall extends VirtualClass<{
prefix: string;
length: int;
}> {
prefix: string;
length: int;
};
export class SentCodeTypeEmailCode extends VirtualClass<{
// flags: undefined;
appleSigninAllowed?: true;
googleSigninAllowed?: true;
emailPattern: string;
length: int;
resetAvailablePeriod?: int;
resetPendingDate?: int;
}> {
// flags: undefined;
appleSigninAllowed?: true;
googleSigninAllowed?: true;
emailPattern: string;
length: int;
resetAvailablePeriod?: int;
resetPendingDate?: int;
};
export class SentCodeTypeSetUpEmailRequired extends VirtualClass<{
// flags: undefined;
appleSigninAllowed?: true;
googleSigninAllowed?: true;
} | void> {
// flags: undefined;
appleSigninAllowed?: true;
googleSigninAllowed?: true;
};
export class SentCodeTypeFragmentSms extends VirtualClass<{
url: string;
length: int;
}> {
url: string;
length: int;
};
export class SentCodeTypeFirebaseSms extends VirtualClass<{
// flags: undefined;
nonce?: bytes;
playIntegrityProjectId?: long;
playIntegrityNonce?: bytes;
receipt?: string;
pushTimeout?: int;
length: int;
}> {
// flags: undefined;
nonce?: bytes;
playIntegrityProjectId?: long;
playIntegrityNonce?: bytes;
receipt?: string;
pushTimeout?: int;
length: int;
};
export class SentCodeTypeSmsWord extends VirtualClass<{
// flags: undefined;
beginning?: string;
} | void> {
// flags: undefined;
beginning?: string;
};
export class SentCodeTypeSmsPhrase extends VirtualClass<{
// flags: undefined;
beginning?: string;
} | void> {
// flags: undefined;
beginning?: string;
};
export class LoginToken extends VirtualClass<{
expires: int;
token: bytes;
}> {
expires: int;
token: bytes;
};
export class LoginTokenMigrateTo extends VirtualClass<{
dcId: int;
token: bytes;
}> {
dcId: int;
token: bytes;
};
export class LoginTokenSuccess extends VirtualClass<{
authorization: auth.TypeAuthorization;
}> {
authorization: auth.TypeAuthorization;
};
export class LoggedOut extends VirtualClass<{
// flags: undefined;
futureAuthToken?: bytes;
} | void> {
// flags: undefined;
futureAuthToken?: bytes;
};
}
export namespace contacts {
export class ContactsNotModified extends VirtualClass<void> {};
export class Contacts extends VirtualClass<{
contacts: Api.TypeContact[];
savedCount: int;
users: Api.TypeUser[];
}> {
contacts: Api.TypeContact[];
savedCount: int;
users: Api.TypeUser[];
};
export class ImportedContacts extends VirtualClass<{
imported: Api.TypeImportedContact[];
popularInvites: Api.TypePopularContact[];
retryContacts: long[];
users: Api.TypeUser[];
}> {
imported: Api.TypeImportedContact[];
popularInvites: Api.TypePopularContact[];
retryContacts: long[];
users: Api.TypeUser[];
};
export class Blocked extends VirtualClass<{
blocked: Api.TypePeerBlocked[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
blocked: Api.TypePeerBlocked[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class BlockedSlice extends VirtualClass<{
count: int;
blocked: Api.TypePeerBlocked[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
count: int;
blocked: Api.TypePeerBlocked[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class Found extends VirtualClass<{
myResults: Api.TypePeer[];
results: Api.TypePeer[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
myResults: Api.TypePeer[];
results: Api.TypePeer[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class ResolvedPeer extends VirtualClass<{
peer: Api.TypePeer;
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
peer: Api.TypePeer;
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class TopPeersNotModified extends VirtualClass<void> {};
export class TopPeers extends VirtualClass<{
categories: Api.TypeTopPeerCategoryPeers[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
categories: Api.TypeTopPeerCategoryPeers[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class TopPeersDisabled extends VirtualClass<void> {};
export class ContactBirthdays extends VirtualClass<{
contacts: Api.TypeContactBirthday[];
users: Api.TypeUser[];
}> {
contacts: Api.TypeContactBirthday[];
users: Api.TypeUser[];
};
}
export namespace messages {
export class Dialogs extends VirtualClass<{
dialogs: Api.TypeDialog[];
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
dialogs: Api.TypeDialog[];
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class DialogsSlice extends VirtualClass<{
count: int;
dialogs: Api.TypeDialog[];
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
count: int;
dialogs: Api.TypeDialog[];
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class DialogsNotModified extends VirtualClass<{
count: int;
}> {
count: int;
};
export class Messages extends VirtualClass<{
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class MessagesSlice extends VirtualClass<{
// flags: undefined;
inexact?: true;
count: int;
nextRate?: int;
offsetIdOffset?: int;
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
// flags: undefined;
inexact?: true;
count: int;
nextRate?: int;
offsetIdOffset?: int;
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class ChannelMessages extends VirtualClass<{
// flags: undefined;
inexact?: true;
pts: int;
count: int;
offsetIdOffset?: int;
messages: Api.TypeMessage[];
topics: Api.TypeForumTopic[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
// flags: undefined;
inexact?: true;
pts: int;
count: int;
offsetIdOffset?: int;
messages: Api.TypeMessage[];
topics: Api.TypeForumTopic[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class MessagesNotModified extends VirtualClass<{
count: int;
}> {
count: int;
};
export class Chats extends VirtualClass<{
chats: Api.TypeChat[];
}> {
chats: Api.TypeChat[];
};
export class ChatsSlice extends VirtualClass<{
count: int;
chats: Api.TypeChat[];
}> {
count: int;
chats: Api.TypeChat[];
};
export class ChatFull extends VirtualClass<{
fullChat: Api.TypeChatFull;
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
fullChat: Api.TypeChatFull;
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class AffectedHistory extends VirtualClass<{
pts: int;
ptsCount: int;
offset: int;
}> {
pts: int;
ptsCount: int;
offset: int;
};
export class DhConfigNotModified extends VirtualClass<{
random: bytes;
}> {
random: bytes;
};
export class DhConfig extends VirtualClass<{
g: int;
p: bytes;
version: int;
random: bytes;
}> {
g: int;
p: bytes;
version: int;
random: bytes;
};
export class SentEncryptedMessage extends VirtualClass<{
date: int;
}> {
date: int;
};
export class SentEncryptedFile extends VirtualClass<{
date: int;
file: Api.TypeEncryptedFile;
}> {
date: int;
file: Api.TypeEncryptedFile;
};
export class StickersNotModified extends VirtualClass<void> {};
export class Stickers extends VirtualClass<{
hash: long;
stickers: Api.TypeDocument[];
}> {
hash: long;
stickers: Api.TypeDocument[];
};
export class AllStickersNotModified extends VirtualClass<void> {};
export class AllStickers extends VirtualClass<{
hash: long;
sets: Api.TypeStickerSet[];
}> {
hash: long;
sets: Api.TypeStickerSet[];
};
export class AffectedMessages extends VirtualClass<{
pts: int;
ptsCount: int;
}> {
pts: int;
ptsCount: int;
};
export class StickerSet extends VirtualClass<{
set: Api.TypeStickerSet;
packs: Api.TypeStickerPack[];
keywords: Api.TypeStickerKeyword[];
documents: Api.TypeDocument[];
}> {
set: Api.TypeStickerSet;
packs: Api.TypeStickerPack[];
keywords: Api.TypeStickerKeyword[];
documents: Api.TypeDocument[];
};
export class StickerSetNotModified extends VirtualClass<void> {};
export class SavedGifsNotModified extends VirtualClass<void> {};
export class SavedGifs extends VirtualClass<{
hash: long;
gifs: Api.TypeDocument[];
}> {
hash: long;
gifs: Api.TypeDocument[];
};
export class BotResults extends VirtualClass<{
// flags: undefined;
gallery?: true;
queryId: long;
nextOffset?: string;
switchPm?: Api.TypeInlineBotSwitchPM;
switchWebview?: Api.TypeInlineBotWebView;
results: Api.TypeBotInlineResult[];
cacheTime: int;
users: Api.TypeUser[];
}> {
// flags: undefined;
gallery?: true;
queryId: long;
nextOffset?: string;
switchPm?: Api.TypeInlineBotSwitchPM;
switchWebview?: Api.TypeInlineBotWebView;
results: Api.TypeBotInlineResult[];
cacheTime: int;
users: Api.TypeUser[];
};
export class BotCallbackAnswer extends VirtualClass<{
// flags: undefined;
alert?: true;
hasUrl?: true;
nativeUi?: true;
message?: string;
url?: string;
cacheTime: int;
}> {
// flags: undefined;
alert?: true;
hasUrl?: true;
nativeUi?: true;
message?: string;
url?: string;
cacheTime: int;
};
export class MessageEditData extends VirtualClass<{
// flags: undefined;
caption?: true;
} | void> {
// flags: undefined;
caption?: true;
};
export class PeerDialogs extends VirtualClass<{
dialogs: Api.TypeDialog[];
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
state: updates.TypeState;
}> {
dialogs: Api.TypeDialog[];
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
state: updates.TypeState;
};
export class FeaturedStickersNotModified extends VirtualClass<{
count: int;
}> {
count: int;
};
export class FeaturedStickers extends VirtualClass<{
// flags: undefined;
premium?: true;
hash: long;
count: int;
sets: Api.TypeStickerSetCovered[];
unread: long[];
}> {
// flags: undefined;
premium?: true;
hash: long;
count: int;
sets: Api.TypeStickerSetCovered[];
unread: long[];
};
export class RecentStickersNotModified extends VirtualClass<void> {};
export class RecentStickers extends VirtualClass<{
hash: long;
packs: Api.TypeStickerPack[];
stickers: Api.TypeDocument[];
dates: int[];
}> {
hash: long;
packs: Api.TypeStickerPack[];
stickers: Api.TypeDocument[];
dates: int[];
};
export class ArchivedStickers extends VirtualClass<{
count: int;
sets: Api.TypeStickerSetCovered[];
}> {
count: int;
sets: Api.TypeStickerSetCovered[];
};
export class StickerSetInstallResultSuccess extends VirtualClass<void> {};
export class StickerSetInstallResultArchive extends VirtualClass<{
sets: Api.TypeStickerSetCovered[];
}> {
sets: Api.TypeStickerSetCovered[];
};
export class HighScores extends VirtualClass<{
scores: Api.TypeHighScore[];
users: Api.TypeUser[];
}> {
scores: Api.TypeHighScore[];
users: Api.TypeUser[];
};
export class FavedStickersNotModified extends VirtualClass<void> {};
export class FavedStickers extends VirtualClass<{
hash: long;
packs: Api.TypeStickerPack[];
stickers: Api.TypeDocument[];
}> {
hash: long;
packs: Api.TypeStickerPack[];
stickers: Api.TypeDocument[];
};
export class FoundStickerSetsNotModified extends VirtualClass<void> {};
export class FoundStickerSets extends VirtualClass<{
hash: long;
sets: Api.TypeStickerSetCovered[];
}> {
hash: long;
sets: Api.TypeStickerSetCovered[];
};
export class SearchCounter extends VirtualClass<{
// flags: undefined;
inexact?: true;
filter: Api.TypeMessagesFilter;
count: int;
}> {
// flags: undefined;
inexact?: true;
filter: Api.TypeMessagesFilter;
count: int;
};
export class InactiveChats extends VirtualClass<{
dates: int[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
dates: int[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class VotesList extends VirtualClass<{
// flags: undefined;
count: int;
votes: Api.TypeMessagePeerVote[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
nextOffset?: string;
}> {
// flags: undefined;
count: int;
votes: Api.TypeMessagePeerVote[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
nextOffset?: string;
};
export class MessageViews extends VirtualClass<{
views: Api.TypeMessageViews[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
views: Api.TypeMessageViews[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class DiscussionMessage extends VirtualClass<{
// flags: undefined;
messages: Api.TypeMessage[];
maxId?: int;
readInboxMaxId?: int;
readOutboxMaxId?: int;
unreadCount: int;
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
// flags: undefined;
messages: Api.TypeMessage[];
maxId?: int;
readInboxMaxId?: int;
readOutboxMaxId?: int;
unreadCount: int;
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class HistoryImport extends VirtualClass<{
id: long;
}> {
id: long;
};
export class HistoryImportParsed extends VirtualClass<{
// flags: undefined;
pm?: true;
group?: true;
title?: string;
} | void> {
// flags: undefined;
pm?: true;
group?: true;
title?: string;
};
export class AffectedFoundMessages extends VirtualClass<{
pts: int;
ptsCount: int;
offset: int;
messages: int[];
}> {
pts: int;
ptsCount: int;
offset: int;
messages: int[];
};
export class ExportedChatInvites extends VirtualClass<{
count: int;
invites: Api.TypeExportedChatInvite[];
users: Api.TypeUser[];
}> {
count: int;
invites: Api.TypeExportedChatInvite[];
users: Api.TypeUser[];
};
export class ExportedChatInvite extends VirtualClass<{
invite: Api.TypeExportedChatInvite;
users: Api.TypeUser[];
}> {
invite: Api.TypeExportedChatInvite;
users: Api.TypeUser[];
};
export class ExportedChatInviteReplaced extends VirtualClass<{
invite: Api.TypeExportedChatInvite;
newInvite: Api.TypeExportedChatInvite;
users: Api.TypeUser[];
}> {
invite: Api.TypeExportedChatInvite;
newInvite: Api.TypeExportedChatInvite;
users: Api.TypeUser[];
};
export class ChatInviteImporters extends VirtualClass<{
count: int;
importers: Api.TypeChatInviteImporter[];
users: Api.TypeUser[];
}> {
count: int;
importers: Api.TypeChatInviteImporter[];
users: Api.TypeUser[];
};
export class ChatAdminsWithInvites extends VirtualClass<{
admins: Api.TypeChatAdminWithInvites[];
users: Api.TypeUser[];
}> {
admins: Api.TypeChatAdminWithInvites[];
users: Api.TypeUser[];
};
export class CheckedHistoryImportPeer extends VirtualClass<{
confirmText: string;
}> {
confirmText: string;
};
export class SponsoredMessages extends VirtualClass<{
// flags: undefined;
postsBetween?: int;
messages: Api.TypeSponsoredMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
// flags: undefined;
postsBetween?: int;
messages: Api.TypeSponsoredMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class SponsoredMessagesEmpty extends VirtualClass<void> {};
export class SearchResultsCalendar extends VirtualClass<{
// flags: undefined;
inexact?: true;
count: int;
minDate: int;
minMsgId: int;
offsetIdOffset?: int;
periods: Api.TypeSearchResultsCalendarPeriod[];
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
// flags: undefined;
inexact?: true;
count: int;
minDate: int;
minMsgId: int;
offsetIdOffset?: int;
periods: Api.TypeSearchResultsCalendarPeriod[];
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class SearchResultsPositions extends VirtualClass<{
count: int;
positions: Api.TypeSearchResultsPosition[];
}> {
count: int;
positions: Api.TypeSearchResultsPosition[];
};
export class PeerSettings extends VirtualClass<{
settings: Api.TypePeerSettings;
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
settings: Api.TypePeerSettings;
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class MessageReactionsList extends VirtualClass<{
// flags: undefined;
count: int;
reactions: Api.TypeMessagePeerReaction[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
nextOffset?: string;
}> {
// flags: undefined;
count: int;
reactions: Api.TypeMessagePeerReaction[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
nextOffset?: string;
};
export class AvailableReactionsNotModified extends VirtualClass<void> {};
export class AvailableReactions extends VirtualClass<{
hash: int;
reactions: Api.TypeAvailableReaction[];
}> {
hash: int;
reactions: Api.TypeAvailableReaction[];
};
export class TranscribedAudio extends VirtualClass<{
// flags: undefined;
pending?: true;
transcriptionId: long;
text: string;
trialRemainsNum?: int;
trialRemainsUntilDate?: int;
}> {
// flags: undefined;
pending?: true;
transcriptionId: long;
text: string;
trialRemainsNum?: int;
trialRemainsUntilDate?: int;
};
export class ReactionsNotModified extends VirtualClass<void> {};
export class Reactions extends VirtualClass<{
hash: long;
reactions: Api.TypeReaction[];
}> {
hash: long;
reactions: Api.TypeReaction[];
};
export class ForumTopics extends VirtualClass<{
// flags: undefined;
orderByCreateDate?: true;
count: int;
topics: Api.TypeForumTopic[];
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
pts: int;
}> {
// flags: undefined;
orderByCreateDate?: true;
count: int;
topics: Api.TypeForumTopic[];
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
pts: int;
};
export class EmojiGroupsNotModified extends VirtualClass<void> {};
export class EmojiGroups extends VirtualClass<{
hash: int;
groups: Api.TypeEmojiGroup[];
}> {
hash: int;
groups: Api.TypeEmojiGroup[];
};
export class TranslateResult extends VirtualClass<{
result: Api.TypeTextWithEntities[];
}> {
result: Api.TypeTextWithEntities[];
};
export class BotApp extends VirtualClass<{
// flags: undefined;
inactive?: true;
requestWriteAccess?: true;
hasSettings?: true;
app: Api.TypeBotApp;
}> {
// flags: undefined;
inactive?: true;
requestWriteAccess?: true;
hasSettings?: true;
app: Api.TypeBotApp;
};
export class WebPage extends VirtualClass<{
webpage: Api.TypeWebPage;
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
webpage: Api.TypeWebPage;
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class SavedDialogs extends VirtualClass<{
dialogs: Api.TypeSavedDialog[];
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
dialogs: Api.TypeSavedDialog[];
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class SavedDialogsSlice extends VirtualClass<{
count: int;
dialogs: Api.TypeSavedDialog[];
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
count: int;
dialogs: Api.TypeSavedDialog[];
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class SavedDialogsNotModified extends VirtualClass<{
count: int;
}> {
count: int;
};
export class SavedReactionTagsNotModified extends VirtualClass<void> {};
export class SavedReactionTags extends VirtualClass<{
tags: Api.TypeSavedReactionTag[];
hash: long;
}> {
tags: Api.TypeSavedReactionTag[];
hash: long;
};
export class QuickReplies extends VirtualClass<{
quickReplies: Api.TypeQuickReply[];
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
quickReplies: Api.TypeQuickReply[];
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class QuickRepliesNotModified extends VirtualClass<void> {};
export class DialogFilters extends VirtualClass<{
// flags: undefined;
tagsEnabled?: true;
filters: Api.TypeDialogFilter[];
}> {
// flags: undefined;
tagsEnabled?: true;
filters: Api.TypeDialogFilter[];
};
export class MyStickers extends VirtualClass<{
count: int;
sets: Api.TypeStickerSetCovered[];
}> {
count: int;
sets: Api.TypeStickerSetCovered[];
};
export class InvitedUsers extends VirtualClass<{
updates: Api.TypeUpdates;
missingInvitees: Api.TypeMissingInvitee[];
}> {
updates: Api.TypeUpdates;
missingInvitees: Api.TypeMissingInvitee[];
};
export class AvailableEffectsNotModified extends VirtualClass<void> {};
export class AvailableEffects extends VirtualClass<{
hash: int;
effects: Api.TypeAvailableEffect[];
documents: Api.TypeDocument[];
}> {
hash: int;
effects: Api.TypeAvailableEffect[];
documents: Api.TypeDocument[];
};
export class BotPreparedInlineMessage extends VirtualClass<{
id: string;
expireDate: int;
}> {
id: string;
expireDate: int;
};
export class PreparedInlineMessage extends VirtualClass<{
queryId: long;
result: Api.TypeBotInlineResult;
peerTypes: Api.TypeInlineQueryPeerType[];
cacheTime: int;
users: Api.TypeUser[];
}> {
queryId: long;
result: Api.TypeBotInlineResult;
peerTypes: Api.TypeInlineQueryPeerType[];
cacheTime: int;
users: Api.TypeUser[];
};
export class FoundStickersNotModified extends VirtualClass<{
// flags: undefined;
nextOffset?: int;
} | void> {
// flags: undefined;
nextOffset?: int;
};
export class FoundStickers extends VirtualClass<{
// flags: undefined;
nextOffset?: int;
hash: long;
stickers: Api.TypeDocument[];
}> {
// flags: undefined;
nextOffset?: int;
hash: long;
stickers: Api.TypeDocument[];
};
}
export namespace updates {
export class State extends VirtualClass<{
pts: int;
qts: int;
date: int;
seq: int;
unreadCount: int;
}> {
pts: int;
qts: int;
date: int;
seq: int;
unreadCount: int;
};
export class DifferenceEmpty extends VirtualClass<{
date: int;
seq: int;
}> {
date: int;
seq: int;
};
export class Difference extends VirtualClass<{
newMessages: Api.TypeMessage[];
newEncryptedMessages: Api.TypeEncryptedMessage[];
otherUpdates: Api.TypeUpdate[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
state: updates.TypeState;
}> {
newMessages: Api.TypeMessage[];
newEncryptedMessages: Api.TypeEncryptedMessage[];
otherUpdates: Api.TypeUpdate[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
state: updates.TypeState;
};
export class DifferenceSlice extends VirtualClass<{
newMessages: Api.TypeMessage[];
newEncryptedMessages: Api.TypeEncryptedMessage[];
otherUpdates: Api.TypeUpdate[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
intermediateState: updates.TypeState;
}> {
newMessages: Api.TypeMessage[];
newEncryptedMessages: Api.TypeEncryptedMessage[];
otherUpdates: Api.TypeUpdate[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
intermediateState: updates.TypeState;
};
export class DifferenceTooLong extends VirtualClass<{
pts: int;
}> {
pts: int;
};
export class ChannelDifferenceEmpty extends VirtualClass<{
// flags: undefined;
final?: true;
pts: int;
timeout?: int;
}> {
// flags: undefined;
final?: true;
pts: int;
timeout?: int;
};
export class ChannelDifferenceTooLong extends VirtualClass<{
// flags: undefined;
final?: true;
timeout?: int;
dialog: Api.TypeDialog;
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
// flags: undefined;
final?: true;
timeout?: int;
dialog: Api.TypeDialog;
messages: Api.TypeMessage[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class ChannelDifference extends VirtualClass<{
// flags: undefined;
final?: true;
pts: int;
timeout?: int;
newMessages: Api.TypeMessage[];
otherUpdates: Api.TypeUpdate[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
// flags: undefined;
final?: true;
pts: int;
timeout?: int;
newMessages: Api.TypeMessage[];
otherUpdates: Api.TypeUpdate[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
}
export namespace photos {
export class Photos extends VirtualClass<{
photos: Api.TypePhoto[];
users: Api.TypeUser[];
}> {
photos: Api.TypePhoto[];
users: Api.TypeUser[];
};
export class PhotosSlice extends VirtualClass<{
count: int;
photos: Api.TypePhoto[];
users: Api.TypeUser[];
}> {
count: int;
photos: Api.TypePhoto[];
users: Api.TypeUser[];
};
export class Photo extends VirtualClass<{
photo: Api.TypePhoto;
users: Api.TypeUser[];
}> {
photo: Api.TypePhoto;
users: Api.TypeUser[];
};
}
export namespace upload {
export class File extends VirtualClass<{
type: storage.TypeFileType;
mtime: int;
bytes: bytes;
}> {
type: storage.TypeFileType;
mtime: int;
bytes: bytes;
};
export class FileCdnRedirect extends VirtualClass<{
dcId: int;
fileToken: bytes;
encryptionKey: bytes;
encryptionIv: bytes;
fileHashes: Api.TypeFileHash[];
}> {
dcId: int;
fileToken: bytes;
encryptionKey: bytes;
encryptionIv: bytes;
fileHashes: Api.TypeFileHash[];
};
export class WebFile extends VirtualClass<{
size: int;
mimeType: string;
fileType: storage.TypeFileType;
mtime: int;
bytes: bytes;
}> {
size: int;
mimeType: string;
fileType: storage.TypeFileType;
mtime: int;
bytes: bytes;
};
export class CdnFileReuploadNeeded extends VirtualClass<{
requestToken: bytes;
}> {
requestToken: bytes;
};
export class CdnFile extends VirtualClass<{
bytes: bytes;
}> {
bytes: bytes;
};
}
export namespace help {
export class AppUpdate extends VirtualClass<{
// flags: undefined;
canNotSkip?: true;
id: int;
version: string;
text: string;
entities: Api.TypeMessageEntity[];
document?: Api.TypeDocument;
url?: string;
sticker?: Api.TypeDocument;
}> {
// flags: undefined;
canNotSkip?: true;
id: int;
version: string;
text: string;
entities: Api.TypeMessageEntity[];
document?: Api.TypeDocument;
url?: string;
sticker?: Api.TypeDocument;
};
export class NoAppUpdate extends VirtualClass<void> {};
export class InviteText extends VirtualClass<{
message: string;
}> {
message: string;
};
export class Support extends VirtualClass<{
phoneNumber: string;
user: Api.TypeUser;
}> {
phoneNumber: string;
user: Api.TypeUser;
};
export class TermsOfService extends VirtualClass<{
// flags: undefined;
popup?: true;
id: Api.TypeDataJSON;
text: string;
entities: Api.TypeMessageEntity[];
minAgeConfirm?: int;
}> {
// flags: undefined;
popup?: true;
id: Api.TypeDataJSON;
text: string;
entities: Api.TypeMessageEntity[];
minAgeConfirm?: int;
};
export class RecentMeUrls extends VirtualClass<{
urls: Api.TypeRecentMeUrl[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
urls: Api.TypeRecentMeUrl[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class TermsOfServiceUpdateEmpty extends VirtualClass<{
expires: int;
}> {
expires: int;
};
export class TermsOfServiceUpdate extends VirtualClass<{
expires: int;
termsOfService: help.TypeTermsOfService;
}> {
expires: int;
termsOfService: help.TypeTermsOfService;
};
export class DeepLinkInfoEmpty extends VirtualClass<void> {};
export class DeepLinkInfo extends VirtualClass<{
// flags: undefined;
updateApp?: true;
message: string;
entities?: Api.TypeMessageEntity[];
}> {
// flags: undefined;
updateApp?: true;
message: string;
entities?: Api.TypeMessageEntity[];
};
export class PassportConfigNotModified extends VirtualClass<void> {};
export class PassportConfig extends VirtualClass<{
hash: int;
countriesLangs: Api.TypeDataJSON;
}> {
hash: int;
countriesLangs: Api.TypeDataJSON;
};
export class SupportName extends VirtualClass<{
name: string;
}> {
name: string;
};
export class UserInfoEmpty extends VirtualClass<void> {};
export class UserInfo extends VirtualClass<{
message: string;
entities: Api.TypeMessageEntity[];
author: string;
date: int;
}> {
message: string;
entities: Api.TypeMessageEntity[];
author: string;
date: int;
};
export class PromoDataEmpty extends VirtualClass<{
expires: int;
}> {
expires: int;
};
export class PromoData extends VirtualClass<{
// flags: undefined;
proxy?: true;
expires: int;
peer: Api.TypePeer;
chats: Api.TypeChat[];
users: Api.TypeUser[];
psaType?: string;
psaMessage?: string;
}> {
// flags: undefined;
proxy?: true;
expires: int;
peer: Api.TypePeer;
chats: Api.TypeChat[];
users: Api.TypeUser[];
psaType?: string;
psaMessage?: string;
};
export class CountryCode extends VirtualClass<{
// flags: undefined;
countryCode: string;
prefixes?: string[];
patterns?: string[];
}> {
// flags: undefined;
countryCode: string;
prefixes?: string[];
patterns?: string[];
};
export class Country extends VirtualClass<{
// flags: undefined;
hidden?: true;
iso2: string;
defaultName: string;
name?: string;
countryCodes: help.TypeCountryCode[];
}> {
// flags: undefined;
hidden?: true;
iso2: string;
defaultName: string;
name?: string;
countryCodes: help.TypeCountryCode[];
};
export class CountriesListNotModified extends VirtualClass<void> {};
export class CountriesList extends VirtualClass<{
countries: help.TypeCountry[];
hash: int;
}> {
countries: help.TypeCountry[];
hash: int;
};
export class PremiumPromo extends VirtualClass<{
statusText: string;
statusEntities: Api.TypeMessageEntity[];
videoSections: string[];
videos: Api.TypeDocument[];
periodOptions: Api.TypePremiumSubscriptionOption[];
users: Api.TypeUser[];
}> {
statusText: string;
statusEntities: Api.TypeMessageEntity[];
videoSections: string[];
videos: Api.TypeDocument[];
periodOptions: Api.TypePremiumSubscriptionOption[];
users: Api.TypeUser[];
};
export class AppConfigNotModified extends VirtualClass<void> {};
export class AppConfig extends VirtualClass<{
hash: int;
config: Api.TypeJSONValue;
}> {
hash: int;
config: Api.TypeJSONValue;
};
export class PeerColorSet extends VirtualClass<{
colors: int[];
}> {
colors: int[];
};
export class PeerColorProfileSet extends VirtualClass<{
paletteColors: int[];
bgColors: int[];
storyColors: int[];
}> {
paletteColors: int[];
bgColors: int[];
storyColors: int[];
};
export class PeerColorOption extends VirtualClass<{
// flags: undefined;
hidden?: true;
colorId: int;
colors?: help.TypePeerColorSet;
darkColors?: help.TypePeerColorSet;
channelMinLevel?: int;
groupMinLevel?: int;
}> {
// flags: undefined;
hidden?: true;
colorId: int;
colors?: help.TypePeerColorSet;
darkColors?: help.TypePeerColorSet;
channelMinLevel?: int;
groupMinLevel?: int;
};
export class PeerColorsNotModified extends VirtualClass<void> {};
export class PeerColors extends VirtualClass<{
hash: int;
colors: help.TypePeerColorOption[];
}> {
hash: int;
colors: help.TypePeerColorOption[];
};
export class TimezonesListNotModified extends VirtualClass<void> {};
export class TimezonesList extends VirtualClass<{
timezones: Api.TypeTimezone[];
hash: int;
}> {
timezones: Api.TypeTimezone[];
hash: int;
};
export class ConfigSimple extends VirtualClass<{
date: int;
expires: int;
rules: Api.TypeAccessPointRule[];
}> {
date: int;
expires: int;
rules: Api.TypeAccessPointRule[];
};
}
export namespace account {
export class PrivacyRules extends VirtualClass<{
rules: Api.TypePrivacyRule[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
rules: Api.TypePrivacyRule[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class Authorizations extends VirtualClass<{
authorizationTtlDays: int;
authorizations: Api.TypeAuthorization[];
}> {
authorizationTtlDays: int;
authorizations: Api.TypeAuthorization[];
};
export class Password extends VirtualClass<{
// flags: undefined;
hasRecovery?: true;
hasSecureValues?: true;
hasPassword?: true;
currentAlgo?: Api.TypePasswordKdfAlgo;
srp_B?: bytes;
srpId?: long;
hint?: string;
emailUnconfirmedPattern?: string;
newAlgo: Api.TypePasswordKdfAlgo;
newSecureAlgo: Api.TypeSecurePasswordKdfAlgo;
secureRandom: bytes;
pendingResetDate?: int;
loginEmailPattern?: string;
}> {
// flags: undefined;
hasRecovery?: true;
hasSecureValues?: true;
hasPassword?: true;
currentAlgo?: Api.TypePasswordKdfAlgo;
srp_B?: bytes;
srpId?: long;
hint?: string;
emailUnconfirmedPattern?: string;
newAlgo: Api.TypePasswordKdfAlgo;
newSecureAlgo: Api.TypeSecurePasswordKdfAlgo;
secureRandom: bytes;
pendingResetDate?: int;
loginEmailPattern?: string;
};
export class PasswordSettings extends VirtualClass<{
// flags: undefined;
email?: string;
secureSettings?: Api.TypeSecureSecretSettings;
} | void> {
// flags: undefined;
email?: string;
secureSettings?: Api.TypeSecureSecretSettings;
};
export class PasswordInputSettings extends VirtualClass<{
// flags: undefined;
newAlgo?: Api.TypePasswordKdfAlgo;
newPasswordHash?: bytes;
hint?: string;
email?: string;
newSecureSettings?: Api.TypeSecureSecretSettings;
} | void> {
// flags: undefined;
newAlgo?: Api.TypePasswordKdfAlgo;
newPasswordHash?: bytes;
hint?: string;
email?: string;
newSecureSettings?: Api.TypeSecureSecretSettings;
};
export class TmpPassword extends VirtualClass<{
tmpPassword: bytes;
validUntil: int;
}> {
tmpPassword: bytes;
validUntil: int;
};
export class WebAuthorizations extends VirtualClass<{
authorizations: Api.TypeWebAuthorization[];
users: Api.TypeUser[];
}> {
authorizations: Api.TypeWebAuthorization[];
users: Api.TypeUser[];
};
export class AuthorizationForm extends VirtualClass<{
// flags: undefined;
requiredTypes: Api.TypeSecureRequiredType[];
values: Api.TypeSecureValue[];
errors: Api.TypeSecureValueError[];
users: Api.TypeUser[];
privacyPolicyUrl?: string;
}> {
// flags: undefined;
requiredTypes: Api.TypeSecureRequiredType[];
values: Api.TypeSecureValue[];
errors: Api.TypeSecureValueError[];
users: Api.TypeUser[];
privacyPolicyUrl?: string;
};
export class SentEmailCode extends VirtualClass<{
emailPattern: string;
length: int;
}> {
emailPattern: string;
length: int;
};
export class Takeout extends VirtualClass<{
id: long;
}> {
id: long;
};
export class WallPapersNotModified extends VirtualClass<void> {};
export class WallPapers extends VirtualClass<{
hash: long;
wallpapers: Api.TypeWallPaper[];
}> {
hash: long;
wallpapers: Api.TypeWallPaper[];
};
export class AutoDownloadSettings extends VirtualClass<{
low: Api.TypeAutoDownloadSettings;
medium: Api.TypeAutoDownloadSettings;
high: Api.TypeAutoDownloadSettings;
}> {
low: Api.TypeAutoDownloadSettings;
medium: Api.TypeAutoDownloadSettings;
high: Api.TypeAutoDownloadSettings;
};
export class ThemesNotModified extends VirtualClass<void> {};
export class Themes extends VirtualClass<{
hash: long;
themes: Api.TypeTheme[];
}> {
hash: long;
themes: Api.TypeTheme[];
};
export class ContentSettings extends VirtualClass<{
// flags: undefined;
sensitiveEnabled?: true;
sensitiveCanChange?: true;
} | void> {
// flags: undefined;
sensitiveEnabled?: true;
sensitiveCanChange?: true;
};
export class ResetPasswordFailedWait extends VirtualClass<{
retryDate: int;
}> {
retryDate: int;
};
export class ResetPasswordRequestedWait extends VirtualClass<{
untilDate: int;
}> {
untilDate: int;
};
export class ResetPasswordOk extends VirtualClass<void> {};
export class SavedRingtonesNotModified extends VirtualClass<void> {};
export class SavedRingtones extends VirtualClass<{
hash: long;
ringtones: Api.TypeDocument[];
}> {
hash: long;
ringtones: Api.TypeDocument[];
};
export class SavedRingtone extends VirtualClass<void> {};
export class SavedRingtoneConverted extends VirtualClass<{
document: Api.TypeDocument;
}> {
document: Api.TypeDocument;
};
export class EmojiStatusesNotModified extends VirtualClass<void> {};
export class EmojiStatuses extends VirtualClass<{
hash: long;
statuses: Api.TypeEmojiStatus[];
}> {
hash: long;
statuses: Api.TypeEmojiStatus[];
};
export class EmailVerified extends VirtualClass<{
email: string;
}> {
email: string;
};
export class EmailVerifiedLogin extends VirtualClass<{
email: string;
sentCode: auth.TypeSentCode;
}> {
email: string;
sentCode: auth.TypeSentCode;
};
export class AutoSaveSettings extends VirtualClass<{
usersSettings: Api.TypeAutoSaveSettings;
chatsSettings: Api.TypeAutoSaveSettings;
broadcastsSettings: Api.TypeAutoSaveSettings;
exceptions: Api.TypeAutoSaveException[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
usersSettings: Api.TypeAutoSaveSettings;
chatsSettings: Api.TypeAutoSaveSettings;
broadcastsSettings: Api.TypeAutoSaveSettings;
exceptions: Api.TypeAutoSaveException[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class ConnectedBots extends VirtualClass<{
connectedBots: Api.TypeConnectedBot[];
users: Api.TypeUser[];
}> {
connectedBots: Api.TypeConnectedBot[];
users: Api.TypeUser[];
};
export class BusinessChatLinks extends VirtualClass<{
links: Api.TypeBusinessChatLink[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
links: Api.TypeBusinessChatLink[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class ResolvedBusinessChatLinks extends VirtualClass<{
// flags: undefined;
peer: Api.TypePeer;
message: string;
entities?: Api.TypeMessageEntity[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
// flags: undefined;
peer: Api.TypePeer;
message: string;
entities?: Api.TypeMessageEntity[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
}
export namespace channels {
export class ChannelParticipants extends VirtualClass<{
count: int;
participants: Api.TypeChannelParticipant[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
count: int;
participants: Api.TypeChannelParticipant[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class ChannelParticipantsNotModified extends VirtualClass<void> {};
export class ChannelParticipant extends VirtualClass<{
participant: Api.TypeChannelParticipant;
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
participant: Api.TypeChannelParticipant;
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class AdminLogResults extends VirtualClass<{
events: Api.TypeChannelAdminLogEvent[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
events: Api.TypeChannelAdminLogEvent[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class SendAsPeers extends VirtualClass<{
peers: Api.TypeSendAsPeer[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
peers: Api.TypeSendAsPeer[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class SponsoredMessageReportResultChooseOption extends VirtualClass<{
title: string;
options: Api.TypeSponsoredMessageReportOption[];
}> {
title: string;
options: Api.TypeSponsoredMessageReportOption[];
};
export class SponsoredMessageReportResultAdsHidden extends VirtualClass<void> {};
export class SponsoredMessageReportResultReported extends VirtualClass<void> {};
}
export namespace payments {
export class PaymentForm extends VirtualClass<{
// flags: undefined;
canSaveCredentials?: true;
passwordMissing?: true;
formId: long;
botId: long;
title: string;
description: string;
photo?: Api.TypeWebDocument;
invoice: Api.TypeInvoice;
providerId: long;
url: string;
nativeProvider?: string;
nativeParams?: Api.TypeDataJSON;
additionalMethods?: Api.TypePaymentFormMethod[];
savedInfo?: Api.TypePaymentRequestedInfo;
savedCredentials?: Api.TypePaymentSavedCredentials[];
users: Api.TypeUser[];
}> {
// flags: undefined;
canSaveCredentials?: true;
passwordMissing?: true;
formId: long;
botId: long;
title: string;
description: string;
photo?: Api.TypeWebDocument;
invoice: Api.TypeInvoice;
providerId: long;
url: string;
nativeProvider?: string;
nativeParams?: Api.TypeDataJSON;
additionalMethods?: Api.TypePaymentFormMethod[];
savedInfo?: Api.TypePaymentRequestedInfo;
savedCredentials?: Api.TypePaymentSavedCredentials[];
users: Api.TypeUser[];
};
export class PaymentFormStars extends VirtualClass<{
// flags: undefined;
formId: long;
botId: long;
title: string;
description: string;
photo?: Api.TypeWebDocument;
invoice: Api.TypeInvoice;
users: Api.TypeUser[];
}> {
// flags: undefined;
formId: long;
botId: long;
title: string;
description: string;
photo?: Api.TypeWebDocument;
invoice: Api.TypeInvoice;
users: Api.TypeUser[];
};
export class PaymentFormStarGift extends VirtualClass<{
formId: long;
invoice: Api.TypeInvoice;
}> {
formId: long;
invoice: Api.TypeInvoice;
};
export class ValidatedRequestedInfo extends VirtualClass<{
// flags: undefined;
id?: string;
shippingOptions?: Api.TypeShippingOption[];
} | void> {
// flags: undefined;
id?: string;
shippingOptions?: Api.TypeShippingOption[];
};
export class PaymentResult extends VirtualClass<{
updates: Api.TypeUpdates;
}> {
updates: Api.TypeUpdates;
};
export class PaymentVerificationNeeded extends VirtualClass<{
url: string;
}> {
url: string;
};
export class PaymentReceipt extends VirtualClass<{
// flags: undefined;
date: int;
botId: long;
providerId: long;
title: string;
description: string;
photo?: Api.TypeWebDocument;
invoice: Api.TypeInvoice;
info?: Api.TypePaymentRequestedInfo;
shipping?: Api.TypeShippingOption;
tipAmount?: long;
currency: string;
totalAmount: long;
credentialsTitle: string;
users: Api.TypeUser[];
}> {
// flags: undefined;
date: int;
botId: long;
providerId: long;
title: string;
description: string;
photo?: Api.TypeWebDocument;
invoice: Api.TypeInvoice;
info?: Api.TypePaymentRequestedInfo;
shipping?: Api.TypeShippingOption;
tipAmount?: long;
currency: string;
totalAmount: long;
credentialsTitle: string;
users: Api.TypeUser[];
};
export class PaymentReceiptStars extends VirtualClass<{
// flags: undefined;
date: int;
botId: long;
title: string;
description: string;
photo?: Api.TypeWebDocument;
invoice: Api.TypeInvoice;
currency: string;
totalAmount: long;
transactionId: string;
users: Api.TypeUser[];
}> {
// flags: undefined;
date: int;
botId: long;
title: string;
description: string;
photo?: Api.TypeWebDocument;
invoice: Api.TypeInvoice;
currency: string;
totalAmount: long;
transactionId: string;
users: Api.TypeUser[];
};
export class SavedInfo extends VirtualClass<{
// flags: undefined;
hasSavedCredentials?: true;
savedInfo?: Api.TypePaymentRequestedInfo;
} | void> {
// flags: undefined;
hasSavedCredentials?: true;
savedInfo?: Api.TypePaymentRequestedInfo;
};
export class BankCardData extends VirtualClass<{
title: string;
openUrls: Api.TypeBankCardOpenUrl[];
}> {
title: string;
openUrls: Api.TypeBankCardOpenUrl[];
};
export class ExportedInvoice extends VirtualClass<{
url: string;
}> {
url: string;
};
export class CheckedGiftCode extends VirtualClass<{
// flags: undefined;
viaGiveaway?: true;
fromId?: Api.TypePeer;
giveawayMsgId?: int;
toId?: long;
date: int;
months: int;
usedDate?: int;
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
// flags: undefined;
viaGiveaway?: true;
fromId?: Api.TypePeer;
giveawayMsgId?: int;
toId?: long;
date: int;
months: int;
usedDate?: int;
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class GiveawayInfo extends VirtualClass<{
// flags: undefined;
participating?: true;
preparingResults?: true;
startDate: int;
joinedTooEarlyDate?: int;
adminDisallowedChatId?: long;
disallowedCountry?: string;
}> {
// flags: undefined;
participating?: true;
preparingResults?: true;
startDate: int;
joinedTooEarlyDate?: int;
adminDisallowedChatId?: long;
disallowedCountry?: string;
};
export class GiveawayInfoResults extends VirtualClass<{
// flags: undefined;
winner?: true;
refunded?: true;
startDate: int;
giftCodeSlug?: string;
starsPrize?: long;
finishDate: int;
winnersCount: int;
activatedCount?: int;
}> {
// flags: undefined;
winner?: true;
refunded?: true;
startDate: int;
giftCodeSlug?: string;
starsPrize?: long;
finishDate: int;
winnersCount: int;
activatedCount?: int;
};
export class StarsStatus extends VirtualClass<{
// flags: undefined;
balance: Api.TypeStarsAmount;
subscriptions?: Api.TypeStarsSubscription[];
subscriptionsNextOffset?: string;
subscriptionsMissingBalance?: long;
history?: Api.TypeStarsTransaction[];
nextOffset?: string;
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
// flags: undefined;
balance: Api.TypeStarsAmount;
subscriptions?: Api.TypeStarsSubscription[];
subscriptionsNextOffset?: string;
subscriptionsMissingBalance?: long;
history?: Api.TypeStarsTransaction[];
nextOffset?: string;
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class StarsRevenueStats extends VirtualClass<{
revenueGraph: Api.TypeStatsGraph;
status: Api.TypeStarsRevenueStatus;
usdRate: double;
}> {
revenueGraph: Api.TypeStatsGraph;
status: Api.TypeStarsRevenueStatus;
usdRate: double;
};
export class StarsRevenueWithdrawalUrl extends VirtualClass<{
url: string;
}> {
url: string;
};
export class StarsRevenueAdsAccountUrl extends VirtualClass<{
url: string;
}> {
url: string;
};
export class StarGiftsNotModified extends VirtualClass<void> {};
export class StarGifts extends VirtualClass<{
hash: int;
gifts: Api.TypeStarGift[];
}> {
hash: int;
gifts: Api.TypeStarGift[];
};
export class UserStarGifts extends VirtualClass<{
// flags: undefined;
count: int;
gifts: Api.TypeUserStarGift[];
nextOffset?: string;
users: Api.TypeUser[];
}> {
// flags: undefined;
count: int;
gifts: Api.TypeUserStarGift[];
nextOffset?: string;
users: Api.TypeUser[];
};
export class ConnectedStarRefBots extends VirtualClass<{
count: int;
connectedBots: Api.TypeConnectedBotStarRef[];
users: Api.TypeUser[];
}> {
count: int;
connectedBots: Api.TypeConnectedBotStarRef[];
users: Api.TypeUser[];
};
export class SuggestedStarRefBots extends VirtualClass<{
// flags: undefined;
count: int;
suggestedBots: Api.TypeStarRefProgram[];
users: Api.TypeUser[];
nextOffset?: string;
}> {
// flags: undefined;
count: int;
suggestedBots: Api.TypeStarRefProgram[];
users: Api.TypeUser[];
nextOffset?: string;
};
export class StarGiftUpgradePreview extends VirtualClass<{
sampleAttributes: Api.TypeStarGiftAttribute[];
}> {
sampleAttributes: Api.TypeStarGiftAttribute[];
};
}
export namespace phone {
export class PhoneCall extends VirtualClass<{
phoneCall: Api.TypePhoneCall;
users: Api.TypeUser[];
}> {
phoneCall: Api.TypePhoneCall;
users: Api.TypeUser[];
};
export class GroupCall extends VirtualClass<{
call: Api.TypeGroupCall;
participants: Api.TypeGroupCallParticipant[];
participantsNextOffset: string;
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
call: Api.TypeGroupCall;
participants: Api.TypeGroupCallParticipant[];
participantsNextOffset: string;
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class GroupParticipants extends VirtualClass<{
count: int;
participants: Api.TypeGroupCallParticipant[];
nextOffset: string;
chats: Api.TypeChat[];
users: Api.TypeUser[];
version: int;
}> {
count: int;
participants: Api.TypeGroupCallParticipant[];
nextOffset: string;
chats: Api.TypeChat[];
users: Api.TypeUser[];
version: int;
};
export class JoinAsPeers extends VirtualClass<{
peers: Api.TypePeer[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
peers: Api.TypePeer[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class ExportedGroupCallInvite extends VirtualClass<{
link: string;
}> {
link: string;
};
export class GroupCallStreamChannels extends VirtualClass<{
channels: Api.TypeGroupCallStreamChannel[];
}> {
channels: Api.TypeGroupCallStreamChannel[];
};
export class GroupCallStreamRtmpUrl extends VirtualClass<{
url: string;
key: string;
}> {
url: string;
key: string;
};
}
export namespace stats {
export class BroadcastStats extends VirtualClass<{
period: Api.TypeStatsDateRangeDays;
followers: Api.TypeStatsAbsValueAndPrev;
viewsPerPost: Api.TypeStatsAbsValueAndPrev;
sharesPerPost: Api.TypeStatsAbsValueAndPrev;
reactionsPerPost: Api.TypeStatsAbsValueAndPrev;
viewsPerStory: Api.TypeStatsAbsValueAndPrev;
sharesPerStory: Api.TypeStatsAbsValueAndPrev;
reactionsPerStory: Api.TypeStatsAbsValueAndPrev;
enabledNotifications: Api.TypeStatsPercentValue;
growthGraph: Api.TypeStatsGraph;
followersGraph: Api.TypeStatsGraph;
muteGraph: Api.TypeStatsGraph;
topHoursGraph: Api.TypeStatsGraph;
interactionsGraph: Api.TypeStatsGraph;
ivInteractionsGraph: Api.TypeStatsGraph;
viewsBySourceGraph: Api.TypeStatsGraph;
newFollowersBySourceGraph: Api.TypeStatsGraph;
languagesGraph: Api.TypeStatsGraph;
reactionsByEmotionGraph: Api.TypeStatsGraph;
storyInteractionsGraph: Api.TypeStatsGraph;
storyReactionsByEmotionGraph: Api.TypeStatsGraph;
recentPostsInteractions: Api.TypePostInteractionCounters[];
}> {
period: Api.TypeStatsDateRangeDays;
followers: Api.TypeStatsAbsValueAndPrev;
viewsPerPost: Api.TypeStatsAbsValueAndPrev;
sharesPerPost: Api.TypeStatsAbsValueAndPrev;
reactionsPerPost: Api.TypeStatsAbsValueAndPrev;
viewsPerStory: Api.TypeStatsAbsValueAndPrev;
sharesPerStory: Api.TypeStatsAbsValueAndPrev;
reactionsPerStory: Api.TypeStatsAbsValueAndPrev;
enabledNotifications: Api.TypeStatsPercentValue;
growthGraph: Api.TypeStatsGraph;
followersGraph: Api.TypeStatsGraph;
muteGraph: Api.TypeStatsGraph;
topHoursGraph: Api.TypeStatsGraph;
interactionsGraph: Api.TypeStatsGraph;
ivInteractionsGraph: Api.TypeStatsGraph;
viewsBySourceGraph: Api.TypeStatsGraph;
newFollowersBySourceGraph: Api.TypeStatsGraph;
languagesGraph: Api.TypeStatsGraph;
reactionsByEmotionGraph: Api.TypeStatsGraph;
storyInteractionsGraph: Api.TypeStatsGraph;
storyReactionsByEmotionGraph: Api.TypeStatsGraph;
recentPostsInteractions: Api.TypePostInteractionCounters[];
};
export class MegagroupStats extends VirtualClass<{
period: Api.TypeStatsDateRangeDays;
members: Api.TypeStatsAbsValueAndPrev;
messages: Api.TypeStatsAbsValueAndPrev;
viewers: Api.TypeStatsAbsValueAndPrev;
posters: Api.TypeStatsAbsValueAndPrev;
growthGraph: Api.TypeStatsGraph;
membersGraph: Api.TypeStatsGraph;
newMembersBySourceGraph: Api.TypeStatsGraph;
languagesGraph: Api.TypeStatsGraph;
messagesGraph: Api.TypeStatsGraph;
actionsGraph: Api.TypeStatsGraph;
topHoursGraph: Api.TypeStatsGraph;
weekdaysGraph: Api.TypeStatsGraph;
topPosters: Api.TypeStatsGroupTopPoster[];
topAdmins: Api.TypeStatsGroupTopAdmin[];
topInviters: Api.TypeStatsGroupTopInviter[];
users: Api.TypeUser[];
}> {
period: Api.TypeStatsDateRangeDays;
members: Api.TypeStatsAbsValueAndPrev;
messages: Api.TypeStatsAbsValueAndPrev;
viewers: Api.TypeStatsAbsValueAndPrev;
posters: Api.TypeStatsAbsValueAndPrev;
growthGraph: Api.TypeStatsGraph;
membersGraph: Api.TypeStatsGraph;
newMembersBySourceGraph: Api.TypeStatsGraph;
languagesGraph: Api.TypeStatsGraph;
messagesGraph: Api.TypeStatsGraph;
actionsGraph: Api.TypeStatsGraph;
topHoursGraph: Api.TypeStatsGraph;
weekdaysGraph: Api.TypeStatsGraph;
topPosters: Api.TypeStatsGroupTopPoster[];
topAdmins: Api.TypeStatsGroupTopAdmin[];
topInviters: Api.TypeStatsGroupTopInviter[];
users: Api.TypeUser[];
};
export class MessageStats extends VirtualClass<{
viewsGraph: Api.TypeStatsGraph;
reactionsByEmotionGraph: Api.TypeStatsGraph;
}> {
viewsGraph: Api.TypeStatsGraph;
reactionsByEmotionGraph: Api.TypeStatsGraph;
};
export class StoryStats extends VirtualClass<{
viewsGraph: Api.TypeStatsGraph;
reactionsByEmotionGraph: Api.TypeStatsGraph;
}> {
viewsGraph: Api.TypeStatsGraph;
reactionsByEmotionGraph: Api.TypeStatsGraph;
};
export class PublicForwards extends VirtualClass<{
// flags: undefined;
count: int;
forwards: Api.TypePublicForward[];
nextOffset?: string;
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
// flags: undefined;
count: int;
forwards: Api.TypePublicForward[];
nextOffset?: string;
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class BroadcastRevenueStats extends VirtualClass<{
topHoursGraph: Api.TypeStatsGraph;
revenueGraph: Api.TypeStatsGraph;
balances: Api.TypeBroadcastRevenueBalances;
usdRate: double;
}> {
topHoursGraph: Api.TypeStatsGraph;
revenueGraph: Api.TypeStatsGraph;
balances: Api.TypeBroadcastRevenueBalances;
usdRate: double;
};
export class BroadcastRevenueWithdrawalUrl extends VirtualClass<{
url: string;
}> {
url: string;
};
export class BroadcastRevenueTransactions extends VirtualClass<{
count: int;
transactions: Api.TypeBroadcastRevenueTransaction[];
}> {
count: int;
transactions: Api.TypeBroadcastRevenueTransaction[];
};
}
export namespace stickers {
export class SuggestedShortName extends VirtualClass<{
shortName: string;
}> {
shortName: string;
};
}
export namespace users {
export class UserFull extends VirtualClass<{
fullUser: Api.TypeUserFull;
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
fullUser: Api.TypeUserFull;
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
}
export namespace chatlists {
export class ExportedChatlistInvite extends VirtualClass<{
filter: Api.TypeDialogFilter;
invite: Api.TypeExportedChatlistInvite;
}> {
filter: Api.TypeDialogFilter;
invite: Api.TypeExportedChatlistInvite;
};
export class ExportedInvites extends VirtualClass<{
invites: Api.TypeExportedChatlistInvite[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
invites: Api.TypeExportedChatlistInvite[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class ChatlistInviteAlready extends VirtualClass<{
filterId: int;
missingPeers: Api.TypePeer[];
alreadyPeers: Api.TypePeer[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
filterId: int;
missingPeers: Api.TypePeer[];
alreadyPeers: Api.TypePeer[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class ChatlistInvite extends VirtualClass<{
// flags: undefined;
titleNoanimate?: true;
title: Api.TypeTextWithEntities;
emoticon?: string;
peers: Api.TypePeer[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
// flags: undefined;
titleNoanimate?: true;
title: Api.TypeTextWithEntities;
emoticon?: string;
peers: Api.TypePeer[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class ChatlistUpdates extends VirtualClass<{
missingPeers: Api.TypePeer[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
missingPeers: Api.TypePeer[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
}
export namespace bots {
export class BotInfo extends VirtualClass<{
name: string;
about: string;
description: string;
}> {
name: string;
about: string;
description: string;
};
export class PopularAppBots extends VirtualClass<{
// flags: undefined;
nextOffset?: string;
users: Api.TypeUser[];
}> {
// flags: undefined;
nextOffset?: string;
users: Api.TypeUser[];
};
export class PreviewInfo extends VirtualClass<{
media: Api.TypeBotPreviewMedia[];
langCodes: string[];
}> {
media: Api.TypeBotPreviewMedia[];
langCodes: string[];
};
}
export namespace stories {
export class AllStoriesNotModified extends VirtualClass<{
// flags: undefined;
state: string;
stealthMode: Api.TypeStoriesStealthMode;
}> {
// flags: undefined;
state: string;
stealthMode: Api.TypeStoriesStealthMode;
};
export class AllStories extends VirtualClass<{
// flags: undefined;
hasMore?: true;
count: int;
state: string;
peerStories: Api.TypePeerStories[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
stealthMode: Api.TypeStoriesStealthMode;
}> {
// flags: undefined;
hasMore?: true;
count: int;
state: string;
peerStories: Api.TypePeerStories[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
stealthMode: Api.TypeStoriesStealthMode;
};
export class Stories extends VirtualClass<{
// flags: undefined;
count: int;
stories: Api.TypeStoryItem[];
pinnedToTop?: int[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
// flags: undefined;
count: int;
stories: Api.TypeStoryItem[];
pinnedToTop?: int[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class StoryViewsList extends VirtualClass<{
// flags: undefined;
count: int;
viewsCount: int;
forwardsCount: int;
reactionsCount: int;
views: Api.TypeStoryView[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
nextOffset?: string;
}> {
// flags: undefined;
count: int;
viewsCount: int;
forwardsCount: int;
reactionsCount: int;
views: Api.TypeStoryView[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
nextOffset?: string;
};
export class StoryViews extends VirtualClass<{
views: Api.TypeStoryViews[];
users: Api.TypeUser[];
}> {
views: Api.TypeStoryViews[];
users: Api.TypeUser[];
};
export class PeerStories extends VirtualClass<{
stories: Api.TypePeerStories;
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
stories: Api.TypePeerStories;
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class StoryReactionsList extends VirtualClass<{
// flags: undefined;
count: int;
reactions: Api.TypeStoryReaction[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
nextOffset?: string;
}> {
// flags: undefined;
count: int;
reactions: Api.TypeStoryReaction[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
nextOffset?: string;
};
export class FoundStories extends VirtualClass<{
// flags: undefined;
count: int;
stories: Api.TypeFoundStory[];
nextOffset?: string;
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
// flags: undefined;
count: int;
stories: Api.TypeFoundStory[];
nextOffset?: string;
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
}
export namespace premium {
export class BoostsList extends VirtualClass<{
// flags: undefined;
count: int;
boosts: Api.TypeBoost[];
nextOffset?: string;
users: Api.TypeUser[];
}> {
// flags: undefined;
count: int;
boosts: Api.TypeBoost[];
nextOffset?: string;
users: Api.TypeUser[];
};
export class MyBoosts extends VirtualClass<{
myBoosts: Api.TypeMyBoost[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
}> {
myBoosts: Api.TypeMyBoost[];
chats: Api.TypeChat[];
users: Api.TypeUser[];
};
export class BoostsStatus extends VirtualClass<{
// flags: undefined;
myBoost?: true;
level: int;
currentLevelBoosts: int;
boosts: int;
giftBoosts?: int;
nextLevelBoosts?: int;
premiumAudience?: Api.TypeStatsPercentValue;
boostUrl: string;
prepaidGiveaways?: Api.TypePrepaidGiveaway[];
myBoostSlots?: int[];
}> {
// flags: undefined;
myBoost?: true;
level: int;
currentLevelBoosts: int;
boosts: int;
giftBoosts?: int;
nextLevelBoosts?: int;
premiumAudience?: Api.TypeStatsPercentValue;
boostUrl: string;
prepaidGiveaways?: Api.TypePrepaidGiveaway[];
myBoostSlots?: int[];
};
}
export namespace smsjobs {
export class EligibleToJoin extends VirtualClass<{
termsUrl: string;
monthlySentSms: int;
}> {
termsUrl: string;
monthlySentSms: int;
};
export class Status extends VirtualClass<{
// flags: undefined;
allowInternational?: true;
recentSent: int;
recentSince: int;
recentRemains: int;
totalSent: int;
totalSince: int;
lastGiftSlug?: string;
termsUrl: string;
}> {
// flags: undefined;
allowInternational?: true;
recentSent: int;
recentSince: int;
recentRemains: int;
totalSent: int;
totalSince: int;
lastGiftSlug?: string;
termsUrl: string;
};
}
export namespace fragment {
export class CollectibleInfo extends VirtualClass<{
purchaseDate: int;
currency: string;
amount: long;
cryptoCurrency: string;
cryptoAmount: long;
url: string;
}> {
purchaseDate: int;
currency: string;
amount: long;
cryptoCurrency: string;
cryptoAmount: long;
url: string;
};
}
export class InvokeAfterMsg extends Request<Partial<{
msgId: long;
query: X;
}>, X> {
msgId: long;
query: X;
};
export class InvokeAfterMsgs extends Request<Partial<{
msgIds: long[];
query: X;
}>, X> {
msgIds: long[];
query: X;
};
export class InitConnection extends Request<Partial<{
// flags: undefined;
apiId: int;
deviceModel: string;
systemVersion: string;
appVersion: string;
systemLangCode: string;
langPack: string;
langCode: string;
proxy?: Api.TypeInputClientProxy;
params?: Api.TypeJSONValue;
query: X;
}>, X> {
// flags: undefined;
apiId: int;
deviceModel: string;
systemVersion: string;
appVersion: string;
systemLangCode: string;
langPack: string;
langCode: string;
proxy?: Api.TypeInputClientProxy;
params?: Api.TypeJSONValue;
query: X;
};
export class InvokeWithLayer extends Request<Partial<{
layer: int;
query: X;
}>, X> {
layer: int;
query: X;
};
export class InvokeWithoutUpdates extends Request<Partial<{
query: X;
}>, X> {
query: X;
};
export class InvokeWithMessagesRange extends Request<Partial<{
range: Api.TypeMessageRange;
query: X;
}>, X> {
range: Api.TypeMessageRange;
query: X;
};
export class InvokeWithTakeout extends Request<Partial<{
takeoutId: long;
query: X;
}>, X> {
takeoutId: long;
query: X;
};
export class InvokeWithBusinessConnection extends Request<Partial<{
connectionId: string;
query: X;
}>, X> {
connectionId: string;
query: X;
};
export class InvokeWithGooglePlayIntegrity extends Request<Partial<{
nonce: string;
token: string;
query: X;
}>, X> {
nonce: string;
token: string;
query: X;
};
export class InvokeWithApnsSecret extends Request<Partial<{
nonce: string;
secret: string;
query: X;
}>, X> {
nonce: string;
secret: string;
query: X;
};
export class ReqPq extends Request<Partial<{
nonce: int128;
}>, Api.TypeResPQ> {
nonce: int128;
};
export class ReqPqMulti extends Request<Partial<{
nonce: int128;
}>, Api.TypeResPQ> {
nonce: int128;
};
export class ReqPqMultiNew extends Request<Partial<{
nonce: int128;
}>, Api.TypeResPQ> {
nonce: int128;
};
export class ReqDHParams extends Request<Partial<{
nonce: int128;
serverNonce: int128;
p: bytes;
q: bytes;
publicKeyFingerprint: long;
encryptedData: bytes;
}>, Api.TypeServer_DH_Params> {
nonce: int128;
serverNonce: int128;
p: bytes;
q: bytes;
publicKeyFingerprint: long;
encryptedData: bytes;
};
export class SetClientDHParams extends Request<Partial<{
nonce: int128;
serverNonce: int128;
encryptedData: bytes;
}>, Api.TypeSet_client_DH_params_answer> {
nonce: int128;
serverNonce: int128;
encryptedData: bytes;
};
export class DestroyAuthKey extends Request<void, Api.TypeDestroyAuthKeyRes> {};
export class RpcDropAnswer extends Request<Partial<{
reqMsgId: long;
}>, Api.TypeRpcDropAnswer> {
reqMsgId: long;
};
export class GetFutureSalts extends Request<Partial<{
num: int;
}>, Api.TypeFutureSalts> {
num: int;
};
export class Ping extends Request<Partial<{
pingId: long;
}>, Api.TypePong> {
pingId: long;
};
export class PingDelayDisconnect extends Request<Partial<{
pingId: long;
disconnectDelay: int;
}>, Api.TypePong> {
pingId: long;
disconnectDelay: int;
};
export class DestroySession extends Request<Partial<{
sessionId: long;
}>, Api.TypeDestroySessionRes> {
sessionId: long;
};
export namespace auth {
export class SendCode extends Request<Partial<{
phoneNumber: string;
apiId: int;
apiHash: string;
settings: Api.TypeCodeSettings;
}>, auth.TypeSentCode> {
phoneNumber: string;
apiId: int;
apiHash: string;
settings: Api.TypeCodeSettings;
};
export class SignUp extends Request<Partial<{
// flags: undefined;
noJoinedNotifications?: true;
phoneNumber: string;
phoneCodeHash: string;
firstName: string;
lastName: string;
}>, auth.TypeAuthorization> {
// flags: undefined;
noJoinedNotifications?: true;
phoneNumber: string;
phoneCodeHash: string;
firstName: string;
lastName: string;
};
export class SignIn extends Request<Partial<{
// flags: undefined;
phoneNumber: string;
phoneCodeHash: string;
phoneCode?: string;
emailVerification?: Api.TypeEmailVerification;
}>, auth.TypeAuthorization> {
// flags: undefined;
phoneNumber: string;
phoneCodeHash: string;
phoneCode?: string;
emailVerification?: Api.TypeEmailVerification;
};
export class LogOut extends Request<void, auth.TypeLoggedOut> {};
export class ResetAuthorizations extends Request<void, Bool> {};
export class ExportAuthorization extends Request<Partial<{
dcId: int;
}>, auth.TypeExportedAuthorization> {
dcId: int;
};
export class ImportAuthorization extends Request<Partial<{
id: long;
bytes: bytes;
}>, auth.TypeAuthorization> {
id: long;
bytes: bytes;
};
export class BindTempAuthKey extends Request<Partial<{
permAuthKeyId: long;
nonce: long;
expiresAt: int;
encryptedMessage: bytes;
}>, Bool> {
permAuthKeyId: long;
nonce: long;
expiresAt: int;
encryptedMessage: bytes;
};
export class ImportBotAuthorization extends Request<Partial<{
// flags: int;
apiId: int;
apiHash: string;
botAuthToken: string;
}>, auth.TypeAuthorization> {
// flags: int;
apiId: int;
apiHash: string;
botAuthToken: string;
};
export class CheckPassword extends Request<Partial<{
password: Api.TypeInputCheckPasswordSRP;
}>, auth.TypeAuthorization> {
password: Api.TypeInputCheckPasswordSRP;
};
export class RequestPasswordRecovery extends Request<void, auth.TypePasswordRecovery> {};
export class RecoverPassword extends Request<Partial<{
// flags: undefined;
code: string;
newSettings?: account.TypePasswordInputSettings;
}>, auth.TypeAuthorization> {
// flags: undefined;
code: string;
newSettings?: account.TypePasswordInputSettings;
};
export class ResendCode extends Request<Partial<{
// flags: undefined;
phoneNumber: string;
phoneCodeHash: string;
reason?: string;
}>, auth.TypeSentCode> {
// flags: undefined;
phoneNumber: string;
phoneCodeHash: string;
reason?: string;
};
export class CancelCode extends Request<Partial<{
phoneNumber: string;
phoneCodeHash: string;
}>, Bool> {
phoneNumber: string;
phoneCodeHash: string;
};
export class DropTempAuthKeys extends Request<Partial<{
exceptAuthKeys: long[];
}>, Bool> {
exceptAuthKeys: long[];
};
export class ExportLoginToken extends Request<Partial<{
apiId: int;
apiHash: string;
exceptIds: long[];
}>, auth.TypeLoginToken> {
apiId: int;
apiHash: string;
exceptIds: long[];
};
export class ImportLoginToken extends Request<Partial<{
token: bytes;
}>, auth.TypeLoginToken> {
token: bytes;
};
export class AcceptLoginToken extends Request<Partial<{
token: bytes;
}>, Api.TypeAuthorization> {
token: bytes;
};
export class CheckRecoveryPassword extends Request<Partial<{
code: string;
}>, Bool> {
code: string;
};
export class ImportWebTokenAuthorization extends Request<Partial<{
apiId: int;
apiHash: string;
webAuthToken: string;
}>, auth.TypeAuthorization> {
apiId: int;
apiHash: string;
webAuthToken: string;
};
export class RequestFirebaseSms extends Request<Partial<{
// flags: undefined;
phoneNumber: string;
phoneCodeHash: string;
safetyNetToken?: string;
playIntegrityToken?: string;
iosPushSecret?: string;
}>, Bool> {
// flags: undefined;
phoneNumber: string;
phoneCodeHash: string;
safetyNetToken?: string;
playIntegrityToken?: string;
iosPushSecret?: string;
};
export class ResetLoginEmail extends Request<Partial<{
phoneNumber: string;
phoneCodeHash: string;
}>, auth.TypeSentCode> {
phoneNumber: string;
phoneCodeHash: string;
};
export class ReportMissingCode extends Request<Partial<{
phoneNumber: string;
phoneCodeHash: string;
mnc: string;
}>, Bool> {
phoneNumber: string;
phoneCodeHash: string;
mnc: string;
};
}
export namespace account {
export class RegisterDevice extends Request<Partial<{
// flags: undefined;
noMuted?: true;
tokenType: int;
token: string;
appSandbox: Bool;
secret: bytes;
otherUids: long[];
}>, Bool> {
// flags: undefined;
noMuted?: true;
tokenType: int;
token: string;
appSandbox: Bool;
secret: bytes;
otherUids: long[];
};
export class UnregisterDevice extends Request<Partial<{
tokenType: int;
token: string;
otherUids: long[];
}>, Bool> {
tokenType: int;
token: string;
otherUids: long[];
};
export class UpdateNotifySettings extends Request<Partial<{
peer: Api.TypeInputNotifyPeer;
settings: Api.TypeInputPeerNotifySettings;
}>, Bool> {
peer: Api.TypeInputNotifyPeer;
settings: Api.TypeInputPeerNotifySettings;
};
export class GetNotifySettings extends Request<Partial<{
peer: Api.TypeInputNotifyPeer;
}>, Api.TypePeerNotifySettings> {
peer: Api.TypeInputNotifyPeer;
};
export class ResetNotifySettings extends Request<void, Bool> {};
export class UpdateProfile extends Request<Partial<{
// flags: undefined;
firstName?: string;
lastName?: string;
about?: string;
} | void>, Api.TypeUser> {
// flags: undefined;
firstName?: string;
lastName?: string;
about?: string;
};
export class UpdateStatus extends Request<Partial<{
offline: Bool;
}>, Bool> {
offline: Bool;
};
export class GetWallPapers extends Request<Partial<{
hash: long;
}>, account.TypeWallPapers> {
hash: long;
};
export class ReportPeer extends Request<Partial<{
peer: Api.TypeInputPeer;
reason: Api.TypeReportReason;
message: string;
}>, Bool> {
peer: Api.TypeInputPeer;
reason: Api.TypeReportReason;
message: string;
};
export class CheckUsername extends Request<Partial<{
username: string;
}>, Bool> {
username: string;
};
export class UpdateUsername extends Request<Partial<{
username: string;
}>, Api.TypeUser> {
username: string;
};
export class GetPrivacy extends Request<Partial<{
key: Api.TypeInputPrivacyKey;
}>, account.TypePrivacyRules> {
key: Api.TypeInputPrivacyKey;
};
export class SetPrivacy extends Request<Partial<{
key: Api.TypeInputPrivacyKey;
rules: Api.TypeInputPrivacyRule[];
}>, account.TypePrivacyRules> {
key: Api.TypeInputPrivacyKey;
rules: Api.TypeInputPrivacyRule[];
};
export class DeleteAccount extends Request<Partial<{
// flags: undefined;
reason: string;
password?: Api.TypeInputCheckPasswordSRP;
}>, Bool> {
// flags: undefined;
reason: string;
password?: Api.TypeInputCheckPasswordSRP;
};
export class GetAccountTTL extends Request<void, Api.TypeAccountDaysTTL> {};
export class SetAccountTTL extends Request<Partial<{
ttl: Api.TypeAccountDaysTTL;
}>, Bool> {
ttl: Api.TypeAccountDaysTTL;
};
export class SendChangePhoneCode extends Request<Partial<{
phoneNumber: string;
settings: Api.TypeCodeSettings;
}>, auth.TypeSentCode> {
phoneNumber: string;
settings: Api.TypeCodeSettings;
};
export class ChangePhone extends Request<Partial<{
phoneNumber: string;
phoneCodeHash: string;
phoneCode: string;
}>, Api.TypeUser> {
phoneNumber: string;
phoneCodeHash: string;
phoneCode: string;
};
export class UpdateDeviceLocked extends Request<Partial<{
period: int;
}>, Bool> {
period: int;
};
export class GetAuthorizations extends Request<void, account.TypeAuthorizations> {};
export class ResetAuthorization extends Request<Partial<{
hash: long;
}>, Bool> {
hash: long;
};
export class GetPassword extends Request<void, account.TypePassword> {};
export class GetPasswordSettings extends Request<Partial<{
password: Api.TypeInputCheckPasswordSRP;
}>, account.TypePasswordSettings> {
password: Api.TypeInputCheckPasswordSRP;
};
export class UpdatePasswordSettings extends Request<Partial<{
password: Api.TypeInputCheckPasswordSRP;
newSettings: account.TypePasswordInputSettings;
}>, Bool> {
password: Api.TypeInputCheckPasswordSRP;
newSettings: account.TypePasswordInputSettings;
};
export class SendConfirmPhoneCode extends Request<Partial<{
hash: string;
settings: Api.TypeCodeSettings;
}>, auth.TypeSentCode> {
hash: string;
settings: Api.TypeCodeSettings;
};
export class ConfirmPhone extends Request<Partial<{
phoneCodeHash: string;
phoneCode: string;
}>, Bool> {
phoneCodeHash: string;
phoneCode: string;
};
export class GetTmpPassword extends Request<Partial<{
password: Api.TypeInputCheckPasswordSRP;
period: int;
}>, account.TypeTmpPassword> {
password: Api.TypeInputCheckPasswordSRP;
period: int;
};
export class GetWebAuthorizations extends Request<void, account.TypeWebAuthorizations> {};
export class ResetWebAuthorization extends Request<Partial<{
hash: long;
}>, Bool> {
hash: long;
};
export class ResetWebAuthorizations extends Request<void, Bool> {};
export class GetAllSecureValues extends Request<void, Api.TypeSecureValue[]> {};
export class GetSecureValue extends Request<Partial<{
types: Api.TypeSecureValueType[];
}>, Api.TypeSecureValue[]> {
types: Api.TypeSecureValueType[];
};
export class SaveSecureValue extends Request<Partial<{
value: Api.TypeInputSecureValue;
secureSecretId: long;
}>, Api.TypeSecureValue> {
value: Api.TypeInputSecureValue;
secureSecretId: long;
};
export class DeleteSecureValue extends Request<Partial<{
types: Api.TypeSecureValueType[];
}>, Bool> {
types: Api.TypeSecureValueType[];
};
export class GetAuthorizationForm extends Request<Partial<{
botId: long;
scope: string;
publicKey: string;
}>, account.TypeAuthorizationForm> {
botId: long;
scope: string;
publicKey: string;
};
export class AcceptAuthorization extends Request<Partial<{
botId: long;
scope: string;
publicKey: string;
valueHashes: Api.TypeSecureValueHash[];
credentials: Api.TypeSecureCredentialsEncrypted;
}>, Bool> {
botId: long;
scope: string;
publicKey: string;
valueHashes: Api.TypeSecureValueHash[];
credentials: Api.TypeSecureCredentialsEncrypted;
};
export class SendVerifyPhoneCode extends Request<Partial<{
phoneNumber: string;
settings: Api.TypeCodeSettings;
}>, auth.TypeSentCode> {
phoneNumber: string;
settings: Api.TypeCodeSettings;
};
export class VerifyPhone extends Request<Partial<{
phoneNumber: string;
phoneCodeHash: string;
phoneCode: string;
}>, Bool> {
phoneNumber: string;
phoneCodeHash: string;
phoneCode: string;
};
export class SendVerifyEmailCode extends Request<Partial<{
purpose: Api.TypeEmailVerifyPurpose;
email: string;
}>, account.TypeSentEmailCode> {
purpose: Api.TypeEmailVerifyPurpose;
email: string;
};
export class VerifyEmail extends Request<Partial<{
purpose: Api.TypeEmailVerifyPurpose;
verification: Api.TypeEmailVerification;
}>, account.TypeEmailVerified> {
purpose: Api.TypeEmailVerifyPurpose;
verification: Api.TypeEmailVerification;
};
export class InitTakeoutSession extends Request<Partial<{
// flags: undefined;
contacts?: true;
messageUsers?: true;
messageChats?: true;
messageMegagroups?: true;
messageChannels?: true;
files?: true;
fileMaxSize?: long;
} | void>, account.TypeTakeout> {
// flags: undefined;
contacts?: true;
messageUsers?: true;
messageChats?: true;
messageMegagroups?: true;
messageChannels?: true;
files?: true;
fileMaxSize?: long;
};
export class FinishTakeoutSession extends Request<Partial<{
// flags: undefined;
success?: true;
} | void>, Bool> {
// flags: undefined;
success?: true;
};
export class ConfirmPasswordEmail extends Request<Partial<{
code: string;
}>, Bool> {
code: string;
};
export class ResendPasswordEmail extends Request<void, Bool> {};
export class CancelPasswordEmail extends Request<void, Bool> {};
export class GetContactSignUpNotification extends Request<void, Bool> {};
export class SetContactSignUpNotification extends Request<Partial<{
silent: Bool;
}>, Bool> {
silent: Bool;
};
export class GetNotifyExceptions extends Request<Partial<{
// flags: undefined;
compareSound?: true;
compareStories?: true;
peer?: Api.TypeInputNotifyPeer;
} | void>, Api.TypeUpdates> {
// flags: undefined;
compareSound?: true;
compareStories?: true;
peer?: Api.TypeInputNotifyPeer;
};
export class GetWallPaper extends Request<Partial<{
wallpaper: Api.TypeInputWallPaper;
}>, Api.TypeWallPaper> {
wallpaper: Api.TypeInputWallPaper;
};
export class UploadWallPaper extends Request<Partial<{
// flags: undefined;
forChat?: true;
file: Api.TypeInputFile;
mimeType: string;
settings: Api.TypeWallPaperSettings;
}>, Api.TypeWallPaper> {
// flags: undefined;
forChat?: true;
file: Api.TypeInputFile;
mimeType: string;
settings: Api.TypeWallPaperSettings;
};
export class SaveWallPaper extends Request<Partial<{
wallpaper: Api.TypeInputWallPaper;
unsave: Bool;
settings: Api.TypeWallPaperSettings;
}>, Bool> {
wallpaper: Api.TypeInputWallPaper;
unsave: Bool;
settings: Api.TypeWallPaperSettings;
};
export class InstallWallPaper extends Request<Partial<{
wallpaper: Api.TypeInputWallPaper;
settings: Api.TypeWallPaperSettings;
}>, Bool> {
wallpaper: Api.TypeInputWallPaper;
settings: Api.TypeWallPaperSettings;
};
export class ResetWallPapers extends Request<void, Bool> {};
export class GetAutoDownloadSettings extends Request<void, account.TypeAutoDownloadSettings> {};
export class SaveAutoDownloadSettings extends Request<Partial<{
// flags: undefined;
low?: true;
high?: true;
settings: Api.TypeAutoDownloadSettings;
}>, Bool> {
// flags: undefined;
low?: true;
high?: true;
settings: Api.TypeAutoDownloadSettings;
};
export class UploadTheme extends Request<Partial<{
// flags: undefined;
file: Api.TypeInputFile;
thumb?: Api.TypeInputFile;
fileName: string;
mimeType: string;
}>, Api.TypeDocument> {
// flags: undefined;
file: Api.TypeInputFile;
thumb?: Api.TypeInputFile;
fileName: string;
mimeType: string;
};
export class CreateTheme extends Request<Partial<{
// flags: undefined;
slug: string;
title: string;
document?: Api.TypeInputDocument;
settings?: Api.TypeInputThemeSettings[];
}>, Api.TypeTheme> {
// flags: undefined;
slug: string;
title: string;
document?: Api.TypeInputDocument;
settings?: Api.TypeInputThemeSettings[];
};
export class UpdateTheme extends Request<Partial<{
// flags: undefined;
format: string;
theme: Api.TypeInputTheme;
slug?: string;
title?: string;
document?: Api.TypeInputDocument;
settings?: Api.TypeInputThemeSettings[];
}>, Api.TypeTheme> {
// flags: undefined;
format: string;
theme: Api.TypeInputTheme;
slug?: string;
title?: string;
document?: Api.TypeInputDocument;
settings?: Api.TypeInputThemeSettings[];
};
export class SaveTheme extends Request<Partial<{
theme: Api.TypeInputTheme;
unsave: Bool;
}>, Bool> {
theme: Api.TypeInputTheme;
unsave: Bool;
};
export class InstallTheme extends Request<Partial<{
// flags: undefined;
dark?: true;
theme?: Api.TypeInputTheme;
format?: string;
baseTheme?: Api.TypeBaseTheme;
} | void>, Bool> {
// flags: undefined;
dark?: true;
theme?: Api.TypeInputTheme;
format?: string;
baseTheme?: Api.TypeBaseTheme;
};
export class GetTheme extends Request<Partial<{
format: string;
theme: Api.TypeInputTheme;
}>, Api.TypeTheme> {
format: string;
theme: Api.TypeInputTheme;
};
export class GetThemes extends Request<Partial<{
format: string;
hash: long;
}>, account.TypeThemes> {
format: string;
hash: long;
};
export class SetContentSettings extends Request<Partial<{
// flags: undefined;
sensitiveEnabled?: true;
} | void>, Bool> {
// flags: undefined;
sensitiveEnabled?: true;
};
export class GetContentSettings extends Request<void, account.TypeContentSettings> {};
export class GetMultiWallPapers extends Request<Partial<{
wallpapers: Api.TypeInputWallPaper[];
}>, Api.TypeWallPaper[]> {
wallpapers: Api.TypeInputWallPaper[];
};
export class GetGlobalPrivacySettings extends Request<void, Api.TypeGlobalPrivacySettings> {};
export class SetGlobalPrivacySettings extends Request<Partial<{
settings: Api.TypeGlobalPrivacySettings;
}>, Api.TypeGlobalPrivacySettings> {
settings: Api.TypeGlobalPrivacySettings;
};
export class ReportProfilePhoto extends Request<Partial<{
peer: Api.TypeInputPeer;
photoId: Api.TypeInputPhoto;
reason: Api.TypeReportReason;
message: string;
}>, Bool> {
peer: Api.TypeInputPeer;
photoId: Api.TypeInputPhoto;
reason: Api.TypeReportReason;
message: string;
};
export class ResetPassword extends Request<void, account.TypeResetPasswordResult> {};
export class DeclinePasswordReset extends Request<void, Bool> {};
export class GetChatThemes extends Request<Partial<{
hash: long;
}>, account.TypeThemes> {
hash: long;
};
export class SetAuthorizationTTL extends Request<Partial<{
authorizationTtlDays: int;
}>, Bool> {
authorizationTtlDays: int;
};
export class ChangeAuthorizationSettings extends Request<Partial<{
// flags: undefined;
confirmed?: true;
hash: long;
encryptedRequestsDisabled?: Bool;
callRequestsDisabled?: Bool;
}>, Bool> {
// flags: undefined;
confirmed?: true;
hash: long;
encryptedRequestsDisabled?: Bool;
callRequestsDisabled?: Bool;
};
export class GetSavedRingtones extends Request<Partial<{
hash: long;
}>, account.TypeSavedRingtones> {
hash: long;
};
export class SaveRingtone extends Request<Partial<{
id: Api.TypeInputDocument;
unsave: Bool;
}>, account.TypeSavedRingtone> {
id: Api.TypeInputDocument;
unsave: Bool;
};
export class UploadRingtone extends Request<Partial<{
file: Api.TypeInputFile;
fileName: string;
mimeType: string;
}>, Api.TypeDocument> {
file: Api.TypeInputFile;
fileName: string;
mimeType: string;
};
export class UpdateEmojiStatus extends Request<Partial<{
emojiStatus: Api.TypeEmojiStatus;
}>, Bool> {
emojiStatus: Api.TypeEmojiStatus;
};
export class GetDefaultEmojiStatuses extends Request<Partial<{
hash: long;
}>, account.TypeEmojiStatuses> {
hash: long;
};
export class GetRecentEmojiStatuses extends Request<Partial<{
hash: long;
}>, account.TypeEmojiStatuses> {
hash: long;
};
export class ClearRecentEmojiStatuses extends Request<void, Bool> {};
export class ReorderUsernames extends Request<Partial<{
order: string[];
}>, Bool> {
order: string[];
};
export class ToggleUsername extends Request<Partial<{
username: string;
active: Bool;
}>, Bool> {
username: string;
active: Bool;
};
export class GetDefaultProfilePhotoEmojis extends Request<Partial<{
hash: long;
}>, Api.TypeEmojiList> {
hash: long;
};
export class GetDefaultGroupPhotoEmojis extends Request<Partial<{
hash: long;
}>, Api.TypeEmojiList> {
hash: long;
};
export class GetAutoSaveSettings extends Request<void, account.TypeAutoSaveSettings> {};
export class SaveAutoSaveSettings extends Request<Partial<{
// flags: undefined;
users?: true;
chats?: true;
broadcasts?: true;
peer?: Api.TypeInputPeer;
settings: Api.TypeAutoSaveSettings;
}>, Bool> {
// flags: undefined;
users?: true;
chats?: true;
broadcasts?: true;
peer?: Api.TypeInputPeer;
settings: Api.TypeAutoSaveSettings;
};
export class DeleteAutoSaveExceptions extends Request<void, Bool> {};
export class InvalidateSignInCodes extends Request<Partial<{
codes: string[];
}>, Bool> {
codes: string[];
};
export class UpdateColor extends Request<Partial<{
// flags: undefined;
forProfile?: true;
color?: int;
backgroundEmojiId?: long;
} | void>, Bool> {
// flags: undefined;
forProfile?: true;
color?: int;
backgroundEmojiId?: long;
};
export class GetDefaultBackgroundEmojis extends Request<Partial<{
hash: long;
}>, Api.TypeEmojiList> {
hash: long;
};
export class GetChannelDefaultEmojiStatuses extends Request<Partial<{
hash: long;
}>, account.TypeEmojiStatuses> {
hash: long;
};
export class GetChannelRestrictedStatusEmojis extends Request<Partial<{
hash: long;
}>, Api.TypeEmojiList> {
hash: long;
};
export class UpdateBusinessWorkHours extends Request<Partial<{
// flags: undefined;
businessWorkHours?: Api.TypeBusinessWorkHours;
} | void>, Bool> {
// flags: undefined;
businessWorkHours?: Api.TypeBusinessWorkHours;
};
export class UpdateBusinessLocation extends Request<Partial<{
// flags: undefined;
geoPoint?: Api.TypeInputGeoPoint;
address?: string;
} | void>, Bool> {
// flags: undefined;
geoPoint?: Api.TypeInputGeoPoint;
address?: string;
};
export class UpdateBusinessGreetingMessage extends Request<Partial<{
// flags: undefined;
message?: Api.TypeInputBusinessGreetingMessage;
} | void>, Bool> {
// flags: undefined;
message?: Api.TypeInputBusinessGreetingMessage;
};
export class UpdateBusinessAwayMessage extends Request<Partial<{
// flags: undefined;
message?: Api.TypeInputBusinessAwayMessage;
} | void>, Bool> {
// flags: undefined;
message?: Api.TypeInputBusinessAwayMessage;
};
export class UpdateConnectedBot extends Request<Partial<{
// flags: undefined;
canReply?: true;
deleted?: true;
bot: Api.TypeInputUser;
recipients: Api.TypeInputBusinessBotRecipients;
}>, Api.TypeUpdates> {
// flags: undefined;
canReply?: true;
deleted?: true;
bot: Api.TypeInputUser;
recipients: Api.TypeInputBusinessBotRecipients;
};
export class GetConnectedBots extends Request<void, account.TypeConnectedBots> {};
export class GetBotBusinessConnection extends Request<Partial<{
connectionId: string;
}>, Api.TypeUpdates> {
connectionId: string;
};
export class UpdateBusinessIntro extends Request<Partial<{
// flags: undefined;
intro?: Api.TypeInputBusinessIntro;
} | void>, Bool> {
// flags: undefined;
intro?: Api.TypeInputBusinessIntro;
};
export class ToggleConnectedBotPaused extends Request<Partial<{
peer: Api.TypeInputPeer;
paused: Bool;
}>, Bool> {
peer: Api.TypeInputPeer;
paused: Bool;
};
export class DisablePeerConnectedBot extends Request<Partial<{
peer: Api.TypeInputPeer;
}>, Bool> {
peer: Api.TypeInputPeer;
};
export class UpdateBirthday extends Request<Partial<{
// flags: undefined;
birthday?: Api.TypeBirthday;
} | void>, Bool> {
// flags: undefined;
birthday?: Api.TypeBirthday;
};
export class CreateBusinessChatLink extends Request<Partial<{
link: Api.TypeInputBusinessChatLink;
}>, Api.TypeBusinessChatLink> {
link: Api.TypeInputBusinessChatLink;
};
export class EditBusinessChatLink extends Request<Partial<{
slug: string;
link: Api.TypeInputBusinessChatLink;
}>, Api.TypeBusinessChatLink> {
slug: string;
link: Api.TypeInputBusinessChatLink;
};
export class DeleteBusinessChatLink extends Request<Partial<{
slug: string;
}>, Bool> {
slug: string;
};
export class GetBusinessChatLinks extends Request<void, account.TypeBusinessChatLinks> {};
export class ResolveBusinessChatLink extends Request<Partial<{
slug: string;
}>, account.TypeResolvedBusinessChatLinks> {
slug: string;
};
export class UpdatePersonalChannel extends Request<Partial<{
channel: Api.TypeInputChannel;
}>, Bool> {
channel: Api.TypeInputChannel;
};
export class ToggleSponsoredMessages extends Request<Partial<{
enabled: Bool;
}>, Bool> {
enabled: Bool;
};
export class GetReactionsNotifySettings extends Request<void, Api.TypeReactionsNotifySettings> {};
export class SetReactionsNotifySettings extends Request<Partial<{
settings: Api.TypeReactionsNotifySettings;
}>, Api.TypeReactionsNotifySettings> {
settings: Api.TypeReactionsNotifySettings;
};
}
export namespace users {
export class GetUsers extends Request<Partial<{
id: Api.TypeInputUser[];
}>, Api.TypeUser[]> {
id: Api.TypeInputUser[];
};
export class GetFullUser extends Request<Partial<{
id: Api.TypeInputUser;
}>, users.TypeUserFull> {
id: Api.TypeInputUser;
};
export class SetSecureValueErrors extends Request<Partial<{
id: Api.TypeInputUser;
errors: Api.TypeSecureValueError[];
}>, Bool> {
id: Api.TypeInputUser;
errors: Api.TypeSecureValueError[];
};
export class GetIsPremiumRequiredToContact extends Request<Partial<{
id: Api.TypeInputUser[];
}>, Bool[]> {
id: Api.TypeInputUser[];
};
}
export namespace contacts {
export class GetContactIDs extends Request<Partial<{
hash: long;
}>, int[]> {
hash: long;
};
export class GetStatuses extends Request<void, Api.TypeContactStatus[]> {};
export class GetContacts extends Request<Partial<{
hash: long;
}>, contacts.TypeContacts> {
hash: long;
};
export class ImportContacts extends Request<Partial<{
contacts: Api.TypeInputContact[];
}>, contacts.TypeImportedContacts> {
contacts: Api.TypeInputContact[];
};
export class DeleteContacts extends Request<Partial<{
id: Api.TypeInputUser[];
}>, Api.TypeUpdates> {
id: Api.TypeInputUser[];
};
export class DeleteByPhones extends Request<Partial<{
phones: string[];
}>, Bool> {
phones: string[];
};
export class Block extends Request<Partial<{
// flags: undefined;
myStoriesFrom?: true;
id: Api.TypeInputPeer;
}>, Bool> {
// flags: undefined;
myStoriesFrom?: true;
id: Api.TypeInputPeer;
};
export class Unblock extends Request<Partial<{
// flags: undefined;
myStoriesFrom?: true;
id: Api.TypeInputPeer;
}>, Bool> {
// flags: undefined;
myStoriesFrom?: true;
id: Api.TypeInputPeer;
};
export class GetBlocked extends Request<Partial<{
// flags: undefined;
myStoriesFrom?: true;
offset: int;
limit: int;
}>, contacts.TypeBlocked> {
// flags: undefined;
myStoriesFrom?: true;
offset: int;
limit: int;
};
export class Search extends Request<Partial<{
q: string;
limit: int;
}>, contacts.TypeFound> {
q: string;
limit: int;
};
export class ResolveUsername extends Request<Partial<{
// flags: undefined;
username: string;
referer?: string;
}>, contacts.TypeResolvedPeer> {
// flags: undefined;
username: string;
referer?: string;
};
export class GetTopPeers extends Request<Partial<{
// flags: undefined;
correspondents?: true;
botsPm?: true;
botsInline?: true;
phoneCalls?: true;
forwardUsers?: true;
forwardChats?: true;
groups?: true;
channels?: true;
botsApp?: true;
offset: int;
limit: int;
hash: long;
}>, contacts.TypeTopPeers> {
// flags: undefined;
correspondents?: true;
botsPm?: true;
botsInline?: true;
phoneCalls?: true;
forwardUsers?: true;
forwardChats?: true;
groups?: true;
channels?: true;
botsApp?: true;
offset: int;
limit: int;
hash: long;
};
export class ResetTopPeerRating extends Request<Partial<{
category: Api.TypeTopPeerCategory;
peer: Api.TypeInputPeer;
}>, Bool> {
category: Api.TypeTopPeerCategory;
peer: Api.TypeInputPeer;
};
export class ResetSaved extends Request<void, Bool> {};
export class GetSaved extends Request<void, Api.TypeSavedContact[]> {};
export class ToggleTopPeers extends Request<Partial<{
enabled: Bool;
}>, Bool> {
enabled: Bool;
};
export class AddContact extends Request<Partial<{
// flags: undefined;
addPhonePrivacyException?: true;
id: Api.TypeInputUser;
firstName: string;
lastName: string;
phone: string;
}>, Api.TypeUpdates> {
// flags: undefined;
addPhonePrivacyException?: true;
id: Api.TypeInputUser;
firstName: string;
lastName: string;
phone: string;
};
export class AcceptContact extends Request<Partial<{
id: Api.TypeInputUser;
}>, Api.TypeUpdates> {
id: Api.TypeInputUser;
};
export class GetLocated extends Request<Partial<{
// flags: undefined;
background?: true;
geoPoint: Api.TypeInputGeoPoint;
selfExpires?: int;
}>, Api.TypeUpdates> {
// flags: undefined;
background?: true;
geoPoint: Api.TypeInputGeoPoint;
selfExpires?: int;
};
export class BlockFromReplies extends Request<Partial<{
// flags: undefined;
deleteMessage?: true;
deleteHistory?: true;
reportSpam?: true;
msgId: int;
}>, Api.TypeUpdates> {
// flags: undefined;
deleteMessage?: true;
deleteHistory?: true;
reportSpam?: true;
msgId: int;
};
export class ResolvePhone extends Request<Partial<{
phone: string;
}>, contacts.TypeResolvedPeer> {
phone: string;
};
export class ExportContactToken extends Request<void, Api.TypeExportedContactToken> {};
export class ImportContactToken extends Request<Partial<{
token: string;
}>, Api.TypeUser> {
token: string;
};
export class EditCloseFriends extends Request<Partial<{
id: long[];
}>, Bool> {
id: long[];
};
export class SetBlocked extends Request<Partial<{
// flags: undefined;
myStoriesFrom?: true;
id: Api.TypeInputPeer[];
limit: int;
}>, Bool> {
// flags: undefined;
myStoriesFrom?: true;
id: Api.TypeInputPeer[];
limit: int;
};
export class GetBirthdays extends Request<void, contacts.TypeContactBirthdays> {};
}
export namespace messages {
export class GetMessages extends Request<Partial<{
id: Api.TypeInputMessage[];
}>, messages.TypeMessages> {
id: Api.TypeInputMessage[];
};
export class GetDialogs extends Request<Partial<{
// flags: undefined;
excludePinned?: true;
folderId?: int;
offsetDate: int;
offsetId: int;
offsetPeer: Api.TypeInputPeer;
limit: int;
hash: long;
}>, messages.TypeDialogs> {
// flags: undefined;
excludePinned?: true;
folderId?: int;
offsetDate: int;
offsetId: int;
offsetPeer: Api.TypeInputPeer;
limit: int;
hash: long;
};
export class GetHistory extends Request<Partial<{
peer: Api.TypeInputPeer;
offsetId: int;
offsetDate: int;
addOffset: int;
limit: int;
maxId: int;
minId: int;
hash: long;
}>, messages.TypeMessages> {
peer: Api.TypeInputPeer;
offsetId: int;
offsetDate: int;
addOffset: int;
limit: int;
maxId: int;
minId: int;
hash: long;
};
export class Search extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
q: string;
fromId?: Api.TypeInputPeer;
savedPeerId?: Api.TypeInputPeer;
savedReaction?: Api.TypeReaction[];
topMsgId?: int;
filter: Api.TypeMessagesFilter;
minDate: int;
maxDate: int;
offsetId: int;
addOffset: int;
limit: int;
maxId: int;
minId: int;
hash: long;
}>, messages.TypeMessages> {
// flags: undefined;
peer: Api.TypeInputPeer;
q: string;
fromId?: Api.TypeInputPeer;
savedPeerId?: Api.TypeInputPeer;
savedReaction?: Api.TypeReaction[];
topMsgId?: int;
filter: Api.TypeMessagesFilter;
minDate: int;
maxDate: int;
offsetId: int;
addOffset: int;
limit: int;
maxId: int;
minId: int;
hash: long;
};
export class ReadHistory extends Request<Partial<{
peer: Api.TypeInputPeer;
maxId: int;
}>, messages.TypeAffectedMessages> {
peer: Api.TypeInputPeer;
maxId: int;
};
export class DeleteHistory extends Request<Partial<{
// flags: undefined;
justClear?: true;
revoke?: true;
peer: Api.TypeInputPeer;
maxId: int;
minDate?: int;
maxDate?: int;
}>, messages.TypeAffectedHistory> {
// flags: undefined;
justClear?: true;
revoke?: true;
peer: Api.TypeInputPeer;
maxId: int;
minDate?: int;
maxDate?: int;
};
export class DeleteMessages extends Request<Partial<{
// flags: undefined;
revoke?: true;
id: int[];
}>, messages.TypeAffectedMessages> {
// flags: undefined;
revoke?: true;
id: int[];
};
export class ReceivedMessages extends Request<Partial<{
maxId: int;
}>, Api.TypeReceivedNotifyMessage[]> {
maxId: int;
};
export class SetTyping extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
topMsgId?: int;
action: Api.TypeSendMessageAction;
}>, Bool> {
// flags: undefined;
peer: Api.TypeInputPeer;
topMsgId?: int;
action: Api.TypeSendMessageAction;
};
export class SendMessage extends Request<Partial<{
// flags: undefined;
noWebpage?: true;
silent?: true;
background?: true;
clearDraft?: true;
noforwards?: true;
updateStickersetsOrder?: true;
invertMedia?: true;
allowPaidFloodskip?: true;
peer: Api.TypeInputPeer;
replyTo?: Api.TypeInputReplyTo;
message: string;
randomId: long;
replyMarkup?: Api.TypeReplyMarkup;
entities?: Api.TypeMessageEntity[];
scheduleDate?: int;
sendAs?: Api.TypeInputPeer;
quickReplyShortcut?: Api.TypeInputQuickReplyShortcut;
effect?: long;
}>, Api.TypeUpdates> {
// flags: undefined;
noWebpage?: true;
silent?: true;
background?: true;
clearDraft?: true;
noforwards?: true;
updateStickersetsOrder?: true;
invertMedia?: true;
allowPaidFloodskip?: true;
peer: Api.TypeInputPeer;
replyTo?: Api.TypeInputReplyTo;
message: string;
randomId: long;
replyMarkup?: Api.TypeReplyMarkup;
entities?: Api.TypeMessageEntity[];
scheduleDate?: int;
sendAs?: Api.TypeInputPeer;
quickReplyShortcut?: Api.TypeInputQuickReplyShortcut;
effect?: long;
};
export class SendMedia extends Request<Partial<{
// flags: undefined;
silent?: true;
background?: true;
clearDraft?: true;
noforwards?: true;
updateStickersetsOrder?: true;
invertMedia?: true;
allowPaidFloodskip?: true;
peer: Api.TypeInputPeer;
replyTo?: Api.TypeInputReplyTo;
media: Api.TypeInputMedia;
message: string;
randomId: long;
replyMarkup?: Api.TypeReplyMarkup;
entities?: Api.TypeMessageEntity[];
scheduleDate?: int;
sendAs?: Api.TypeInputPeer;
quickReplyShortcut?: Api.TypeInputQuickReplyShortcut;
effect?: long;
}>, Api.TypeUpdates> {
// flags: undefined;
silent?: true;
background?: true;
clearDraft?: true;
noforwards?: true;
updateStickersetsOrder?: true;
invertMedia?: true;
allowPaidFloodskip?: true;
peer: Api.TypeInputPeer;
replyTo?: Api.TypeInputReplyTo;
media: Api.TypeInputMedia;
message: string;
randomId: long;
replyMarkup?: Api.TypeReplyMarkup;
entities?: Api.TypeMessageEntity[];
scheduleDate?: int;
sendAs?: Api.TypeInputPeer;
quickReplyShortcut?: Api.TypeInputQuickReplyShortcut;
effect?: long;
};
export class ForwardMessages extends Request<Partial<{
// flags: undefined;
silent?: true;
background?: true;
withMyScore?: true;
dropAuthor?: true;
dropMediaCaptions?: true;
noforwards?: true;
allowPaidFloodskip?: true;
fromPeer: Api.TypeInputPeer;
id: int[];
randomId: long[];
toPeer: Api.TypeInputPeer;
topMsgId?: int;
scheduleDate?: int;
sendAs?: Api.TypeInputPeer;
quickReplyShortcut?: Api.TypeInputQuickReplyShortcut;
}>, Api.TypeUpdates> {
// flags: undefined;
silent?: true;
background?: true;
withMyScore?: true;
dropAuthor?: true;
dropMediaCaptions?: true;
noforwards?: true;
allowPaidFloodskip?: true;
fromPeer: Api.TypeInputPeer;
id: int[];
randomId: long[];
toPeer: Api.TypeInputPeer;
topMsgId?: int;
scheduleDate?: int;
sendAs?: Api.TypeInputPeer;
quickReplyShortcut?: Api.TypeInputQuickReplyShortcut;
};
export class ReportSpam extends Request<Partial<{
peer: Api.TypeInputPeer;
}>, Bool> {
peer: Api.TypeInputPeer;
};
export class GetPeerSettings extends Request<Partial<{
peer: Api.TypeInputPeer;
}>, messages.TypePeerSettings> {
peer: Api.TypeInputPeer;
};
export class Report extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int[];
option: bytes;
message: string;
}>, Api.TypeReportResult> {
peer: Api.TypeInputPeer;
id: int[];
option: bytes;
message: string;
};
export class GetChats extends Request<Partial<{
id: long[];
}>, messages.TypeChats> {
id: long[];
};
export class GetFullChat extends Request<Partial<{
chatId: long;
}>, messages.TypeChatFull> {
chatId: long;
};
export class EditChatTitle extends Request<Partial<{
chatId: long;
title: string;
}>, Api.TypeUpdates> {
chatId: long;
title: string;
};
export class EditChatPhoto extends Request<Partial<{
chatId: long;
photo: Api.TypeInputChatPhoto;
}>, Api.TypeUpdates> {
chatId: long;
photo: Api.TypeInputChatPhoto;
};
export class AddChatUser extends Request<Partial<{
chatId: long;
userId: Api.TypeInputUser;
fwdLimit: int;
}>, messages.TypeInvitedUsers> {
chatId: long;
userId: Api.TypeInputUser;
fwdLimit: int;
};
export class DeleteChatUser extends Request<Partial<{
// flags: undefined;
revokeHistory?: true;
chatId: long;
userId: Api.TypeInputUser;
}>, Api.TypeUpdates> {
// flags: undefined;
revokeHistory?: true;
chatId: long;
userId: Api.TypeInputUser;
};
export class CreateChat extends Request<Partial<{
// flags: undefined;
users: Api.TypeInputUser[];
title: string;
ttlPeriod?: int;
}>, messages.TypeInvitedUsers> {
// flags: undefined;
users: Api.TypeInputUser[];
title: string;
ttlPeriod?: int;
};
export class GetDhConfig extends Request<Partial<{
version: int;
randomLength: int;
}>, messages.TypeDhConfig> {
version: int;
randomLength: int;
};
export class RequestEncryption extends Request<Partial<{
userId: Api.TypeInputUser;
randomId: int;
gA: bytes;
}>, Api.TypeEncryptedChat> {
userId: Api.TypeInputUser;
randomId: int;
gA: bytes;
};
export class AcceptEncryption extends Request<Partial<{
peer: Api.TypeInputEncryptedChat;
gB: bytes;
keyFingerprint: long;
}>, Api.TypeEncryptedChat> {
peer: Api.TypeInputEncryptedChat;
gB: bytes;
keyFingerprint: long;
};
export class DiscardEncryption extends Request<Partial<{
// flags: undefined;
deleteHistory?: true;
chatId: int;
}>, Bool> {
// flags: undefined;
deleteHistory?: true;
chatId: int;
};
export class SetEncryptedTyping extends Request<Partial<{
peer: Api.TypeInputEncryptedChat;
typing: Bool;
}>, Bool> {
peer: Api.TypeInputEncryptedChat;
typing: Bool;
};
export class ReadEncryptedHistory extends Request<Partial<{
peer: Api.TypeInputEncryptedChat;
maxDate: int;
}>, Bool> {
peer: Api.TypeInputEncryptedChat;
maxDate: int;
};
export class SendEncrypted extends Request<Partial<{
// flags: undefined;
silent?: true;
peer: Api.TypeInputEncryptedChat;
randomId: long;
data: bytes;
}>, messages.TypeSentEncryptedMessage> {
// flags: undefined;
silent?: true;
peer: Api.TypeInputEncryptedChat;
randomId: long;
data: bytes;
};
export class SendEncryptedFile extends Request<Partial<{
// flags: undefined;
silent?: true;
peer: Api.TypeInputEncryptedChat;
randomId: long;
data: bytes;
file: Api.TypeInputEncryptedFile;
}>, messages.TypeSentEncryptedMessage> {
// flags: undefined;
silent?: true;
peer: Api.TypeInputEncryptedChat;
randomId: long;
data: bytes;
file: Api.TypeInputEncryptedFile;
};
export class SendEncryptedService extends Request<Partial<{
peer: Api.TypeInputEncryptedChat;
randomId: long;
data: bytes;
}>, messages.TypeSentEncryptedMessage> {
peer: Api.TypeInputEncryptedChat;
randomId: long;
data: bytes;
};
export class ReceivedQueue extends Request<Partial<{
maxQts: int;
}>, long[]> {
maxQts: int;
};
export class ReportEncryptedSpam extends Request<Partial<{
peer: Api.TypeInputEncryptedChat;
}>, Bool> {
peer: Api.TypeInputEncryptedChat;
};
export class ReadMessageContents extends Request<Partial<{
id: int[];
}>, messages.TypeAffectedMessages> {
id: int[];
};
export class GetStickers extends Request<Partial<{
emoticon: string;
hash: long;
}>, messages.TypeStickers> {
emoticon: string;
hash: long;
};
export class GetAllStickers extends Request<Partial<{
hash: long;
}>, messages.TypeAllStickers> {
hash: long;
};
export class GetWebPagePreview extends Request<Partial<{
// flags: undefined;
message: string;
entities?: Api.TypeMessageEntity[];
}>, Api.TypeMessageMedia> {
// flags: undefined;
message: string;
entities?: Api.TypeMessageEntity[];
};
export class ExportChatInvite extends Request<Partial<{
// flags: undefined;
legacyRevokePermanent?: true;
requestNeeded?: true;
peer: Api.TypeInputPeer;
expireDate?: int;
usageLimit?: int;
title?: string;
subscriptionPricing?: Api.TypeStarsSubscriptionPricing;
}>, Api.TypeExportedChatInvite> {
// flags: undefined;
legacyRevokePermanent?: true;
requestNeeded?: true;
peer: Api.TypeInputPeer;
expireDate?: int;
usageLimit?: int;
title?: string;
subscriptionPricing?: Api.TypeStarsSubscriptionPricing;
};
export class CheckChatInvite extends Request<Partial<{
hash: string;
}>, Api.TypeChatInvite> {
hash: string;
};
export class ImportChatInvite extends Request<Partial<{
hash: string;
}>, Api.TypeUpdates> {
hash: string;
};
export class GetStickerSet extends Request<Partial<{
stickerset: Api.TypeInputStickerSet;
hash: int;
}>, messages.TypeStickerSet> {
stickerset: Api.TypeInputStickerSet;
hash: int;
};
export class InstallStickerSet extends Request<Partial<{
stickerset: Api.TypeInputStickerSet;
archived: Bool;
}>, messages.TypeStickerSetInstallResult> {
stickerset: Api.TypeInputStickerSet;
archived: Bool;
};
export class UninstallStickerSet extends Request<Partial<{
stickerset: Api.TypeInputStickerSet;
}>, Bool> {
stickerset: Api.TypeInputStickerSet;
};
export class StartBot extends Request<Partial<{
bot: Api.TypeInputUser;
peer: Api.TypeInputPeer;
randomId: long;
startParam: string;
}>, Api.TypeUpdates> {
bot: Api.TypeInputUser;
peer: Api.TypeInputPeer;
randomId: long;
startParam: string;
};
export class GetMessagesViews extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int[];
increment: Bool;
}>, messages.TypeMessageViews> {
peer: Api.TypeInputPeer;
id: int[];
increment: Bool;
};
export class EditChatAdmin extends Request<Partial<{
chatId: long;
userId: Api.TypeInputUser;
isAdmin: Bool;
}>, Bool> {
chatId: long;
userId: Api.TypeInputUser;
isAdmin: Bool;
};
export class MigrateChat extends Request<Partial<{
chatId: long;
}>, Api.TypeUpdates> {
chatId: long;
};
export class SearchGlobal extends Request<Partial<{
// flags: undefined;
broadcastsOnly?: true;
groupsOnly?: true;
usersOnly?: true;
folderId?: int;
q: string;
filter: Api.TypeMessagesFilter;
minDate: int;
maxDate: int;
offsetRate: int;
offsetPeer: Api.TypeInputPeer;
offsetId: int;
limit: int;
}>, messages.TypeMessages> {
// flags: undefined;
broadcastsOnly?: true;
groupsOnly?: true;
usersOnly?: true;
folderId?: int;
q: string;
filter: Api.TypeMessagesFilter;
minDate: int;
maxDate: int;
offsetRate: int;
offsetPeer: Api.TypeInputPeer;
offsetId: int;
limit: int;
};
export class ReorderStickerSets extends Request<Partial<{
// flags: undefined;
masks?: true;
emojis?: true;
order: long[];
}>, Bool> {
// flags: undefined;
masks?: true;
emojis?: true;
order: long[];
};
export class GetDocumentByHash extends Request<Partial<{
sha256: bytes;
size: long;
mimeType: string;
}>, Api.TypeDocument> {
sha256: bytes;
size: long;
mimeType: string;
};
export class GetSavedGifs extends Request<Partial<{
hash: long;
}>, messages.TypeSavedGifs> {
hash: long;
};
export class SaveGif extends Request<Partial<{
id: Api.TypeInputDocument;
unsave: Bool;
}>, Bool> {
id: Api.TypeInputDocument;
unsave: Bool;
};
export class GetInlineBotResults extends Request<Partial<{
// flags: undefined;
bot: Api.TypeInputUser;
peer: Api.TypeInputPeer;
geoPoint?: Api.TypeInputGeoPoint;
query: string;
offset: string;
}>, messages.TypeBotResults> {
// flags: undefined;
bot: Api.TypeInputUser;
peer: Api.TypeInputPeer;
geoPoint?: Api.TypeInputGeoPoint;
query: string;
offset: string;
};
export class SetInlineBotResults extends Request<Partial<{
// flags: undefined;
gallery?: true;
private?: true;
queryId: long;
results: Api.TypeInputBotInlineResult[];
cacheTime: int;
nextOffset?: string;
switchPm?: Api.TypeInlineBotSwitchPM;
switchWebview?: Api.TypeInlineBotWebView;
}>, Bool> {
// flags: undefined;
gallery?: true;
private?: true;
queryId: long;
results: Api.TypeInputBotInlineResult[];
cacheTime: int;
nextOffset?: string;
switchPm?: Api.TypeInlineBotSwitchPM;
switchWebview?: Api.TypeInlineBotWebView;
};
export class SendInlineBotResult extends Request<Partial<{
// flags: undefined;
silent?: true;
background?: true;
clearDraft?: true;
hideVia?: true;
peer: Api.TypeInputPeer;
replyTo?: Api.TypeInputReplyTo;
randomId: long;
queryId: long;
id: string;
scheduleDate?: int;
sendAs?: Api.TypeInputPeer;
quickReplyShortcut?: Api.TypeInputQuickReplyShortcut;
}>, Api.TypeUpdates> {
// flags: undefined;
silent?: true;
background?: true;
clearDraft?: true;
hideVia?: true;
peer: Api.TypeInputPeer;
replyTo?: Api.TypeInputReplyTo;
randomId: long;
queryId: long;
id: string;
scheduleDate?: int;
sendAs?: Api.TypeInputPeer;
quickReplyShortcut?: Api.TypeInputQuickReplyShortcut;
};
export class GetMessageEditData extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int;
}>, messages.TypeMessageEditData> {
peer: Api.TypeInputPeer;
id: int;
};
export class EditMessage extends Request<Partial<{
// flags: undefined;
noWebpage?: true;
invertMedia?: true;
peer: Api.TypeInputPeer;
id: int;
message?: string;
media?: Api.TypeInputMedia;
replyMarkup?: Api.TypeReplyMarkup;
entities?: Api.TypeMessageEntity[];
scheduleDate?: int;
quickReplyShortcutId?: int;
}>, Api.TypeUpdates> {
// flags: undefined;
noWebpage?: true;
invertMedia?: true;
peer: Api.TypeInputPeer;
id: int;
message?: string;
media?: Api.TypeInputMedia;
replyMarkup?: Api.TypeReplyMarkup;
entities?: Api.TypeMessageEntity[];
scheduleDate?: int;
quickReplyShortcutId?: int;
};
export class EditInlineBotMessage extends Request<Partial<{
// flags: undefined;
noWebpage?: true;
invertMedia?: true;
id: Api.TypeInputBotInlineMessageID;
message?: string;
media?: Api.TypeInputMedia;
replyMarkup?: Api.TypeReplyMarkup;
entities?: Api.TypeMessageEntity[];
}>, Bool> {
// flags: undefined;
noWebpage?: true;
invertMedia?: true;
id: Api.TypeInputBotInlineMessageID;
message?: string;
media?: Api.TypeInputMedia;
replyMarkup?: Api.TypeReplyMarkup;
entities?: Api.TypeMessageEntity[];
};
export class GetBotCallbackAnswer extends Request<Partial<{
// flags: undefined;
game?: true;
peer: Api.TypeInputPeer;
msgId: int;
data?: bytes;
password?: Api.TypeInputCheckPasswordSRP;
}>, messages.TypeBotCallbackAnswer> {
// flags: undefined;
game?: true;
peer: Api.TypeInputPeer;
msgId: int;
data?: bytes;
password?: Api.TypeInputCheckPasswordSRP;
};
export class SetBotCallbackAnswer extends Request<Partial<{
// flags: undefined;
alert?: true;
queryId: long;
message?: string;
url?: string;
cacheTime: int;
}>, Bool> {
// flags: undefined;
alert?: true;
queryId: long;
message?: string;
url?: string;
cacheTime: int;
};
export class GetPeerDialogs extends Request<Partial<{
peers: Api.TypeInputDialogPeer[];
}>, messages.TypePeerDialogs> {
peers: Api.TypeInputDialogPeer[];
};
export class SaveDraft extends Request<Partial<{
// flags: undefined;
noWebpage?: true;
invertMedia?: true;
replyTo?: Api.TypeInputReplyTo;
peer: Api.TypeInputPeer;
message: string;
entities?: Api.TypeMessageEntity[];
media?: Api.TypeInputMedia;
effect?: long;
}>, Bool> {
// flags: undefined;
noWebpage?: true;
invertMedia?: true;
replyTo?: Api.TypeInputReplyTo;
peer: Api.TypeInputPeer;
message: string;
entities?: Api.TypeMessageEntity[];
media?: Api.TypeInputMedia;
effect?: long;
};
export class GetAllDrafts extends Request<void, Api.TypeUpdates> {};
export class GetFeaturedStickers extends Request<Partial<{
hash: long;
}>, messages.TypeFeaturedStickers> {
hash: long;
};
export class ReadFeaturedStickers extends Request<Partial<{
id: long[];
}>, Bool> {
id: long[];
};
export class GetRecentStickers extends Request<Partial<{
// flags: undefined;
attached?: true;
hash: long;
}>, messages.TypeRecentStickers> {
// flags: undefined;
attached?: true;
hash: long;
};
export class SaveRecentSticker extends Request<Partial<{
// flags: undefined;
attached?: true;
id: Api.TypeInputDocument;
unsave: Bool;
}>, Bool> {
// flags: undefined;
attached?: true;
id: Api.TypeInputDocument;
unsave: Bool;
};
export class ClearRecentStickers extends Request<Partial<{
// flags: undefined;
attached?: true;
} | void>, Bool> {
// flags: undefined;
attached?: true;
};
export class GetArchivedStickers extends Request<Partial<{
// flags: undefined;
masks?: true;
emojis?: true;
offsetId: long;
limit: int;
}>, messages.TypeArchivedStickers> {
// flags: undefined;
masks?: true;
emojis?: true;
offsetId: long;
limit: int;
};
export class GetMaskStickers extends Request<Partial<{
hash: long;
}>, messages.TypeAllStickers> {
hash: long;
};
export class GetAttachedStickers extends Request<Partial<{
media: Api.TypeInputStickeredMedia;
}>, Api.TypeStickerSetCovered[]> {
media: Api.TypeInputStickeredMedia;
};
export class SetGameScore extends Request<Partial<{
// flags: undefined;
editMessage?: true;
force?: true;
peer: Api.TypeInputPeer;
id: int;
userId: Api.TypeInputUser;
score: int;
}>, Api.TypeUpdates> {
// flags: undefined;
editMessage?: true;
force?: true;
peer: Api.TypeInputPeer;
id: int;
userId: Api.TypeInputUser;
score: int;
};
export class SetInlineGameScore extends Request<Partial<{
// flags: undefined;
editMessage?: true;
force?: true;
id: Api.TypeInputBotInlineMessageID;
userId: Api.TypeInputUser;
score: int;
}>, Bool> {
// flags: undefined;
editMessage?: true;
force?: true;
id: Api.TypeInputBotInlineMessageID;
userId: Api.TypeInputUser;
score: int;
};
export class GetGameHighScores extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int;
userId: Api.TypeInputUser;
}>, messages.TypeHighScores> {
peer: Api.TypeInputPeer;
id: int;
userId: Api.TypeInputUser;
};
export class GetInlineGameHighScores extends Request<Partial<{
id: Api.TypeInputBotInlineMessageID;
userId: Api.TypeInputUser;
}>, messages.TypeHighScores> {
id: Api.TypeInputBotInlineMessageID;
userId: Api.TypeInputUser;
};
export class GetCommonChats extends Request<Partial<{
userId: Api.TypeInputUser;
maxId: long;
limit: int;
}>, messages.TypeChats> {
userId: Api.TypeInputUser;
maxId: long;
limit: int;
};
export class GetWebPage extends Request<Partial<{
url: string;
hash: int;
}>, messages.TypeWebPage> {
url: string;
hash: int;
};
export class ToggleDialogPin extends Request<Partial<{
// flags: undefined;
pinned?: true;
peer: Api.TypeInputDialogPeer;
}>, Bool> {
// flags: undefined;
pinned?: true;
peer: Api.TypeInputDialogPeer;
};
export class ReorderPinnedDialogs extends Request<Partial<{
// flags: undefined;
force?: true;
folderId: int;
order: Api.TypeInputDialogPeer[];
}>, Bool> {
// flags: undefined;
force?: true;
folderId: int;
order: Api.TypeInputDialogPeer[];
};
export class GetPinnedDialogs extends Request<Partial<{
folderId: int;
}>, messages.TypePeerDialogs> {
folderId: int;
};
export class SetBotShippingResults extends Request<Partial<{
// flags: undefined;
queryId: long;
error?: string;
shippingOptions?: Api.TypeShippingOption[];
}>, Bool> {
// flags: undefined;
queryId: long;
error?: string;
shippingOptions?: Api.TypeShippingOption[];
};
export class SetBotPrecheckoutResults extends Request<Partial<{
// flags: undefined;
success?: true;
queryId: long;
error?: string;
}>, Bool> {
// flags: undefined;
success?: true;
queryId: long;
error?: string;
};
export class UploadMedia extends Request<Partial<{
// flags: undefined;
businessConnectionId?: string;
peer: Api.TypeInputPeer;
media: Api.TypeInputMedia;
}>, Api.TypeMessageMedia> {
// flags: undefined;
businessConnectionId?: string;
peer: Api.TypeInputPeer;
media: Api.TypeInputMedia;
};
export class SendScreenshotNotification extends Request<Partial<{
peer: Api.TypeInputPeer;
replyTo: Api.TypeInputReplyTo;
randomId: long;
}>, Api.TypeUpdates> {
peer: Api.TypeInputPeer;
replyTo: Api.TypeInputReplyTo;
randomId: long;
};
export class GetFavedStickers extends Request<Partial<{
hash: long;
}>, messages.TypeFavedStickers> {
hash: long;
};
export class FaveSticker extends Request<Partial<{
id: Api.TypeInputDocument;
unfave: Bool;
}>, Bool> {
id: Api.TypeInputDocument;
unfave: Bool;
};
export class GetUnreadMentions extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
topMsgId?: int;
offsetId: int;
addOffset: int;
limit: int;
maxId: int;
minId: int;
}>, messages.TypeMessages> {
// flags: undefined;
peer: Api.TypeInputPeer;
topMsgId?: int;
offsetId: int;
addOffset: int;
limit: int;
maxId: int;
minId: int;
};
export class ReadMentions extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
topMsgId?: int;
}>, messages.TypeAffectedHistory> {
// flags: undefined;
peer: Api.TypeInputPeer;
topMsgId?: int;
};
export class GetRecentLocations extends Request<Partial<{
peer: Api.TypeInputPeer;
limit: int;
hash: long;
}>, messages.TypeMessages> {
peer: Api.TypeInputPeer;
limit: int;
hash: long;
};
export class SendMultiMedia extends Request<Partial<{
// flags: undefined;
silent?: true;
background?: true;
clearDraft?: true;
noforwards?: true;
updateStickersetsOrder?: true;
invertMedia?: true;
allowPaidFloodskip?: true;
peer: Api.TypeInputPeer;
replyTo?: Api.TypeInputReplyTo;
multiMedia: Api.TypeInputSingleMedia[];
scheduleDate?: int;
sendAs?: Api.TypeInputPeer;
quickReplyShortcut?: Api.TypeInputQuickReplyShortcut;
effect?: long;
}>, Api.TypeUpdates> {
// flags: undefined;
silent?: true;
background?: true;
clearDraft?: true;
noforwards?: true;
updateStickersetsOrder?: true;
invertMedia?: true;
allowPaidFloodskip?: true;
peer: Api.TypeInputPeer;
replyTo?: Api.TypeInputReplyTo;
multiMedia: Api.TypeInputSingleMedia[];
scheduleDate?: int;
sendAs?: Api.TypeInputPeer;
quickReplyShortcut?: Api.TypeInputQuickReplyShortcut;
effect?: long;
};
export class UploadEncryptedFile extends Request<Partial<{
peer: Api.TypeInputEncryptedChat;
file: Api.TypeInputEncryptedFile;
}>, Api.TypeEncryptedFile> {
peer: Api.TypeInputEncryptedChat;
file: Api.TypeInputEncryptedFile;
};
export class SearchStickerSets extends Request<Partial<{
// flags: undefined;
excludeFeatured?: true;
q: string;
hash: long;
}>, messages.TypeFoundStickerSets> {
// flags: undefined;
excludeFeatured?: true;
q: string;
hash: long;
};
export class GetSplitRanges extends Request<void, Api.TypeMessageRange[]> {};
export class MarkDialogUnread extends Request<Partial<{
// flags: undefined;
unread?: true;
peer: Api.TypeInputDialogPeer;
}>, Bool> {
// flags: undefined;
unread?: true;
peer: Api.TypeInputDialogPeer;
};
export class GetDialogUnreadMarks extends Request<void, Api.TypeDialogPeer[]> {};
export class ClearAllDrafts extends Request<void, Bool> {};
export class UpdatePinnedMessage extends Request<Partial<{
// flags: undefined;
silent?: true;
unpin?: true;
pmOneside?: true;
peer: Api.TypeInputPeer;
id: int;
}>, Api.TypeUpdates> {
// flags: undefined;
silent?: true;
unpin?: true;
pmOneside?: true;
peer: Api.TypeInputPeer;
id: int;
};
export class SendVote extends Request<Partial<{
peer: Api.TypeInputPeer;
msgId: int;
options: bytes[];
}>, Api.TypeUpdates> {
peer: Api.TypeInputPeer;
msgId: int;
options: bytes[];
};
export class GetPollResults extends Request<Partial<{
peer: Api.TypeInputPeer;
msgId: int;
}>, Api.TypeUpdates> {
peer: Api.TypeInputPeer;
msgId: int;
};
export class GetOnlines extends Request<Partial<{
peer: Api.TypeInputPeer;
}>, Api.TypeChatOnlines> {
peer: Api.TypeInputPeer;
};
export class EditChatAbout extends Request<Partial<{
peer: Api.TypeInputPeer;
about: string;
}>, Bool> {
peer: Api.TypeInputPeer;
about: string;
};
export class EditChatDefaultBannedRights extends Request<Partial<{
peer: Api.TypeInputPeer;
bannedRights: Api.TypeChatBannedRights;
}>, Api.TypeUpdates> {
peer: Api.TypeInputPeer;
bannedRights: Api.TypeChatBannedRights;
};
export class GetEmojiKeywords extends Request<Partial<{
langCode: string;
}>, Api.TypeEmojiKeywordsDifference> {
langCode: string;
};
export class GetEmojiKeywordsDifference extends Request<Partial<{
langCode: string;
fromVersion: int;
}>, Api.TypeEmojiKeywordsDifference> {
langCode: string;
fromVersion: int;
};
export class GetEmojiKeywordsLanguages extends Request<Partial<{
langCodes: string[];
}>, Api.TypeEmojiLanguage[]> {
langCodes: string[];
};
export class GetEmojiURL extends Request<Partial<{
langCode: string;
}>, Api.TypeEmojiURL> {
langCode: string;
};
export class GetSearchCounters extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
savedPeerId?: Api.TypeInputPeer;
topMsgId?: int;
filters: Api.TypeMessagesFilter[];
}>, messages.TypeSearchCounter[]> {
// flags: undefined;
peer: Api.TypeInputPeer;
savedPeerId?: Api.TypeInputPeer;
topMsgId?: int;
filters: Api.TypeMessagesFilter[];
};
export class RequestUrlAuth extends Request<Partial<{
// flags: undefined;
peer?: Api.TypeInputPeer;
msgId?: int;
buttonId?: int;
url?: string;
} | void>, Api.TypeUrlAuthResult> {
// flags: undefined;
peer?: Api.TypeInputPeer;
msgId?: int;
buttonId?: int;
url?: string;
};
export class AcceptUrlAuth extends Request<Partial<{
// flags: undefined;
writeAllowed?: true;
peer?: Api.TypeInputPeer;
msgId?: int;
buttonId?: int;
url?: string;
} | void>, Api.TypeUrlAuthResult> {
// flags: undefined;
writeAllowed?: true;
peer?: Api.TypeInputPeer;
msgId?: int;
buttonId?: int;
url?: string;
};
export class HidePeerSettingsBar extends Request<Partial<{
peer: Api.TypeInputPeer;
}>, Bool> {
peer: Api.TypeInputPeer;
};
export class GetScheduledHistory extends Request<Partial<{
peer: Api.TypeInputPeer;
hash: long;
}>, messages.TypeMessages> {
peer: Api.TypeInputPeer;
hash: long;
};
export class GetScheduledMessages extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int[];
}>, messages.TypeMessages> {
peer: Api.TypeInputPeer;
id: int[];
};
export class SendScheduledMessages extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int[];
}>, Api.TypeUpdates> {
peer: Api.TypeInputPeer;
id: int[];
};
export class DeleteScheduledMessages extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int[];
}>, Api.TypeUpdates> {
peer: Api.TypeInputPeer;
id: int[];
};
export class GetPollVotes extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
id: int;
option?: bytes;
offset?: string;
limit: int;
}>, messages.TypeVotesList> {
// flags: undefined;
peer: Api.TypeInputPeer;
id: int;
option?: bytes;
offset?: string;
limit: int;
};
export class ToggleStickerSets extends Request<Partial<{
// flags: undefined;
uninstall?: true;
archive?: true;
unarchive?: true;
stickersets: Api.TypeInputStickerSet[];
}>, Bool> {
// flags: undefined;
uninstall?: true;
archive?: true;
unarchive?: true;
stickersets: Api.TypeInputStickerSet[];
};
export class GetDialogFilters extends Request<void, messages.TypeDialogFilters> {};
export class GetSuggestedDialogFilters extends Request<void, Api.TypeDialogFilterSuggested[]> {};
export class UpdateDialogFilter extends Request<Partial<{
// flags: undefined;
id: int;
filter?: Api.TypeDialogFilter;
}>, Bool> {
// flags: undefined;
id: int;
filter?: Api.TypeDialogFilter;
};
export class UpdateDialogFiltersOrder extends Request<Partial<{
order: int[];
}>, Bool> {
order: int[];
};
export class GetOldFeaturedStickers extends Request<Partial<{
offset: int;
limit: int;
hash: long;
}>, messages.TypeFeaturedStickers> {
offset: int;
limit: int;
hash: long;
};
export class GetReplies extends Request<Partial<{
peer: Api.TypeInputPeer;
msgId: int;
offsetId: int;
offsetDate: int;
addOffset: int;
limit: int;
maxId: int;
minId: int;
hash: long;
}>, messages.TypeMessages> {
peer: Api.TypeInputPeer;
msgId: int;
offsetId: int;
offsetDate: int;
addOffset: int;
limit: int;
maxId: int;
minId: int;
hash: long;
};
export class GetDiscussionMessage extends Request<Partial<{
peer: Api.TypeInputPeer;
msgId: int;
}>, messages.TypeDiscussionMessage> {
peer: Api.TypeInputPeer;
msgId: int;
};
export class ReadDiscussion extends Request<Partial<{
peer: Api.TypeInputPeer;
msgId: int;
readMaxId: int;
}>, Bool> {
peer: Api.TypeInputPeer;
msgId: int;
readMaxId: int;
};
export class UnpinAllMessages extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
topMsgId?: int;
}>, messages.TypeAffectedHistory> {
// flags: undefined;
peer: Api.TypeInputPeer;
topMsgId?: int;
};
export class DeleteChat extends Request<Partial<{
chatId: long;
}>, Bool> {
chatId: long;
};
export class DeletePhoneCallHistory extends Request<Partial<{
// flags: undefined;
revoke?: true;
} | void>, messages.TypeAffectedFoundMessages> {
// flags: undefined;
revoke?: true;
};
export class CheckHistoryImport extends Request<Partial<{
importHead: string;
}>, messages.TypeHistoryImportParsed> {
importHead: string;
};
export class InitHistoryImport extends Request<Partial<{
peer: Api.TypeInputPeer;
file: Api.TypeInputFile;
mediaCount: int;
}>, messages.TypeHistoryImport> {
peer: Api.TypeInputPeer;
file: Api.TypeInputFile;
mediaCount: int;
};
export class UploadImportedMedia extends Request<Partial<{
peer: Api.TypeInputPeer;
importId: long;
fileName: string;
media: Api.TypeInputMedia;
}>, Api.TypeMessageMedia> {
peer: Api.TypeInputPeer;
importId: long;
fileName: string;
media: Api.TypeInputMedia;
};
export class StartHistoryImport extends Request<Partial<{
peer: Api.TypeInputPeer;
importId: long;
}>, Bool> {
peer: Api.TypeInputPeer;
importId: long;
};
export class GetExportedChatInvites extends Request<Partial<{
// flags: undefined;
revoked?: true;
peer: Api.TypeInputPeer;
adminId: Api.TypeInputUser;
offsetDate?: int;
offsetLink?: string;
limit: int;
}>, messages.TypeExportedChatInvites> {
// flags: undefined;
revoked?: true;
peer: Api.TypeInputPeer;
adminId: Api.TypeInputUser;
offsetDate?: int;
offsetLink?: string;
limit: int;
};
export class GetExportedChatInvite extends Request<Partial<{
peer: Api.TypeInputPeer;
link: string;
}>, messages.TypeExportedChatInvite> {
peer: Api.TypeInputPeer;
link: string;
};
export class EditExportedChatInvite extends Request<Partial<{
// flags: undefined;
revoked?: true;
peer: Api.TypeInputPeer;
link: string;
expireDate?: int;
usageLimit?: int;
requestNeeded?: Bool;
title?: string;
}>, messages.TypeExportedChatInvite> {
// flags: undefined;
revoked?: true;
peer: Api.TypeInputPeer;
link: string;
expireDate?: int;
usageLimit?: int;
requestNeeded?: Bool;
title?: string;
};
export class DeleteRevokedExportedChatInvites extends Request<Partial<{
peer: Api.TypeInputPeer;
adminId: Api.TypeInputUser;
}>, Bool> {
peer: Api.TypeInputPeer;
adminId: Api.TypeInputUser;
};
export class DeleteExportedChatInvite extends Request<Partial<{
peer: Api.TypeInputPeer;
link: string;
}>, Bool> {
peer: Api.TypeInputPeer;
link: string;
};
export class GetAdminsWithInvites extends Request<Partial<{
peer: Api.TypeInputPeer;
}>, messages.TypeChatAdminsWithInvites> {
peer: Api.TypeInputPeer;
};
export class GetChatInviteImporters extends Request<Partial<{
// flags: undefined;
requested?: true;
subscriptionExpired?: true;
peer: Api.TypeInputPeer;
link?: string;
q?: string;
offsetDate: int;
offsetUser: Api.TypeInputUser;
limit: int;
}>, messages.TypeChatInviteImporters> {
// flags: undefined;
requested?: true;
subscriptionExpired?: true;
peer: Api.TypeInputPeer;
link?: string;
q?: string;
offsetDate: int;
offsetUser: Api.TypeInputUser;
limit: int;
};
export class SetHistoryTTL extends Request<Partial<{
peer: Api.TypeInputPeer;
period: int;
}>, Api.TypeUpdates> {
peer: Api.TypeInputPeer;
period: int;
};
export class CheckHistoryImportPeer extends Request<Partial<{
peer: Api.TypeInputPeer;
}>, messages.TypeCheckedHistoryImportPeer> {
peer: Api.TypeInputPeer;
};
export class SetChatTheme extends Request<Partial<{
peer: Api.TypeInputPeer;
emoticon: string;
}>, Api.TypeUpdates> {
peer: Api.TypeInputPeer;
emoticon: string;
};
export class GetMessageReadParticipants extends Request<Partial<{
peer: Api.TypeInputPeer;
msgId: int;
}>, Api.TypeReadParticipantDate[]> {
peer: Api.TypeInputPeer;
msgId: int;
};
export class GetSearchResultsCalendar extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
savedPeerId?: Api.TypeInputPeer;
filter: Api.TypeMessagesFilter;
offsetId: int;
offsetDate: int;
}>, messages.TypeSearchResultsCalendar> {
// flags: undefined;
peer: Api.TypeInputPeer;
savedPeerId?: Api.TypeInputPeer;
filter: Api.TypeMessagesFilter;
offsetId: int;
offsetDate: int;
};
export class GetSearchResultsPositions extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
savedPeerId?: Api.TypeInputPeer;
filter: Api.TypeMessagesFilter;
offsetId: int;
limit: int;
}>, messages.TypeSearchResultsPositions> {
// flags: undefined;
peer: Api.TypeInputPeer;
savedPeerId?: Api.TypeInputPeer;
filter: Api.TypeMessagesFilter;
offsetId: int;
limit: int;
};
export class HideChatJoinRequest extends Request<Partial<{
// flags: undefined;
approved?: true;
peer: Api.TypeInputPeer;
userId: Api.TypeInputUser;
}>, Api.TypeUpdates> {
// flags: undefined;
approved?: true;
peer: Api.TypeInputPeer;
userId: Api.TypeInputUser;
};
export class HideAllChatJoinRequests extends Request<Partial<{
// flags: undefined;
approved?: true;
peer: Api.TypeInputPeer;
link?: string;
}>, Api.TypeUpdates> {
// flags: undefined;
approved?: true;
peer: Api.TypeInputPeer;
link?: string;
};
export class ToggleNoForwards extends Request<Partial<{
peer: Api.TypeInputPeer;
enabled: Bool;
}>, Api.TypeUpdates> {
peer: Api.TypeInputPeer;
enabled: Bool;
};
export class SaveDefaultSendAs extends Request<Partial<{
peer: Api.TypeInputPeer;
sendAs: Api.TypeInputPeer;
}>, Bool> {
peer: Api.TypeInputPeer;
sendAs: Api.TypeInputPeer;
};
export class SendReaction extends Request<Partial<{
// flags: undefined;
big?: true;
addToRecent?: true;
peer: Api.TypeInputPeer;
msgId: int;
reaction?: Api.TypeReaction[];
}>, Api.TypeUpdates> {
// flags: undefined;
big?: true;
addToRecent?: true;
peer: Api.TypeInputPeer;
msgId: int;
reaction?: Api.TypeReaction[];
};
export class GetMessagesReactions extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int[];
}>, Api.TypeUpdates> {
peer: Api.TypeInputPeer;
id: int[];
};
export class GetMessageReactionsList extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
id: int;
reaction?: Api.TypeReaction;
offset?: string;
limit: int;
}>, messages.TypeMessageReactionsList> {
// flags: undefined;
peer: Api.TypeInputPeer;
id: int;
reaction?: Api.TypeReaction;
offset?: string;
limit: int;
};
export class SetChatAvailableReactions extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
availableReactions: Api.TypeChatReactions;
reactionsLimit?: int;
paidEnabled?: Bool;
}>, Api.TypeUpdates> {
// flags: undefined;
peer: Api.TypeInputPeer;
availableReactions: Api.TypeChatReactions;
reactionsLimit?: int;
paidEnabled?: Bool;
};
export class GetAvailableReactions extends Request<Partial<{
hash: int;
}>, messages.TypeAvailableReactions> {
hash: int;
};
export class SetDefaultReaction extends Request<Partial<{
reaction: Api.TypeReaction;
}>, Bool> {
reaction: Api.TypeReaction;
};
export class TranslateText extends Request<Partial<{
// flags: undefined;
peer?: Api.TypeInputPeer;
id?: int[];
text?: Api.TypeTextWithEntities[];
toLang: string;
}>, messages.TypeTranslatedText> {
// flags: undefined;
peer?: Api.TypeInputPeer;
id?: int[];
text?: Api.TypeTextWithEntities[];
toLang: string;
};
export class GetUnreadReactions extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
topMsgId?: int;
offsetId: int;
addOffset: int;
limit: int;
maxId: int;
minId: int;
}>, messages.TypeMessages> {
// flags: undefined;
peer: Api.TypeInputPeer;
topMsgId?: int;
offsetId: int;
addOffset: int;
limit: int;
maxId: int;
minId: int;
};
export class ReadReactions extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
topMsgId?: int;
}>, messages.TypeAffectedHistory> {
// flags: undefined;
peer: Api.TypeInputPeer;
topMsgId?: int;
};
export class SearchSentMedia extends Request<Partial<{
q: string;
filter: Api.TypeMessagesFilter;
limit: int;
}>, messages.TypeMessages> {
q: string;
filter: Api.TypeMessagesFilter;
limit: int;
};
export class GetAttachMenuBots extends Request<Partial<{
hash: long;
}>, Api.TypeAttachMenuBots> {
hash: long;
};
export class GetAttachMenuBot extends Request<Partial<{
bot: Api.TypeInputUser;
}>, Api.TypeAttachMenuBotsBot> {
bot: Api.TypeInputUser;
};
export class ToggleBotInAttachMenu extends Request<Partial<{
// flags: undefined;
writeAllowed?: true;
bot: Api.TypeInputUser;
enabled: Bool;
}>, Bool> {
// flags: undefined;
writeAllowed?: true;
bot: Api.TypeInputUser;
enabled: Bool;
};
export class RequestWebView extends Request<Partial<{
// flags: undefined;
fromBotMenu?: true;
silent?: true;
compact?: true;
fullscreen?: true;
peer: Api.TypeInputPeer;
bot: Api.TypeInputUser;
url?: string;
startParam?: string;
themeParams?: Api.TypeDataJSON;
platform: string;
replyTo?: Api.TypeInputReplyTo;
sendAs?: Api.TypeInputPeer;
}>, Api.TypeWebViewResult> {
// flags: undefined;
fromBotMenu?: true;
silent?: true;
compact?: true;
fullscreen?: true;
peer: Api.TypeInputPeer;
bot: Api.TypeInputUser;
url?: string;
startParam?: string;
themeParams?: Api.TypeDataJSON;
platform: string;
replyTo?: Api.TypeInputReplyTo;
sendAs?: Api.TypeInputPeer;
};
export class ProlongWebView extends Request<Partial<{
// flags: undefined;
silent?: true;
peer: Api.TypeInputPeer;
bot: Api.TypeInputUser;
queryId: long;
replyTo?: Api.TypeInputReplyTo;
sendAs?: Api.TypeInputPeer;
}>, Bool> {
// flags: undefined;
silent?: true;
peer: Api.TypeInputPeer;
bot: Api.TypeInputUser;
queryId: long;
replyTo?: Api.TypeInputReplyTo;
sendAs?: Api.TypeInputPeer;
};
export class RequestSimpleWebView extends Request<Partial<{
// flags: undefined;
fromSwitchWebview?: true;
fromSideMenu?: true;
compact?: true;
fullscreen?: true;
bot: Api.TypeInputUser;
url?: string;
startParam?: string;
themeParams?: Api.TypeDataJSON;
platform: string;
}>, Api.TypeWebViewResult> {
// flags: undefined;
fromSwitchWebview?: true;
fromSideMenu?: true;
compact?: true;
fullscreen?: true;
bot: Api.TypeInputUser;
url?: string;
startParam?: string;
themeParams?: Api.TypeDataJSON;
platform: string;
};
export class SendWebViewResultMessage extends Request<Partial<{
botQueryId: string;
result: Api.TypeInputBotInlineResult;
}>, Api.TypeWebViewMessageSent> {
botQueryId: string;
result: Api.TypeInputBotInlineResult;
};
export class SendWebViewData extends Request<Partial<{
bot: Api.TypeInputUser;
randomId: long;
buttonText: string;
data: string;
}>, Api.TypeUpdates> {
bot: Api.TypeInputUser;
randomId: long;
buttonText: string;
data: string;
};
export class TranscribeAudio extends Request<Partial<{
peer: Api.TypeInputPeer;
msgId: int;
}>, messages.TypeTranscribedAudio> {
peer: Api.TypeInputPeer;
msgId: int;
};
export class RateTranscribedAudio extends Request<Partial<{
peer: Api.TypeInputPeer;
msgId: int;
transcriptionId: long;
good: Bool;
}>, Bool> {
peer: Api.TypeInputPeer;
msgId: int;
transcriptionId: long;
good: Bool;
};
export class GetCustomEmojiDocuments extends Request<Partial<{
documentId: long[];
}>, Api.TypeDocument[]> {
documentId: long[];
};
export class GetEmojiStickers extends Request<Partial<{
hash: long;
}>, messages.TypeAllStickers> {
hash: long;
};
export class GetFeaturedEmojiStickers extends Request<Partial<{
hash: long;
}>, messages.TypeFeaturedStickers> {
hash: long;
};
export class ReportReaction extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int;
reactionPeer: Api.TypeInputPeer;
}>, Bool> {
peer: Api.TypeInputPeer;
id: int;
reactionPeer: Api.TypeInputPeer;
};
export class GetTopReactions extends Request<Partial<{
limit: int;
hash: long;
}>, messages.TypeReactions> {
limit: int;
hash: long;
};
export class GetRecentReactions extends Request<Partial<{
limit: int;
hash: long;
}>, messages.TypeReactions> {
limit: int;
hash: long;
};
export class ClearRecentReactions extends Request<void, Bool> {};
export class GetExtendedMedia extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int[];
}>, Api.TypeUpdates> {
peer: Api.TypeInputPeer;
id: int[];
};
export class SetDefaultHistoryTTL extends Request<Partial<{
period: int;
}>, Bool> {
period: int;
};
export class GetDefaultHistoryTTL extends Request<void, Api.TypeDefaultHistoryTTL> {};
export class SendBotRequestedPeer extends Request<Partial<{
peer: Api.TypeInputPeer;
msgId: int;
buttonId: int;
requestedPeers: Api.TypeInputPeer[];
}>, Api.TypeUpdates> {
peer: Api.TypeInputPeer;
msgId: int;
buttonId: int;
requestedPeers: Api.TypeInputPeer[];
};
export class GetEmojiGroups extends Request<Partial<{
hash: int;
}>, messages.TypeEmojiGroups> {
hash: int;
};
export class GetEmojiStatusGroups extends Request<Partial<{
hash: int;
}>, messages.TypeEmojiGroups> {
hash: int;
};
export class GetEmojiProfilePhotoGroups extends Request<Partial<{
hash: int;
}>, messages.TypeEmojiGroups> {
hash: int;
};
export class SearchCustomEmoji extends Request<Partial<{
emoticon: string;
hash: long;
}>, Api.TypeEmojiList> {
emoticon: string;
hash: long;
};
export class TogglePeerTranslations extends Request<Partial<{
// flags: undefined;
disabled?: true;
peer: Api.TypeInputPeer;
}>, Bool> {
// flags: undefined;
disabled?: true;
peer: Api.TypeInputPeer;
};
export class GetBotApp extends Request<Partial<{
app: Api.TypeInputBotApp;
hash: long;
}>, messages.TypeBotApp> {
app: Api.TypeInputBotApp;
hash: long;
};
export class RequestAppWebView extends Request<Partial<{
// flags: undefined;
writeAllowed?: true;
compact?: true;
fullscreen?: true;
peer: Api.TypeInputPeer;
app: Api.TypeInputBotApp;
startParam?: string;
themeParams?: Api.TypeDataJSON;
platform: string;
}>, Api.TypeWebViewResult> {
// flags: undefined;
writeAllowed?: true;
compact?: true;
fullscreen?: true;
peer: Api.TypeInputPeer;
app: Api.TypeInputBotApp;
startParam?: string;
themeParams?: Api.TypeDataJSON;
platform: string;
};
export class SetChatWallPaper extends Request<Partial<{
// flags: undefined;
forBoth?: true;
revert?: true;
peer: Api.TypeInputPeer;
wallpaper?: Api.TypeInputWallPaper;
settings?: Api.TypeWallPaperSettings;
id?: int;
}>, Api.TypeUpdates> {
// flags: undefined;
forBoth?: true;
revert?: true;
peer: Api.TypeInputPeer;
wallpaper?: Api.TypeInputWallPaper;
settings?: Api.TypeWallPaperSettings;
id?: int;
};
export class SearchEmojiStickerSets extends Request<Partial<{
// flags: undefined;
excludeFeatured?: true;
q: string;
hash: long;
}>, messages.TypeFoundStickerSets> {
// flags: undefined;
excludeFeatured?: true;
q: string;
hash: long;
};
export class GetSavedDialogs extends Request<Partial<{
// flags: undefined;
excludePinned?: true;
offsetDate: int;
offsetId: int;
offsetPeer: Api.TypeInputPeer;
limit: int;
hash: long;
}>, messages.TypeSavedDialogs> {
// flags: undefined;
excludePinned?: true;
offsetDate: int;
offsetId: int;
offsetPeer: Api.TypeInputPeer;
limit: int;
hash: long;
};
export class GetSavedHistory extends Request<Partial<{
peer: Api.TypeInputPeer;
offsetId: int;
offsetDate: int;
addOffset: int;
limit: int;
maxId: int;
minId: int;
hash: long;
}>, messages.TypeMessages> {
peer: Api.TypeInputPeer;
offsetId: int;
offsetDate: int;
addOffset: int;
limit: int;
maxId: int;
minId: int;
hash: long;
};
export class DeleteSavedHistory extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
maxId: int;
minDate?: int;
maxDate?: int;
}>, messages.TypeAffectedHistory> {
// flags: undefined;
peer: Api.TypeInputPeer;
maxId: int;
minDate?: int;
maxDate?: int;
};
export class GetPinnedSavedDialogs extends Request<void, messages.TypeSavedDialogs> {};
export class ToggleSavedDialogPin extends Request<Partial<{
// flags: undefined;
pinned?: true;
peer: Api.TypeInputDialogPeer;
}>, Bool> {
// flags: undefined;
pinned?: true;
peer: Api.TypeInputDialogPeer;
};
export class ReorderPinnedSavedDialogs extends Request<Partial<{
// flags: undefined;
force?: true;
order: Api.TypeInputDialogPeer[];
}>, Bool> {
// flags: undefined;
force?: true;
order: Api.TypeInputDialogPeer[];
};
export class GetSavedReactionTags extends Request<Partial<{
// flags: undefined;
peer?: Api.TypeInputPeer;
hash: long;
}>, messages.TypeSavedReactionTags> {
// flags: undefined;
peer?: Api.TypeInputPeer;
hash: long;
};
export class UpdateSavedReactionTag extends Request<Partial<{
// flags: undefined;
reaction: Api.TypeReaction;
title?: string;
}>, Bool> {
// flags: undefined;
reaction: Api.TypeReaction;
title?: string;
};
export class GetDefaultTagReactions extends Request<Partial<{
hash: long;
}>, messages.TypeReactions> {
hash: long;
};
export class GetOutboxReadDate extends Request<Partial<{
peer: Api.TypeInputPeer;
msgId: int;
}>, Api.TypeOutboxReadDate> {
peer: Api.TypeInputPeer;
msgId: int;
};
export class GetQuickReplies extends Request<Partial<{
hash: long;
}>, messages.TypeQuickReplies> {
hash: long;
};
export class ReorderQuickReplies extends Request<Partial<{
order: int[];
}>, Bool> {
order: int[];
};
export class CheckQuickReplyShortcut extends Request<Partial<{
shortcut: string;
}>, Bool> {
shortcut: string;
};
export class EditQuickReplyShortcut extends Request<Partial<{
shortcutId: int;
shortcut: string;
}>, Bool> {
shortcutId: int;
shortcut: string;
};
export class DeleteQuickReplyShortcut extends Request<Partial<{
shortcutId: int;
}>, Bool> {
shortcutId: int;
};
export class GetQuickReplyMessages extends Request<Partial<{
// flags: undefined;
shortcutId: int;
id?: int[];
hash: long;
}>, messages.TypeMessages> {
// flags: undefined;
shortcutId: int;
id?: int[];
hash: long;
};
export class SendQuickReplyMessages extends Request<Partial<{
peer: Api.TypeInputPeer;
shortcutId: int;
id: int[];
randomId: long[];
}>, Api.TypeUpdates> {
peer: Api.TypeInputPeer;
shortcutId: int;
id: int[];
randomId: long[];
};
export class DeleteQuickReplyMessages extends Request<Partial<{
shortcutId: int;
id: int[];
}>, Api.TypeUpdates> {
shortcutId: int;
id: int[];
};
export class ToggleDialogFilterTags extends Request<Partial<{
enabled: Bool;
}>, Bool> {
enabled: Bool;
};
export class GetMyStickers extends Request<Partial<{
offsetId: long;
limit: int;
}>, messages.TypeMyStickers> {
offsetId: long;
limit: int;
};
export class GetEmojiStickerGroups extends Request<Partial<{
hash: int;
}>, messages.TypeEmojiGroups> {
hash: int;
};
export class GetAvailableEffects extends Request<Partial<{
hash: int;
}>, messages.TypeAvailableEffects> {
hash: int;
};
export class EditFactCheck extends Request<Partial<{
peer: Api.TypeInputPeer;
msgId: int;
text: Api.TypeTextWithEntities;
}>, Api.TypeUpdates> {
peer: Api.TypeInputPeer;
msgId: int;
text: Api.TypeTextWithEntities;
};
export class DeleteFactCheck extends Request<Partial<{
peer: Api.TypeInputPeer;
msgId: int;
}>, Api.TypeUpdates> {
peer: Api.TypeInputPeer;
msgId: int;
};
export class GetFactCheck extends Request<Partial<{
peer: Api.TypeInputPeer;
msgId: int[];
}>, Api.TypeFactCheck[]> {
peer: Api.TypeInputPeer;
msgId: int[];
};
export class RequestMainWebView extends Request<Partial<{
// flags: undefined;
compact?: true;
fullscreen?: true;
peer: Api.TypeInputPeer;
bot: Api.TypeInputUser;
startParam?: string;
themeParams?: Api.TypeDataJSON;
platform: string;
}>, Api.TypeWebViewResult> {
// flags: undefined;
compact?: true;
fullscreen?: true;
peer: Api.TypeInputPeer;
bot: Api.TypeInputUser;
startParam?: string;
themeParams?: Api.TypeDataJSON;
platform: string;
};
export class SendPaidReaction extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
msgId: int;
count: int;
randomId: long;
private?: Bool;
}>, Api.TypeUpdates> {
// flags: undefined;
peer: Api.TypeInputPeer;
msgId: int;
count: int;
randomId: long;
private?: Bool;
};
export class TogglePaidReactionPrivacy extends Request<Partial<{
peer: Api.TypeInputPeer;
msgId: int;
private: Bool;
}>, Bool> {
peer: Api.TypeInputPeer;
msgId: int;
private: Bool;
};
export class GetPaidReactionPrivacy extends Request<void, Api.TypeUpdates> {};
export class ViewSponsoredMessage extends Request<Partial<{
peer: Api.TypeInputPeer;
randomId: bytes;
}>, Bool> {
peer: Api.TypeInputPeer;
randomId: bytes;
};
export class ClickSponsoredMessage extends Request<Partial<{
// flags: undefined;
media?: true;
fullscreen?: true;
peer: Api.TypeInputPeer;
randomId: bytes;
}>, Bool> {
// flags: undefined;
media?: true;
fullscreen?: true;
peer: Api.TypeInputPeer;
randomId: bytes;
};
export class ReportSponsoredMessage extends Request<Partial<{
peer: Api.TypeInputPeer;
randomId: bytes;
option: bytes;
}>, channels.TypeSponsoredMessageReportResult> {
peer: Api.TypeInputPeer;
randomId: bytes;
option: bytes;
};
export class GetSponsoredMessages extends Request<Partial<{
peer: Api.TypeInputPeer;
}>, messages.TypeSponsoredMessages> {
peer: Api.TypeInputPeer;
};
export class SavePreparedInlineMessage extends Request<Partial<{
// flags: undefined;
result: Api.TypeInputBotInlineResult;
userId: Api.TypeInputUser;
peerTypes?: Api.TypeInlineQueryPeerType[];
}>, messages.TypeBotPreparedInlineMessage> {
// flags: undefined;
result: Api.TypeInputBotInlineResult;
userId: Api.TypeInputUser;
peerTypes?: Api.TypeInlineQueryPeerType[];
};
export class GetPreparedInlineMessage extends Request<Partial<{
bot: Api.TypeInputUser;
id: string;
}>, messages.TypePreparedInlineMessage> {
bot: Api.TypeInputUser;
id: string;
};
export class SearchStickers extends Request<Partial<{
// flags: undefined;
emojis?: true;
q: string;
emoticon: string;
langCode: string[];
offset: int;
limit: int;
hash: long;
}>, messages.TypeFoundStickers> {
// flags: undefined;
emojis?: true;
q: string;
emoticon: string;
langCode: string[];
offset: int;
limit: int;
hash: long;
};
export class ReportMessagesDelivery extends Request<Partial<{
// flags: undefined;
push?: true;
peer: Api.TypeInputPeer;
id: int[];
}>, Bool> {
// flags: undefined;
push?: true;
peer: Api.TypeInputPeer;
id: int[];
};
}
export namespace updates {
export class GetState extends Request<void, updates.TypeState> {};
export class GetDifference extends Request<Partial<{
// flags: undefined;
pts: int;
ptsLimit?: int;
ptsTotalLimit?: int;
date: int;
qts: int;
qtsLimit?: int;
}>, updates.TypeDifference> {
// flags: undefined;
pts: int;
ptsLimit?: int;
ptsTotalLimit?: int;
date: int;
qts: int;
qtsLimit?: int;
};
export class GetChannelDifference extends Request<Partial<{
// flags: undefined;
force?: true;
channel: Api.TypeInputChannel;
filter: Api.TypeChannelMessagesFilter;
pts: int;
limit: int;
}>, updates.TypeChannelDifference> {
// flags: undefined;
force?: true;
channel: Api.TypeInputChannel;
filter: Api.TypeChannelMessagesFilter;
pts: int;
limit: int;
};
}
export namespace photos {
export class UpdateProfilePhoto extends Request<Partial<{
// flags: undefined;
fallback?: true;
bot?: Api.TypeInputUser;
id: Api.TypeInputPhoto;
}>, photos.TypePhoto> {
// flags: undefined;
fallback?: true;
bot?: Api.TypeInputUser;
id: Api.TypeInputPhoto;
};
export class UploadProfilePhoto extends Request<Partial<{
// flags: undefined;
fallback?: true;
bot?: Api.TypeInputUser;
file?: Api.TypeInputFile;
video?: Api.TypeInputFile;
videoStartTs?: double;
videoEmojiMarkup?: Api.TypeVideoSize;
} | void>, photos.TypePhoto> {
// flags: undefined;
fallback?: true;
bot?: Api.TypeInputUser;
file?: Api.TypeInputFile;
video?: Api.TypeInputFile;
videoStartTs?: double;
videoEmojiMarkup?: Api.TypeVideoSize;
};
export class DeletePhotos extends Request<Partial<{
id: Api.TypeInputPhoto[];
}>, long[]> {
id: Api.TypeInputPhoto[];
};
export class GetUserPhotos extends Request<Partial<{
userId: Api.TypeInputUser;
offset: int;
maxId: long;
limit: int;
}>, photos.TypePhotos> {
userId: Api.TypeInputUser;
offset: int;
maxId: long;
limit: int;
};
export class UploadContactProfilePhoto extends Request<Partial<{
// flags: undefined;
suggest?: true;
save?: true;
userId: Api.TypeInputUser;
file?: Api.TypeInputFile;
video?: Api.TypeInputFile;
videoStartTs?: double;
videoEmojiMarkup?: Api.TypeVideoSize;
}>, photos.TypePhoto> {
// flags: undefined;
suggest?: true;
save?: true;
userId: Api.TypeInputUser;
file?: Api.TypeInputFile;
video?: Api.TypeInputFile;
videoStartTs?: double;
videoEmojiMarkup?: Api.TypeVideoSize;
};
}
export namespace upload {
export class SaveFilePart extends Request<Partial<{
fileId: long;
filePart: int;
bytes: bytes;
}>, Bool> {
fileId: long;
filePart: int;
bytes: bytes;
};
export class GetFile extends Request<Partial<{
// flags: undefined;
precise?: true;
cdnSupported?: true;
location: Api.TypeInputFileLocation;
offset: long;
limit: int;
}>, upload.TypeFile> {
// flags: undefined;
precise?: true;
cdnSupported?: true;
location: Api.TypeInputFileLocation;
offset: long;
limit: int;
};
export class SaveBigFilePart extends Request<Partial<{
fileId: long;
filePart: int;
fileTotalParts: int;
bytes: bytes;
}>, Bool> {
fileId: long;
filePart: int;
fileTotalParts: int;
bytes: bytes;
};
export class GetWebFile extends Request<Partial<{
location: Api.TypeInputWebFileLocation;
offset: int;
limit: int;
}>, upload.TypeWebFile> {
location: Api.TypeInputWebFileLocation;
offset: int;
limit: int;
};
export class GetCdnFile extends Request<Partial<{
fileToken: bytes;
offset: long;
limit: int;
}>, upload.TypeCdnFile> {
fileToken: bytes;
offset: long;
limit: int;
};
export class ReuploadCdnFile extends Request<Partial<{
fileToken: bytes;
requestToken: bytes;
}>, Api.TypeFileHash[]> {
fileToken: bytes;
requestToken: bytes;
};
export class GetCdnFileHashes extends Request<Partial<{
fileToken: bytes;
offset: long;
}>, Api.TypeFileHash[]> {
fileToken: bytes;
offset: long;
};
export class GetFileHashes extends Request<Partial<{
location: Api.TypeInputFileLocation;
offset: long;
}>, Api.TypeFileHash[]> {
location: Api.TypeInputFileLocation;
offset: long;
};
}
export namespace help {
export class GetConfig extends Request<void, Api.TypeConfig> {};
export class GetNearestDc extends Request<void, Api.TypeNearestDc> {};
export class GetAppUpdate extends Request<Partial<{
source: string;
}>, help.TypeAppUpdate> {
source: string;
};
export class GetInviteText extends Request<void, help.TypeInviteText> {};
export class GetSupport extends Request<void, help.TypeSupport> {};
export class SetBotUpdatesStatus extends Request<Partial<{
pendingUpdatesCount: int;
message: string;
}>, Bool> {
pendingUpdatesCount: int;
message: string;
};
export class GetCdnConfig extends Request<void, Api.TypeCdnConfig> {};
export class GetRecentMeUrls extends Request<Partial<{
referer: string;
}>, help.TypeRecentMeUrls> {
referer: string;
};
export class GetTermsOfServiceUpdate extends Request<void, help.TypeTermsOfServiceUpdate> {};
export class AcceptTermsOfService extends Request<Partial<{
id: Api.TypeDataJSON;
}>, Bool> {
id: Api.TypeDataJSON;
};
export class GetDeepLinkInfo extends Request<Partial<{
path: string;
}>, help.TypeDeepLinkInfo> {
path: string;
};
export class GetAppConfig extends Request<Partial<{
hash: int;
}>, help.TypeAppConfig> {
hash: int;
};
export class SaveAppLog extends Request<Partial<{
events: Api.TypeInputAppEvent[];
}>, Bool> {
events: Api.TypeInputAppEvent[];
};
export class GetPassportConfig extends Request<Partial<{
hash: int;
}>, help.TypePassportConfig> {
hash: int;
};
export class GetSupportName extends Request<void, help.TypeSupportName> {};
export class GetUserInfo extends Request<Partial<{
userId: Api.TypeInputUser;
}>, help.TypeUserInfo> {
userId: Api.TypeInputUser;
};
export class EditUserInfo extends Request<Partial<{
userId: Api.TypeInputUser;
message: string;
entities: Api.TypeMessageEntity[];
}>, help.TypeUserInfo> {
userId: Api.TypeInputUser;
message: string;
entities: Api.TypeMessageEntity[];
};
export class GetPromoData extends Request<void, help.TypePromoData> {};
export class HidePromoData extends Request<Partial<{
peer: Api.TypeInputPeer;
}>, Bool> {
peer: Api.TypeInputPeer;
};
export class DismissSuggestion extends Request<Partial<{
peer: Api.TypeInputPeer;
suggestion: string;
}>, Bool> {
peer: Api.TypeInputPeer;
suggestion: string;
};
export class GetCountriesList extends Request<Partial<{
langCode: string;
hash: int;
}>, help.TypeCountriesList> {
langCode: string;
hash: int;
};
export class GetPremiumPromo extends Request<void, help.TypePremiumPromo> {};
export class GetPeerColors extends Request<Partial<{
hash: int;
}>, help.TypePeerColors> {
hash: int;
};
export class GetPeerProfileColors extends Request<Partial<{
hash: int;
}>, help.TypePeerColors> {
hash: int;
};
export class GetTimezonesList extends Request<Partial<{
hash: int;
}>, help.TypeTimezonesList> {
hash: int;
};
}
export namespace channels {
export class ReadHistory extends Request<Partial<{
channel: Api.TypeInputChannel;
maxId: int;
}>, Bool> {
channel: Api.TypeInputChannel;
maxId: int;
};
export class DeleteMessages extends Request<Partial<{
channel: Api.TypeInputChannel;
id: int[];
}>, messages.TypeAffectedMessages> {
channel: Api.TypeInputChannel;
id: int[];
};
export class ReportSpam extends Request<Partial<{
channel: Api.TypeInputChannel;
participant: Api.TypeInputPeer;
id: int[];
}>, Bool> {
channel: Api.TypeInputChannel;
participant: Api.TypeInputPeer;
id: int[];
};
export class GetMessages extends Request<Partial<{
channel: Api.TypeInputChannel;
id: Api.TypeInputMessage[];
}>, messages.TypeMessages> {
channel: Api.TypeInputChannel;
id: Api.TypeInputMessage[];
};
export class GetParticipants extends Request<Partial<{
channel: Api.TypeInputChannel;
filter: Api.TypeChannelParticipantsFilter;
offset: int;
limit: int;
hash: long;
}>, channels.TypeChannelParticipants> {
channel: Api.TypeInputChannel;
filter: Api.TypeChannelParticipantsFilter;
offset: int;
limit: int;
hash: long;
};
export class GetParticipant extends Request<Partial<{
channel: Api.TypeInputChannel;
participant: Api.TypeInputPeer;
}>, channels.TypeChannelParticipant> {
channel: Api.TypeInputChannel;
participant: Api.TypeInputPeer;
};
export class GetChannels extends Request<Partial<{
id: Api.TypeInputChannel[];
}>, messages.TypeChats> {
id: Api.TypeInputChannel[];
};
export class GetFullChannel extends Request<Partial<{
channel: Api.TypeInputChannel;
}>, messages.TypeChatFull> {
channel: Api.TypeInputChannel;
};
export class CreateChannel extends Request<Partial<{
// flags: undefined;
broadcast?: true;
megagroup?: true;
forImport?: true;
forum?: true;
title: string;
about: string;
geoPoint?: Api.TypeInputGeoPoint;
address?: string;
ttlPeriod?: int;
}>, Api.TypeUpdates> {
// flags: undefined;
broadcast?: true;
megagroup?: true;
forImport?: true;
forum?: true;
title: string;
about: string;
geoPoint?: Api.TypeInputGeoPoint;
address?: string;
ttlPeriod?: int;
};
export class EditAdmin extends Request<Partial<{
channel: Api.TypeInputChannel;
userId: Api.TypeInputUser;
adminRights: Api.TypeChatAdminRights;
rank: string;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
userId: Api.TypeInputUser;
adminRights: Api.TypeChatAdminRights;
rank: string;
};
export class EditTitle extends Request<Partial<{
channel: Api.TypeInputChannel;
title: string;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
title: string;
};
export class EditPhoto extends Request<Partial<{
channel: Api.TypeInputChannel;
photo: Api.TypeInputChatPhoto;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
photo: Api.TypeInputChatPhoto;
};
export class CheckUsername extends Request<Partial<{
channel: Api.TypeInputChannel;
username: string;
}>, Bool> {
channel: Api.TypeInputChannel;
username: string;
};
export class UpdateUsername extends Request<Partial<{
channel: Api.TypeInputChannel;
username: string;
}>, Bool> {
channel: Api.TypeInputChannel;
username: string;
};
export class JoinChannel extends Request<Partial<{
channel: Api.TypeInputChannel;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
};
export class LeaveChannel extends Request<Partial<{
channel: Api.TypeInputChannel;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
};
export class InviteToChannel extends Request<Partial<{
channel: Api.TypeInputChannel;
users: Api.TypeInputUser[];
}>, messages.TypeInvitedUsers> {
channel: Api.TypeInputChannel;
users: Api.TypeInputUser[];
};
export class DeleteChannel extends Request<Partial<{
channel: Api.TypeInputChannel;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
};
export class ExportMessageLink extends Request<Partial<{
// flags: undefined;
grouped?: true;
thread?: true;
channel: Api.TypeInputChannel;
id: int;
}>, Api.TypeExportedMessageLink> {
// flags: undefined;
grouped?: true;
thread?: true;
channel: Api.TypeInputChannel;
id: int;
};
export class ToggleSignatures extends Request<Partial<{
// flags: undefined;
signaturesEnabled?: true;
profilesEnabled?: true;
channel: Api.TypeInputChannel;
}>, Api.TypeUpdates> {
// flags: undefined;
signaturesEnabled?: true;
profilesEnabled?: true;
channel: Api.TypeInputChannel;
};
export class GetAdminedPublicChannels extends Request<Partial<{
// flags: undefined;
byLocation?: true;
checkLimit?: true;
forPersonal?: true;
} | void>, messages.TypeChats> {
// flags: undefined;
byLocation?: true;
checkLimit?: true;
forPersonal?: true;
};
export class EditBanned extends Request<Partial<{
channel: Api.TypeInputChannel;
participant: Api.TypeInputPeer;
bannedRights: Api.TypeChatBannedRights;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
participant: Api.TypeInputPeer;
bannedRights: Api.TypeChatBannedRights;
};
export class GetAdminLog extends Request<Partial<{
// flags: undefined;
channel: Api.TypeInputChannel;
q: string;
eventsFilter?: Api.TypeChannelAdminLogEventsFilter;
admins?: Api.TypeInputUser[];
maxId: long;
minId: long;
limit: int;
}>, channels.TypeAdminLogResults> {
// flags: undefined;
channel: Api.TypeInputChannel;
q: string;
eventsFilter?: Api.TypeChannelAdminLogEventsFilter;
admins?: Api.TypeInputUser[];
maxId: long;
minId: long;
limit: int;
};
export class SetStickers extends Request<Partial<{
channel: Api.TypeInputChannel;
stickerset: Api.TypeInputStickerSet;
}>, Bool> {
channel: Api.TypeInputChannel;
stickerset: Api.TypeInputStickerSet;
};
export class ReadMessageContents extends Request<Partial<{
channel: Api.TypeInputChannel;
id: int[];
}>, Bool> {
channel: Api.TypeInputChannel;
id: int[];
};
export class DeleteHistory extends Request<Partial<{
// flags: undefined;
forEveryone?: true;
channel: Api.TypeInputChannel;
maxId: int;
}>, Api.TypeUpdates> {
// flags: undefined;
forEveryone?: true;
channel: Api.TypeInputChannel;
maxId: int;
};
export class TogglePreHistoryHidden extends Request<Partial<{
channel: Api.TypeInputChannel;
enabled: Bool;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
enabled: Bool;
};
export class GetLeftChannels extends Request<Partial<{
offset: int;
}>, messages.TypeChats> {
offset: int;
};
export class GetGroupsForDiscussion extends Request<void, messages.TypeChats> {};
export class SetDiscussionGroup extends Request<Partial<{
broadcast: Api.TypeInputChannel;
group: Api.TypeInputChannel;
}>, Bool> {
broadcast: Api.TypeInputChannel;
group: Api.TypeInputChannel;
};
export class EditCreator extends Request<Partial<{
channel: Api.TypeInputChannel;
userId: Api.TypeInputUser;
password: Api.TypeInputCheckPasswordSRP;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
userId: Api.TypeInputUser;
password: Api.TypeInputCheckPasswordSRP;
};
export class EditLocation extends Request<Partial<{
channel: Api.TypeInputChannel;
geoPoint: Api.TypeInputGeoPoint;
address: string;
}>, Bool> {
channel: Api.TypeInputChannel;
geoPoint: Api.TypeInputGeoPoint;
address: string;
};
export class ToggleSlowMode extends Request<Partial<{
channel: Api.TypeInputChannel;
seconds: int;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
seconds: int;
};
export class GetInactiveChannels extends Request<void, messages.TypeInactiveChats> {};
export class ConvertToGigagroup extends Request<Partial<{
channel: Api.TypeInputChannel;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
};
export class GetSendAs extends Request<Partial<{
peer: Api.TypeInputPeer;
}>, channels.TypeSendAsPeers> {
peer: Api.TypeInputPeer;
};
export class DeleteParticipantHistory extends Request<Partial<{
channel: Api.TypeInputChannel;
participant: Api.TypeInputPeer;
}>, messages.TypeAffectedHistory> {
channel: Api.TypeInputChannel;
participant: Api.TypeInputPeer;
};
export class ToggleJoinToSend extends Request<Partial<{
channel: Api.TypeInputChannel;
enabled: Bool;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
enabled: Bool;
};
export class ToggleJoinRequest extends Request<Partial<{
channel: Api.TypeInputChannel;
enabled: Bool;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
enabled: Bool;
};
export class ReorderUsernames extends Request<Partial<{
channel: Api.TypeInputChannel;
order: string[];
}>, Bool> {
channel: Api.TypeInputChannel;
order: string[];
};
export class ToggleUsername extends Request<Partial<{
channel: Api.TypeInputChannel;
username: string;
active: Bool;
}>, Bool> {
channel: Api.TypeInputChannel;
username: string;
active: Bool;
};
export class DeactivateAllUsernames extends Request<Partial<{
channel: Api.TypeInputChannel;
}>, Bool> {
channel: Api.TypeInputChannel;
};
export class ToggleForum extends Request<Partial<{
channel: Api.TypeInputChannel;
enabled: Bool;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
enabled: Bool;
};
export class CreateForumTopic extends Request<Partial<{
// flags: undefined;
channel: Api.TypeInputChannel;
title: string;
iconColor?: int;
iconEmojiId?: long;
randomId: long;
sendAs?: Api.TypeInputPeer;
}>, Api.TypeUpdates> {
// flags: undefined;
channel: Api.TypeInputChannel;
title: string;
iconColor?: int;
iconEmojiId?: long;
randomId: long;
sendAs?: Api.TypeInputPeer;
};
export class GetForumTopics extends Request<Partial<{
// flags: undefined;
channel: Api.TypeInputChannel;
q?: string;
offsetDate: int;
offsetId: int;
offsetTopic: int;
limit: int;
}>, messages.TypeForumTopics> {
// flags: undefined;
channel: Api.TypeInputChannel;
q?: string;
offsetDate: int;
offsetId: int;
offsetTopic: int;
limit: int;
};
export class GetForumTopicsByID extends Request<Partial<{
channel: Api.TypeInputChannel;
topics: int[];
}>, messages.TypeForumTopics> {
channel: Api.TypeInputChannel;
topics: int[];
};
export class EditForumTopic extends Request<Partial<{
// flags: undefined;
channel: Api.TypeInputChannel;
topicId: int;
title?: string;
iconEmojiId?: long;
closed?: Bool;
hidden?: Bool;
}>, Api.TypeUpdates> {
// flags: undefined;
channel: Api.TypeInputChannel;
topicId: int;
title?: string;
iconEmojiId?: long;
closed?: Bool;
hidden?: Bool;
};
export class UpdatePinnedForumTopic extends Request<Partial<{
channel: Api.TypeInputChannel;
topicId: int;
pinned: Bool;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
topicId: int;
pinned: Bool;
};
export class DeleteTopicHistory extends Request<Partial<{
channel: Api.TypeInputChannel;
topMsgId: int;
}>, messages.TypeAffectedHistory> {
channel: Api.TypeInputChannel;
topMsgId: int;
};
export class ReorderPinnedForumTopics extends Request<Partial<{
// flags: undefined;
force?: true;
channel: Api.TypeInputChannel;
order: int[];
}>, Api.TypeUpdates> {
// flags: undefined;
force?: true;
channel: Api.TypeInputChannel;
order: int[];
};
export class ToggleAntiSpam extends Request<Partial<{
channel: Api.TypeInputChannel;
enabled: Bool;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
enabled: Bool;
};
export class ReportAntiSpamFalsePositive extends Request<Partial<{
channel: Api.TypeInputChannel;
msgId: int;
}>, Bool> {
channel: Api.TypeInputChannel;
msgId: int;
};
export class ToggleParticipantsHidden extends Request<Partial<{
channel: Api.TypeInputChannel;
enabled: Bool;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
enabled: Bool;
};
export class UpdateColor extends Request<Partial<{
// flags: undefined;
forProfile?: true;
channel: Api.TypeInputChannel;
color?: int;
backgroundEmojiId?: long;
}>, Api.TypeUpdates> {
// flags: undefined;
forProfile?: true;
channel: Api.TypeInputChannel;
color?: int;
backgroundEmojiId?: long;
};
export class ToggleViewForumAsMessages extends Request<Partial<{
channel: Api.TypeInputChannel;
enabled: Bool;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
enabled: Bool;
};
export class GetChannelRecommendations extends Request<Partial<{
// flags: undefined;
channel?: Api.TypeInputChannel;
} | void>, messages.TypeChats> {
// flags: undefined;
channel?: Api.TypeInputChannel;
};
export class UpdateEmojiStatus extends Request<Partial<{
channel: Api.TypeInputChannel;
emojiStatus: Api.TypeEmojiStatus;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
emojiStatus: Api.TypeEmojiStatus;
};
export class SetBoostsToUnblockRestrictions extends Request<Partial<{
channel: Api.TypeInputChannel;
boosts: int;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
boosts: int;
};
export class SetEmojiStickers extends Request<Partial<{
channel: Api.TypeInputChannel;
stickerset: Api.TypeInputStickerSet;
}>, Bool> {
channel: Api.TypeInputChannel;
stickerset: Api.TypeInputStickerSet;
};
export class RestrictSponsoredMessages extends Request<Partial<{
channel: Api.TypeInputChannel;
restricted: Bool;
}>, Api.TypeUpdates> {
channel: Api.TypeInputChannel;
restricted: Bool;
};
export class SearchPosts extends Request<Partial<{
hashtag: string;
offsetRate: int;
offsetPeer: Api.TypeInputPeer;
offsetId: int;
limit: int;
}>, messages.TypeMessages> {
hashtag: string;
offsetRate: int;
offsetPeer: Api.TypeInputPeer;
offsetId: int;
limit: int;
};
}
export namespace bots {
export class SendCustomRequest extends Request<Partial<{
customMethod: string;
params: Api.TypeDataJSON;
}>, Api.TypeDataJSON> {
customMethod: string;
params: Api.TypeDataJSON;
};
export class AnswerWebhookJSONQuery extends Request<Partial<{
queryId: long;
data: Api.TypeDataJSON;
}>, Bool> {
queryId: long;
data: Api.TypeDataJSON;
};
export class SetBotCommands extends Request<Partial<{
scope: Api.TypeBotCommandScope;
langCode: string;
commands: Api.TypeBotCommand[];
}>, Bool> {
scope: Api.TypeBotCommandScope;
langCode: string;
commands: Api.TypeBotCommand[];
};
export class ResetBotCommands extends Request<Partial<{
scope: Api.TypeBotCommandScope;
langCode: string;
}>, Bool> {
scope: Api.TypeBotCommandScope;
langCode: string;
};
export class GetBotCommands extends Request<Partial<{
scope: Api.TypeBotCommandScope;
langCode: string;
}>, Api.TypeBotCommand[]> {
scope: Api.TypeBotCommandScope;
langCode: string;
};
export class SetBotMenuButton extends Request<Partial<{
userId: Api.TypeInputUser;
button: Api.TypeBotMenuButton;
}>, Bool> {
userId: Api.TypeInputUser;
button: Api.TypeBotMenuButton;
};
export class GetBotMenuButton extends Request<Partial<{
userId: Api.TypeInputUser;
}>, Api.TypeBotMenuButton> {
userId: Api.TypeInputUser;
};
export class SetBotBroadcastDefaultAdminRights extends Request<Partial<{
adminRights: Api.TypeChatAdminRights;
}>, Bool> {
adminRights: Api.TypeChatAdminRights;
};
export class SetBotGroupDefaultAdminRights extends Request<Partial<{
adminRights: Api.TypeChatAdminRights;
}>, Bool> {
adminRights: Api.TypeChatAdminRights;
};
export class SetBotInfo extends Request<Partial<{
// flags: undefined;
bot?: Api.TypeInputUser;
langCode: string;
name?: string;
about?: string;
description?: string;
}>, Bool> {
// flags: undefined;
bot?: Api.TypeInputUser;
langCode: string;
name?: string;
about?: string;
description?: string;
};
export class GetBotInfo extends Request<Partial<{
// flags: undefined;
bot?: Api.TypeInputUser;
langCode: string;
}>, bots.TypeBotInfo> {
// flags: undefined;
bot?: Api.TypeInputUser;
langCode: string;
};
export class ReorderUsernames extends Request<Partial<{
bot: Api.TypeInputUser;
order: string[];
}>, Bool> {
bot: Api.TypeInputUser;
order: string[];
};
export class ToggleUsername extends Request<Partial<{
bot: Api.TypeInputUser;
username: string;
active: Bool;
}>, Bool> {
bot: Api.TypeInputUser;
username: string;
active: Bool;
};
export class CanSendMessage extends Request<Partial<{
bot: Api.TypeInputUser;
}>, Bool> {
bot: Api.TypeInputUser;
};
export class AllowSendMessage extends Request<Partial<{
bot: Api.TypeInputUser;
}>, Api.TypeUpdates> {
bot: Api.TypeInputUser;
};
export class InvokeWebViewCustomMethod extends Request<Partial<{
bot: Api.TypeInputUser;
customMethod: string;
params: Api.TypeDataJSON;
}>, Api.TypeDataJSON> {
bot: Api.TypeInputUser;
customMethod: string;
params: Api.TypeDataJSON;
};
export class GetPopularAppBots extends Request<Partial<{
offset: string;
limit: int;
}>, bots.TypePopularAppBots> {
offset: string;
limit: int;
};
export class AddPreviewMedia extends Request<Partial<{
bot: Api.TypeInputUser;
langCode: string;
media: Api.TypeInputMedia;
}>, Api.TypeBotPreviewMedia> {
bot: Api.TypeInputUser;
langCode: string;
media: Api.TypeInputMedia;
};
export class EditPreviewMedia extends Request<Partial<{
bot: Api.TypeInputUser;
langCode: string;
media: Api.TypeInputMedia;
newMedia: Api.TypeInputMedia;
}>, Api.TypeBotPreviewMedia> {
bot: Api.TypeInputUser;
langCode: string;
media: Api.TypeInputMedia;
newMedia: Api.TypeInputMedia;
};
export class DeletePreviewMedia extends Request<Partial<{
bot: Api.TypeInputUser;
langCode: string;
media: Api.TypeInputMedia[];
}>, Bool> {
bot: Api.TypeInputUser;
langCode: string;
media: Api.TypeInputMedia[];
};
export class ReorderPreviewMedias extends Request<Partial<{
bot: Api.TypeInputUser;
langCode: string;
order: Api.TypeInputMedia[];
}>, Bool> {
bot: Api.TypeInputUser;
langCode: string;
order: Api.TypeInputMedia[];
};
export class GetPreviewInfo extends Request<Partial<{
bot: Api.TypeInputUser;
langCode: string;
}>, bots.TypePreviewInfo> {
bot: Api.TypeInputUser;
langCode: string;
};
export class GetPreviewMedias extends Request<Partial<{
bot: Api.TypeInputUser;
}>, Api.TypeBotPreviewMedia[]> {
bot: Api.TypeInputUser;
};
export class UpdateUserEmojiStatus extends Request<Partial<{
userId: Api.TypeInputUser;
emojiStatus: Api.TypeEmojiStatus;
}>, Bool> {
userId: Api.TypeInputUser;
emojiStatus: Api.TypeEmojiStatus;
};
export class ToggleUserEmojiStatusPermission extends Request<Partial<{
bot: Api.TypeInputUser;
enabled: Bool;
}>, Bool> {
bot: Api.TypeInputUser;
enabled: Bool;
};
export class CheckDownloadFileParams extends Request<Partial<{
bot: Api.TypeInputUser;
fileName: string;
url: string;
}>, Bool> {
bot: Api.TypeInputUser;
fileName: string;
url: string;
};
export class GetAdminedBots extends Request<void, Api.TypeUser[]> {};
export class UpdateStarRefProgram extends Request<Partial<{
// flags: undefined;
bot: Api.TypeInputUser;
commissionPermille: int;
durationMonths?: int;
}>, Api.TypeStarRefProgram> {
// flags: undefined;
bot: Api.TypeInputUser;
commissionPermille: int;
durationMonths?: int;
};
export class SetCustomVerification extends Request<Partial<{
// flags: undefined;
enabled?: true;
bot?: Api.TypeInputUser;
peer: Api.TypeInputPeer;
customDescription?: string;
}>, Bool> {
// flags: undefined;
enabled?: true;
bot?: Api.TypeInputUser;
peer: Api.TypeInputPeer;
customDescription?: string;
};
}
export namespace payments {
export class GetPaymentForm extends Request<Partial<{
// flags: undefined;
invoice: Api.TypeInputInvoice;
themeParams?: Api.TypeDataJSON;
}>, payments.TypePaymentForm> {
// flags: undefined;
invoice: Api.TypeInputInvoice;
themeParams?: Api.TypeDataJSON;
};
export class GetPaymentReceipt extends Request<Partial<{
peer: Api.TypeInputPeer;
msgId: int;
}>, payments.TypePaymentReceipt> {
peer: Api.TypeInputPeer;
msgId: int;
};
export class ValidateRequestedInfo extends Request<Partial<{
// flags: undefined;
save?: true;
invoice: Api.TypeInputInvoice;
info: Api.TypePaymentRequestedInfo;
}>, payments.TypeValidatedRequestedInfo> {
// flags: undefined;
save?: true;
invoice: Api.TypeInputInvoice;
info: Api.TypePaymentRequestedInfo;
};
export class SendPaymentForm extends Request<Partial<{
// flags: undefined;
formId: long;
invoice: Api.TypeInputInvoice;
requestedInfoId?: string;
shippingOptionId?: string;
credentials: Api.TypeInputPaymentCredentials;
tipAmount?: long;
}>, payments.TypePaymentResult> {
// flags: undefined;
formId: long;
invoice: Api.TypeInputInvoice;
requestedInfoId?: string;
shippingOptionId?: string;
credentials: Api.TypeInputPaymentCredentials;
tipAmount?: long;
};
export class GetSavedInfo extends Request<void, payments.TypeSavedInfo> {};
export class ClearSavedInfo extends Request<Partial<{
// flags: undefined;
credentials?: true;
info?: true;
} | void>, Bool> {
// flags: undefined;
credentials?: true;
info?: true;
};
export class GetBankCardData extends Request<Partial<{
number: string;
}>, payments.TypeBankCardData> {
number: string;
};
export class ExportInvoice extends Request<Partial<{
invoiceMedia: Api.TypeInputMedia;
}>, payments.TypeExportedInvoice> {
invoiceMedia: Api.TypeInputMedia;
};
export class AssignAppStoreTransaction extends Request<Partial<{
receipt: bytes;
purpose: Api.TypeInputStorePaymentPurpose;
}>, Api.TypeUpdates> {
receipt: bytes;
purpose: Api.TypeInputStorePaymentPurpose;
};
export class AssignPlayMarketTransaction extends Request<Partial<{
receipt: Api.TypeDataJSON;
purpose: Api.TypeInputStorePaymentPurpose;
}>, Api.TypeUpdates> {
receipt: Api.TypeDataJSON;
purpose: Api.TypeInputStorePaymentPurpose;
};
export class CanPurchasePremium extends Request<Partial<{
purpose: Api.TypeInputStorePaymentPurpose;
}>, Bool> {
purpose: Api.TypeInputStorePaymentPurpose;
};
export class GetPremiumGiftCodeOptions extends Request<Partial<{
// flags: undefined;
boostPeer?: Api.TypeInputPeer;
} | void>, Api.TypePremiumGiftCodeOption[]> {
// flags: undefined;
boostPeer?: Api.TypeInputPeer;
};
export class CheckGiftCode extends Request<Partial<{
slug: string;
}>, payments.TypeCheckedGiftCode> {
slug: string;
};
export class ApplyGiftCode extends Request<Partial<{
slug: string;
}>, Api.TypeUpdates> {
slug: string;
};
export class GetGiveawayInfo extends Request<Partial<{
peer: Api.TypeInputPeer;
msgId: int;
}>, payments.TypeGiveawayInfo> {
peer: Api.TypeInputPeer;
msgId: int;
};
export class LaunchPrepaidGiveaway extends Request<Partial<{
peer: Api.TypeInputPeer;
giveawayId: long;
purpose: Api.TypeInputStorePaymentPurpose;
}>, Api.TypeUpdates> {
peer: Api.TypeInputPeer;
giveawayId: long;
purpose: Api.TypeInputStorePaymentPurpose;
};
export class GetStarsTopupOptions extends Request<void, Api.TypeStarsTopupOption[]> {};
export class GetStarsStatus extends Request<Partial<{
peer: Api.TypeInputPeer;
}>, payments.TypeStarsStatus> {
peer: Api.TypeInputPeer;
};
export class GetStarsTransactions extends Request<Partial<{
// flags: undefined;
inbound?: true;
outbound?: true;
ascending?: true;
subscriptionId?: string;
peer: Api.TypeInputPeer;
offset: string;
limit: int;
}>, payments.TypeStarsStatus> {
// flags: undefined;
inbound?: true;
outbound?: true;
ascending?: true;
subscriptionId?: string;
peer: Api.TypeInputPeer;
offset: string;
limit: int;
};
export class SendStarsForm extends Request<Partial<{
formId: long;
invoice: Api.TypeInputInvoice;
}>, payments.TypePaymentResult> {
formId: long;
invoice: Api.TypeInputInvoice;
};
export class RefundStarsCharge extends Request<Partial<{
userId: Api.TypeInputUser;
chargeId: string;
}>, Api.TypeUpdates> {
userId: Api.TypeInputUser;
chargeId: string;
};
export class GetStarsRevenueStats extends Request<Partial<{
// flags: undefined;
dark?: true;
peer: Api.TypeInputPeer;
}>, payments.TypeStarsRevenueStats> {
// flags: undefined;
dark?: true;
peer: Api.TypeInputPeer;
};
export class GetStarsRevenueWithdrawalUrl extends Request<Partial<{
peer: Api.TypeInputPeer;
stars: long;
password: Api.TypeInputCheckPasswordSRP;
}>, payments.TypeStarsRevenueWithdrawalUrl> {
peer: Api.TypeInputPeer;
stars: long;
password: Api.TypeInputCheckPasswordSRP;
};
export class GetStarsRevenueAdsAccountUrl extends Request<Partial<{
peer: Api.TypeInputPeer;
}>, payments.TypeStarsRevenueAdsAccountUrl> {
peer: Api.TypeInputPeer;
};
export class GetStarsTransactionsByID extends Request<Partial<{
peer: Api.TypeInputPeer;
id: Api.TypeInputStarsTransaction[];
}>, payments.TypeStarsStatus> {
peer: Api.TypeInputPeer;
id: Api.TypeInputStarsTransaction[];
};
export class GetStarsGiftOptions extends Request<Partial<{
// flags: undefined;
userId?: Api.TypeInputUser;
} | void>, Api.TypeStarsGiftOption[]> {
// flags: undefined;
userId?: Api.TypeInputUser;
};
export class GetStarsSubscriptions extends Request<Partial<{
// flags: undefined;
missingBalance?: true;
peer: Api.TypeInputPeer;
offset: string;
}>, payments.TypeStarsStatus> {
// flags: undefined;
missingBalance?: true;
peer: Api.TypeInputPeer;
offset: string;
};
export class ChangeStarsSubscription extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
subscriptionId: string;
canceled?: Bool;
}>, Bool> {
// flags: undefined;
peer: Api.TypeInputPeer;
subscriptionId: string;
canceled?: Bool;
};
export class FulfillStarsSubscription extends Request<Partial<{
peer: Api.TypeInputPeer;
subscriptionId: string;
}>, Bool> {
peer: Api.TypeInputPeer;
subscriptionId: string;
};
export class GetStarsGiveawayOptions extends Request<void, Api.TypeStarsGiveawayOption[]> {};
export class GetStarGifts extends Request<Partial<{
hash: int;
}>, payments.TypeStarGifts> {
hash: int;
};
export class GetUserStarGifts extends Request<Partial<{
userId: Api.TypeInputUser;
offset: string;
limit: int;
}>, payments.TypeUserStarGifts> {
userId: Api.TypeInputUser;
offset: string;
limit: int;
};
export class SaveStarGift extends Request<Partial<{
// flags: undefined;
unsave?: true;
msgId: int;
}>, Bool> {
// flags: undefined;
unsave?: true;
msgId: int;
};
export class ConvertStarGift extends Request<Partial<{
msgId: int;
}>, Bool> {
msgId: int;
};
export class BotCancelStarsSubscription extends Request<Partial<{
// flags: undefined;
restore?: true;
userId: Api.TypeInputUser;
chargeId: string;
}>, Bool> {
// flags: undefined;
restore?: true;
userId: Api.TypeInputUser;
chargeId: string;
};
export class GetConnectedStarRefBots extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
offsetDate?: int;
offsetLink?: string;
limit: int;
}>, payments.TypeConnectedStarRefBots> {
// flags: undefined;
peer: Api.TypeInputPeer;
offsetDate?: int;
offsetLink?: string;
limit: int;
};
export class GetConnectedStarRefBot extends Request<Partial<{
peer: Api.TypeInputPeer;
bot: Api.TypeInputUser;
}>, payments.TypeConnectedStarRefBots> {
peer: Api.TypeInputPeer;
bot: Api.TypeInputUser;
};
export class GetSuggestedStarRefBots extends Request<Partial<{
// flags: undefined;
orderByRevenue?: true;
orderByDate?: true;
peer: Api.TypeInputPeer;
offset: string;
limit: int;
}>, payments.TypeSuggestedStarRefBots> {
// flags: undefined;
orderByRevenue?: true;
orderByDate?: true;
peer: Api.TypeInputPeer;
offset: string;
limit: int;
};
export class ConnectStarRefBot extends Request<Partial<{
peer: Api.TypeInputPeer;
bot: Api.TypeInputUser;
}>, payments.TypeConnectedStarRefBots> {
peer: Api.TypeInputPeer;
bot: Api.TypeInputUser;
};
export class EditConnectedStarRefBot extends Request<Partial<{
// flags: undefined;
revoked?: true;
peer: Api.TypeInputPeer;
link: string;
}>, payments.TypeConnectedStarRefBots> {
// flags: undefined;
revoked?: true;
peer: Api.TypeInputPeer;
link: string;
};
export class GetStarGiftUpgradePreview extends Request<Partial<{
giftId: long;
}>, payments.TypeStarGiftUpgradePreview> {
giftId: long;
};
export class UpgradeStarGift extends Request<Partial<{
// flags: undefined;
keepOriginalDetails?: true;
msgId: int;
}>, Api.TypeUpdates> {
// flags: undefined;
keepOriginalDetails?: true;
msgId: int;
};
export class TransferStarGift extends Request<Partial<{
msgId: int;
toId: Api.TypeInputUser;
}>, Api.TypeUpdates> {
msgId: int;
toId: Api.TypeInputUser;
};
export class GetUserStarGift extends Request<Partial<{
msgId: int[];
}>, payments.TypeUserStarGifts> {
msgId: int[];
};
}
export namespace stickers {
export class CreateStickerSet extends Request<Partial<{
// flags: undefined;
masks?: true;
emojis?: true;
textColor?: true;
userId: Api.TypeInputUser;
title: string;
shortName: string;
thumb?: Api.TypeInputDocument;
stickers: Api.TypeInputStickerSetItem[];
software?: string;
}>, messages.TypeStickerSet> {
// flags: undefined;
masks?: true;
emojis?: true;
textColor?: true;
userId: Api.TypeInputUser;
title: string;
shortName: string;
thumb?: Api.TypeInputDocument;
stickers: Api.TypeInputStickerSetItem[];
software?: string;
};
export class RemoveStickerFromSet extends Request<Partial<{
sticker: Api.TypeInputDocument;
}>, messages.TypeStickerSet> {
sticker: Api.TypeInputDocument;
};
export class ChangeStickerPosition extends Request<Partial<{
sticker: Api.TypeInputDocument;
position: int;
}>, messages.TypeStickerSet> {
sticker: Api.TypeInputDocument;
position: int;
};
export class AddStickerToSet extends Request<Partial<{
stickerset: Api.TypeInputStickerSet;
sticker: Api.TypeInputStickerSetItem;
}>, messages.TypeStickerSet> {
stickerset: Api.TypeInputStickerSet;
sticker: Api.TypeInputStickerSetItem;
};
export class SetStickerSetThumb extends Request<Partial<{
// flags: undefined;
stickerset: Api.TypeInputStickerSet;
thumb?: Api.TypeInputDocument;
thumbDocumentId?: long;
}>, messages.TypeStickerSet> {
// flags: undefined;
stickerset: Api.TypeInputStickerSet;
thumb?: Api.TypeInputDocument;
thumbDocumentId?: long;
};
export class CheckShortName extends Request<Partial<{
shortName: string;
}>, Bool> {
shortName: string;
};
export class SuggestShortName extends Request<Partial<{
title: string;
}>, stickers.TypeSuggestedShortName> {
title: string;
};
export class ChangeSticker extends Request<Partial<{
// flags: undefined;
sticker: Api.TypeInputDocument;
emoji?: string;
maskCoords?: Api.TypeMaskCoords;
keywords?: string;
}>, messages.TypeStickerSet> {
// flags: undefined;
sticker: Api.TypeInputDocument;
emoji?: string;
maskCoords?: Api.TypeMaskCoords;
keywords?: string;
};
export class RenameStickerSet extends Request<Partial<{
stickerset: Api.TypeInputStickerSet;
title: string;
}>, messages.TypeStickerSet> {
stickerset: Api.TypeInputStickerSet;
title: string;
};
export class DeleteStickerSet extends Request<Partial<{
stickerset: Api.TypeInputStickerSet;
}>, Bool> {
stickerset: Api.TypeInputStickerSet;
};
export class ReplaceSticker extends Request<Partial<{
sticker: Api.TypeInputDocument;
newSticker: Api.TypeInputStickerSetItem;
}>, messages.TypeStickerSet> {
sticker: Api.TypeInputDocument;
newSticker: Api.TypeInputStickerSetItem;
};
}
export namespace phone {
export class GetCallConfig extends Request<void, Api.TypeDataJSON> {};
export class RequestCall extends Request<Partial<{
// flags: undefined;
video?: true;
userId: Api.TypeInputUser;
conferenceCall?: Api.TypeInputGroupCall;
randomId: int;
gAHash: bytes;
protocol: Api.TypePhoneCallProtocol;
}>, phone.TypePhoneCall> {
// flags: undefined;
video?: true;
userId: Api.TypeInputUser;
conferenceCall?: Api.TypeInputGroupCall;
randomId: int;
gAHash: bytes;
protocol: Api.TypePhoneCallProtocol;
};
export class AcceptCall extends Request<Partial<{
peer: Api.TypeInputPhoneCall;
gB: bytes;
protocol: Api.TypePhoneCallProtocol;
}>, phone.TypePhoneCall> {
peer: Api.TypeInputPhoneCall;
gB: bytes;
protocol: Api.TypePhoneCallProtocol;
};
export class ConfirmCall extends Request<Partial<{
peer: Api.TypeInputPhoneCall;
gA: bytes;
keyFingerprint: long;
protocol: Api.TypePhoneCallProtocol;
}>, phone.TypePhoneCall> {
peer: Api.TypeInputPhoneCall;
gA: bytes;
keyFingerprint: long;
protocol: Api.TypePhoneCallProtocol;
};
export class ReceivedCall extends Request<Partial<{
peer: Api.TypeInputPhoneCall;
}>, Bool> {
peer: Api.TypeInputPhoneCall;
};
export class DiscardCall extends Request<Partial<{
// flags: undefined;
video?: true;
peer: Api.TypeInputPhoneCall;
duration: int;
reason: Api.TypePhoneCallDiscardReason;
connectionId: long;
}>, Api.TypeUpdates> {
// flags: undefined;
video?: true;
peer: Api.TypeInputPhoneCall;
duration: int;
reason: Api.TypePhoneCallDiscardReason;
connectionId: long;
};
export class SetCallRating extends Request<Partial<{
// flags: undefined;
userInitiative?: true;
peer: Api.TypeInputPhoneCall;
rating: int;
comment: string;
}>, Api.TypeUpdates> {
// flags: undefined;
userInitiative?: true;
peer: Api.TypeInputPhoneCall;
rating: int;
comment: string;
};
export class SaveCallDebug extends Request<Partial<{
peer: Api.TypeInputPhoneCall;
debug: Api.TypeDataJSON;
}>, Bool> {
peer: Api.TypeInputPhoneCall;
debug: Api.TypeDataJSON;
};
export class SendSignalingData extends Request<Partial<{
peer: Api.TypeInputPhoneCall;
data: bytes;
}>, Bool> {
peer: Api.TypeInputPhoneCall;
data: bytes;
};
export class CreateGroupCall extends Request<Partial<{
// flags: undefined;
rtmpStream?: true;
peer: Api.TypeInputPeer;
randomId: int;
title?: string;
scheduleDate?: int;
}>, Api.TypeUpdates> {
// flags: undefined;
rtmpStream?: true;
peer: Api.TypeInputPeer;
randomId: int;
title?: string;
scheduleDate?: int;
};
export class JoinGroupCall extends Request<Partial<{
// flags: undefined;
muted?: true;
videoStopped?: true;
call: Api.TypeInputGroupCall;
joinAs: Api.TypeInputPeer;
inviteHash?: string;
keyFingerprint?: long;
params: Api.TypeDataJSON;
}>, Api.TypeUpdates> {
// flags: undefined;
muted?: true;
videoStopped?: true;
call: Api.TypeInputGroupCall;
joinAs: Api.TypeInputPeer;
inviteHash?: string;
keyFingerprint?: long;
params: Api.TypeDataJSON;
};
export class LeaveGroupCall extends Request<Partial<{
call: Api.TypeInputGroupCall;
source: int;
}>, Api.TypeUpdates> {
call: Api.TypeInputGroupCall;
source: int;
};
export class InviteToGroupCall extends Request<Partial<{
call: Api.TypeInputGroupCall;
users: Api.TypeInputUser[];
}>, Api.TypeUpdates> {
call: Api.TypeInputGroupCall;
users: Api.TypeInputUser[];
};
export class DiscardGroupCall extends Request<Partial<{
call: Api.TypeInputGroupCall;
}>, Api.TypeUpdates> {
call: Api.TypeInputGroupCall;
};
export class ToggleGroupCallSettings extends Request<Partial<{
// flags: undefined;
resetInviteHash?: true;
call: Api.TypeInputGroupCall;
joinMuted?: Bool;
}>, Api.TypeUpdates> {
// flags: undefined;
resetInviteHash?: true;
call: Api.TypeInputGroupCall;
joinMuted?: Bool;
};
export class GetGroupCall extends Request<Partial<{
call: Api.TypeInputGroupCall;
limit: int;
}>, phone.TypeGroupCall> {
call: Api.TypeInputGroupCall;
limit: int;
};
export class GetGroupParticipants extends Request<Partial<{
call: Api.TypeInputGroupCall;
ids: Api.TypeInputPeer[];
sources: int[];
offset: string;
limit: int;
}>, phone.TypeGroupParticipants> {
call: Api.TypeInputGroupCall;
ids: Api.TypeInputPeer[];
sources: int[];
offset: string;
limit: int;
};
export class CheckGroupCall extends Request<Partial<{
call: Api.TypeInputGroupCall;
sources: int[];
}>, int[]> {
call: Api.TypeInputGroupCall;
sources: int[];
};
export class ToggleGroupCallRecord extends Request<Partial<{
// flags: undefined;
start?: true;
video?: true;
call: Api.TypeInputGroupCall;
title?: string;
videoPortrait?: Bool;
}>, Api.TypeUpdates> {
// flags: undefined;
start?: true;
video?: true;
call: Api.TypeInputGroupCall;
title?: string;
videoPortrait?: Bool;
};
export class EditGroupCallParticipant extends Request<Partial<{
// flags: undefined;
call: Api.TypeInputGroupCall;
participant: Api.TypeInputPeer;
muted?: Bool;
volume?: int;
raiseHand?: Bool;
videoStopped?: Bool;
videoPaused?: Bool;
presentationPaused?: Bool;
}>, Api.TypeUpdates> {
// flags: undefined;
call: Api.TypeInputGroupCall;
participant: Api.TypeInputPeer;
muted?: Bool;
volume?: int;
raiseHand?: Bool;
videoStopped?: Bool;
videoPaused?: Bool;
presentationPaused?: Bool;
};
export class EditGroupCallTitle extends Request<Partial<{
call: Api.TypeInputGroupCall;
title: string;
}>, Api.TypeUpdates> {
call: Api.TypeInputGroupCall;
title: string;
};
export class GetGroupCallJoinAs extends Request<Partial<{
peer: Api.TypeInputPeer;
}>, phone.TypeJoinAsPeers> {
peer: Api.TypeInputPeer;
};
export class ExportGroupCallInvite extends Request<Partial<{
// flags: undefined;
canSelfUnmute?: true;
call: Api.TypeInputGroupCall;
}>, phone.TypeExportedGroupCallInvite> {
// flags: undefined;
canSelfUnmute?: true;
call: Api.TypeInputGroupCall;
};
export class ToggleGroupCallStartSubscription extends Request<Partial<{
call: Api.TypeInputGroupCall;
subscribed: Bool;
}>, Api.TypeUpdates> {
call: Api.TypeInputGroupCall;
subscribed: Bool;
};
export class StartScheduledGroupCall extends Request<Partial<{
call: Api.TypeInputGroupCall;
}>, Api.TypeUpdates> {
call: Api.TypeInputGroupCall;
};
export class SaveDefaultGroupCallJoinAs extends Request<Partial<{
peer: Api.TypeInputPeer;
joinAs: Api.TypeInputPeer;
}>, Bool> {
peer: Api.TypeInputPeer;
joinAs: Api.TypeInputPeer;
};
export class JoinGroupCallPresentation extends Request<Partial<{
call: Api.TypeInputGroupCall;
params: Api.TypeDataJSON;
}>, Api.TypeUpdates> {
call: Api.TypeInputGroupCall;
params: Api.TypeDataJSON;
};
export class LeaveGroupCallPresentation extends Request<Partial<{
call: Api.TypeInputGroupCall;
}>, Api.TypeUpdates> {
call: Api.TypeInputGroupCall;
};
export class GetGroupCallStreamChannels extends Request<Partial<{
call: Api.TypeInputGroupCall;
}>, phone.TypeGroupCallStreamChannels> {
call: Api.TypeInputGroupCall;
};
export class GetGroupCallStreamRtmpUrl extends Request<Partial<{
peer: Api.TypeInputPeer;
revoke: Bool;
}>, phone.TypeGroupCallStreamRtmpUrl> {
peer: Api.TypeInputPeer;
revoke: Bool;
};
export class SaveCallLog extends Request<Partial<{
peer: Api.TypeInputPhoneCall;
file: Api.TypeInputFile;
}>, Bool> {
peer: Api.TypeInputPhoneCall;
file: Api.TypeInputFile;
};
export class CreateConferenceCall extends Request<Partial<{
peer: Api.TypeInputPhoneCall;
keyFingerprint: long;
}>, phone.TypePhoneCall> {
peer: Api.TypeInputPhoneCall;
keyFingerprint: long;
};
}
export namespace langpack {
export class GetLangPack extends Request<Partial<{
langPack: string;
langCode: string;
}>, Api.TypeLangPackDifference> {
langPack: string;
langCode: string;
};
export class GetStrings extends Request<Partial<{
langPack: string;
langCode: string;
keys: string[];
}>, Api.TypeLangPackString[]> {
langPack: string;
langCode: string;
keys: string[];
};
export class GetDifference extends Request<Partial<{
langPack: string;
langCode: string;
fromVersion: int;
}>, Api.TypeLangPackDifference> {
langPack: string;
langCode: string;
fromVersion: int;
};
export class GetLanguages extends Request<Partial<{
langPack: string;
}>, Api.TypeLangPackLanguage[]> {
langPack: string;
};
export class GetLanguage extends Request<Partial<{
langPack: string;
langCode: string;
}>, Api.TypeLangPackLanguage> {
langPack: string;
langCode: string;
};
}
export namespace folders {
export class EditPeerFolders extends Request<Partial<{
folderPeers: Api.TypeInputFolderPeer[];
}>, Api.TypeUpdates> {
folderPeers: Api.TypeInputFolderPeer[];
};
}
export namespace stats {
export class GetBroadcastStats extends Request<Partial<{
// flags: undefined;
dark?: true;
channel: Api.TypeInputChannel;
}>, stats.TypeBroadcastStats> {
// flags: undefined;
dark?: true;
channel: Api.TypeInputChannel;
};
export class LoadAsyncGraph extends Request<Partial<{
// flags: undefined;
token: string;
x?: long;
}>, Api.TypeStatsGraph> {
// flags: undefined;
token: string;
x?: long;
};
export class GetMegagroupStats extends Request<Partial<{
// flags: undefined;
dark?: true;
channel: Api.TypeInputChannel;
}>, stats.TypeMegagroupStats> {
// flags: undefined;
dark?: true;
channel: Api.TypeInputChannel;
};
export class GetMessagePublicForwards extends Request<Partial<{
channel: Api.TypeInputChannel;
msgId: int;
offset: string;
limit: int;
}>, stats.TypePublicForwards> {
channel: Api.TypeInputChannel;
msgId: int;
offset: string;
limit: int;
};
export class GetMessageStats extends Request<Partial<{
// flags: undefined;
dark?: true;
channel: Api.TypeInputChannel;
msgId: int;
}>, stats.TypeMessageStats> {
// flags: undefined;
dark?: true;
channel: Api.TypeInputChannel;
msgId: int;
};
export class GetStoryStats extends Request<Partial<{
// flags: undefined;
dark?: true;
peer: Api.TypeInputPeer;
id: int;
}>, stats.TypeStoryStats> {
// flags: undefined;
dark?: true;
peer: Api.TypeInputPeer;
id: int;
};
export class GetStoryPublicForwards extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int;
offset: string;
limit: int;
}>, stats.TypePublicForwards> {
peer: Api.TypeInputPeer;
id: int;
offset: string;
limit: int;
};
export class GetBroadcastRevenueStats extends Request<Partial<{
// flags: undefined;
dark?: true;
peer: Api.TypeInputPeer;
}>, stats.TypeBroadcastRevenueStats> {
// flags: undefined;
dark?: true;
peer: Api.TypeInputPeer;
};
export class GetBroadcastRevenueWithdrawalUrl extends Request<Partial<{
peer: Api.TypeInputPeer;
password: Api.TypeInputCheckPasswordSRP;
}>, stats.TypeBroadcastRevenueWithdrawalUrl> {
peer: Api.TypeInputPeer;
password: Api.TypeInputCheckPasswordSRP;
};
export class GetBroadcastRevenueTransactions extends Request<Partial<{
peer: Api.TypeInputPeer;
offset: int;
limit: int;
}>, stats.TypeBroadcastRevenueTransactions> {
peer: Api.TypeInputPeer;
offset: int;
limit: int;
};
}
export namespace chatlists {
export class ExportChatlistInvite extends Request<Partial<{
chatlist: Api.TypeInputChatlist;
title: string;
peers: Api.TypeInputPeer[];
}>, chatlists.TypeExportedChatlistInvite> {
chatlist: Api.TypeInputChatlist;
title: string;
peers: Api.TypeInputPeer[];
};
export class DeleteExportedInvite extends Request<Partial<{
chatlist: Api.TypeInputChatlist;
slug: string;
}>, Bool> {
chatlist: Api.TypeInputChatlist;
slug: string;
};
export class EditExportedInvite extends Request<Partial<{
// flags: undefined;
chatlist: Api.TypeInputChatlist;
slug: string;
title?: string;
peers?: Api.TypeInputPeer[];
}>, Api.TypeExportedChatlistInvite> {
// flags: undefined;
chatlist: Api.TypeInputChatlist;
slug: string;
title?: string;
peers?: Api.TypeInputPeer[];
};
export class GetExportedInvites extends Request<Partial<{
chatlist: Api.TypeInputChatlist;
}>, chatlists.TypeExportedInvites> {
chatlist: Api.TypeInputChatlist;
};
export class CheckChatlistInvite extends Request<Partial<{
slug: string;
}>, chatlists.TypeChatlistInvite> {
slug: string;
};
export class JoinChatlistInvite extends Request<Partial<{
slug: string;
peers: Api.TypeInputPeer[];
}>, Api.TypeUpdates> {
slug: string;
peers: Api.TypeInputPeer[];
};
export class GetChatlistUpdates extends Request<Partial<{
chatlist: Api.TypeInputChatlist;
}>, chatlists.TypeChatlistUpdates> {
chatlist: Api.TypeInputChatlist;
};
export class JoinChatlistUpdates extends Request<Partial<{
chatlist: Api.TypeInputChatlist;
peers: Api.TypeInputPeer[];
}>, Api.TypeUpdates> {
chatlist: Api.TypeInputChatlist;
peers: Api.TypeInputPeer[];
};
export class HideChatlistUpdates extends Request<Partial<{
chatlist: Api.TypeInputChatlist;
}>, Bool> {
chatlist: Api.TypeInputChatlist;
};
export class GetLeaveChatlistSuggestions extends Request<Partial<{
chatlist: Api.TypeInputChatlist;
}>, Api.TypePeer[]> {
chatlist: Api.TypeInputChatlist;
};
export class LeaveChatlist extends Request<Partial<{
chatlist: Api.TypeInputChatlist;
peers: Api.TypeInputPeer[];
}>, Api.TypeUpdates> {
chatlist: Api.TypeInputChatlist;
peers: Api.TypeInputPeer[];
};
}
export namespace stories {
export class CanSendStory extends Request<Partial<{
peer: Api.TypeInputPeer;
}>, Bool> {
peer: Api.TypeInputPeer;
};
export class SendStory extends Request<Partial<{
// flags: undefined;
pinned?: true;
noforwards?: true;
fwdModified?: true;
peer: Api.TypeInputPeer;
media: Api.TypeInputMedia;
mediaAreas?: Api.TypeMediaArea[];
caption?: string;
entities?: Api.TypeMessageEntity[];
privacyRules: Api.TypeInputPrivacyRule[];
randomId: long;
period?: int;
fwdFromId?: Api.TypeInputPeer;
fwdFromStory?: int;
}>, Api.TypeUpdates> {
// flags: undefined;
pinned?: true;
noforwards?: true;
fwdModified?: true;
peer: Api.TypeInputPeer;
media: Api.TypeInputMedia;
mediaAreas?: Api.TypeMediaArea[];
caption?: string;
entities?: Api.TypeMessageEntity[];
privacyRules: Api.TypeInputPrivacyRule[];
randomId: long;
period?: int;
fwdFromId?: Api.TypeInputPeer;
fwdFromStory?: int;
};
export class EditStory extends Request<Partial<{
// flags: undefined;
peer: Api.TypeInputPeer;
id: int;
media?: Api.TypeInputMedia;
mediaAreas?: Api.TypeMediaArea[];
caption?: string;
entities?: Api.TypeMessageEntity[];
privacyRules?: Api.TypeInputPrivacyRule[];
}>, Api.TypeUpdates> {
// flags: undefined;
peer: Api.TypeInputPeer;
id: int;
media?: Api.TypeInputMedia;
mediaAreas?: Api.TypeMediaArea[];
caption?: string;
entities?: Api.TypeMessageEntity[];
privacyRules?: Api.TypeInputPrivacyRule[];
};
export class DeleteStories extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int[];
}>, int[]> {
peer: Api.TypeInputPeer;
id: int[];
};
export class TogglePinned extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int[];
pinned: Bool;
}>, int[]> {
peer: Api.TypeInputPeer;
id: int[];
pinned: Bool;
};
export class GetAllStories extends Request<Partial<{
// flags: undefined;
next?: true;
hidden?: true;
state?: string;
} | void>, stories.TypeAllStories> {
// flags: undefined;
next?: true;
hidden?: true;
state?: string;
};
export class GetPinnedStories extends Request<Partial<{
peer: Api.TypeInputPeer;
offsetId: int;
limit: int;
}>, stories.TypeStories> {
peer: Api.TypeInputPeer;
offsetId: int;
limit: int;
};
export class GetStoriesArchive extends Request<Partial<{
peer: Api.TypeInputPeer;
offsetId: int;
limit: int;
}>, stories.TypeStories> {
peer: Api.TypeInputPeer;
offsetId: int;
limit: int;
};
export class GetStoriesByID extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int[];
}>, stories.TypeStories> {
peer: Api.TypeInputPeer;
id: int[];
};
export class ToggleAllStoriesHidden extends Request<Partial<{
hidden: Bool;
}>, Bool> {
hidden: Bool;
};
export class ReadStories extends Request<Partial<{
peer: Api.TypeInputPeer;
maxId: int;
}>, int[]> {
peer: Api.TypeInputPeer;
maxId: int;
};
export class IncrementStoryViews extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int[];
}>, Bool> {
peer: Api.TypeInputPeer;
id: int[];
};
export class GetStoryViewsList extends Request<Partial<{
// flags: undefined;
justContacts?: true;
reactionsFirst?: true;
forwardsFirst?: true;
peer: Api.TypeInputPeer;
q?: string;
id: int;
offset: string;
limit: int;
}>, stories.TypeStoryViewsList> {
// flags: undefined;
justContacts?: true;
reactionsFirst?: true;
forwardsFirst?: true;
peer: Api.TypeInputPeer;
q?: string;
id: int;
offset: string;
limit: int;
};
export class GetStoriesViews extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int[];
}>, stories.TypeStoryViews> {
peer: Api.TypeInputPeer;
id: int[];
};
export class ExportStoryLink extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int;
}>, Api.TypeExportedStoryLink> {
peer: Api.TypeInputPeer;
id: int;
};
export class Report extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int[];
option: bytes;
message: string;
}>, Api.TypeReportResult> {
peer: Api.TypeInputPeer;
id: int[];
option: bytes;
message: string;
};
export class ActivateStealthMode extends Request<Partial<{
// flags: undefined;
past?: true;
future?: true;
} | void>, Api.TypeUpdates> {
// flags: undefined;
past?: true;
future?: true;
};
export class SendReaction extends Request<Partial<{
// flags: undefined;
addToRecent?: true;
peer: Api.TypeInputPeer;
storyId: int;
reaction: Api.TypeReaction;
}>, Api.TypeUpdates> {
// flags: undefined;
addToRecent?: true;
peer: Api.TypeInputPeer;
storyId: int;
reaction: Api.TypeReaction;
};
export class GetPeerStories extends Request<Partial<{
peer: Api.TypeInputPeer;
}>, stories.TypePeerStories> {
peer: Api.TypeInputPeer;
};
export class GetAllReadPeerStories extends Request<void, Api.TypeUpdates> {};
export class GetPeerMaxIDs extends Request<Partial<{
id: Api.TypeInputPeer[];
}>, int[]> {
id: Api.TypeInputPeer[];
};
export class GetChatsToSend extends Request<void, messages.TypeChats> {};
export class TogglePeerStoriesHidden extends Request<Partial<{
peer: Api.TypeInputPeer;
hidden: Bool;
}>, Bool> {
peer: Api.TypeInputPeer;
hidden: Bool;
};
export class GetStoryReactionsList extends Request<Partial<{
// flags: undefined;
forwardsFirst?: true;
peer: Api.TypeInputPeer;
id: int;
reaction?: Api.TypeReaction;
offset?: string;
limit: int;
}>, stories.TypeStoryReactionsList> {
// flags: undefined;
forwardsFirst?: true;
peer: Api.TypeInputPeer;
id: int;
reaction?: Api.TypeReaction;
offset?: string;
limit: int;
};
export class TogglePinnedToTop extends Request<Partial<{
peer: Api.TypeInputPeer;
id: int[];
}>, Bool> {
peer: Api.TypeInputPeer;
id: int[];
};
export class SearchPosts extends Request<Partial<{
// flags: undefined;
hashtag?: string;
area?: Api.TypeMediaArea;
peer?: Api.TypeInputPeer;
offset: string;
limit: int;
}>, stories.TypeFoundStories> {
// flags: undefined;
hashtag?: string;
area?: Api.TypeMediaArea;
peer?: Api.TypeInputPeer;
offset: string;
limit: int;
};
}
export namespace premium {
export class GetBoostsList extends Request<Partial<{
// flags: undefined;
gifts?: true;
peer: Api.TypeInputPeer;
offset: string;
limit: int;
}>, premium.TypeBoostsList> {
// flags: undefined;
gifts?: true;
peer: Api.TypeInputPeer;
offset: string;
limit: int;
};
export class GetMyBoosts extends Request<void, premium.TypeMyBoosts> {};
export class ApplyBoost extends Request<Partial<{
// flags: undefined;
slots?: int[];
peer: Api.TypeInputPeer;
}>, premium.TypeMyBoosts> {
// flags: undefined;
slots?: int[];
peer: Api.TypeInputPeer;
};
export class GetBoostsStatus extends Request<Partial<{
peer: Api.TypeInputPeer;
}>, premium.TypeBoostsStatus> {
peer: Api.TypeInputPeer;
};
export class GetUserBoosts extends Request<Partial<{
peer: Api.TypeInputPeer;
userId: Api.TypeInputUser;
}>, premium.TypeBoostsList> {
peer: Api.TypeInputPeer;
userId: Api.TypeInputUser;
};
}
export namespace smsjobs {
export class IsEligibleToJoin extends Request<void, smsjobs.TypeEligibilityToJoin> {};
export class Join extends Request<void, Bool> {};
export class Leave extends Request<void, Bool> {};
export class UpdateSettings extends Request<Partial<{
// flags: undefined;
allowInternational?: true;
} | void>, Bool> {
// flags: undefined;
allowInternational?: true;
};
export class GetStatus extends Request<void, smsjobs.TypeStatus> {};
export class GetSmsJob extends Request<Partial<{
jobId: string;
}>, Api.TypeSmsJob> {
jobId: string;
};
export class FinishJob extends Request<Partial<{
// flags: undefined;
jobId: string;
error?: string;
}>, Bool> {
// flags: undefined;
jobId: string;
error?: string;
};
}
export namespace fragment {
export class GetCollectibleInfo extends Request<Partial<{
collectible: Api.TypeInputCollectible;
}>, fragment.TypeCollectibleInfo> {
collectible: Api.TypeInputCollectible;
};
}
export type AnyRequest = InvokeAfterMsg | InvokeAfterMsgs | InitConnection | InvokeWithLayer | InvokeWithoutUpdates | InvokeWithMessagesRange | InvokeWithTakeout | InvokeWithBusinessConnection | InvokeWithGooglePlayIntegrity | InvokeWithApnsSecret | ReqPq | ReqPqMulti | ReqPqMultiNew | ReqDHParams | SetClientDHParams | DestroyAuthKey | RpcDropAnswer | GetFutureSalts | Ping | PingDelayDisconnect | DestroySession
| auth.SendCode | auth.SignUp | auth.SignIn | auth.LogOut | auth.ResetAuthorizations | auth.ExportAuthorization | auth.ImportAuthorization | auth.BindTempAuthKey | auth.ImportBotAuthorization | auth.CheckPassword | auth.RequestPasswordRecovery | auth.RecoverPassword | auth.ResendCode | auth.CancelCode | auth.DropTempAuthKeys | auth.ExportLoginToken | auth.ImportLoginToken | auth.AcceptLoginToken | auth.CheckRecoveryPassword | auth.ImportWebTokenAuthorization | auth.RequestFirebaseSms | auth.ResetLoginEmail | auth.ReportMissingCode
| account.RegisterDevice | account.UnregisterDevice | account.UpdateNotifySettings | account.GetNotifySettings | account.ResetNotifySettings | account.UpdateProfile | account.UpdateStatus | account.GetWallPapers | account.ReportPeer | account.CheckUsername | account.UpdateUsername | account.GetPrivacy | account.SetPrivacy | account.DeleteAccount | account.GetAccountTTL | account.SetAccountTTL | account.SendChangePhoneCode | account.ChangePhone | account.UpdateDeviceLocked | account.GetAuthorizations | account.ResetAuthorization | account.GetPassword | account.GetPasswordSettings | account.UpdatePasswordSettings | account.SendConfirmPhoneCode | account.ConfirmPhone | account.GetTmpPassword | account.GetWebAuthorizations | account.ResetWebAuthorization | account.ResetWebAuthorizations | account.GetAllSecureValues | account.GetSecureValue | account.SaveSecureValue | account.DeleteSecureValue | account.GetAuthorizationForm | account.AcceptAuthorization | account.SendVerifyPhoneCode | account.VerifyPhone | account.SendVerifyEmailCode | account.VerifyEmail | account.InitTakeoutSession | account.FinishTakeoutSession | account.ConfirmPasswordEmail | account.ResendPasswordEmail | account.CancelPasswordEmail | account.GetContactSignUpNotification | account.SetContactSignUpNotification | account.GetNotifyExceptions | account.GetWallPaper | account.UploadWallPaper | account.SaveWallPaper | account.InstallWallPaper | account.ResetWallPapers | account.GetAutoDownloadSettings | account.SaveAutoDownloadSettings | account.UploadTheme | account.CreateTheme | account.UpdateTheme | account.SaveTheme | account.InstallTheme | account.GetTheme | account.GetThemes | account.SetContentSettings | account.GetContentSettings | account.GetMultiWallPapers | account.GetGlobalPrivacySettings | account.SetGlobalPrivacySettings | account.ReportProfilePhoto | account.ResetPassword | account.DeclinePasswordReset | account.GetChatThemes | account.SetAuthorizationTTL | account.ChangeAuthorizationSettings | account.GetSavedRingtones | account.SaveRingtone | account.UploadRingtone | account.UpdateEmojiStatus | account.GetDefaultEmojiStatuses | account.GetRecentEmojiStatuses | account.ClearRecentEmojiStatuses | account.ReorderUsernames | account.ToggleUsername | account.GetDefaultProfilePhotoEmojis | account.GetDefaultGroupPhotoEmojis | account.GetAutoSaveSettings | account.SaveAutoSaveSettings | account.DeleteAutoSaveExceptions | account.InvalidateSignInCodes | account.UpdateColor | account.GetDefaultBackgroundEmojis | account.GetChannelDefaultEmojiStatuses | account.GetChannelRestrictedStatusEmojis | account.UpdateBusinessWorkHours | account.UpdateBusinessLocation | account.UpdateBusinessGreetingMessage | account.UpdateBusinessAwayMessage | account.UpdateConnectedBot | account.GetConnectedBots | account.GetBotBusinessConnection | account.UpdateBusinessIntro | account.ToggleConnectedBotPaused | account.DisablePeerConnectedBot | account.UpdateBirthday | account.CreateBusinessChatLink | account.EditBusinessChatLink | account.DeleteBusinessChatLink | account.GetBusinessChatLinks | account.ResolveBusinessChatLink | account.UpdatePersonalChannel | account.ToggleSponsoredMessages | account.GetReactionsNotifySettings | account.SetReactionsNotifySettings
| users.GetUsers | users.GetFullUser | users.SetSecureValueErrors | users.GetIsPremiumRequiredToContact
| contacts.GetContactIDs | contacts.GetStatuses | contacts.GetContacts | contacts.ImportContacts | contacts.DeleteContacts | contacts.DeleteByPhones | contacts.Block | contacts.Unblock | contacts.GetBlocked | contacts.Search | contacts.ResolveUsername | contacts.GetTopPeers | contacts.ResetTopPeerRating | contacts.ResetSaved | contacts.GetSaved | contacts.ToggleTopPeers | contacts.AddContact | contacts.AcceptContact | contacts.GetLocated | contacts.BlockFromReplies | contacts.ResolvePhone | contacts.ExportContactToken | contacts.ImportContactToken | contacts.EditCloseFriends | contacts.SetBlocked | contacts.GetBirthdays
| messages.GetMessages | messages.GetDialogs | messages.GetHistory | messages.Search | messages.ReadHistory | messages.DeleteHistory | messages.DeleteMessages | messages.ReceivedMessages | messages.SetTyping | messages.SendMessage | messages.SendMedia | messages.ForwardMessages | messages.ReportSpam | messages.GetPeerSettings | messages.Report | messages.GetChats | messages.GetFullChat | messages.EditChatTitle | messages.EditChatPhoto | messages.AddChatUser | messages.DeleteChatUser | messages.CreateChat | messages.GetDhConfig | messages.RequestEncryption | messages.AcceptEncryption | messages.DiscardEncryption | messages.SetEncryptedTyping | messages.ReadEncryptedHistory | messages.SendEncrypted | messages.SendEncryptedFile | messages.SendEncryptedService | messages.ReceivedQueue | messages.ReportEncryptedSpam | messages.ReadMessageContents | messages.GetStickers | messages.GetAllStickers | messages.GetWebPagePreview | messages.ExportChatInvite | messages.CheckChatInvite | messages.ImportChatInvite | messages.GetStickerSet | messages.InstallStickerSet | messages.UninstallStickerSet | messages.StartBot | messages.GetMessagesViews | messages.EditChatAdmin | messages.MigrateChat | messages.SearchGlobal | messages.ReorderStickerSets | messages.GetDocumentByHash | messages.GetSavedGifs | messages.SaveGif | messages.GetInlineBotResults | messages.SetInlineBotResults | messages.SendInlineBotResult | messages.GetMessageEditData | messages.EditMessage | messages.EditInlineBotMessage | messages.GetBotCallbackAnswer | messages.SetBotCallbackAnswer | messages.GetPeerDialogs | messages.SaveDraft | messages.GetAllDrafts | messages.GetFeaturedStickers | messages.ReadFeaturedStickers | messages.GetRecentStickers | messages.SaveRecentSticker | messages.ClearRecentStickers | messages.GetArchivedStickers | messages.GetMaskStickers | messages.GetAttachedStickers | messages.SetGameScore | messages.SetInlineGameScore | messages.GetGameHighScores | messages.GetInlineGameHighScores | messages.GetCommonChats | messages.GetWebPage | messages.ToggleDialogPin | messages.ReorderPinnedDialogs | messages.GetPinnedDialogs | messages.SetBotShippingResults | messages.SetBotPrecheckoutResults | messages.UploadMedia | messages.SendScreenshotNotification | messages.GetFavedStickers | messages.FaveSticker | messages.GetUnreadMentions | messages.ReadMentions | messages.GetRecentLocations | messages.SendMultiMedia | messages.UploadEncryptedFile | messages.SearchStickerSets | messages.GetSplitRanges | messages.MarkDialogUnread | messages.GetDialogUnreadMarks | messages.ClearAllDrafts | messages.UpdatePinnedMessage | messages.SendVote | messages.GetPollResults | messages.GetOnlines | messages.EditChatAbout | messages.EditChatDefaultBannedRights | messages.GetEmojiKeywords | messages.GetEmojiKeywordsDifference | messages.GetEmojiKeywordsLanguages | messages.GetEmojiURL | messages.GetSearchCounters | messages.RequestUrlAuth | messages.AcceptUrlAuth | messages.HidePeerSettingsBar | messages.GetScheduledHistory | messages.GetScheduledMessages | messages.SendScheduledMessages | messages.DeleteScheduledMessages | messages.GetPollVotes | messages.ToggleStickerSets | messages.GetDialogFilters | messages.GetSuggestedDialogFilters | messages.UpdateDialogFilter | messages.UpdateDialogFiltersOrder | messages.GetOldFeaturedStickers | messages.GetReplies | messages.GetDiscussionMessage | messages.ReadDiscussion | messages.UnpinAllMessages | messages.DeleteChat | messages.DeletePhoneCallHistory | messages.CheckHistoryImport | messages.InitHistoryImport | messages.UploadImportedMedia | messages.StartHistoryImport | messages.GetExportedChatInvites | messages.GetExportedChatInvite | messages.EditExportedChatInvite | messages.DeleteRevokedExportedChatInvites | messages.DeleteExportedChatInvite | messages.GetAdminsWithInvites | messages.GetChatInviteImporters | messages.SetHistoryTTL | messages.CheckHistoryImportPeer | messages.SetChatTheme | messages.GetMessageReadParticipants | messages.GetSearchResultsCalendar | messages.GetSearchResultsPositions | messages.HideChatJoinRequest | messages.HideAllChatJoinRequests | messages.ToggleNoForwards | messages.SaveDefaultSendAs | messages.SendReaction | messages.GetMessagesReactions | messages.GetMessageReactionsList | messages.SetChatAvailableReactions | messages.GetAvailableReactions | messages.SetDefaultReaction | messages.TranslateText | messages.GetUnreadReactions | messages.ReadReactions | messages.SearchSentMedia | messages.GetAttachMenuBots | messages.GetAttachMenuBot | messages.ToggleBotInAttachMenu | messages.RequestWebView | messages.ProlongWebView | messages.RequestSimpleWebView | messages.SendWebViewResultMessage | messages.SendWebViewData | messages.TranscribeAudio | messages.RateTranscribedAudio | messages.GetCustomEmojiDocuments | messages.GetEmojiStickers | messages.GetFeaturedEmojiStickers | messages.ReportReaction | messages.GetTopReactions | messages.GetRecentReactions | messages.ClearRecentReactions | messages.GetExtendedMedia | messages.SetDefaultHistoryTTL | messages.GetDefaultHistoryTTL | messages.SendBotRequestedPeer | messages.GetEmojiGroups | messages.GetEmojiStatusGroups | messages.GetEmojiProfilePhotoGroups | messages.SearchCustomEmoji | messages.TogglePeerTranslations | messages.GetBotApp | messages.RequestAppWebView | messages.SetChatWallPaper | messages.SearchEmojiStickerSets | messages.GetSavedDialogs | messages.GetSavedHistory | messages.DeleteSavedHistory | messages.GetPinnedSavedDialogs | messages.ToggleSavedDialogPin | messages.ReorderPinnedSavedDialogs | messages.GetSavedReactionTags | messages.UpdateSavedReactionTag | messages.GetDefaultTagReactions | messages.GetOutboxReadDate | messages.GetQuickReplies | messages.ReorderQuickReplies | messages.CheckQuickReplyShortcut | messages.EditQuickReplyShortcut | messages.DeleteQuickReplyShortcut | messages.GetQuickReplyMessages | messages.SendQuickReplyMessages | messages.DeleteQuickReplyMessages | messages.ToggleDialogFilterTags | messages.GetMyStickers | messages.GetEmojiStickerGroups | messages.GetAvailableEffects | messages.EditFactCheck | messages.DeleteFactCheck | messages.GetFactCheck | messages.RequestMainWebView | messages.SendPaidReaction | messages.TogglePaidReactionPrivacy | messages.GetPaidReactionPrivacy | messages.ViewSponsoredMessage | messages.ClickSponsoredMessage | messages.ReportSponsoredMessage | messages.GetSponsoredMessages | messages.SavePreparedInlineMessage | messages.GetPreparedInlineMessage | messages.SearchStickers | messages.ReportMessagesDelivery
| updates.GetState | updates.GetDifference | updates.GetChannelDifference
| photos.UpdateProfilePhoto | photos.UploadProfilePhoto | photos.DeletePhotos | photos.GetUserPhotos | photos.UploadContactProfilePhoto
| upload.SaveFilePart | upload.GetFile | upload.SaveBigFilePart | upload.GetWebFile | upload.GetCdnFile | upload.ReuploadCdnFile | upload.GetCdnFileHashes | upload.GetFileHashes
| help.GetConfig | help.GetNearestDc | help.GetAppUpdate | help.GetInviteText | help.GetSupport | help.SetBotUpdatesStatus | help.GetCdnConfig | help.GetRecentMeUrls | help.GetTermsOfServiceUpdate | help.AcceptTermsOfService | help.GetDeepLinkInfo | help.GetAppConfig | help.SaveAppLog | help.GetPassportConfig | help.GetSupportName | help.GetUserInfo | help.EditUserInfo | help.GetPromoData | help.HidePromoData | help.DismissSuggestion | help.GetCountriesList | help.GetPremiumPromo | help.GetPeerColors | help.GetPeerProfileColors | help.GetTimezonesList
| channels.ReadHistory | channels.DeleteMessages | channels.ReportSpam | channels.GetMessages | channels.GetParticipants | channels.GetParticipant | channels.GetChannels | channels.GetFullChannel | channels.CreateChannel | channels.EditAdmin | channels.EditTitle | channels.EditPhoto | channels.CheckUsername | channels.UpdateUsername | channels.JoinChannel | channels.LeaveChannel | channels.InviteToChannel | channels.DeleteChannel | channels.ExportMessageLink | channels.ToggleSignatures | channels.GetAdminedPublicChannels | channels.EditBanned | channels.GetAdminLog | channels.SetStickers | channels.ReadMessageContents | channels.DeleteHistory | channels.TogglePreHistoryHidden | channels.GetLeftChannels | channels.GetGroupsForDiscussion | channels.SetDiscussionGroup | channels.EditCreator | channels.EditLocation | channels.ToggleSlowMode | channels.GetInactiveChannels | channels.ConvertToGigagroup | channels.GetSendAs | channels.DeleteParticipantHistory | channels.ToggleJoinToSend | channels.ToggleJoinRequest | channels.ReorderUsernames | channels.ToggleUsername | channels.DeactivateAllUsernames | channels.ToggleForum | channels.CreateForumTopic | channels.GetForumTopics | channels.GetForumTopicsByID | channels.EditForumTopic | channels.UpdatePinnedForumTopic | channels.DeleteTopicHistory | channels.ReorderPinnedForumTopics | channels.ToggleAntiSpam | channels.ReportAntiSpamFalsePositive | channels.ToggleParticipantsHidden | channels.UpdateColor | channels.ToggleViewForumAsMessages | channels.GetChannelRecommendations | channels.UpdateEmojiStatus | channels.SetBoostsToUnblockRestrictions | channels.SetEmojiStickers | channels.RestrictSponsoredMessages | channels.SearchPosts
| bots.SendCustomRequest | bots.AnswerWebhookJSONQuery | bots.SetBotCommands | bots.ResetBotCommands | bots.GetBotCommands | bots.SetBotMenuButton | bots.GetBotMenuButton | bots.SetBotBroadcastDefaultAdminRights | bots.SetBotGroupDefaultAdminRights | bots.SetBotInfo | bots.GetBotInfo | bots.ReorderUsernames | bots.ToggleUsername | bots.CanSendMessage | bots.AllowSendMessage | bots.InvokeWebViewCustomMethod | bots.GetPopularAppBots | bots.AddPreviewMedia | bots.EditPreviewMedia | bots.DeletePreviewMedia | bots.ReorderPreviewMedias | bots.GetPreviewInfo | bots.GetPreviewMedias | bots.UpdateUserEmojiStatus | bots.ToggleUserEmojiStatusPermission | bots.CheckDownloadFileParams | bots.GetAdminedBots | bots.UpdateStarRefProgram | bots.SetCustomVerification
| payments.GetPaymentForm | payments.GetPaymentReceipt | payments.ValidateRequestedInfo | payments.SendPaymentForm | payments.GetSavedInfo | payments.ClearSavedInfo | payments.GetBankCardData | payments.ExportInvoice | payments.AssignAppStoreTransaction | payments.AssignPlayMarketTransaction | payments.CanPurchasePremium | payments.GetPremiumGiftCodeOptions | payments.CheckGiftCode | payments.ApplyGiftCode | payments.GetGiveawayInfo | payments.LaunchPrepaidGiveaway | payments.GetStarsTopupOptions | payments.GetStarsStatus | payments.GetStarsTransactions | payments.SendStarsForm | payments.RefundStarsCharge | payments.GetStarsRevenueStats | payments.GetStarsRevenueWithdrawalUrl | payments.GetStarsRevenueAdsAccountUrl | payments.GetStarsTransactionsByID | payments.GetStarsGiftOptions | payments.GetStarsSubscriptions | payments.ChangeStarsSubscription | payments.FulfillStarsSubscription | payments.GetStarsGiveawayOptions | payments.GetStarGifts | payments.GetUserStarGifts | payments.SaveStarGift | payments.ConvertStarGift | payments.BotCancelStarsSubscription | payments.GetConnectedStarRefBots | payments.GetConnectedStarRefBot | payments.GetSuggestedStarRefBots | payments.ConnectStarRefBot | payments.EditConnectedStarRefBot | payments.GetStarGiftUpgradePreview | payments.UpgradeStarGift | payments.TransferStarGift | payments.GetUserStarGift
| stickers.CreateStickerSet | stickers.RemoveStickerFromSet | stickers.ChangeStickerPosition | stickers.AddStickerToSet | stickers.SetStickerSetThumb | stickers.CheckShortName | stickers.SuggestShortName | stickers.ChangeSticker | stickers.RenameStickerSet | stickers.DeleteStickerSet | stickers.ReplaceSticker
| phone.GetCallConfig | phone.RequestCall | phone.AcceptCall | phone.ConfirmCall | phone.ReceivedCall | phone.DiscardCall | phone.SetCallRating | phone.SaveCallDebug | phone.SendSignalingData | phone.CreateGroupCall | phone.JoinGroupCall | phone.LeaveGroupCall | phone.InviteToGroupCall | phone.DiscardGroupCall | phone.ToggleGroupCallSettings | phone.GetGroupCall | phone.GetGroupParticipants | phone.CheckGroupCall | phone.ToggleGroupCallRecord | phone.EditGroupCallParticipant | phone.EditGroupCallTitle | phone.GetGroupCallJoinAs | phone.ExportGroupCallInvite | phone.ToggleGroupCallStartSubscription | phone.StartScheduledGroupCall | phone.SaveDefaultGroupCallJoinAs | phone.JoinGroupCallPresentation | phone.LeaveGroupCallPresentation | phone.GetGroupCallStreamChannels | phone.GetGroupCallStreamRtmpUrl | phone.SaveCallLog | phone.CreateConferenceCall
| langpack.GetLangPack | langpack.GetStrings | langpack.GetDifference | langpack.GetLanguages | langpack.GetLanguage
| folders.EditPeerFolders
| stats.GetBroadcastStats | stats.LoadAsyncGraph | stats.GetMegagroupStats | stats.GetMessagePublicForwards | stats.GetMessageStats | stats.GetStoryStats | stats.GetStoryPublicForwards | stats.GetBroadcastRevenueStats | stats.GetBroadcastRevenueWithdrawalUrl | stats.GetBroadcastRevenueTransactions
| chatlists.ExportChatlistInvite | chatlists.DeleteExportedInvite | chatlists.EditExportedInvite | chatlists.GetExportedInvites | chatlists.CheckChatlistInvite | chatlists.JoinChatlistInvite | chatlists.GetChatlistUpdates | chatlists.JoinChatlistUpdates | chatlists.HideChatlistUpdates | chatlists.GetLeaveChatlistSuggestions | chatlists.LeaveChatlist
| stories.CanSendStory | stories.SendStory | stories.EditStory | stories.DeleteStories | stories.TogglePinned | stories.GetAllStories | stories.GetPinnedStories | stories.GetStoriesArchive | stories.GetStoriesByID | stories.ToggleAllStoriesHidden | stories.ReadStories | stories.IncrementStoryViews | stories.GetStoryViewsList | stories.GetStoriesViews | stories.ExportStoryLink | stories.Report | stories.ActivateStealthMode | stories.SendReaction | stories.GetPeerStories | stories.GetAllReadPeerStories | stories.GetPeerMaxIDs | stories.GetChatsToSend | stories.TogglePeerStoriesHidden | stories.GetStoryReactionsList | stories.TogglePinnedToTop | stories.SearchPosts
| premium.GetBoostsList | premium.GetMyBoosts | premium.ApplyBoost | premium.GetBoostsStatus | premium.GetUserBoosts
| smsjobs.IsEligibleToJoin | smsjobs.Join | smsjobs.Leave | smsjobs.UpdateSettings | smsjobs.GetStatus | smsjobs.GetSmsJob | smsjobs.FinishJob
| fragment.GetCollectibleInfo;
}