@ -498,6 +498,8 @@ export namespace User {
@@ -498,6 +498,8 @@ export namespace User {
apply_min_photo? : true ,
fake? : true ,
bot_attach_menu? : true ,
premium? : true ,
attach_menu_enabled? : true ,
} > ,
id : string | number ,
access_hash? : string | number ,
@ -964,6 +966,9 @@ export namespace MessageMedia {
@@ -964,6 +966,9 @@ export namespace MessageMedia {
export type messageMediaDocument = {
_ : 'messageMediaDocument' ,
flags? : number ,
pFlags? : Partial < {
nopremium? : true ,
} > ,
document ? : Document ,
ttl_seconds? : number
} ;
@ -1109,6 +1114,10 @@ export namespace MessageAction {
@@ -1109,6 +1114,10 @@ export namespace MessageAction {
export type messageActionPaymentSentMe = {
_ : 'messageActionPaymentSentMe' ,
flags? : number ,
pFlags? : Partial < {
recurring_init? : true ,
recurring_used? : true ,
} > ,
currency : string ,
total_amount : string | number ,
payload : Uint8Array ,
@ -1119,8 +1128,14 @@ export namespace MessageAction {
@@ -1119,8 +1128,14 @@ export namespace MessageAction {
export type messageActionPaymentSent = {
_ : 'messageActionPaymentSent' ,
flags? : number ,
pFlags? : Partial < {
recurring_init? : true ,
recurring_used? : true ,
} > ,
currency : string ,
total_amount : string | number
total_amount : string | number ,
invoice_slug? : string
} ;
export type messageActionPhoneCall = {
@ -1990,7 +2005,7 @@ export namespace MessagesFilter {
@@ -1990,7 +2005,7 @@ export namespace MessagesFilter {
/ * *
* @link https : //core.telegram.org/type/Update
* /
export type Update = Update . updateNewMessage | Update . updateMessageID | Update . updateDeleteMessages | Update . updateUserTyping | Update . updateChatUserTyping | Update . updateChatParticipants | Update . updateUserStatus | Update . updateUserName | Update . updateUserPhoto | Update . updateNewEncryptedMessage | Update . updateEncryptedChatTyping | Update . updateEncryption | Update . updateEncryptedMessagesRead | Update . updateChatParticipantAdd | Update . updateChatParticipantDelete | Update . updateDcOptions | Update . updateNotifySettings | Update . updateServiceNotification | Update . updatePrivacy | Update . updateUserPhone | Update . updateReadHistoryInbox | Update . updateReadHistoryOutbox | Update . updateWebPage | Update . updateReadMessagesContents | Update . updateChannelTooLong | Update . updateChannel | Update . updateNewChannelMessage | Update . updateReadChannelInbox | Update . updateDeleteChannelMessages | Update . updateChannelMessageViews | Update . updateChatParticipantAdmin | Update . updateNewStickerSet | Update . updateStickerSetsOrder | Update . updateStickerSets | Update . updateSavedGifs | Update . updateBotInlineQuery | Update . updateBotInlineSend | Update . updateEditChannelMessage | Update . updateBotCallbackQuery | Update . updateEditMessage | Update . updateInlineBotCallbackQuery | Update . updateReadChannelOutbox | Update . updateDraftMessage | Update . updateReadFeaturedStickers | Update . updateRecentStickers | Update . updateConfig | Update . updatePtsChanged | Update . updateChannelWebPage | Update . updateDialogPinned | Update . updatePinnedDialogs | Update . updateBotWebhookJSON | Update . updateBotWebhookJSONQuery | Update . updateBotShippingQuery | Update . updateBotPrecheckoutQuery | Update . updatePhoneCall | Update . updateLangPackTooLong | Update . updateLangPack | Update . updateFavedStickers | Update . updateChannelReadMessagesContents | Update . updateContactsReset | Update . updateChannelAvailableMessages | Update . updateDialogUnreadMark | Update . updateMessagePoll | Update . updateChatDefaultBannedRights | Update . updateFolderPeers | Update . updatePeerSettings | Update . updatePeerLocated | Update . updateNewScheduledMessage | Update . updateDeleteScheduledMessages | Update . updateTheme | Update . updateGeoLiveViewed | Update . updateLoginToken | Update . updateMessagePollVote | Update . updateDialogFilter | Update . updateDialogFilterOrder | Update . updateDialogFilters | Update . updatePhoneCallSignalingData | Update . updateChannelMessageForwards | Update . updateReadChannelDiscussionInbox | Update . updateReadChannelDiscussionOutbox | Update . updatePeerBlocked | Update . updateChannelUserTyping | Update . updatePinnedMessages | Update . updatePinnedChannelMessages | Update . updateChat | Update . updateGroupCallParticipants | Update . updateGroupCall | Update . updatePeerHistoryTTL | Update . updateChatParticipant | Update . updateChannelParticipant | Update . updateBotStopped | Update . updateGroupCallConnection | Update . updateBotCommands | Update . updatePendingJoinRequests | Update . updateBotChatInviteRequester | Update . updateMessageReactions | Update . updateAttachMenuBots | Update . updateWebViewResultSent | Update . updateBotMenuButton | Update . updateSavedRingtones | Update . updateNewDiscussionMessage | Update . updateDeleteDiscussionMessages | Update . updateChannelReload ;
export type Update = Update . updateNewMessage | Update . updateMessageID | Update . updateDeleteMessages | Update . updateUserTyping | Update . updateChatUserTyping | Update . updateChatParticipants | Update . updateUserStatus | Update . updateUserName | Update . updateUserPhoto | Update . updateNewEncryptedMessage | Update . updateEncryptedChatTyping | Update . updateEncryption | Update . updateEncryptedMessagesRead | Update . updateChatParticipantAdd | Update . updateChatParticipantDelete | Update . updateDcOptions | Update . updateNotifySettings | Update . updateServiceNotification | Update . updatePrivacy | Update . updateUserPhone | Update . updateReadHistoryInbox | Update . updateReadHistoryOutbox | Update . updateWebPage | Update . updateReadMessagesContents | Update . updateChannelTooLong | Update . updateChannel | Update . updateNewChannelMessage | Update . updateReadChannelInbox | Update . updateDeleteChannelMessages | Update . updateChannelMessageViews | Update . updateChatParticipantAdmin | Update . updateNewStickerSet | Update . updateStickerSetsOrder | Update . updateStickerSets | Update . updateSavedGifs | Update . updateBotInlineQuery | Update . updateBotInlineSend | Update . updateEditChannelMessage | Update . updateBotCallbackQuery | Update . updateEditMessage | Update . updateInlineBotCallbackQuery | Update . updateReadChannelOutbox | Update . updateDraftMessage | Update . updateReadFeaturedStickers | Update . updateRecentStickers | Update . updateConfig | Update . updatePtsChanged | Update . updateChannelWebPage | Update . updateDialogPinned | Update . updatePinnedDialogs | Update . updateBotWebhookJSON | Update . updateBotWebhookJSONQuery | Update . updateBotShippingQuery | Update . updateBotPrecheckoutQuery | Update . updatePhoneCall | Update . updateLangPackTooLong | Update . updateLangPack | Update . updateFavedStickers | Update . updateChannelReadMessagesContents | Update . updateContactsReset | Update . updateChannelAvailableMessages | Update . updateDialogUnreadMark | Update . updateMessagePoll | Update . updateChatDefaultBannedRights | Update . updateFolderPeers | Update . updatePeerSettings | Update . updatePeerLocated | Update . updateNewScheduledMessage | Update . updateDeleteScheduledMessages | Update . updateTheme | Update . updateGeoLiveViewed | Update . updateLoginToken | Update . updateMessagePollVote | Update . updateDialogFilter | Update . updateDialogFilterOrder | Update . updateDialogFilters | Update . updatePhoneCallSignalingData | Update . updateChannelMessageForwards | Update . updateReadChannelDiscussionInbox | Update . updateReadChannelDiscussionOutbox | Update . updatePeerBlocked | Update . updateChannelUserTyping | Update . updatePinnedMessages | Update . updatePinnedChannelMessages | Update . updateChat | Update . updateGroupCallParticipants | Update . updateGroupCall | Update . updatePeerHistoryTTL | Update . updateChatParticipant | Update . updateChannelParticipant | Update . updateBotStopped | Update . updateGroupCallConnection | Update . updateBotCommands | Update . updatePendingJoinRequests | Update . updateBotChatInviteRequester | Update . updateMessageReactions | Update . updateAttachMenuBots | Update . updateWebViewResultSent | Update . updateBotMenuButton | Update . updateSavedRingtones | Update . updateTranscribedAudio | Update . update NewDiscussionMessage | Update . updateDeleteDiscussionMessages | Update . updateChannelReload ;
export namespace Update {
export type updateNewMessage = {
@ -2224,6 +2239,7 @@ export namespace Update {
@@ -2224,6 +2239,7 @@ export namespace Update {
flags? : number ,
pFlags? : Partial < {
masks? : true ,
emojis? : true ,
} > ,
order : Array < string | number >
} ;
@ -2698,6 +2714,18 @@ export namespace Update {
@@ -2698,6 +2714,18 @@ export namespace Update {
_ : 'updateSavedRingtones'
} ;
export type updateTranscribedAudio = {
_ : 'updateTranscribedAudio' ,
flags? : number ,
pFlags? : Partial < {
pending? : true ,
} > ,
peer : Peer ,
msg_id : number ,
transcription_id : string | number ,
text : string
} ;
export type updateNewDiscussionMessage = {
_ : 'updateNewDiscussionMessage' ,
message? : Message
@ -2936,6 +2964,7 @@ export namespace DcOption {
@@ -2936,6 +2964,7 @@ export namespace DcOption {
tcpo_only? : true ,
cdn? : true ,
static ? : true ,
this_port_only? : true ,
} > ,
id : number ,
ip_address : string ,
@ -2961,6 +2990,7 @@ export namespace Config {
@@ -2961,6 +2990,7 @@ export namespace Config {
revoke_pm_inbox? : true ,
blocked_mode? : true ,
pfs_enabled? : true ,
force_try_ipv6? : true ,
} > ,
date : number ,
expires : number ,
@ -3141,7 +3171,7 @@ export namespace EncryptedFile {
@@ -3141,7 +3171,7 @@ export namespace EncryptedFile {
_ : 'encryptedFile' ,
id : string | number ,
access_hash : string | number ,
size : number ,
size : string | number ,
dc_id : number ,
key_fingerprint : number
} ;
@ -3928,7 +3958,7 @@ export namespace ReceivedNotifyMessage {
@@ -3928,7 +3958,7 @@ export namespace ReceivedNotifyMessage {
/ * *
* @link https : //core.telegram.org/type/ExportedChatInvite
* /
export type ExportedChatInvite = ExportedChatInvite . chatInviteExported ;
export type ExportedChatInvite = ExportedChatInvite . chatInviteExported | ExportedChatInvite . chatInvitePublicJoinRequests ;
export namespace ExportedChatInvite {
export type chatInviteExported = {
@ -3949,6 +3979,10 @@ export namespace ExportedChatInvite {
@@ -3949,6 +3979,10 @@ export namespace ExportedChatInvite {
requested? : number ,
title? : string
} ;
export type chatInvitePublicJoinRequests = {
_ : 'chatInvitePublicJoinRequests'
} ;
}
/ * *
@ -4036,6 +4070,7 @@ export namespace StickerSet {
@@ -4036,6 +4070,7 @@ export namespace StickerSet {
masks? : true ,
animated? : true ,
videos? : true ,
emojis? : true ,
} > ,
installed_date? : number ,
id : string | number ,
@ -4090,10 +4125,13 @@ export type BotInfo = BotInfo.botInfo;
@@ -4090,10 +4125,13 @@ export type BotInfo = BotInfo.botInfo;
export namespace BotInfo {
export type botInfo = {
_ : 'botInfo' ,
user_id : string | number ,
description : string ,
commands : Array < BotCommand > ,
menu_button : BotMenuButton
flags? : number ,
user_id? : string | number ,
description? : string ,
description_photo? : Photo ,
description_document? : Document ,
commands? : Array < BotCommand > ,
menu_button? : BotMenuButton
} ;
}
@ -5273,6 +5311,10 @@ export namespace MessagesFeaturedStickers {
@@ -5273,6 +5311,10 @@ export namespace MessagesFeaturedStickers {
export type messagesFeaturedStickers = {
_ : 'messages.featuredStickers' ,
flags? : number ,
pFlags? : Partial < {
premium? : true ,
} > ,
hash : string | number ,
count : number ,
sets : Array < StickerSetCovered > ,
@ -5802,11 +5844,13 @@ export namespace Invoice {
@@ -5802,11 +5844,13 @@ export namespace Invoice {
flexible? : true ,
phone_to_provider? : true ,
email_to_provider? : true ,
recurring? : true ,
} > ,
currency : string ,
prices : Array < LabeledPrice > ,
max_tip_amount? : string | number ,
suggested_tip_amounts? : Array < string | number >
suggested_tip_amounts? : Array < string | number > ,
recurring_terms_url? : string
} ;
}
@ -5966,6 +6010,9 @@ export namespace PaymentsPaymentForm {
@@ -5966,6 +6010,9 @@ export namespace PaymentsPaymentForm {
} > ,
form_id : string | number ,
bot_id : string | number ,
title : string ,
description : string ,
photo? : WebDocument ,
invoice : Invoice ,
provider_id : string | number ,
url : string ,
@ -6234,6 +6281,10 @@ export type PhoneConnection = PhoneConnection.phoneConnection | PhoneConnection.
@@ -6234,6 +6281,10 @@ export type PhoneConnection = PhoneConnection.phoneConnection | PhoneConnection.
export namespace PhoneConnection {
export type phoneConnection = {
_ : 'phoneConnection' ,
flags? : number ,
pFlags? : Partial < {
tcp? : true ,
} > ,
id : string | number ,
ip : string ,
ipv6 : string ,
@ -6881,7 +6932,7 @@ export type FileHash = FileHash.fileHash;
@@ -6881,7 +6932,7 @@ export type FileHash = FileHash.fileHash;
export namespace FileHash {
export type fileHash = {
_ : 'fileHash' ,
offset : number ,
offset : string | number ,
limit : number ,
hash : Uint8Array
} ;
@ -6954,7 +7005,7 @@ export namespace SecureFile {
@@ -6954,7 +7005,7 @@ export namespace SecureFile {
_ : 'secureFile' ,
id : string | number ,
access_hash : string | number ,
size : number ,
size : string | number ,
dc_id : number ,
date : number ,
file_hash : Uint8Array ,
@ -8333,7 +8384,7 @@ export namespace PaymentsBankCardData {
@@ -8333,7 +8384,7 @@ export namespace PaymentsBankCardData {
/ * *
* @link https : //core.telegram.org/type/DialogFilter
* /
export type DialogFilter = DialogFilter . dialogFilter ;
export type DialogFilter = DialogFilter . dialogFilter | DialogFilter . dialogFilterDefault ;
export namespace DialogFilter {
export type dialogFilter = {
@ -8359,6 +8410,10 @@ export namespace DialogFilter {
@@ -8359,6 +8410,10 @@ export namespace DialogFilter {
peerId? : PeerId ,
folder_id? : number
} ;
export type dialogFilterDefault = {
_ : 'dialogFilterDefault'
} ;
}
/ * *
@ -9199,6 +9254,9 @@ export namespace SponsoredMessage {
@@ -9199,6 +9254,9 @@ export namespace SponsoredMessage {
export type sponsoredMessage = {
_ : 'sponsoredMessage' ,
flags? : number ,
pFlags? : Partial < {
recommended? : true ,
} > ,
random_id : Uint8Array ,
from_id? : Peer ,
chat_invite? : ChatInvite ,
@ -9407,6 +9465,7 @@ export namespace AvailableReaction {
@@ -9407,6 +9465,7 @@ export namespace AvailableReaction {
flags? : number ,
pFlags? : Partial < {
inactive? : true ,
premium? : true ,
} > ,
reaction : string ,
title : string ,
@ -9549,9 +9608,11 @@ export namespace AttachMenuBot {
@@ -9549,9 +9608,11 @@ export namespace AttachMenuBot {
flags? : number ,
pFlags? : Partial < {
inactive? : true ,
has_settings? : true ,
} > ,
bot_id : string | number ,
short_name : string ,
peer_types : Array < AttachMenuPeerType > ,
icons : Array < AttachMenuBotIcon >
} ;
}
@ -9705,6 +9766,98 @@ export namespace AccountSavedRingtone {
@@ -9705,6 +9766,98 @@ export namespace AccountSavedRingtone {
} ;
}
/ * *
* @link https : //core.telegram.org/type/AttachMenuPeerType
* /
export type AttachMenuPeerType = AttachMenuPeerType . attachMenuPeerTypeSameBotPM | AttachMenuPeerType . attachMenuPeerTypeBotPM | AttachMenuPeerType . attachMenuPeerTypePM | AttachMenuPeerType . attachMenuPeerTypeChat | AttachMenuPeerType . attachMenuPeerTypeBroadcast ;
export namespace AttachMenuPeerType {
export type attachMenuPeerTypeSameBotPM = {
_ : 'attachMenuPeerTypeSameBotPM'
} ;
export type attachMenuPeerTypeBotPM = {
_ : 'attachMenuPeerTypeBotPM'
} ;
export type attachMenuPeerTypePM = {
_ : 'attachMenuPeerTypePM'
} ;
export type attachMenuPeerTypeChat = {
_ : 'attachMenuPeerTypeChat'
} ;
export type attachMenuPeerTypeBroadcast = {
_ : 'attachMenuPeerTypeBroadcast'
} ;
}
/ * *
* @link https : //core.telegram.org/type/InputInvoice
* /
export type InputInvoice = InputInvoice . inputInvoiceMessage | InputInvoice . inputInvoiceSlug ;
export namespace InputInvoice {
export type inputInvoiceMessage = {
_ : 'inputInvoiceMessage' ,
peer : InputPeer ,
msg_id : number
} ;
export type inputInvoiceSlug = {
_ : 'inputInvoiceSlug' ,
slug : string
} ;
}
/ * *
* @link https : //core.telegram.org/type/payments.ExportedInvoice
* /
export type PaymentsExportedInvoice = PaymentsExportedInvoice . paymentsExportedInvoice ;
export namespace PaymentsExportedInvoice {
export type paymentsExportedInvoice = {
_ : 'payments.exportedInvoice' ,
url : string
} ;
}
/ * *
* @link https : //core.telegram.org/type/messages.TranscribedAudio
* /
export type MessagesTranscribedAudio = MessagesTranscribedAudio . messagesTranscribedAudio ;
export namespace MessagesTranscribedAudio {
export type messagesTranscribedAudio = {
_ : 'messages.transcribedAudio' ,
flags? : number ,
pFlags? : Partial < {
pending? : true ,
} > ,
transcription_id : string | number ,
text : string
} ;
}
/ * *
* @link https : //core.telegram.org/type/help.PremiumPromo
* /
export type HelpPremiumPromo = HelpPremiumPromo . helpPremiumPromo ;
export namespace HelpPremiumPromo {
export type helpPremiumPromo = {
_ : 'help.premiumPromo' ,
status_text : string ,
status_entities : Array < MessageEntity > ,
video_sections : Array < string > ,
videos : Array < Document > ,
currency : string ,
monthly_amount : string | number ,
users : Array < User >
} ;
}
export interface ConstructorDeclMap {
'error' : Error . error ,
'inputPeerEmpty' : InputPeer . inputPeerEmpty ,
@ -10688,6 +10841,19 @@ export interface ConstructorDeclMap {
@@ -10688,6 +10841,19 @@ export interface ConstructorDeclMap {
'notificationSoundRingtone' : NotificationSound . notificationSoundRingtone ,
'account.savedRingtone' : AccountSavedRingtone . accountSavedRingtone ,
'account.savedRingtoneConverted' : AccountSavedRingtone . accountSavedRingtoneConverted ,
'attachMenuPeerTypeSameBotPM' : AttachMenuPeerType . attachMenuPeerTypeSameBotPM ,
'attachMenuPeerTypeBotPM' : AttachMenuPeerType . attachMenuPeerTypeBotPM ,
'attachMenuPeerTypePM' : AttachMenuPeerType . attachMenuPeerTypePM ,
'attachMenuPeerTypeChat' : AttachMenuPeerType . attachMenuPeerTypeChat ,
'attachMenuPeerTypeBroadcast' : AttachMenuPeerType . attachMenuPeerTypeBroadcast ,
'chatInvitePublicJoinRequests' : ExportedChatInvite . chatInvitePublicJoinRequests ,
'inputInvoiceMessage' : InputInvoice . inputInvoiceMessage ,
'inputInvoiceSlug' : InputInvoice . inputInvoiceSlug ,
'payments.exportedInvoice' : PaymentsExportedInvoice . paymentsExportedInvoice ,
'updateTranscribedAudio' : Update . updateTranscribedAudio ,
'messages.transcribedAudio' : MessagesTranscribedAudio . messagesTranscribedAudio ,
'dialogFilterDefault' : DialogFilter . dialogFilterDefault ,
'help.premiumPromo' : HelpPremiumPromo . helpPremiumPromo ,
'messageEntityEmoji' : MessageEntity . messageEntityEmoji ,
'messageEntityHighlight' : MessageEntity . messageEntityHighlight ,
'messageEntityLinebreak' : MessageEntity . messageEntityLinebreak ,
@ -11073,7 +11239,7 @@ export type UploadGetFile = {
@@ -11073,7 +11239,7 @@ export type UploadGetFile = {
precise? : boolean ,
cdn_supported? : boolean ,
location : InputFileLocation ,
offset : number ,
offset : string | number ,
limit : number
} ;
@ -11216,7 +11382,9 @@ export type AccountSetPrivacy = {
@@ -11216,7 +11382,9 @@ export type AccountSetPrivacy = {
} ;
export type AccountDeleteAccount = {
reason : string
flags? : number ,
reason : string ,
password? : InputCheckPasswordSRP
} ;
export type AccountGetAccountTTL = {
@ -11493,12 +11661,13 @@ export type MessagesSearchGlobal = {
@@ -11493,12 +11661,13 @@ export type MessagesSearchGlobal = {
export type MessagesReorderStickerSets = {
flags? : number ,
masks? : boolean ,
emojis? : boolean ,
order : Array < string | number >
} ;
export type MessagesGetDocumentByHash = {
sha256 : Uint8Array ,
size : number ,
size : string | number ,
mime_type : string
} ;
@ -11680,6 +11849,7 @@ export type MessagesClearRecentStickers = {
@@ -11680,6 +11849,7 @@ export type MessagesClearRecentStickers = {
export type MessagesGetArchivedStickers = {
flags? : number ,
masks? : boolean ,
emojis? : boolean ,
offset_id : string | number ,
limit : number
} ;
@ -11797,8 +11967,7 @@ export type UploadGetWebFile = {
@@ -11797,8 +11967,7 @@ export type UploadGetWebFile = {
export type PaymentsGetPaymentForm = {
flags? : number ,
peer : InputPeer ,
msg_id : number ,
invoice : InputInvoice ,
theme_params? : DataJSON
} ;
@ -11810,16 +11979,14 @@ export type PaymentsGetPaymentReceipt = {
@@ -11810,16 +11979,14 @@ export type PaymentsGetPaymentReceipt = {
export type PaymentsValidateRequestedInfo = {
flags? : number ,
save? : boolean ,
peer : InputPeer ,
msg_id : number ,
invoice : InputInvoice ,
info : PaymentRequestedInfo
} ;
export type PaymentsSendPaymentForm = {
flags? : number ,
form_id : string | number ,
peer : InputPeer ,
msg_id : number ,
invoice : InputInvoice ,
requested_info_id? : string ,
shipping_option_id? : string ,
credentials : InputPaymentCredentials ,
@ -11941,7 +12108,7 @@ export type PhoneSaveCallDebug = {
@@ -11941,7 +12108,7 @@ export type PhoneSaveCallDebug = {
export type UploadGetCdnFile = {
file_token : Uint8Array ,
offset : number ,
offset : string | number ,
limit : number
} ;
@ -11994,7 +12161,7 @@ export type ChannelsGetAdminLog = {
@@ -11994,7 +12161,7 @@ export type ChannelsGetAdminLog = {
export type UploadGetCdnFileHashes = {
file_token : Uint8Array ,
offset : number
offset : string | number
} ;
export type MessagesSendScreenshotNotification = {
@ -12100,7 +12267,7 @@ export type MessagesSearchStickerSets = {
@@ -12100,7 +12267,7 @@ export type MessagesSearchStickerSets = {
export type UploadGetFileHashes = {
location : InputFileLocation ,
offset : number
offset : string | number
} ;
export type HelpGetTermsOfServiceUpdate = {
@ -12187,7 +12354,7 @@ export type AccountInitTakeoutSession = {
@@ -12187,7 +12354,7 @@ export type AccountInitTakeoutSession = {
message_megagroups? : boolean ,
message_channels? : boolean ,
files? : boolean ,
file_max_size? : number
file_max_size? : string | number
} ;
export type AccountFinishTakeoutSession = {
@ -13136,7 +13303,8 @@ export type MessagesRequestWebView = {
@@ -13136,7 +13303,8 @@ export type MessagesRequestWebView = {
url? : string ,
start_param? : string ,
theme_params? : DataJSON ,
reply_to_msg_id? : number
reply_to_msg_id? : number ,
send_as? : InputPeer
} ;
export type MessagesProlongWebView = {
@ -13145,7 +13313,8 @@ export type MessagesProlongWebView = {
@@ -13145,7 +13313,8 @@ export type MessagesProlongWebView = {
peer : InputPeer ,
bot : InputUser ,
query_id : string | number ,
reply_to_msg_id? : number
reply_to_msg_id? : number ,
send_as? : InputPeer
} ;
export type MessagesRequestSimpleWebView = {
@ -13199,6 +13368,61 @@ export type BotsSetBotGroupDefaultAdminRights = {
@@ -13199,6 +13368,61 @@ export type BotsSetBotGroupDefaultAdminRights = {
admin_rights : ChatAdminRights
} ;
export type PhoneSaveCallLog = {
peer : InputPhoneCall ,
file : InputFile
} ;
export type ChannelsToggleJoinToSend = {
channel : InputChannel ,
enabled : boolean
} ;
export type ChannelsToggleJoinRequest = {
channel : InputChannel ,
enabled : boolean
} ;
export type PaymentsExportInvoice = {
invoice_media : InputMedia
} ;
export type MessagesTranscribeAudio = {
peer : InputPeer ,
msg_id : number
} ;
export type MessagesRateTranscribedAudio = {
peer : InputPeer ,
msg_id : number ,
transcription_id : string | number ,
good : boolean
} ;
export type PaymentsAssignAppStoreTransaction = {
flags? : number ,
restore? : boolean ,
receipt : Uint8Array
} ;
export type PaymentsAssignPlayMarketTransaction = {
purchase_token : string
} ;
export type PaymentsCanPurchasePremium = {
} ;
export type HelpGetPremiumPromo = {
} ;
export type PaymentsRequestRecurringPayment = {
user_id : InputUser ,
recurring_init_charge : string ,
invoice_media : InputMedia
} ;
export interface MethodDeclMap {
'invokeAfterMsg' : { req : InvokeAfterMsg , res : any } ,
'invokeAfterMsgs' : { req : InvokeAfterMsgs , res : any } ,
@ -13634,5 +13858,16 @@ export interface MethodDeclMap {
@@ -13634,5 +13858,16 @@ export interface MethodDeclMap {
'account.uploadRingtone' : { req : AccountUploadRingtone , res : Document } ,
'bots.setBotBroadcastDefaultAdminRights' : { req : BotsSetBotBroadcastDefaultAdminRights , res : boolean } ,
'bots.setBotGroupDefaultAdminRights' : { req : BotsSetBotGroupDefaultAdminRights , res : boolean } ,
'phone.saveCallLog' : { req : PhoneSaveCallLog , res : boolean } ,
'channels.toggleJoinToSend' : { req : ChannelsToggleJoinToSend , res : Updates } ,
'channels.toggleJoinRequest' : { req : ChannelsToggleJoinRequest , res : Updates } ,
'payments.exportInvoice' : { req : PaymentsExportInvoice , res : PaymentsExportedInvoice } ,
'messages.transcribeAudio' : { req : MessagesTranscribeAudio , res : MessagesTranscribedAudio } ,
'messages.rateTranscribedAudio' : { req : MessagesRateTranscribedAudio , res : boolean } ,
'payments.assignAppStoreTransaction' : { req : PaymentsAssignAppStoreTransaction , res : Updates } ,
'payments.assignPlayMarketTransaction' : { req : PaymentsAssignPlayMarketTransaction , res : Updates } ,
'payments.canPurchasePremium' : { req : PaymentsCanPurchasePremium , res : boolean } ,
'help.getPremiumPromo' : { req : HelpGetPremiumPromo , res : HelpPremiumPromo } ,
'payments.requestRecurringPayment' : { req : PaymentsRequestRecurringPayment , res : Updates } ,
}