software:flags.3?string = messages.StickerSet;
diff --git a/telegram/const.go b/telegram/const.go
index 1539b9b1..47087d53 100644
--- a/telegram/const.go
+++ b/telegram/const.go
@@ -7,7 +7,7 @@ import (
)
const (
- ApiVersion = 194
+ ApiVersion = 195
Version = "v1.4.7"
LogDebug = utils.DebugLevel
diff --git a/telegram/init_gen.go b/telegram/init_gen.go
index a719400b..0d4996ad 100755
--- a/telegram/init_gen.go
+++ b/telegram/init_gen.go
@@ -5,7 +5,7 @@ package telegram
import tl "github.com/amarnathcjd/gogram/internal/encoding/tl"
func init() {
- tl.RegisterObjects(&AccountAcceptAuthorizationParams{}, &AccountAuthorizationForm{}, &AccountAuthorizations{}, &AccountAutoDownloadSettings{}, &AccountAutoSaveSettings{}, &AccountBusinessChatLinks{}, &AccountCancelPasswordEmailParams{}, &AccountChangeAuthorizationSettingsParams{}, &AccountChangePhoneParams{}, &AccountCheckUsernameParams{}, &AccountClearRecentEmojiStatusesParams{}, &AccountConfirmPasswordEmailParams{}, &AccountConfirmPhoneParams{}, &AccountConnectedBots{}, &AccountContentSettings{}, &AccountCreateBusinessChatLinkParams{}, &AccountCreateThemeParams{}, &AccountDaysTtl{}, &AccountDeclinePasswordResetParams{}, &AccountDeleteAccountParams{}, &AccountDeleteAutoSaveExceptionsParams{}, &AccountDeleteBusinessChatLinkParams{}, &AccountDeleteSecureValueParams{}, &AccountDisablePeerConnectedBotParams{}, &AccountEditBusinessChatLinkParams{}, &AccountEmailVerifiedLogin{}, &AccountEmailVerifiedObj{}, &AccountEmojiStatusesNotModified{}, &AccountEmojiStatusesObj{}, &AccountFinishTakeoutSessionParams{}, &AccountGetAccountTtlParams{}, &AccountGetAllSecureValuesParams{}, &AccountGetAuthorizationFormParams{}, &AccountGetAuthorizationsParams{}, &AccountGetAutoDownloadSettingsParams{}, &AccountGetAutoSaveSettingsParams{}, &AccountGetBotBusinessConnectionParams{}, &AccountGetBusinessChatLinksParams{}, &AccountGetChannelDefaultEmojiStatusesParams{}, &AccountGetChannelRestrictedStatusEmojisParams{}, &AccountGetChatThemesParams{}, &AccountGetConnectedBotsParams{}, &AccountGetContactSignUpNotificationParams{}, &AccountGetContentSettingsParams{}, &AccountGetDefaultBackgroundEmojisParams{}, &AccountGetDefaultEmojiStatusesParams{}, &AccountGetDefaultGroupPhotoEmojisParams{}, &AccountGetDefaultProfilePhotoEmojisParams{}, &AccountGetGlobalPrivacySettingsParams{}, &AccountGetMultiWallPapersParams{}, &AccountGetNotifyExceptionsParams{}, &AccountGetNotifySettingsParams{}, &AccountGetPasswordParams{}, &AccountGetPasswordSettingsParams{}, &AccountGetPrivacyParams{}, &AccountGetReactionsNotifySettingsParams{}, &AccountGetRecentEmojiStatusesParams{}, &AccountGetSavedRingtonesParams{}, &AccountGetSecureValueParams{}, &AccountGetThemeParams{}, &AccountGetThemesParams{}, &AccountGetTmpPasswordParams{}, &AccountGetWallPaperParams{}, &AccountGetWallPapersParams{}, &AccountGetWebAuthorizationsParams{}, &AccountInitTakeoutSessionParams{}, &AccountInstallThemeParams{}, &AccountInstallWallPaperParams{}, &AccountInvalidateSignInCodesParams{}, &AccountPassword{}, &AccountPasswordInputSettings{}, &AccountPasswordSettings{}, &AccountPrivacyRules{}, &AccountRegisterDeviceParams{}, &AccountReorderUsernamesParams{}, &AccountReportPeerParams{}, &AccountReportProfilePhotoParams{}, &AccountResendPasswordEmailParams{}, &AccountResetAuthorizationParams{}, &AccountResetNotifySettingsParams{}, &AccountResetPasswordFailedWait{}, &AccountResetPasswordOk{}, &AccountResetPasswordParams{}, &AccountResetPasswordRequestedWait{}, &AccountResetWallPapersParams{}, &AccountResetWebAuthorizationParams{}, &AccountResetWebAuthorizationsParams{}, &AccountResolveBusinessChatLinkParams{}, &AccountResolvedBusinessChatLinks{}, &AccountSaveAutoDownloadSettingsParams{}, &AccountSaveAutoSaveSettingsParams{}, &AccountSaveRingtoneParams{}, &AccountSaveSecureValueParams{}, &AccountSaveThemeParams{}, &AccountSaveWallPaperParams{}, &AccountSavedRingtoneConverted{}, &AccountSavedRingtoneObj{}, &AccountSavedRingtonesNotModified{}, &AccountSavedRingtonesObj{}, &AccountSendChangePhoneCodeParams{}, &AccountSendConfirmPhoneCodeParams{}, &AccountSendVerifyEmailCodeParams{}, &AccountSendVerifyPhoneCodeParams{}, &AccountSentEmailCode{}, &AccountSetAccountTtlParams{}, &AccountSetAuthorizationTtlParams{}, &AccountSetContactSignUpNotificationParams{}, &AccountSetContentSettingsParams{}, &AccountSetGlobalPrivacySettingsParams{}, &AccountSetPrivacyParams{}, &AccountSetReactionsNotifySettingsParams{}, &AccountTakeout{}, &AccountThemesNotModified{}, &AccountThemesObj{}, &AccountTmpPassword{}, &AccountToggleConnectedBotPausedParams{}, &AccountToggleSponsoredMessagesParams{}, &AccountToggleUsernameParams{}, &AccountUnregisterDeviceParams{}, &AccountUpdateBirthdayParams{}, &AccountUpdateBusinessAwayMessageParams{}, &AccountUpdateBusinessGreetingMessageParams{}, &AccountUpdateBusinessIntroParams{}, &AccountUpdateBusinessLocationParams{}, &AccountUpdateBusinessWorkHoursParams{}, &AccountUpdateColorParams{}, &AccountUpdateConnectedBotParams{}, &AccountUpdateDeviceLockedParams{}, &AccountUpdateEmojiStatusParams{}, &AccountUpdateNotifySettingsParams{}, &AccountUpdatePasswordSettingsParams{}, &AccountUpdatePersonalChannelParams{}, &AccountUpdateProfileParams{}, &AccountUpdateStatusParams{}, &AccountUpdateThemeParams{}, &AccountUpdateUsernameParams{}, &AccountUploadRingtoneParams{}, &AccountUploadThemeParams{}, &AccountUploadWallPaperParams{}, &AccountVerifyEmailParams{}, &AccountVerifyPhoneParams{}, &AccountWallPapersNotModified{}, &AccountWallPapersObj{}, &AccountWebAuthorizations{}, &AppWebViewResultURL{}, &AttachMenuBot{}, &AttachMenuBotIcon{}, &AttachMenuBotIconColor{}, &AttachMenuBotsBot{}, &AttachMenuBotsNotModified{}, &AttachMenuBotsObj{}, &AuthAcceptLoginTokenParams{}, &AuthAuthorizationObj{}, &AuthAuthorizationSignUpRequired{}, &AuthBindTempAuthKeyParams{}, &AuthCancelCodeParams{}, &AuthCheckPasswordParams{}, &AuthCheckRecoveryPasswordParams{}, &AuthDropTempAuthKeysParams{}, &AuthExportAuthorizationParams{}, &AuthExportLoginTokenParams{}, &AuthExportedAuthorization{}, &AuthImportAuthorizationParams{}, &AuthImportBotAuthorizationParams{}, &AuthImportLoginTokenParams{}, &AuthImportWebTokenAuthorizationParams{}, &AuthLogOutParams{}, &AuthLoggedOut{}, &AuthLoginTokenMigrateTo{}, &AuthLoginTokenObj{}, &AuthLoginTokenSuccess{}, &AuthPasswordRecovery{}, &AuthRecoverPasswordParams{}, &AuthReportMissingCodeParams{}, &AuthRequestFirebaseSmsParams{}, &AuthRequestPasswordRecoveryParams{}, &AuthResendCodeParams{}, &AuthResetAuthorizationsParams{}, &AuthResetLoginEmailParams{}, &AuthSendCodeParams{}, &AuthSentCodeObj{}, &AuthSentCodeSuccess{}, &AuthSentCodeTypeApp{}, &AuthSentCodeTypeCall{}, &AuthSentCodeTypeEmailCode{}, &AuthSentCodeTypeFirebaseSms{}, &AuthSentCodeTypeFlashCall{}, &AuthSentCodeTypeFragmentSms{}, &AuthSentCodeTypeMissedCall{}, &AuthSentCodeTypeSetUpEmailRequired{}, &AuthSentCodeTypeSms{}, &AuthSentCodeTypeSmsPhrase{}, &AuthSentCodeTypeSmsWord{}, &AuthSignInParams{}, &AuthSignUpParams{}, &Authorization{}, &AutoDownloadSettings{}, &AutoSaveException{}, &AutoSaveSettings{}, &AvailableEffect{}, &AvailableReaction{}, &BankCardOpenURL{}, &Birthday{}, &Boost{}, &BotAppNotModified{}, &BotAppObj{}, &BotAppSettings{}, &BotBusinessConnection{}, &BotCommand{}, &BotCommandScopeChatAdmins{}, &BotCommandScopeChats{}, &BotCommandScopeDefault{}, &BotCommandScopePeer{}, &BotCommandScopePeerAdmins{}, &BotCommandScopePeerUser{}, &BotCommandScopeUsers{}, &BotInfo{}, &BotInlineMediaResult{}, &BotInlineMessageMediaAuto{}, &BotInlineMessageMediaContact{}, &BotInlineMessageMediaGeo{}, &BotInlineMessageMediaInvoice{}, &BotInlineMessageMediaVenue{}, &BotInlineMessageMediaWebPage{}, &BotInlineMessageText{}, &BotInlineResultObj{}, &BotMenuButtonCommands{}, &BotMenuButtonDefault{}, &BotMenuButtonObj{}, &BotPreviewMedia{}, &BotsAddPreviewMediaParams{}, &BotsAllowSendMessageParams{}, &BotsAnswerWebhookJsonQueryParams{}, &BotsBotInfo{}, &BotsCanSendMessageParams{}, &BotsCheckDownloadFileParamsParams{}, &BotsDeletePreviewMediaParams{}, &BotsEditPreviewMediaParams{}, &BotsGetBotCommandsParams{}, &BotsGetBotInfoParams{}, &BotsGetBotMenuButtonParams{}, &BotsGetPopularAppBotsParams{}, &BotsGetPreviewInfoParams{}, &BotsGetPreviewMediasParams{}, &BotsInvokeWebViewCustomMethodParams{}, &BotsPopularAppBots{}, &BotsPreviewInfo{}, &BotsReorderPreviewMediasParams{}, &BotsReorderUsernamesParams{}, &BotsResetBotCommandsParams{}, &BotsSendCustomRequestParams{}, &BotsSetBotBroadcastDefaultAdminRightsParams{}, &BotsSetBotCommandsParams{}, &BotsSetBotGroupDefaultAdminRightsParams{}, &BotsSetBotInfoParams{}, &BotsSetBotMenuButtonParams{}, &BotsToggleUserEmojiStatusPermissionParams{}, &BotsToggleUsernameParams{}, &BotsUpdateUserEmojiStatusParams{}, &BroadcastRevenueBalances{}, &BroadcastRevenueTransactionProceeds{}, &BroadcastRevenueTransactionRefund{}, &BroadcastRevenueTransactionWithdrawal{}, &BusinessAwayMessage{}, &BusinessAwayMessageScheduleAlways{}, &BusinessAwayMessageScheduleCustom{}, &BusinessAwayMessageScheduleOutsideWorkHours{}, &BusinessBotRecipients{}, &BusinessChatLink{}, &BusinessGreetingMessage{}, &BusinessIntro{}, &BusinessLocation{}, &BusinessRecipients{}, &BusinessWeeklyOpen{}, &BusinessWorkHours{}, &CdnConfig{}, &CdnPublicKey{}, &Channel{}, &ChannelAdminLogEvent{}, &ChannelAdminLogEventActionChangeAbout{}, &ChannelAdminLogEventActionChangeAvailableReactions{}, &ChannelAdminLogEventActionChangeBackgroundEmoji{}, &ChannelAdminLogEventActionChangeColor{}, &ChannelAdminLogEventActionChangeEmojiStatus{}, &ChannelAdminLogEventActionChangeEmojiStickerSet{}, &ChannelAdminLogEventActionChangeHistoryTtl{}, &ChannelAdminLogEventActionChangeLinkedChat{}, &ChannelAdminLogEventActionChangeLocation{}, &ChannelAdminLogEventActionChangePeerColor{}, &ChannelAdminLogEventActionChangePhoto{}, &ChannelAdminLogEventActionChangeProfilePeerColor{}, &ChannelAdminLogEventActionChangeStickerSet{}, &ChannelAdminLogEventActionChangeTheme{}, &ChannelAdminLogEventActionChangeTitle{}, &ChannelAdminLogEventActionChangeUsername{}, &ChannelAdminLogEventActionChangeUsernames{}, &ChannelAdminLogEventActionChangeWallpaper{}, &ChannelAdminLogEventActionCreateTopic{}, &ChannelAdminLogEventActionDefaultBannedRights{}, &ChannelAdminLogEventActionDeleteMessage{}, &ChannelAdminLogEventActionDeleteTopic{}, &ChannelAdminLogEventActionDiscardGroupCall{}, &ChannelAdminLogEventActionEditMessage{}, &ChannelAdminLogEventActionEditTopic{}, &ChannelAdminLogEventActionExportedInviteDelete{}, &ChannelAdminLogEventActionExportedInviteEdit{}, &ChannelAdminLogEventActionExportedInviteRevoke{}, &ChannelAdminLogEventActionParticipantInvite{}, &ChannelAdminLogEventActionParticipantJoin{}, &ChannelAdminLogEventActionParticipantJoinByInvite{}, &ChannelAdminLogEventActionParticipantJoinByRequest{}, &ChannelAdminLogEventActionParticipantLeave{}, &ChannelAdminLogEventActionParticipantMute{}, &ChannelAdminLogEventActionParticipantSubExtend{}, &ChannelAdminLogEventActionParticipantToggleAdmin{}, &ChannelAdminLogEventActionParticipantToggleBan{}, &ChannelAdminLogEventActionParticipantUnmute{}, &ChannelAdminLogEventActionParticipantVolume{}, &ChannelAdminLogEventActionPinTopic{}, &ChannelAdminLogEventActionSendMessage{}, &ChannelAdminLogEventActionStartGroupCall{}, &ChannelAdminLogEventActionStopPoll{}, &ChannelAdminLogEventActionToggleAntiSpam{}, &ChannelAdminLogEventActionToggleForum{}, &ChannelAdminLogEventActionToggleGroupCallSetting{}, &ChannelAdminLogEventActionToggleInvites{}, &ChannelAdminLogEventActionToggleNoForwards{}, &ChannelAdminLogEventActionTogglePreHistoryHidden{}, &ChannelAdminLogEventActionToggleSignatureProfiles{}, &ChannelAdminLogEventActionToggleSignatures{}, &ChannelAdminLogEventActionToggleSlowMode{}, &ChannelAdminLogEventActionUpdatePinned{}, &ChannelAdminLogEventsFilter{}, &ChannelForbidden{}, &ChannelFull{}, &ChannelLocationEmpty{}, &ChannelLocationObj{}, &ChannelMessagesFilterEmpty{}, &ChannelMessagesFilterObj{}, &ChannelParticipantAdmin{}, &ChannelParticipantBanned{}, &ChannelParticipantCreator{}, &ChannelParticipantLeft{}, &ChannelParticipantObj{}, &ChannelParticipantSelf{}, &ChannelParticipantsAdmins{}, &ChannelParticipantsBanned{}, &ChannelParticipantsBots{}, &ChannelParticipantsContacts{}, &ChannelParticipantsKicked{}, &ChannelParticipantsMentions{}, &ChannelParticipantsRecent{}, &ChannelParticipantsSearch{}, &ChannelsAdminLogResults{}, &ChannelsChannelParticipant{}, &ChannelsChannelParticipantsNotModified{}, &ChannelsChannelParticipantsObj{}, &ChannelsCheckUsernameParams{}, &ChannelsConvertToGigagroupParams{}, &ChannelsCreateChannelParams{}, &ChannelsCreateForumTopicParams{}, &ChannelsDeactivateAllUsernamesParams{}, &ChannelsDeleteChannelParams{}, &ChannelsDeleteHistoryParams{}, &ChannelsDeleteMessagesParams{}, &ChannelsDeleteParticipantHistoryParams{}, &ChannelsDeleteTopicHistoryParams{}, &ChannelsEditAdminParams{}, &ChannelsEditBannedParams{}, &ChannelsEditCreatorParams{}, &ChannelsEditForumTopicParams{}, &ChannelsEditLocationParams{}, &ChannelsEditPhotoParams{}, &ChannelsEditTitleParams{}, &ChannelsExportMessageLinkParams{}, &ChannelsGetAdminLogParams{}, &ChannelsGetAdminedPublicChannelsParams{}, &ChannelsGetChannelRecommendationsParams{}, &ChannelsGetChannelsParams{}, &ChannelsGetForumTopicsByIDParams{}, &ChannelsGetForumTopicsParams{}, &ChannelsGetFullChannelParams{}, &ChannelsGetGroupsForDiscussionParams{}, &ChannelsGetInactiveChannelsParams{}, &ChannelsGetLeftChannelsParams{}, &ChannelsGetMessagesParams{}, &ChannelsGetParticipantParams{}, &ChannelsGetParticipantsParams{}, &ChannelsGetSendAsParams{}, &ChannelsInviteToChannelParams{}, &ChannelsJoinChannelParams{}, &ChannelsLeaveChannelParams{}, &ChannelsReadHistoryParams{}, &ChannelsReadMessageContentsParams{}, &ChannelsReorderPinnedForumTopicsParams{}, &ChannelsReorderUsernamesParams{}, &ChannelsReportAntiSpamFalsePositiveParams{}, &ChannelsReportSpamParams{}, &ChannelsRestrictSponsoredMessagesParams{}, &ChannelsSearchPostsParams{}, &ChannelsSendAsPeers{}, &ChannelsSetBoostsToUnblockRestrictionsParams{}, &ChannelsSetDiscussionGroupParams{}, &ChannelsSetEmojiStickersParams{}, &ChannelsSetStickersParams{}, &ChannelsSponsoredMessageReportResultAdsHidden{}, &ChannelsSponsoredMessageReportResultChooseOption{}, &ChannelsSponsoredMessageReportResultReported{}, &ChannelsToggleAntiSpamParams{}, &ChannelsToggleForumParams{}, &ChannelsToggleJoinRequestParams{}, &ChannelsToggleJoinToSendParams{}, &ChannelsToggleParticipantsHiddenParams{}, &ChannelsTogglePreHistoryHiddenParams{}, &ChannelsToggleSignaturesParams{}, &ChannelsToggleSlowModeParams{}, &ChannelsToggleUsernameParams{}, &ChannelsToggleViewForumAsMessagesParams{}, &ChannelsUpdateColorParams{}, &ChannelsUpdateEmojiStatusParams{}, &ChannelsUpdatePinnedForumTopicParams{}, &ChannelsUpdateUsernameParams{}, &ChatAdminRights{}, &ChatAdminWithInvites{}, &ChatBannedRights{}, &ChatChannelParticipant{}, &ChatEmpty{}, &ChatForbidden{}, &ChatFullObj{}, &ChatInviteAlready{}, &ChatInviteExported{}, &ChatInviteImporter{}, &ChatInviteObj{}, &ChatInvitePeek{}, &ChatInvitePublicJoinRequests{}, &ChatObj{}, &ChatOnlines{}, &ChatParticipantAdmin{}, &ChatParticipantCreator{}, &ChatParticipantObj{}, &ChatParticipantsForbidden{}, &ChatParticipantsObj{}, &ChatPhotoEmpty{}, &ChatPhotoObj{}, &ChatReactionsAll{}, &ChatReactionsNone{}, &ChatReactionsSome{}, &ChatlistsChatlistInviteAlready{}, &ChatlistsChatlistInviteObj{}, &ChatlistsChatlistUpdates{}, &ChatlistsCheckChatlistInviteParams{}, &ChatlistsDeleteExportedInviteParams{}, &ChatlistsEditExportedInviteParams{}, &ChatlistsExportChatlistInviteParams{}, &ChatlistsExportedChatlistInvite{}, &ChatlistsExportedInvites{}, &ChatlistsGetChatlistUpdatesParams{}, &ChatlistsGetExportedInvitesParams{}, &ChatlistsGetLeaveChatlistSuggestionsParams{}, &ChatlistsHideChatlistUpdatesParams{}, &ChatlistsJoinChatlistInviteParams{}, &ChatlistsJoinChatlistUpdatesParams{}, &ChatlistsLeaveChatlistParams{}, &CodeSettings{}, &Config{}, &ConnectedBot{}, &ConnectedBotStarRef{}, &ConnectedStarRefBots{}, &Contact{}, &ContactBirthday{}, &ContactStatus{}, &ContactsAcceptContactParams{}, &ContactsAddContactParams{}, &ContactsBlockFromRepliesParams{}, &ContactsBlockParams{}, &ContactsBlockedObj{}, &ContactsBlockedSlice{}, &ContactsContactBirthdays{}, &ContactsContactsNotModified{}, &ContactsContactsObj{}, &ContactsDeleteByPhonesParams{}, &ContactsDeleteContactsParams{}, &ContactsEditCloseFriendsParams{}, &ContactsExportCardParams{}, &ContactsExportContactTokenParams{}, &ContactsFound{}, &ContactsGetBirthdaysParams{}, &ContactsGetBlockedParams{}, &ContactsGetContactIDsParams{}, &ContactsGetContactsParams{}, &ContactsGetLocatedParams{}, &ContactsGetSavedParams{}, &ContactsGetStatusesParams{}, &ContactsGetTopPeersParams{}, &ContactsImportCardParams{}, &ContactsImportContactTokenParams{}, &ContactsImportContactsParams{}, &ContactsImportedContacts{}, &ContactsResetSavedParams{}, &ContactsResetTopPeerRatingParams{}, &ContactsResolvePhoneParams{}, &ContactsResolveUsernameParams{}, &ContactsResolvedPeer{}, &ContactsSearchParams{}, &ContactsSetBlockedParams{}, &ContactsToggleTopPeersParams{}, &ContactsTopPeersDisabled{}, &ContactsTopPeersNotModified{}, &ContactsTopPeersObj{}, &ContactsUnblockParams{}, &DataJson{}, &DcOption{}, &DefaultHistoryTtl{}, &DialogFilterChatlist{}, &DialogFilterDefault{}, &DialogFilterObj{}, &DialogFilterSuggested{}, &DialogFolder{}, &DialogObj{}, &DialogPeerFolder{}, &DialogPeerObj{}, &DocumentAttributeAnimated{}, &DocumentAttributeAudio{}, &DocumentAttributeCustomEmoji{}, &DocumentAttributeFilename{}, &DocumentAttributeHasStickers{}, &DocumentAttributeImageSize{}, &DocumentAttributeSticker{}, &DocumentAttributeVideo{}, &DocumentEmpty{}, &DocumentObj{}, &DraftMessageEmpty{}, &DraftMessageObj{}, &EmailVerificationApple{}, &EmailVerificationCode{}, &EmailVerificationGoogle{}, &EmailVerifyPurposeLoginChange{}, &EmailVerifyPurposeLoginSetup{}, &EmailVerifyPurposePassport{}, &EmojiGroupGreeting{}, &EmojiGroupObj{}, &EmojiGroupPremium{}, &EmojiKeywordDeleted{}, &EmojiKeywordObj{}, &EmojiKeywordsDifference{}, &EmojiLanguage{}, &EmojiListNotModified{}, &EmojiListObj{}, &EmojiStatusEmpty{}, &EmojiStatusObj{}, &EmojiStatusUntil{}, &EmojiURL{}, &EncryptedChatDiscarded{}, &EncryptedChatEmpty{}, &EncryptedChatObj{}, &EncryptedChatRequested{}, &EncryptedChatWaiting{}, &EncryptedFileEmpty{}, &EncryptedFileObj{}, &EncryptedMessageObj{}, &EncryptedMessageService{}, &Error{}, &ExportedChatlistInvite{}, &ExportedContactToken{}, &ExportedMessageLink{}, &ExportedStoryLink{}, &FactCheck{}, &FileHash{}, &FileLocationUnavailable{}, &Folder{}, &FolderPeer{}, &FoldersDeleteFolderParams{}, &FoldersEditPeerFoldersParams{}, &ForumTopicDeleted{}, &ForumTopicObj{}, &FoundStory{}, &FragmentCollectibleInfo{}, &FragmentGetCollectibleInfoParams{}, &Game{}, &GeoPointAddress{}, &GeoPointEmpty{}, &GeoPointObj{}, &GlobalPrivacySettings{}, &GroupCallDiscarded{}, &GroupCallObj{}, &GroupCallParticipant{}, &GroupCallParticipantVideo{}, &GroupCallParticipantVideoSourceGroup{}, &GroupCallStreamChannel{}, &HelpAcceptTermsOfServiceParams{}, &HelpAppConfigNotModified{}, &HelpAppConfigObj{}, &HelpAppUpdateObj{}, &HelpCountriesListNotModified{}, &HelpCountriesListObj{}, &HelpCountry{}, &HelpCountryCode{}, &HelpDeepLinkInfoEmpty{}, &HelpDeepLinkInfoObj{}, &HelpDismissSuggestionParams{}, &HelpEditUserInfoParams{}, &HelpGetAppChangelogParams{}, &HelpGetAppConfigParams{}, &HelpGetAppUpdateParams{}, &HelpGetCdnConfigParams{}, &HelpGetConfigParams{}, &HelpGetCountriesListParams{}, &HelpGetDeepLinkInfoParams{}, &HelpGetInviteTextParams{}, &HelpGetNearestDcParams{}, &HelpGetPassportConfigParams{}, &HelpGetPeerColorsParams{}, &HelpGetPeerProfileColorsParams{}, &HelpGetPremiumPromoParams{}, &HelpGetPromoDataParams{}, &HelpGetRecentMeUrlsParams{}, &HelpGetSupportNameParams{}, &HelpGetSupportParams{}, &HelpGetTermsOfServiceUpdateParams{}, &HelpGetTimezonesListParams{}, &HelpGetUserInfoParams{}, &HelpHidePromoDataParams{}, &HelpInviteText{}, &HelpNoAppUpdate{}, &HelpPassportConfigNotModified{}, &HelpPassportConfigObj{}, &HelpPeerColorOption{}, &HelpPeerColorProfileSet{}, &HelpPeerColorSetObj{}, &HelpPeerColorsNotModified{}, &HelpPeerColorsObj{}, &HelpPremiumPromo{}, &HelpPromoDataEmpty{}, &HelpPromoDataObj{}, &HelpRecentMeUrls{}, &HelpSaveAppLogParams{}, &HelpSetBotUpdatesStatusParams{}, &HelpSupport{}, &HelpSupportName{}, &HelpTermsOfService{}, &HelpTermsOfServiceUpdateEmpty{}, &HelpTermsOfServiceUpdateObj{}, &HelpTimezonesListNotModified{}, &HelpTimezonesListObj{}, &HelpUserInfoEmpty{}, &HelpUserInfoObj{}, &HighScore{}, &ImportedContact{}, &InlineBotSwitchPm{}, &InlineBotWebView{}, &InputAppEvent{}, &InputBotAppID{}, &InputBotAppShortName{}, &InputBotInlineMessageGame{}, &InputBotInlineMessageID64{}, &InputBotInlineMessageIDObj{}, &InputBotInlineMessageMediaAuto{}, &InputBotInlineMessageMediaContact{}, &InputBotInlineMessageMediaGeo{}, &InputBotInlineMessageMediaInvoice{}, &InputBotInlineMessageMediaVenue{}, &InputBotInlineMessageMediaWebPage{}, &InputBotInlineMessageText{}, &InputBotInlineResultDocument{}, &InputBotInlineResultGame{}, &InputBotInlineResultObj{}, &InputBotInlineResultPhoto{}, &InputBusinessAwayMessage{}, &InputBusinessBotRecipients{}, &InputBusinessChatLink{}, &InputBusinessGreetingMessage{}, &InputBusinessIntro{}, &InputBusinessRecipients{}, &InputChannelEmpty{}, &InputChannelFromMessage{}, &InputChannelObj{}, &InputChatPhotoEmpty{}, &InputChatPhotoObj{}, &InputChatUploadedPhoto{}, &InputChatlistDialogFilter{}, &InputCheckPasswordEmpty{}, &InputCheckPasswordSRPObj{}, &InputClientProxy{}, &InputCollectiblePhone{}, &InputCollectibleUsername{}, &InputDialogPeerFolder{}, &InputDialogPeerObj{}, &InputDocumentEmpty{}, &InputDocumentFileLocation{}, &InputDocumentObj{}, &InputEncryptedChat{}, &InputEncryptedFileBigUploaded{}, &InputEncryptedFileEmpty{}, &InputEncryptedFileLocation{}, &InputEncryptedFileObj{}, &InputEncryptedFileUploaded{}, &InputFileBig{}, &InputFileLocationObj{}, &InputFileObj{}, &InputFileStoryDocument{}, &InputFolderPeer{}, &InputGameID{}, &InputGameShortName{}, &InputGeoPointEmpty{}, &InputGeoPointObj{}, &InputGroupCall{}, &InputGroupCallStream{}, &InputInvoiceChatInviteSubscription{}, &InputInvoiceMessage{}, &InputInvoicePremiumGiftCode{}, &InputInvoiceSlug{}, &InputInvoiceStarGift{}, &InputInvoiceStars{}, &InputKeyboardButtonRequestPeer{}, &InputKeyboardButtonURLAuth{}, &InputKeyboardButtonUserProfile{}, &InputMediaAreaChannelPost{}, &InputMediaAreaVenue{}, &InputMediaContact{}, &InputMediaDice{}, &InputMediaDocument{}, &InputMediaDocumentExternal{}, &InputMediaEmpty{}, &InputMediaGame{}, &InputMediaGeoLive{}, &InputMediaGeoPoint{}, &InputMediaInvoice{}, &InputMediaPaidMedia{}, &InputMediaPhoto{}, &InputMediaPhotoExternal{}, &InputMediaPoll{}, &InputMediaStory{}, &InputMediaUploadedDocument{}, &InputMediaUploadedPhoto{}, &InputMediaVenue{}, &InputMediaWebPage{}, &InputMessageCallbackQuery{}, &InputMessageEntityMentionName{}, &InputMessageID{}, &InputMessagePinned{}, &InputMessageReplyTo{}, &InputMessagesFilterChatPhotos{}, &InputMessagesFilterContacts{}, &InputMessagesFilterDocument{}, &InputMessagesFilterEmpty{}, &InputMessagesFilterGeo{}, &InputMessagesFilterGif{}, &InputMessagesFilterMusic{}, &InputMessagesFilterMyMentions{}, &InputMessagesFilterPhoneCalls{}, &InputMessagesFilterPhotoVideo{}, &InputMessagesFilterPhotoVideoDocuments{}, &InputMessagesFilterPhotos{}, &InputMessagesFilterPinned{}, &InputMessagesFilterRoundVideo{}, &InputMessagesFilterRoundVoice{}, &InputMessagesFilterURL{}, &InputMessagesFilterVideo{}, &InputMessagesFilterVoice{}, &InputNotifyBroadcasts{}, &InputNotifyChats{}, &InputNotifyForumTopic{}, &InputNotifyPeerObj{}, &InputNotifyUsers{}, &InputPaymentCredentialsApplePay{}, &InputPaymentCredentialsGooglePay{}, &InputPaymentCredentialsObj{}, &InputPaymentCredentialsSaved{}, &InputPeerChannel{}, &InputPeerChannelFromMessage{}, &InputPeerChat{}, &InputPeerEmpty{}, &InputPeerNotifySettings{}, &InputPeerPhotoFileLocation{}, &InputPeerSelf{}, &InputPeerUser{}, &InputPeerUserFromMessage{}, &InputPhoneCall{}, &InputPhoneContact{}, &InputPhotoEmpty{}, &InputPhotoFileLocation{}, &InputPhotoLegacyFileLocation{}, &InputPhotoObj{}, &InputPrivacyValueAllowAll{}, &InputPrivacyValueAllowBots{}, &InputPrivacyValueAllowChatParticipants{}, &InputPrivacyValueAllowCloseFriends{}, &InputPrivacyValueAllowContacts{}, &InputPrivacyValueAllowPremium{}, &InputPrivacyValueAllowUsers{}, &InputPrivacyValueDisallowAll{}, &InputPrivacyValueDisallowBots{}, &InputPrivacyValueDisallowChatParticipants{}, &InputPrivacyValueDisallowContacts{}, &InputPrivacyValueDisallowUsers{}, &InputQuickReplyShortcutID{}, &InputQuickReplyShortcutObj{}, &InputReplyToMessage{}, &InputReplyToStory{}, &InputSecureFileLocation{}, &InputSecureFileObj{}, &InputSecureFileUploaded{}, &InputSecureValue{}, &InputSingleMedia{}, &InputStarsTransaction{}, &InputStickerSetAnimatedEmoji{}, &InputStickerSetAnimatedEmojiAnimations{}, &InputStickerSetDice{}, &InputStickerSetEmojiChannelDefaultStatuses{}, &InputStickerSetEmojiDefaultStatuses{}, &InputStickerSetEmojiDefaultTopicIcons{}, &InputStickerSetEmojiGenericAnimations{}, &InputStickerSetEmpty{}, &InputStickerSetID{}, &InputStickerSetItem{}, &InputStickerSetPremiumGifts{}, &InputStickerSetShortName{}, &InputStickerSetThumb{}, &InputStickeredMediaDocument{}, &InputStickeredMediaPhoto{}, &InputStorePaymentGiftPremium{}, &InputStorePaymentPremiumGiftCode{}, &InputStorePaymentPremiumGiveaway{}, &InputStorePaymentPremiumSubscription{}, &InputStorePaymentStarsGift{}, &InputStorePaymentStarsGiveaway{}, &InputStorePaymentStarsTopup{}, &InputTakeoutFileLocation{}, &InputThemeObj{}, &InputThemeSettings{}, &InputThemeSlug{}, &InputUserEmpty{}, &InputUserFromMessage{}, &InputUserObj{}, &InputUserSelf{}, &InputWallPaperNoFile{}, &InputWallPaperObj{}, &InputWallPaperSlug{}, &InputWebDocument{}, &InputWebFileAudioAlbumThumbLocation{}, &InputWebFileGeoPointLocation{}, &InputWebFileLocationObj{}, &Invoice{}, &JsonArray{}, &JsonBool{}, &JsonNull{}, &JsonNumber{}, &JsonObject{}, &JsonObjectValue{}, &JsonString{}, &KeyboardButtonBuy{}, &KeyboardButtonCallback{}, &KeyboardButtonCopy{}, &KeyboardButtonGame{}, &KeyboardButtonObj{}, &KeyboardButtonRequestGeoLocation{}, &KeyboardButtonRequestPeer{}, &KeyboardButtonRequestPhone{}, &KeyboardButtonRequestPoll{}, &KeyboardButtonRow{}, &KeyboardButtonSimpleWebView{}, &KeyboardButtonSwitchInline{}, &KeyboardButtonURL{}, &KeyboardButtonURLAuth{}, &KeyboardButtonUserProfile{}, &KeyboardButtonWebView{}, &LabeledPrice{}, &LangPackDifference{}, &LangPackLanguage{}, &LangPackStringDeleted{}, &LangPackStringObj{}, &LangPackStringPluralized{}, &LangpackGetDifferenceParams{}, &LangpackGetLangPackParams{}, &LangpackGetLanguageParams{}, &LangpackGetLanguagesParams{}, &LangpackGetStringsParams{}, &MaskCoords{}, &MediaAreaChannelPost{}, &MediaAreaCoordinates{}, &MediaAreaGeoPoint{}, &MediaAreaSuggestedReaction{}, &MediaAreaURL{}, &MediaAreaVenue{}, &MediaAreaWeather{}, &MessageActionAttachMenuBotAllowed{}, &MessageActionBoostApply{}, &MessageActionBotAllowed{}, &MessageActionChannelCreate{}, &MessageActionChannelMigrateFrom{}, &MessageActionChatAddUser{}, &MessageActionChatCreate{}, &MessageActionChatDeletePhoto{}, &MessageActionChatDeleteUser{}, &MessageActionChatEditPhoto{}, &MessageActionChatEditTitle{}, &MessageActionChatJoinedByLink{}, &MessageActionChatJoinedByRequest{}, &MessageActionChatMigrateTo{}, &MessageActionContactSignUp{}, &MessageActionCreatedBroadcastList{}, &MessageActionCustomAction{}, &MessageActionEmpty{}, &MessageActionGameScore{}, &MessageActionGeoProximityReached{}, &MessageActionGiftCode{}, &MessageActionGiftPremium{}, &MessageActionGiftStars{}, &MessageActionGiveawayLaunch{}, &MessageActionGiveawayResults{}, &MessageActionGroupCall{}, &MessageActionGroupCallScheduled{}, &MessageActionHistoryClear{}, &MessageActionInviteToGroupCall{}, &MessageActionLoginUnknownLocation{}, &MessageActionPaymentRefunded{}, &MessageActionPaymentSent{}, &MessageActionPaymentSentMe{}, &MessageActionPhoneCall{}, &MessageActionPhoneNumberRequest{}, &MessageActionPinMessage{}, &MessageActionPrizeStars{}, &MessageActionRequestedPeer{}, &MessageActionRequestedPeerSentMe{}, &MessageActionScreenshotTaken{}, &MessageActionSecureValuesSent{}, &MessageActionSecureValuesSentMe{}, &MessageActionSetChatTheme{}, &MessageActionSetChatWallPaper{}, &MessageActionSetMessagesTtl{}, &MessageActionSetSameChatWallPaper{}, &MessageActionStarGift{}, &MessageActionSuggestProfilePhoto{}, &MessageActionTopicCreate{}, &MessageActionTopicEdit{}, &MessageActionTtlChange{}, &MessageActionUserJoined{}, &MessageActionUserUpdatedPhoto{}, &MessageActionWebViewDataSent{}, &MessageActionWebViewDataSentMe{}, &MessageEmpty{}, &MessageEntityBankCard{}, &MessageEntityBlockquote{}, &MessageEntityBold{}, &MessageEntityBotCommand{}, &MessageEntityCashtag{}, &MessageEntityCode{}, &MessageEntityCustomEmoji{}, &MessageEntityEmail{}, &MessageEntityHashtag{}, &MessageEntityItalic{}, &MessageEntityMention{}, &MessageEntityMentionName{}, &MessageEntityPhone{}, &MessageEntityPre{}, &MessageEntitySpoiler{}, &MessageEntityStrike{}, &MessageEntityTextURL{}, &MessageEntityURL{}, &MessageEntityUnderline{}, &MessageEntityUnknown{}, &MessageExtendedMediaObj{}, &MessageExtendedMediaPreview{}, &MessageFwdHeader{}, &MessageMediaContact{}, &MessageMediaDice{}, &MessageMediaDocument{}, &MessageMediaEmpty{}, &MessageMediaGame{}, &MessageMediaGeo{}, &MessageMediaGeoLive{}, &MessageMediaGiveaway{}, &MessageMediaGiveawayResults{}, &MessageMediaInvoice{}, &MessageMediaPaidMedia{}, &MessageMediaPhoto{}, &MessageMediaPoll{}, &MessageMediaStory{}, &MessageMediaUnsupported{}, &MessageMediaVenue{}, &MessageMediaWebPage{}, &MessageObj{}, &MessagePeerReaction{}, &MessagePeerVoteInputOption{}, &MessagePeerVoteMultiple{}, &MessagePeerVoteObj{}, &MessageRange{}, &MessageReactions{}, &MessageReactor{}, &MessageReplies{}, &MessageReplyHeaderObj{}, &MessageReplyStoryHeader{}, &MessageReportOption{}, &MessageService{}, &MessageViews{}, &MessagesAcceptEncryptionParams{}, &MessagesAcceptURLAuthParams{}, &MessagesAddChatUserParams{}, &MessagesAffectedFoundMessages{}, &MessagesAffectedHistory{}, &MessagesAffectedMessages{}, &MessagesAllStickersNotModified{}, &MessagesAllStickersObj{}, &MessagesArchivedStickers{}, &MessagesAvailableEffectsNotModified{}, &MessagesAvailableEffectsObj{}, &MessagesAvailableReactionsNotModified{}, &MessagesAvailableReactionsObj{}, &MessagesBotApp{}, &MessagesBotCallbackAnswer{}, &MessagesBotPreparedInlineMessage{}, &MessagesBotResults{}, &MessagesChannelMessages{}, &MessagesChatAdminsWithInvites{}, &MessagesChatFull{}, &MessagesChatInviteImporters{}, &MessagesChatsObj{}, &MessagesChatsSlice{}, &MessagesCheckChatInviteParams{}, &MessagesCheckHistoryImportParams{}, &MessagesCheckHistoryImportPeerParams{}, &MessagesCheckQuickReplyShortcutParams{}, &MessagesCheckedHistoryImportPeer{}, &MessagesClearAllDraftsParams{}, &MessagesClearRecentReactionsParams{}, &MessagesClearRecentStickersParams{}, &MessagesClickSponsoredMessageParams{}, &MessagesConnectStarRefBotParams{}, &MessagesCreateChatParams{}, &MessagesDeleteChatParams{}, &MessagesDeleteChatUserParams{}, &MessagesDeleteExportedChatInviteParams{}, &MessagesDeleteFactCheckParams{}, &MessagesDeleteHistoryParams{}, &MessagesDeleteMessagesParams{}, &MessagesDeletePhoneCallHistoryParams{}, &MessagesDeleteQuickReplyMessagesParams{}, &MessagesDeleteQuickReplyShortcutParams{}, &MessagesDeleteRevokedExportedChatInvitesParams{}, &MessagesDeleteSavedHistoryParams{}, &MessagesDeleteScheduledMessagesParams{}, &MessagesDhConfigNotModified{}, &MessagesDhConfigObj{}, &MessagesDialogFilters{}, &MessagesDialogsNotModified{}, &MessagesDialogsObj{}, &MessagesDialogsSlice{}, &MessagesDiscardEncryptionParams{}, &MessagesDiscussionMessage{}, &MessagesEditChatAboutParams{}, &MessagesEditChatAdminParams{}, &MessagesEditChatDefaultBannedRightsParams{}, &MessagesEditChatPhotoParams{}, &MessagesEditChatTitleParams{}, &MessagesEditConnectedStarRefBotParams{}, &MessagesEditExportedChatInviteParams{}, &MessagesEditFactCheckParams{}, &MessagesEditInlineBotMessageParams{}, &MessagesEditMessageParams{}, &MessagesEditQuickReplyShortcutParams{}, &MessagesEmojiGroupsNotModified{}, &MessagesEmojiGroupsObj{}, &MessagesExportChatInviteParams{}, &MessagesExportedChatInviteObj{}, &MessagesExportedChatInviteReplaced{}, &MessagesExportedChatInvites{}, &MessagesFaveStickerParams{}, &MessagesFavedStickersNotModified{}, &MessagesFavedStickersObj{}, &MessagesFeaturedStickersNotModified{}, &MessagesFeaturedStickersObj{}, &MessagesForumTopics{}, &MessagesForwardMessageParams{}, &MessagesForwardMessagesParams{}, &MessagesFoundStickerSetsNotModified{}, &MessagesFoundStickerSetsObj{}, &MessagesFoundStickersNotModified{}, &MessagesFoundStickersObj{}, &MessagesGetAdminedBotsParams{}, &MessagesGetAdminsWithInvitesParams{}, &MessagesGetAllChatsParams{}, &MessagesGetAllDraftsParams{}, &MessagesGetAllStickersParams{}, &MessagesGetArchivedStickersParams{}, &MessagesGetAttachMenuBotParams{}, &MessagesGetAttachMenuBotsParams{}, &MessagesGetAttachedStickersParams{}, &MessagesGetAvailableEffectsParams{}, &MessagesGetAvailableReactionsParams{}, &MessagesGetBotAppParams{}, &MessagesGetBotCallbackAnswerParams{}, &MessagesGetChatInviteImportersParams{}, &MessagesGetChatsParams{}, &MessagesGetCommonChatsParams{}, &MessagesGetConnectedStarRefBotParams{}, &MessagesGetConnectedStarRefBotsParams{}, &MessagesGetCustomEmojiDocumentsParams{}, &MessagesGetDefaultHistoryTtlParams{}, &MessagesGetDefaultTagReactionsParams{}, &MessagesGetDhConfigParams{}, &MessagesGetDialogFiltersParams{}, &MessagesGetDialogUnreadMarksParams{}, &MessagesGetDialogsParams{}, &MessagesGetDiscussionMessageParams{}, &MessagesGetDocumentByHashParams{}, &MessagesGetEmojiGroupsParams{}, &MessagesGetEmojiKeywordsDifferenceParams{}, &MessagesGetEmojiKeywordsLanguagesParams{}, &MessagesGetEmojiKeywordsParams{}, &MessagesGetEmojiProfilePhotoGroupsParams{}, &MessagesGetEmojiStatusGroupsParams{}, &MessagesGetEmojiStickerGroupsParams{}, &MessagesGetEmojiStickersParams{}, &MessagesGetEmojiURLParams{}, &MessagesGetExportedChatInviteParams{}, &MessagesGetExportedChatInvitesParams{}, &MessagesGetExtendedMediaParams{}, &MessagesGetFactCheckParams{}, &MessagesGetFavedStickersParams{}, &MessagesGetFeaturedEmojiStickersParams{}, &MessagesGetFeaturedStickersParams{}, &MessagesGetFullChatParams{}, &MessagesGetGameHighScoresParams{}, &MessagesGetHistoryParams{}, &MessagesGetInlineBotResultsParams{}, &MessagesGetInlineGameHighScoresParams{}, &MessagesGetMaskStickersParams{}, &MessagesGetMessageEditDataParams{}, &MessagesGetMessageReactionsListParams{}, &MessagesGetMessageReadParticipantsParams{}, &MessagesGetMessagesParams{}, &MessagesGetMessagesReactionsParams{}, &MessagesGetMessagesViewsParams{}, &MessagesGetMyStickersParams{}, &MessagesGetOldFeaturedStickersParams{}, &MessagesGetOnlinesParams{}, &MessagesGetOutboxReadDateParams{}, &MessagesGetPaidReactionPrivacyParams{}, &MessagesGetPeerDialogsParams{}, &MessagesGetPeerSettingsParams{}, &MessagesGetPinnedDialogsParams{}, &MessagesGetPinnedSavedDialogsParams{}, &MessagesGetPollResultsParams{}, &MessagesGetPollVotesParams{}, &MessagesGetPreparedInlineMessageParams{}, &MessagesGetQuickRepliesParams{}, &MessagesGetQuickReplyMessagesParams{}, &MessagesGetRecentLocationsParams{}, &MessagesGetRecentReactionsParams{}, &MessagesGetRecentStickersParams{}, &MessagesGetRepliesParams{}, &MessagesGetSavedDialogsParams{}, &MessagesGetSavedGifsParams{}, &MessagesGetSavedHistoryParams{}, &MessagesGetSavedReactionTagsParams{}, &MessagesGetScheduledHistoryParams{}, &MessagesGetScheduledMessagesParams{}, &MessagesGetSearchCountersParams{}, &MessagesGetSearchResultsCalendarParams{}, &MessagesGetSearchResultsPositionsParams{}, &MessagesGetSplitRangesParams{}, &MessagesGetSponsoredMessagesParams{}, &MessagesGetStatsURLParams{}, &MessagesGetStickerSetParams{}, &MessagesGetStickersParams{}, &MessagesGetSuggestedDialogFiltersParams{}, &MessagesGetSuggestedStarRefBotsParams{}, &MessagesGetTopReactionsParams{}, &MessagesGetUnreadMentionsParams{}, &MessagesGetUnreadReactionsParams{}, &MessagesGetWebPageParams{}, &MessagesGetWebPagePreviewParams{}, &MessagesGetWebViewResultParams{}, &MessagesHideAllChatJoinRequestsParams{}, &MessagesHideChatJoinRequestParams{}, &MessagesHidePeerSettingsBarParams{}, &MessagesHighScores{}, &MessagesHistoryImport{}, &MessagesHistoryImportParsed{}, &MessagesImportChatInviteParams{}, &MessagesInactiveChats{}, &MessagesInitHistoryImportParams{}, &MessagesInstallStickerSetParams{}, &MessagesInvitedUsers{}, &MessagesMarkDialogUnreadParams{}, &MessagesMessageEditData{}, &MessagesMessageReactionsList{}, &MessagesMessageViews{}, &MessagesMessagesNotModified{}, &MessagesMessagesObj{}, &MessagesMessagesSlice{}, &MessagesMigrateChatParams{}, &MessagesMyStickers{}, &MessagesPeerDialogs{}, &MessagesPeerSettings{}, &MessagesPreparedInlineMessage{}, &MessagesProlongWebViewParams{}, &MessagesQuickRepliesNotModified{}, &MessagesQuickRepliesObj{}, &MessagesRateTranscribedAudioParams{}, &MessagesReactionsNotModified{}, &MessagesReactionsObj{}, &MessagesReadDiscussionParams{}, &MessagesReadEncryptedHistoryParams{}, &MessagesReadFeaturedStickersParams{}, &MessagesReadHistoryParams{}, &MessagesReadMentionsParams{}, &MessagesReadMessageContentsParams{}, &MessagesReadReactionsParams{}, &MessagesReceivedMessagesParams{}, &MessagesReceivedQueueParams{}, &MessagesRecentStickersNotModified{}, &MessagesRecentStickersObj{}, &MessagesReorderPinnedDialogsParams{}, &MessagesReorderPinnedSavedDialogsParams{}, &MessagesReorderQuickRepliesParams{}, &MessagesReorderStickerSetsParams{}, &MessagesReportEncryptedSpamParams{}, &MessagesReportParams{}, &MessagesReportReactionParams{}, &MessagesReportSpamParams{}, &MessagesReportSponsoredMessageParams{}, &MessagesRequestAppWebViewParams{}, &MessagesRequestEncryptionParams{}, &MessagesRequestMainWebViewParams{}, &MessagesRequestSimpleWebViewParams{}, &MessagesRequestURLAuthParams{}, &MessagesRequestWebViewParams{}, &MessagesSaveDefaultSendAsParams{}, &MessagesSaveDraftParams{}, &MessagesSaveGifParams{}, &MessagesSavePreparedInlineMessageParams{}, &MessagesSaveRecentStickerParams{}, &MessagesSavedDialogsNotModified{}, &MessagesSavedDialogsObj{}, &MessagesSavedDialogsSlice{}, &MessagesSavedGifsNotModified{}, &MessagesSavedGifsObj{}, &MessagesSavedReactionTagsNotModified{}, &MessagesSavedReactionTagsObj{}, &MessagesSearchCounter{}, &MessagesSearchCustomEmojiParams{}, &MessagesSearchEmojiStickerSetsParams{}, &MessagesSearchGlobalParams{}, &MessagesSearchParams{}, &MessagesSearchResultsCalendar{}, &MessagesSearchResultsPositions{}, &MessagesSearchSentMediaParams{}, &MessagesSearchStickerSetsParams{}, &MessagesSearchStickersParams{}, &MessagesSendBotRequestedPeerParams{}, &MessagesSendEncryptedFileParams{}, &MessagesSendEncryptedMultiMediaParams{}, &MessagesSendEncryptedParams{}, &MessagesSendEncryptedServiceParams{}, &MessagesSendInlineBotResultParams{}, &MessagesSendMediaParams{}, &MessagesSendMessageParams{}, &MessagesSendMultiMediaParams{}, &MessagesSendPaidReactionParams{}, &MessagesSendQuickReplyMessagesParams{}, &MessagesSendReactionParams{}, &MessagesSendScheduledMessagesParams{}, &MessagesSendScreenshotNotificationParams{}, &MessagesSendVoteParams{}, &MessagesSendWebViewDataParams{}, &MessagesSendWebViewResultMessageParams{}, &MessagesSentEncryptedFile{}, &MessagesSentEncryptedMessageObj{}, &MessagesSetBotCallbackAnswerParams{}, &MessagesSetBotPrecheckoutResultsParams{}, &MessagesSetBotShippingResultsParams{}, &MessagesSetChatAvailableReactionsParams{}, &MessagesSetChatThemeParams{}, &MessagesSetChatWallPaperParams{}, &MessagesSetDefaultHistoryTtlParams{}, &MessagesSetDefaultReactionParams{}, &MessagesSetEncryptedTypingParams{}, &MessagesSetGameScoreParams{}, &MessagesSetHistoryTtlParams{}, &MessagesSetInlineBotResultsParams{}, &MessagesSetInlineGameScoreParams{}, &MessagesSetTypingParams{}, &MessagesSetWebViewResultParams{}, &MessagesSponsoredMessagesEmpty{}, &MessagesSponsoredMessagesObj{}, &MessagesStartBotParams{}, &MessagesStartHistoryImportParams{}, &MessagesStickerSetInstallResultArchive{}, &MessagesStickerSetInstallResultSuccess{}, &MessagesStickerSetNotModified{}, &MessagesStickerSetObj{}, &MessagesStickersNotModified{}, &MessagesStickersObj{}, &MessagesToggleBotInAttachMenuParams{}, &MessagesToggleDialogFilterTagsParams{}, &MessagesToggleDialogPinParams{}, &MessagesToggleNoForwardsParams{}, &MessagesTogglePaidReactionPrivacyParams{}, &MessagesTogglePeerTranslationsParams{}, &MessagesToggleSavedDialogPinParams{}, &MessagesToggleStickerSetsParams{}, &MessagesTranscribeAudioParams{}, &MessagesTranscribedAudio{}, &MessagesTranslateResult{}, &MessagesTranslateTextParams{}, &MessagesUninstallStickerSetParams{}, &MessagesUnpinAllMessagesParams{}, &MessagesUpdateDialogFilterParams{}, &MessagesUpdateDialogFiltersOrderParams{}, &MessagesUpdatePinnedMessageParams{}, &MessagesUpdateSavedReactionTagParams{}, &MessagesUpdateStarRefProgramParams{}, &MessagesUploadEncryptedFileParams{}, &MessagesUploadImportedMediaParams{}, &MessagesUploadMediaParams{}, &MessagesViewSponsoredMessageParams{}, &MessagesVotesList{}, &MessagesWebPage{}, &MessagesWebViewResult{}, &MissingInvitee{}, &MyBoost{}, &NearestDc{}, &NotificationSoundDefault{}, &NotificationSoundLocal{}, &NotificationSoundNone{}, &NotificationSoundRingtone{}, &NotifyBroadcasts{}, &NotifyChats{}, &NotifyForumTopic{}, &NotifyPeerObj{}, &NotifyUsers{}, &OutboxReadDate{}, &Page{}, &PageBlockAnchor{}, &PageBlockAudio{}, &PageBlockAuthorDate{}, &PageBlockBlockquote{}, &PageBlockChannel{}, &PageBlockCollage{}, &PageBlockCover{}, &PageBlockDetails{}, &PageBlockDivider{}, &PageBlockEmbed{}, &PageBlockEmbedPost{}, &PageBlockFooter{}, &PageBlockHeader{}, &PageBlockKicker{}, &PageBlockList{}, &PageBlockMap{}, &PageBlockOrderedList{}, &PageBlockParagraph{}, &PageBlockPhoto{}, &PageBlockPreformatted{}, &PageBlockPullquote{}, &PageBlockRelatedArticles{}, &PageBlockSlideshow{}, &PageBlockSubheader{}, &PageBlockSubtitle{}, &PageBlockTable{}, &PageBlockTitle{}, &PageBlockUnsupported{}, &PageBlockVideo{}, &PageCaption{}, &PageListItemBlocks{}, &PageListItemText{}, &PageListOrderedItemBlocks{}, &PageListOrderedItemText{}, &PageRelatedArticle{}, &PageTableCell{}, &PageTableRow{}, &PasswordKdfAlgoSHA256SHA256Pbkdf2Hmacsha512Iter100000SHA256ModPow{}, &PasswordKdfAlgoUnknown{}, &PaymentCharge{}, &PaymentFormMethod{}, &PaymentRequestedInfo{}, &PaymentSavedCredentialsCard{}, &PaymentsApplyGiftCodeParams{}, &PaymentsAssignAppStoreTransactionParams{}, &PaymentsAssignPlayMarketTransactionParams{}, &PaymentsBankCardData{}, &PaymentsBotCancelStarsSubscriptionParams{}, &PaymentsCanPurchasePremiumParams{}, &PaymentsChangeStarsSubscriptionParams{}, &PaymentsCheckGiftCodeParams{}, &PaymentsCheckedGiftCode{}, &PaymentsClearSavedInfoParams{}, &PaymentsConvertStarGiftParams{}, &PaymentsExportInvoiceParams{}, &PaymentsExportedInvoice{}, &PaymentsFulfillStarsSubscriptionParams{}, &PaymentsGetBankCardDataParams{}, &PaymentsGetGiveawayInfoParams{}, &PaymentsGetPaymentFormParams{}, &PaymentsGetPaymentReceiptParams{}, &PaymentsGetPremiumGiftCodeOptionsParams{}, &PaymentsGetSavedInfoParams{}, &PaymentsGetStarGiftsParams{}, &PaymentsGetStarsGiftOptionsParams{}, &PaymentsGetStarsGiveawayOptionsParams{}, &PaymentsGetStarsRevenueAdsAccountURLParams{}, &PaymentsGetStarsRevenueStatsParams{}, &PaymentsGetStarsRevenueWithdrawalURLParams{}, &PaymentsGetStarsStatusParams{}, &PaymentsGetStarsSubscriptionsParams{}, &PaymentsGetStarsTopupOptionsParams{}, &PaymentsGetStarsTransactionsByIDParams{}, &PaymentsGetStarsTransactionsParams{}, &PaymentsGetUserStarGiftsParams{}, &PaymentsGiveawayInfoObj{}, &PaymentsGiveawayInfoResults{}, &PaymentsLaunchPrepaidGiveawayParams{}, &PaymentsPaymentFormObj{}, &PaymentsPaymentFormStarGift{}, &PaymentsPaymentFormStars{}, &PaymentsPaymentReceiptObj{}, &PaymentsPaymentReceiptStars{}, &PaymentsPaymentResultObj{}, &PaymentsPaymentVerificationNeeded{}, &PaymentsRefundStarsChargeParams{}, &PaymentsRequestRecurringPaymentParams{}, &PaymentsSaveStarGiftParams{}, &PaymentsSavedInfo{}, &PaymentsSendPaymentFormParams{}, &PaymentsSendStarsFormParams{}, &PaymentsStarGiftsNotModified{}, &PaymentsStarGiftsObj{}, &PaymentsStarsRevenueAdsAccountURL{}, &PaymentsStarsRevenueStats{}, &PaymentsStarsRevenueWithdrawalURL{}, &PaymentsStarsStatus{}, &PaymentsUserStarGifts{}, &PaymentsValidateRequestedInfoParams{}, &PaymentsValidatedRequestedInfo{}, &PeerBlocked{}, &PeerChannel{}, &PeerChat{}, &PeerColor{}, &PeerLocatedObj{}, &PeerNotifySettings{}, &PeerSelfLocated{}, &PeerSettings{}, &PeerStories{}, &PeerUser{}, &PhoneAcceptCallParams{}, &PhoneCallAccepted{}, &PhoneCallDiscarded{}, &PhoneCallEmpty{}, &PhoneCallObj{}, &PhoneCallProtocol{}, &PhoneCallRequested{}, &PhoneCallWaiting{}, &PhoneCheckGroupCallParams{}, &PhoneConfirmCallParams{}, &PhoneConnectionObj{}, &PhoneConnectionWebrtc{}, &PhoneCreateGroupCallParams{}, &PhoneDiscardCallParams{}, &PhoneDiscardGroupCallParams{}, &PhoneEditGroupCallParticipantParams{}, &PhoneEditGroupCallTitleParams{}, &PhoneExportGroupCallInviteParams{}, &PhoneExportedGroupCallInvite{}, &PhoneGetCallConfigParams{}, &PhoneGetGroupCallJoinAsParams{}, &PhoneGetGroupCallParams{}, &PhoneGetGroupCallStreamChannelsParams{}, &PhoneGetGroupCallStreamRtmpURLParams{}, &PhoneGetGroupParticipantsParams{}, &PhoneGroupCall{}, &PhoneGroupCallStreamChannels{}, &PhoneGroupCallStreamRtmpURL{}, &PhoneGroupParticipants{}, &PhoneInviteToGroupCallParams{}, &PhoneJoinAsPeers{}, &PhoneJoinGroupCallParams{}, &PhoneJoinGroupCallPresentationParams{}, &PhoneLeaveGroupCallParams{}, &PhoneLeaveGroupCallPresentationParams{}, &PhonePhoneCall{}, &PhoneReceivedCallParams{}, &PhoneRequestCallParams{}, &PhoneSaveCallDebugParams{}, &PhoneSaveCallLogParams{}, &PhoneSaveDefaultGroupCallJoinAsParams{}, &PhoneSendSignalingDataParams{}, &PhoneSetCallRatingParams{}, &PhoneStartScheduledGroupCallParams{}, &PhoneToggleGroupCallRecordParams{}, &PhoneToggleGroupCallSettingsParams{}, &PhoneToggleGroupCallStartSubscriptionParams{}, &PhotoCachedSize{}, &PhotoEmpty{}, &PhotoObj{}, &PhotoPathSize{}, &PhotoSizeEmpty{}, &PhotoSizeObj{}, &PhotoSizeProgressive{}, &PhotoStrippedSize{}, &PhotosDeletePhotosParams{}, &PhotosGetUserPhotosParams{}, &PhotosPhoto{}, &PhotosPhotosObj{}, &PhotosPhotosSlice{}, &PhotosUpdateProfilePhotoParams{}, &PhotosUploadContactProfilePhotoParams{}, &PhotosUploadProfilePhotoParams{}, &Poll{}, &PollAnswer{}, &PollAnswerVoters{}, &PollResults{}, &PopularContact{}, &PostAddress{}, &PostInteractionCountersMessage{}, &PostInteractionCountersStory{}, &PremiumApplyBoostParams{}, &PremiumBoostsList{}, &PremiumBoostsStatus{}, &PremiumGetBoostsListParams{}, &PremiumGetBoostsStatusParams{}, &PremiumGetMyBoostsParams{}, &PremiumGetUserBoostsParams{}, &PremiumGiftCodeOption{}, &PremiumGiftOption{}, &PremiumMyBoosts{}, &PremiumSubscriptionOption{}, &PrepaidGiveawayObj{}, &PrepaidStarsGiveaway{}, &PrivacyValueAllowAll{}, &PrivacyValueAllowBots{}, &PrivacyValueAllowChatParticipants{}, &PrivacyValueAllowCloseFriends{}, &PrivacyValueAllowContacts{}, &PrivacyValueAllowPremium{}, &PrivacyValueAllowUsers{}, &PrivacyValueDisallowAll{}, &PrivacyValueDisallowBots{}, &PrivacyValueDisallowChatParticipants{}, &PrivacyValueDisallowContacts{}, &PrivacyValueDisallowUsers{}, &PublicForwardMessage{}, &PublicForwardStory{}, &QuickReply{}, &ReactionCount{}, &ReactionCustomEmoji{}, &ReactionEmoji{}, &ReactionEmpty{}, &ReactionPaid{}, &ReactionsNotifySettings{}, &ReadParticipantDate{}, &ReceivedNotifyMessage{}, &RecentMeURLChat{}, &RecentMeURLChatInvite{}, &RecentMeURLStickerSet{}, &RecentMeURLUnknown{}, &RecentMeURLUser{}, &ReplyInlineMarkup{}, &ReplyKeyboardForceReply{}, &ReplyKeyboardHide{}, &ReplyKeyboardMarkup{}, &ReportResultAddComment{}, &ReportResultChooseOption{}, &ReportResultReported{}, &RequestPeerTypeBroadcast{}, &RequestPeerTypeChat{}, &RequestPeerTypeUser{}, &RequestedPeerChannel{}, &RequestedPeerChat{}, &RequestedPeerUser{}, &RestrictionReason{}, &SavedDialog{}, &SavedPhoneContact{}, &SavedReactionTag{}, &SearchResultPosition{}, &SearchResultsCalendarPeriod{}, &SecureCredentialsEncrypted{}, &SecureData{}, &SecureFileEmpty{}, &SecureFileObj{}, &SecurePasswordKdfAlgoPbkdf2Hmacsha512Iter100000{}, &SecurePasswordKdfAlgoSHA512{}, &SecurePasswordKdfAlgoUnknown{}, &SecurePlainEmail{}, &SecurePlainPhone{}, &SecureRequiredTypeObj{}, &SecureRequiredTypeOneOf{}, &SecureSecretSettings{}, &SecureValue{}, &SecureValueErrorData{}, &SecureValueErrorFile{}, &SecureValueErrorFiles{}, &SecureValueErrorFrontSide{}, &SecureValueErrorObj{}, &SecureValueErrorReverseSide{}, &SecureValueErrorSelfie{}, &SecureValueErrorTranslationFile{}, &SecureValueErrorTranslationFiles{}, &SecureValueHash{}, &SendAsPeer{}, &SendMessageCancelAction{}, &SendMessageChooseContactAction{}, &SendMessageChooseStickerAction{}, &SendMessageEmojiInteraction{}, &SendMessageEmojiInteractionSeen{}, &SendMessageGamePlayAction{}, &SendMessageGeoLocationAction{}, &SendMessageHistoryImportAction{}, &SendMessageRecordAudioAction{}, &SendMessageRecordRoundAction{}, &SendMessageRecordVideoAction{}, &SendMessageTypingAction{}, &SendMessageUploadAudioAction{}, &SendMessageUploadDocumentAction{}, &SendMessageUploadPhotoAction{}, &SendMessageUploadRoundAction{}, &SendMessageUploadVideoAction{}, &ShippingOption{}, &SimpleWebViewResultURL{}, &SmsJob{}, &SmsjobsEligibleToJoin{}, &SmsjobsFinishJobParams{}, &SmsjobsGetSmsJobParams{}, &SmsjobsGetStatusParams{}, &SmsjobsIsEligibleToJoinParams{}, &SmsjobsJoinParams{}, &SmsjobsLeaveParams{}, &SmsjobsStatus{}, &SmsjobsUpdateSettingsParams{}, &SpeakingInGroupCallAction{}, &SponsoredMessage{}, &SponsoredMessageReportOption{}, &StarGift{}, &StarRefProgram{}, &StarsAmount{}, &StarsGiftOption{}, &StarsGiveawayOption{}, &StarsGiveawayWinnersOption{}, &StarsRevenueStatus{}, &StarsSubscription{}, &StarsSubscriptionPricing{}, &StarsTopupOption{}, &StarsTransaction{}, &StarsTransactionPeerAPI{}, &StarsTransactionPeerAds{}, &StarsTransactionPeerAppStore{}, &StarsTransactionPeerFragment{}, &StarsTransactionPeerObj{}, &StarsTransactionPeerPlayMarket{}, &StarsTransactionPeerPremiumBot{}, &StarsTransactionPeerUnsupported{}, &StatsAbsValueAndPrev{}, &StatsBroadcastRevenueStats{}, &StatsBroadcastRevenueTransactions{}, &StatsBroadcastRevenueWithdrawalURL{}, &StatsBroadcastStats{}, &StatsDateRangeDays{}, &StatsGetBroadcastRevenueStatsParams{}, &StatsGetBroadcastRevenueTransactionsParams{}, &StatsGetBroadcastRevenueWithdrawalURLParams{}, &StatsGetBroadcastStatsParams{}, &StatsGetMegagroupStatsParams{}, &StatsGetMessagePublicForwardsParams{}, &StatsGetMessageStatsParams{}, &StatsGetStoryPublicForwardsParams{}, &StatsGetStoryStatsParams{}, &StatsGraphAsync{}, &StatsGraphError{}, &StatsGraphObj{}, &StatsGroupTopAdmin{}, &StatsGroupTopInviter{}, &StatsGroupTopPoster{}, &StatsLoadAsyncGraphParams{}, &StatsMegagroupStats{}, &StatsMessageStats{}, &StatsPercentValue{}, &StatsPublicForwards{}, &StatsStoryStats{}, &StatsURL{}, &StickerKeyword{}, &StickerPack{}, &StickerSet{}, &StickerSetCoveredObj{}, &StickerSetFullCovered{}, &StickerSetMultiCovered{}, &StickerSetNoCovered{}, &StickersAddStickerToSetParams{}, &StickersChangeStickerParams{}, &StickersChangeStickerPositionParams{}, &StickersCheckShortNameParams{}, &StickersCreateStickerSetParams{}, &StickersDeleteStickerSetParams{}, &StickersRemoveStickerFromSetParams{}, &StickersRenameStickerSetParams{}, &StickersReplaceStickerParams{}, &StickersSetStickerSetThumbParams{}, &StickersSuggestShortNameParams{}, &StickersSuggestedShortName{}, &StoriesActivateStealthModeParams{}, &StoriesAllStoriesNotModified{}, &StoriesAllStoriesObj{}, &StoriesCanSendStoryParams{}, &StoriesDeleteStoriesParams{}, &StoriesEditStoryParams{}, &StoriesExportStoryLinkParams{}, &StoriesFoundStories{}, &StoriesGetAllReadPeerStoriesParams{}, &StoriesGetAllStoriesParams{}, &StoriesGetChatsToSendParams{}, &StoriesGetPeerMaxIDsParams{}, &StoriesGetPeerStoriesParams{}, &StoriesGetPinnedStoriesParams{}, &StoriesGetStoriesArchiveParams{}, &StoriesGetStoriesByIDParams{}, &StoriesGetStoriesViewsParams{}, &StoriesGetStoryReactionsListParams{}, &StoriesGetStoryViewsListParams{}, &StoriesIncrementStoryViewsParams{}, &StoriesPeerStories{}, &StoriesReadStoriesParams{}, &StoriesReportParams{}, &StoriesSearchPostsParams{}, &StoriesSendReactionParams{}, &StoriesSendStoryParams{}, &StoriesStealthMode{}, &StoriesStories{}, &StoriesStoryReactionsList{}, &StoriesStoryViews{}, &StoriesStoryViewsList{}, &StoriesToggleAllStoriesHiddenParams{}, &StoriesTogglePeerStoriesHiddenParams{}, &StoriesTogglePinnedParams{}, &StoriesTogglePinnedToTopParams{}, &StoryFwdHeader{}, &StoryItemDeleted{}, &StoryItemObj{}, &StoryItemSkipped{}, &StoryReactionObj{}, &StoryReactionPublicForward{}, &StoryReactionPublicRepost{}, &StoryViewObj{}, &StoryViewPublicForward{}, &StoryViewPublicRepost{}, &StoryViews{}, &SuggestedStarRefBots{}, &TextAnchor{}, &TextBold{}, &TextConcat{}, &TextEmail{}, &TextEmpty{}, &TextFixed{}, &TextImage{}, &TextItalic{}, &TextMarked{}, &TextPhone{}, &TextPlain{}, &TextStrike{}, &TextSubscript{}, &TextSuperscript{}, &TextURL{}, &TextUnderline{}, &TextWithEntities{}, &Theme{}, &ThemeSettings{}, &Timezone{}, &TopPeer{}, &TopPeerCategoryPeers{}, &URLAuthResultAccepted{}, &URLAuthResultDefault{}, &URLAuthResultRequest{}, &UpdateAttachMenuBots{}, &UpdateAutoSaveSettings{}, &UpdateBotBusinessConnect{}, &UpdateBotCallbackQuery{}, &UpdateBotChatBoost{}, &UpdateBotChatInviteRequester{}, &UpdateBotCommands{}, &UpdateBotDeleteBusinessMessage{}, &UpdateBotEditBusinessMessage{}, &UpdateBotInlineQuery{}, &UpdateBotInlineSend{}, &UpdateBotMenuButton{}, &UpdateBotMessageReaction{}, &UpdateBotMessageReactions{}, &UpdateBotNewBusinessMessage{}, &UpdateBotPrecheckoutQuery{}, &UpdateBotPurchasedPaidMedia{}, &UpdateBotShippingQuery{}, &UpdateBotStopped{}, &UpdateBotSubscriptionExpire{}, &UpdateBotWebhookJson{}, &UpdateBotWebhookJsonQuery{}, &UpdateBroadcastRevenueTransactions{}, &UpdateBusinessBotCallbackQuery{}, &UpdateChannel{}, &UpdateChannelAvailableMessages{}, &UpdateChannelMessageForwards{}, &UpdateChannelMessageViews{}, &UpdateChannelParticipant{}, &UpdateChannelPinnedTopic{}, &UpdateChannelPinnedTopics{}, &UpdateChannelReadMessagesContents{}, &UpdateChannelTooLong{}, &UpdateChannelUserTyping{}, &UpdateChannelViewForumAsMessages{}, &UpdateChannelWebPage{}, &UpdateChat{}, &UpdateChatDefaultBannedRights{}, &UpdateChatParticipant{}, &UpdateChatParticipantAdd{}, &UpdateChatParticipantAdmin{}, &UpdateChatParticipantDelete{}, &UpdateChatParticipants{}, &UpdateChatUserTyping{}, &UpdateConfig{}, &UpdateContactsReset{}, &UpdateDcOptions{}, &UpdateDeleteChannelMessages{}, &UpdateDeleteMessages{}, &UpdateDeleteQuickReply{}, &UpdateDeleteQuickReplyMessages{}, &UpdateDeleteScheduledMessages{}, &UpdateDialogFilter{}, &UpdateDialogFilterOrder{}, &UpdateDialogFilters{}, &UpdateDialogPinned{}, &UpdateDialogUnreadMark{}, &UpdateDraftMessage{}, &UpdateEditChannelMessage{}, &UpdateEditMessage{}, &UpdateEncryptedChatTyping{}, &UpdateEncryptedMessagesRead{}, &UpdateEncryption{}, &UpdateFavedStickers{}, &UpdateFolderPeers{}, &UpdateGeoLiveViewed{}, &UpdateGroupCall{}, &UpdateGroupCallConnection{}, &UpdateGroupCallParticipants{}, &UpdateInlineBotCallbackQuery{}, &UpdateLangPack{}, &UpdateLangPackTooLong{}, &UpdateLoginToken{}, &UpdateMessageExtendedMedia{}, &UpdateMessageID{}, &UpdateMessagePoll{}, &UpdateMessagePollVote{}, &UpdateMessageReactions{}, &UpdateMoveStickerSetToTop{}, &UpdateNewAuthorization{}, &UpdateNewChannelMessage{}, &UpdateNewEncryptedMessage{}, &UpdateNewMessage{}, &UpdateNewQuickReply{}, &UpdateNewScheduledMessage{}, &UpdateNewStickerSet{}, &UpdateNewStoryReaction{}, &UpdateNotifySettings{}, &UpdatePaidReactionPrivacy{}, &UpdatePeerBlocked{}, &UpdatePeerHistoryTtl{}, &UpdatePeerLocated{}, &UpdatePeerSettings{}, &UpdatePeerWallpaper{}, &UpdatePendingJoinRequests{}, &UpdatePhoneCall{}, &UpdatePhoneCallSignalingData{}, &UpdatePinnedChannelMessages{}, &UpdatePinnedDialogs{}, &UpdatePinnedMessages{}, &UpdatePinnedSavedDialogs{}, &UpdatePrivacy{}, &UpdatePtsChanged{}, &UpdateQuickReplies{}, &UpdateQuickReplyMessage{}, &UpdateReadChannelDiscussionInbox{}, &UpdateReadChannelDiscussionOutbox{}, &UpdateReadChannelInbox{}, &UpdateReadChannelOutbox{}, &UpdateReadFeaturedEmojiStickers{}, &UpdateReadFeaturedStickers{}, &UpdateReadHistoryInbox{}, &UpdateReadHistoryOutbox{}, &UpdateReadMessagesContents{}, &UpdateReadStories{}, &UpdateRecentEmojiStatuses{}, &UpdateRecentReactions{}, &UpdateRecentStickers{}, &UpdateSavedDialogPinned{}, &UpdateSavedGifs{}, &UpdateSavedReactionTags{}, &UpdateSavedRingtones{}, &UpdateSentStoryReaction{}, &UpdateServiceNotification{}, &UpdateShort{}, &UpdateShortChatMessage{}, &UpdateShortMessage{}, &UpdateShortSentMessage{}, &UpdateSmsJob{}, &UpdateStarsBalance{}, &UpdateStarsRevenueStatus{}, &UpdateStickerSets{}, &UpdateStickerSetsOrder{}, &UpdateStoriesStealthMode{}, &UpdateStory{}, &UpdateStoryID{}, &UpdateTheme{}, &UpdateTranscribeAudio{}, &UpdateTranscribedAudio{}, &UpdateUser{}, &UpdateUserEmojiStatus{}, &UpdateUserName{}, &UpdateUserPhone{}, &UpdateUserPhoto{}, &UpdateUserStatus{}, &UpdateUserTyping{}, &UpdateWebPage{}, &UpdateWebViewResultSent{}, &UpdatesChannelDifferenceEmpty{}, &UpdatesChannelDifferenceObj{}, &UpdatesChannelDifferenceTooLong{}, &UpdatesCombined{}, &UpdatesDifferenceEmpty{}, &UpdatesDifferenceObj{}, &UpdatesDifferenceSlice{}, &UpdatesDifferenceTooLong{}, &UpdatesGetChannelDifferenceParams{}, &UpdatesGetDifferenceParams{}, &UpdatesGetStateParams{}, &UpdatesObj{}, &UpdatesState{}, &UpdatesTooLong{}, &UploadCdnFileObj{}, &UploadCdnFileReuploadNeeded{}, &UploadFileCdnRedirect{}, &UploadFileObj{}, &UploadGetCdnFileHashesParams{}, &UploadGetCdnFileParams{}, &UploadGetFileHashesParams{}, &UploadGetFileParams{}, &UploadGetWebFileParams{}, &UploadReuploadCdnFileParams{}, &UploadSaveBigFilePartParams{}, &UploadSaveFilePartParams{}, &UploadWebFile{}, &UserEmpty{}, &UserFull{}, &UserObj{}, &UserProfilePhotoEmpty{}, &UserProfilePhotoObj{}, &UserStarGift{}, &UserStatusEmpty{}, &UserStatusHidden{}, &UserStatusLastMonth{}, &UserStatusLastWeek{}, &UserStatusOffline{}, &UserStatusOnline{}, &UserStatusRecently{}, &Username{}, &UsersGetFullUserParams{}, &UsersGetIsPremiumRequiredToContactParams{}, &UsersGetUsersParams{}, &UsersSetSecureValueErrorsParams{}, &UsersUserFull{}, &VideoSizeEmojiMarkup{}, &VideoSizeObj{}, &VideoSizeStickerMarkup{}, &WallPaperNoFile{}, &WallPaperObj{}, &WallPaperSettings{}, &WebAuthorization{}, &WebDocumentNoProxy{}, &WebDocumentObj{}, &WebPageAttributeStickerSet{}, &WebPageAttributeStory{}, &WebPageAttributeTheme{}, &WebPageEmpty{}, &WebPageNotModified{}, &WebPageObj{}, &WebPagePending{}, &WebPageURLPending{}, &WebViewMessageSent{}, &WebViewResultURL{})
+ tl.RegisterObjects(&AccessPointRule{}, &AccountAcceptAuthorizationParams{}, &AccountAuthorizationForm{}, &AccountAuthorizations{}, &AccountAutoDownloadSettings{}, &AccountAutoSaveSettings{}, &AccountBusinessChatLinks{}, &AccountCancelPasswordEmailParams{}, &AccountChangeAuthorizationSettingsParams{}, &AccountChangePhoneParams{}, &AccountCheckUsernameParams{}, &AccountClearRecentEmojiStatusesParams{}, &AccountConfirmPasswordEmailParams{}, &AccountConfirmPhoneParams{}, &AccountConnectedBots{}, &AccountContentSettings{}, &AccountCreateBusinessChatLinkParams{}, &AccountCreateThemeParams{}, &AccountDaysTtl{}, &AccountDeclinePasswordResetParams{}, &AccountDeleteAccountParams{}, &AccountDeleteAutoSaveExceptionsParams{}, &AccountDeleteBusinessChatLinkParams{}, &AccountDeleteSecureValueParams{}, &AccountDisablePeerConnectedBotParams{}, &AccountEditBusinessChatLinkParams{}, &AccountEmailVerifiedLogin{}, &AccountEmailVerifiedObj{}, &AccountEmojiStatusesNotModified{}, &AccountEmojiStatusesObj{}, &AccountFinishTakeoutSessionParams{}, &AccountGetAccountTtlParams{}, &AccountGetAllSecureValuesParams{}, &AccountGetAuthorizationFormParams{}, &AccountGetAuthorizationsParams{}, &AccountGetAutoDownloadSettingsParams{}, &AccountGetAutoSaveSettingsParams{}, &AccountGetBotBusinessConnectionParams{}, &AccountGetBusinessChatLinksParams{}, &AccountGetChannelDefaultEmojiStatusesParams{}, &AccountGetChannelRestrictedStatusEmojisParams{}, &AccountGetChatThemesParams{}, &AccountGetConnectedBotsParams{}, &AccountGetContactSignUpNotificationParams{}, &AccountGetContentSettingsParams{}, &AccountGetDefaultBackgroundEmojisParams{}, &AccountGetDefaultEmojiStatusesParams{}, &AccountGetDefaultGroupPhotoEmojisParams{}, &AccountGetDefaultProfilePhotoEmojisParams{}, &AccountGetGlobalPrivacySettingsParams{}, &AccountGetMultiWallPapersParams{}, &AccountGetNotifyExceptionsParams{}, &AccountGetNotifySettingsParams{}, &AccountGetPasswordParams{}, &AccountGetPasswordSettingsParams{}, &AccountGetPrivacyParams{}, &AccountGetReactionsNotifySettingsParams{}, &AccountGetRecentEmojiStatusesParams{}, &AccountGetSavedRingtonesParams{}, &AccountGetSecureValueParams{}, &AccountGetThemeParams{}, &AccountGetThemesParams{}, &AccountGetTmpPasswordParams{}, &AccountGetWallPaperParams{}, &AccountGetWallPapersParams{}, &AccountGetWebAuthorizationsParams{}, &AccountInitTakeoutSessionParams{}, &AccountInstallThemeParams{}, &AccountInstallWallPaperParams{}, &AccountInvalidateSignInCodesParams{}, &AccountPassword{}, &AccountPasswordInputSettings{}, &AccountPasswordSettings{}, &AccountPrivacyRules{}, &AccountRegisterDeviceParams{}, &AccountReorderUsernamesParams{}, &AccountReportPeerParams{}, &AccountReportProfilePhotoParams{}, &AccountResendPasswordEmailParams{}, &AccountResetAuthorizationParams{}, &AccountResetNotifySettingsParams{}, &AccountResetPasswordFailedWait{}, &AccountResetPasswordOk{}, &AccountResetPasswordParams{}, &AccountResetPasswordRequestedWait{}, &AccountResetWallPapersParams{}, &AccountResetWebAuthorizationParams{}, &AccountResetWebAuthorizationsParams{}, &AccountResolveBusinessChatLinkParams{}, &AccountResolvedBusinessChatLinks{}, &AccountSaveAutoDownloadSettingsParams{}, &AccountSaveAutoSaveSettingsParams{}, &AccountSaveRingtoneParams{}, &AccountSaveSecureValueParams{}, &AccountSaveThemeParams{}, &AccountSaveWallPaperParams{}, &AccountSavedRingtoneConverted{}, &AccountSavedRingtoneObj{}, &AccountSavedRingtonesNotModified{}, &AccountSavedRingtonesObj{}, &AccountSendChangePhoneCodeParams{}, &AccountSendConfirmPhoneCodeParams{}, &AccountSendVerifyEmailCodeParams{}, &AccountSendVerifyPhoneCodeParams{}, &AccountSentEmailCode{}, &AccountSetAccountTtlParams{}, &AccountSetAuthorizationTtlParams{}, &AccountSetContactSignUpNotificationParams{}, &AccountSetContentSettingsParams{}, &AccountSetGlobalPrivacySettingsParams{}, &AccountSetPrivacyParams{}, &AccountSetReactionsNotifySettingsParams{}, &AccountTakeout{}, &AccountThemesNotModified{}, &AccountThemesObj{}, &AccountTmpPassword{}, &AccountToggleConnectedBotPausedParams{}, &AccountToggleSponsoredMessagesParams{}, &AccountToggleUsernameParams{}, &AccountUnregisterDeviceParams{}, &AccountUpdateBirthdayParams{}, &AccountUpdateBusinessAwayMessageParams{}, &AccountUpdateBusinessGreetingMessageParams{}, &AccountUpdateBusinessIntroParams{}, &AccountUpdateBusinessLocationParams{}, &AccountUpdateBusinessWorkHoursParams{}, &AccountUpdateColorParams{}, &AccountUpdateConnectedBotParams{}, &AccountUpdateDeviceLockedParams{}, &AccountUpdateEmojiStatusParams{}, &AccountUpdateNotifySettingsParams{}, &AccountUpdatePasswordSettingsParams{}, &AccountUpdatePersonalChannelParams{}, &AccountUpdateProfileParams{}, &AccountUpdateStatusParams{}, &AccountUpdateThemeParams{}, &AccountUpdateUsernameParams{}, &AccountUploadRingtoneParams{}, &AccountUploadThemeParams{}, &AccountUploadWallPaperParams{}, &AccountVerifyEmailParams{}, &AccountVerifyPhoneParams{}, &AccountWallPapersNotModified{}, &AccountWallPapersObj{}, &AccountWebAuthorizations{}, &AttachMenuBot{}, &AttachMenuBotIcon{}, &AttachMenuBotIconColor{}, &AttachMenuBotsBot{}, &AttachMenuBotsNotModified{}, &AttachMenuBotsObj{}, &AuthAcceptLoginTokenParams{}, &AuthAuthorizationObj{}, &AuthAuthorizationSignUpRequired{}, &AuthBindTempAuthKeyParams{}, &AuthCancelCodeParams{}, &AuthCheckPasswordParams{}, &AuthCheckRecoveryPasswordParams{}, &AuthDropTempAuthKeysParams{}, &AuthExportAuthorizationParams{}, &AuthExportLoginTokenParams{}, &AuthExportedAuthorization{}, &AuthImportAuthorizationParams{}, &AuthImportBotAuthorizationParams{}, &AuthImportLoginTokenParams{}, &AuthImportWebTokenAuthorizationParams{}, &AuthLogOutParams{}, &AuthLoggedOut{}, &AuthLoginTokenMigrateTo{}, &AuthLoginTokenObj{}, &AuthLoginTokenSuccess{}, &AuthPasswordRecovery{}, &AuthRecoverPasswordParams{}, &AuthReportMissingCodeParams{}, &AuthRequestFirebaseSmsParams{}, &AuthRequestPasswordRecoveryParams{}, &AuthResendCodeParams{}, &AuthResetAuthorizationsParams{}, &AuthResetLoginEmailParams{}, &AuthSendCodeParams{}, &AuthSentCodeObj{}, &AuthSentCodeSuccess{}, &AuthSentCodeTypeApp{}, &AuthSentCodeTypeCall{}, &AuthSentCodeTypeEmailCode{}, &AuthSentCodeTypeFirebaseSms{}, &AuthSentCodeTypeFlashCall{}, &AuthSentCodeTypeFragmentSms{}, &AuthSentCodeTypeMissedCall{}, &AuthSentCodeTypeSetUpEmailRequired{}, &AuthSentCodeTypeSms{}, &AuthSentCodeTypeSmsPhrase{}, &AuthSentCodeTypeSmsWord{}, &AuthSignInParams{}, &AuthSignUpParams{}, &Authorization{}, &AutoDownloadSettings{}, &AutoSaveException{}, &AutoSaveSettings{}, &AvailableEffect{}, &AvailableReaction{}, &BankCardOpenURL{}, &Birthday{}, &Boost{}, &BotAppNotModified{}, &BotAppObj{}, &BotAppSettings{}, &BotBusinessConnection{}, &BotCommand{}, &BotCommandScopeChatAdmins{}, &BotCommandScopeChats{}, &BotCommandScopeDefault{}, &BotCommandScopePeer{}, &BotCommandScopePeerAdmins{}, &BotCommandScopePeerUser{}, &BotCommandScopeUsers{}, &BotInfo{}, &BotInlineMediaResult{}, &BotInlineMessageMediaAuto{}, &BotInlineMessageMediaContact{}, &BotInlineMessageMediaGeo{}, &BotInlineMessageMediaInvoice{}, &BotInlineMessageMediaVenue{}, &BotInlineMessageMediaWebPage{}, &BotInlineMessageText{}, &BotInlineResultObj{}, &BotMenuButtonCommands{}, &BotMenuButtonDefault{}, &BotMenuButtonObj{}, &BotPreviewMedia{}, &BotsAddPreviewMediaParams{}, &BotsAllowSendMessageParams{}, &BotsAnswerWebhookJsonQueryParams{}, &BotsBotInfo{}, &BotsCanSendMessageParams{}, &BotsCheckDownloadFileParamsParams{}, &BotsDeletePreviewMediaParams{}, &BotsEditPreviewMediaParams{}, &BotsGetAdminedBotsParams{}, &BotsGetBotCommandsParams{}, &BotsGetBotInfoParams{}, &BotsGetBotMenuButtonParams{}, &BotsGetPopularAppBotsParams{}, &BotsGetPreviewInfoParams{}, &BotsGetPreviewMediasParams{}, &BotsInvokeWebViewCustomMethodParams{}, &BotsPopularAppBots{}, &BotsPreviewInfo{}, &BotsReorderPreviewMediasParams{}, &BotsReorderUsernamesParams{}, &BotsResetBotCommandsParams{}, &BotsSendCustomRequestParams{}, &BotsSetBotBroadcastDefaultAdminRightsParams{}, &BotsSetBotCommandsParams{}, &BotsSetBotGroupDefaultAdminRightsParams{}, &BotsSetBotInfoParams{}, &BotsSetBotMenuButtonParams{}, &BotsToggleUserEmojiStatusPermissionParams{}, &BotsToggleUsernameParams{}, &BotsUpdateStarRefProgramParams{}, &BotsUpdateUserEmojiStatusParams{}, &BroadcastRevenueBalances{}, &BroadcastRevenueTransactionProceeds{}, &BroadcastRevenueTransactionRefund{}, &BroadcastRevenueTransactionWithdrawal{}, &BusinessAwayMessage{}, &BusinessAwayMessageScheduleAlways{}, &BusinessAwayMessageScheduleCustom{}, &BusinessAwayMessageScheduleOutsideWorkHours{}, &BusinessBotRecipients{}, &BusinessChatLink{}, &BusinessGreetingMessage{}, &BusinessIntro{}, &BusinessLocation{}, &BusinessRecipients{}, &BusinessWeeklyOpen{}, &BusinessWorkHours{}, &CdnConfig{}, &CdnPublicKey{}, &Channel{}, &ChannelAdminLogEvent{}, &ChannelAdminLogEventActionChangeAbout{}, &ChannelAdminLogEventActionChangeAvailableReactions{}, &ChannelAdminLogEventActionChangeEmojiStatus{}, &ChannelAdminLogEventActionChangeEmojiStickerSet{}, &ChannelAdminLogEventActionChangeHistoryTtl{}, &ChannelAdminLogEventActionChangeLinkedChat{}, &ChannelAdminLogEventActionChangeLocation{}, &ChannelAdminLogEventActionChangePeerColor{}, &ChannelAdminLogEventActionChangePhoto{}, &ChannelAdminLogEventActionChangeProfilePeerColor{}, &ChannelAdminLogEventActionChangeStickerSet{}, &ChannelAdminLogEventActionChangeTheme{}, &ChannelAdminLogEventActionChangeTitle{}, &ChannelAdminLogEventActionChangeUsername{}, &ChannelAdminLogEventActionChangeUsernames{}, &ChannelAdminLogEventActionChangeWallpaper{}, &ChannelAdminLogEventActionCreateTopic{}, &ChannelAdminLogEventActionDefaultBannedRights{}, &ChannelAdminLogEventActionDeleteMessage{}, &ChannelAdminLogEventActionDeleteTopic{}, &ChannelAdminLogEventActionDiscardGroupCall{}, &ChannelAdminLogEventActionEditMessage{}, &ChannelAdminLogEventActionEditTopic{}, &ChannelAdminLogEventActionExportedInviteDelete{}, &ChannelAdminLogEventActionExportedInviteEdit{}, &ChannelAdminLogEventActionExportedInviteRevoke{}, &ChannelAdminLogEventActionParticipantInvite{}, &ChannelAdminLogEventActionParticipantJoin{}, &ChannelAdminLogEventActionParticipantJoinByInvite{}, &ChannelAdminLogEventActionParticipantJoinByRequest{}, &ChannelAdminLogEventActionParticipantLeave{}, &ChannelAdminLogEventActionParticipantMute{}, &ChannelAdminLogEventActionParticipantSubExtend{}, &ChannelAdminLogEventActionParticipantToggleAdmin{}, &ChannelAdminLogEventActionParticipantToggleBan{}, &ChannelAdminLogEventActionParticipantUnmute{}, &ChannelAdminLogEventActionParticipantVolume{}, &ChannelAdminLogEventActionPinTopic{}, &ChannelAdminLogEventActionSendMessage{}, &ChannelAdminLogEventActionStartGroupCall{}, &ChannelAdminLogEventActionStopPoll{}, &ChannelAdminLogEventActionToggleAntiSpam{}, &ChannelAdminLogEventActionToggleForum{}, &ChannelAdminLogEventActionToggleGroupCallSetting{}, &ChannelAdminLogEventActionToggleInvites{}, &ChannelAdminLogEventActionToggleNoForwards{}, &ChannelAdminLogEventActionTogglePreHistoryHidden{}, &ChannelAdminLogEventActionToggleSignatureProfiles{}, &ChannelAdminLogEventActionToggleSignatures{}, &ChannelAdminLogEventActionToggleSlowMode{}, &ChannelAdminLogEventActionUpdatePinned{}, &ChannelAdminLogEventsFilter{}, &ChannelForbidden{}, &ChannelFull{}, &ChannelLocationEmpty{}, &ChannelLocationObj{}, &ChannelMessagesFilterEmpty{}, &ChannelMessagesFilterObj{}, &ChannelParticipantAdmin{}, &ChannelParticipantBanned{}, &ChannelParticipantCreator{}, &ChannelParticipantLeft{}, &ChannelParticipantObj{}, &ChannelParticipantSelf{}, &ChannelParticipantsAdmins{}, &ChannelParticipantsBanned{}, &ChannelParticipantsBots{}, &ChannelParticipantsContacts{}, &ChannelParticipantsKicked{}, &ChannelParticipantsMentions{}, &ChannelParticipantsRecent{}, &ChannelParticipantsSearch{}, &ChannelsAdminLogResults{}, &ChannelsChannelParticipant{}, &ChannelsChannelParticipantsNotModified{}, &ChannelsChannelParticipantsObj{}, &ChannelsCheckUsernameParams{}, &ChannelsConvertToGigagroupParams{}, &ChannelsCreateChannelParams{}, &ChannelsCreateForumTopicParams{}, &ChannelsDeactivateAllUsernamesParams{}, &ChannelsDeleteChannelParams{}, &ChannelsDeleteHistoryParams{}, &ChannelsDeleteMessagesParams{}, &ChannelsDeleteParticipantHistoryParams{}, &ChannelsDeleteTopicHistoryParams{}, &ChannelsEditAdminParams{}, &ChannelsEditBannedParams{}, &ChannelsEditCreatorParams{}, &ChannelsEditForumTopicParams{}, &ChannelsEditLocationParams{}, &ChannelsEditPhotoParams{}, &ChannelsEditTitleParams{}, &ChannelsExportMessageLinkParams{}, &ChannelsGetAdminLogParams{}, &ChannelsGetAdminedPublicChannelsParams{}, &ChannelsGetChannelRecommendationsParams{}, &ChannelsGetChannelsParams{}, &ChannelsGetForumTopicsByIDParams{}, &ChannelsGetForumTopicsParams{}, &ChannelsGetFullChannelParams{}, &ChannelsGetGroupsForDiscussionParams{}, &ChannelsGetInactiveChannelsParams{}, &ChannelsGetLeftChannelsParams{}, &ChannelsGetMessagesParams{}, &ChannelsGetParticipantParams{}, &ChannelsGetParticipantsParams{}, &ChannelsGetSendAsParams{}, &ChannelsInviteToChannelParams{}, &ChannelsJoinChannelParams{}, &ChannelsLeaveChannelParams{}, &ChannelsReadHistoryParams{}, &ChannelsReadMessageContentsParams{}, &ChannelsReorderPinnedForumTopicsParams{}, &ChannelsReorderUsernamesParams{}, &ChannelsReportAntiSpamFalsePositiveParams{}, &ChannelsReportSpamParams{}, &ChannelsRestrictSponsoredMessagesParams{}, &ChannelsSearchPostsParams{}, &ChannelsSendAsPeers{}, &ChannelsSetBoostsToUnblockRestrictionsParams{}, &ChannelsSetDiscussionGroupParams{}, &ChannelsSetEmojiStickersParams{}, &ChannelsSetStickersParams{}, &ChannelsSponsoredMessageReportResultAdsHidden{}, &ChannelsSponsoredMessageReportResultChooseOption{}, &ChannelsSponsoredMessageReportResultReported{}, &ChannelsToggleAntiSpamParams{}, &ChannelsToggleForumParams{}, &ChannelsToggleJoinRequestParams{}, &ChannelsToggleJoinToSendParams{}, &ChannelsToggleParticipantsHiddenParams{}, &ChannelsTogglePreHistoryHiddenParams{}, &ChannelsToggleSignaturesParams{}, &ChannelsToggleSlowModeParams{}, &ChannelsToggleUsernameParams{}, &ChannelsToggleViewForumAsMessagesParams{}, &ChannelsUpdateColorParams{}, &ChannelsUpdateEmojiStatusParams{}, &ChannelsUpdatePinnedForumTopicParams{}, &ChannelsUpdateUsernameParams{}, &ChatAdminRights{}, &ChatAdminWithInvites{}, &ChatBannedRights{}, &ChatEmpty{}, &ChatForbidden{}, &ChatFullObj{}, &ChatInviteAlready{}, &ChatInviteExported{}, &ChatInviteImporter{}, &ChatInviteObj{}, &ChatInvitePeek{}, &ChatInvitePublicJoinRequests{}, &ChatObj{}, &ChatOnlines{}, &ChatParticipantAdmin{}, &ChatParticipantCreator{}, &ChatParticipantObj{}, &ChatParticipantsForbidden{}, &ChatParticipantsObj{}, &ChatPhotoEmpty{}, &ChatPhotoObj{}, &ChatReactionsAll{}, &ChatReactionsNone{}, &ChatReactionsSome{}, &ChatlistsChatlistInviteAlready{}, &ChatlistsChatlistInviteObj{}, &ChatlistsChatlistUpdates{}, &ChatlistsCheckChatlistInviteParams{}, &ChatlistsDeleteExportedInviteParams{}, &ChatlistsEditExportedInviteParams{}, &ChatlistsExportChatlistInviteParams{}, &ChatlistsExportedChatlistInvite{}, &ChatlistsExportedInvites{}, &ChatlistsGetChatlistUpdatesParams{}, &ChatlistsGetExportedInvitesParams{}, &ChatlistsGetLeaveChatlistSuggestionsParams{}, &ChatlistsHideChatlistUpdatesParams{}, &ChatlistsJoinChatlistInviteParams{}, &ChatlistsJoinChatlistUpdatesParams{}, &ChatlistsLeaveChatlistParams{}, &CodeSettings{}, &Config{}, &ConnectedBot{}, &ConnectedBotStarRef{}, &Contact{}, &ContactBirthday{}, &ContactStatus{}, &ContactsAcceptContactParams{}, &ContactsAddContactParams{}, &ContactsBlockFromRepliesParams{}, &ContactsBlockParams{}, &ContactsBlockedObj{}, &ContactsBlockedSlice{}, &ContactsContactBirthdays{}, &ContactsContactsNotModified{}, &ContactsContactsObj{}, &ContactsDeleteByPhonesParams{}, &ContactsDeleteContactsParams{}, &ContactsEditCloseFriendsParams{}, &ContactsExportCardParams{}, &ContactsExportContactTokenParams{}, &ContactsFound{}, &ContactsGetBirthdaysParams{}, &ContactsGetBlockedParams{}, &ContactsGetContactIDsParams{}, &ContactsGetContactsParams{}, &ContactsGetLocatedParams{}, &ContactsGetSavedParams{}, &ContactsGetStatusesParams{}, &ContactsGetTopPeersParams{}, &ContactsImportCardParams{}, &ContactsImportContactTokenParams{}, &ContactsImportContactsParams{}, &ContactsImportedContacts{}, &ContactsResetSavedParams{}, &ContactsResetTopPeerRatingParams{}, &ContactsResolvePhoneParams{}, &ContactsResolveUsernameParams{}, &ContactsResolvedPeer{}, &ContactsSearchParams{}, &ContactsSetBlockedParams{}, &ContactsToggleTopPeersParams{}, &ContactsTopPeersDisabled{}, &ContactsTopPeersNotModified{}, &ContactsTopPeersObj{}, &ContactsUnblockParams{}, &DataJson{}, &DcOption{}, &DefaultHistoryTtl{}, &DialogFilterChatlist{}, &DialogFilterDefault{}, &DialogFilterObj{}, &DialogFilterSuggested{}, &DialogFolder{}, &DialogObj{}, &DialogPeerFolder{}, &DialogPeerObj{}, &DocumentAttributeAnimated{}, &DocumentAttributeAudio{}, &DocumentAttributeCustomEmoji{}, &DocumentAttributeFilename{}, &DocumentAttributeHasStickers{}, &DocumentAttributeImageSize{}, &DocumentAttributeSticker{}, &DocumentAttributeVideo{}, &DocumentEmpty{}, &DocumentObj{}, &DraftMessageEmpty{}, &DraftMessageObj{}, &EmailVerificationApple{}, &EmailVerificationCode{}, &EmailVerificationGoogle{}, &EmailVerifyPurposeLoginChange{}, &EmailVerifyPurposeLoginSetup{}, &EmailVerifyPurposePassport{}, &EmojiGroupGreeting{}, &EmojiGroupObj{}, &EmojiGroupPremium{}, &EmojiKeywordDeleted{}, &EmojiKeywordObj{}, &EmojiKeywordsDifference{}, &EmojiLanguage{}, &EmojiListNotModified{}, &EmojiListObj{}, &EmojiStatusEmpty{}, &EmojiStatusObj{}, &EmojiStatusUntil{}, &EmojiURL{}, &EncryptedChatDiscarded{}, &EncryptedChatEmpty{}, &EncryptedChatObj{}, &EncryptedChatRequested{}, &EncryptedChatWaiting{}, &EncryptedFileEmpty{}, &EncryptedFileObj{}, &EncryptedMessageObj{}, &EncryptedMessageService{}, &Error{}, &ExportedChatlistInvite{}, &ExportedContactToken{}, &ExportedMessageLink{}, &ExportedStoryLink{}, &FactCheck{}, &FileHash{}, &Folder{}, &FolderPeer{}, &FoldersDeleteFolderParams{}, &FoldersEditPeerFoldersParams{}, &ForumTopicDeleted{}, &ForumTopicObj{}, &FoundStory{}, &FragmentCollectibleInfo{}, &FragmentGetCollectibleInfoParams{}, &Game{}, &GeoPointAddress{}, &GeoPointEmpty{}, &GeoPointObj{}, &GlobalPrivacySettings{}, &GroupCallDiscarded{}, &GroupCallObj{}, &GroupCallParticipant{}, &GroupCallParticipantVideo{}, &GroupCallParticipantVideoSourceGroup{}, &GroupCallStreamChannel{}, &HelpAcceptTermsOfServiceParams{}, &HelpAppConfigNotModified{}, &HelpAppConfigObj{}, &HelpAppUpdateObj{}, &HelpConfigSimple{}, &HelpCountriesListNotModified{}, &HelpCountriesListObj{}, &HelpCountry{}, &HelpCountryCode{}, &HelpDeepLinkInfoEmpty{}, &HelpDeepLinkInfoObj{}, &HelpDismissSuggestionParams{}, &HelpEditUserInfoParams{}, &HelpGetAppConfigParams{}, &HelpGetAppUpdateParams{}, &HelpGetCdnConfigParams{}, &HelpGetConfigParams{}, &HelpGetCountriesListParams{}, &HelpGetDeepLinkInfoParams{}, &HelpGetInviteTextParams{}, &HelpGetNearestDcParams{}, &HelpGetPassportConfigParams{}, &HelpGetPeerColorsParams{}, &HelpGetPeerProfileColorsParams{}, &HelpGetPremiumPromoParams{}, &HelpGetPromoDataParams{}, &HelpGetRecentMeUrlsParams{}, &HelpGetSupportNameParams{}, &HelpGetSupportParams{}, &HelpGetTermsOfServiceUpdateParams{}, &HelpGetTimezonesListParams{}, &HelpGetUserInfoParams{}, &HelpHidePromoDataParams{}, &HelpInviteText{}, &HelpNoAppUpdate{}, &HelpPassportConfigNotModified{}, &HelpPassportConfigObj{}, &HelpPeerColorOption{}, &HelpPeerColorProfileSet{}, &HelpPeerColorSetObj{}, &HelpPeerColorsNotModified{}, &HelpPeerColorsObj{}, &HelpPremiumPromo{}, &HelpPromoDataEmpty{}, &HelpPromoDataObj{}, &HelpRecentMeUrls{}, &HelpSaveAppLogParams{}, &HelpSetBotUpdatesStatusParams{}, &HelpSupport{}, &HelpSupportName{}, &HelpTermsOfService{}, &HelpTermsOfServiceUpdateEmpty{}, &HelpTermsOfServiceUpdateObj{}, &HelpTimezonesListNotModified{}, &HelpTimezonesListObj{}, &HelpUserInfoEmpty{}, &HelpUserInfoObj{}, &HighScore{}, &ImportedContact{}, &InlineBotSwitchPm{}, &InlineBotWebView{}, &InputAppEvent{}, &InputBotAppID{}, &InputBotAppShortName{}, &InputBotInlineMessageGame{}, &InputBotInlineMessageID64{}, &InputBotInlineMessageIDObj{}, &InputBotInlineMessageMediaAuto{}, &InputBotInlineMessageMediaContact{}, &InputBotInlineMessageMediaGeo{}, &InputBotInlineMessageMediaInvoice{}, &InputBotInlineMessageMediaVenue{}, &InputBotInlineMessageMediaWebPage{}, &InputBotInlineMessageText{}, &InputBotInlineResultDocument{}, &InputBotInlineResultGame{}, &InputBotInlineResultObj{}, &InputBotInlineResultPhoto{}, &InputBusinessAwayMessage{}, &InputBusinessBotRecipients{}, &InputBusinessChatLink{}, &InputBusinessGreetingMessage{}, &InputBusinessIntro{}, &InputBusinessRecipients{}, &InputChannelEmpty{}, &InputChannelFromMessage{}, &InputChannelObj{}, &InputChatPhotoEmpty{}, &InputChatPhotoObj{}, &InputChatUploadedPhoto{}, &InputChatlistDialogFilter{}, &InputCheckPasswordEmpty{}, &InputCheckPasswordSRPObj{}, &InputClientProxy{}, &InputCollectiblePhone{}, &InputCollectibleUsername{}, &InputDialogPeerFolder{}, &InputDialogPeerObj{}, &InputDocumentEmpty{}, &InputDocumentFileLocation{}, &InputDocumentObj{}, &InputEncryptedChat{}, &InputEncryptedFileBigUploaded{}, &InputEncryptedFileEmpty{}, &InputEncryptedFileLocation{}, &InputEncryptedFileObj{}, &InputEncryptedFileUploaded{}, &InputFileBig{}, &InputFileLocationObj{}, &InputFileObj{}, &InputFileStoryDocument{}, &InputFolderPeer{}, &InputGameID{}, &InputGameShortName{}, &InputGeoPointEmpty{}, &InputGeoPointObj{}, &InputGroupCall{}, &InputGroupCallStream{}, &InputInvoiceChatInviteSubscription{}, &InputInvoiceMessage{}, &InputInvoicePremiumGiftCode{}, &InputInvoiceSlug{}, &InputInvoiceStarGift{}, &InputInvoiceStars{}, &InputKeyboardButtonRequestPeer{}, &InputKeyboardButtonURLAuth{}, &InputKeyboardButtonUserProfile{}, &InputMediaAreaChannelPost{}, &InputMediaAreaVenue{}, &InputMediaContact{}, &InputMediaDice{}, &InputMediaDocument{}, &InputMediaDocumentExternal{}, &InputMediaEmpty{}, &InputMediaGame{}, &InputMediaGeoLive{}, &InputMediaGeoPoint{}, &InputMediaInvoice{}, &InputMediaPaidMedia{}, &InputMediaPhoto{}, &InputMediaPhotoExternal{}, &InputMediaPoll{}, &InputMediaStory{}, &InputMediaUploadedDocument{}, &InputMediaUploadedPhoto{}, &InputMediaVenue{}, &InputMediaWebPage{}, &InputMessageCallbackQuery{}, &InputMessageEntityMentionName{}, &InputMessageID{}, &InputMessagePinned{}, &InputMessageReplyTo{}, &InputMessagesFilterChatPhotos{}, &InputMessagesFilterContacts{}, &InputMessagesFilterDocument{}, &InputMessagesFilterEmpty{}, &InputMessagesFilterGeo{}, &InputMessagesFilterGif{}, &InputMessagesFilterMusic{}, &InputMessagesFilterMyMentions{}, &InputMessagesFilterPhoneCalls{}, &InputMessagesFilterPhotoVideo{}, &InputMessagesFilterPhotoVideoDocuments{}, &InputMessagesFilterPhotos{}, &InputMessagesFilterPinned{}, &InputMessagesFilterRoundVideo{}, &InputMessagesFilterRoundVoice{}, &InputMessagesFilterURL{}, &InputMessagesFilterVideo{}, &InputMessagesFilterVoice{}, &InputNotifyBroadcasts{}, &InputNotifyChats{}, &InputNotifyForumTopic{}, &InputNotifyPeerObj{}, &InputNotifyUsers{}, &InputPaymentCredentialsApplePay{}, &InputPaymentCredentialsGooglePay{}, &InputPaymentCredentialsObj{}, &InputPaymentCredentialsSaved{}, &InputPeerChannel{}, &InputPeerChannelFromMessage{}, &InputPeerChat{}, &InputPeerEmpty{}, &InputPeerNotifySettings{}, &InputPeerPhotoFileLocation{}, &InputPeerSelf{}, &InputPeerUser{}, &InputPeerUserFromMessage{}, &InputPhoneCall{}, &InputPhoneContact{}, &InputPhotoEmpty{}, &InputPhotoFileLocation{}, &InputPhotoLegacyFileLocation{}, &InputPhotoObj{}, &InputPrivacyValueAllowAll{}, &InputPrivacyValueAllowBots{}, &InputPrivacyValueAllowChatParticipants{}, &InputPrivacyValueAllowCloseFriends{}, &InputPrivacyValueAllowContacts{}, &InputPrivacyValueAllowPremium{}, &InputPrivacyValueAllowUsers{}, &InputPrivacyValueDisallowAll{}, &InputPrivacyValueDisallowBots{}, &InputPrivacyValueDisallowChatParticipants{}, &InputPrivacyValueDisallowContacts{}, &InputPrivacyValueDisallowUsers{}, &InputQuickReplyShortcutID{}, &InputQuickReplyShortcutObj{}, &InputReplyToMessage{}, &InputReplyToStory{}, &InputSecureFileLocation{}, &InputSecureFileObj{}, &InputSecureFileUploaded{}, &InputSecureValue{}, &InputSingleMedia{}, &InputStarsTransaction{}, &InputStickerSetAnimatedEmoji{}, &InputStickerSetAnimatedEmojiAnimations{}, &InputStickerSetDice{}, &InputStickerSetEmojiChannelDefaultStatuses{}, &InputStickerSetEmojiDefaultStatuses{}, &InputStickerSetEmojiDefaultTopicIcons{}, &InputStickerSetEmojiGenericAnimations{}, &InputStickerSetEmpty{}, &InputStickerSetID{}, &InputStickerSetItem{}, &InputStickerSetPremiumGifts{}, &InputStickerSetShortName{}, &InputStickerSetThumb{}, &InputStickeredMediaDocument{}, &InputStickeredMediaPhoto{}, &InputStorePaymentGiftPremium{}, &InputStorePaymentPremiumGiftCode{}, &InputStorePaymentPremiumGiveaway{}, &InputStorePaymentPremiumSubscription{}, &InputStorePaymentStarsGift{}, &InputStorePaymentStarsGiveaway{}, &InputStorePaymentStarsTopup{}, &InputTakeoutFileLocation{}, &InputThemeObj{}, &InputThemeSettings{}, &InputThemeSlug{}, &InputUserEmpty{}, &InputUserFromMessage{}, &InputUserObj{}, &InputUserSelf{}, &InputWallPaperNoFile{}, &InputWallPaperObj{}, &InputWallPaperSlug{}, &InputWebDocument{}, &InputWebFileAudioAlbumThumbLocation{}, &InputWebFileGeoPointLocation{}, &InputWebFileLocationObj{}, &Invoice{}, &IpPortObj{}, &IpPortSecret{}, &JsonArray{}, &JsonBool{}, &JsonNull{}, &JsonNumber{}, &JsonObject{}, &JsonObjectValue{}, &JsonString{}, &KeyboardButtonBuy{}, &KeyboardButtonCallback{}, &KeyboardButtonCopy{}, &KeyboardButtonGame{}, &KeyboardButtonObj{}, &KeyboardButtonRequestGeoLocation{}, &KeyboardButtonRequestPeer{}, &KeyboardButtonRequestPhone{}, &KeyboardButtonRequestPoll{}, &KeyboardButtonRow{}, &KeyboardButtonSimpleWebView{}, &KeyboardButtonSwitchInline{}, &KeyboardButtonURL{}, &KeyboardButtonURLAuth{}, &KeyboardButtonUserProfile{}, &KeyboardButtonWebView{}, &LabeledPrice{}, &LangPackDifference{}, &LangPackLanguage{}, &LangPackStringDeleted{}, &LangPackStringObj{}, &LangPackStringPluralized{}, &LangpackGetDifferenceParams{}, &LangpackGetLangPackParams{}, &LangpackGetLanguageParams{}, &LangpackGetLanguagesParams{}, &LangpackGetStringsParams{}, &MaskCoords{}, &MediaAreaChannelPost{}, &MediaAreaCoordinates{}, &MediaAreaGeoPoint{}, &MediaAreaSuggestedReaction{}, &MediaAreaURL{}, &MediaAreaVenue{}, &MediaAreaWeather{}, &MessageActionBoostApply{}, &MessageActionBotAllowed{}, &MessageActionChannelCreate{}, &MessageActionChannelMigrateFrom{}, &MessageActionChatAddUser{}, &MessageActionChatCreate{}, &MessageActionChatDeletePhoto{}, &MessageActionChatDeleteUser{}, &MessageActionChatEditPhoto{}, &MessageActionChatEditTitle{}, &MessageActionChatJoinedByLink{}, &MessageActionChatJoinedByRequest{}, &MessageActionChatMigrateTo{}, &MessageActionContactSignUp{}, &MessageActionCreatedBroadcastList{}, &MessageActionCustomAction{}, &MessageActionEmpty{}, &MessageActionGameScore{}, &MessageActionGeoProximityReached{}, &MessageActionGiftCode{}, &MessageActionGiftPremium{}, &MessageActionGiftStars{}, &MessageActionGiveawayLaunch{}, &MessageActionGiveawayResults{}, &MessageActionGroupCall{}, &MessageActionGroupCallScheduled{}, &MessageActionHistoryClear{}, &MessageActionInviteToGroupCall{}, &MessageActionLoginUnknownLocation{}, &MessageActionPaymentRefunded{}, &MessageActionPaymentSent{}, &MessageActionPaymentSentMe{}, &MessageActionPhoneCall{}, &MessageActionPhoneNumberRequest{}, &MessageActionPinMessage{}, &MessageActionPrizeStars{}, &MessageActionRequestedPeer{}, &MessageActionRequestedPeerSentMe{}, &MessageActionScreenshotTaken{}, &MessageActionSecureValuesSent{}, &MessageActionSecureValuesSentMe{}, &MessageActionSetChatTheme{}, &MessageActionSetChatWallPaper{}, &MessageActionSetMessagesTtl{}, &MessageActionStarGift{}, &MessageActionSuggestProfilePhoto{}, &MessageActionTopicCreate{}, &MessageActionTopicEdit{}, &MessageActionTtlChange{}, &MessageActionUserJoined{}, &MessageActionUserUpdatedPhoto{}, &MessageActionWebViewDataSent{}, &MessageActionWebViewDataSentMe{}, &MessageEmpty{}, &MessageEntityBankCard{}, &MessageEntityBlockquote{}, &MessageEntityBold{}, &MessageEntityBotCommand{}, &MessageEntityCashtag{}, &MessageEntityCode{}, &MessageEntityCustomEmoji{}, &MessageEntityEmail{}, &MessageEntityHashtag{}, &MessageEntityItalic{}, &MessageEntityMention{}, &MessageEntityMentionName{}, &MessageEntityPhone{}, &MessageEntityPre{}, &MessageEntitySpoiler{}, &MessageEntityStrike{}, &MessageEntityTextURL{}, &MessageEntityURL{}, &MessageEntityUnderline{}, &MessageEntityUnknown{}, &MessageExtendedMediaObj{}, &MessageExtendedMediaPreview{}, &MessageFwdHeader{}, &MessageMediaContact{}, &MessageMediaDice{}, &MessageMediaDocument{}, &MessageMediaEmpty{}, &MessageMediaGame{}, &MessageMediaGeo{}, &MessageMediaGeoLive{}, &MessageMediaGiveaway{}, &MessageMediaGiveawayResults{}, &MessageMediaInvoice{}, &MessageMediaPaidMedia{}, &MessageMediaPhoto{}, &MessageMediaPoll{}, &MessageMediaStory{}, &MessageMediaUnsupported{}, &MessageMediaVenue{}, &MessageMediaWebPage{}, &MessageObj{}, &MessagePeerReaction{}, &MessagePeerVoteInputOption{}, &MessagePeerVoteMultiple{}, &MessagePeerVoteObj{}, &MessageRange{}, &MessageReactions{}, &MessageReactor{}, &MessageReplies{}, &MessageReplyHeaderObj{}, &MessageReplyStoryHeader{}, &MessageReportOption{}, &MessageService{}, &MessageViews{}, &MessagesAcceptEncryptionParams{}, &MessagesAcceptURLAuthParams{}, &MessagesAddChatUserParams{}, &MessagesAffectedFoundMessages{}, &MessagesAffectedHistory{}, &MessagesAffectedMessages{}, &MessagesAllStickersNotModified{}, &MessagesAllStickersObj{}, &MessagesArchivedStickers{}, &MessagesAvailableEffectsNotModified{}, &MessagesAvailableEffectsObj{}, &MessagesAvailableReactionsNotModified{}, &MessagesAvailableReactionsObj{}, &MessagesBotApp{}, &MessagesBotCallbackAnswer{}, &MessagesBotPreparedInlineMessage{}, &MessagesBotResults{}, &MessagesChannelMessages{}, &MessagesChatAdminsWithInvites{}, &MessagesChatFull{}, &MessagesChatInviteImporters{}, &MessagesChatsObj{}, &MessagesChatsSlice{}, &MessagesCheckChatInviteParams{}, &MessagesCheckHistoryImportParams{}, &MessagesCheckHistoryImportPeerParams{}, &MessagesCheckQuickReplyShortcutParams{}, &MessagesCheckedHistoryImportPeer{}, &MessagesClearAllDraftsParams{}, &MessagesClearRecentReactionsParams{}, &MessagesClearRecentStickersParams{}, &MessagesClickSponsoredMessageParams{}, &MessagesCreateChatParams{}, &MessagesDeleteChatParams{}, &MessagesDeleteChatUserParams{}, &MessagesDeleteExportedChatInviteParams{}, &MessagesDeleteFactCheckParams{}, &MessagesDeleteHistoryParams{}, &MessagesDeleteMessagesParams{}, &MessagesDeletePhoneCallHistoryParams{}, &MessagesDeleteQuickReplyMessagesParams{}, &MessagesDeleteQuickReplyShortcutParams{}, &MessagesDeleteRevokedExportedChatInvitesParams{}, &MessagesDeleteSavedHistoryParams{}, &MessagesDeleteScheduledMessagesParams{}, &MessagesDhConfigNotModified{}, &MessagesDhConfigObj{}, &MessagesDialogFilters{}, &MessagesDialogsNotModified{}, &MessagesDialogsObj{}, &MessagesDialogsSlice{}, &MessagesDiscardEncryptionParams{}, &MessagesDiscussionMessage{}, &MessagesEditChatAboutParams{}, &MessagesEditChatAdminParams{}, &MessagesEditChatDefaultBannedRightsParams{}, &MessagesEditChatPhotoParams{}, &MessagesEditChatTitleParams{}, &MessagesEditExportedChatInviteParams{}, &MessagesEditFactCheckParams{}, &MessagesEditInlineBotMessageParams{}, &MessagesEditMessageParams{}, &MessagesEditQuickReplyShortcutParams{}, &MessagesEmojiGroupsNotModified{}, &MessagesEmojiGroupsObj{}, &MessagesExportChatInviteParams{}, &MessagesExportedChatInviteObj{}, &MessagesExportedChatInviteReplaced{}, &MessagesExportedChatInvites{}, &MessagesFaveStickerParams{}, &MessagesFavedStickersNotModified{}, &MessagesFavedStickersObj{}, &MessagesFeaturedStickersNotModified{}, &MessagesFeaturedStickersObj{}, &MessagesForumTopics{}, &MessagesForwardMessageParams{}, &MessagesForwardMessagesParams{}, &MessagesFoundStickerSetsNotModified{}, &MessagesFoundStickerSetsObj{}, &MessagesFoundStickersNotModified{}, &MessagesFoundStickersObj{}, &MessagesGetAdminsWithInvitesParams{}, &MessagesGetAllChatsParams{}, &MessagesGetAllDraftsParams{}, &MessagesGetAllStickersParams{}, &MessagesGetArchivedStickersParams{}, &MessagesGetAttachMenuBotParams{}, &MessagesGetAttachMenuBotsParams{}, &MessagesGetAttachedStickersParams{}, &MessagesGetAvailableEffectsParams{}, &MessagesGetAvailableReactionsParams{}, &MessagesGetBotAppParams{}, &MessagesGetBotCallbackAnswerParams{}, &MessagesGetChatInviteImportersParams{}, &MessagesGetChatsParams{}, &MessagesGetCommonChatsParams{}, &MessagesGetCustomEmojiDocumentsParams{}, &MessagesGetDefaultHistoryTtlParams{}, &MessagesGetDefaultTagReactionsParams{}, &MessagesGetDhConfigParams{}, &MessagesGetDialogFiltersParams{}, &MessagesGetDialogUnreadMarksParams{}, &MessagesGetDialogsParams{}, &MessagesGetDiscussionMessageParams{}, &MessagesGetDocumentByHashParams{}, &MessagesGetEmojiGroupsParams{}, &MessagesGetEmojiKeywordsDifferenceParams{}, &MessagesGetEmojiKeywordsLanguagesParams{}, &MessagesGetEmojiKeywordsParams{}, &MessagesGetEmojiProfilePhotoGroupsParams{}, &MessagesGetEmojiStatusGroupsParams{}, &MessagesGetEmojiStickerGroupsParams{}, &MessagesGetEmojiStickersParams{}, &MessagesGetEmojiURLParams{}, &MessagesGetExportedChatInviteParams{}, &MessagesGetExportedChatInvitesParams{}, &MessagesGetExtendedMediaParams{}, &MessagesGetFactCheckParams{}, &MessagesGetFavedStickersParams{}, &MessagesGetFeaturedEmojiStickersParams{}, &MessagesGetFeaturedStickersParams{}, &MessagesGetFullChatParams{}, &MessagesGetGameHighScoresParams{}, &MessagesGetHistoryParams{}, &MessagesGetInlineBotResultsParams{}, &MessagesGetInlineGameHighScoresParams{}, &MessagesGetMaskStickersParams{}, &MessagesGetMessageEditDataParams{}, &MessagesGetMessageReactionsListParams{}, &MessagesGetMessageReadParticipantsParams{}, &MessagesGetMessagesParams{}, &MessagesGetMessagesReactionsParams{}, &MessagesGetMessagesViewsParams{}, &MessagesGetMyStickersParams{}, &MessagesGetOldFeaturedStickersParams{}, &MessagesGetOnlinesParams{}, &MessagesGetOutboxReadDateParams{}, &MessagesGetPaidReactionPrivacyParams{}, &MessagesGetPeerDialogsParams{}, &MessagesGetPeerSettingsParams{}, &MessagesGetPinnedDialogsParams{}, &MessagesGetPinnedSavedDialogsParams{}, &MessagesGetPollResultsParams{}, &MessagesGetPollVotesParams{}, &MessagesGetPreparedInlineMessageParams{}, &MessagesGetQuickRepliesParams{}, &MessagesGetQuickReplyMessagesParams{}, &MessagesGetRecentLocationsParams{}, &MessagesGetRecentReactionsParams{}, &MessagesGetRecentStickersParams{}, &MessagesGetRepliesParams{}, &MessagesGetSavedDialogsParams{}, &MessagesGetSavedGifsParams{}, &MessagesGetSavedHistoryParams{}, &MessagesGetSavedReactionTagsParams{}, &MessagesGetScheduledHistoryParams{}, &MessagesGetScheduledMessagesParams{}, &MessagesGetSearchCountersParams{}, &MessagesGetSearchResultsCalendarParams{}, &MessagesGetSearchResultsPositionsParams{}, &MessagesGetSplitRangesParams{}, &MessagesGetSponsoredMessagesParams{}, &MessagesGetStatsURLParams{}, &MessagesGetStickerSetParams{}, &MessagesGetStickersParams{}, &MessagesGetSuggestedDialogFiltersParams{}, &MessagesGetTopReactionsParams{}, &MessagesGetUnreadMentionsParams{}, &MessagesGetUnreadReactionsParams{}, &MessagesGetWebPageParams{}, &MessagesGetWebPagePreviewParams{}, &MessagesGetWebViewResultParams{}, &MessagesHideAllChatJoinRequestsParams{}, &MessagesHideChatJoinRequestParams{}, &MessagesHidePeerSettingsBarParams{}, &MessagesHighScores{}, &MessagesHistoryImport{}, &MessagesHistoryImportParsed{}, &MessagesImportChatInviteParams{}, &MessagesInactiveChats{}, &MessagesInitHistoryImportParams{}, &MessagesInstallStickerSetParams{}, &MessagesInvitedUsers{}, &MessagesMarkDialogUnreadParams{}, &MessagesMessageEditData{}, &MessagesMessageReactionsList{}, &MessagesMessageViews{}, &MessagesMessagesNotModified{}, &MessagesMessagesObj{}, &MessagesMessagesSlice{}, &MessagesMigrateChatParams{}, &MessagesMyStickers{}, &MessagesPeerDialogs{}, &MessagesPeerSettings{}, &MessagesPreparedInlineMessage{}, &MessagesProlongWebViewParams{}, &MessagesQuickRepliesNotModified{}, &MessagesQuickRepliesObj{}, &MessagesRateTranscribedAudioParams{}, &MessagesReactionsNotModified{}, &MessagesReactionsObj{}, &MessagesReadDiscussionParams{}, &MessagesReadEncryptedHistoryParams{}, &MessagesReadFeaturedStickersParams{}, &MessagesReadHistoryParams{}, &MessagesReadMentionsParams{}, &MessagesReadMessageContentsParams{}, &MessagesReadReactionsParams{}, &MessagesReceivedMessagesParams{}, &MessagesReceivedQueueParams{}, &MessagesRecentStickersNotModified{}, &MessagesRecentStickersObj{}, &MessagesReorderPinnedDialogsParams{}, &MessagesReorderPinnedSavedDialogsParams{}, &MessagesReorderQuickRepliesParams{}, &MessagesReorderStickerSetsParams{}, &MessagesReportEncryptedSpamParams{}, &MessagesReportParams{}, &MessagesReportReactionParams{}, &MessagesReportSpamParams{}, &MessagesReportSponsoredMessageParams{}, &MessagesRequestAppWebViewParams{}, &MessagesRequestEncryptionParams{}, &MessagesRequestMainWebViewParams{}, &MessagesRequestSimpleWebViewParams{}, &MessagesRequestURLAuthParams{}, &MessagesRequestWebViewParams{}, &MessagesSaveDefaultSendAsParams{}, &MessagesSaveDraftParams{}, &MessagesSaveGifParams{}, &MessagesSavePreparedInlineMessageParams{}, &MessagesSaveRecentStickerParams{}, &MessagesSavedDialogsNotModified{}, &MessagesSavedDialogsObj{}, &MessagesSavedDialogsSlice{}, &MessagesSavedGifsNotModified{}, &MessagesSavedGifsObj{}, &MessagesSavedReactionTagsNotModified{}, &MessagesSavedReactionTagsObj{}, &MessagesSearchCounter{}, &MessagesSearchCustomEmojiParams{}, &MessagesSearchEmojiStickerSetsParams{}, &MessagesSearchGlobalParams{}, &MessagesSearchParams{}, &MessagesSearchResultsCalendar{}, &MessagesSearchResultsPositions{}, &MessagesSearchSentMediaParams{}, &MessagesSearchStickerSetsParams{}, &MessagesSearchStickersParams{}, &MessagesSendBotRequestedPeerParams{}, &MessagesSendEncryptedFileParams{}, &MessagesSendEncryptedMultiMediaParams{}, &MessagesSendEncryptedParams{}, &MessagesSendEncryptedServiceParams{}, &MessagesSendInlineBotResultParams{}, &MessagesSendMediaParams{}, &MessagesSendMessageParams{}, &MessagesSendMultiMediaParams{}, &MessagesSendPaidReactionParams{}, &MessagesSendQuickReplyMessagesParams{}, &MessagesSendReactionParams{}, &MessagesSendScheduledMessagesParams{}, &MessagesSendScreenshotNotificationParams{}, &MessagesSendVoteParams{}, &MessagesSendWebViewDataParams{}, &MessagesSendWebViewResultMessageParams{}, &MessagesSentEncryptedFile{}, &MessagesSentEncryptedMessageObj{}, &MessagesSetBotCallbackAnswerParams{}, &MessagesSetBotPrecheckoutResultsParams{}, &MessagesSetBotShippingResultsParams{}, &MessagesSetChatAvailableReactionsParams{}, &MessagesSetChatThemeParams{}, &MessagesSetChatWallPaperParams{}, &MessagesSetDefaultHistoryTtlParams{}, &MessagesSetDefaultReactionParams{}, &MessagesSetEncryptedTypingParams{}, &MessagesSetGameScoreParams{}, &MessagesSetHistoryTtlParams{}, &MessagesSetInlineBotResultsParams{}, &MessagesSetInlineGameScoreParams{}, &MessagesSetTypingParams{}, &MessagesSetWebViewResultParams{}, &MessagesSponsoredMessagesEmpty{}, &MessagesSponsoredMessagesObj{}, &MessagesStartBotParams{}, &MessagesStartHistoryImportParams{}, &MessagesStickerSetInstallResultArchive{}, &MessagesStickerSetInstallResultSuccess{}, &MessagesStickerSetNotModified{}, &MessagesStickerSetObj{}, &MessagesStickersNotModified{}, &MessagesStickersObj{}, &MessagesToggleBotInAttachMenuParams{}, &MessagesToggleDialogFilterTagsParams{}, &MessagesToggleDialogPinParams{}, &MessagesToggleNoForwardsParams{}, &MessagesTogglePaidReactionPrivacyParams{}, &MessagesTogglePeerTranslationsParams{}, &MessagesToggleSavedDialogPinParams{}, &MessagesToggleStickerSetsParams{}, &MessagesTranscribeAudioParams{}, &MessagesTranscribedAudio{}, &MessagesTranslateResult{}, &MessagesTranslateTextParams{}, &MessagesUninstallStickerSetParams{}, &MessagesUnpinAllMessagesParams{}, &MessagesUpdateDialogFilterParams{}, &MessagesUpdateDialogFiltersOrderParams{}, &MessagesUpdatePinnedMessageParams{}, &MessagesUpdateSavedReactionTagParams{}, &MessagesUploadEncryptedFileParams{}, &MessagesUploadImportedMediaParams{}, &MessagesUploadMediaParams{}, &MessagesViewSponsoredMessageParams{}, &MessagesVotesList{}, &MessagesWebPage{}, &MessagesWebViewResult{}, &MissingInvitee{}, &MyBoost{}, &NearestDc{}, &NotificationSoundDefault{}, &NotificationSoundLocal{}, &NotificationSoundNone{}, &NotificationSoundRingtone{}, &NotifyBroadcasts{}, &NotifyChats{}, &NotifyForumTopic{}, &NotifyPeerObj{}, &NotifyUsers{}, &OutboxReadDate{}, &Page{}, &PageBlockAnchor{}, &PageBlockAudio{}, &PageBlockAuthorDate{}, &PageBlockBlockquote{}, &PageBlockChannel{}, &PageBlockCollage{}, &PageBlockCover{}, &PageBlockDetails{}, &PageBlockDivider{}, &PageBlockEmbed{}, &PageBlockEmbedPost{}, &PageBlockFooter{}, &PageBlockHeader{}, &PageBlockKicker{}, &PageBlockList{}, &PageBlockMap{}, &PageBlockOrderedList{}, &PageBlockParagraph{}, &PageBlockPhoto{}, &PageBlockPreformatted{}, &PageBlockPullquote{}, &PageBlockRelatedArticles{}, &PageBlockSlideshow{}, &PageBlockSubheader{}, &PageBlockSubtitle{}, &PageBlockTable{}, &PageBlockTitle{}, &PageBlockUnsupported{}, &PageBlockVideo{}, &PageCaption{}, &PageListItemBlocks{}, &PageListItemText{}, &PageListOrderedItemBlocks{}, &PageListOrderedItemText{}, &PageRelatedArticle{}, &PageTableCell{}, &PageTableRow{}, &PasswordKdfAlgoSHA256SHA256Pbkdf2Hmacsha512Iter100000SHA256ModPow{}, &PasswordKdfAlgoUnknown{}, &PaymentCharge{}, &PaymentFormMethod{}, &PaymentRequestedInfo{}, &PaymentSavedCredentialsCard{}, &PaymentsApplyGiftCodeParams{}, &PaymentsAssignAppStoreTransactionParams{}, &PaymentsAssignPlayMarketTransactionParams{}, &PaymentsBankCardData{}, &PaymentsBotCancelStarsSubscriptionParams{}, &PaymentsCanPurchasePremiumParams{}, &PaymentsChangeStarsSubscriptionParams{}, &PaymentsCheckGiftCodeParams{}, &PaymentsCheckedGiftCode{}, &PaymentsClearSavedInfoParams{}, &PaymentsConnectStarRefBotParams{}, &PaymentsConnectedStarRefBots{}, &PaymentsConvertStarGiftParams{}, &PaymentsEditConnectedStarRefBotParams{}, &PaymentsExportInvoiceParams{}, &PaymentsExportedInvoice{}, &PaymentsFulfillStarsSubscriptionParams{}, &PaymentsGetBankCardDataParams{}, &PaymentsGetConnectedStarRefBotParams{}, &PaymentsGetConnectedStarRefBotsParams{}, &PaymentsGetGiveawayInfoParams{}, &PaymentsGetPaymentFormParams{}, &PaymentsGetPaymentReceiptParams{}, &PaymentsGetPremiumGiftCodeOptionsParams{}, &PaymentsGetSavedInfoParams{}, &PaymentsGetStarGiftsParams{}, &PaymentsGetStarsGiftOptionsParams{}, &PaymentsGetStarsGiveawayOptionsParams{}, &PaymentsGetStarsRevenueAdsAccountURLParams{}, &PaymentsGetStarsRevenueStatsParams{}, &PaymentsGetStarsRevenueWithdrawalURLParams{}, &PaymentsGetStarsStatusParams{}, &PaymentsGetStarsSubscriptionsParams{}, &PaymentsGetStarsTopupOptionsParams{}, &PaymentsGetStarsTransactionsByIDParams{}, &PaymentsGetStarsTransactionsParams{}, &PaymentsGetSuggestedStarRefBotsParams{}, &PaymentsGetUserStarGiftsParams{}, &PaymentsGiveawayInfoObj{}, &PaymentsGiveawayInfoResults{}, &PaymentsLaunchPrepaidGiveawayParams{}, &PaymentsPaymentFormObj{}, &PaymentsPaymentFormStarGift{}, &PaymentsPaymentFormStars{}, &PaymentsPaymentReceiptObj{}, &PaymentsPaymentReceiptStars{}, &PaymentsPaymentResultObj{}, &PaymentsPaymentVerificationNeeded{}, &PaymentsRefundStarsChargeParams{}, &PaymentsRequestRecurringPaymentParams{}, &PaymentsSaveStarGiftParams{}, &PaymentsSavedInfo{}, &PaymentsSendPaymentFormParams{}, &PaymentsSendStarsFormParams{}, &PaymentsStarGiftsNotModified{}, &PaymentsStarGiftsObj{}, &PaymentsStarsRevenueAdsAccountURL{}, &PaymentsStarsRevenueStats{}, &PaymentsStarsRevenueWithdrawalURL{}, &PaymentsStarsStatus{}, &PaymentsSuggestedStarRefBots{}, &PaymentsUserStarGifts{}, &PaymentsValidateRequestedInfoParams{}, &PaymentsValidatedRequestedInfo{}, &PeerBlocked{}, &PeerChannel{}, &PeerChat{}, &PeerColor{}, &PeerLocatedObj{}, &PeerNotifySettings{}, &PeerSelfLocated{}, &PeerSettings{}, &PeerStories{}, &PeerUser{}, &PhoneAcceptCallParams{}, &PhoneCallAccepted{}, &PhoneCallDiscarded{}, &PhoneCallEmpty{}, &PhoneCallObj{}, &PhoneCallProtocol{}, &PhoneCallRequested{}, &PhoneCallWaiting{}, &PhoneCheckGroupCallParams{}, &PhoneConfirmCallParams{}, &PhoneConnectionObj{}, &PhoneConnectionWebrtc{}, &PhoneCreateGroupCallParams{}, &PhoneDiscardCallParams{}, &PhoneDiscardGroupCallParams{}, &PhoneEditGroupCallParticipantParams{}, &PhoneEditGroupCallTitleParams{}, &PhoneExportGroupCallInviteParams{}, &PhoneExportedGroupCallInvite{}, &PhoneGetCallConfigParams{}, &PhoneGetGroupCallJoinAsParams{}, &PhoneGetGroupCallParams{}, &PhoneGetGroupCallStreamChannelsParams{}, &PhoneGetGroupCallStreamRtmpURLParams{}, &PhoneGetGroupParticipantsParams{}, &PhoneGroupCall{}, &PhoneGroupCallStreamChannels{}, &PhoneGroupCallStreamRtmpURL{}, &PhoneGroupParticipants{}, &PhoneInviteToGroupCallParams{}, &PhoneJoinAsPeers{}, &PhoneJoinGroupCallParams{}, &PhoneJoinGroupCallPresentationParams{}, &PhoneLeaveGroupCallParams{}, &PhoneLeaveGroupCallPresentationParams{}, &PhonePhoneCall{}, &PhoneReceivedCallParams{}, &PhoneRequestCallParams{}, &PhoneSaveCallDebugParams{}, &PhoneSaveCallLogParams{}, &PhoneSaveDefaultGroupCallJoinAsParams{}, &PhoneSendSignalingDataParams{}, &PhoneSetCallRatingParams{}, &PhoneStartScheduledGroupCallParams{}, &PhoneToggleGroupCallRecordParams{}, &PhoneToggleGroupCallSettingsParams{}, &PhoneToggleGroupCallStartSubscriptionParams{}, &PhotoCachedSize{}, &PhotoEmpty{}, &PhotoObj{}, &PhotoPathSize{}, &PhotoSizeEmpty{}, &PhotoSizeObj{}, &PhotoSizeProgressive{}, &PhotoStrippedSize{}, &PhotosDeletePhotosParams{}, &PhotosGetUserPhotosParams{}, &PhotosPhoto{}, &PhotosPhotosObj{}, &PhotosPhotosSlice{}, &PhotosUpdateProfilePhotoParams{}, &PhotosUploadContactProfilePhotoParams{}, &PhotosUploadProfilePhotoParams{}, &Poll{}, &PollAnswer{}, &PollAnswerVoters{}, &PollResults{}, &PopularContact{}, &PostAddress{}, &PostInteractionCountersMessage{}, &PostInteractionCountersStory{}, &PremiumApplyBoostParams{}, &PremiumBoostsList{}, &PremiumBoostsStatus{}, &PremiumGetBoostsListParams{}, &PremiumGetBoostsStatusParams{}, &PremiumGetMyBoostsParams{}, &PremiumGetUserBoostsParams{}, &PremiumGiftCodeOption{}, &PremiumGiftOption{}, &PremiumMyBoosts{}, &PremiumSubscriptionOption{}, &PrepaidGiveawayObj{}, &PrepaidStarsGiveaway{}, &PrivacyValueAllowAll{}, &PrivacyValueAllowBots{}, &PrivacyValueAllowChatParticipants{}, &PrivacyValueAllowCloseFriends{}, &PrivacyValueAllowContacts{}, &PrivacyValueAllowPremium{}, &PrivacyValueAllowUsers{}, &PrivacyValueDisallowAll{}, &PrivacyValueDisallowBots{}, &PrivacyValueDisallowChatParticipants{}, &PrivacyValueDisallowContacts{}, &PrivacyValueDisallowUsers{}, &PublicForwardMessage{}, &PublicForwardStory{}, &QuickReply{}, &ReactionCount{}, &ReactionCustomEmoji{}, &ReactionEmoji{}, &ReactionEmpty{}, &ReactionPaid{}, &ReactionsNotifySettings{}, &ReadParticipantDate{}, &ReceivedNotifyMessage{}, &RecentMeURLChat{}, &RecentMeURLChatInvite{}, &RecentMeURLStickerSet{}, &RecentMeURLUnknown{}, &RecentMeURLUser{}, &ReplyInlineMarkup{}, &ReplyKeyboardForceReply{}, &ReplyKeyboardHide{}, &ReplyKeyboardMarkup{}, &ReportResultAddComment{}, &ReportResultChooseOption{}, &ReportResultReported{}, &RequestPeerTypeBroadcast{}, &RequestPeerTypeChat{}, &RequestPeerTypeUser{}, &RequestedPeerChannel{}, &RequestedPeerChat{}, &RequestedPeerUser{}, &RestrictionReason{}, &SavedDialog{}, &SavedPhoneContact{}, &SavedReactionTag{}, &SearchResultPosition{}, &SearchResultsCalendarPeriod{}, &SecureCredentialsEncrypted{}, &SecureData{}, &SecureFileEmpty{}, &SecureFileObj{}, &SecurePasswordKdfAlgoPbkdf2Hmacsha512Iter100000{}, &SecurePasswordKdfAlgoSHA512{}, &SecurePasswordKdfAlgoUnknown{}, &SecurePlainEmail{}, &SecurePlainPhone{}, &SecureRequiredTypeObj{}, &SecureRequiredTypeOneOf{}, &SecureSecretSettings{}, &SecureValue{}, &SecureValueErrorData{}, &SecureValueErrorFile{}, &SecureValueErrorFiles{}, &SecureValueErrorFrontSide{}, &SecureValueErrorObj{}, &SecureValueErrorReverseSide{}, &SecureValueErrorSelfie{}, &SecureValueErrorTranslationFile{}, &SecureValueErrorTranslationFiles{}, &SecureValueHash{}, &SendAsPeer{}, &SendMessageCancelAction{}, &SendMessageChooseContactAction{}, &SendMessageChooseStickerAction{}, &SendMessageEmojiInteraction{}, &SendMessageEmojiInteractionSeen{}, &SendMessageGamePlayAction{}, &SendMessageGeoLocationAction{}, &SendMessageHistoryImportAction{}, &SendMessageRecordAudioAction{}, &SendMessageRecordRoundAction{}, &SendMessageRecordVideoAction{}, &SendMessageTypingAction{}, &SendMessageUploadAudioAction{}, &SendMessageUploadDocumentAction{}, &SendMessageUploadPhotoAction{}, &SendMessageUploadRoundAction{}, &SendMessageUploadVideoAction{}, &ShippingOption{}, &SmsJob{}, &SmsjobsEligibleToJoin{}, &SmsjobsFinishJobParams{}, &SmsjobsGetSmsJobParams{}, &SmsjobsGetStatusParams{}, &SmsjobsIsEligibleToJoinParams{}, &SmsjobsJoinParams{}, &SmsjobsLeaveParams{}, &SmsjobsStatus{}, &SmsjobsUpdateSettingsParams{}, &SpeakingInGroupCallAction{}, &SponsoredMessage{}, &SponsoredMessageReportOption{}, &StarGift{}, &StarRefProgram{}, &StarsAmount{}, &StarsGiftOption{}, &StarsGiveawayOption{}, &StarsGiveawayWinnersOption{}, &StarsRevenueStatus{}, &StarsSubscription{}, &StarsSubscriptionPricing{}, &StarsTopupOption{}, &StarsTransaction{}, &StarsTransactionPeerAPI{}, &StarsTransactionPeerAds{}, &StarsTransactionPeerAppStore{}, &StarsTransactionPeerFragment{}, &StarsTransactionPeerObj{}, &StarsTransactionPeerPlayMarket{}, &StarsTransactionPeerPremiumBot{}, &StarsTransactionPeerUnsupported{}, &StatsAbsValueAndPrev{}, &StatsBroadcastRevenueStats{}, &StatsBroadcastRevenueTransactions{}, &StatsBroadcastRevenueWithdrawalURL{}, &StatsBroadcastStats{}, &StatsDateRangeDays{}, &StatsGetBroadcastRevenueStatsParams{}, &StatsGetBroadcastRevenueTransactionsParams{}, &StatsGetBroadcastRevenueWithdrawalURLParams{}, &StatsGetBroadcastStatsParams{}, &StatsGetMegagroupStatsParams{}, &StatsGetMessagePublicForwardsParams{}, &StatsGetMessageStatsParams{}, &StatsGetStoryPublicForwardsParams{}, &StatsGetStoryStatsParams{}, &StatsGraphAsync{}, &StatsGraphError{}, &StatsGraphObj{}, &StatsGroupTopAdmin{}, &StatsGroupTopInviter{}, &StatsGroupTopPoster{}, &StatsLoadAsyncGraphParams{}, &StatsMegagroupStats{}, &StatsMessageStats{}, &StatsPercentValue{}, &StatsPublicForwards{}, &StatsStoryStats{}, &StatsURL{}, &StickerKeyword{}, &StickerPack{}, &StickerSet{}, &StickerSetCoveredObj{}, &StickerSetFullCovered{}, &StickerSetMultiCovered{}, &StickerSetNoCovered{}, &StickersAddStickerToSetParams{}, &StickersChangeStickerParams{}, &StickersChangeStickerPositionParams{}, &StickersCheckShortNameParams{}, &StickersCreateStickerSetParams{}, &StickersDeleteStickerSetParams{}, &StickersRemoveStickerFromSetParams{}, &StickersRenameStickerSetParams{}, &StickersReplaceStickerParams{}, &StickersSetStickerSetThumbParams{}, &StickersSuggestShortNameParams{}, &StickersSuggestedShortName{}, &StoriesActivateStealthModeParams{}, &StoriesAllStoriesNotModified{}, &StoriesAllStoriesObj{}, &StoriesCanSendStoryParams{}, &StoriesDeleteStoriesParams{}, &StoriesEditStoryParams{}, &StoriesExportStoryLinkParams{}, &StoriesFoundStories{}, &StoriesGetAllReadPeerStoriesParams{}, &StoriesGetAllStoriesParams{}, &StoriesGetChatsToSendParams{}, &StoriesGetPeerMaxIDsParams{}, &StoriesGetPeerStoriesParams{}, &StoriesGetPinnedStoriesParams{}, &StoriesGetStoriesArchiveParams{}, &StoriesGetStoriesByIDParams{}, &StoriesGetStoriesViewsParams{}, &StoriesGetStoryReactionsListParams{}, &StoriesGetStoryViewsListParams{}, &StoriesIncrementStoryViewsParams{}, &StoriesPeerStories{}, &StoriesReadStoriesParams{}, &StoriesReportParams{}, &StoriesSearchPostsParams{}, &StoriesSendReactionParams{}, &StoriesSendStoryParams{}, &StoriesStealthMode{}, &StoriesStories{}, &StoriesStoryReactionsList{}, &StoriesStoryViews{}, &StoriesStoryViewsList{}, &StoriesToggleAllStoriesHiddenParams{}, &StoriesTogglePeerStoriesHiddenParams{}, &StoriesTogglePinnedParams{}, &StoriesTogglePinnedToTopParams{}, &StoryFwdHeader{}, &StoryItemDeleted{}, &StoryItemObj{}, &StoryItemSkipped{}, &StoryReactionObj{}, &StoryReactionPublicForward{}, &StoryReactionPublicRepost{}, &StoryViewObj{}, &StoryViewPublicForward{}, &StoryViewPublicRepost{}, &StoryViews{}, &TextAnchor{}, &TextBold{}, &TextConcat{}, &TextEmail{}, &TextEmpty{}, &TextFixed{}, &TextImage{}, &TextItalic{}, &TextMarked{}, &TextPhone{}, &TextPlain{}, &TextStrike{}, &TextSubscript{}, &TextSuperscript{}, &TextURL{}, &TextUnderline{}, &TextWithEntities{}, &Theme{}, &ThemeSettings{}, &Timezone{}, &TopPeer{}, &TopPeerCategoryPeers{}, &URLAuthResultAccepted{}, &URLAuthResultDefault{}, &URLAuthResultRequest{}, &UpdateAttachMenuBots{}, &UpdateAutoSaveSettings{}, &UpdateBotBusinessConnect{}, &UpdateBotCallbackQuery{}, &UpdateBotChatBoost{}, &UpdateBotChatInviteRequester{}, &UpdateBotCommands{}, &UpdateBotDeleteBusinessMessage{}, &UpdateBotEditBusinessMessage{}, &UpdateBotInlineQuery{}, &UpdateBotInlineSend{}, &UpdateBotMenuButton{}, &UpdateBotMessageReaction{}, &UpdateBotMessageReactions{}, &UpdateBotNewBusinessMessage{}, &UpdateBotPrecheckoutQuery{}, &UpdateBotPurchasedPaidMedia{}, &UpdateBotShippingQuery{}, &UpdateBotStopped{}, &UpdateBotSubscriptionExpire{}, &UpdateBotWebhookJson{}, &UpdateBotWebhookJsonQuery{}, &UpdateBroadcastRevenueTransactions{}, &UpdateBusinessBotCallbackQuery{}, &UpdateChannel{}, &UpdateChannelAvailableMessages{}, &UpdateChannelMessageForwards{}, &UpdateChannelMessageViews{}, &UpdateChannelParticipant{}, &UpdateChannelPinnedTopic{}, &UpdateChannelPinnedTopics{}, &UpdateChannelReadMessagesContents{}, &UpdateChannelTooLong{}, &UpdateChannelUserTyping{}, &UpdateChannelViewForumAsMessages{}, &UpdateChannelWebPage{}, &UpdateChat{}, &UpdateChatDefaultBannedRights{}, &UpdateChatParticipant{}, &UpdateChatParticipantAdd{}, &UpdateChatParticipantAdmin{}, &UpdateChatParticipantDelete{}, &UpdateChatParticipants{}, &UpdateChatUserTyping{}, &UpdateConfig{}, &UpdateContactsReset{}, &UpdateDcOptions{}, &UpdateDeleteChannelMessages{}, &UpdateDeleteMessages{}, &UpdateDeleteQuickReply{}, &UpdateDeleteQuickReplyMessages{}, &UpdateDeleteScheduledMessages{}, &UpdateDialogFilter{}, &UpdateDialogFilterOrder{}, &UpdateDialogFilters{}, &UpdateDialogPinned{}, &UpdateDialogUnreadMark{}, &UpdateDraftMessage{}, &UpdateEditChannelMessage{}, &UpdateEditMessage{}, &UpdateEncryptedChatTyping{}, &UpdateEncryptedMessagesRead{}, &UpdateEncryption{}, &UpdateFavedStickers{}, &UpdateFolderPeers{}, &UpdateGeoLiveViewed{}, &UpdateGroupCall{}, &UpdateGroupCallConnection{}, &UpdateGroupCallParticipants{}, &UpdateInlineBotCallbackQuery{}, &UpdateLangPack{}, &UpdateLangPackTooLong{}, &UpdateLoginToken{}, &UpdateMessageExtendedMedia{}, &UpdateMessageID{}, &UpdateMessagePoll{}, &UpdateMessagePollVote{}, &UpdateMessageReactions{}, &UpdateMoveStickerSetToTop{}, &UpdateNewAuthorization{}, &UpdateNewChannelMessage{}, &UpdateNewEncryptedMessage{}, &UpdateNewMessage{}, &UpdateNewQuickReply{}, &UpdateNewScheduledMessage{}, &UpdateNewStickerSet{}, &UpdateNewStoryReaction{}, &UpdateNotifySettings{}, &UpdatePaidReactionPrivacy{}, &UpdatePeerBlocked{}, &UpdatePeerHistoryTtl{}, &UpdatePeerLocated{}, &UpdatePeerSettings{}, &UpdatePeerWallpaper{}, &UpdatePendingJoinRequests{}, &UpdatePhoneCall{}, &UpdatePhoneCallSignalingData{}, &UpdatePinnedChannelMessages{}, &UpdatePinnedDialogs{}, &UpdatePinnedMessages{}, &UpdatePinnedSavedDialogs{}, &UpdatePrivacy{}, &UpdatePtsChanged{}, &UpdateQuickReplies{}, &UpdateQuickReplyMessage{}, &UpdateReadChannelDiscussionInbox{}, &UpdateReadChannelDiscussionOutbox{}, &UpdateReadChannelInbox{}, &UpdateReadChannelOutbox{}, &UpdateReadFeaturedEmojiStickers{}, &UpdateReadFeaturedStickers{}, &UpdateReadHistoryInbox{}, &UpdateReadHistoryOutbox{}, &UpdateReadMessagesContents{}, &UpdateReadStories{}, &UpdateRecentEmojiStatuses{}, &UpdateRecentReactions{}, &UpdateRecentStickers{}, &UpdateSavedDialogPinned{}, &UpdateSavedGifs{}, &UpdateSavedReactionTags{}, &UpdateSavedRingtones{}, &UpdateSentStoryReaction{}, &UpdateServiceNotification{}, &UpdateShort{}, &UpdateShortChatMessage{}, &UpdateShortMessage{}, &UpdateShortSentMessage{}, &UpdateSmsJob{}, &UpdateStarsBalance{}, &UpdateStarsRevenueStatus{}, &UpdateStickerSets{}, &UpdateStickerSetsOrder{}, &UpdateStoriesStealthMode{}, &UpdateStory{}, &UpdateStoryID{}, &UpdateTheme{}, &UpdateTranscribeAudio{}, &UpdateTranscribedAudio{}, &UpdateUser{}, &UpdateUserEmojiStatus{}, &UpdateUserName{}, &UpdateUserPhone{}, &UpdateUserStatus{}, &UpdateUserTyping{}, &UpdateWebPage{}, &UpdateWebViewResultSent{}, &UpdatesChannelDifferenceEmpty{}, &UpdatesChannelDifferenceObj{}, &UpdatesChannelDifferenceTooLong{}, &UpdatesCombined{}, &UpdatesDifferenceEmpty{}, &UpdatesDifferenceObj{}, &UpdatesDifferenceSlice{}, &UpdatesDifferenceTooLong{}, &UpdatesGetChannelDifferenceParams{}, &UpdatesGetDifferenceParams{}, &UpdatesGetStateParams{}, &UpdatesObj{}, &UpdatesState{}, &UpdatesTooLong{}, &UploadCdnFileObj{}, &UploadCdnFileReuploadNeeded{}, &UploadFileCdnRedirect{}, &UploadFileObj{}, &UploadGetCdnFileHashesParams{}, &UploadGetCdnFileParams{}, &UploadGetFileHashesParams{}, &UploadGetFileParams{}, &UploadGetWebFileParams{}, &UploadReuploadCdnFileParams{}, &UploadSaveBigFilePartParams{}, &UploadSaveFilePartParams{}, &UploadWebFile{}, &UserEmpty{}, &UserFull{}, &UserObj{}, &UserProfilePhotoEmpty{}, &UserProfilePhotoObj{}, &UserStarGift{}, &UserStatusEmpty{}, &UserStatusHidden{}, &UserStatusLastMonth{}, &UserStatusLastWeek{}, &UserStatusOffline{}, &UserStatusOnline{}, &UserStatusRecently{}, &Username{}, &UsersGetFullUserParams{}, &UsersGetIsPremiumRequiredToContactParams{}, &UsersGetUsersParams{}, &UsersSetSecureValueErrorsParams{}, &UsersUserFull{}, &VideoSizeEmojiMarkup{}, &VideoSizeObj{}, &VideoSizeStickerMarkup{}, &WallPaperNoFile{}, &WallPaperObj{}, &WallPaperSettings{}, &WebAuthorization{}, &WebDocumentNoProxy{}, &WebDocumentObj{}, &WebPageAttributeStickerSet{}, &WebPageAttributeStory{}, &WebPageAttributeTheme{}, &WebPageEmpty{}, &WebPageNotModified{}, &WebPageObj{}, &WebPagePending{}, &WebPageURLPending{}, &WebViewMessageSent{}, &WebViewResultURL{})
tl.RegisterEnums(AttachMenuPeerTypeBotPm, AttachMenuPeerTypeBroadcast, AttachMenuPeerTypeChat, AttachMenuPeerTypePm, AttachMenuPeerTypeSameBotPm, AuthCodeTypeCall, AuthCodeTypeFlashCall, AuthCodeTypeFragmentSms, AuthCodeTypeMissedCall, AuthCodeTypeSms, BaseThemeArctic, BaseThemeClassic, BaseThemeDay, BaseThemeNight, BaseThemeTinted, InlineQueryPeerTypeBotPm, InlineQueryPeerTypeBroadcast, InlineQueryPeerTypeChat, InlineQueryPeerTypeMegagroup, InlineQueryPeerTypePm, InlineQueryPeerTypeSameBotPm, InputPrivacyKeyAbout, InputPrivacyKeyAddedByPhone, InputPrivacyKeyBirthday, InputPrivacyKeyChatInvite, InputPrivacyKeyForwards, InputPrivacyKeyPhoneCall, InputPrivacyKeyPhoneNumber, InputPrivacyKeyPhoneP2P, InputPrivacyKeyProfilePhoto, InputPrivacyKeyStarGiftsAutoSave, InputPrivacyKeyStatusTimestamp, InputPrivacyKeyVoiceMessages, InputReportReasonChildAbuse, InputReportReasonCopyright, InputReportReasonFake, InputReportReasonGeoIrrelevant, InputReportReasonIllegalDrugs, InputReportReasonOther, InputReportReasonPersonalDetails, InputReportReasonPornography, InputReportReasonSpam, InputReportReasonViolence, MessagesMessageEmptyCrc, NullCrc, PhoneCallDiscardReasonBusy, PhoneCallDiscardReasonDisconnect, PhoneCallDiscardReasonHangup, PhoneCallDiscardReasonMissed, PrivacyKeyAbout, PrivacyKeyAddedByPhone, PrivacyKeyBirthday, PrivacyKeyChatInvite, PrivacyKeyForwards, PrivacyKeyPhoneCall, PrivacyKeyPhoneNumber, PrivacyKeyPhoneP2P, PrivacyKeyProfilePhoto, PrivacyKeyStarGiftsAutoSave, PrivacyKeyStatusTimestamp, PrivacyKeyVoiceMessages, ReactionNotificationsFromAll, ReactionNotificationsFromContacts, SecureValueTypeAddress, SecureValueTypeBankStatement, SecureValueTypeDriverLicense, SecureValueTypeEmail, SecureValueTypeIdentityCard, SecureValueTypeInternalPassport, SecureValueTypePassport, SecureValueTypePassportRegistration, SecureValueTypePersonalDetails, SecureValueTypePhone, SecureValueTypeRentalAgreement, SecureValueTypeTemporaryRegistration, SecureValueTypeUtilityBill, StorageFileGif, StorageFileJpeg, StorageFileMov, StorageFileMp3, StorageFileMp4, StorageFilePartial, StorageFilePdf, StorageFilePng, StorageFileUnknown, StorageFileWebp, TopPeerCategoryBotsApp, TopPeerCategoryBotsInline, TopPeerCategoryBotsPm, TopPeerCategoryChannels, TopPeerCategoryCorrespondents, TopPeerCategoryForwardChats, TopPeerCategoryForwardUsers, TopPeerCategoryGroups, TopPeerCategoryPhoneCalls)
}
diff --git a/telegram/interfaces_gen.go b/telegram/interfaces_gen.go
index 6c99d60d..12250acb 100755
--- a/telegram/interfaces_gen.go
+++ b/telegram/interfaces_gen.go
@@ -9,7 +9,7 @@ type AttachMenuBots interface {
ImplementsAttachMenuBots()
}
-// Represents a list of [bot mini apps that can be launched from the attachment menu ยป](https://core.telegram.org/api/bots/attach)
+// Represents a list of bot mini apps that can be launched from the attachment menu ยป
type AttachMenuBotsObj struct {
Hash int64 // Hash used for caching, for more info click here
Bots []*AttachMenuBot // List of bot mini apps that can be launched from the attachment menu
@@ -36,7 +36,7 @@ type BotApp interface {
ImplementsBotApp()
}
-// Contains information about a [direct link Mini App](https://core.telegram.org/api/bots/webapps#direct-link-mini-apps).
+// Contains information about a direct link Mini App.
type BotAppObj struct {
ID int64 // bot mini app ID
AccessHash int64 // bot mini app access hash
@@ -72,7 +72,7 @@ type BotCommandScope interface {
ImplementsBotCommandScope()
}
-// The specified bot commands will be valid only for chat administrators, in all [groups and supergroups](https://core.telegram.org/api/channel).
+// The specified bot commands will be valid only for chat administrators, in all groups and supergroups.
type BotCommandScopeChatAdmins struct{}
func (*BotCommandScopeChatAdmins) CRC() uint32 {
@@ -81,7 +81,7 @@ func (*BotCommandScopeChatAdmins) CRC() uint32 {
func (*BotCommandScopeChatAdmins) ImplementsBotCommandScope() {}
-// The specified bot commands will be valid in all [groups and supergroups](https://core.telegram.org/api/channel).
+// The specified bot commands will be valid in all groups and supergroups.
type BotCommandScopeChats struct{}
func (*BotCommandScopeChats) CRC() uint32 {
@@ -110,7 +110,7 @@ func (*BotCommandScopePeer) CRC() uint32 {
func (*BotCommandScopePeer) ImplementsBotCommandScope() {}
-// The specified bot commands will be valid for all admins of the specified [group or supergroup](https://core.telegram.org/api/channel).
+// The specified bot commands will be valid for all admins of the specified group or supergroup.
type BotCommandScopePeerAdmins struct {
Peer InputPeer // The chat
}
@@ -121,7 +121,7 @@ func (*BotCommandScopePeerAdmins) CRC() uint32 {
func (*BotCommandScopePeerAdmins) ImplementsBotCommandScope() {}
-// The specified bot commands will be valid only for a specific user in the specified [group or supergroup](https://core.telegram.org/api/channel).
+// The specified bot commands will be valid only for a specific user in the specified group or supergroup.
type BotCommandScopePeerUser struct {
Peer InputPeer // The chat
UserID InputUser // The user
@@ -147,7 +147,7 @@ type BotInlineMessage interface {
ImplementsBotInlineMessage()
}
-// Send whatever media is attached to the [botInlineMediaResult](https://core.telegram.org/constructor/botInlineMediaResult)
+// Send whatever media is attached to the botInlineMediaResult
type BotInlineMessageMediaAuto struct {
InvertMedia bool `tl:"flag:3,encoded_in_bitflags"` // If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
Message string // Caption
@@ -341,7 +341,7 @@ type BotMenuButton interface {
ImplementsBotMenuButton()
}
-// [Bot menu button](https://core.telegram.org/api/bots/menu) that opens a [web app](https://core.telegram.org/api/bots/webapps) when clicked.
+// Bot menu button that opens a web app when clicked.
type BotMenuButtonObj struct {
Text string // Title to be displayed on the menu button instead of 'Menu'
URL string // URL of a web app to open when the user clicks on the button
@@ -353,7 +353,7 @@ func (*BotMenuButtonObj) CRC() uint32 {
func (*BotMenuButtonObj) ImplementsBotMenuButton() {}
-// [Bot menu button](https://core.telegram.org/api/bots/menu) that opens the bot command list when clicked.
+// Bot menu button that opens the bot command list when clicked.
type BotMenuButtonCommands struct{}
func (*BotMenuButtonCommands) CRC() uint32 {
@@ -362,7 +362,7 @@ func (*BotMenuButtonCommands) CRC() uint32 {
func (*BotMenuButtonCommands) ImplementsBotMenuButton() {}
-// Placeholder [bot menu button](https://core.telegram.org/api/bots/menu) never returned to users: see [the docs for more info](https://core.telegram.org/api/bots/menu).
+// Placeholder bot menu button never returned to users: see the docs for more info.
type BotMenuButtonDefault struct{}
func (*BotMenuButtonDefault) CRC() uint32 {
@@ -376,7 +376,7 @@ type BroadcastRevenueTransaction interface {
ImplementsBroadcastRevenueTransaction()
}
-// Describes earnings from sponsored messages in a channel in some time frame, see [here ยป](https://core.telegram.org/api/revenue) for more info.
+// Describes earnings from sponsored messages in a channel in some time frame, see here ยป for more info.
type BroadcastRevenueTransactionProceeds struct {
Amount int64 // Amount in the smallest unit of the cryptocurrency.
FromDate int32 // Start unixtime for the timeframe.
@@ -389,7 +389,7 @@ func (*BroadcastRevenueTransactionProceeds) CRC() uint32 {
func (*BroadcastRevenueTransactionProceeds) ImplementsBroadcastRevenueTransaction() {}
-// Describes a [refund for failed withdrawal of ad earnings ยป](https://core.telegram.org/api/revenue#withdrawing-revenue)
+// Describes a refund for failed withdrawal of ad earnings ยป
type BroadcastRevenueTransactionRefund struct {
Amount int64 // Amount refunded.
Date int32 // Date of refund.
@@ -402,7 +402,7 @@ func (*BroadcastRevenueTransactionRefund) CRC() uint32 {
func (*BroadcastRevenueTransactionRefund) ImplementsBroadcastRevenueTransaction() {}
-// Describes a [withdrawal of ad earnings ยป](https://core.telegram.org/api/revenue#withdrawing-revenue)
+// Describes a withdrawal of ad earnings ยป
type BroadcastRevenueTransactionWithdrawal struct {
Pending bool `tl:"flag:0,encoded_in_bitflags"` // Whether the withdrawal is currently pending
Failed bool `tl:"flag:2,encoded_in_bitflags"` // Whether the withdrawal has failed
@@ -428,7 +428,7 @@ type BusinessAwayMessageSchedule interface {
ImplementsBusinessAwayMessageSchedule()
}
-// Always send [Telegram Business away messages](https://core.telegram.org/api/business#away-messages) to users writing to us in private.
+// Always send Telegram Business away messages to users writing to us in private.
type BusinessAwayMessageScheduleAlways struct{}
func (*BusinessAwayMessageScheduleAlways) CRC() uint32 {
@@ -437,7 +437,7 @@ func (*BusinessAwayMessageScheduleAlways) CRC() uint32 {
func (*BusinessAwayMessageScheduleAlways) ImplementsBusinessAwayMessageSchedule() {}
-// Send [Telegram Business away messages](https://core.telegram.org/api/business#away-messages) to users writing to us in private in the specified time span.
+// Send Telegram Business away messages to users writing to us in private in the specified time span.
type BusinessAwayMessageScheduleCustom struct {
StartDate int32 // Start date (UNIX timestamp).
EndDate int32 // End date (UNIX timestamp).
@@ -449,7 +449,7 @@ func (*BusinessAwayMessageScheduleCustom) CRC() uint32 {
func (*BusinessAwayMessageScheduleCustom) ImplementsBusinessAwayMessageSchedule() {}
-// Send [Telegram Business away messages](https://core.telegram.org/api/business#away-messages) to users writing to us in private outside of the configured [Telegram Business working hours](https://core.telegram.org/api/business#opening-hours).
+// Send Telegram Business away messages to users writing to us in private outside of the configured Telegram Business working hours.
type BusinessAwayMessageScheduleOutsideWorkHours struct{}
func (*BusinessAwayMessageScheduleOutsideWorkHours) CRC() uint32 {
@@ -475,7 +475,7 @@ func (*ChannelAdminLogEventActionChangeAbout) CRC() uint32 {
func (*ChannelAdminLogEventActionChangeAbout) ImplementsChannelAdminLogEventAction() {}
-// The set of allowed [message reactions ยป](https://core.telegram.org/api/reactions) for this channel has changed
+// The set of allowed message reactions ยป for this channel has changed
type ChannelAdminLogEventActionChangeAvailableReactions struct {
PrevValue ChatReactions // Previously allowed reaction emojis
NewValue ChatReactions // New allowed reaction emojis
@@ -487,31 +487,7 @@ func (*ChannelAdminLogEventActionChangeAvailableReactions) CRC() uint32 {
func (*ChannelAdminLogEventActionChangeAvailableReactions) ImplementsChannelAdminLogEventAction() {}
-// The [custom emoji](https://core.telegram.org/api/custom-emoji) used to generate the pattern of the [background profile color ยป](https://core.telegram.org/api/colors) of a channel was changed.
-type ChannelAdminLogEventActionChangeBackgroundEmoji struct {
- PrevValue int64 // Old custom emoji ID (or 0 if none)
- NewValue int64 // New custom emoji ID (or 0 if none)
-}
-
-func (*ChannelAdminLogEventActionChangeBackgroundEmoji) CRC() uint32 {
- return 0x445fc434
-}
-
-func (*ChannelAdminLogEventActionChangeBackgroundEmoji) ImplementsChannelAdminLogEventAction() {}
-
-// The [background profile color ยป](https://core.telegram.org/api/colors) of a channel was changed.
-type ChannelAdminLogEventActionChangeColor struct {
- PrevValue int32 // The old color palette ID.
- NewValue int32 // The old color palette ID.
-}
-
-func (*ChannelAdminLogEventActionChangeColor) CRC() uint32 {
- return 0x3c2b247b
-}
-
-func (*ChannelAdminLogEventActionChangeColor) ImplementsChannelAdminLogEventAction() {}
-
-// The [emoji status](https://core.telegram.org/api/emoji-status) was changed
+// The emoji status was changed
type ChannelAdminLogEventActionChangeEmojiStatus struct {
PrevValue EmojiStatus // Previous emoji status
NewValue EmojiStatus // New emoji status
@@ -523,7 +499,7 @@ func (*ChannelAdminLogEventActionChangeEmojiStatus) CRC() uint32 {
func (*ChannelAdminLogEventActionChangeEmojiStatus) ImplementsChannelAdminLogEventAction() {}
-// The supergroup's [custom emoji stickerset](https://core.telegram.org/api/boost#setting-a-custom-emoji-stickerset-for-supergroups) was changed.
+// The supergroup's custom emoji stickerset was changed.
type ChannelAdminLogEventActionChangeEmojiStickerSet struct {
PrevStickerset InputStickerSet // Old value
NewStickerset InputStickerSet // New value
@@ -571,7 +547,7 @@ func (*ChannelAdminLogEventActionChangeLocation) CRC() uint32 {
func (*ChannelAdminLogEventActionChangeLocation) ImplementsChannelAdminLogEventAction() {}
-// The [message accent color](https://core.telegram.org/api/colors) was changed
+// The message accent color was changed
type ChannelAdminLogEventActionChangePeerColor struct {
PrevValue *PeerColor // Previous accent palette
NewValue *PeerColor // New accent palette
@@ -595,7 +571,7 @@ func (*ChannelAdminLogEventActionChangePhoto) CRC() uint32 {
func (*ChannelAdminLogEventActionChangePhoto) ImplementsChannelAdminLogEventAction() {}
-// The [profile accent color](https://core.telegram.org/api/colors) was changed
+// The profile accent color was changed
type ChannelAdminLogEventActionChangeProfilePeerColor struct {
PrevValue *PeerColor // Previous accent palette
NewValue *PeerColor // New accent palette
@@ -667,7 +643,7 @@ func (*ChannelAdminLogEventActionChangeUsernames) CRC() uint32 {
func (*ChannelAdminLogEventActionChangeUsernames) ImplementsChannelAdminLogEventAction() {}
-// The [wallpaper](https://core.telegram.org/api/wallpapers) was changed
+// The wallpaper was changed
type ChannelAdminLogEventActionChangeWallpaper struct {
PrevValue WallPaper // Previous wallpaper
NewValue WallPaper // New wallpaper
@@ -679,7 +655,7 @@ func (*ChannelAdminLogEventActionChangeWallpaper) CRC() uint32 {
func (*ChannelAdminLogEventActionChangeWallpaper) ImplementsChannelAdminLogEventAction() {}
-// A [forum topic](https://core.telegram.org/api/forum#forum-topics) was created
+// A forum topic was created
type ChannelAdminLogEventActionCreateTopic struct {
Topic ForumTopic // The forum topic that was created
}
@@ -713,7 +689,7 @@ func (*ChannelAdminLogEventActionDeleteMessage) CRC() uint32 {
func (*ChannelAdminLogEventActionDeleteMessage) ImplementsChannelAdminLogEventAction() {}
-// A [forum topic](https://core.telegram.org/api/forum#forum-topics) was deleted
+// A forum topic was deleted
type ChannelAdminLogEventActionDeleteTopic struct {
Topic ForumTopic // The forum topic that was deleted
}
@@ -747,7 +723,7 @@ func (*ChannelAdminLogEventActionEditMessage) CRC() uint32 {
func (*ChannelAdminLogEventActionEditMessage) ImplementsChannelAdminLogEventAction() {}
-// A [forum topic](https://core.telegram.org/api/forum#forum-topics) was edited
+// A forum topic was edited
type ChannelAdminLogEventActionEditTopic struct {
PrevTopic ForumTopic // Previous topic information
NewTopic ForumTopic // New topic information
@@ -813,7 +789,7 @@ func (*ChannelAdminLogEventActionParticipantJoin) CRC() uint32 {
func (*ChannelAdminLogEventActionParticipantJoin) ImplementsChannelAdminLogEventAction() {}
-// A user joined the [supergroup/channel](https://core.telegram.org/api/channel) using a specific invite link
+// A user joined the supergroup/channel using a specific invite link
type ChannelAdminLogEventActionParticipantJoinByInvite struct {
ViaChatlist bool `tl:"flag:0,encoded_in_bitflags"` // The participant joined by importing a chat folder deep link.
Invite ExportedChatInvite // The invite link used to join the supergroup/channel
@@ -861,9 +837,10 @@ func (*ChannelAdminLogEventActionParticipantMute) CRC() uint32 {
func (*ChannelAdminLogEventActionParticipantMute) ImplementsChannelAdminLogEventAction() {}
+// A paid subscriber has extended their Telegram Star subscription ยป.
type ChannelAdminLogEventActionParticipantSubExtend struct {
- PrevParticipant ChannelParticipant
- NewParticipant ChannelParticipant
+ PrevParticipant ChannelParticipant // Same as new_participant.
+ NewParticipant ChannelParticipant // The subscriber that extended the subscription.
}
func (*ChannelAdminLogEventActionParticipantSubExtend) CRC() uint32 {
@@ -872,7 +849,7 @@ func (*ChannelAdminLogEventActionParticipantSubExtend) CRC() uint32 {
func (*ChannelAdminLogEventActionParticipantSubExtend) ImplementsChannelAdminLogEventAction() {}
-// The admin [rights](https://core.telegram.org/api/rights) of a user were changed
+// The admin rights of a user were changed
type ChannelAdminLogEventActionParticipantToggleAdmin struct {
PrevParticipant ChannelParticipant // Previous admin rights
NewParticipant ChannelParticipant // New admin rights
@@ -884,7 +861,7 @@ func (*ChannelAdminLogEventActionParticipantToggleAdmin) CRC() uint32 {
func (*ChannelAdminLogEventActionParticipantToggleAdmin) ImplementsChannelAdminLogEventAction() {}
-// The banned [rights](https://core.telegram.org/api/rights) of a user were changed
+// The banned rights of a user were changed
type ChannelAdminLogEventActionParticipantToggleBan struct {
PrevParticipant ChannelParticipant // Old banned rights of user
NewParticipant ChannelParticipant // New banned rights of user
@@ -918,7 +895,7 @@ func (*ChannelAdminLogEventActionParticipantVolume) CRC() uint32 {
func (*ChannelAdminLogEventActionParticipantVolume) ImplementsChannelAdminLogEventAction() {}
-// A [forum topic](https://core.telegram.org/api/forum#forum-topics) was pinned or unpinned
+// A forum topic was pinned or unpinned
type ChannelAdminLogEventActionPinTopic struct {
PrevTopic ForumTopic `tl:"flag:0"` // Previous topic information
NewTopic ForumTopic `tl:"flag:1"` // New topic information
@@ -967,7 +944,7 @@ func (*ChannelAdminLogEventActionStopPoll) CRC() uint32 {
func (*ChannelAdminLogEventActionStopPoll) ImplementsChannelAdminLogEventAction() {}
-// [Native antispam](https://core.telegram.org/api/antispam) functionality was enabled or disabled.
+// Native antispam functionality was enabled or disabled.
type ChannelAdminLogEventActionToggleAntiSpam struct {
NewValue bool // Whether antispam functionality was enabled or disabled.
}
@@ -978,7 +955,7 @@ func (*ChannelAdminLogEventActionToggleAntiSpam) CRC() uint32 {
func (*ChannelAdminLogEventActionToggleAntiSpam) ImplementsChannelAdminLogEventAction() {}
-// [Forum](https://core.telegram.org/api/forum) functionality was enabled or disabled.
+// Forum functionality was enabled or disabled.
type ChannelAdminLogEventActionToggleForum struct {
NewValue bool // Whether forum functionality was enabled or disabled.
}
@@ -1022,7 +999,7 @@ func (*ChannelAdminLogEventActionToggleNoForwards) CRC() uint32 {
func (*ChannelAdminLogEventActionToggleNoForwards) ImplementsChannelAdminLogEventAction() {}
-// The hidden prehistory setting was [changed](https://core.telegram.org/method/channels.togglePreHistoryHidden)
+// The hidden prehistory setting was changed
type ChannelAdminLogEventActionTogglePreHistoryHidden struct {
NewValue bool // New value
}
@@ -1033,8 +1010,9 @@ func (*ChannelAdminLogEventActionTogglePreHistoryHidden) CRC() uint32 {
func (*ChannelAdminLogEventActionTogglePreHistoryHidden) ImplementsChannelAdminLogEventAction() {}
+// Channel signature profiles were enabled/disabled.
type ChannelAdminLogEventActionToggleSignatureProfiles struct {
- NewValue bool
+ NewValue bool // New value
}
func (*ChannelAdminLogEventActionToggleSignatureProfiles) CRC() uint32 {
@@ -1054,7 +1032,7 @@ func (*ChannelAdminLogEventActionToggleSignatures) CRC() uint32 {
func (*ChannelAdminLogEventActionToggleSignatures) ImplementsChannelAdminLogEventAction() {}
-// [Slow mode setting for supergroups was changed](https://core.telegram.org/method/channels.toggleSlowMode)
+// Slow mode setting for supergroups was changed
type ChannelAdminLogEventActionToggleSlowMode struct {
PrevValue int32 // Previous slow mode value
NewValue int32 // New slow mode value
@@ -1140,9 +1118,9 @@ type ChannelParticipant interface {
// Channel/supergroup participant
type ChannelParticipantObj struct {
- UserID int64
- Date int32
- SubscriptionUntilDate int32 `tl:"flag:0"`
+ UserID int64 // Participant user ID
+ Date int32 // Date joined
+ SubscriptionUntilDate int32 `tl:"flag:0"` // If set, contains the expiration date of the current Telegram Star subscription period for the specified participant.
}
func (*ChannelParticipantObj) CRC() uint32 {
@@ -1226,11 +1204,11 @@ func (*ChannelParticipantLeft) ImplementsChannelParticipant() {}
// Myself
type ChannelParticipantSelf struct {
- ViaRequest bool `tl:"flag:0,encoded_in_bitflags"`
- UserID int64
- InviterID int64
- Date int32
- SubscriptionUntilDate int32 `tl:"flag:1"`
+ ViaRequest bool `tl:"flag:0,encoded_in_bitflags"` // Whether I joined upon specific approval of an admin
+ UserID int64 // User ID
+ InviterID int64 // User that invited me to the channel/supergroup
+ Date int32 // When did I join the channel/supergroup
+ SubscriptionUntilDate int32 `tl:"flag:1"` // If set, contains the expiration date of the current Telegram Star subscription period for the specified participant.
}
func (*ChannelParticipantSelf) CRC() uint32 {
@@ -1301,7 +1279,7 @@ func (*ChannelParticipantsKicked) ImplementsChannelParticipantsFilter() {}
/*
This filter is used when looking for supergroup members to mention.
-This filter will automatically remove anonymous admins, and return even non-participant users that replied to a specific [thread](https://core.telegram.org/api/threads) through the [comment section](https://core.telegram.org/api/threads#channel-comments) of a channel.
+This filter will automatically remove anonymous admins, and return even non-participant users that replied to a specific thread through the comment section of a channel.
*/
type ChannelParticipantsMentions struct {
Q string `tl:"flag:0"` // Filter by user name or username
@@ -1345,48 +1323,81 @@ type Chat interface {
// Channel/supergroup info
type Channel struct {
- Creator bool `tl:"flag:0,encoded_in_bitflags"`
- Left bool `tl:"flag:2,encoded_in_bitflags"`
- Broadcast bool `tl:"flag:5,encoded_in_bitflags"`
- Verified bool `tl:"flag:7,encoded_in_bitflags"`
- Megagroup bool `tl:"flag:8,encoded_in_bitflags"`
- Restricted bool `tl:"flag:9,encoded_in_bitflags"`
- Signatures bool `tl:"flag:11,encoded_in_bitflags"`
- Min bool `tl:"flag:12,encoded_in_bitflags"`
- Scam bool `tl:"flag:19,encoded_in_bitflags"`
- HasLink bool `tl:"flag:20,encoded_in_bitflags"`
- HasGeo bool `tl:"flag:21,encoded_in_bitflags"`
- SlowmodeEnabled bool `tl:"flag:22,encoded_in_bitflags"`
- CallActive bool `tl:"flag:23,encoded_in_bitflags"`
- CallNotEmpty bool `tl:"flag:24,encoded_in_bitflags"`
- Fake bool `tl:"flag:25,encoded_in_bitflags"`
- Gigagroup bool `tl:"flag:26,encoded_in_bitflags"`
- Noforwards bool `tl:"flag:27,encoded_in_bitflags"`
- JoinToSend bool `tl:"flag:28,encoded_in_bitflags"`
- JoinRequest bool `tl:"flag:29,encoded_in_bitflags"`
- Forum bool `tl:"flag:30,encoded_in_bitflags"`
- StoriesHidden bool `tl:"flag2:1,encoded_in_bitflags"`
- StoriesHiddenMin bool `tl:"flag2:2,encoded_in_bitflags"`
- StoriesUnavailable bool `tl:"flag2:3,encoded_in_bitflags"`
- SignatureProfiles bool `tl:"flag2:12,encoded_in_bitflags"`
- ID int64
- AccessHash int64 `tl:"flag:13"`
- Title string
- Username string `tl:"flag:6"`
- Photo ChatPhoto
- Date int32
- RestrictionReason []*RestrictionReason `tl:"flag:9"`
- AdminRights *ChatAdminRights `tl:"flag:14"`
- BannedRights *ChatBannedRights `tl:"flag:15"`
- DefaultBannedRights *ChatBannedRights `tl:"flag:18"`
- ParticipantsCount int32 `tl:"flag:17"`
- Usernames []*Username `tl:"flag2:0"`
- StoriesMaxID int32 `tl:"flag2:4"`
- Color *PeerColor `tl:"flag2:7"`
- ProfileColor *PeerColor `tl:"flag2:8"`
- EmojiStatus EmojiStatus `tl:"flag2:9"`
- Level int32 `tl:"flag2:10"`
- SubscriptionUntilDate int32 `tl:"flag2:11"`
+ Creator bool `tl:"flag:0,encoded_in_bitflags"` // Whether the current user is the creator of this channel
+ Left bool `tl:"flag:2,encoded_in_bitflags"` // Whether the current user has left or is not a member of this channel
+ Broadcast bool `tl:"flag:5,encoded_in_bitflags"` // Is this a channel?
+ Verified bool `tl:"flag:7,encoded_in_bitflags"` // Is this channel verified by telegram?
+ Megagroup bool `tl:"flag:8,encoded_in_bitflags"` /*
+ Is this a supergroup?
+ Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID,.
+ */
+ Restricted bool `tl:"flag:9,encoded_in_bitflags"` // Whether viewing/writing in this channel for a reason (see restriction_reason)
+ Signatures bool `tl:"flag:11,encoded_in_bitflags"` // Whether signatures are enabled (channels)
+ Min bool `tl:"flag:12,encoded_in_bitflags"` // See min
+ Scam bool `tl:"flag:19,encoded_in_bitflags"` /*
+ This channel/supergroup is probably a scam
+ Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID,.
+ */
+ HasLink bool `tl:"flag:20,encoded_in_bitflags"` /*
+ Whether this channel has a linked discussion group (or this supergroup is a channel's discussion group). The actual ID of the linked channel/supergroup is contained in channelFull.linked_chat_id.
+ Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID,.
+ */
+ HasGeo bool `tl:"flag:21,encoded_in_bitflags"` // Whether this chanel has a geoposition
+ SlowmodeEnabled bool `tl:"flag:22,encoded_in_bitflags"` /*
+ Whether slow mode is enabled for groups to prevent flood in chat.
+ Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID,.
+ */
+ CallActive bool `tl:"flag:23,encoded_in_bitflags"` // Whether a group call or livestream is currently active
+ CallNotEmpty bool `tl:"flag:24,encoded_in_bitflags"` // Whether there's anyone in the group call or livestream
+ Fake bool `tl:"flag:25,encoded_in_bitflags"` /*
+ If set, this supergroup/channel was reported by many users as a fake or scam: be careful when interacting with it.
+ Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID,.
+ */
+ Gigagroup bool `tl:"flag:26,encoded_in_bitflags"` /*
+ Whether this supergroup is a gigagroup
+ Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID,.
+ */
+ Noforwards bool `tl:"flag:27,encoded_in_bitflags"` // Whether this channel or group is protected, thus does not allow forwarding messages from it
+ JoinToSend bool `tl:"flag:28,encoded_in_bitflags"` /*
+ Whether a user needs to join the supergroup before they can send messages: can be false only for discussion groups , toggle using channels.toggleJoinToSend
+ Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID,.
+ */
+ JoinRequest bool `tl:"flag:29,encoded_in_bitflags"` /*
+ Whether a user's join request will have to be approved by administrators, toggle using channels.toggleJoinToSend
+ Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID,.
+ */
+ Forum bool `tl:"flag:30,encoded_in_bitflags"` /*
+ Whether this supergroup is a forum.
+ Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID,.
+ */
+ StoriesHidden bool `tl:"flag2:1,encoded_in_bitflags"` // Whether we have hidden all stories posted by this channel.
+ StoriesHiddenMin bool `tl:"flag2:2,encoded_in_bitflags"` // If set, indicates that the stories_hidden flag was not populated, and its value must cannot be relied on; use the previously cached value, or re-fetch the constructor using channels.getChannels to obtain the latest value of the stories_hidden flag.
+ StoriesUnavailable bool `tl:"flag2:3,encoded_in_bitflags"` // No stories from the channel are visible.
+ SignatureProfiles bool `tl:"flag2:12,encoded_in_bitflags"` // If set, messages sent by admins to this channel will link to the admin's profile (just like with groups).
+ ID int64 // ID of the channel
+ AccessHash int64 `tl:"flag:13"` // Access hash
+ Title string // Title
+ Username string `tl:"flag:6"` // Main active username.
+ Photo ChatPhoto // Profile photo
+ Date int32 // Date when the user joined the supergroup/channel, or if the user isn't a member, its creation date
+ RestrictionReason []*RestrictionReason `tl:"flag:9"` /*
+ Contains the reason why access to this channel must be restricted.
+ Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID,.
+ */
+ AdminRights *ChatAdminRights `tl:"flag:14"` // Admin rights of the user in this channel (see rights)
+ BannedRights *ChatBannedRights `tl:"flag:15"` // Banned rights of the user in this channel (see rights)
+ DefaultBannedRights *ChatBannedRights `tl:"flag:18"` // Default chat rights (see rights)
+ ParticipantsCount int32 `tl:"flag:17"` // Participant count
+ Usernames []*Username `tl:"flag2:0"` // Additional usernames
+ StoriesMaxID int32 `tl:"flag2:4"` // ID of the maximum read story.
+ Color *PeerColor `tl:"flag2:7"` // The channel's accent color.
+ ProfileColor *PeerColor `tl:"flag2:8"` // The channel's profile color.
+ EmojiStatus EmojiStatus `tl:"flag2:9"` // Emoji status
+ Level int32 `tl:"flag2:10"` /*
+ Boost level.
+ Changes to this flag should invalidate the local channelFull cache for this channel/supergroup ID,.
+ */
+ SubscriptionUntilDate int32 `tl:"flag2:11"` // Expiration date of the Telegram Star subscription the current user has bought to gain access to this channel.
}
func (*Channel) CRC() uint32 {
@@ -1477,68 +1488,71 @@ type ChatFull interface {
ImplementsChatFull()
}
-// Full info about a [channel](https://core.telegram.org/api/channel#channels), [supergroup](https://core.telegram.org/api/channel#supergroups) or [gigagroup](https://core.telegram.org/api/channel#gigagroups).
+// Full info about a channel, supergroup or gigagroup.
type ChannelFull struct {
- CanViewParticipants bool `tl:"flag:3,encoded_in_bitflags"`
- CanSetUsername bool `tl:"flag:6,encoded_in_bitflags"`
- CanSetStickers bool `tl:"flag:7,encoded_in_bitflags"`
- HiddenPrehistory bool `tl:"flag:10,encoded_in_bitflags"`
- CanSetLocation bool `tl:"flag:16,encoded_in_bitflags"`
- HasScheduled bool `tl:"flag:19,encoded_in_bitflags"`
- CanViewStats bool `tl:"flag:20,encoded_in_bitflags"`
- Blocked bool `tl:"flag:22,encoded_in_bitflags"`
- CanDeleteChannel bool `tl:"flag2:0,encoded_in_bitflags"`
- Antispam bool `tl:"flag2:1,encoded_in_bitflags"`
- ParticipantsHidden bool `tl:"flag2:2,encoded_in_bitflags"`
- TranslationsDisabled bool `tl:"flag2:3,encoded_in_bitflags"`
- StoriesPinnedAvailable bool `tl:"flag2:5,encoded_in_bitflags"`
- ViewForumAsMessages bool `tl:"flag2:6,encoded_in_bitflags"`
- RestrictedSponsored bool `tl:"flag2:11,encoded_in_bitflags"`
- CanViewRevenue bool `tl:"flag2:12,encoded_in_bitflags"`
- PaidMediaAllowed bool `tl:"flag2:14,encoded_in_bitflags"`
- CanViewStarsRevenue bool `tl:"flag2:15,encoded_in_bitflags"`
- PaidReactionsAvailable bool `tl:"flag2:16,encoded_in_bitflags"`
- ID int64
- About string
- ParticipantsCount int32 `tl:"flag:0"`
- AdminsCount int32 `tl:"flag:1"`
- KickedCount int32 `tl:"flag:2"`
- BannedCount int32 `tl:"flag:2"`
- OnlineCount int32 `tl:"flag:13"`
- ReadInboxMaxID int32
- ReadOutboxMaxID int32
- UnreadCount int32
- ChatPhoto Photo
- NotifySettings *PeerNotifySettings
- ExportedInvite ExportedChatInvite `tl:"flag:23"`
- BotInfo []*BotInfo
- MigratedFromChatID int64 `tl:"flag:4"`
- MigratedFromMaxID int32 `tl:"flag:4"`
- PinnedMsgID int32 `tl:"flag:5"`
- Stickerset *StickerSet `tl:"flag:8"`
- AvailableMinID int32 `tl:"flag:9"`
- FolderID int32 `tl:"flag:11"`
- LinkedChatID int64 `tl:"flag:14"`
- Location ChannelLocation `tl:"flag:15"`
- SlowmodeSeconds int32 `tl:"flag:17"`
- SlowmodeNextSendDate int32 `tl:"flag:18"`
- StatsDc int32 `tl:"flag:12"`
- Pts int32
- Call *InputGroupCall `tl:"flag:21"`
- TtlPeriod int32 `tl:"flag:24"`
- PendingSuggestions []string `tl:"flag:25"`
- GroupcallDefaultJoinAs Peer `tl:"flag:26"`
- ThemeEmoticon string `tl:"flag:27"`
- RequestsPending int32 `tl:"flag:28"`
- RecentRequesters []int64 `tl:"flag:28"`
- DefaultSendAs Peer `tl:"flag:29"`
- AvailableReactions ChatReactions `tl:"flag:30"`
- ReactionsLimit int32 `tl:"flag2:13"`
- Stories *PeerStories `tl:"flag2:4"`
- Wallpaper WallPaper `tl:"flag2:7"`
- BoostsApplied int32 `tl:"flag2:8"`
- BoostsUnrestrict int32 `tl:"flag2:9"`
- Emojiset *StickerSet `tl:"flag2:10"`
+ CanViewParticipants bool `tl:"flag:3,encoded_in_bitflags"` // Can we view the participant list?
+ CanSetUsername bool `tl:"flag:6,encoded_in_bitflags"` // Can we set the channel's username?
+ CanSetStickers bool `tl:"flag:7,encoded_in_bitflags"` // Can we associate a stickerpack to the supergroup?
+ HiddenPrehistory bool `tl:"flag:10,encoded_in_bitflags"` // Is the history before we joined hidden to us?
+ CanSetLocation bool `tl:"flag:16,encoded_in_bitflags"` // Can we set the geolocation of this group (for geogroups)
+ HasScheduled bool `tl:"flag:19,encoded_in_bitflags"` // Whether scheduled messages are available
+ CanViewStats bool `tl:"flag:20,encoded_in_bitflags"` // Can the user view channel/supergroup statistics
+ Blocked bool `tl:"flag:22,encoded_in_bitflags"` // Whether any anonymous admin of this supergroup was blocked: if set, you won't receive messages from anonymous group admins in discussion replies via @replies
+ CanDeleteChannel bool `tl:"flag2:0,encoded_in_bitflags"` // Can we delete this channel?
+ Antispam bool `tl:"flag2:1,encoded_in_bitflags"` // Whether native antispam functionality is enabled in this supergroup.
+ ParticipantsHidden bool `tl:"flag2:2,encoded_in_bitflags"` // Whether the participant list is hidden.
+ TranslationsDisabled bool `tl:"flag2:3,encoded_in_bitflags"` // Whether the real-time chat translation popup should be hidden.
+ StoriesPinnedAvailable bool `tl:"flag2:5,encoded_in_bitflags"` // Whether this user has some pinned stories.
+ ViewForumAsMessages bool `tl:"flag2:6,encoded_in_bitflags"` /*
+ Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a "View as messages" setting in the local client.
+ This setting only affects the current account, and is synced to other logged in sessions using the channels.toggleViewForumAsMessages method; invoking this method will update the value of this flag.
+ */
+ RestrictedSponsored bool `tl:"flag2:11,encoded_in_bitflags"` // Whether ads on this channel were disabled as specified here (this flag is only visible to the owner of the channel).
+ CanViewRevenue bool `tl:"flag2:12,encoded_in_bitflags"` // If set, this user can view ad revenue statistics for this channel.
+ PaidMediaAllowed bool `tl:"flag2:14,encoded_in_bitflags"` // Whether the current user can send or forward paid media to this channel.
+ CanViewStarsRevenue bool `tl:"flag2:15,encoded_in_bitflags"` // If set, this user can view Telegram Star revenue statistics for this channel.
+ PaidReactionsAvailable bool `tl:"flag2:16,encoded_in_bitflags"` // If set, users may send paid Telegram Star reactions to messages of this channel.
+ ID int64 // ID of the channel
+ About string // Info about the channel
+ ParticipantsCount int32 `tl:"flag:0"` // Number of participants of the channel
+ AdminsCount int32 `tl:"flag:1"` // Number of channel admins
+ KickedCount int32 `tl:"flag:2"` // Number of users kicked from the channel
+ BannedCount int32 `tl:"flag:2"` // Number of users banned from the channel
+ OnlineCount int32 `tl:"flag:13"` // Number of users currently online
+ ReadInboxMaxID int32 // Position up to which all incoming messages are read.
+ ReadOutboxMaxID int32 // Position up to which all outgoing messages are read.
+ UnreadCount int32 // Count of unread messages
+ ChatPhoto Photo // Channel picture
+ NotifySettings *PeerNotifySettings // Notification settings
+ ExportedInvite ExportedChatInvite `tl:"flag:23"` // Invite link
+ BotInfo []*BotInfo // Info about bots in the channel/supergroup
+ MigratedFromChatID int64 `tl:"flag:4"` // The chat ID from which this group was migrated
+ MigratedFromMaxID int32 `tl:"flag:4"` // The message ID in the original chat at which this group was migrated
+ PinnedMsgID int32 `tl:"flag:5"` // Message ID of the last pinned message
+ Stickerset *StickerSet `tl:"flag:8"` // Associated stickerset
+ AvailableMinID int32 `tl:"flag:9"` // Identifier of a maximum unavailable message in a channel due to hidden history.
+ FolderID int32 `tl:"flag:11"` // Peer folder ID, for more info click here
+ LinkedChatID int64 `tl:"flag:14"` // ID of the linked discussion chat for channels (and vice versa, the ID of the linked channel for discussion chats).
+ Location ChannelLocation `tl:"flag:15"` // Location of the geogroup
+ SlowmodeSeconds int32 `tl:"flag:17"` // If specified, users in supergroups will only be able to send one message every slowmode_seconds seconds
+ SlowmodeNextSendDate int32 `tl:"flag:18"` // Indicates when the user will be allowed to send another message in the supergroup (unixtime)
+ StatsDc int32 `tl:"flag:12"` // If set, specifies the DC to use for fetching channel statistics
+ Pts int32 // Latest PTS for this channel
+ Call *InputGroupCall `tl:"flag:21"` // Livestream or group call information
+ TtlPeriod int32 `tl:"flag:24"` // Time-To-Live of messages in this channel or supergroup
+ PendingSuggestions []string `tl:"flag:25"` // A list of suggested actions for the supergroup admin,.
+ GroupcallDefaultJoinAs Peer `tl:"flag:26"` // When using phone.getGroupCallJoinAs to get a list of peers that can be used to join a group call, this field indicates the peer that should be selected by default.
+ ThemeEmoticon string `tl:"flag:27"` // Emoji representing a specific chat theme
+ RequestsPending int32 `tl:"flag:28"` // Pending join requests
+ RecentRequesters []int64 `tl:"flag:28"` // IDs of users who requested to join recently
+ DefaultSendAs Peer `tl:"flag:29"` // Default peer used for sending messages to this channel
+ AvailableReactions ChatReactions `tl:"flag:30"` // Allowed message reactions
+ ReactionsLimit int32 `tl:"flag2:13"` // This flag may be used to impose a custom limit of unique reactions (i.e. a customizable version of appConfig.reactions_uniq_max).
+ Stories *PeerStories `tl:"flag2:4"` // Channel stories
+ Wallpaper WallPaper `tl:"flag2:7"` // Wallpaper
+ BoostsApplied int32 `tl:"flag2:8"` // The number of boosts the current user has applied to the current supergroup.
+ BoostsUnrestrict int32 `tl:"flag2:9"` // The number of boosts this supergroup requires to bypass slowmode and other restrictions,.
+ Emojiset *StickerSet `tl:"flag2:10"` // Custom emoji stickerset associated to the current supergroup, set using channels.setEmojiStickers after reaching the appropriate boost level,.
}
func (*ChannelFull) CRC() uint32 {
@@ -1551,7 +1565,7 @@ func (*ChannelFull) FlagIndex() int {
func (*ChannelFull) ImplementsChatFull() {}
-// Full info about a [basic group](https://core.telegram.org/api/channel#basic-groups).
+// Full info about a basic group.
type ChatFullObj struct {
CanSetUsername bool `tl:"flag:7,encoded_in_bitflags"` // Can we change the username of this chat
HasScheduled bool `tl:"flag:8,encoded_in_bitflags"` // Whether scheduled messages are available
@@ -1592,23 +1606,23 @@ type ChatInvite interface {
// Chat invite info
type ChatInviteObj struct {
- Channel bool `tl:"flag:0,encoded_in_bitflags"`
- Broadcast bool `tl:"flag:1,encoded_in_bitflags"`
- Public bool `tl:"flag:2,encoded_in_bitflags"`
- Megagroup bool `tl:"flag:3,encoded_in_bitflags"`
- RequestNeeded bool `tl:"flag:6,encoded_in_bitflags"`
- Verified bool `tl:"flag:7,encoded_in_bitflags"`
- Scam bool `tl:"flag:8,encoded_in_bitflags"`
- Fake bool `tl:"flag:9,encoded_in_bitflags"`
- CanRefulfillSubscription bool `tl:"flag:11,encoded_in_bitflags"`
- Title string
- About string `tl:"flag:5"`
- Photo Photo
- ParticipantsCount int32
- Participants []User `tl:"flag:4"`
- Color int32
- SubscriptionPricing *StarsSubscriptionPricing `tl:"flag:10"`
- SubscriptionFormID int64 `tl:"flag:12"`
+ Channel bool `tl:"flag:0,encoded_in_bitflags"` // Whether this is a channel/supergroup or a normal group
+ Broadcast bool `tl:"flag:1,encoded_in_bitflags"` // Whether this is a channel
+ Public bool `tl:"flag:2,encoded_in_bitflags"` // Whether this is a public channel/supergroup
+ Megagroup bool `tl:"flag:3,encoded_in_bitflags"` // Whether this is a supergroup
+ RequestNeeded bool `tl:"flag:6,encoded_in_bitflags"` // Whether the join request must be first approved by an administrator
+ Verified bool `tl:"flag:7,encoded_in_bitflags"` // Is this chat or channel verified by Telegram?
+ Scam bool `tl:"flag:8,encoded_in_bitflags"` // This chat is probably a scam
+ Fake bool `tl:"flag:9,encoded_in_bitflags"` // If set, this chat was reported by many users as a fake or scam: be careful when interacting with it.
+ CanRefulfillSubscription bool `tl:"flag:11,encoded_in_bitflags"` // If set, indicates that the user has already paid for the associated Telegram Star subscriptions and it hasn't expired yet, so they may re-join the channel using messages.importChatInvite without repeating the payment.
+ Title string // Chat/supergroup/channel title
+ About string `tl:"flag:5"` // Description of the group of channel
+ Photo Photo // Chat/supergroup/channel photo
+ ParticipantsCount int32 // Participant count
+ Participants []User `tl:"flag:4"` // A few of the participants that are in the group
+ Color int32 // Profile color palette ID
+ SubscriptionPricing *StarsSubscriptionPricing `tl:"flag:10"` // For Telegram Star subscriptions , contains the pricing of the subscription the user must activate to join the private channel.
+ SubscriptionFormID int64 `tl:"flag:12"` // For Telegram Star subscriptions , the ID of the payment form for the subscription.
}
func (*ChatInviteObj) CRC() uint32 {
@@ -1648,13 +1662,6 @@ type ChatParticipant interface {
tl.Object
ImplementsChatParticipant()
}
-type ChatChannelParticipant struct{}
-
-func (*ChatChannelParticipant) CRC() uint32 {
- return 0xc8d7493e
-}
-
-func (*ChatChannelParticipant) ImplementsChatParticipant() {}
// Group member.
type ChatParticipantObj struct {
@@ -1809,8 +1816,8 @@ type DialogObj struct {
Pinned bool `tl:"flag:2,encoded_in_bitflags"` // Is the dialog pinned
UnreadMark bool `tl:"flag:3,encoded_in_bitflags"` // Whether the chat was manually marked as unread
ViewForumAsMessages bool `tl:"flag:6,encoded_in_bitflags"` /*
- Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a "View as messages" setting in the local client.
- This setting only affects the current account, and is synced to other logged in sessions using the channels.toggleViewForumAsMessages method; invoking this method will update the value of this flag.
+ Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a "View as messages" setting in the local client.
+ This setting only affects the current account, and is synced to other logged in sessions using the channels.toggleViewForumAsMessages method; invoking this method will update the value of this flag.
*/
Peer Peer // The chat
TopMessage int32 // The latest message ID
@@ -1863,7 +1870,7 @@ type DialogFilter interface {
ImplementsDialogFilter()
}
-// Dialog filter AKA [folder](https://core.telegram.org/api/folders)
+// Dialog filter AKA folder
type DialogFilterObj struct {
Contacts bool `tl:"flag:0,encoded_in_bitflags"` // Whether to include all contacts in this folder
NonContacts bool `tl:"flag:1,encoded_in_bitflags"` // Whether to include all non-contacts in this folder
@@ -1892,7 +1899,7 @@ func (*DialogFilterObj) FlagIndex() int {
func (*DialogFilterObj) ImplementsDialogFilter() {}
-// A folder imported using a [chat folder deep link ยป](https://core.telegram.org/api/links#chat-folder-links).
+// A folder imported using a chat folder deep link ยป.
type DialogFilterChatlist struct {
HasMyInvites bool `tl:"flag:26,encoded_in_bitflags"` // Whether the current user has created some chat folder deep links to share the folder as well.
ID int32 // ID of the folder
@@ -1938,7 +1945,7 @@ func (*DialogPeerObj) CRC() uint32 {
func (*DialogPeerObj) ImplementsDialogPeer() {}
-// [Peer folder](https://core.telegram.org/api/folders#peer-folders)
+// Peer folder
type DialogPeerFolder struct {
FolderID int32 // Peer folder ID, for more info click here
}
@@ -2010,8 +2017,8 @@ type DocumentAttributeAudio struct {
Title string `tl:"flag:0"` // Name of song
Performer string `tl:"flag:1"` // Performer
Waveform []byte `tl:"flag:2"` /*
- Waveform: consists in a series of bitpacked 5-bit values.
- Example implementation: android.
+ Waveform: consists in a series of bitpacked 5-bit values.
+ Example implementation: android.
*/
}
@@ -2095,15 +2102,15 @@ func (*DocumentAttributeSticker) ImplementsDocumentAttribute() {}
// Defines a video
type DocumentAttributeVideo struct {
- RoundMessage bool `tl:"flag:0,encoded_in_bitflags"`
- SupportsStreaming bool `tl:"flag:1,encoded_in_bitflags"`
- Nosound bool `tl:"flag:3,encoded_in_bitflags"`
- Duration float64
- W int32
- H int32
- PreloadPrefixSize int32 `tl:"flag:2"`
- VideoStartTs float64 `tl:"flag:4"`
- VideoCodec string `tl:"flag:5"`
+ RoundMessage bool `tl:"flag:0,encoded_in_bitflags"` // Whether this is a round video
+ SupportsStreaming bool `tl:"flag:1,encoded_in_bitflags"` // Whether the video supports streaming
+ Nosound bool `tl:"flag:3,encoded_in_bitflags"` // Whether the specified document is a video file with no audio tracks (a GIF animation (even as MPEG4), for example)
+ Duration float64 // Duration in seconds
+ W int32 // Video width
+ H int32 // Video height
+ PreloadPrefixSize int32 `tl:"flag:2"` // Number of bytes to preload when preloading videos (particularly video stories).
+ VideoStartTs float64 `tl:"flag:4"` // Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview and thumbnail.
+ VideoCodec string `tl:"flag:5"` // Codec used for the video, i.e. "h264", "h265", or "av1"
}
func (*DocumentAttributeVideo) CRC() uint32 {
@@ -2121,7 +2128,7 @@ type DraftMessage interface {
ImplementsDraftMessage()
}
-// Represents a message [draft](https://core.telegram.org/api/drafts).
+// Represents a message draft.
type DraftMessageObj struct {
NoWebpage bool `tl:"flag:1,encoded_in_bitflags"` // Whether no webpage preview will be generated
InvertMedia bool `tl:"flag:6,encoded_in_bitflags"` // If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
@@ -2222,7 +2229,7 @@ func (*EmailVerifyPurposeLoginSetup) CRC() uint32 {
func (*EmailVerifyPurposeLoginSetup) ImplementsEmailVerifyPurpose() {}
-// Verify an email for use in [telegram passport](https://core.telegram.org/api/passport)
+// Verify an email for use in telegram passport
type EmailVerifyPurposePassport struct{}
func (*EmailVerifyPurposePassport) CRC() uint32 {
@@ -2236,7 +2243,7 @@ type EmojiGroup interface {
ImplementsEmojiGroup()
}
-// Represents an [emoji category](https://core.telegram.org/api/emoji-categories).
+// Represents an emoji category.
type EmojiGroupObj struct {
Title string // Category name, i.e. "Animals", "Flags", "Faces" and so on...
IconEmojiID int64 // A single custom emoji used as preview for the category.
@@ -2249,7 +2256,7 @@ func (*EmojiGroupObj) CRC() uint32 {
func (*EmojiGroupObj) ImplementsEmojiGroup() {}
-// Represents an [emoji category](https://core.telegram.org/api/emoji-categories), that should be moved to the top of the list when choosing a sticker for a [business introduction](https://core.telegram.org/api/business#business-introduction)
+// Represents an emoji category, that should be moved to the top of the list when choosing a sticker for a business introduction
type EmojiGroupGreeting struct {
Title string // Category name, i.e. "Animals", "Flags", "Faces" and so on...
IconEmojiID int64 // A single custom emoji used as preview for the category.
@@ -2262,7 +2269,7 @@ func (*EmojiGroupGreeting) CRC() uint32 {
func (*EmojiGroupGreeting) ImplementsEmojiGroup() {}
-// An [emoji category](https://core.telegram.org/api/emoji-categories), used to select all [Premium](https://core.telegram.org/api/premium)-only stickers (i.e. those with a [Premium effect ยป](https://core.telegram.org/api/stickers#premium-animated-sticker-effects))/[Premium](https://core.telegram.org/api/premium)-only [custom emojis](https://core.telegram.org/api/custom-emoji) (i.e. those where the [documentAttributeCustomEmoji](https://core.telegram.org/constructor/documentAttributeCustomEmoji).`free` flag is not set)
+// An emoji category, used to select all Premium-only stickers (i.e. those with a Premium effect ยป)/Premium-only custom emojis (i.e. those where the documentAttributeCustomEmoji.`free` flag is not set)
type EmojiGroupPremium struct {
Title string // Category name, i.e. "Animals", "Flags", "Faces" and so on...
IconEmojiID int64 // A single custom emoji used as preview for the category.
@@ -2308,7 +2315,7 @@ type EmojiList interface {
ImplementsEmojiList()
}
-// Represents a list of [custom emojis](https://core.telegram.org/api/custom-emoji).
+// Represents a list of custom emojis.
type EmojiListObj struct {
Hash int64 // Hash used for caching, for more info click here
DocumentID []int64 // Custom emoji IDs
@@ -2320,7 +2327,7 @@ func (*EmojiListObj) CRC() uint32 {
func (*EmojiListObj) ImplementsEmojiList() {}
-// The list of [custom emojis](https://core.telegram.org/api/custom-emoji) hasn't changed.
+// The list of custom emojis hasn't changed.
type EmojiListNotModified struct{}
func (*EmojiListNotModified) CRC() uint32 {
@@ -2334,7 +2341,7 @@ type EmojiStatus interface {
ImplementsEmojiStatus()
}
-// An [emoji status](https://core.telegram.org/api/emoji-status)
+// An emoji status
type EmojiStatusObj struct {
DocumentID int64 // Custom emoji document ID
}
@@ -2354,7 +2361,7 @@ func (*EmojiStatusEmpty) CRC() uint32 {
func (*EmojiStatusEmpty) ImplementsEmojiStatus() {}
-// An [emoji status](https://core.telegram.org/api/emoji-status) valid until the specified date
+// An emoji status valid until the specified date
type EmojiStatusUntil struct {
DocumentID int64 // Custom emoji document ID
Until int32 // This status is valid until this date
@@ -2379,9 +2386,9 @@ type EncryptedChatObj struct {
AdminID int64 // Chat creator ID
ParticipantID int64 // ID of the second chat participant
GAOrB []byte /*
- B = g ^ b mod p, if the currently authorized user is the chat's creator,
- or A = g ^ a mod p otherwise
- See Wikipedia for more info
+ B = g ^ b mod p, if the currently authorized user is the chat's creator,
+ or A = g ^ a mod p otherwise
+ See Wikipedia for more info
*/
KeyFingerprint int64 // 64-bit fingerprint of received key
}
@@ -2525,20 +2532,20 @@ type ExportedChatInvite interface {
// Exported chat invite
type ChatInviteExported struct {
- Revoked bool `tl:"flag:0,encoded_in_bitflags"`
- Permanent bool `tl:"flag:5,encoded_in_bitflags"`
- RequestNeeded bool `tl:"flag:6,encoded_in_bitflags"`
- Link string
- AdminID int64
- Date int32
- StartDate int32 `tl:"flag:4"`
- ExpireDate int32 `tl:"flag:1"`
- UsageLimit int32 `tl:"flag:2"`
- Usage int32 `tl:"flag:3"`
- Requested int32 `tl:"flag:7"`
- SubscriptionExpired int32 `tl:"flag:10"`
- Title string `tl:"flag:8"`
- SubscriptionPricing *StarsSubscriptionPricing `tl:"flag:9"`
+ Revoked bool `tl:"flag:0,encoded_in_bitflags"` // Whether this chat invite was revoked
+ Permanent bool `tl:"flag:5,encoded_in_bitflags"` // Whether this chat invite has no expiration
+ RequestNeeded bool `tl:"flag:6,encoded_in_bitflags"` // Whether users importing this invite link will have to be approved to join the channel or group
+ Link string // Chat invitation link
+ AdminID int64 // ID of the admin that created this chat invite
+ Date int32 // When was this chat invite created
+ StartDate int32 `tl:"flag:4"` // When was this chat invite last modified
+ ExpireDate int32 `tl:"flag:1"` // When does this chat invite expire
+ UsageLimit int32 `tl:"flag:2"` // Maximum number of users that can join using this link
+ Usage int32 `tl:"flag:3"` // How many users joined using this link
+ Requested int32 `tl:"flag:7"` // Number of users that have already used this link to join
+ SubscriptionExpired int32 `tl:"flag:10"` // For Telegram Star subscriptions , contains the number of chat members which have already joined the chat using the link, but have already left due to expiration of their subscription.
+ Title string `tl:"flag:8"` // Custom description for the invite link, visible only to admins
+ SubscriptionPricing *StarsSubscriptionPricing `tl:"flag:9"` // For Telegram Star subscriptions , contains the pricing of the subscription the user must activate to join the private channel.
}
func (*ChatInviteExported) CRC() uint32 {
@@ -2551,7 +2558,7 @@ func (*ChatInviteExported) FlagIndex() int {
func (*ChatInviteExported) ImplementsExportedChatInvite() {}
-// Used in updates and in the channel log to indicate when a user is requesting to join or has joined a [discussion group](https://core.telegram.org/api/discussion#requiring-users-to-join-the-group)
+// Used in updates and in the channel log to indicate when a user is requesting to join or has joined a discussion group
type ChatInvitePublicJoinRequests struct{}
func (*ChatInvitePublicJoinRequests) CRC() uint32 {
@@ -2565,15 +2572,15 @@ type ForumTopic interface {
ImplementsForumTopic()
}
-// Represents a [forum topic](https://core.telegram.org/api/forum#forum-topics).
+// Represents a forum topic.
type ForumTopicObj struct {
My bool `tl:"flag:1,encoded_in_bitflags"` // Whether the topic was created by the current user
Closed bool `tl:"flag:2,encoded_in_bitflags"` // Whether the topic is closed (no messages can be sent to it)
Pinned bool `tl:"flag:3,encoded_in_bitflags"` // Whether the topic is pinned
Short bool `tl:"flag:5,encoded_in_bitflags"` /*
- Whether this constructor is a reduced version of the full topic information.
- If set, only the my, closed, id, date, title, icon_color, icon_emoji_id and from_id parameters will contain valid information.
- Reduced info is usually only returned in topic-related admin log events and in the messages.channelMessages constructor: if needed, full information can be fetched using channels.getForumTopicsByID.
+ Whether this constructor is a reduced version of the full topic information.
+ If set, only the my, closed, id, date, title, icon_color, icon_emoji_id and from_id parameters will contain valid information.
+ Reduced info is usually only returned in topic-related admin log events and in the messages.channelMessages constructor: if needed, full information can be fetched using channels.getForumTopicsByID.
*/
Hidden bool `tl:"flag:6,encoded_in_bitflags"` // Whether the topic is hidden (only valid for the "General" topic, id=1)
ID int32 // Topic ID
@@ -2700,7 +2707,7 @@ type InputBotApp interface {
ImplementsInputBotApp()
}
-// Used to fetch information about a [direct link Mini App](https://core.telegram.org/api/bots/webapps#direct-link-mini-apps) by its ID
+// Used to fetch information about a direct link Mini App by its ID
type InputBotAppID struct {
ID int64 // direct link Mini App ID.
AccessHash int64 // Access hash, obtained from the botApp constructor.
@@ -2712,7 +2719,7 @@ func (*InputBotAppID) CRC() uint32 {
func (*InputBotAppID) ImplementsInputBotApp() {}
-// Used to fetch information about a [direct link Mini App](https://core.telegram.org/api/bots/webapps#direct-link-mini-apps) by its short name
+// Used to fetch information about a direct link Mini App by its short name
type InputBotAppShortName struct {
BotID InputUser // ID of the bot that owns the bot mini app
ShortName string // Short name, obtained from a Direct Mini App deep link
@@ -3016,7 +3023,7 @@ func (*InputChannelEmpty) CRC() uint32 {
func (*InputChannelEmpty) ImplementsInputChannel() {}
-// Defines a [min](https://core.telegram.org/api/min) channel that was seen in a certain message of a certain chat.
+// Defines a min channel that was seen in a certain message of a certain chat.
type InputChannelFromMessage struct {
Peer InputPeer // The chat where the channel was seen
MsgID int32 // The message ID in the chat where the channel was seen
@@ -3086,7 +3093,7 @@ func (*InputCheckPasswordEmpty) CRC() uint32 {
func (*InputCheckPasswordEmpty) ImplementsInputCheckPasswordSRP() {}
-// Constructor for checking the validity of a 2FA SRP password (see [SRP](https://core.telegram.org/api/srp))
+// Constructor for checking the validity of a 2FA SRP password (see SRP)
type InputCheckPasswordSRPObj struct {
SRPID int64 // SRP ID
A []byte // A parameter (see SRP)
@@ -3104,7 +3111,7 @@ type InputCollectible interface {
ImplementsInputCollectible()
}
-// Represents a [phone number fragment collectible](https://core.telegram.org/api/fragment)
+// Represents a phone number fragment collectible
type InputCollectiblePhone struct {
Phone string // Phone number
}
@@ -3115,7 +3122,7 @@ func (*InputCollectiblePhone) CRC() uint32 {
func (*InputCollectiblePhone) ImplementsInputCollectible() {}
-// Represents a [username fragment collectible](https://core.telegram.org/api/fragment)
+// Represents a username fragment collectible
type InputCollectibleUsername struct {
Username string // Username
}
@@ -3142,7 +3149,7 @@ func (*InputDialogPeerObj) CRC() uint32 {
func (*InputDialogPeerObj) ImplementsInputDialogPeer() {}
-// All peers in a [peer folder](https://core.telegram.org/api/folders#peer-folders)
+// All peers in a peer folder
type InputDialogPeerFolder struct {
FolderID int32 // Peer folder ID, for more info click here
}
@@ -3197,7 +3204,7 @@ func (*InputEncryptedFileObj) CRC() uint32 {
func (*InputEncryptedFileObj) ImplementsInputEncryptedFile() {}
-// Assigns a new big encrypted file (over 10 MB in size), saved in parts using the method [upload.saveBigFilePart](https://core.telegram.org/method/upload.saveBigFilePart).
+// Assigns a new big encrypted file (over 10 MB in size), saved in parts using the method upload.saveBigFilePart.
type InputEncryptedFileBigUploaded struct {
ID int64 // Random file id, created by the client
Parts int32 // Number of saved parts
@@ -3238,7 +3245,7 @@ type InputFile interface {
ImplementsInputFile()
}
-// Defines a file saved in parts using the method [upload.saveFilePart](https://core.telegram.org/method/upload.saveFilePart).
+// Defines a file saved in parts using the method upload.saveFilePart.
type InputFileObj struct {
ID int64 // Random file identifier created by the client
Parts int32 // Number of parts saved
@@ -3252,7 +3259,7 @@ func (*InputFileObj) CRC() uint32 {
func (*InputFileObj) ImplementsInputFile() {}
-// Assigns a big file (over 10 MB in size), saved in part using the method [upload.saveBigFilePart](https://core.telegram.org/method/upload.saveBigFilePart).
+// Assigns a big file (over 10 MB in size), saved in part using the method upload.saveBigFilePart.
type InputFileBig struct {
ID int64 // Random file id, created by the client
Parts int32 // Number of parts saved
@@ -3265,7 +3272,7 @@ func (*InputFileBig) CRC() uint32 {
func (*InputFileBig) ImplementsInputFile() {}
-// Used to [edit the thumbnail/static preview of a story, see here ยป](https://core.telegram.org/api/stories#editing-stories) for more info on the full flow.
+// Used to edit the thumbnail/static preview of a story, see here ยป for more info on the full flow.
type InputFileStoryDocument struct {
ID InputDocument // The old story video.
}
@@ -3357,7 +3364,7 @@ func (*InputPeerPhotoFileLocation) FlagIndex() int {
func (*InputPeerPhotoFileLocation) ImplementsInputFileLocation() {}
-// Use this object to download a photo with [upload.getFile](https://core.telegram.org/method/upload.getFile) method
+// Use this object to download a photo with upload.getFile method
type InputPhotoFileLocation struct {
ID int64 // Photo ID, obtained from the photo object
AccessHash int64 // Photo's access hash, obtained from the photo object
@@ -3387,7 +3394,7 @@ func (*InputPhotoLegacyFileLocation) CRC() uint32 {
func (*InputPhotoLegacyFileLocation) ImplementsInputFileLocation() {}
-// Location of encrypted telegram [passport](https://core.telegram.org/passport) file.
+// Location of encrypted telegram passport file.
type InputSecureFileLocation struct {
ID int64 // File ID, id parameter value from secureFile
AccessHash int64 // Checksum, access_hash parameter value from secureFile
@@ -3399,7 +3406,7 @@ func (*InputSecureFileLocation) CRC() uint32 {
func (*InputSecureFileLocation) ImplementsInputFileLocation() {}
-// Location of stickerset thumbnail (see [files](https://core.telegram.org/api/files))
+// Location of stickerset thumbnail (see files)
type InputStickerSetThumb struct {
Stickerset InputStickerSet // Sticker set
ThumbVersion int32 // Thumbnail version
@@ -3411,7 +3418,7 @@ func (*InputStickerSetThumb) CRC() uint32 {
func (*InputStickerSetThumb) ImplementsInputFileLocation() {}
-// Used to download a JSON file that will contain all personal data related to features that do not have a specialized [takeout method](https://core.telegram.org/api/takeout) yet, see [here ยป](https://core.telegram.org/api/takeout) for more info on the takeout API.
+// Used to download a JSON file that will contain all personal data related to features that do not have a specialized takeout method yet, see here ยป for more info on the takeout API.
type InputTakeoutFileLocation struct{}
func (*InputTakeoutFileLocation) CRC() uint32 {
@@ -3484,8 +3491,10 @@ type InputInvoice interface {
tl.Object
ImplementsInputInvoice()
}
+
+// Used to pay for a Telegram Star subscription ยป.
type InputInvoiceChatInviteSubscription struct {
- Hash string
+ Hash string // The invitation link of the Telegram Star subscription
}
func (*InputInvoiceChatInviteSubscription) CRC() uint32 {
@@ -3494,7 +3503,7 @@ func (*InputInvoiceChatInviteSubscription) CRC() uint32 {
func (*InputInvoiceChatInviteSubscription) ImplementsInputInvoice() {}
-// An invoice contained in a [messageMediaInvoice](https://core.telegram.org/constructor/messageMediaInvoice) message or [paid media ยป](https://core.telegram.org/api/paid-media).
+// An invoice contained in a messageMediaInvoice message or paid media ยป.
type InputInvoiceMessage struct {
Peer InputPeer // Chat where the invoice/paid media was sent
MsgID int32 // Message ID
@@ -3506,7 +3515,7 @@ func (*InputInvoiceMessage) CRC() uint32 {
func (*InputInvoiceMessage) ImplementsInputInvoice() {}
-// Used if the user wishes to start a channel/supergroup [giveaway](https://core.telegram.org/api/giveaways) or send some [giftcodes](https://core.telegram.org/api/giveaways) to members of a channel/supergroup, in exchange for [boosts](https://core.telegram.org/api/boost).
+// Used if the user wishes to start a channel/supergroup giveaway or send some giftcodes to members of a channel/supergroup, in exchange for boosts.
type InputInvoicePremiumGiftCode struct {
Purpose InputStorePaymentPurpose // Should be populated with inputStorePaymentPremiumGiveaway for giveaways and inputStorePaymentPremiumGiftCode for gifts.
Option *PremiumGiftCodeOption // Should be populated with one of the giveaway options returned by payments.getPremiumGiftCodeOptions, see the giveaways documentation for more info.
@@ -3518,7 +3527,7 @@ func (*InputInvoicePremiumGiftCode) CRC() uint32 {
func (*InputInvoicePremiumGiftCode) ImplementsInputInvoice() {}
-// An invoice slug taken from an [invoice deep link](https://core.telegram.org/api/links#invoice-links) or from the `premium_invoice_slug` app config parameter ยป
+// An invoice slug taken from an invoice deep link or from the `premium_invoice_slug` app config parameter ยป
type InputInvoiceSlug struct {
Slug string // The invoice slug
}
@@ -3529,11 +3538,15 @@ func (*InputInvoiceSlug) CRC() uint32 {
func (*InputInvoiceSlug) ImplementsInputInvoice() {}
+// Used to buy a Telegram Star Gift, see here ยป for more info.
type InputInvoiceStarGift struct {
- HideName bool `tl:"flag:0,encoded_in_bitflags"`
- UserID InputUser
- GiftID int64
- Message *TextWithEntities `tl:"flag:1"`
+ HideName bool `tl:"flag:0,encoded_in_bitflags"` // If set, your name will be hidden if the destination user decides to display the gift on their profile (they will still see that you sent the gift)
+ UserID InputUser // Identifier of the user that will receive the gift
+ GiftID int64 // Identifier of the gift, from starGift.id
+ Message *TextWithEntities `tl:"flag:1"` /*
+ Optional message, attached with the gift.
+ The maximum length for this field is specified in the stargifts_message_length_max client configuration value.
+ */
}
func (*InputInvoiceStarGift) CRC() uint32 {
@@ -3546,9 +3559,9 @@ func (*InputInvoiceStarGift) FlagIndex() int {
func (*InputInvoiceStarGift) ImplementsInputInvoice() {}
-// Used to top up the [Telegram Stars](https://core.telegram.org/api/stars) balance of the current account or someone else's account.
+// Used to top up the Telegram Stars balance of the current account or someone else's account, or to start a Telegram Star giveaway ยป.
type InputInvoiceStars struct {
- Purpose InputStorePaymentPurpose // Either an inputStorePaymentStarsTopup or an inputStorePaymentStarsGift.
+ Purpose InputStorePaymentPurpose // An inputStorePaymentStarsGiveaway, inputStorePaymentStarsTopup or inputStorePaymentStarsGift.
}
func (*InputInvoiceStars) CRC() uint32 {
@@ -3576,7 +3589,7 @@ func (*InputMediaContact) CRC() uint32 {
func (*InputMediaContact) ImplementsInputMedia() {}
-// Send a [dice-based animated sticker](https://core.telegram.org/api/dice)
+// Send a dice-based animated sticker
type InputMediaDice struct {
Emoticon string // The emoji, for now
,
and
are supported
}
@@ -3642,7 +3655,7 @@ func (*InputMediaGame) CRC() uint32 {
func (*InputMediaGame) ImplementsInputMedia() {}
-// [Live geolocation](https://core.telegram.org/api/live-location)
+// Live geolocation
type InputMediaGeoLive struct {
Stopped bool `tl:"flag:0,encoded_in_bitflags"` // Whether sending of the geolocation was stopped
GeoPoint InputGeoPoint // Current geolocation
@@ -3672,7 +3685,7 @@ func (*InputMediaGeoPoint) CRC() uint32 {
func (*InputMediaGeoPoint) ImplementsInputMedia() {}
-// Generated invoice of a [bot payment](https://core.telegram.org/bots/payments)
+// Generated invoice of a bot payment
type InputMediaInvoice struct {
Title string // Product name, 1-32 characters
Description string // Product description, 1-255 characters
@@ -3695,11 +3708,11 @@ func (*InputMediaInvoice) FlagIndex() int {
func (*InputMediaInvoice) ImplementsInputMedia() {}
-// [Paid media, see here ยป](https://core.telegram.org/api/paid-media) for more info.
+// Paid media, see here ยป for more info.
type InputMediaPaidMedia struct {
- StarsAmount int64
- ExtendedMedia []InputMedia
- Payload string `tl:"flag:0"`
+ StarsAmount int64 // The price of the media in Telegram Stars.
+ ExtendedMedia []InputMedia // Photos or videos.
+ Payload string `tl:"flag:0"` // Bots only, specifies a custom payload that will then be passed in updateBotPurchasedPaidMedia when a payment is made (this field will not be visible to the user)
}
func (*InputMediaPaidMedia) CRC() uint32 {
@@ -3904,7 +3917,7 @@ type InputNotifyPeer interface {
ImplementsInputNotifyPeer()
}
-// All [channels](https://core.telegram.org/api/channel)
+// All channels
type InputNotifyBroadcasts struct{}
func (*InputNotifyBroadcasts) CRC() uint32 {
@@ -3922,7 +3935,7 @@ func (*InputNotifyChats) CRC() uint32 {
func (*InputNotifyChats) ImplementsInputNotifyPeer() {}
-// Notifications generated by a [topic](https://core.telegram.org/api/forum#forum-topics) in a [forum](https://core.telegram.org/api/forum).
+// Notifications generated by a topic in a forum.
type InputNotifyForumTopic struct {
Peer InputPeer // Forum ID
TopMsgID int32 // Topic ID
@@ -4026,7 +4039,7 @@ func (*InputPeerChannel) CRC() uint32 {
func (*InputPeerChannel) ImplementsInputPeer() {}
-// Defines a [min](https://core.telegram.org/api/min) channel that was seen in a certain message of a certain chat.
+// Defines a min channel that was seen in a certain message of a certain chat.
type InputPeerChannelFromMessage struct {
Peer InputPeer // The chat where the channel's message was seen
MsgID int32 // The message ID
@@ -4080,7 +4093,7 @@ func (*InputPeerUser) CRC() uint32 {
func (*InputPeerUser) ImplementsInputPeer() {}
-// Defines a [min](https://core.telegram.org/api/min) user that was seen in a certain message of a certain chat.
+// Defines a min user that was seen in a certain message of a certain chat.
type InputPeerUserFromMessage struct {
Peer InputPeer // The chat where the user was seen
MsgID int32 // The message ID
@@ -4134,6 +4147,21 @@ func (*InputPrivacyValueAllowAll) CRC() uint32 {
func (*InputPrivacyValueAllowAll) ImplementsInputPrivacyRule() {}
+/*
+
+inputPrivacyValueAllowBots#5a4fcce5 = InputPrivacyRule;
+*/
type InputPrivacyValueAllowBots struct{}
func (*InputPrivacyValueAllowBots) CRC() uint32 {
@@ -4153,7 +4181,7 @@ func (*InputPrivacyValueAllowChatParticipants) CRC() uint32 {
func (*InputPrivacyValueAllowChatParticipants) ImplementsInputPrivacyRule() {}
-// Allow only [close friends ยป](https://core.telegram.org/api/privacy)
+// Allow only close friends ยป
type InputPrivacyValueAllowCloseFriends struct{}
func (*InputPrivacyValueAllowCloseFriends) CRC() uint32 {
@@ -4171,7 +4199,7 @@ func (*InputPrivacyValueAllowContacts) CRC() uint32 {
func (*InputPrivacyValueAllowContacts) ImplementsInputPrivacyRule() {}
-// Allow only users with a [Premium subscription ยป](https://core.telegram.org/api/premium), currently only usable for [inputPrivacyKeyChatInvite](https://core.telegram.org/constructor/inputPrivacyKeyChatInvite).
+// Allow only users with a Premium subscription ยป, currently only usable for inputPrivacyKeyChatInvite.
type InputPrivacyValueAllowPremium struct{}
func (*InputPrivacyValueAllowPremium) CRC() uint32 {
@@ -4200,6 +4228,21 @@ func (*InputPrivacyValueDisallowAll) CRC() uint32 {
func (*InputPrivacyValueDisallowAll) ImplementsInputPrivacyRule() {}
+/*
+
+inputPrivacyValueDisallowBots#c4e57915 = InputPrivacyRule;
+*/
type InputPrivacyValueDisallowBots struct{}
func (*InputPrivacyValueDisallowBots) CRC() uint32 {
@@ -4244,7 +4287,7 @@ type InputQuickReplyShortcut interface {
ImplementsInputQuickReplyShortcut()
}
-// Selects a [quick reply shortcut](https://core.telegram.org/api/business#quick-reply-shortcuts) by name.
+// Selects a quick reply shortcut by name.
type InputQuickReplyShortcutObj struct {
Shortcut string // Shortcut name.
}
@@ -4255,7 +4298,7 @@ func (*InputQuickReplyShortcutObj) CRC() uint32 {
func (*InputQuickReplyShortcutObj) ImplementsInputQuickReplyShortcut() {}
-// Selects a [quick reply shortcut](https://core.telegram.org/api/business#quick-reply-shortcuts) by its numeric ID.
+// Selects a quick reply shortcut by its numeric ID.
type InputQuickReplyShortcutID struct {
ShortcutID int32 // Shortcut ID.
}
@@ -4275,8 +4318,8 @@ type InputReplyTo interface {
type InputReplyToMessage struct {
ReplyToMsgID int32 // The message ID to reply to.
TopMsgID int32 `tl:"flag:0"` /*
- This field must contain the topic ID only when replying to messages in forum topics different from the "General" topic (i.e. reply_to_msg_id is set and reply_to_msg_id != topicID and topicID != 1).
- If the replied-to message is deleted before the method finishes execution, the value in this field will be used to send the message to the correct topic, instead of the "General" topic.
+ This field must contain the topic ID only when replying to messages in forum topics different from the "General" topic (i.e. reply_to_msg_id is set and reply_to_msg_id != topicID and topicID != 1).
+ If the replied-to message is deleted before the method finishes execution, the value in this field will be used to send the message to the correct topic, instead of the "General" topic.
*/
ReplyToPeerID InputPeer `tl:"flag:1"` // Used to reply to messages sent to another chat (specified here), can only be used for non-protected chats and messages.
QuoteText string `tl:"flag:2"` // Used to quote-reply to only a certain section (specified here) of the original message. The maximum UTF-8 length for quotes is specified in the quote_length_max config key.
@@ -4311,7 +4354,7 @@ type InputSecureFile interface {
ImplementsInputSecureFile()
}
-// Pre-uploaded [passport](https://core.telegram.org/passport) file, for more info [see the passport docs ยป](https://core.telegram.org/passport/encryption#inputsecurefile)
+// Pre-uploaded passport file, for more info see the passport docs ยป
type InputSecureFileObj struct {
ID int64 // Secure file ID
AccessHash int64 // Secure file access hash
@@ -4323,7 +4366,7 @@ func (*InputSecureFileObj) CRC() uint32 {
func (*InputSecureFileObj) ImplementsInputSecureFile() {}
-// Uploaded secure file, for more info [see the passport docs ยป](https://core.telegram.org/passport/encryption#inputsecurefile)
+// Uploaded secure file, for more info see the passport docs ยป
type InputSecureFileUploaded struct {
ID int64 // Secure file ID
Parts int32 // Secure file part count
@@ -4361,7 +4404,7 @@ func (*InputStickerSetAnimatedEmojiAnimations) CRC() uint32 {
func (*InputStickerSetAnimatedEmojiAnimations) ImplementsInputStickerSet() {}
-// Used for fetching [animated dice stickers](https://core.telegram.org/api/dice)
+// Used for fetching animated dice stickers
type InputStickerSetDice struct {
Emoticon string // The emoji, for now
,
and
are supported
}
@@ -4372,7 +4415,7 @@ func (*InputStickerSetDice) CRC() uint32 {
func (*InputStickerSetDice) ImplementsInputStickerSet() {}
-// Default [custom emoji status](https://core.telegram.org/api/emoji-status) stickerset for channel statuses
+// Default custom emoji status stickerset for channel statuses
type InputStickerSetEmojiChannelDefaultStatuses struct{}
func (*InputStickerSetEmojiChannelDefaultStatuses) CRC() uint32 {
@@ -4381,7 +4424,7 @@ func (*InputStickerSetEmojiChannelDefaultStatuses) CRC() uint32 {
func (*InputStickerSetEmojiChannelDefaultStatuses) ImplementsInputStickerSet() {}
-// Default [custom emoji status](https://core.telegram.org/api/emoji-status) stickerset
+// Default custom emoji status stickerset
type InputStickerSetEmojiDefaultStatuses struct{}
func (*InputStickerSetEmojiDefaultStatuses) CRC() uint32 {
@@ -4390,7 +4433,7 @@ func (*InputStickerSetEmojiDefaultStatuses) CRC() uint32 {
func (*InputStickerSetEmojiDefaultStatuses) ImplementsInputStickerSet() {}
-// Default [custom emoji](https://core.telegram.org/api/custom-emoji) stickerset for [forum topic icons](https://core.telegram.org/api/forum#forum-topics)
+// Default custom emoji stickerset for forum topic icons
type InputStickerSetEmojiDefaultTopicIcons struct{}
func (*InputStickerSetEmojiDefaultTopicIcons) CRC() uint32 {
@@ -4399,7 +4442,7 @@ func (*InputStickerSetEmojiDefaultTopicIcons) CRC() uint32 {
func (*InputStickerSetEmojiDefaultTopicIcons) ImplementsInputStickerSet() {}
-// Generic animation stickerset containing animations to play when [reacting to messages using a normal emoji without a custom animation](https://core.telegram.org/api/reactions)
+// Generic animation stickerset containing animations to play when reacting to messages using a normal emoji without a custom animation
type InputStickerSetEmojiGenericAnimations struct{}
func (*InputStickerSetEmojiGenericAnimations) CRC() uint32 {
@@ -4438,7 +4481,7 @@ func (*InputStickerSetPremiumGifts) CRC() uint32 {
func (*InputStickerSetPremiumGifts) ImplementsInputStickerSet() {}
-// Stickerset by short name, from a [stickerset deep link ยป](https://core.telegram.org/api/links#stickerset-links)
+// Stickerset by short name, from a stickerset deep link ยป
type InputStickerSetShortName struct {
ShortName string // Short name from a stickerset deep link
}
@@ -4494,13 +4537,13 @@ func (*InputStorePaymentGiftPremium) CRC() uint32 {
func (*InputStorePaymentGiftPremium) ImplementsInputStorePaymentPurpose() {}
-// Used to gift [Telegram Premium](https://core.telegram.org/api/premium) subscriptions only to some specific subscribers of a channel/supergroup or to some of our contacts, see [here ยป](https://core.telegram.org/api/giveaways) for more info on giveaways and gifts.
+// Used to gift Telegram Premium subscriptions only to some specific subscribers of a channel/supergroup or to some of our contacts, see here ยป for more info on giveaways and gifts.
type InputStorePaymentPremiumGiftCode struct {
- Users []InputUser
- BoostPeer InputPeer `tl:"flag:0"`
- Currency string
- Amount int64
- Message *TextWithEntities `tl:"flag:1"`
+ Users []InputUser // The users that will receive the Telegram Premium subscriptions.
+ BoostPeer InputPeer `tl:"flag:0"` // If set, the gifts will be sent on behalf of a channel/supergroup we are an admin of, which will also assign some boosts to it. Otherwise, the gift will be sent directly from the currently logged in user, and we will gain some extra boost slots..
+ Currency string // Three-letter ISO 4217 currency code
+ Amount int64 // Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
+ Message *TextWithEntities `tl:"flag:1"` // Message attached with the gift
}
func (*InputStorePaymentPremiumGiftCode) CRC() uint32 {
@@ -4513,7 +4556,7 @@ func (*InputStorePaymentPremiumGiftCode) FlagIndex() int {
func (*InputStorePaymentPremiumGiftCode) ImplementsInputStorePaymentPurpose() {}
-// Used to pay for a [giveaway, see here ยป](https://core.telegram.org/api/giveaways) for more info.
+// Used to pay for a giveaway, see here ยป for more info.
type InputStorePaymentPremiumGiveaway struct {
OnlyNewSubscribers bool `tl:"flag:0,encoded_in_bitflags"` // If set, only new subscribers starting from the giveaway creation date will be able to participate to the giveaway.
WinnersAreVisible bool `tl:"flag:3,encoded_in_bitflags"` // If set, giveaway winners are public and will be listed in a messageMediaGiveawayResults message that will be automatically sent to the channel once the giveaway ends.
@@ -4553,7 +4596,7 @@ func (*InputStorePaymentPremiumSubscription) FlagIndex() int {
func (*InputStorePaymentPremiumSubscription) ImplementsInputStorePaymentPurpose() {}
-// Used to gift [Telegram Stars](https://core.telegram.org/api/stars) to a friend.
+// Used to gift Telegram Stars to a friend.
type InputStorePaymentStarsGift struct {
UserID InputUser // The user to which the stars should be gifted.
Stars int64 // Amount of stars to gift
@@ -4567,19 +4610,20 @@ func (*InputStorePaymentStarsGift) CRC() uint32 {
func (*InputStorePaymentStarsGift) ImplementsInputStorePaymentPurpose() {}
+// Used to pay for a star giveaway, see here ยป for more info.
type InputStorePaymentStarsGiveaway struct {
- OnlyNewSubscribers bool `tl:"flag:0,encoded_in_bitflags"`
- WinnersAreVisible bool `tl:"flag:3,encoded_in_bitflags"`
- Stars int64
- BoostPeer InputPeer
- AdditionalPeers []InputPeer `tl:"flag:1"`
- CountriesIso2 []string `tl:"flag:2"`
- PrizeDescription string `tl:"flag:4"`
- RandomID int64
- UntilDate int32
- Currency string
- Amount int64
- Users int32
+ OnlyNewSubscribers bool `tl:"flag:0,encoded_in_bitflags"` // If set, only new subscribers starting from the giveaway creation date will be able to participate to the giveaway.
+ WinnersAreVisible bool `tl:"flag:3,encoded_in_bitflags"` // If set, giveaway winners are public and will be listed in a messageMediaGiveawayResults message that will be automatically sent to the channel once the giveaway ends.
+ Stars int64 // Total number of Telegram Stars being given away (each user will receive stars/users stars).
+ BoostPeer InputPeer // The channel/supergroup starting the giveaway, that the user must join to participate, that will receive the giveaway boosts;.
+ AdditionalPeers []InputPeer `tl:"flag:1"` // Additional channels that the user must join to participate to the giveaway can be specified here.
+ CountriesIso2 []string `tl:"flag:2"` // The set of users that can participate to the giveaway can be restricted by passing here an explicit whitelist of up to giveaway_countries_max countries, specified as two-letter ISO 3166-1 alpha-2 country codes.
+ PrizeDescription string `tl:"flag:4"` // Can contain a textual description of additional giveaway prizes.
+ RandomID int64 // Random ID to avoid resending the giveaway
+ UntilDate int32 // The end date of the giveaway, must be at most giveaway_period_max seconds in the future;.
+ Currency string // Three-letter ISO 4217 currency code
+ Amount int64 // Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
+ Users int32 // Number of winners.
}
func (*InputStorePaymentStarsGiveaway) CRC() uint32 {
@@ -4592,7 +4636,7 @@ func (*InputStorePaymentStarsGiveaway) FlagIndex() int {
func (*InputStorePaymentStarsGiveaway) ImplementsInputStorePaymentPurpose() {}
-// Used to top up the [Telegram Stars balance](https://core.telegram.org/api/stars) of the current account.
+// Used to top up the Telegram Stars balance of the current account.
type InputStorePaymentStarsTopup struct {
Stars int64 // Amount of stars to topup
Currency string // Three-letter ISO 4217 currency code
@@ -4659,7 +4703,7 @@ func (*InputUserEmpty) CRC() uint32 {
func (*InputUserEmpty) ImplementsInputUser() {}
-// Defines a [min](https://core.telegram.org/api/min) user that was seen in a certain message of a certain chat.
+// Defines a min user that was seen in a certain message of a certain chat.
type InputUserFromMessage struct {
Peer InputPeer // The chat where the user was seen
MsgID int32 // The message ID
@@ -4686,7 +4730,7 @@ type InputWallPaper interface {
ImplementsInputWallPaper()
}
-// [Wallpaper](https://core.telegram.org/api/wallpapers)
+// Wallpaper
type InputWallPaperObj struct {
ID int64 // Wallpaper ID
AccessHash int64 // Access hash
@@ -4698,7 +4742,7 @@ func (*InputWallPaperObj) CRC() uint32 {
func (*InputWallPaperObj) ImplementsInputWallPaper() {}
-// [Wallpaper](https://core.telegram.org/api/wallpapers) with no file access hash, used for example when deleting (`unsave=true`) wallpapers using [account.saveWallPaper](https://core.telegram.org/method/account.saveWallPaper), specifying just the wallpaper ID.
+// Wallpaper with no file access hash, used for example when deleting (`unsave=true`) wallpapers using account.saveWallPaper, specifying just the wallpaper ID.
type InputWallPaperNoFile struct {
ID int64 // Wallpaper ID
}
@@ -4709,7 +4753,7 @@ func (*InputWallPaperNoFile) CRC() uint32 {
func (*InputWallPaperNoFile) ImplementsInputWallPaper() {}
-// [Wallpaper](https://core.telegram.org/api/wallpapers) by slug (a unique ID, obtained from a [wallpaper link ยป](https://core.telegram.org/api/links#wallpaper-links))
+// Wallpaper by slug (a unique ID, obtained from a wallpaper link ยป)
type InputWallPaperSlug struct {
Slug string // Unique wallpaper ID
}
@@ -4725,7 +4769,7 @@ type InputWebFileLocation interface {
ImplementsInputWebFileLocation()
}
-// Used to download an album cover for any music file using [upload.getWebFile](https://core.telegram.org/method/upload.getWebFile), see the [webfile docs for more info ยป](https://core.telegram.org/api/files#downloading-webfiles).
+// Used to download an album cover for any music file using upload.getWebFile, see the webfile docs for more info ยป.
type InputWebFileAudioAlbumThumbLocation struct {
Small bool `tl:"flag:2,encoded_in_bitflags"` // Used to return a thumbnail with 100x100 resolution (instead of the default 600x600)
Document InputDocument `tl:"flag:0"` // The audio file in question: must NOT be provided in secret chats, provide the title and performer fields instead.
@@ -4743,7 +4787,7 @@ func (*InputWebFileAudioAlbumThumbLocation) FlagIndex() int {
func (*InputWebFileAudioAlbumThumbLocation) ImplementsInputWebFileLocation() {}
-// Used to download a server-generated image with the map preview from a [geoPoint](https://core.telegram.org/constructor/geoPoint), see the [webfile docs for more info ยป](https://core.telegram.org/api/files#downloading-webfiles).
+// Used to download a server-generated image with the map preview from a geoPoint, see the webfile docs for more info ยป.
type InputWebFileGeoPointLocation struct {
GeoPoint InputGeoPoint // Generated from the lat, long and accuracy_radius parameters of the geoPoint
AccessHash int64 // Access hash of the geoPoint
@@ -4771,6 +4815,33 @@ func (*InputWebFileLocationObj) CRC() uint32 {
func (*InputWebFileLocationObj) ImplementsInputWebFileLocation() {}
+type IpPort interface {
+ tl.Object
+ ImplementsIpPort()
+}
+type IpPortObj struct {
+ Ipv4 int32
+ Port int32
+}
+
+func (*IpPortObj) CRC() uint32 {
+ return 0xd433ad73
+}
+
+func (*IpPortObj) ImplementsIpPort() {}
+
+type IpPortSecret struct {
+ Ipv4 int32
+ Port int32
+ Secret []byte
+}
+
+func (*IpPortSecret) CRC() uint32 {
+ return 0x37982646
+}
+
+func (*IpPortSecret) ImplementsIpPort() {}
+
type JsonValue interface {
tl.Object
ImplementsJsonValue()
@@ -4845,7 +4916,7 @@ type KeyboardButton interface {
ImplementsKeyboardButton()
}
-// Prompts the user to select and share one or more peers with the bot using [messages.sendBotRequestedPeer](https://core.telegram.org/method/messages.sendBotRequestedPeer).
+// Prompts the user to select and share one or more peers with the bot using messages.sendBotRequestedPeer.
type InputKeyboardButtonRequestPeer struct {
NameRequested bool `tl:"flag:0,encoded_in_bitflags"` // Set this flag to request the peer's name.
UsernameRequested bool `tl:"flag:1,encoded_in_bitflags"` // Set this flag to request the peer's @username (if any).
@@ -4853,8 +4924,8 @@ type InputKeyboardButtonRequestPeer struct {
Text string // Button text
ButtonID int32 // Button ID, to be passed to messages.sendBotRequestedPeer.
PeerType RequestPeerType /*
- Filtering criteria to use for the peer selection list shown to the user.
- The list should display all existing peers of the specified type, and should also offer an option for the user to create and immediately use one or more (up to max_quantity) peers of the specified type, if needed.
+ Filtering criteria to use for the peer selection list shown to the user.
+ The list should display all existing peers of the specified type, and should also offer an option for the user to create and immediately use one or more (up to max_quantity) peers of the specified type, if needed.
*/
MaxQuantity int32 // Maximum number of peers that can be chosen.
}
@@ -4869,14 +4940,14 @@ func (*InputKeyboardButtonRequestPeer) FlagIndex() int {
func (*InputKeyboardButtonRequestPeer) ImplementsKeyboardButton() {}
-// Button to request a user to [authorize](https://core.telegram.org/method/messages.acceptUrlAuth) via URL using [Seamless Telegram Login](https://core.telegram.orghttps://telegram.org/blog/privacy-discussions-web-bots#meet-seamless-web-bots).
+// Button to request a user to authorize via URL using Seamless Telegram Login.
type InputKeyboardButtonURLAuth struct {
RequestWriteAccess bool `tl:"flag:0,encoded_in_bitflags"` // Set this flag to request the permission for your bot to send messages to the user.
Text string // Button text
FwdText string `tl:"flag:1"` // New text of the button in forwarded messages.
URL string /*
- An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.
- NOTE: You must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization.
+ An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.
+ NOTE: You must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization.
*/
Bot InputUser // Username of a bot, which will be used for user authorization. See Setting up a bot for more details. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details.
}
@@ -4942,9 +5013,10 @@ func (*KeyboardButtonCallback) FlagIndex() int {
func (*KeyboardButtonCallback) ImplementsKeyboardButton() {}
+// Clipboard button: when clicked, the attached text must be copied to the clipboard.
type KeyboardButtonCopy struct {
- Text string
- CopyText string
+ Text string // Title of the button
+ CopyText string // The text that will be copied to the clipboard
}
func (*KeyboardButtonCopy) CRC() uint32 {
@@ -4975,13 +5047,13 @@ func (*KeyboardButtonRequestGeoLocation) CRC() uint32 {
func (*KeyboardButtonRequestGeoLocation) ImplementsKeyboardButton() {}
-// Prompts the user to select and share one or more peers with the bot using [messages.sendBotRequestedPeer](https://core.telegram.org/method/messages.sendBotRequestedPeer)
+// Prompts the user to select and share one or more peers with the bot using messages.sendBotRequestedPeer
type KeyboardButtonRequestPeer struct {
Text string // Button text
ButtonID int32 // Button ID, to be passed to messages.sendBotRequestedPeer.
PeerType RequestPeerType /*
- Filtering criteria to use for the peer selection list shown to the user.
- The list should display all existing peers of the specified type, and should also offer an option for the user to create and immediately use one or more (up to max_quantity) peers of the specified type, if needed.
+ Filtering criteria to use for the peer selection list shown to the user.
+ The list should display all existing peers of the specified type, and should also offer an option for the user to create and immediately use one or more (up to max_quantity) peers of the specified type, if needed.
*/
MaxQuantity int32 // Maximum number of peers that can be chosen.
}
@@ -5019,7 +5091,7 @@ func (*KeyboardButtonRequestPoll) FlagIndex() int {
func (*KeyboardButtonRequestPoll) ImplementsKeyboardButton() {}
-// Button to open a [bot mini app](https://core.telegram.org/api/bots/webapps) using [messages.requestSimpleWebView](https://core.telegram.org/method/messages.requestSimpleWebView), without sending user information to the web app.
+// Button to open a bot mini app using messages.requestSimpleWebView, without sending user information to the web app.
type KeyboardButtonSimpleWebView struct {
Text string // Button text
URL string // Web app URL
@@ -5061,14 +5133,14 @@ func (*KeyboardButtonURL) CRC() uint32 {
func (*KeyboardButtonURL) ImplementsKeyboardButton() {}
-// Button to request a user to authorize via URL using [Seamless Telegram Login](https://core.telegram.orghttps://telegram.org/blog/privacy-discussions-web-bots#meet-seamless-web-bots). When the user clicks on such a button, [messages.requestUrlAuth](https://core.telegram.org/method/messages.requestUrlAuth) should be called, providing the `button_id` and the ID of the container message. The returned [urlAuthResultRequest](https://core.telegram.org/constructor/urlAuthResultRequest) object will contain more details about the authorization request (`request_write_access` if the bot would like to send messages to the user along with the username of the bot which will be used for user authorization). Finally, the user can choose to call [messages.acceptUrlAuth](https://core.telegram.org/method/messages.acceptUrlAuth) to get a [urlAuthResultAccepted](https://core.telegram.org/constructor/urlAuthResultAccepted) with the URL to open instead of the `url` of this constructor, or a [urlAuthResultDefault](https://core.telegram.org/constructor/urlAuthResultDefault), in which case the `url` of this constructor must be opened, instead. If the user refuses the authorization request but still wants to open the link, the `url` of this constructor must be used.
+// Button to request a user to authorize via URL using Seamless Telegram Login. When the user clicks on such a button, messages.requestUrlAuth should be called, providing the `button_id` and the ID of the container message. The returned urlAuthResultRequest object will contain more details about the authorization request (`request_write_access` if the bot would like to send messages to the user along with the username of the bot which will be used for user authorization). Finally, the user can choose to call messages.acceptUrlAuth to get a urlAuthResultAccepted with the URL to open instead of the `url` of this constructor, or a urlAuthResultDefault, in which case the `url` of this constructor must be opened, instead. If the user refuses the authorization request but still wants to open the link, the `url` of this constructor must be used.
type KeyboardButtonURLAuth struct {
Text string // Button label
FwdText string `tl:"flag:0"` // New text of the button in forwarded messages.
URL string /*
- An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.
+ An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.
- NOTE: Services must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization.
+ NOTE: Services must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization.
*/
ButtonID int32 // ID of the button to pass to messages.requestUrlAuth
}
@@ -5095,7 +5167,7 @@ func (*KeyboardButtonUserProfile) CRC() uint32 {
func (*KeyboardButtonUserProfile) ImplementsKeyboardButton() {}
-// Button to open a [bot mini app](https://core.telegram.org/api/bots/webapps) using [messages.requestWebView](https://core.telegram.org/method/messages.requestWebView), sending over user information after user confirmation.
+// Button to open a bot mini app using messages.requestWebView, sending over user information after user confirmation.
type KeyboardButtonWebView struct {
Text string // Button text
URL string // Web app url
@@ -5135,7 +5207,7 @@ func (*LangPackStringDeleted) CRC() uint32 {
func (*LangPackStringDeleted) ImplementsLangPackString() {}
-// A language pack string which has different forms based on the number of some object it mentions. See [https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html](https://core.telegram.orghttps://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html) for more info
+// A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info
type LangPackStringPluralized struct {
Key string // Localization key
ZeroValue string `tl:"flag:0"` // Value for zero objects
@@ -5174,7 +5246,7 @@ func (*InputMediaAreaChannelPost) CRC() uint32 {
func (*InputMediaAreaChannelPost) ImplementsMediaArea() {}
-// Represents a [location tag](https://core.telegram.org/api/stories#media-areas) attached to a [story](https://core.telegram.org/api/stories), with additional venue information.
+// Represents a location tag attached to a story, with additional venue information.
type InputMediaAreaVenue struct {
Coordinates *MediaAreaCoordinates // The size and location of the media area corresponding to the location sticker on top of the story media.
QueryID int64 // The query_id from messages.botResults,.
@@ -5200,7 +5272,7 @@ func (*MediaAreaChannelPost) CRC() uint32 {
func (*MediaAreaChannelPost) ImplementsMediaArea() {}
-// Represents a geolocation tag attached to a [story](https://core.telegram.org/api/stories).
+// Represents a geolocation tag attached to a story.
type MediaAreaGeoPoint struct {
Coordinates *MediaAreaCoordinates // The size and position of the media area corresponding to the location sticker on top of the story media.
Geo GeoPoint // Coordinates of the geolocation tag.
@@ -5235,7 +5307,7 @@ func (*MediaAreaSuggestedReaction) FlagIndex() int {
func (*MediaAreaSuggestedReaction) ImplementsMediaArea() {}
-// Represents a [URL media area](https://core.telegram.org/api/stories#urls).
+// Represents a URL media area.
type MediaAreaURL struct {
Coordinates *MediaAreaCoordinates // The size and location of the media area corresponding to the URL button on top of the story media.
URL string // URL to open when clicked.
@@ -5247,7 +5319,7 @@ func (*MediaAreaURL) CRC() uint32 {
func (*MediaAreaURL) ImplementsMediaArea() {}
-// Represents a location tag attached to a [story](https://core.telegram.org/api/stories), with additional venue information.
+// Represents a location tag attached to a story, with additional venue information.
type MediaAreaVenue struct {
Coordinates *MediaAreaCoordinates // The size and location of the media area corresponding to the location sticker on top of the story media.
Geo GeoPoint // Coordinates of the venue
@@ -5264,7 +5336,7 @@ func (*MediaAreaVenue) CRC() uint32 {
func (*MediaAreaVenue) ImplementsMediaArea() {}
-// Represents a [weather widget ยป](https://core.telegram.org/api/stories#weather).
+// Represents a weather widget ยป.
type MediaAreaWeather struct {
Coordinates *MediaAreaCoordinates // The size and location of the media area corresponding to the widget on top of the story media.
Emoji string // Weather emoji, should be rendered as an animated emoji.
@@ -5285,45 +5357,51 @@ type Message interface {
// A message
type MessageObj struct {
- Out bool `tl:"flag:1,encoded_in_bitflags"`
- Mentioned bool `tl:"flag:4,encoded_in_bitflags"`
- MediaUnread bool `tl:"flag:5,encoded_in_bitflags"`
- Silent bool `tl:"flag:13,encoded_in_bitflags"`
- Post bool `tl:"flag:14,encoded_in_bitflags"`
- FromScheduled bool `tl:"flag:18,encoded_in_bitflags"`
- Legacy bool `tl:"flag:19,encoded_in_bitflags"`
- EditHide bool `tl:"flag:21,encoded_in_bitflags"`
- Pinned bool `tl:"flag:24,encoded_in_bitflags"`
- Noforwards bool `tl:"flag:26,encoded_in_bitflags"`
- InvertMedia bool `tl:"flag:27,encoded_in_bitflags"`
- Offline bool `tl:"flag2:1,encoded_in_bitflags"`
- VideoProcessingPending bool `tl:"flag2:4,encoded_in_bitflags"`
- ID int32
- FromID Peer `tl:"flag:8"`
- FromBoostsApplied int32 `tl:"flag:29"`
- PeerID Peer
- SavedPeerID Peer `tl:"flag:28"`
- FwdFrom *MessageFwdHeader `tl:"flag:2"`
- ViaBotID int64 `tl:"flag:11"`
- ViaBusinessBotID int64 `tl:"flag2:0"`
- ReplyTo MessageReplyHeader `tl:"flag:3"`
- Date int32
- Message string
- Media MessageMedia `tl:"flag:9"`
- ReplyMarkup ReplyMarkup `tl:"flag:6"`
- Entities []MessageEntity `tl:"flag:7"`
- Views int32 `tl:"flag:10"`
- Forwards int32 `tl:"flag:10"`
- Replies *MessageReplies `tl:"flag:23"`
- EditDate int32 `tl:"flag:15"`
- PostAuthor string `tl:"flag:16"`
- GroupedID int64 `tl:"flag:17"`
- Reactions *MessageReactions `tl:"flag:20"`
- RestrictionReason []*RestrictionReason `tl:"flag:22"`
- TtlPeriod int32 `tl:"flag:25"`
- QuickReplyShortcutID int32 `tl:"flag:30"`
- Effect int64 `tl:"flag2:2"`
- Factcheck *FactCheck `tl:"flag2:3"`
+ Out bool `tl:"flag:1,encoded_in_bitflags"` // Is this an outgoing message
+ Mentioned bool `tl:"flag:4,encoded_in_bitflags"` // Whether we were mentioned in this message
+ MediaUnread bool `tl:"flag:5,encoded_in_bitflags"` // Whether there are unread media attachments in this message
+ Silent bool `tl:"flag:13,encoded_in_bitflags"` // Whether this is a silent message (no notification triggered)
+ Post bool `tl:"flag:14,encoded_in_bitflags"` // Whether this is a channel post
+ FromScheduled bool `tl:"flag:18,encoded_in_bitflags"` // Whether this is a scheduled message
+ Legacy bool `tl:"flag:19,encoded_in_bitflags"` // This is a legacy message: it has to be refetched with the new layer
+ EditHide bool `tl:"flag:21,encoded_in_bitflags"` // Whether the message should be shown as not modified to the user, even if an edit date is present
+ Pinned bool `tl:"flag:24,encoded_in_bitflags"` // Whether this message is pinned
+ Noforwards bool `tl:"flag:26,encoded_in_bitflags"` // Whether this message is protected and thus cannot be forwarded; clients should also prevent users from saving attached media (i.e. videos should only be streamed, photos should be kept in RAM, et cetera).
+ InvertMedia bool `tl:"flag:27,encoded_in_bitflags"` // If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
+ Offline bool `tl:"flag2:1,encoded_in_bitflags"` // If set, the message was sent because of a scheduled action by the message sender, for example, as away, or a greeting service message.
+ VideoProcessingPending bool `tl:"flag2:4,encoded_in_bitflags"` // The video contained in the message is currently being processed by the server (i.e. to generate alternative qualities, that will be contained in the final messageMediaDocument.alt_document), and will be sent once the video is processed, which will happen approximately at the specified date (i.e. messages with this flag set should be treated similarly to scheduled messages, but instead of the scheduled date, date contains the estimated conversion date)..
+ ID int32 // ID of the message
+ FromID Peer `tl:"flag:8"` // ID of the sender of the message
+ FromBoostsApplied int32 `tl:"flag:29"` /*
+ Supergroups only, contains the number of boosts this user has given the current supergroup, and should be shown in the UI in the header of the message.
+ Only present for incoming messages from non-anonymous supergroup members that have boosted the supergroup.
+ Note that this counter should be locally overridden for non-anonymous outgoing messages, according to the current value of channelFull.boosts_applied, to ensure the value is correct even for messages sent by the current user before a supergroup was boosted (or after a boost has expired or the number of boosts has changed); do not update this value for incoming messages from other users, even if their boosts have changed.
+ */
+ PeerID Peer // Peer ID, the chat where this message was sent
+ SavedPeerID Peer `tl:"flag:28"` /*
+ Messages fetched from a saved messages dialog will have peer=inputPeerSelf and the saved_peer_id flag set to the ID of the saved dialog.
+ */
+ FwdFrom *MessageFwdHeader `tl:"flag:2"` // Info about forwarded messages
+ ViaBotID int64 `tl:"flag:11"` // ID of the inline bot that generated the message
+ ViaBusinessBotID int64 `tl:"flag2:0"` // Whether the message was sent by the business bot specified in via_bot_id on behalf of the user.
+ ReplyTo MessageReplyHeader `tl:"flag:3"` // Reply information
+ Date int32 // Date of the message
+ Message string // The message
+ Media MessageMedia `tl:"flag:9"` // Media attachment
+ ReplyMarkup ReplyMarkup `tl:"flag:6"` // Reply markup (bot/inline keyboards)
+ Entities []MessageEntity `tl:"flag:7"` // Message entities for styled text
+ Views int32 `tl:"flag:10"` // View count for channel posts
+ Forwards int32 `tl:"flag:10"` // Forward counter
+ Replies *MessageReplies `tl:"flag:23"` // Info about post comments (for channels) or message replies (for groups)
+ EditDate int32 `tl:"flag:15"` // Last edit date of this message
+ PostAuthor string `tl:"flag:16"` // Name of the author of this message for channel posts (with signatures enabled)
+ GroupedID int64 `tl:"flag:17"` // Multiple media messages sent using messages.sendMultiMedia with the same grouped ID indicate an album or media group
+ Reactions *MessageReactions `tl:"flag:20"` // Reactions to this message
+ RestrictionReason []*RestrictionReason `tl:"flag:22"` // Contains the reason why access to this message must be restricted.
+ TtlPeriod int32 `tl:"flag:25"` // Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.
+ QuickReplyShortcutID int32 `tl:"flag:30"` // If set, this message is a quick reply shortcut message (note that quick reply shortcut messages sent to a private chat will not have this field set).
+ Effect int64 `tl:"flag2:2"` // A message effect that should be played as specified here.
+ Factcheck *FactCheck `tl:"flag2:3"` // Represents a fact-check.
}
func (*MessageObj) CRC() uint32 {
@@ -5383,15 +5461,8 @@ type MessageAction interface {
tl.Object
ImplementsMessageAction()
}
-type MessageActionAttachMenuBotAllowed struct{}
-
-func (*MessageActionAttachMenuBotAllowed) CRC() uint32 {
- return 0xe7e75f97
-}
-func (*MessageActionAttachMenuBotAllowed) ImplementsMessageAction() {}
-
-// Some [boosts ยป](https://core.telegram.org/api/boost) were applied to the channel or supergroup.
+// Some boosts ยป were applied to the channel or supergroup.
type MessageActionBoostApply struct {
Boosts int32 // Number of applied boosts.
}
@@ -5431,7 +5502,7 @@ func (*MessageActionChannelCreate) CRC() uint32 {
func (*MessageActionChannelCreate) ImplementsMessageAction() {}
-// Indicates the channel was [migrated](https://core.telegram.org/api/channel) from the specified chat
+// Indicates the channel was migrated from the specified chat
type MessageActionChannelMigrateFrom struct {
Title string // The old chat title
ChatID int64 // The old chat ID
@@ -5528,7 +5599,7 @@ func (*MessageActionChatJoinedByRequest) CRC() uint32 {
func (*MessageActionChatJoinedByRequest) ImplementsMessageAction() {}
-// Indicates the chat was [migrated](https://core.telegram.org/api/channel) to the specified supergroup
+// Indicates the chat was migrated to the specified supergroup
type MessageActionChatMigrateTo struct {
ChannelID int64 // The supergroup it was migrated to
}
@@ -5601,18 +5672,18 @@ func (*MessageActionGeoProximityReached) CRC() uint32 {
func (*MessageActionGeoProximityReached) ImplementsMessageAction() {}
-// Contains a [Telegram Premium giftcode link](https://core.telegram.org/api/links#premium-giftcode-links).
+// Contains a Telegram Premium giftcode link.
type MessageActionGiftCode struct {
- ViaGiveaway bool `tl:"flag:0,encoded_in_bitflags"`
- Unclaimed bool `tl:"flag:2,encoded_in_bitflags"`
- BoostPeer Peer `tl:"flag:1"`
- Months int32
- Slug string
- Currency string `tl:"flag:2"`
- Amount int64 `tl:"flag:2"`
- CryptoCurrency string `tl:"flag:3"`
- CryptoAmount int64 `tl:"flag:3"`
- Message *TextWithEntities `tl:"flag:4"`
+ ViaGiveaway bool `tl:"flag:0,encoded_in_bitflags"` // If set, this gift code was received from a giveaway started by a channel/supergroup we're subscribed to.
+ Unclaimed bool `tl:"flag:2,encoded_in_bitflags"` // If set, the link was not redeemed yet.
+ BoostPeer Peer `tl:"flag:1"` // Identifier of the channel/supergroup that created the gift code either directly or through a giveaway: if we import this giftcode link, we will also automatically boost this channel/supergroup.
+ Months int32 // Duration in months of the gifted Telegram Premium subscription.
+ Slug string // Slug of the Telegram Premium giftcode link
+ Currency string `tl:"flag:2"` // Three-letter ISO 4217 currency code
+ Amount int64 `tl:"flag:2"` // Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
+ CryptoCurrency string `tl:"flag:3"` // If set, the gift was made using the specified cryptocurrency.
+ CryptoAmount int64 `tl:"flag:3"` // If crypto_currency is set, contains the paid amount, in the smallest units of the cryptocurrency.
+ Message *TextWithEntities `tl:"flag:4"` // Message attached with the gift
}
func (*MessageActionGiftCode) CRC() uint32 {
@@ -5627,12 +5698,12 @@ func (*MessageActionGiftCode) ImplementsMessageAction() {}
// Info about a gifted Telegram Premium subscription
type MessageActionGiftPremium struct {
- Currency string
- Amount int64
- Months int32
- CryptoCurrency string `tl:"flag:0"`
- CryptoAmount int64 `tl:"flag:0"`
- Message *TextWithEntities `tl:"flag:1"`
+ Currency string // Three-letter ISO 4217 currency code
+ Amount int64 // Price of the gift in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
+ Months int32 // Duration of the gifted Telegram Premium subscription
+ CryptoCurrency string `tl:"flag:0"` // If the gift was bought using a cryptocurrency, the cryptocurrency name.
+ CryptoAmount int64 `tl:"flag:0"` // If the gift was bought using a cryptocurrency, price of the gift in the smallest units of a cryptocurrency.
+ Message *TextWithEntities `tl:"flag:1"` // Message attached with the gift
}
func (*MessageActionGiftPremium) CRC() uint32 {
@@ -5645,7 +5716,7 @@ func (*MessageActionGiftPremium) FlagIndex() int {
func (*MessageActionGiftPremium) ImplementsMessageAction() {}
-// You gifted or were gifted some [Telegram Stars](https://core.telegram.org/api/stars).
+// You gifted or were gifted some Telegram Stars.
type MessageActionGiftStars struct {
Currency string // Three-letter ISO 4217 currency code
Amount int64 // Price of the gift in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
@@ -5665,9 +5736,9 @@ func (*MessageActionGiftStars) FlagIndex() int {
func (*MessageActionGiftStars) ImplementsMessageAction() {}
-// A [giveaway](https://core.telegram.org/api/giveaways) was started.
+// A giveaway was started.
type MessageActionGiveawayLaunch struct {
- Stars int64 `tl:"flag:0"`
+ Stars int64 `tl:"flag:0"` // For Telegram Star giveaways, the total number of Telegram Stars being given away.
}
func (*MessageActionGiveawayLaunch) CRC() uint32 {
@@ -5680,11 +5751,11 @@ func (*MessageActionGiveawayLaunch) FlagIndex() int {
func (*MessageActionGiveawayLaunch) ImplementsMessageAction() {}
-// A [giveaway](https://core.telegram.org/api/giveaways) has ended.
+// A giveaway has ended.
type MessageActionGiveawayResults struct {
- Stars bool `tl:"flag:0,encoded_in_bitflags"`
- WinnersCount int32
- UnclaimedCount int32
+ Stars bool `tl:"flag:0,encoded_in_bitflags"` // If set, this is a Telegram Star giveaway
+ WinnersCount int32 // Number of winners in the giveaway
+ UnclaimedCount int32 // Number of undistributed prizes
}
func (*MessageActionGiveawayResults) CRC() uint32 {
@@ -5778,12 +5849,12 @@ func (*MessageActionPaymentRefunded) ImplementsMessageAction() {}
// A payment was sent
type MessageActionPaymentSent struct {
- RecurringInit bool `tl:"flag:2,encoded_in_bitflags"`
- RecurringUsed bool `tl:"flag:3,encoded_in_bitflags"`
- Currency string
- TotalAmount int64
- InvoiceSlug string `tl:"flag:0"`
- SubscriptionUntilDate int32 `tl:"flag:4"`
+ RecurringInit bool `tl:"flag:2,encoded_in_bitflags"` // Whether this is the first payment of a recurring payment we just subscribed to
+ RecurringUsed bool `tl:"flag:3,encoded_in_bitflags"` // Whether this payment is part of a recurring payment
+ Currency string // Three-letter ISO 4217 currency code, or XTR for Telegram Stars.
+ TotalAmount int64 // Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
+ InvoiceSlug string `tl:"flag:0"` // An invoice slug taken from an invoice deep link or from the premium_invoice_slug app config parameter
+ SubscriptionUntilDate int32 `tl:"flag:4"` //
}
func (*MessageActionPaymentSent) CRC() uint32 {
@@ -5798,15 +5869,15 @@ func (*MessageActionPaymentSent) ImplementsMessageAction() {}
// A user just sent a payment to me (a bot)
type MessageActionPaymentSentMe struct {
- RecurringInit bool `tl:"flag:2,encoded_in_bitflags"`
- RecurringUsed bool `tl:"flag:3,encoded_in_bitflags"`
- Currency string
- TotalAmount int64
- Payload []byte
- Info *PaymentRequestedInfo `tl:"flag:0"`
- ShippingOptionID string `tl:"flag:1"`
- Charge *PaymentCharge
- SubscriptionUntilDate int32 `tl:"flag:4"`
+ RecurringInit bool `tl:"flag:2,encoded_in_bitflags"` // Whether this is the first payment of a recurring payment we just subscribed to
+ RecurringUsed bool `tl:"flag:3,encoded_in_bitflags"` // Whether this payment is part of a recurring payment
+ Currency string // Three-letter ISO 4217 currency code, or XTR for Telegram Stars.
+ TotalAmount int64 // Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
+ Payload []byte // Bot specified invoice payload
+ Info *PaymentRequestedInfo `tl:"flag:0"` // Order info provided by the user
+ ShippingOptionID string `tl:"flag:1"` // Identifier of the shipping option chosen by the user
+ Charge *PaymentCharge // Provider payment identifier
+ SubscriptionUntilDate int32 `tl:"flag:4"` //
}
func (*MessageActionPaymentSentMe) CRC() uint32 {
@@ -5854,12 +5925,13 @@ func (*MessageActionPinMessage) CRC() uint32 {
func (*MessageActionPinMessage) ImplementsMessageAction() {}
+// You won some Telegram Stars in a Telegram Star giveaway ยป.
type MessageActionPrizeStars struct {
- Unclaimed bool `tl:"flag:0,encoded_in_bitflags"`
- Stars int64
- TransactionID string
- BoostPeer Peer
- GiveawayMsgID int32
+ Unclaimed bool `tl:"flag:0,encoded_in_bitflags"` // If set, this indicates the reverse transaction that refunds the remaining stars to the creator of a giveaway if, when the giveaway ends, the number of members in the channel is smaller than the number of winners in the giveaway.
+ Stars int64 // The number of Telegram Stars you won
+ TransactionID string // ID of the telegram star transaction.
+ BoostPeer Peer // Identifier of the peer that was automatically boosted by the winners of the giveaway.
+ GiveawayMsgID int32 // ID of the message containing the messageMediaGiveaway
}
func (*MessageActionPrizeStars) CRC() uint32 {
@@ -5872,7 +5944,7 @@ func (*MessageActionPrizeStars) FlagIndex() int {
func (*MessageActionPrizeStars) ImplementsMessageAction() {}
-// Contains info about one or more peers that the we (the user) shared with the bot after clicking on a [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer) button (service message sent by the user).
+// Contains info about one or more peers that the we (the user) shared with the bot after clicking on a keyboardButtonRequestPeer button (service message sent by the user).
type MessageActionRequestedPeer struct {
ButtonID int32 // button_id contained in the keyboardButtonRequestPeer
Peers []Peer // The shared peers
@@ -5884,7 +5956,7 @@ func (*MessageActionRequestedPeer) CRC() uint32 {
func (*MessageActionRequestedPeer) ImplementsMessageAction() {}
-// Contains info about one or more peers that the a user shared with the me (the bot) after clicking on a [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer) button (service message received by the bot).
+// Contains info about one or more peers that the a user shared with the me (the bot) after clicking on a keyboardButtonRequestPeer button (service message received by the bot).
type MessageActionRequestedPeerSentMe struct {
ButtonID int32 // button_id contained in the keyboardButtonRequestPeer
Peers []RequestedPeer // Info about the shared peers.
@@ -5905,7 +5977,7 @@ func (*MessageActionScreenshotTaken) CRC() uint32 {
func (*MessageActionScreenshotTaken) ImplementsMessageAction() {}
-// Request for secure [telegram passport](https://core.telegram.org/passport) values was sent
+// Request for secure telegram passport values was sent
type MessageActionSecureValuesSent struct {
Types []SecureValueType // Secure value types
}
@@ -5916,7 +5988,7 @@ func (*MessageActionSecureValuesSent) CRC() uint32 {
func (*MessageActionSecureValuesSent) ImplementsMessageAction() {}
-// Secure [telegram passport](https://core.telegram.org/passport) values were received
+// Secure telegram passport values were received
type MessageActionSecureValuesSentMe struct {
Values []*SecureValue // Vector with information about documents and other Telegram Passport elements that were shared with the bot
Credentials *SecureCredentialsEncrypted // Encrypted credentials required to decrypt the data
@@ -5939,12 +6011,12 @@ func (*MessageActionSetChatTheme) CRC() uint32 {
func (*MessageActionSetChatTheme) ImplementsMessageAction() {}
-// The [wallpaper ยป](https://core.telegram.org/api/wallpapers) of the current chat was changed.
+// The wallpaper ยป of the current chat was changed.
type MessageActionSetChatWallPaper struct {
Same bool `tl:"flag:0,encoded_in_bitflags"` // If set, indicates the user applied a wallpaper previously sent by the other user in a messageActionSetChatWallPaper message.
ForBoth bool `tl:"flag:1,encoded_in_bitflags"` /*
- If set, indicates the wallpaper was forcefully applied for both sides, without explicit confirmation from the other side.
- If the message is incoming, and we did not like the new wallpaper the other user has chosen for us, we can re-set our previous wallpaper just on our side, by invoking messages.setChatWallPaper, providing only the revert flag (and obviously the peer parameter).
+ If set, indicates the wallpaper was forcefully applied for both sides, without explicit confirmation from the other side.
+ If the message is incoming, and we did not like the new wallpaper the other user has chosen for us, we can re-set our previous wallpaper just on our side, by invoking messages.setChatWallPaper, providing only the revert flag (and obviously the peer parameter).
*/
Wallpaper WallPaper // New wallpaper
}
@@ -5975,24 +6047,17 @@ func (*MessageActionSetMessagesTtl) FlagIndex() int {
func (*MessageActionSetMessagesTtl) ImplementsMessageAction() {}
-// The user applied a [wallpaper ยป](https://core.telegram.org/api/wallpapers) previously sent by the other user in a [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper) message.
-type MessageActionSetSameChatWallPaper struct {
- Wallpaper WallPaper // The wallpaper
-}
-
-func (*MessageActionSetSameChatWallPaper) CRC() uint32 {
- return 0xc0787d6d
-}
-
-func (*MessageActionSetSameChatWallPaper) ImplementsMessageAction() {}
-
+// You received a gift, see here ยป for more info.
type MessageActionStarGift struct {
- NameHidden bool `tl:"flag:0,encoded_in_bitflags"`
- Saved bool `tl:"flag:2,encoded_in_bitflags"`
- Converted bool `tl:"flag:3,encoded_in_bitflags"`
- Gift *StarGift
- Message *TextWithEntities `tl:"flag:1"`
- ConvertStars int64 `tl:"flag:4"`
+ NameHidden bool `tl:"flag:0,encoded_in_bitflags"` // If set, the name of the sender of the gift will be hidden if the destination user decides to display the gift on their profile
+ Saved bool `tl:"flag:2,encoded_in_bitflags"` // Whether this gift was added to the destination user's profile (may be toggled using payments.saveStarGift and fetched using payments.getUserStarGifts)
+ Converted bool `tl:"flag:3,encoded_in_bitflags"` // Whether this gift was converted to Telegram Stars and cannot be displayed on the profile anymore.
+ Gift *StarGift // Info about the gift
+ Message *TextWithEntities `tl:"flag:1"` // Additional message from the sender of the gift
+ ConvertStars int64 `tl:"flag:4"` /*
+ The receiver of this gift may convert it to this many Telegram Stars, instead of displaying it on their profile page.
+ convert_stars will be equal to stars only if the gift was bought using recently bought Telegram Stars, otherwise it will be less than stars.
+ */
}
func (*MessageActionStarGift) CRC() uint32 {
@@ -6005,7 +6070,7 @@ func (*MessageActionStarGift) FlagIndex() int {
func (*MessageActionStarGift) ImplementsMessageAction() {}
-// A new profile picture was suggested using [photos.uploadContactProfilePhoto](https://core.telegram.org/method/photos.uploadContactProfilePhoto).
+// A new profile picture was suggested using photos.uploadContactProfilePhoto.
type MessageActionSuggestProfilePhoto struct {
Photo Photo // The photo that the user suggested we set as profile picture.
}
@@ -6026,7 +6091,7 @@ func (*MessageActionTtlChange) CRC() uint32 {
func (*MessageActionTtlChange) ImplementsMessageAction() {}
-// A [forum topic](https://core.telegram.org/api/forum#forum-topics) was created.
+// A forum topic was created.
type MessageActionTopicCreate struct {
Title string // Topic name.
IconColor int32 // If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F.
@@ -6043,7 +6108,7 @@ func (*MessageActionTopicCreate) FlagIndex() int {
func (*MessageActionTopicCreate) ImplementsMessageAction() {}
-// [Forum topic](https://core.telegram.org/api/forum#forum-topics) information was edited.
+// Forum topic information was edited.
type MessageActionTopicEdit struct {
Title string `tl:"flag:0"` // New topic title.
IconEmojiID int64 `tl:"flag:1"` // ID of the new custom emoji used as topic icon, or if it was removed.
@@ -6079,7 +6144,7 @@ func (*MessageActionUserUpdatedPhoto) CRC() uint32 {
func (*MessageActionUserUpdatedPhoto) ImplementsMessageAction() {}
-// Data from an opened [reply keyboard bot mini app](https://core.telegram.org/api/bots/webapps) was relayed to the bot that owns it (user side service message).
+// Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (user side service message).
type MessageActionWebViewDataSent struct {
Text string // Text of the keyboardButtonSimpleWebView that was pressed to open the web app.
}
@@ -6090,7 +6155,7 @@ func (*MessageActionWebViewDataSent) CRC() uint32 {
func (*MessageActionWebViewDataSent) ImplementsMessageAction() {}
-// Data from an opened [reply keyboard bot mini app](https://core.telegram.org/api/bots/webapps) was relayed to the bot that owns it (bot side service message).
+// Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (bot side service message).
type MessageActionWebViewDataSentMe struct {
Text string // Text of the keyboardButtonSimpleWebView that was pressed to open the web app.
Data string // Relayed data.
@@ -6107,7 +6172,7 @@ type MessageEntity interface {
ImplementsMessageEntity()
}
-// Message entity that can be used to create a user [user mention](https://core.telegram.org/api/mentions): received mentions use the [messageEntityMentionName](https://core.telegram.org/constructor/messageEntityMentionName) constructor, instead.
+// Message entity that can be used to create a user user mention: received mentions use the messageEntityMentionName constructor, instead.
type InputMessageEntityMentionName struct {
Offset int32 // Offset of message entity within message (in UTF-16 code units)
Length int32 // Length of message entity within message (in UTF-16 code units)
@@ -6199,7 +6264,7 @@ func (*MessageEntityCode) ImplementsMessageEntity() {}
/*
Represents a custom emoji.
-Note that this entity must wrap exactly one regular emoji (the one contained in [documentAttributeCustomEmoji](https://core.telegram.org/constructor/documentAttributeCustomEmoji).`alt`) in the related text, otherwise the server will ignore it.
+Note that this entity must wrap exactly one regular emoji (the one contained in documentAttributeCustomEmoji.`alt`) in the related text, otherwise the server will ignore it.
*/
type MessageEntityCustomEmoji struct {
Offset int32 // Offset of message entity within message (in UTF-16 code units)
@@ -6213,7 +6278,7 @@ func (*MessageEntityCustomEmoji) CRC() uint32 {
func (*MessageEntityCustomEmoji) ImplementsMessageEntity() {}
-// Message entity representing an [email@example.com](https://core.telegram.orgmailto:email@example.com).
+// Message entity representing an email@example.com.
type MessageEntityEmail struct {
Offset int32 // Offset of message entity within message (in UTF-16 code units)
Length int32 // Length of message entity within message (in UTF-16 code units)
@@ -6249,7 +6314,7 @@ func (*MessageEntityItalic) CRC() uint32 {
func (*MessageEntityItalic) ImplementsMessageEntity() {}
-// Message entity [mentioning](https://core.telegram.org/api/mentions) a user by `@username`; [messageEntityMentionName](https://core.telegram.org/constructor/messageEntityMentionName) can also be used to mention users by their ID.
+// Message entity mentioning a user by `@username`; messageEntityMentionName can also be used to mention users by their ID.
type MessageEntityMention struct {
Offset int32 // Offset of message entity within message (in UTF-16 code units)
Length int32 // Length of message entity within message (in UTF-16 code units)
@@ -6261,7 +6326,7 @@ func (*MessageEntityMention) CRC() uint32 {
func (*MessageEntityMention) ImplementsMessageEntity() {}
-// Message entity representing a [user mention](https://core.telegram.org/api/mentions): for creating a mention use [inputMessageEntityMentionName](https://core.telegram.org/constructor/inputMessageEntityMentionName).
+// Message entity representing a user mention: for creating a mention use inputMessageEntityMentionName.
type MessageEntityMentionName struct {
Offset int32 // Offset of message entity within message (in UTF-16 code units)
Length int32 // Length of message entity within message (in UTF-16 code units)
@@ -6323,7 +6388,7 @@ func (*MessageEntityStrike) CRC() uint32 {
func (*MessageEntityStrike) ImplementsMessageEntity() {}
-// Message entity representing a [text url](https://core.telegram.orghttps://google.com): for in-text urls like [https://google.com](https://core.telegram.orghttps://google.com) use [messageEntityUrl](https://core.telegram.org/constructor/messageEntityUrl).
+// Message entity representing a text url: for in-text urls like https://google.com use messageEntityUrl.
type MessageEntityTextURL struct {
Offset int32 // Offset of message entity within message (in UTF-16 code units)
Length int32 // Length of message entity within message (in UTF-16 code units)
@@ -6360,7 +6425,7 @@ func (*MessageEntityUnknown) CRC() uint32 {
func (*MessageEntityUnknown) ImplementsMessageEntity() {}
-// Message entity representing an in-text url: [https://google.com](https://core.telegram.orghttps://google.com); for [text urls](https://core.telegram.orghttps://google.com), use [messageEntityTextUrl](https://core.telegram.org/constructor/messageEntityTextUrl).
+// Message entity representing an in-text url: https://google.com; for text urls, use messageEntityTextUrl.
type MessageEntityURL struct {
Offset int32 // Offset of message entity within message (in UTF-16 code units)
Length int32 // Length of message entity within message (in UTF-16 code units)
@@ -6377,7 +6442,7 @@ type MessageExtendedMedia interface {
ImplementsMessageExtendedMedia()
}
-// Already purchased paid media, [see here ยป](https://core.telegram.org/api/paid-media) for more info.
+// Already purchased paid media, see here ยป for more info.
type MessageExtendedMediaObj struct {
Media MessageMedia // The media we purchased.
}
@@ -6388,7 +6453,7 @@ func (*MessageExtendedMediaObj) CRC() uint32 {
func (*MessageExtendedMediaObj) ImplementsMessageExtendedMedia() {}
-// Paid media preview for not yet purchased paid media, [see here ยป](https://core.telegram.org/api/paid-media) for more info.
+// Paid media preview for not yet purchased paid media, see here ยป for more info.
type MessageExtendedMediaPreview struct {
W int32 `tl:"flag:0"` // Width
H int32 `tl:"flag:0"` // Height
@@ -6426,7 +6491,7 @@ func (*MessageMediaContact) CRC() uint32 {
func (*MessageMediaContact) ImplementsMessageMedia() {}
-// [Dice-based animated sticker](https://core.telegram.org/api/dice)
+// Dice-based animated sticker
type MessageMediaDice struct {
Value int32 // Dice value
Emoticon string // The emoji, for now
,
and
are supported
@@ -6446,7 +6511,7 @@ type MessageMediaDocument struct {
Round bool `tl:"flag:7,encoded_in_bitflags"` // Whether this is a round video.
Voice bool `tl:"flag:8,encoded_in_bitflags"` // Whether this is a voice message.
Document Document `tl:"flag:0"` // Attached document
- AltDocuments []Document `tl:"flag:5"` // Currently only used for story videos, may contain an alternative version of the story video, explicitly encoded using H.264 (in MPEG4 transport) at a lower resolution than document.
+ AltDocuments []Document `tl:"flag:5"` // Videos only, contains alternative qualities of the video.
TtlSeconds int32 `tl:"flag:2"` // Time to live of self-destructing document
}
@@ -6491,7 +6556,7 @@ func (*MessageMediaGeo) CRC() uint32 {
func (*MessageMediaGeo) ImplementsMessageMedia() {}
-// Indicates a [live geolocation](https://core.telegram.org/api/live-location)
+// Indicates a live geolocation
type MessageMediaGeoLive struct {
Geo GeoPoint // Geolocation
Heading int32 `tl:"flag:0"` // For live locations, a direction in which the location moves, in degrees; 1-360
@@ -6509,17 +6574,17 @@ func (*MessageMediaGeoLive) FlagIndex() int {
func (*MessageMediaGeoLive) ImplementsMessageMedia() {}
-// Contains info about a [giveaway, see here ยป](https://core.telegram.org/api/giveaways) for more info.
+// Contains info about a giveaway, see here ยป for more info.
type MessageMediaGiveaway struct {
- OnlyNewSubscribers bool `tl:"flag:0,encoded_in_bitflags"`
- WinnersAreVisible bool `tl:"flag:2,encoded_in_bitflags"`
- Channels []int64
- CountriesIso2 []string `tl:"flag:1"`
- PrizeDescription string `tl:"flag:3"`
- Quantity int32
- Months int32 `tl:"flag:4"`
- Stars int64 `tl:"flag:5"`
- UntilDate int32
+ OnlyNewSubscribers bool `tl:"flag:0,encoded_in_bitflags"` // If set, only new subscribers starting from the giveaway creation date will be able to participate to the giveaway.
+ WinnersAreVisible bool `tl:"flag:2,encoded_in_bitflags"` // If set, giveaway winners are public and will be listed in a messageMediaGiveawayResults message that will be automatically sent to the channel once the giveaway ends.
+ Channels []int64 // The channels that the user must join to participate in the giveaway.
+ CountriesIso2 []string `tl:"flag:1"` // If set, only users residing in these countries can participate in the giveaway, (specified as a list of two-letter ISO 3166-1 alpha-2 country codes); otherwise there are no country-based limitations.
+ PrizeDescription string `tl:"flag:3"` // Can contain a textual description of additional giveaway prizes.
+ Quantity int32 // Number of Telegram Premium subscriptions given away.
+ Months int32 `tl:"flag:4"` // Duration in months of each Telegram Premium subscription in the giveaway.
+ Stars int64 `tl:"flag:5"` // For Telegram Star giveaways, the total number of Telegram Stars being given away.
+ UntilDate int32 // The end date of the giveaway.
}
func (*MessageMediaGiveaway) CRC() uint32 {
@@ -6532,20 +6597,20 @@ func (*MessageMediaGiveaway) FlagIndex() int {
func (*MessageMediaGiveaway) ImplementsMessageMedia() {}
-// A [giveaway](https://core.telegram.org/api/giveaways) with public winners has finished, this constructor contains info about the winners.
+// A giveaway with public winners has finished, this constructor contains info about the winners.
type MessageMediaGiveawayResults struct {
- OnlyNewSubscribers bool `tl:"flag:0,encoded_in_bitflags"`
- Refunded bool `tl:"flag:2,encoded_in_bitflags"`
- ChannelID int64
- AdditionalPeersCount int32 `tl:"flag:3"`
- LaunchMsgID int32
- WinnersCount int32
- UnclaimedCount int32
- Winners []int64
- Months int32 `tl:"flag:4"`
- Stars int64 `tl:"flag:5"`
- PrizeDescription string `tl:"flag:1"`
- UntilDate int32
+ OnlyNewSubscribers bool `tl:"flag:0,encoded_in_bitflags"` // If set, only new subscribers starting from the giveaway creation date participated in the giveaway.
+ Refunded bool `tl:"flag:2,encoded_in_bitflags"` // If set, the giveaway was canceled and was fully refunded.
+ ChannelID int64 // ID of the channel/supergroup that was automatically boosted by the winners of the giveaway for duration of the Premium subscription.
+ AdditionalPeersCount int32 `tl:"flag:3"` // Number of other channels that participated in the giveaway.
+ LaunchMsgID int32 // Identifier of the message with the giveaway in channel_id.
+ WinnersCount int32 // Total number of winners in the giveaway.
+ UnclaimedCount int32 // Number of not-yet-claimed prizes.
+ Winners []int64 // Up to 100 user identifiers of the winners of the giveaway.
+ Months int32 `tl:"flag:4"` // Duration in months of each Telegram Premium subscription in the giveaway.
+ Stars int64 `tl:"flag:5"` // For Telegram Star giveaways, the total number of Telegram Stars being given away.
+ PrizeDescription string `tl:"flag:1"` // Can contain a textual description of additional giveaway prizes.
+ UntilDate int32 // Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in initial parameters of the giveaway.
}
func (*MessageMediaGiveawayResults) CRC() uint32 {
@@ -6582,7 +6647,7 @@ func (*MessageMediaInvoice) FlagIndex() int {
func (*MessageMediaInvoice) ImplementsMessageMedia() {}
-// [Paid media, see here ยป](https://core.telegram.org/api/paid-media) for more info.
+// Paid media, see here ยป for more info.
type MessageMediaPaidMedia struct {
StarsAmount int64 // The price of the media in Telegram Stars.
ExtendedMedia []MessageExtendedMedia // Either the paid-for media, or super low resolution media previews if the media wasn't purchased yet,.
@@ -6623,7 +6688,7 @@ func (*MessageMediaPoll) CRC() uint32 {
func (*MessageMediaPoll) ImplementsMessageMedia() {}
-// Represents a forwarded [story](https://core.telegram.org/api/stories) or a story mention.
+// Represents a forwarded story or a story mention.
type MessageMediaStory struct {
ViaMention bool `tl:"flag:1,encoded_in_bitflags"` // If set, indicates that this someone has mentioned us in this story (i.e. by tagging us in the description) or vice versa, we have mentioned the other peer (if the message is outgoing).
Peer Peer // Peer that posted the story.
@@ -6703,7 +6768,7 @@ func (*MessagePeerVoteObj) CRC() uint32 {
func (*MessagePeerVoteObj) ImplementsMessagePeerVote() {}
-// How a peer voted in a poll (reduced constructor, returned if an `option` was provided to [messages.getPollVotes](https://core.telegram.org/method/messages.getPollVotes))
+// How a peer voted in a poll (reduced constructor, returned if an `option` was provided to messages.getPollVotes)
type MessagePeerVoteInputOption struct {
Peer Peer // The peer that voted for the queried option
Date int32 // When did the peer cast the vote
@@ -6733,7 +6798,7 @@ type MessageReplyHeader interface {
ImplementsMessageReplyHeader()
}
-// Message replies and [thread](https://core.telegram.org/api/threads) information
+// Message replies and thread information
type MessageReplyHeaderObj struct {
ReplyToScheduled bool `tl:"flag:2,encoded_in_bitflags"` // This is a reply to a scheduled message.
ForumTopic bool `tl:"flag:3,encoded_in_bitflags"` // Whether this message was sent in a forum topic (except for the General topic).
@@ -6758,7 +6823,7 @@ func (*MessageReplyHeaderObj) FlagIndex() int {
func (*MessageReplyHeaderObj) ImplementsMessageReplyHeader() {}
-// Represents a reply to a [story](https://core.telegram.org/api/stories)
+// Represents a reply to a story
type MessageReplyStoryHeader struct {
Peer Peer // Sender of the story.
StoryID int32 // Story ID
@@ -6838,7 +6903,7 @@ func (*InputMessagesFilterMusic) CRC() uint32 {
func (*InputMessagesFilterMusic) ImplementsMessagesFilter() {}
-// Return only messages where the current user was [mentioned](https://core.telegram.org/api/mentions).
+// Return only messages where the current user was mentioned.
type InputMessagesFilterMyMentions struct{}
func (*InputMessagesFilterMyMentions) CRC() uint32 {
@@ -7011,7 +7076,7 @@ func (*NotifyChats) CRC() uint32 {
func (*NotifyChats) ImplementsNotifyPeer() {}
-// Notifications generated by a [topic](https://core.telegram.org/api/forum#forum-topics) in a [forum](https://core.telegram.org/api/forum).
+// Notifications generated by a topic in a forum.
type NotifyForumTopic struct {
Peer Peer // Forum ID
TopMsgID int32 // Topic ID
@@ -7451,7 +7516,7 @@ type PageListOrderedItem interface {
ImplementsPageListOrderedItem()
}
-// Ordered list of [IV](https://core.telegram.orghttps://instantview.telegram.org) blocks
+// Ordered list of IV blocks
type PageListOrderedItemBlocks struct {
Num string // Number of element within ordered list
Blocks []PageBlock // Item contents
@@ -7480,7 +7545,7 @@ type PasswordKdfAlgo interface {
ImplementsPasswordKdfAlgo()
}
-// This key derivation algorithm defines that [SRP 2FA login](https://core.telegram.org/api/srp) must be used
+// This key derivation algorithm defines that SRP 2FA login must be used
type PasswordKdfAlgoSHA256SHA256Pbkdf2Hmacsha512Iter100000SHA256ModPow struct {
Salt1 []byte // One of two salts used by the derivation function (see SRP 2FA login)
Salt2 []byte // One of two salts used by the derivation function (see SRP 2FA login)
@@ -7905,7 +7970,7 @@ type PrepaidGiveaway interface {
ImplementsPrepaidGiveaway()
}
-// Contains info about a [prepaid giveaway ยป](https://core.telegram.org/api/giveaways).
+// Contains info about a prepaid giveaway ยป.
type PrepaidGiveawayObj struct {
ID int64 // Prepaid giveaway ID.
Months int32 // Duration in months of each gifted Telegram Premium subscription.
@@ -7919,12 +7984,13 @@ func (*PrepaidGiveawayObj) CRC() uint32 {
func (*PrepaidGiveawayObj) ImplementsPrepaidGiveaway() {}
+// Contains info about a prepaid Telegram Star giveaway ยป.
type PrepaidStarsGiveaway struct {
- ID int64
- Stars int64
- Quantity int32
- Boosts int32
- Date int32
+ ID int64 // Prepaid giveaway ID.
+ Stars int64 // Number of given away Telegram Stars
+ Quantity int32 // Number of giveaway winners
+ Boosts int32 // Number of boosts the channel will gain by launching the giveaway.
+ Date int32 // When was the giveaway paid for
}
func (*PrepaidStarsGiveaway) CRC() uint32 {
@@ -7947,6 +8013,21 @@ func (*PrivacyValueAllowAll) CRC() uint32 {
func (*PrivacyValueAllowAll) ImplementsPrivacyRule() {}
+/*
+
+privacyValueAllowBots#21461b5d = PrivacyRule;
+*/
type PrivacyValueAllowBots struct{}
func (*PrivacyValueAllowBots) CRC() uint32 {
@@ -7966,7 +8047,7 @@ func (*PrivacyValueAllowChatParticipants) CRC() uint32 {
func (*PrivacyValueAllowChatParticipants) ImplementsPrivacyRule() {}
-// Allow only [close friends ยป](https://core.telegram.org/api/privacy)
+// Allow only close friends ยป
type PrivacyValueAllowCloseFriends struct{}
func (*PrivacyValueAllowCloseFriends) CRC() uint32 {
@@ -7984,7 +8065,7 @@ func (*PrivacyValueAllowContacts) CRC() uint32 {
func (*PrivacyValueAllowContacts) ImplementsPrivacyRule() {}
-// Allow only users with a [Premium subscription ยป](https://core.telegram.org/api/premium), currently only usable for [inputPrivacyKeyChatInvite](https://core.telegram.org/constructor/inputPrivacyKeyChatInvite).
+// Allow only users with a Premium subscription ยป, currently only usable for inputPrivacyKeyChatInvite.
type PrivacyValueAllowPremium struct{}
func (*PrivacyValueAllowPremium) CRC() uint32 {
@@ -8013,6 +8094,21 @@ func (*PrivacyValueDisallowAll) CRC() uint32 {
func (*PrivacyValueDisallowAll) ImplementsPrivacyRule() {}
+/*
+
+privacyValueDisallowBots#f6a5f82f = PrivacyRule;
+*/
type PrivacyValueDisallowBots struct{}
func (*PrivacyValueDisallowBots) CRC() uint32 {
@@ -8057,7 +8153,7 @@ type PublicForward interface {
ImplementsPublicForward()
}
-// Contains info about a forward of a [story](https://core.telegram.org/api/stories) as a message.
+// Contains info about a forward of a story as a message.
type PublicForwardMessage struct {
Message Message // Info about the message with the reposted story.
}
@@ -8068,7 +8164,7 @@ func (*PublicForwardMessage) CRC() uint32 {
func (*PublicForwardMessage) ImplementsPublicForward() {}
-// Contains info about a forward of a [story](https://core.telegram.org/api/stories) as a repost by a public channel.
+// Contains info about a forward of a story as a repost by a public channel.
type PublicForwardStory struct {
Peer Peer // The channel that reposted the story.
Story StoryItem // The reposted story (may be different from the original story).
@@ -8085,7 +8181,7 @@ type Reaction interface {
ImplementsReaction()
}
-// [Custom emoji](https://core.telegram.org/api/custom-emoji) message reaction
+// Custom emoji message reaction
type ReactionCustomEmoji struct {
DocumentID int64 // Custom emoji document ID
}
@@ -8116,6 +8212,7 @@ func (*ReactionEmpty) CRC() uint32 {
func (*ReactionEmpty) ImplementsReaction() {}
+// Represents a paid Telegram Star reaction ยป.
type ReactionPaid struct{}
func (*ReactionPaid) CRC() uint32 {
@@ -8208,8 +8305,8 @@ func (*ReplyInlineMarkup) ImplementsReplyMarkup() {}
type ReplyKeyboardForceReply struct {
SingleUse bool `tl:"flag:1,encoded_in_bitflags"` // Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat โ the user can press a special button in the input field to see the custom keyboard again.
Selective bool `tl:"flag:2,encoded_in_bitflags"` /*
- Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
- Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard.
+ Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
+ Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard.
*/
Placeholder string `tl:"flag:3"` // The placeholder to be shown in the input field when the keyboard is active; 1-64 characters.
}
@@ -8227,9 +8324,9 @@ func (*ReplyKeyboardForceReply) ImplementsReplyMarkup() {}
// Hide sent bot keyboard
type ReplyKeyboardHide struct {
Selective bool `tl:"flag:2,encoded_in_bitflags"` /*
- Use this flag if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
+ Use this flag if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
- Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet
+ Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet
*/
}
@@ -8248,9 +8345,9 @@ type ReplyKeyboardMarkup struct {
Resize bool `tl:"flag:0,encoded_in_bitflags"` // Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). If not set, the custom keyboard is always of the same height as the app's standard keyboard.
SingleUse bool `tl:"flag:1,encoded_in_bitflags"` // Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat โ the user can press a special button in the input field to see the custom keyboard again.
Selective bool `tl:"flag:2,encoded_in_bitflags"` /*
- Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
+ Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
- Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard.
+ Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard.
*/
Persistent bool `tl:"flag:4,encoded_in_bitflags"` // Requests clients to always show the keyboard when the regular keyboard is hidden.
Rows []*KeyboardButtonRow // Button row
@@ -8271,9 +8368,11 @@ type ReportResult interface {
tl.Object
ImplementsReportResult()
}
+
+// The user should enter an additional comment for the moderators, and then messages.report must be re-invoked, passing the comment to messages.report.`message`.
type ReportResultAddComment struct {
- Optional bool `tl:"flag:0,encoded_in_bitflags"`
- Option []byte
+ Optional bool `tl:"flag:0,encoded_in_bitflags"` // Whether this step can be skipped by the user, passing an empty message to messages.report, or if a non-empty message is mandatory.
+ Option []byte // The messages.report method must be re-invoked, passing this option to option
}
func (*ReportResultAddComment) CRC() uint32 {
@@ -8286,9 +8385,10 @@ func (*ReportResultAddComment) FlagIndex() int {
func (*ReportResultAddComment) ImplementsReportResult() {}
+// The user must choose one of the following options, and then messages.report must be re-invoked, passing the option's `option` identifier to messages.report.`option`.
type ReportResultChooseOption struct {
- Title string
- Options []*MessageReportOption
+ Title string // Title of the option popup
+ Options []*MessageReportOption // Available options, rendered as menu entries.
}
func (*ReportResultChooseOption) CRC() uint32 {
@@ -8297,6 +8397,7 @@ func (*ReportResultChooseOption) CRC() uint32 {
func (*ReportResultChooseOption) ImplementsReportResult() {}
+// The report was sent successfully, no further actions are required.
type ReportResultReported struct{}
func (*ReportResultReported) CRC() uint32 {
@@ -8332,10 +8433,10 @@ func (*RequestPeerTypeBroadcast) ImplementsRequestPeerType() {}
type RequestPeerTypeChat struct {
Creator bool `tl:"flag:0,encoded_in_bitflags"` // Whether to allow only choosing chats or supergroups that were created by the current user.
HasUsername bool `tl:"flag:3"` // Whether to allow only choosing chats or supergroups where the bot is a participant.
- BotParticipant bool `tl:"flag:5,encoded_in_bitflags"` // If specified, allows only choosing channels with or without a username, according to the value of Bool.
- Forum bool `tl:"flag:4"` // If specified, allows only choosing chats or supergroups that are or aren't forums, according to the value of Bool.
- UserAdminRights *ChatAdminRights `tl:"flag:1"` // If specified, allows only choosing chats or supergroups where the current user is an admin with at least the specified admin rights.
- BotAdminRights *ChatAdminRights `tl:"flag:2"` // If specified, allows only choosing chats or supergroups where the bot is an admin with at least the specified admin rights.
+ Forum bool `tl:"flag:4"` // If specified, allows only choosing channels with or without a username, according to the value of Bool.
+ UserAdminRights *ChatAdminRights `tl:"flag:1"` // If specified, allows only choosing chats or supergroups that are or aren't forums, according to the value of Bool.
+ BotAdminRights *ChatAdminRights `tl:"flag:2"` // If specified, allows only choosing chats or supergroups where the current user is an admin with at least the specified admin rights.
+ BotParticipant bool `tl:"flag:5,encoded_in_bitflags"` // If specified, allows only choosing chats or supergroups where the bot is an admin with at least the specified admin rights.
}
func (*RequestPeerTypeChat) CRC() uint32 {
@@ -8369,7 +8470,7 @@ type RequestedPeer interface {
ImplementsRequestedPeer()
}
-// Info about a [channel/supergroup](https://core.telegram.org/api/channel), shared by a user with the currently logged in bot using [messages.sendBotRequestedPeer](https://core.telegram.org/method/messages.sendBotRequestedPeer).
+// Info about a channel/supergroup, shared by a user with the currently logged in bot using messages.sendBotRequestedPeer.
type RequestedPeerChannel struct {
ChannelID int64 // Channel/supergroup ID.
Title string `tl:"flag:0"` // Channel/supergroup title.
@@ -8387,7 +8488,7 @@ func (*RequestedPeerChannel) FlagIndex() int {
func (*RequestedPeerChannel) ImplementsRequestedPeer() {}
-// Info about a [chat](https://core.telegram.org/api/channel), shared by a user with the currently logged in bot using [messages.sendBotRequestedPeer](https://core.telegram.org/method/messages.sendBotRequestedPeer).
+// Info about a chat, shared by a user with the currently logged in bot using messages.sendBotRequestedPeer.
type RequestedPeerChat struct {
ChatID int64 // Chat ID.
Title string `tl:"flag:0"` // Chat title.
@@ -8404,7 +8505,7 @@ func (*RequestedPeerChat) FlagIndex() int {
func (*RequestedPeerChat) ImplementsRequestedPeer() {}
-// Info about a user, shared by a user with the currently logged in bot using [messages.sendBotRequestedPeer](https://core.telegram.org/method/messages.sendBotRequestedPeer).
+// Info about a user, shared by a user with the currently logged in bot using messages.sendBotRequestedPeer.
type RequestedPeerUser struct {
UserID int64 // User ID.
FirstName string `tl:"flag:0"` // First name.
@@ -8614,7 +8715,7 @@ type SecureFile interface {
ImplementsSecureFile()
}
-// Secure [passport](https://core.telegram.org/passport) file, for more info [see the passport docs ยป](https://core.telegram.org/passport/encryption#inputsecurefile)
+// Secure passport file, for more info see the passport docs ยป
type SecureFileObj struct {
ID int64 // ID
AccessHash int64 // Access hash
@@ -8681,7 +8782,7 @@ type SecurePlainData interface {
ImplementsSecurePlainData()
}
-// Email address to use in [telegram passport](https://core.telegram.org/passport): [it must be verified, first ยป](https://core.telegram.org/passport/encryption#secureplaindata).
+// Email address to use in telegram passport: it must be verified, first ยป.
type SecurePlainEmail struct {
Email string // Email address
}
@@ -8692,7 +8793,7 @@ func (*SecurePlainEmail) CRC() uint32 {
func (*SecurePlainEmail) ImplementsSecurePlainData() {}
-// Phone number to use in [telegram passport](https://core.telegram.org/passport): [it must be verified, first ยป](https://core.telegram.org/passport/encryption#secureplaindata).
+// Phone number to use in telegram passport: it must be verified, first ยป.
type SecurePlainPhone struct {
Phone string // Phone number
}
@@ -8892,7 +8993,7 @@ func (*SendMessageChooseStickerAction) CRC() uint32 {
func (*SendMessageChooseStickerAction) ImplementsSendMessageAction() {}
-// User has clicked on an animated emoji triggering a [reaction, click here for more info ยป](https://core.telegram.org/api/animated-emojis#emoji-reactions).
+// User has clicked on an animated emoji triggering a reaction, click here for more info ยป.
type SendMessageEmojiInteraction struct {
Emoticon string // Emoji
MsgID int32 // Message ID of the animated emoji that was clicked
@@ -8905,7 +9006,7 @@ func (*SendMessageEmojiInteraction) CRC() uint32 {
func (*SendMessageEmojiInteraction) ImplementsSendMessageAction() {}
-// User is watching an animated emoji reaction triggered by another user, [click here for more info ยป](https://core.telegram.org/api/animated-emojis#emoji-reactions).
+// User is watching an animated emoji reaction triggered by another user, click here for more info ยป.
type SendMessageEmojiInteractionSeen struct {
Emoticon string // Emoji
}
@@ -9050,7 +9151,7 @@ type StarsTransactionPeer interface {
ImplementsStarsTransactionPeer()
}
-// Describes a [Telegram Star](https://core.telegram.org/api/stars) transaction with another peer.
+// Describes a Telegram Star transaction with another peer.
type StarsTransactionPeerObj struct {
Peer Peer // The peer.
}
@@ -9061,6 +9162,7 @@ func (*StarsTransactionPeerObj) CRC() uint32 {
func (*StarsTransactionPeerObj) ImplementsStarsTransactionPeer() {}
+// Describes a Telegram Star transaction used to pay for paid API usage, such as paid bot broadcasts.
type StarsTransactionPeerAPI struct{}
func (*StarsTransactionPeerAPI) CRC() uint32 {
@@ -9069,7 +9171,7 @@ func (*StarsTransactionPeerAPI) CRC() uint32 {
func (*StarsTransactionPeerAPI) ImplementsStarsTransactionPeer() {}
-// Describes a [Telegram Star](https://core.telegram.org/api/stars) transaction used to pay for [Telegram ads as specified here ยป](https://core.telegram.org/api/stars#paying-for-ads).
+// Describes a Telegram Star transaction used to pay for Telegram ads as specified here ยป.
type StarsTransactionPeerAds struct{}
func (*StarsTransactionPeerAds) CRC() uint32 {
@@ -9078,7 +9180,7 @@ func (*StarsTransactionPeerAds) CRC() uint32 {
func (*StarsTransactionPeerAds) ImplementsStarsTransactionPeer() {}
-// Describes a [Telegram Star](https://core.telegram.org/api/stars) transaction with the App Store, used when purchasing Telegram Stars through the App Store.
+// Describes a Telegram Star transaction with the App Store, used when purchasing Telegram Stars through the App Store.
type StarsTransactionPeerAppStore struct{}
func (*StarsTransactionPeerAppStore) CRC() uint32 {
@@ -9087,7 +9189,7 @@ func (*StarsTransactionPeerAppStore) CRC() uint32 {
func (*StarsTransactionPeerAppStore) ImplementsStarsTransactionPeer() {}
-// Describes a [Telegram Star](https://core.telegram.org/api/stars) transaction with [Fragment](https://core.telegram.orghttps://fragment.com), used when purchasing Telegram Stars through [Fragment](https://core.telegram.orghttps://fragment.com).
+// Describes a Telegram Star transaction with Fragment, used when purchasing Telegram Stars through Fragment.
type StarsTransactionPeerFragment struct{}
func (*StarsTransactionPeerFragment) CRC() uint32 {
@@ -9096,7 +9198,7 @@ func (*StarsTransactionPeerFragment) CRC() uint32 {
func (*StarsTransactionPeerFragment) ImplementsStarsTransactionPeer() {}
-// Describes a [Telegram Star](https://core.telegram.org/api/stars) transaction with the Play Store, used when purchasing Telegram Stars through the Play Store.
+// Describes a Telegram Star transaction with the Play Store, used when purchasing Telegram Stars through the Play Store.
type StarsTransactionPeerPlayMarket struct{}
func (*StarsTransactionPeerPlayMarket) CRC() uint32 {
@@ -9105,7 +9207,7 @@ func (*StarsTransactionPeerPlayMarket) CRC() uint32 {
func (*StarsTransactionPeerPlayMarket) ImplementsStarsTransactionPeer() {}
-// Describes a [Telegram Star](https://core.telegram.org/api/stars) transaction made using [@PremiumBot](https://core.telegram.orghttps://t.me/premiumbot) (i.e. using the [inputInvoiceStars](https://core.telegram.org/constructor/inputInvoiceStars) flow described [here ยป](https://core.telegram.org/api/stars#buying-or-gifting-stars)).
+// Describes a Telegram Star transaction made using @PremiumBot (i.e. using the inputInvoiceStars flow described here ยป).
type StarsTransactionPeerPremiumBot struct{}
func (*StarsTransactionPeerPremiumBot) CRC() uint32 {
@@ -9114,7 +9216,7 @@ func (*StarsTransactionPeerPremiumBot) CRC() uint32 {
func (*StarsTransactionPeerPremiumBot) ImplementsStarsTransactionPeer() {}
-// Describes a [Telegram Star](https://core.telegram.org/api/stars) transaction that cannot be described using the current layer.
+// Describes a Telegram Star transaction that cannot be described using the current layer.
type StarsTransactionPeerUnsupported struct{}
func (*StarsTransactionPeerUnsupported) CRC() uint32 {
@@ -9128,7 +9230,7 @@ type StatsGraph interface {
ImplementsStatsGraph()
}
-// [Channel statistics graph](https://core.telegram.org/api/stats)
+// Channel statistics graph
type StatsGraphObj struct {
Json *DataJson // Statistics data
ZoomToken string `tl:"flag:0"` // Zoom token
@@ -9144,7 +9246,7 @@ func (*StatsGraphObj) FlagIndex() int {
func (*StatsGraphObj) ImplementsStatsGraph() {}
-// This [channel statistics graph](https://core.telegram.org/api/stats) must be generated asynchronously using [stats.loadAsyncGraph](https://core.telegram.org/method/stats.loadAsyncGraph) to reduce server load
+// This channel statistics graph must be generated asynchronously using stats.loadAsyncGraph to reduce server load
type StatsGraphAsync struct {
Token string // Token to use for fetching the async graph
}
@@ -9155,7 +9257,7 @@ func (*StatsGraphAsync) CRC() uint32 {
func (*StatsGraphAsync) ImplementsStatsGraph() {}
-// An error occurred while generating the [statistics graph](https://core.telegram.org/api/stats)
+// An error occurred while generating the statistics graph
type StatsGraphError struct {
Error string // The error
}
@@ -9185,7 +9287,7 @@ func (*StickerSetCoveredObj) ImplementsStickerSetCovered() {}
/*
Stickerset preview with all stickers of the stickerset included.
-Currently used only for [custom emoji stickersets](https://core.telegram.org/api/custom-emoji), to avoid a further call to [messages.getStickerSet](https://core.telegram.org/method/messages.getStickerSet).
+Currently used only for custom emoji stickersets, to avoid a further call to messages.getStickerSet.
*/
type StickerSetFullCovered struct {
Set *StickerSet // Stickerset
@@ -9228,7 +9330,7 @@ type StoryItem interface {
ImplementsStoryItem()
}
-// Represents a [story](https://core.telegram.org/api/stories).
+// Represents a story.
type StoryItemObj struct {
Pinned bool `tl:"flag:5,encoded_in_bitflags"` // Whether this story is pinned on the user's profile
Public bool `tl:"flag:7,encoded_in_bitflags"` // Whether this story is public and can be viewed by everyone
@@ -9274,7 +9376,7 @@ func (*StoryItemDeleted) CRC() uint32 {
func (*StoryItemDeleted) ImplementsStoryItem() {}
-// Represents an active story, whose full information was omitted for space and performance reasons; use [stories.getStoriesByID](https://core.telegram.org/method/stories.getStoriesByID) to fetch full info about the skipped story when and if needed.
+// Represents an active story, whose full information was omitted for space and performance reasons; use stories.getStoriesByID to fetch full info about the skipped story when and if needed.
type StoryItemSkipped struct {
CloseFriends bool `tl:"flag:8,encoded_in_bitflags"` // Whether this story can only be viewed by our close friends
ID int32 // Story ID
@@ -9338,7 +9440,7 @@ type StoryView interface {
ImplementsStoryView()
}
-// [Story](https://core.telegram.org/api/stories) view date and reaction information
+// Story view date and reaction information
type StoryViewObj struct {
Blocked bool `tl:"flag:0,encoded_in_bitflags"` // Whether we have completely blocked this user, including from viewing more of our stories.
BlockedMyStoriesFrom bool `tl:"flag:1,encoded_in_bitflags"` // Whether we have blocked this user from viewing more of our stories.
@@ -9397,7 +9499,7 @@ type Update interface {
ImplementsUpdate()
}
-// The list of installed [attachment menu entries ยป](https://core.telegram.org/api/bots/attach) has changed, use [messages.getAttachMenuBots](https://core.telegram.org/method/messages.getAttachMenuBots) to fetch the updated list.
+// The list of installed attachment menu entries ยป has changed, use messages.getAttachMenuBots to fetch the updated list.
type UpdateAttachMenuBots struct{}
func (*UpdateAttachMenuBots) CRC() uint32 {
@@ -9406,7 +9508,7 @@ func (*UpdateAttachMenuBots) CRC() uint32 {
func (*UpdateAttachMenuBots) ImplementsUpdate() {}
-// Media autosave settings have changed and must be refetched using [account.getAutoSaveSettings](https://core.telegram.org/method/account.getAutoSaveSettings).
+// Media autosave settings have changed and must be refetched using account.getAutoSaveSettings.
type UpdateAutoSaveSettings struct{}
func (*UpdateAutoSaveSettings) CRC() uint32 {
@@ -9415,7 +9517,7 @@ func (*UpdateAutoSaveSettings) CRC() uint32 {
func (*UpdateAutoSaveSettings) ImplementsUpdate() {}
-// Connecting or disconnecting a [business bot](https://core.telegram.org/api/business#connected-bots) or changing the connection settings will emit an [updateBotBusinessConnect](https://core.telegram.org/constructor/updateBotBusinessConnect) update to the bot, with the new settings and a `connection_id` that will be used by the bot to handle updates from and send messages as the user.
+// Connecting or disconnecting a business bot or changing the connection settings will emit an updateBotBusinessConnect update to the bot, with the new settings and a `connection_id` that will be used by the bot to handle updates from and send messages as the user.
type UpdateBotBusinessConnect struct {
Connection *BotBusinessConnection // Business connection settings
Qts int32 // New qts value, see updates for more info.
@@ -9448,7 +9550,7 @@ func (*UpdateBotCallbackQuery) FlagIndex() int {
func (*UpdateBotCallbackQuery) ImplementsUpdate() {}
-// A [channel/supergroup boost](https://core.telegram.org/api/boost) has changed (bots only)
+// A channel/supergroup boost has changed (bots only)
type UpdateBotChatBoost struct {
Peer Peer // Channel
Boost *Boost // New boost information
@@ -9461,7 +9563,7 @@ func (*UpdateBotChatBoost) CRC() uint32 {
func (*UpdateBotChatBoost) ImplementsUpdate() {}
-// Someone has requested to join a chat or channel (bots only, users will receive an [updatePendingJoinRequests](https://core.telegram.org/constructor/updatePendingJoinRequests), instead)
+// Someone has requested to join a chat or channel (bots only, users will receive an updatePendingJoinRequests, instead)
type UpdateBotChatInviteRequester struct {
Peer Peer // The chat or channel in question
Date int32 // When was the join request made
@@ -9477,7 +9579,7 @@ func (*UpdateBotChatInviteRequester) CRC() uint32 {
func (*UpdateBotChatInviteRequester) ImplementsUpdate() {}
-// The [command set](https://core.telegram.org/api/bots/commands) of a certain bot in a certain chat has changed.
+// The command set of a certain bot in a certain chat has changed.
type UpdateBotCommands struct {
Peer Peer // The affected chat
BotID int64 // ID of the bot that changed its command set
@@ -9490,7 +9592,7 @@ func (*UpdateBotCommands) CRC() uint32 {
func (*UpdateBotCommands) ImplementsUpdate() {}
-// A message was deleted in a [connected business chat ยป](https://core.telegram.org/api/business#connected-bots).
+// A message was deleted in a connected business chat ยป.
type UpdateBotDeleteBusinessMessage struct {
ConnectionID string // Business connection ID.
Peer Peer // Peer where the messages were deleted.
@@ -9504,7 +9606,7 @@ func (*UpdateBotDeleteBusinessMessage) CRC() uint32 {
func (*UpdateBotDeleteBusinessMessage) ImplementsUpdate() {}
-// A message was edited in a [connected business chat ยป](https://core.telegram.org/api/business#connected-bots).
+// A message was edited in a connected business chat ยป.
type UpdateBotEditBusinessMessage struct {
ConnectionID string // Business connection ID
Message Message // New message.
@@ -9542,7 +9644,7 @@ func (*UpdateBotInlineQuery) FlagIndex() int {
func (*UpdateBotInlineQuery) ImplementsUpdate() {}
-// The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the [feedback collecting](https://core.telegram.orghttps://core.telegram.org/bots/inline#collecting-feedback) for details on how to enable these updates for your bot.
+// The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot.
type UpdateBotInlineSend struct {
UserID int64 // The user that chose the result
Query string // The query that was used to obtain the result
@@ -9605,7 +9707,7 @@ func (*UpdateBotMessageReactions) CRC() uint32 {
func (*UpdateBotMessageReactions) ImplementsUpdate() {}
-// A message was received via a [connected business chat ยป](https://core.telegram.org/api/business#connected-bots).
+// A message was received via a connected business chat ยป.
type UpdateBotNewBusinessMessage struct {
ConnectionID string // Connection ID.
Message Message // New message.
@@ -9644,10 +9746,11 @@ func (*UpdateBotPrecheckoutQuery) FlagIndex() int {
func (*UpdateBotPrecheckoutQuery) ImplementsUpdate() {}
+// Bots only: a user has purchased a paid media.
type UpdateBotPurchasedPaidMedia struct {
- UserID int64
- Payload string
- Qts int32
+ UserID int64 // The user that bought the media
+ Payload string // Payload passed by the bot in inputMediaPaidMedia.payload
+ Qts int32 // New qts value, see updates for more info.
}
func (*UpdateBotPurchasedPaidMedia) CRC() uint32 {
@@ -9685,15 +9788,14 @@ func (*UpdateBotStopped) CRC() uint32 {
func (*UpdateBotStopped) ImplementsUpdate() {}
type UpdateBotSubscriptionExpire struct {
- UserID int64
- Payload string
- InvoiceSlug string
- UntilDate int32
- Qts int32
+ UserID int64
+ Payload string
+ UntilDate int32
+ Qts int32
}
func (*UpdateBotSubscriptionExpire) CRC() uint32 {
- return 0x2d13c6ee
+ return 0xa8ae3eb1
}
func (*UpdateBotSubscriptionExpire) ImplementsUpdate() {}
@@ -9722,7 +9824,7 @@ func (*UpdateBotWebhookJsonQuery) CRC() uint32 {
func (*UpdateBotWebhookJsonQuery) ImplementsUpdate() {}
-// A new [channel ad revenue transaction was made, see here ยป](https://core.telegram.org/api/revenue#revenue-statistics) for more info.
+// A new channel ad revenue transaction was made, see here ยป for more info.
type UpdateBroadcastRevenueTransactions struct {
Peer Peer // Channel
Balances *BroadcastRevenueBalances // New ad revenue balance.
@@ -9734,7 +9836,7 @@ func (*UpdateBroadcastRevenueTransactions) CRC() uint32 {
func (*UpdateBroadcastRevenueTransactions) ImplementsUpdate() {}
-// A callback button sent via a [business connection](https://core.telegram.org/api/business#connected-bots) was pressed, and the button data was sent to the bot that created the button.
+// A callback button sent via a business connection was pressed, and the button data was sent to the bot that created the button.
type UpdateBusinessBotCallbackQuery struct {
QueryID int64 // Query ID
UserID int64 // ID of the user that pressed the button
@@ -9755,7 +9857,7 @@ func (*UpdateBusinessBotCallbackQuery) FlagIndex() int {
func (*UpdateBusinessBotCallbackQuery) ImplementsUpdate() {}
-// Channel/supergroup ([channel](https://core.telegram.org/constructor/channel) and/or [channelFull](https://core.telegram.org/constructor/channelFull)) information was updated.
+// Channel/supergroup (channel and/or channelFull) information was updated.
type UpdateChannel struct {
ChannelID int64 // Channel ID
}
@@ -9766,7 +9868,7 @@ func (*UpdateChannel) CRC() uint32 {
func (*UpdateChannel) ImplementsUpdate() {}
-// The history of a [channel/supergroup](https://core.telegram.org/api/channel) was hidden.
+// The history of a channel/supergroup was hidden.
type UpdateChannelAvailableMessages struct {
ChannelID int64 // Channel/supergroup ID
AvailableMinID int32 // Identifier of a maximum unavailable message in a channel due to hidden history.
@@ -9804,7 +9906,7 @@ func (*UpdateChannelMessageViews) CRC() uint32 {
func (*UpdateChannelMessageViews) ImplementsUpdate() {}
-// A participant has left, joined, was banned or admined in a [channel or supergroup](https://core.telegram.org/api/channel).
+// A participant has left, joined, was banned or admined in a channel or supergroup.
type UpdateChannelParticipant struct {
ViaChatlist bool `tl:"flag:3,encoded_in_bitflags"` // Whether the participant joined using a chat folder deep link.
ChannelID int64 // Channel ID
@@ -9827,7 +9929,7 @@ func (*UpdateChannelParticipant) FlagIndex() int {
func (*UpdateChannelParticipant) ImplementsUpdate() {}
-// A [forum topic ยป](https://core.telegram.org/api/forum#forum-topics) was pinned or unpinned.
+// A forum topic ยป was pinned or unpinned.
type UpdateChannelPinnedTopic struct {
Pinned bool `tl:"flag:0,encoded_in_bitflags"` // Whether the topic was pinned or unpinned
ChannelID int64 // The forum ID
@@ -9844,7 +9946,7 @@ func (*UpdateChannelPinnedTopic) FlagIndex() int {
func (*UpdateChannelPinnedTopic) ImplementsUpdate() {}
-// The [pinned topics](https://core.telegram.org/api/forum#forum-topics) of a forum have changed.
+// The pinned topics of a forum have changed.
type UpdateChannelPinnedTopics struct {
ChannelID int64 // Forum ID.
Order []int32 `tl:"flag:0"` // Ordered list containing the IDs of all pinned topics.
@@ -9860,7 +9962,7 @@ func (*UpdateChannelPinnedTopics) FlagIndex() int {
func (*UpdateChannelPinnedTopics) ImplementsUpdate() {}
-// The specified [channel/supergroup](https://core.telegram.org/api/channel) messages were read
+// The specified channel/supergroup messages were read
type UpdateChannelReadMessagesContents struct {
ChannelID int64 // Channel/supergroup ID
TopMsgID int32 `tl:"flag:0"` // Forum topic ID.
@@ -9896,7 +9998,7 @@ func (*UpdateChannelTooLong) FlagIndex() int {
func (*UpdateChannelTooLong) ImplementsUpdate() {}
-// A user is typing in a [supergroup, channel](https://core.telegram.org/api/channel) or [message thread](https://core.telegram.org/api/threads)
+// A user is typing in a supergroup, channel or message thread
type UpdateChannelUserTyping struct {
ChannelID int64 // Channel ID
TopMsgID int32 `tl:"flag:0"` // Thread ID
@@ -9916,7 +10018,7 @@ func (*UpdateChannelUserTyping) ImplementsUpdate() {}
/*
Users may also choose to display messages from all topics as if they were sent to a normal group, using a "View as messages" setting in the local client.
-This setting only affects the current account, and is synced to other logged in sessions using the [channels.toggleViewForumAsMessages](https://core.telegram.org/method/channels.toggleViewForumAsMessages) method; invoking this method will update the value of the `view_forum_as_messages` flag of [channelFull](https://core.telegram.org/constructor/channelFull) or [dialog](https://core.telegram.org/constructor/dialog) and emit an [updateChannelViewForumAsMessages](https://core.telegram.org/constructor/updateChannelViewForumAsMessages).
+This setting only affects the current account, and is synced to other logged in sessions using the channels.toggleViewForumAsMessages method; invoking this method will update the value of the `view_forum_as_messages` flag of channelFull or dialog and emit an updateChannelViewForumAsMessages.
*/
type UpdateChannelViewForumAsMessages struct {
ChannelID int64 // The forum ID
@@ -9929,7 +10031,7 @@ func (*UpdateChannelViewForumAsMessages) CRC() uint32 {
func (*UpdateChannelViewForumAsMessages) ImplementsUpdate() {}
-// A webpage preview of a link in a [channel/supergroup](https://core.telegram.org/api/channel) message was generated
+// A webpage preview of a link in a channel/supergroup message was generated
type UpdateChannelWebPage struct {
ChannelID int64 // Channel/supergroup ID
Webpage WebPage // Generated webpage preview
@@ -9943,7 +10045,7 @@ func (*UpdateChannelWebPage) CRC() uint32 {
func (*UpdateChannelWebPage) ImplementsUpdate() {}
-// Chat ([chat](https://core.telegram.org/constructor/chat) and/or [chatFull](https://core.telegram.org/constructor/chatFull)) information was updated.
+// Chat (chat and/or chatFull) information was updated.
type UpdateChat struct {
ChatID int64 // Chat ID
}
@@ -9954,7 +10056,7 @@ func (*UpdateChat) CRC() uint32 {
func (*UpdateChat) ImplementsUpdate() {}
-// Default banned rights in a [normal chat](https://core.telegram.org/api/channel) were updated
+// Default banned rights in a normal chat were updated
type UpdateChatDefaultBannedRights struct {
Peer Peer // The chat
DefaultBannedRights *ChatBannedRights // New default banned rights
@@ -10004,7 +10106,7 @@ func (*UpdateChatParticipantAdd) CRC() uint32 {
func (*UpdateChatParticipantAdd) ImplementsUpdate() {}
-// Admin permissions of a user in a [basic group](https://core.telegram.org/api/channel#basic-groups) were changed
+// Admin permissions of a user in a basic group were changed
type UpdateChatParticipantAdmin struct {
ChatID int64 // Chat ID
UserID int64 // ID of the (de)admined user
@@ -10055,7 +10157,7 @@ func (*UpdateChatUserTyping) CRC() uint32 {
func (*UpdateChatUserTyping) ImplementsUpdate() {}
-// The server-side configuration has changed; the client should re-fetch the config using [help.getConfig](https://core.telegram.org/method/help.getConfig) and [help.getAppConfig](https://core.telegram.org/method/help.getAppConfig).
+// The server-side configuration has changed; the client should re-fetch the config using help.getConfig and help.getAppConfig.
type UpdateConfig struct{}
func (*UpdateConfig) CRC() uint32 {
@@ -10084,7 +10186,7 @@ func (*UpdateDcOptions) CRC() uint32 {
func (*UpdateDcOptions) ImplementsUpdate() {}
-// Some messages in a [supergroup/channel](https://core.telegram.org/api/channel) were deleted
+// Some messages in a supergroup/channel were deleted
type UpdateDeleteChannelMessages struct {
ChannelID int64 // Channel ID
Messages []int32 // IDs of messages that were deleted
@@ -10111,7 +10213,7 @@ func (*UpdateDeleteMessages) CRC() uint32 {
func (*UpdateDeleteMessages) ImplementsUpdate() {}
-// A [quick reply shortcut ยป](https://core.telegram.org/api/business#quick-reply-shortcuts) was deleted. This will not emit [updateDeleteQuickReplyMessages](https://core.telegram.org/constructor/updateDeleteQuickReplyMessages) updates, even if all the messages in the shortcut are also deleted by this update.
+// A quick reply shortcut ยป was deleted. This will not emit updateDeleteQuickReplyMessages updates, even if all the messages in the shortcut are also deleted by this update.
type UpdateDeleteQuickReply struct {
ShortcutID int32 // ID of the quick reply shortcut that was deleted.
}
@@ -10122,7 +10224,7 @@ func (*UpdateDeleteQuickReply) CRC() uint32 {
func (*UpdateDeleteQuickReply) ImplementsUpdate() {}
-// One or more messages in a [quick reply shortcut ยป](https://core.telegram.org/api/business#quick-reply-shortcuts) were deleted.
+// One or more messages in a quick reply shortcut ยป were deleted.
type UpdateDeleteQuickReplyMessages struct {
ShortcutID int32 // Quick reply shortcut ID.
Messages []int32 // IDs of the deleted messages.
@@ -10134,11 +10236,14 @@ func (*UpdateDeleteQuickReplyMessages) CRC() uint32 {
func (*UpdateDeleteQuickReplyMessages) ImplementsUpdate() {}
-// Some [scheduled messages](https://core.telegram.org/api/scheduled-messages) were deleted from the schedule queue of a chat
+// Some scheduled messages were deleted (or sent) from the schedule queue of a chat
type UpdateDeleteScheduledMessages struct {
- Peer Peer
- Messages []int32
- SentMessages []int32 `tl:"flag:0"`
+ Peer Peer // Peer
+ Messages []int32 // Deleted scheduled messages
+ SentMessages []int32 `tl:"flag:0"` /*
+ If set, this update indicates that some scheduled messages were sent (not simply deleted from the schedule queue).
+ In this case, the messages field will contain the scheduled message IDs for the sent messages (initially returned in updateNewScheduledMessage), and sent_messages will contain the real message IDs for the sent messages.
+ */
}
func (*UpdateDeleteScheduledMessages) CRC() uint32 {
@@ -10151,7 +10256,7 @@ func (*UpdateDeleteScheduledMessages) FlagIndex() int {
func (*UpdateDeleteScheduledMessages) ImplementsUpdate() {}
-// A new [folder](https://core.telegram.org/api/folders) was added
+// A new folder was added
type UpdateDialogFilter struct {
ID int32 // Folder ID
Filter DialogFilter `tl:"flag:0"` // Folder info
@@ -10167,7 +10272,7 @@ func (*UpdateDialogFilter) FlagIndex() int {
func (*UpdateDialogFilter) ImplementsUpdate() {}
-// New [folder](https://core.telegram.org/api/folders) order
+// New folder order
type UpdateDialogFilterOrder struct {
Order []int32 // Ordered folder IDs
}
@@ -10178,7 +10283,7 @@ func (*UpdateDialogFilterOrder) CRC() uint32 {
func (*UpdateDialogFilterOrder) ImplementsUpdate() {}
-// Clients should update [folder](https://core.telegram.org/api/folders) info
+// Clients should update folder info
type UpdateDialogFilters struct{}
func (*UpdateDialogFilters) CRC() uint32 {
@@ -10220,7 +10325,7 @@ func (*UpdateDialogUnreadMark) FlagIndex() int {
func (*UpdateDialogUnreadMark) ImplementsUpdate() {}
-// Notifies a change of a message [draft](https://core.telegram.org/api/drafts).
+// Notifies a change of a message draft.
type UpdateDraftMessage struct {
Peer Peer // The peer to which the draft is associated
TopMsgID int32 `tl:"flag:0"` // ID of the forum topic to which the draft is associated
@@ -10237,7 +10342,7 @@ func (*UpdateDraftMessage) FlagIndex() int {
func (*UpdateDraftMessage) ImplementsUpdate() {}
-// A message was edited in a [channel/supergroup](https://core.telegram.org/api/channel)
+// A message was edited in a channel/supergroup
type UpdateEditChannelMessage struct {
Message Message // The new message
Pts int32 // Event count after generation
@@ -10299,7 +10404,7 @@ func (*UpdateEncryption) CRC() uint32 {
func (*UpdateEncryption) ImplementsUpdate() {}
-// The list of favorited stickers was changed, the client should call [messages.getFavedStickers](https://core.telegram.org/method/messages.getFavedStickers) to refetch the new list
+// The list of favorited stickers was changed, the client should call messages.getFavedStickers to refetch the new list
type UpdateFavedStickers struct{}
func (*UpdateFavedStickers) CRC() uint32 {
@@ -10308,7 +10413,7 @@ func (*UpdateFavedStickers) CRC() uint32 {
func (*UpdateFavedStickers) ImplementsUpdate() {}
-// The peer list of a [peer folder](https://core.telegram.org/api/folders#peer-folders) was updated
+// The peer list of a peer folder was updated
type UpdateFolderPeers struct {
FolderPeers []*FolderPeer // New peer list
Pts int32 // Event count after generation
@@ -10405,7 +10510,7 @@ func (*UpdateLangPack) CRC() uint32 {
func (*UpdateLangPack) ImplementsUpdate() {}
-// A language pack has changed, the client should manually fetch the changed strings using [langpack.getDifference](https://core.telegram.org/method/langpack.getDifference)
+// A language pack has changed, the client should manually fetch the changed strings using langpack.getDifference
type UpdateLangPackTooLong struct {
LangCode string // Language code
}
@@ -10425,7 +10530,7 @@ func (*UpdateLoginToken) CRC() uint32 {
func (*UpdateLoginToken) ImplementsUpdate() {}
-// You [bought a paid media ยป](https://core.telegram.org/api/paid-media): this update contains the revealed media.
+// You bought a paid media ยป: this update contains the revealed media.
type UpdateMessageExtendedMedia struct {
Peer Peer // Peer where the paid media was posted
MsgID int32 // ID of the message containing the paid media
@@ -10481,7 +10586,7 @@ func (*UpdateMessagePollVote) CRC() uint32 {
func (*UpdateMessagePollVote) ImplementsUpdate() {}
-// New [message reactions ยป](https://core.telegram.org/api/reactions) are available
+// New message reactions ยป are available
type UpdateMessageReactions struct {
Peer Peer // Peer
MsgID int32 // Message ID
@@ -10499,7 +10604,7 @@ func (*UpdateMessageReactions) FlagIndex() int {
func (*UpdateMessageReactions) ImplementsUpdate() {}
-// A stickerset was just moved to top, [see here for more info ยป](https://core.telegram.org/api/stickers#recent-stickersets)
+// A stickerset was just moved to top, see here for more info ยป
type UpdateMoveStickerSetToTop struct {
Masks bool `tl:"flag:0,encoded_in_bitflags"` // This update is referring to a mask stickerset
Emojis bool `tl:"flag:1,encoded_in_bitflags"` // This update is referring to a custom emoji stickerset
@@ -10535,7 +10640,7 @@ func (*UpdateNewAuthorization) FlagIndex() int {
func (*UpdateNewAuthorization) ImplementsUpdate() {}
-// A new message was sent in a [channel/supergroup](https://core.telegram.org/api/channel)
+// A new message was sent in a channel/supergroup
type UpdateNewChannelMessage struct {
Message Message // New message
Pts int32 // Event count after generation
@@ -10560,7 +10665,7 @@ func (*UpdateNewEncryptedMessage) CRC() uint32 {
func (*UpdateNewEncryptedMessage) ImplementsUpdate() {}
-// New message in a private chat or in a [basic group](https://core.telegram.orghttps://core.telegram.org/api/channel#basic-groups).
+// New message in a private chat or in a basic group.
type UpdateNewMessage struct {
Message Message // Message
Pts int32 // New quantity of actions in a message box
@@ -10573,7 +10678,7 @@ func (*UpdateNewMessage) CRC() uint32 {
func (*UpdateNewMessage) ImplementsUpdate() {}
-// A new [quick reply shortcut ยป](https://core.telegram.org/api/business#quick-reply-shortcuts) was created.
+// A new quick reply shortcut ยป was created.
type UpdateNewQuickReply struct {
QuickReply *QuickReply // Quick reply shortcut.
}
@@ -10584,7 +10689,7 @@ func (*UpdateNewQuickReply) CRC() uint32 {
func (*UpdateNewQuickReply) ImplementsUpdate() {}
-// A message was added to the [schedule queue of a chat](https://core.telegram.org/api/scheduled-messages)
+// A message was added to the schedule queue of a chat
type UpdateNewScheduledMessage struct {
Message Message // Message
}
@@ -10606,7 +10711,7 @@ func (*UpdateNewStickerSet) CRC() uint32 {
func (*UpdateNewStickerSet) ImplementsUpdate() {}
-// Represents a new [reaction to a story](https://core.telegram.org/api/reactions#notifications-about-reactions).
+// Represents a new reaction to a story.
type UpdateNewStoryReaction struct {
StoryID int32 // Story ID.
Peer Peer // The peer where the story was posted.
@@ -10631,8 +10736,9 @@ func (*UpdateNotifySettings) CRC() uint32 {
func (*UpdateNotifySettings) ImplementsUpdate() {}
+// Contains the current default paid reaction privacy, see here ยป for more info.
type UpdatePaidReactionPrivacy struct {
- Private bool
+ Private bool // Whether paid reaction privacy is enabled or disabled.
}
func (*UpdatePaidReactionPrivacy) CRC() uint32 {
@@ -10641,7 +10747,7 @@ func (*UpdatePaidReactionPrivacy) CRC() uint32 {
func (*UpdatePaidReactionPrivacy) ImplementsUpdate() {}
-// We blocked a peer, see [here ยป](https://core.telegram.org/api/block) for more info on blocklists.
+// We blocked a peer, see here ยป for more info on blocklists.
type UpdatePeerBlocked struct {
Blocked bool `tl:"flag:0,encoded_in_bitflags"` // Whether the peer was blocked or unblocked
BlockedMyStoriesFrom bool `tl:"flag:1,encoded_in_bitflags"` // Whether the peer was added/removed to/from the story blocklist; if not set, this update affects the main blocklist,.
@@ -10697,7 +10803,7 @@ func (*UpdatePeerSettings) CRC() uint32 {
func (*UpdatePeerSettings) ImplementsUpdate() {}
-// The [wallpaper ยป](https://core.telegram.org/api/wallpapers) of a given peer has changed.
+// The wallpaper ยป of a given peer has changed.
type UpdatePeerWallpaper struct {
WallpaperOverridden bool `tl:"flag:1,encoded_in_bitflags"` // Whether the other user has chosen a custom wallpaper for us using messages.setChatWallPaper and the for_both flag,.
Peer Peer // The peer where the wallpaper has changed.
@@ -10750,7 +10856,7 @@ func (*UpdatePhoneCallSignalingData) CRC() uint32 {
func (*UpdatePhoneCallSignalingData) ImplementsUpdate() {}
-// Messages were pinned/unpinned in a [channel/supergroup](https://core.telegram.org/api/channel)
+// Messages were pinned/unpinned in a channel/supergroup
type UpdatePinnedChannelMessages struct {
Pinned bool `tl:"flag:0,encoded_in_bitflags"` // Whether the messages were pinned or unpinned
ChannelID int64 // Channel ID
@@ -10804,7 +10910,7 @@ func (*UpdatePinnedMessages) FlagIndex() int {
func (*UpdatePinnedMessages) ImplementsUpdate() {}
-// [Pinned saved dialogs ยป](https://core.telegram.org/api/saved-messages) were updated
+// Pinned saved dialogs ยป were updated
type UpdatePinnedSavedDialogs struct {
Order []DialogPeer `tl:"flag:0"` // New order of pinned saved dialogs
}
@@ -10831,7 +10937,7 @@ func (*UpdatePrivacy) CRC() uint32 {
func (*UpdatePrivacy) ImplementsUpdate() {}
-// [Common message box sequence PTS](https://core.telegram.org/api/updates) has changed, [state has to be refetched using updates.getState](https://core.telegram.org/api/updates#fetching-state)
+// Common message box sequence PTS has changed, state has to be refetched using updates.getState
type UpdatePtsChanged struct{}
func (*UpdatePtsChanged) CRC() uint32 {
@@ -10840,7 +10946,7 @@ func (*UpdatePtsChanged) CRC() uint32 {
func (*UpdatePtsChanged) ImplementsUpdate() {}
-// Info about or the order of [quick reply shortcuts ยป](https://core.telegram.org/api/business#quick-reply-shortcuts) was changed.
+// Info about or the order of quick reply shortcuts ยป was changed.
type UpdateQuickReplies struct {
QuickReplies []*QuickReply // New quick reply shortcut order and information.
}
@@ -10851,7 +10957,7 @@ func (*UpdateQuickReplies) CRC() uint32 {
func (*UpdateQuickReplies) ImplementsUpdate() {}
-// A new message was added to a [quick reply shortcut ยป](https://core.telegram.org/api/business#quick-reply-shortcuts).
+// A new message was added to a quick reply shortcut ยป.
type UpdateQuickReplyMessage struct {
Message Message // The message that was added (the message.quick_reply_shortcut_id field will contain the shortcut ID).
}
@@ -10862,7 +10968,7 @@ func (*UpdateQuickReplyMessage) CRC() uint32 {
func (*UpdateQuickReplyMessage) ImplementsUpdate() {}
-// Incoming comments in a [discussion thread](https://core.telegram.org/api/threads) were marked as read
+// Incoming comments in a discussion thread were marked as read
type UpdateReadChannelDiscussionInbox struct {
ChannelID int64 // Discussion group ID
TopMsgID int32 // ID of the group message that started the thread (message in linked discussion group)
@@ -10881,7 +10987,7 @@ func (*UpdateReadChannelDiscussionInbox) FlagIndex() int {
func (*UpdateReadChannelDiscussionInbox) ImplementsUpdate() {}
-// Outgoing comments in a [discussion thread](https://core.telegram.org/api/threads) were marked as read
+// Outgoing comments in a discussion thread were marked as read
type UpdateReadChannelDiscussionOutbox struct {
ChannelID int64 // Supergroup ID
TopMsgID int32 // ID of the group message that started the thread
@@ -10894,7 +11000,7 @@ func (*UpdateReadChannelDiscussionOutbox) CRC() uint32 {
func (*UpdateReadChannelDiscussionOutbox) ImplementsUpdate() {}
-// Incoming messages in a [channel/supergroup](https://core.telegram.org/api/channel) were read
+// Incoming messages in a channel/supergroup were read
type UpdateReadChannelInbox struct {
FolderID int32 `tl:"flag:0"` // Peer folder ID, for more info click here
ChannelID int64 // Channel/supergroup ID
@@ -10913,7 +11019,7 @@ func (*UpdateReadChannelInbox) FlagIndex() int {
func (*UpdateReadChannelInbox) ImplementsUpdate() {}
-// Outgoing messages in a [channel/supergroup](https://core.telegram.org/api/channel) were read
+// Outgoing messages in a channel/supergroup were read
type UpdateReadChannelOutbox struct {
ChannelID int64 // Channel/supergroup ID
MaxID int32 // Position up to which all outgoing messages are read.
@@ -10925,7 +11031,7 @@ func (*UpdateReadChannelOutbox) CRC() uint32 {
func (*UpdateReadChannelOutbox) ImplementsUpdate() {}
-// Some featured [custom emoji stickers](https://core.telegram.org/api/custom-emoji) were marked as read
+// Some featured custom emoji stickers were marked as read
type UpdateReadFeaturedEmojiStickers struct{}
func (*UpdateReadFeaturedEmojiStickers) CRC() uint32 {
@@ -10977,7 +11083,7 @@ func (*UpdateReadHistoryOutbox) CRC() uint32 {
func (*UpdateReadHistoryOutbox) ImplementsUpdate() {}
-// Contents of messages in the common [message box](https://core.telegram.org/api/updates) were read
+// Contents of messages in the common message box were read
type UpdateReadMessagesContents struct {
Messages []int32 // IDs of read messages
Pts int32 // Event count after generation
@@ -11007,7 +11113,7 @@ func (*UpdateReadStories) CRC() uint32 {
func (*UpdateReadStories) ImplementsUpdate() {}
-// The list of recent [emoji statuses](https://core.telegram.org/api/emoji-status) has changed
+// The list of recent emoji statuses has changed
type UpdateRecentEmojiStatuses struct{}
func (*UpdateRecentEmojiStatuses) CRC() uint32 {
@@ -11016,7 +11122,7 @@ func (*UpdateRecentEmojiStatuses) CRC() uint32 {
func (*UpdateRecentEmojiStatuses) ImplementsUpdate() {}
-// The list of recent [message reactions](https://core.telegram.org/api/reactions) has changed
+// The list of recent message reactions has changed
type UpdateRecentReactions struct{}
func (*UpdateRecentReactions) CRC() uint32 {
@@ -11034,7 +11140,7 @@ func (*UpdateRecentStickers) CRC() uint32 {
func (*UpdateRecentStickers) ImplementsUpdate() {}
-// A [saved message dialog](https://core.telegram.org/api/saved-messages) was pinned/unpinned
+// A saved message dialog was pinned/unpinned
type UpdateSavedDialogPinned struct {
Pinned bool `tl:"flag:0,encoded_in_bitflags"` // Whether the dialog was pinned
Peer DialogPeer // The dialog
@@ -11050,7 +11156,7 @@ func (*UpdateSavedDialogPinned) FlagIndex() int {
func (*UpdateSavedDialogPinned) ImplementsUpdate() {}
-// The saved gif list has changed, the client should refetch it using [messages.getSavedGifs](https://core.telegram.orghttps://core.telegram.org/method/messages.getSavedGifs)
+// The saved gif list has changed, the client should refetch it using messages.getSavedGifs
type UpdateSavedGifs struct{}
func (*UpdateSavedGifs) CRC() uint32 {
@@ -11059,7 +11165,7 @@ func (*UpdateSavedGifs) CRC() uint32 {
func (*UpdateSavedGifs) ImplementsUpdate() {}
-// The list of [reaction tag ยป](https://core.telegram.org/api/saved-messages#tags) names assigned by the user has changed and should be refetched using [messages.getSavedReactionTags ยป](https://core.telegram.org/method/messages.getSavedReactionTags).
+// The list of reaction tag ยป names assigned by the user has changed and should be refetched using messages.getSavedReactionTags ยป.
type UpdateSavedReactionTags struct{}
func (*UpdateSavedReactionTags) CRC() uint32 {
@@ -11068,7 +11174,7 @@ func (*UpdateSavedReactionTags) CRC() uint32 {
func (*UpdateSavedReactionTags) ImplementsUpdate() {}
-// The list of saved notification sounds has changed, use [account.getSavedRingtones](https://core.telegram.org/method/account.getSavedRingtones) to fetch the new list.
+// The list of saved notification sounds has changed, use account.getSavedRingtones to fetch the new list.
type UpdateSavedRingtones struct{}
func (*UpdateSavedRingtones) CRC() uint32 {
@@ -11077,7 +11183,7 @@ func (*UpdateSavedRingtones) CRC() uint32 {
func (*UpdateSavedRingtones) ImplementsUpdate() {}
-// Indicates we [reacted to a story ยป](https://core.telegram.org/api/stories#reactions).
+// Indicates we reacted to a story ยป.
type UpdateSentStoryReaction struct {
Peer Peer // The peer that sent the story
StoryID int32 // ID of the story we reacted to
@@ -11095,8 +11201,8 @@ type UpdateServiceNotification struct {
Popup bool `tl:"flag:0,encoded_in_bitflags"` // If set, the message must be displayed in a popup.
InvertMedia bool `tl:"flag:2,encoded_in_bitflags"` // If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
InboxDate int32 `tl:"flag:1"` /*
- When was the notification received
- The message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications).
+ When was the notification received
+ The message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications).
*/
Type string // String, identical in format and contents to the type field in API errors. Describes type of service message. It is acceptable to ignore repeated messages of the same type within a short period of time (15 minutes).
Message string // Message text
@@ -11125,7 +11231,7 @@ func (*UpdateSmsJob) CRC() uint32 {
func (*UpdateSmsJob) ImplementsUpdate() {}
-// The current account's [Telegram Stars balance ยป](https://core.telegram.org/api/stars) has changed.
+// The current account's Telegram Stars balance ยป has changed.
type UpdateStarsBalance struct {
Balance *StarsAmount // New balance.
}
@@ -11136,7 +11242,7 @@ func (*UpdateStarsBalance) CRC() uint32 {
func (*UpdateStarsBalance) ImplementsUpdate() {}
-// The [Telegram Star balance of a channel/bot we own has changed ยป](https://core.telegram.org/api/stars#revenue-statistics).
+// The Telegram Star balance of a channel/bot we own has changed ยป.
type UpdateStarsRevenueStatus struct {
Peer Peer // Channel/bot
Status *StarsRevenueStatus // New Telegram Star balance.
@@ -11148,7 +11254,7 @@ func (*UpdateStarsRevenueStatus) CRC() uint32 {
func (*UpdateStarsRevenueStatus) ImplementsUpdate() {}
-// Installed stickersets have changed, the client should refetch them as [described in the docs](https://core.telegram.org/api/stickers#installing-stickersets).
+// Installed stickersets have changed, the client should refetch them as described in the docs.
type UpdateStickerSets struct {
Masks bool `tl:"flag:0,encoded_in_bitflags"` // Whether mask stickersets have changed
Emojis bool `tl:"flag:1,encoded_in_bitflags"` // Whether the list of installed custom emoji stickersets has changed
@@ -11181,7 +11287,7 @@ func (*UpdateStickerSetsOrder) FlagIndex() int {
func (*UpdateStickerSetsOrder) ImplementsUpdate() {}
-// Indicates that [stories stealth mode](https://core.telegram.org/api/stories#stealth-mode) was activated.
+// Indicates that stories stealth mode was activated.
type UpdateStoriesStealthMode struct {
StealthMode *StoriesStealthMode // Information about the current stealth mode session.
}
@@ -11243,7 +11349,7 @@ func (*UpdateTranscribeAudio) FlagIndex() int {
func (*UpdateTranscribeAudio) ImplementsUpdate() {}
-// A pending [voice message transcription ยป](https://core.telegram.org/api/transcribe) initiated with [messages.transcribeAudio](https://core.telegram.org/method/messages.transcribeAudio) was updated.
+// A pending voice message transcription ยป initiated with messages.transcribeAudio was updated.
type UpdateTranscribedAudio struct {
Pending bool `tl:"flag:0,encoded_in_bitflags"` // Whether this transcription is still pending and further updateTranscribedAudio about it will be sent in the future.
Peer Peer // Peer of the transcribed message
@@ -11262,7 +11368,7 @@ func (*UpdateTranscribedAudio) FlagIndex() int {
func (*UpdateTranscribedAudio) ImplementsUpdate() {}
-// User ([user](https://core.telegram.org/constructor/user) and/or [userFull](https://core.telegram.org/constructor/userFull)) information was updated.
+// User (user and/or userFull) information was updated.
type UpdateUser struct {
UserID int64 // User ID
}
@@ -11273,7 +11379,7 @@ func (*UpdateUser) CRC() uint32 {
func (*UpdateUser) ImplementsUpdate() {}
-// The [emoji status](https://core.telegram.org/api/emoji-status) of a certain user has changed
+// The emoji status of a certain user has changed
type UpdateUserEmojiStatus struct {
UserID int64 // User ID
EmojiStatus EmojiStatus // New emoji status
@@ -11311,20 +11417,6 @@ func (*UpdateUserPhone) CRC() uint32 {
func (*UpdateUserPhone) ImplementsUpdate() {}
-// Change of contact's profile photo.
-type UpdateUserPhoto struct {
- UserID int64 // User identifier
- Date int32 // Date of photo update.
- Photo UserProfilePhoto // New profile photo
- Previous bool // (boolTrue), if one of the previously used photos is set a profile photo.
-}
-
-func (*UpdateUserPhoto) CRC() uint32 {
- return 0xf227868c
-}
-
-func (*UpdateUserPhoto) ImplementsUpdate() {}
-
// Contact status update.
type UpdateUserStatus struct {
UserID int64 // User identifier
@@ -11349,7 +11441,7 @@ func (*UpdateUserTyping) CRC() uint32 {
func (*UpdateUserTyping) ImplementsUpdate() {}
-// An [instant view](https://core.telegram.orghttps://instantview.telegram.org) webpage preview was generated
+// An instant view webpage preview was generated
type UpdateWebPage struct {
Webpage WebPage // Webpage preview
Pts int32 // Event count after generation
@@ -11362,7 +11454,7 @@ func (*UpdateWebPage) CRC() uint32 {
func (*UpdateWebPage) ImplementsUpdate() {}
-// Indicates to a bot that a webview was closed and an inline message was sent on behalf of the user using [messages.sendWebViewResultMessage](https://core.telegram.org/method/messages.sendWebViewResultMessage)
+// Indicates to a bot that a webview was closed and an inline message was sent on behalf of the user using messages.sendWebViewResultMessage
type UpdateWebViewResultSent struct {
QueryID int64 // Web app interaction ID
}
@@ -11502,7 +11594,7 @@ func (*UpdatesCombined) CRC() uint32 {
func (*UpdatesCombined) ImplementsUpdates() {}
-// Too many updates, it is necessary to execute [updates.getDifference](https://core.telegram.org/method/updates.getDifference).
+// Too many updates, it is necessary to execute updates.getDifference.
type UpdatesTooLong struct{}
func (*UpdatesTooLong) CRC() uint32 {
@@ -11516,7 +11608,7 @@ type URLAuthResult interface {
ImplementsURLAuthResult()
}
-// Details about an accepted authorization request, for more info [click here ยป](https://core.telegram.org/api/url-authorization)
+// Details about an accepted authorization request, for more info click here ยป
type URLAuthResultAccepted struct {
URL string // The URL name of the website on which the user has logged in.
}
@@ -11527,7 +11619,7 @@ func (*URLAuthResultAccepted) CRC() uint32 {
func (*URLAuthResultAccepted) ImplementsURLAuthResult() {}
-// Details about an accepted authorization request, for more info [click here ยป](https://core.telegram.org/api/url-authorization)
+// Details about an accepted authorization request, for more info click here ยป
type URLAuthResultDefault struct{}
func (*URLAuthResultDefault) CRC() uint32 {
@@ -11536,7 +11628,7 @@ func (*URLAuthResultDefault) CRC() uint32 {
func (*URLAuthResultDefault) ImplementsURLAuthResult() {}
-// Details about the authorization request, for more info [click here ยป](https://core.telegram.org/api/url-authorization)
+// Details about the authorization request, for more info click here ยป
type URLAuthResultRequest struct {
RequestWriteAccess bool `tl:"flag:0,encoded_in_bitflags"` // Whether the bot would like to send messages to the user
Bot User // Username of a bot, which will be used for user authorization. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details.
@@ -11562,20 +11654,20 @@ type User interface {
type UserObj struct {
Self bool `tl:"flag:10,encoded_in_bitflags"` // Whether this user indicates the currently logged in user
Contact bool `tl:"flag:11,encoded_in_bitflags"` /*
- Whether this user is a contact
- When updating the local peer database, do not apply changes to this field if the min flag is set.
+ Whether this user is a contact
+ When updating the local peer database, do not apply changes to this field if the min flag is set.
*/
MutualContact bool `tl:"flag:12,encoded_in_bitflags"` /*
- Whether this user is a mutual contact.
- When updating the local peer database, do not apply changes to this field if the min flag is set.
+ Whether this user is a mutual contact.
+ When updating the local peer database, do not apply changes to this field if the min flag is set.
*/
Deleted bool `tl:"flag:13,encoded_in_bitflags"` /*
- Whether the account of this user was deleted.
- Changes to this flag should invalidate the local userFull cache for this user ID,.
+ Whether the account of this user was deleted.
+ Changes to this flag should invalidate the local userFull cache for this user ID,.
*/
Bot bool `tl:"flag:14,encoded_in_bitflags"` /*
- Is this user a bot?
- Changes to this flag should invalidate the local userFull cache for this user ID,.
+ Is this user a bot?
+ Changes to this flag should invalidate the local userFull cache for this user ID,.
*/
BotChatHistory bool `tl:"flag:15,encoded_in_bitflags"` // Can the bot see all messages in groups?
BotNochats bool `tl:"flag:16,encoded_in_bitflags"` // Can the bot be added to groups?
@@ -11589,119 +11681,120 @@ type UserObj struct {
Fake bool `tl:"flag:26,encoded_in_bitflags"` // If set, this user was reported by many users as a fake or scam user: be careful when interacting with them.
BotAttachMenu bool `tl:"flag:27,encoded_in_bitflags"` // Whether this bot offers an attachment menu web app
Premium bool `tl:"flag:28,encoded_in_bitflags"` /*
- Whether this user is a Telegram Premium user
- Changes to this flag should invalidate the local userFull cache for this user ID,.
- Changes to this flag if the self flag is set should also trigger the following calls, to refresh the respective caches:
- - The help.getConfig cache
- - The messages.getTopReactions cache if the bot flag is not set
+ Whether this user is a Telegram Premium user
+ Changes to this flag should invalidate the local userFull cache for this user ID,.
+ Changes to this flag if the self flag is set should also trigger the following calls, to refresh the respective caches:
+ - The help.getConfig cache
+ - The messages.getTopReactions cache if the bot flag is not set
*/
AttachMenuEnabled bool `tl:"flag:29,encoded_in_bitflags"` /*
- Whether we installed the attachment menu web app offered by this bot.
- When updating the local peer database, do not apply changes to this field if the min flag is set.
+ Whether we installed the attachment menu web app offered by this bot.
+ When updating the local peer database, do not apply changes to this field if the min flag is set.
*/
BotCanEdit bool `tl:"flag2:1,encoded_in_bitflags"` /*
- Whether we can edit the profile picture, name, about text and description of this bot because we own it.
- When updating the local peer database, do not apply changes to this field if the min flag is set.
- Changes to this flag (if min is not set) should invalidate the local userFull cache for this user ID.
+ Whether we can edit the profile picture, name, about text and description of this bot because we own it.
+ When updating the local peer database, do not apply changes to this field if the min flag is set.
+ Changes to this flag (if min is not set) should invalidate the local userFull cache for this user ID.
*/
CloseFriend bool `tl:"flag2:2,encoded_in_bitflags"` /*
- Whether we marked this user as a close friend,.
- When updating the local peer database, do not apply changes to this field if the min flag is set.
+ Whether we marked this user as a close friend,.
+ When updating the local peer database, do not apply changes to this field if the min flag is set.
*/
StoriesHidden bool `tl:"flag2:3,encoded_in_bitflags"` /*
- Whether we have hidden all active stories of this user.
- When updating the local peer database, do not apply changes to this field if the min flag is set.
+ Whether we have hidden all active stories of this user.
+ When updating the local peer database, do not apply changes to this field if the min flag is set.
*/
StoriesUnavailable bool `tl:"flag2:4,encoded_in_bitflags"` // No stories from this user are visible.
ContactRequirePremium bool `tl:"flag2:10,encoded_in_bitflags"` /*
- If set, we can only write to this user if they have already sent some messages to us, if we are subscribed to Telegram Premium, or if they're a mutual contact (user.mutual_contact).
- All the secondary conditions listed above must be checked separately to verify whether we can still write to the user, even if this flag is set (i.e. a mutual contact will have this flag set even if we can still write to them, and so on...); to avoid doing these extra checks if we haven't yet cached all the required information (for example while displaying the chat list in the sharing UI) the users.getIsPremiumRequiredToContact method may be invoked instead, passing the list of users currently visible in the UI, returning a list of booleans that directly specify whether we can or cannot write to each user; alternatively, the userFull.contact_require_premium flag contains the same (fully checked, i.e. it's not just a copy of this flag) info returned by users.getIsPremiumRequiredToContact.
- To set this flag for ourselves invoke account.setGlobalPrivacySettings, setting the settings.new_noncontact_peers_require_premium flag.
+ If set, we can only write to this user if they have already sent some messages to us, if we are subscribed to Telegram Premium, or if they're a mutual contact (user.mutual_contact).
+ All the secondary conditions listed above must be checked separately to verify whether we can still write to the user, even if this flag is set (i.e. a mutual contact will have this flag set even if we can still write to them, and so on...); to avoid doing these extra checks if we haven't yet cached all the required information (for example while displaying the chat list in the sharing UI) the users.getIsPremiumRequiredToContact method may be invoked instead, passing the list of users currently visible in the UI, returning a list of booleans that directly specify whether we can or cannot write to each user; alternatively, the userFull.contact_require_premium flag contains the same (fully checked, i.e. it's not just a copy of this flag) info returned by users.getIsPremiumRequiredToContact.
+ To set this flag for ourselves invoke account.setGlobalPrivacySettings, setting the settings.new_noncontact_peers_require_premium flag.
*/
BotBusiness bool `tl:"flag2:11,encoded_in_bitflags"` // Whether this bot can be connected to a user as specified here.
BotHasMainApp bool `tl:"flag2:13,encoded_in_bitflags"` // If set, this bot has configured a Main Mini App.
ID int64 // ID of the user,.
AccessHash int64 `tl:"flag:0"` /*
- Access hash of the user,.
- If this flag is set, when updating the local peer database, generate a virtual flag called min_access_hash, which is:
- - Set to true if min is set AND
- - The phone flag is not set OR
- - The phone flag is set and the associated phone number string is non-empty
- - Set to false otherwise.
-
- Then, apply both access_hash and min_access_hash to the local database if:
- - min_access_hash is false OR
- - min_access_hash is true AND
- - There is no locally cached object for this user OR
- - There is no access_hash in the local cache OR
- - The cached object's min_access_hash is also true
- If the final merged object stored to the database has the min_access_hash field set to true, the related access_hash is only suitable to use in inputPeerPhotoFileLocation , to directly download the profile pictures of users, everywhere else a inputPeer*FromMessage constructor will have to be generated as specified here.
- Bots can also use min access hashes in some conditions, by passing 0 instead of the min access hash.
+ Access hash of the user,.
+ If this flag is set, when updating the local peer database, generate a virtual flag called min_access_hash, which is:
+ - Set to true if min is set AND
+ -- The phone flag is not set OR
+ -- The phone flag is set and the associated phone number string is non-empty
+ - Set to false otherwise.
+
+ Then, apply both access_hash and min_access_hash to the local database if:
+ - min_access_hash is false OR
+ - min_access_hash is true AND
+ -- There is no locally cached object for this user OR
+ -- There is no access_hash in the local cache OR
+ -- The cached object's min_access_hash is also true
+
+ If the final merged object stored to the database has the min_access_hash field set to true, the related access_hash is only suitable to use in inputPeerPhotoFileLocation , to directly download the profile pictures of users, everywhere else a inputPeer*FromMessage constructor will have to be generated as specified here.
+ Bots can also use min access hashes in some conditions, by passing 0 instead of the min access hash.
*/
FirstName string `tl:"flag:1"` /*
- First name.
- When updating the local peer database, apply changes to this field only if:
- - The min flag is not set OR
- - The min flag is set AND
- - The min flag of the locally cached user entry is set.
+ First name.
+ When updating the local peer database, apply changes to this field only if:
+ - The min flag is not set OR
+ - The min flag is set AND
+ -- The min flag of the locally cached user entry is set.
*/
LastName string `tl:"flag:2"` /*
- Last name.
- When updating the local peer database, apply changes to this field only if:
- - The min flag is not set OR
- - The min flag is set AND
- - The min flag of the locally cached user entry is set.
+ Last name.
+ When updating the local peer database, apply changes to this field only if:
+ - The min flag is not set OR
+ - The min flag is set AND
+ -- The min flag of the locally cached user entry is set.
*/
Username string `tl:"flag:3"` /*
- Main active username.
- When updating the local peer database, apply changes to this field only if:
- - The min flag is not set OR
- - The min flag is set AND
- - The min flag of the locally cached user entry is set.
- Changes to this flag should invalidate the local userFull cache for this user ID if the above conditions are respected and the bot_can_edit flag is also set.
+ Main active username.
+ When updating the local peer database, apply changes to this field only if:
+ - The min flag is not set OR
+ - The min flag is set AND
+ -- The min flag of the locally cached user entry is set.
+ Changes to this flag should invalidate the local userFull cache for this user ID if the above conditions are respected and the bot_can_edit flag is also set.
*/
Phone string `tl:"flag:4"` /*
- Phone number.
- When updating the local peer database, apply changes to this field only if:
- - The min flag is not set OR
- - The min flag is set AND
- - The min flag of the locally cached user entry is set.
+ Phone number.
+ When updating the local peer database, apply changes to this field only if:
+ - The min flag is not set OR
+ - The min flag is set AND
+ -- The min flag of the locally cached user entry is set.
*/
Photo UserProfilePhoto `tl:"flag:5"` /*
- Profile picture of user.
- When updating the local peer database, apply changes to this field only if:
- - The min flag is not set OR
- - The min flag is set AND
- - The apply_min_photo flag is set OR
- - The min flag of the locally cached user entry is set.
+ Profile picture of user.
+ When updating the local peer database, apply changes to this field only if:
+ - The min flag is not set OR
+ - The min flag is set AND
+ -- The apply_min_photo flag is set OR
+ -- The min flag of the locally cached user entry is set.
*/
Status UserStatus `tl:"flag:6"` /*
- Online status of user.
- When updating the local peer database, apply changes to this field only if:
- - The min flag is not set OR
- - The min flag is set AND
- - The min flag of the locally cached user entry is set OR
- - The locally cached user entry is equal to userStatusEmpty.
+ Online status of user.
+ When updating the local peer database, apply changes to this field only if:
+ - The min flag is not set OR
+ - The min flag is set AND
+ -- The min flag of the locally cached user entry is set OR
+ -- The locally cached user entry is equal to userStatusEmpty.
*/
BotInfoVersion int32 `tl:"flag:14"` /*
- Version of the bot_info field in userFull, incremented every time it changes.
- Changes to this flag should invalidate the local userFull cache for this user ID,.
+ Version of the bot_info field in userFull, incremented every time it changes.
+ Changes to this flag should invalidate the local userFull cache for this user ID,.
*/
RestrictionReason []*RestrictionReason `tl:"flag:18"` // Contains the reason why access to this user must be restricted.
BotInlinePlaceholder string `tl:"flag:19"` // Inline placeholder for this inline bot
LangCode string `tl:"flag:22"` // Language code of the user
EmojiStatus EmojiStatus `tl:"flag:30"` // Emoji status
Usernames []*Username `tl:"flag2:0"` /*
- Additional usernames.
- When updating the local peer database, apply changes to this field only if:
- - The min flag is not set OR
- - The min flag is set AND
- - The min flag of the locally cached user entry is set.
- Changes to this flag (if the above conditions are respected) should invalidate the local userFull cache for this user ID.
+ Additional usernames.
+ When updating the local peer database, apply changes to this field only if:
+ - The min flag is not set OR
+ - The min flag is set AND
+ -- The min flag of the locally cached user entry is set.
+ Changes to this flag (if the above conditions are respected) should invalidate the local userFull cache for this user ID.
*/
StoriesMaxID int32 `tl:"flag2:5"` /*
- ID of the maximum read story.
- When updating the local peer database, do not apply changes to this field if the min flag of the incoming constructor is set.
+ ID of the maximum read story.
+ When updating the local peer database, do not apply changes to this field if the min flag of the incoming constructor is set.
*/
Color *PeerColor `tl:"flag2:8"` // The user's accent color.
ProfileColor *PeerColor `tl:"flag2:9"` // The user's profile color.
@@ -11856,7 +11949,7 @@ type VideoSize interface {
ImplementsVideoSize()
}
-// An [animated profile picture](https://core.telegram.org/api/files#animated-profile-pictures) in MPEG4 format
+// An animated profile picture in MPEG4 format
type VideoSizeObj struct {
Type string // u for animated profile pictures, and v for trimmed and downscaled video previews
W int32 // Video width
@@ -11875,7 +11968,7 @@ func (*VideoSizeObj) FlagIndex() int {
func (*VideoSizeObj) ImplementsVideoSize() {}
-// An [animated profile picture](https://core.telegram.org/api/files#animated-profile-pictures) based on a [custom emoji sticker](https://core.telegram.org/api/custom-emoji).
+// An animated profile picture based on a custom emoji sticker.
type VideoSizeEmojiMarkup struct {
EmojiID int64 // Custom emoji ID: the custom emoji sticker is shown at the center of the profile picture and occupies at most 67% of it.
BackgroundColors []int32 // 1, 2, 3 or 4 RBG-24 colors used to generate a solid (1), gradient (2) or freeform gradient (3, 4) background, similar to how fill wallpapers are generated. The rotation angle for gradient backgrounds is 0.
@@ -11887,7 +11980,7 @@ func (*VideoSizeEmojiMarkup) CRC() uint32 {
func (*VideoSizeEmojiMarkup) ImplementsVideoSize() {}
-// An [animated profile picture](https://core.telegram.org/api/files#animated-profile-pictures) based on a [sticker](https://core.telegram.org/api/stickers).
+// An animated profile picture based on a sticker.
type VideoSizeStickerMarkup struct {
Stickerset InputStickerSet // Stickerset
StickerID int64 // Sticker ID
@@ -11905,7 +11998,7 @@ type WallPaper interface {
ImplementsWallPaper()
}
-// Represents a [wallpaper](https://core.telegram.org/api/wallpapers) based on an image.
+// Represents a wallpaper based on an image.
type WallPaperObj struct {
ID int64 // Identifier
Creator bool `tl:"flag:0,encoded_in_bitflags"` // Whether we created this wallpaper
@@ -11928,7 +12021,7 @@ func (*WallPaperObj) FlagIndex() int {
func (*WallPaperObj) ImplementsWallPaper() {}
-// Represents a [wallpaper](https://core.telegram.org/api/wallpapers) only based on colors/gradients.
+// Represents a wallpaper only based on colors/gradients.
type WallPaperNoFile struct {
ID int64 // Wallpaper ID
Default bool `tl:"flag:1,encoded_in_bitflags"` // Whether this is the default wallpaper
@@ -11966,7 +12059,7 @@ func (*WebDocumentObj) CRC() uint32 {
func (*WebDocumentObj) ImplementsWebDocument() {}
-// Remote document that can be downloaded without [proxying through telegram](https://core.telegram.org/api/files)
+// Remote document that can be downloaded without proxying through telegram
type WebDocumentNoProxy struct {
URL string // Document URL
Size int32 // File size
@@ -12081,7 +12174,7 @@ type WebPageAttribute interface {
ImplementsWebPageAttribute()
}
-// Contains info about a [stickerset ยป](https://core.telegram.org/api/stickers), for a [webPage](https://core.telegram.org/constructor/webPage) preview of a [stickerset deep link ยป](https://core.telegram.org/api/links#stickerset-links) (the [webPage](https://core.telegram.org/constructor/webPage) will have a `type` of `telegram_stickerset`).
+// Contains info about a stickerset ยป, for a webPage preview of a stickerset deep link ยป (the webPage will have a `type` of `telegram_stickerset`).
type WebPageAttributeStickerSet struct {
Emojis bool `tl:"flag:0,encoded_in_bitflags"` // Whether this i s a custom emoji stickerset.
TextColor bool `tl:"flag:1,encoded_in_bitflags"` // Whether the color of this TGS custom emoji stickerset should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context.
@@ -12164,7 +12257,7 @@ type AccountEmojiStatuses interface {
ImplementsAccountEmojiStatuses()
}
-// A list of [emoji statuses](https://core.telegram.org/api/emoji-status)
+// A list of emoji statuses
type AccountEmojiStatusesObj struct {
Hash int64 // Hash used for caching, for more info click here
Statuses []EmojiStatus // Emoji statuses
@@ -12176,7 +12269,7 @@ func (*AccountEmojiStatusesObj) CRC() uint32 {
func (*AccountEmojiStatusesObj) ImplementsAccountEmojiStatuses() {}
-// The server-side list of [emoji statuses](https://core.telegram.org/api/emoji-status) hasn't changed
+// The server-side list of emoji statuses hasn't changed
type AccountEmojiStatusesNotModified struct{}
func (*AccountEmojiStatusesNotModified) CRC() uint32 {
@@ -12235,7 +12328,7 @@ func (*AccountSavedRingtoneObj) CRC() uint32 {
func (*AccountSavedRingtoneObj) ImplementsAccountSavedRingtone() {}
-// The notification sound was not in MP3 format and was successfully converted and saved, use the returned [Document](https://core.telegram.org/type/Document) to refer to the notification sound from now on
+// The notification sound was not in MP3 format and was successfully converted and saved, use the returned Document to refer to the notification sound from now on
type AccountSavedRingtoneConverted struct {
Document Document // The converted notification sound
}
@@ -12303,7 +12396,7 @@ type AccountWallPapers interface {
ImplementsAccountWallPapers()
}
-// Installed [wallpapers](https://core.telegram.org/api/wallpapers)
+// Installed wallpapers
type AccountWallPapersObj struct {
Hash int64 // Hash used for caching, for more info click here
Wallpapers []WallPaper // Wallpapers
@@ -12315,7 +12408,7 @@ func (*AccountWallPapersObj) CRC() uint32 {
func (*AccountWallPapersObj) ImplementsAccountWallPapers() {}
-// No new [wallpapers](https://core.telegram.org/api/wallpapers) were found
+// No new wallpapers were found
type AccountWallPapersNotModified struct{}
func (*AccountWallPapersNotModified) CRC() uint32 {
@@ -12348,7 +12441,7 @@ func (*AuthAuthorizationObj) FlagIndex() int {
func (*AuthAuthorizationObj) ImplementsAuthAuthorization() {}
-// An account with this phone number doesn't exist on telegram: the user has to [enter basic information and sign up](https://core.telegram.org/api/auth)
+// An account with this phone number doesn't exist on telegram: the user has to enter basic information and sign up
type AuthAuthorizationSignUpRequired struct {
TermsOfService *HelpTermsOfService `tl:"flag:0"` // Telegram's terms of service: the user must read and accept the terms of service before signing up to telegram
}
@@ -12368,7 +12461,7 @@ type AuthLoginToken interface {
ImplementsAuthLoginToken()
}
-// Login token (for [QR code login](https://core.telegram.org/api/qr-login))
+// Login token (for QR code login)
type AuthLoginTokenObj struct {
Expires int32 // Expiration date of QR code
Token []byte // Token to render in QR code
@@ -12426,7 +12519,7 @@ func (*AuthSentCodeObj) FlagIndex() int {
func (*AuthSentCodeObj) ImplementsAuthSentCode() {}
-// The user successfully authorized using [future auth tokens](https://core.telegram.org/api/auth#future-auth-tokens)
+// The user successfully authorized using future auth tokens
type AuthSentCodeSuccess struct {
Authorization AuthAuthorization // Authorization info
}
@@ -12464,7 +12557,7 @@ func (*AuthSentCodeTypeCall) CRC() uint32 {
func (*AuthSentCodeTypeCall) ImplementsAuthSentCodeType() {}
-// The code was sent via the [previously configured login email ยป](https://core.telegram.org/api/auth#email-verification)
+// The code was sent via the previously configured login email ยป
type AuthSentCodeTypeEmailCode struct {
AppleSigninAllowed bool `tl:"flag:0,encoded_in_bitflags"` // Whether authorization through Apple ID is allowed
GoogleSigninAllowed bool `tl:"flag:1,encoded_in_bitflags"` // Whether authorization through Google ID is allowed
@@ -12484,7 +12577,7 @@ func (*AuthSentCodeTypeEmailCode) FlagIndex() int {
func (*AuthSentCodeTypeEmailCode) ImplementsAuthSentCodeType() {}
-// An authentication code should be delivered via SMS after Firebase attestation, as described in the [auth documentation ยป](https://core.telegram.org/api/auth).
+// An authentication code should be delivered via SMS after Firebase attestation, as described in the auth documentation ยป.
type AuthSentCodeTypeFirebaseSms struct {
Nonce []byte `tl:"flag:0"` // On Android, the nonce to be used as described in the auth documentation
PlayIntegrityProjectID int64 `tl:"flag:2"` // Google Play Integrity project ID
@@ -12515,7 +12608,7 @@ func (*AuthSentCodeTypeFlashCall) CRC() uint32 {
func (*AuthSentCodeTypeFlashCall) ImplementsAuthSentCodeType() {}
-// The code was delivered via [fragment.com](https://core.telegram.orghttps://fragment.com).
+// The code was delivered via fragment.com.
type AuthSentCodeTypeFragmentSms struct {
URL string // Open the specified URL to log into fragment.com with the wallet that owns the specified phone number and view the code.
Length int32 // Length of the delivered code.
@@ -12539,7 +12632,7 @@ func (*AuthSentCodeTypeMissedCall) CRC() uint32 {
func (*AuthSentCodeTypeMissedCall) ImplementsAuthSentCodeType() {}
-// The user should add and verify an email address in order to login as described [here ยป](https://core.telegram.org/api/auth#email-verification).
+// The user should add and verify an email address in order to login as described here ยป.
type AuthSentCodeTypeSetUpEmailRequired struct {
AppleSigninAllowed bool `tl:"flag:0,encoded_in_bitflags"` // Whether authorization through Apple ID is allowed
GoogleSigninAllowed bool `tl:"flag:1,encoded_in_bitflags"` // Whether authorization through Google ID is allowed
@@ -12639,7 +12732,7 @@ func (*ChannelsSponsoredMessageReportResultAdsHidden) CRC() uint32 {
func (*ChannelsSponsoredMessageReportResultAdsHidden) ImplementsChannelsSponsoredMessageReportResult() {
}
-// The user must choose a report option from the localized options available in `options`, and after selection, [channels.reportSponsoredMessage](https://core.telegram.org/method/channels.reportSponsoredMessage) must be invoked again, passing the option's `option` field to the `option` param of the method.
+// The user must choose a report option from the localized options available in `options`, and after selection, channels.reportSponsoredMessage must be invoked again, passing the option's `option` field to the `option` param of the method.
type ChannelsSponsoredMessageReportResultChooseOption struct {
Title string // Title of the option selection popup.
Options []*SponsoredMessageReportOption // Localized list of options.
@@ -12667,7 +12760,7 @@ type ChatlistsChatlistInvite interface {
ImplementsChatlistsChatlistInvite()
}
-// Info about a [chat folder deep link ยป](https://core.telegram.org/api/links#chat-folder-links).
+// Info about a chat folder deep link ยป.
type ChatlistsChatlistInviteObj struct {
Title string // Name of the link
Emoticon string `tl:"flag:0"` // Emoji to use as icon for the folder.
@@ -12686,7 +12779,7 @@ func (*ChatlistsChatlistInviteObj) FlagIndex() int {
func (*ChatlistsChatlistInviteObj) ImplementsChatlistsChatlistInvite() {}
-// Updated info about a [chat folder deep link ยป](https://core.telegram.org/api/links#chat-folder-links) we already imported.
+// Updated info about a chat folder deep link ยป we already imported.
type ChatlistsChatlistInviteAlready struct {
FilterID int32 // ID of the imported folder
MissingPeers []Peer // New peers to be imported
@@ -12801,7 +12894,7 @@ type HelpAppConfig interface {
ImplementsHelpAppConfig()
}
-// Contains various [client configuration parameters](https://core.telegram.org/api/config#client-configuration)
+// Contains various client configuration parameters
type HelpAppConfigObj struct {
Hash int32 // Hash used for caching, for more info click here
Config JsonValue // Client configuration parameters
@@ -12889,7 +12982,7 @@ type HelpDeepLinkInfo interface {
ImplementsHelpDeepLinkInfo()
}
-// Deep link info, see [the here for more details](https://core.telegram.org/api/links#unsupported-links)
+// Deep link info, see the here for more details
type HelpDeepLinkInfoObj struct {
UpdateApp bool `tl:"flag:0,encoded_in_bitflags"` // An update of the app is required to parse this link
Message string // Message to show to the user
@@ -12920,7 +13013,7 @@ type HelpPassportConfig interface {
ImplementsHelpPassportConfig()
}
-// Telegram [passport](https://core.telegram.org/passport) configuration
+// Telegram passport configuration
type HelpPassportConfigObj struct {
Hash int32 // Hash used for caching, for more info click here
CountriesLangs *DataJson // Localization
@@ -12946,7 +13039,7 @@ type HelpPeerColorSet interface {
ImplementsHelpPeerColorSet()
}
-// Represents a [color palette that can be used in profile pages ยป](https://core.telegram.org/api/colors).
+// Represents a color palette that can be used in profile pages ยป.
type HelpPeerColorProfileSet struct {
PaletteColors []int32 // A list of 1-2 colors in RGB format, shown in the color palette settings to describe the current palette.
BgColors []int32 // A list of 1-2 colors in RGB format describing the colors used to generate the actual background used in the profile page.
@@ -12959,7 +13052,7 @@ func (*HelpPeerColorProfileSet) CRC() uint32 {
func (*HelpPeerColorProfileSet) ImplementsHelpPeerColorSet() {}
-// Represents a [color palette that can be used in message accents ยป](https://core.telegram.org/api/colors).
+// Represents a color palette that can be used in message accents ยป.
type HelpPeerColorSetObj struct {
Colors []int32 // A list of 1-3 colors in RGB format, describing the accent color.
}
@@ -12975,7 +13068,7 @@ type HelpPeerColors interface {
ImplementsHelpPeerColors()
}
-// Contains info about multiple [color palettes ยป](https://core.telegram.org/api/colors).
+// Contains info about multiple color palettes ยป.
type HelpPeerColorsObj struct {
Hash int32 // Hash used for caching, for more info click here
Colors []*HelpPeerColorOption // Usable color palettes.
@@ -13038,7 +13131,7 @@ type HelpTermsOfServiceUpdate interface {
ImplementsHelpTermsOfServiceUpdate()
}
-// Info about an update of telegram's terms of service. If the terms of service are declined, then the [account.deleteAccount](https://core.telegram.org/method/account.deleteAccount) method should be called with the reason "Decline ToS update"
+// Info about an update of telegram's terms of service. If the terms of service are declined, then the account.deleteAccount method should be called with the reason "Decline ToS update"
type HelpTermsOfServiceUpdateObj struct {
Expires int32 // New TOS updates will have to be queried using help.getTermsOfServiceUpdate in expires seconds
TermsOfService *HelpTermsOfService // New terms of service
@@ -13066,7 +13159,7 @@ type HelpTimezonesList interface {
ImplementsHelpTimezonesList()
}
-// Timezone information that may be used elsewhere in the API, such as to set [Telegram Business opening hours ยป](https://core.telegram.org/api/business#opening-hours).
+// Timezone information that may be used elsewhere in the API, such as to set Telegram Business opening hours ยป.
type HelpTimezonesListObj struct {
Timezones []*Timezone // Timezones
Hash int32 // Hash used for caching, for more info click here
@@ -13146,7 +13239,7 @@ type MessagesAvailableEffects interface {
ImplementsMessagesAvailableEffects()
}
-// The full list of usable [animated message effects ยป](https://core.telegram.org/api/effects).
+// The full list of usable animated message effects ยป.
type MessagesAvailableEffectsObj struct {
Hash int32 // Hash used for caching, for more info click here
Effects []*AvailableEffect // Message effects
@@ -13159,7 +13252,7 @@ func (*MessagesAvailableEffectsObj) CRC() uint32 {
func (*MessagesAvailableEffectsObj) ImplementsMessagesAvailableEffects() {}
-// The full list of usable [animated message effects ยป](https://core.telegram.org/api/effects) hasn't changed.
+// The full list of usable animated message effects ยป hasn't changed.
type MessagesAvailableEffectsNotModified struct{}
func (*MessagesAvailableEffectsNotModified) CRC() uint32 {
@@ -13173,7 +13266,7 @@ type MessagesAvailableReactions interface {
ImplementsMessagesAvailableReactions()
}
-// Animations and metadata associated with [message reactions ยป](https://core.telegram.org/api/reactions)
+// Animations and metadata associated with message reactions ยป
type MessagesAvailableReactionsObj struct {
Hash int32 // Hash used for caching, for more info click here
Reactions []*AvailableReaction // Animations and metadata associated with message reactions
@@ -13210,7 +13303,7 @@ func (*MessagesChatsObj) CRC() uint32 {
func (*MessagesChatsObj) ImplementsMessagesChats() {}
-// Partial list of chats, more would have to be fetched with [pagination](https://core.telegram.org/api/offsets)
+// Partial list of chats, more would have to be fetched with pagination
type MessagesChatsSlice struct {
Count int32 // Total number of results that were found server-side (not all are included in chats)
Chats []Chat // Chats
@@ -13302,7 +13395,7 @@ type MessagesEmojiGroups interface {
ImplementsMessagesEmojiGroups()
}
-// Represents a list of [emoji categories](https://core.telegram.org/api/emoji-categories).
+// Represents a list of emoji categories.
type MessagesEmojiGroupsObj struct {
Hash int32 // Hash used for caching, for more info click here
Groups []EmojiGroup // A list of emoji categories.
@@ -13314,7 +13407,7 @@ func (*MessagesEmojiGroupsObj) CRC() uint32 {
func (*MessagesEmojiGroupsObj) ImplementsMessagesEmojiGroups() {}
-// The list of [emoji categories](https://core.telegram.org/api/emoji-categories) hasn't changed.
+// The list of emoji categories hasn't changed.
type MessagesEmojiGroupsNotModified struct{}
func (*MessagesEmojiGroupsNotModified) CRC() uint32 {
@@ -13445,10 +13538,26 @@ type MessagesFoundStickers interface {
tl.Object
ImplementsMessagesFoundStickers()
}
+
+/*
+
+messages.foundStickers#82c9e290 flags:# next_offset:flags.0?int hash:long stickers:Vector<Document> = messages.FoundStickers;
+*/
type MessagesFoundStickersObj struct {
- NextOffset int32 `tl:"flag:0"`
- Hash int64
- Stickers []Document
+ NextOffset int32 `tl:"flag:0"` //
+ Hash int64 // Hash used for caching, for more info click here
+ Stickers []Document //
}
func (*MessagesFoundStickersObj) CRC() uint32 {
@@ -13461,8 +13570,23 @@ func (*MessagesFoundStickersObj) FlagIndex() int {
func (*MessagesFoundStickersObj) ImplementsMessagesFoundStickers() {}
+/*
+
+messages.foundStickersNotModified#6010c534 flags:# next_offset:flags.0?int = messages.FoundStickers;
+*/
type MessagesFoundStickersNotModified struct {
- NextOffset int32 `tl:"flag:0"`
+ NextOffset int32 `tl:"flag:0"` //
}
func (*MessagesFoundStickersNotModified) CRC() uint32 {
@@ -13486,8 +13610,8 @@ type MessagesChannelMessages struct {
Pts int32 // Event count after generation
Count int32 // Total number of results were found server-side (may not be all included here)
OffsetIDOffset int32 `tl:"flag:2"` /*
- Indicates the absolute position of messages[0] within the total result set with count count.
- This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}.
+ Indicates the absolute position of messages[0] within the total result set with count count.
+ This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}.
*/
Messages []Message // Found messages
Topics []ForumTopic // Forum topic information
@@ -13535,8 +13659,8 @@ type MessagesMessagesSlice struct {
Count int32 // Total number of messages in the list
NextRate int32 `tl:"flag:0"` // Rate to use in the offset_rate parameter in the next call to messages.searchGlobal
OffsetIDOffset int32 `tl:"flag:2"` /*
- Indicates the absolute position of messages[0] within the total result set with count count.
- This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}.
+ Indicates the absolute position of messages[0] within the total result set with count count.
+ This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}.
*/
Messages []Message // List of messages
Chats []Chat // List of chats mentioned in messages
@@ -13558,7 +13682,7 @@ type MessagesQuickReplies interface {
ImplementsMessagesQuickReplies()
}
-// Info about [quick reply shortcuts ยป](https://core.telegram.org/api/business#quick-reply-shortcuts).
+// Info about quick reply shortcuts ยป.
type MessagesQuickRepliesObj struct {
QuickReplies []*QuickReply // Quick reply shortcuts.
Messages []Message // Messages mentioned in quick_replies.
@@ -13572,7 +13696,7 @@ func (*MessagesQuickRepliesObj) CRC() uint32 {
func (*MessagesQuickRepliesObj) ImplementsMessagesQuickReplies() {}
-// Info about [quick reply shortcuts ยป](https://core.telegram.org/api/business#quick-reply-shortcuts) hasn't changed.
+// Info about quick reply shortcuts ยป hasn't changed.
type MessagesQuickRepliesNotModified struct{}
func (*MessagesQuickRepliesNotModified) CRC() uint32 {
@@ -13586,7 +13710,7 @@ type MessagesReactions interface {
ImplementsMessagesReactions()
}
-// List of [message reactions](https://core.telegram.org/api/reactions)
+// List of message reactions
type MessagesReactionsObj struct {
Hash int64 // Hash used for caching, for more info click here
Reactions []Reaction // Reactions
@@ -13598,7 +13722,7 @@ func (*MessagesReactionsObj) CRC() uint32 {
func (*MessagesReactionsObj) ImplementsMessagesReactions() {}
-// The server-side list of [message reactions](https://core.telegram.org/api/reactions) hasn't changed
+// The server-side list of message reactions hasn't changed
type MessagesReactionsNotModified struct{}
func (*MessagesReactionsNotModified) CRC() uint32 {
@@ -13640,7 +13764,7 @@ type MessagesSavedDialogs interface {
ImplementsMessagesSavedDialogs()
}
-// Represents some [saved message dialogs ยป](https://core.telegram.org/api/saved-messages).
+// Represents some saved message dialogs ยป.
type MessagesSavedDialogsObj struct {
Dialogs []*SavedDialog // Saved message dialogs.
Messages []Message // List of last messages from each saved dialog
@@ -13665,7 +13789,7 @@ func (*MessagesSavedDialogsNotModified) CRC() uint32 {
func (*MessagesSavedDialogsNotModified) ImplementsMessagesSavedDialogs() {}
-// Incomplete list of [saved message dialogs ยป](https://core.telegram.org/api/saved-messages) with messages and auxiliary data.
+// Incomplete list of saved message dialogs ยป with messages and auxiliary data.
type MessagesSavedDialogsSlice struct {
Count int32 // Total number of saved message dialogs
Dialogs []*SavedDialog // List of saved message dialogs
@@ -13711,7 +13835,7 @@ type MessagesSavedReactionTags interface {
ImplementsMessagesSavedReactionTags()
}
-// List of [reaction tag ยป](https://core.telegram.org/api/saved-messages#tags) names assigned by the user.
+// List of reaction tag ยป names assigned by the user.
type MessagesSavedReactionTagsObj struct {
Tags []*SavedReactionTag // Saved reaction tags.
Hash int64 // Hash used for caching, for more info click here
@@ -13723,7 +13847,7 @@ func (*MessagesSavedReactionTagsObj) CRC() uint32 {
func (*MessagesSavedReactionTagsObj) ImplementsMessagesSavedReactionTags() {}
-// The list of [reaction tag ยป](https://core.telegram.org/api/saved-messages#tags) names assigned by the user hasn't changed.
+// The list of reaction tag ยป names assigned by the user hasn't changed.
type MessagesSavedReactionTagsNotModified struct{}
func (*MessagesSavedReactionTagsNotModified) CRC() uint32 {
@@ -13876,7 +14000,7 @@ type PaymentsGiveawayInfo interface {
ImplementsPaymentsGiveawayInfo()
}
-// Contains info about an ongoing [giveaway](https://core.telegram.org/api/giveaways).
+// Contains info about an ongoing giveaway.
type PaymentsGiveawayInfoObj struct {
Participating bool `tl:"flag:0,encoded_in_bitflags"` // The current user is participating in the giveaway.
PreparingResults bool `tl:"flag:3,encoded_in_bitflags"` // If set, the giveaway has ended and the results are being prepared.
@@ -13896,16 +14020,16 @@ func (*PaymentsGiveawayInfoObj) FlagIndex() int {
func (*PaymentsGiveawayInfoObj) ImplementsPaymentsGiveawayInfo() {}
-// A [giveaway](https://core.telegram.org/api/giveaways) has ended.
+// A giveaway has ended.
type PaymentsGiveawayInfoResults struct {
- Winner bool `tl:"flag:0,encoded_in_bitflags"`
- Refunded bool `tl:"flag:1,encoded_in_bitflags"`
- StartDate int32
- GiftCodeSlug string `tl:"flag:3"`
- StarsPrize int64 `tl:"flag:4"`
- FinishDate int32
- WinnersCount int32
- ActivatedCount int32 `tl:"flag:2"`
+ Winner bool `tl:"flag:0,encoded_in_bitflags"` // Whether we're one of the winners of this giveaway.
+ Refunded bool `tl:"flag:1,encoded_in_bitflags"` // Whether the giveaway was canceled and was fully refunded.
+ StartDate int32 // Start date of the giveaway
+ GiftCodeSlug string `tl:"flag:3"` // If we're one of the winners of this giveaway, contains the Premium gift code,.
+ StarsPrize int64 `tl:"flag:4"` // If we're one of the winners of this Telegram Star giveaway, the number Telegram Stars we won.
+ FinishDate int32 // End date of the giveaway. May be bigger than the end date specified in parameters of the giveaway.
+ WinnersCount int32 // Number of winners in the giveaway
+ ActivatedCount int32 `tl:"flag:2"` // Number of winners, which activated their gift codes.
}
func (*PaymentsGiveawayInfoResults) CRC() uint32 {
@@ -13936,19 +14060,19 @@ type PaymentsPaymentFormObj struct {
ProviderID int64 // Payment provider ID.
URL string // Payment form URL
NativeProvider string `tl:"flag:4"` /*
- Payment provider name.
- One of the following:
- - stripe
+ Payment provider name.
+ One of the following:
+ - stripe
*/
NativeParams *DataJson `tl:"flag:4"` /*
- Contains information about the payment provider, if available, to support it natively without the need for opening the URL.
- A JSON object that can contain the following fields:
-
- - apple_pay_merchant_id: Apple Pay merchant ID
- - google_pay_public_key: Google Pay public key
- - need_country: True, if the user country must be provided,
- - need_zip: True, if the user ZIP/postal code must be provided,
- - need_cardholder_name: True, if the cardholder name must be provided
+ Contains information about the payment provider, if available, to support it natively without the need for opening the URL.
+ A JSON object that can contain the following fields:
+
+ - apple_pay_merchant_id: Apple Pay merchant ID
+ - google_pay_public_key: Google Pay public key
+ - need_country: True, if the user country must be provided,
+ - need_zip: True, if the user ZIP/postal code must be provided,
+ - need_cardholder_name: True, if the cardholder name must be provided
*/
AdditionalMethods []*PaymentFormMethod `tl:"flag:6"` // Additional payment methods
SavedInfo *PaymentRequestedInfo `tl:"flag:0"` // Saved server-side order information
@@ -13966,9 +14090,10 @@ func (*PaymentsPaymentFormObj) FlagIndex() int {
func (*PaymentsPaymentFormObj) ImplementsPaymentsPaymentForm() {}
+// Represents a payment form for a gift, see here ยป for more info.
type PaymentsPaymentFormStarGift struct {
- FormID int64
- Invoice *Invoice
+ FormID int64 // Form ID.
+ Invoice *Invoice // Invoice
}
func (*PaymentsPaymentFormStarGift) CRC() uint32 {
@@ -13977,7 +14102,7 @@ func (*PaymentsPaymentFormStarGift) CRC() uint32 {
func (*PaymentsPaymentFormStarGift) ImplementsPaymentsPaymentForm() {}
-// Represents a payment form, for payments to be using [Telegram Stars, see here ยป](https://core.telegram.org/api/stars) for more info.
+// Represents a payment form, for payments to be using Telegram Stars, see here ยป for more info.
type PaymentsPaymentFormStars struct {
CanSaveCredentials bool `tl:"flag:2,encoded_in_bitflags"`
PasswordMissing bool `tl:"flag:3,encoded_in_bitflags"`
@@ -14033,7 +14158,7 @@ func (*PaymentsPaymentReceiptObj) FlagIndex() int {
func (*PaymentsPaymentReceiptObj) ImplementsPaymentsPaymentReceipt() {}
-// Receipt for [payment made using Telegram Stars](https://core.telegram.org/api/stars).
+// Receipt for payment made using Telegram Stars.
type PaymentsPaymentReceiptStars struct {
Date int32 // Date of generation
BotID int64 // Bot ID
@@ -14088,9 +14213,11 @@ type PaymentsStarGifts interface {
tl.Object
ImplementsPaymentsStarGifts()
}
+
+// Available gifts ยป.
type PaymentsStarGiftsObj struct {
- Hash int32
- Gifts []*StarGift
+ Hash int32 // Hash used for caching, for more info click here
+ Gifts []*StarGift // List of available gifts.
}
func (*PaymentsStarGiftsObj) CRC() uint32 {
@@ -14099,6 +14226,7 @@ func (*PaymentsStarGiftsObj) CRC() uint32 {
func (*PaymentsStarGiftsObj) ImplementsPaymentsStarGifts() {}
+// The list of available gifts ยป hasn't changed.
type PaymentsStarGiftsNotModified struct{}
func (*PaymentsStarGiftsNotModified) CRC() uint32 {
@@ -14142,7 +14270,7 @@ type StoriesAllStories interface {
ImplementsStoriesAllStories()
}
-// Full list of active (or active and hidden) [stories](https://core.telegram.org/api/stories#watching-stories).
+// Full list of active (or active and hidden) stories.
type StoriesAllStoriesObj struct {
HasMore bool `tl:"flag:0,encoded_in_bitflags"` // Whether more results can be fetched as described here.
Count int32 // Total number of active (or active and hidden) stories
@@ -14163,7 +14291,7 @@ func (*StoriesAllStoriesObj) FlagIndex() int {
func (*StoriesAllStoriesObj) ImplementsStoriesAllStories() {}
-// The list of active (or active and hidden) [stories](https://core.telegram.org/api/stories#watching-stories) has not changed.
+// The list of active (or active and hidden) stories has not changed.
type StoriesAllStoriesNotModified struct {
State string // State to use to ask for updates
StealthMode *StoriesStealthMode // Current stealth mode information
@@ -14287,7 +14415,7 @@ func (*UpdatesDifferenceSlice) CRC() uint32 {
func (*UpdatesDifferenceSlice) ImplementsUpdatesDifference() {}
-// The difference is [too long](https://core.telegram.org/api/updates#recovering-gaps), and the specified state must be used to refetch updates.
+// The difference is too long, and the specified state must be used to refetch updates.
type UpdatesDifferenceTooLong struct {
Pts int32 // The new state to use.
}
@@ -14303,7 +14431,7 @@ type UploadCdnFile interface {
ImplementsUploadCdnFile()
}
-// Represent a chunk of a [CDN](https://core.telegram.org/cdn) file.
+// Represent a chunk of a CDN file.
type UploadCdnFileObj struct {
Bytes []byte // The data
}
@@ -14314,7 +14442,7 @@ func (*UploadCdnFileObj) CRC() uint32 {
func (*UploadCdnFileObj) ImplementsUploadCdnFile() {}
-// The file was cleared from the temporary RAM cache of the [CDN](https://core.telegram.org/cdn) and has to be re-uploaded.
+// The file was cleared from the temporary RAM cache of the CDN and has to be re-uploaded.
type UploadCdnFileReuploadNeeded struct {
RequestToken []byte // Request token (see CDN)
}
@@ -14343,7 +14471,7 @@ func (*UploadFileObj) CRC() uint32 {
func (*UploadFileObj) ImplementsUploadFile() {}
-// The file must be downloaded from a [CDN DC](https://core.telegram.org/cdn).
+// The file must be downloaded from a CDN DC.
type UploadFileCdnRedirect struct {
DcID int32 // CDN DC ID
FileToken []byte // File token (see CDN files)
diff --git a/telegram/methods_gen.go b/telegram/methods_gen.go
index b0fb41a4..da2161d6 100755
--- a/telegram/methods_gen.go
+++ b/telegram/methods_gen.go
@@ -45,7 +45,7 @@ func (*AccountCancelPasswordEmailParams) CRC() uint32 {
return 0xc1cbd5b6
}
-// Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).
+// Cancel the code that was sent to verify an email to use as 2FA recovery method.
func (c *Client) AccountCancelPasswordEmail() (bool, error) {
responseData, err := c.MakeRequest(&AccountCancelPasswordEmailParams{})
if err != nil {
@@ -149,7 +149,7 @@ func (*AccountClearRecentEmojiStatusesParams) CRC() uint32 {
return 0x18201aae
}
-// Clears list of recently used [emoji statuses](https://core.telegram.org/api/emoji-status)
+// Clears list of recently used emoji statuses
func (c *Client) AccountClearRecentEmojiStatuses() (bool, error) {
responseData, err := c.MakeRequest(&AccountClearRecentEmojiStatusesParams{})
if err != nil {
@@ -171,7 +171,7 @@ func (*AccountConfirmPasswordEmailParams) CRC() uint32 {
return 0x8fdf1920
}
-// Verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).
+// Verify an email to use as 2FA recovery method.
func (c *Client) AccountConfirmPasswordEmail(code string) (bool, error) {
responseData, err := c.MakeRequest(&AccountConfirmPasswordEmailParams{Code: code})
if err != nil {
@@ -194,7 +194,7 @@ func (*AccountConfirmPhoneParams) CRC() uint32 {
return 0x5f2178c3
}
-// Confirm a phone number to cancel account deletion, for more info [click here ยป](https://core.telegram.org/api/account-deletion)
+// Confirm a phone number to cancel account deletion, for more info click here ยป
func (c *Client) AccountConfirmPhone(phoneCodeHash, phoneCode string) (bool, error) {
responseData, err := c.MakeRequest(&AccountConfirmPhoneParams{
PhoneCode: phoneCode,
@@ -219,7 +219,7 @@ func (*AccountCreateBusinessChatLinkParams) CRC() uint32 {
return 0x8851e68e
}
-// Create a [business chat deep link ยป](https://core.telegram.org/api/business#business-chat-links).
+// Create a business chat deep link ยป.
func (c *Client) AccountCreateBusinessChatLink(link *InputBusinessChatLink) (*BusinessChatLink, error) {
responseData, err := c.MakeRequest(&AccountCreateBusinessChatLinkParams{Link: link})
if err != nil {
@@ -273,7 +273,7 @@ func (*AccountDeclinePasswordResetParams) CRC() uint32 {
return 0x4c9409f6
}
-// Abort a pending 2FA password reset, [see here for more info ยป](https://core.telegram.org/api/srp#password-reset)
+// Abort a pending 2FA password reset, see here for more info ยป
func (c *Client) AccountDeclinePasswordReset() (bool, error) {
responseData, err := c.MakeRequest(&AccountDeclinePasswordResetParams{})
if err != nil {
@@ -345,7 +345,7 @@ func (*AccountDeleteBusinessChatLinkParams) CRC() uint32 {
return 0x60073674
}
-// Delete a [business chat deep link ยป](https://core.telegram.org/api/business#business-chat-links).
+// Delete a business chat deep link ยป.
func (c *Client) AccountDeleteBusinessChatLink(slug string) (bool, error) {
responseData, err := c.MakeRequest(&AccountDeleteBusinessChatLinkParams{Slug: slug})
if err != nil {
@@ -367,7 +367,7 @@ func (*AccountDeleteSecureValueParams) CRC() uint32 {
return 0xb880bc4b
}
-// Delete stored [Telegram Passport](https://core.telegram.org/passport) documents, [for more info see the passport docs ยป](https://core.telegram.org/passport/encryption#encryption)
+// Delete stored Telegram Passport documents, for more info see the passport docs ยป
func (c *Client) AccountDeleteSecureValue(types []SecureValueType) (bool, error) {
responseData, err := c.MakeRequest(&AccountDeleteSecureValueParams{Types: types})
if err != nil {
@@ -389,7 +389,7 @@ func (*AccountDisablePeerConnectedBotParams) CRC() uint32 {
return 0x5e437ed9
}
-// Permanently disconnect a specific chat from all [business bots ยป](https://core.telegram.org/api/business#connected-bots) (equivalent to specifying it in `recipients.exclude_users` during initial configuration with [account.updateConnectedBot ยป](https://core.telegram.org/method/account.updateConnectedBot)); to reconnect of a chat disconnected using this method the user must reconnect the entire bot by invoking [account.updateConnectedBot ยป](https://core.telegram.org/method/account.updateConnectedBot).
+// Permanently disconnect a specific chat from all business bots ยป (equivalent to specifying it in `recipients.exclude_users` during initial configuration with account.updateConnectedBot ยป); to reconnect of a chat disconnected using this method the user must reconnect the entire bot by invoking account.updateConnectedBot ยป.
func (c *Client) AccountDisablePeerConnectedBot(peer InputPeer) (bool, error) {
responseData, err := c.MakeRequest(&AccountDisablePeerConnectedBotParams{Peer: peer})
if err != nil {
@@ -412,7 +412,7 @@ func (*AccountEditBusinessChatLinkParams) CRC() uint32 {
return 0x8c3410af
}
-// Edit a created [business chat deep link ยป](https://core.telegram.org/api/business#business-chat-links).
+// Edit a created business chat deep link ยป.
func (c *Client) AccountEditBusinessChatLink(slug string, link *InputBusinessChatLink) (*BusinessChatLink, error) {
responseData, err := c.MakeRequest(&AccountEditBusinessChatLinkParams{
Link: link,
@@ -441,7 +441,7 @@ func (*AccountFinishTakeoutSessionParams) FlagIndex() int {
return 0
}
-// Terminate a [takeout session, see here ยป for more info](https://core.telegram.org/api/takeout).
+// Terminate a takeout session, see here ยป for more info.
func (c *Client) AccountFinishTakeoutSession(success bool) (bool, error) {
responseData, err := c.MakeRequest(&AccountFinishTakeoutSessionParams{Success: success})
if err != nil {
@@ -481,7 +481,7 @@ func (*AccountGetAllSecureValuesParams) CRC() uint32 {
return 0xb288bc7d
}
-// Get all saved [Telegram Passport](https://core.telegram.org/passport) documents, [for more info see the passport docs ยป](https://core.telegram.org/passport/encryption#encryption)
+// Get all saved Telegram Passport documents, for more info see the passport docs ยป
func (c *Client) AccountGetAllSecureValues() ([]*SecureValue, error) {
responseData, err := c.MakeRequest(&AccountGetAllSecureValuesParams{})
if err != nil {
@@ -592,10 +592,10 @@ func (*AccountGetBotBusinessConnectionParams) CRC() uint32 {
}
/*
-Bots may invoke this method to re-fetch the [updateBotBusinessConnect](https://core.telegram.org/constructor/updateBotBusinessConnect) constructor associated with a specific business `connection_id`, see here ยป for more info on connected business bots.
-This is needed for example for freshly logged in bots that are receiving some [updateBotNewBusinessMessage](https://core.telegram.org/constructor/updateBotNewBusinessMessage), etc. updates because some users have already connected to the bot before it could login.
-In this case, the bot is receiving messages from the business connection, but it hasn't cached the associated [updateBotBusinessConnect](https://core.telegram.org/constructor/updateBotBusinessConnect) with info about the connection (can it reply to messages? etc.) yet, and cannot receive the old ones because they were sent when the bot wasn't logged into the session yet.
-This method can be used to fetch info about a not-yet-cached business connection, and should not be invoked if the info is already cached or to fetch changes, as eventual changes will automatically be sent as new [updateBotBusinessConnect](https://core.telegram.org/constructor/updateBotBusinessConnect) updates to the bot using the usual [update delivery methods ยป](https://core.telegram.org/api/updates).
+Bots may invoke this method to re-fetch the updateBotBusinessConnect constructor associated with a specific business `connection_id`, see here ยป for more info on connected business bots.
+This is needed for example for freshly logged in bots that are receiving some updateBotNewBusinessMessage, etc. updates because some users have already connected to the bot before it could login.
+In this case, the bot is receiving messages from the business connection, but it hasn't cached the associated updateBotBusinessConnect with info about the connection (can it reply to messages? etc.) yet, and cannot receive the old ones because they were sent when the bot wasn't logged into the session yet.
+This method can be used to fetch info about a not-yet-cached business connection, and should not be invoked if the info is already cached or to fetch changes, as eventual changes will automatically be sent as new updateBotBusinessConnect updates to the bot using the usual update delivery methods ยป.
*/
func (c *Client) AccountGetBotBusinessConnection(connectionID string) (Updates, error) {
responseData, err := c.MakeRequest(&AccountGetBotBusinessConnectionParams{ConnectionID: connectionID})
@@ -616,7 +616,7 @@ func (*AccountGetBusinessChatLinksParams) CRC() uint32 {
return 0x6f70dde1
}
-// List all created [business chat deep links ยป](https://core.telegram.org/api/business#business-chat-links).
+// List all created business chat deep links ยป.
func (c *Client) AccountGetBusinessChatLinks() (*AccountBusinessChatLinks, error) {
responseData, err := c.MakeRequest(&AccountGetBusinessChatLinksParams{})
if err != nil {
@@ -638,7 +638,7 @@ func (*AccountGetChannelDefaultEmojiStatusesParams) CRC() uint32 {
return 0x7727a7d5
}
-// Get a list of default suggested [channel emoji statuses](https://core.telegram.org/api/emoji-status).
+// Get a list of default suggested channel emoji statuses.
func (c *Client) AccountGetChannelDefaultEmojiStatuses(hash int64) (AccountEmojiStatuses, error) {
responseData, err := c.MakeRequest(&AccountGetChannelDefaultEmojiStatusesParams{Hash: hash})
if err != nil {
@@ -660,7 +660,7 @@ func (*AccountGetChannelRestrictedStatusEmojisParams) CRC() uint32 {
return 0x35a9e0d5
}
-// Returns fetch the full list of [custom emoji IDs ยป](https://core.telegram.org/api/custom-emoji) that cannot be used in [channel emoji statuses ยป](https://core.telegram.org/api/emoji-status).
+// Returns fetch the full list of custom emoji IDs ยป that cannot be used in channel emoji statuses ยป.
func (c *Client) AccountGetChannelRestrictedStatusEmojis(hash int64) (EmojiList, error) {
responseData, err := c.MakeRequest(&AccountGetChannelRestrictedStatusEmojisParams{Hash: hash})
if err != nil {
@@ -682,7 +682,7 @@ func (*AccountGetChatThemesParams) CRC() uint32 {
return 0xd638de89
}
-// Get all available chat [themes ยป](https://core.telegram.org/api/themes).
+// Get all available chat themes ยป.
func (c *Client) AccountGetChatThemes(hash int64) (AccountThemes, error) {
responseData, err := c.MakeRequest(&AccountGetChatThemesParams{Hash: hash})
if err != nil {
@@ -702,7 +702,7 @@ func (*AccountGetConnectedBotsParams) CRC() uint32 {
return 0x4ea4c80f
}
-// List all currently connected [business bots ยป](https://core.telegram.org/api/business#connected-bots)
+// List all currently connected business bots ยป
func (c *Client) AccountGetConnectedBots() (*AccountConnectedBots, error) {
responseData, err := c.MakeRequest(&AccountGetConnectedBotsParams{})
if err != nil {
@@ -764,7 +764,7 @@ func (*AccountGetDefaultBackgroundEmojisParams) CRC() uint32 {
return 0xa60ab9ce
}
-// Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/custom-emoji) that can be used in an [accent color pattern](https://core.telegram.org/api/colors).
+// Get a set of suggested custom emoji stickers that can be used in an accent color pattern.
func (c *Client) AccountGetDefaultBackgroundEmojis(hash int64) (EmojiList, error) {
responseData, err := c.MakeRequest(&AccountGetDefaultBackgroundEmojisParams{Hash: hash})
if err != nil {
@@ -786,7 +786,7 @@ func (*AccountGetDefaultEmojiStatusesParams) CRC() uint32 {
return 0xd6753386
}
-// Get a list of default suggested [emoji statuses](https://core.telegram.org/api/emoji-status)
+// Get a list of default suggested emoji statuses
func (c *Client) AccountGetDefaultEmojiStatuses(hash int64) (AccountEmojiStatuses, error) {
responseData, err := c.MakeRequest(&AccountGetDefaultEmojiStatusesParams{Hash: hash})
if err != nil {
@@ -808,7 +808,7 @@ func (*AccountGetDefaultGroupPhotoEmojisParams) CRC() uint32 {
return 0x915860ae
}
-// Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/custom-emoji) that can be [used as group picture](https://core.telegram.org/api/files#sticker-profile-pictures)
+// Get a set of suggested custom emoji stickers that can be used as group picture
func (c *Client) AccountGetDefaultGroupPhotoEmojis(hash int64) (EmojiList, error) {
responseData, err := c.MakeRequest(&AccountGetDefaultGroupPhotoEmojisParams{Hash: hash})
if err != nil {
@@ -830,7 +830,7 @@ func (*AccountGetDefaultProfilePhotoEmojisParams) CRC() uint32 {
return 0xe2750328
}
-// Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/custom-emoji) that can be [used as profile picture](https://core.telegram.org/api/files#sticker-profile-pictures)
+// Get a set of suggested custom emoji stickers that can be used as profile picture
func (c *Client) AccountGetDefaultProfilePhotoEmojis(hash int64) (EmojiList, error) {
responseData, err := c.MakeRequest(&AccountGetDefaultProfilePhotoEmojisParams{Hash: hash})
if err != nil {
@@ -872,7 +872,7 @@ func (*AccountGetMultiWallPapersParams) CRC() uint32 {
return 0x65ad71dc
}
-// Get info about multiple [wallpapers](https://core.telegram.org/api/wallpapers)
+// Get info about multiple wallpapers
func (c *Client) AccountGetMultiWallPapers(wallpapers []InputWallPaper) ([]WallPaper, error) {
responseData, err := c.MakeRequest(&AccountGetMultiWallPapersParams{Wallpapers: wallpapers})
if err != nil {
@@ -968,7 +968,7 @@ func (*AccountGetPasswordSettingsParams) CRC() uint32 {
return 0x9cd4eaf9
}
-// Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on)
+// Get private info associated to the password info (recovery email, telegram passport info & so on)
func (c *Client) AccountGetPasswordSettings(password InputCheckPasswordSRP) (*AccountPasswordSettings, error) {
responseData, err := c.MakeRequest(&AccountGetPasswordSettingsParams{Password: password})
if err != nil {
@@ -1010,7 +1010,7 @@ func (*AccountGetReactionsNotifySettingsParams) CRC() uint32 {
return 0x6dd654c
}
-// Get the current [reaction notification settings ยป](https://core.telegram.org/api/reactions#notifications-about-reactions).
+// Get the current reaction notification settings ยป.
func (c *Client) AccountGetReactionsNotifySettings() (*ReactionsNotifySettings, error) {
responseData, err := c.MakeRequest(&AccountGetReactionsNotifySettingsParams{})
if err != nil {
@@ -1032,7 +1032,7 @@ func (*AccountGetRecentEmojiStatusesParams) CRC() uint32 {
return 0xf578105
}
-// Get recently used [emoji statuses](https://core.telegram.org/api/emoji-status)
+// Get recently used emoji statuses
func (c *Client) AccountGetRecentEmojiStatuses(hash int64) (AccountEmojiStatuses, error) {
responseData, err := c.MakeRequest(&AccountGetRecentEmojiStatusesParams{Hash: hash})
if err != nil {
@@ -1076,7 +1076,7 @@ func (*AccountGetSecureValueParams) CRC() uint32 {
return 0x73665bc2
}
-// Get saved [Telegram Passport](https://core.telegram.org/passport) document, [for more info see the passport docs ยป](https://core.telegram.org/passport/encryption#encryption)
+// Get saved Telegram Passport document, for more info see the passport docs ยป
func (c *Client) AccountGetSecureValue(types []SecureValueType) ([]*SecureValue, error) {
responseData, err := c.MakeRequest(&AccountGetSecureValueParams{Types: types})
if err != nil {
@@ -1176,7 +1176,7 @@ func (*AccountGetWallPaperParams) CRC() uint32 {
return 0xfc8ddbea
}
-// Get info about a certain [wallpaper](https://core.telegram.org/api/wallpapers)
+// Get info about a certain wallpaper
func (c *Client) AccountGetWallPaper(wallpaper InputWallPaper) (WallPaper, error) {
responseData, err := c.MakeRequest(&AccountGetWallPaperParams{Wallpaper: wallpaper})
if err != nil {
@@ -1198,7 +1198,7 @@ func (*AccountGetWallPapersParams) CRC() uint32 {
return 0x7967d36
}
-// Returns a list of available [wallpapers](https://core.telegram.org/api/wallpapers).
+// Returns a list of available wallpapers.
func (c *Client) AccountGetWallPapers(hash int64) (AccountWallPapers, error) {
responseData, err := c.MakeRequest(&AccountGetWallPapersParams{Hash: hash})
if err != nil {
@@ -1218,7 +1218,7 @@ func (*AccountGetWebAuthorizationsParams) CRC() uint32 {
return 0x182e6d6f
}
-// Get web [login widget](https://core.telegram.org/widgets/login) authorizations
+// Get web login widget authorizations
func (c *Client) AccountGetWebAuthorizations() (*AccountWebAuthorizations, error) {
responseData, err := c.MakeRequest(&AccountGetWebAuthorizationsParams{})
if err != nil {
@@ -1250,7 +1250,7 @@ func (*AccountInitTakeoutSessionParams) FlagIndex() int {
return 0
}
-// Initialize a [takeout session, see here ยป for more info](https://core.telegram.org/api/takeout).
+// Initialize a takeout session, see here ยป for more info.
func (c *Client) AccountInitTakeoutSession(params *AccountInitTakeoutSessionParams) (*AccountTakeout, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -1307,7 +1307,7 @@ func (*AccountInstallWallPaperParams) CRC() uint32 {
return 0xfeed5769
}
-// Install [wallpaper](https://core.telegram.org/api/wallpapers)
+// Install wallpaper
func (c *Client) AccountInstallWallPaper(wallpaper InputWallPaper, settings *WallPaperSettings) (bool, error) {
responseData, err := c.MakeRequest(&AccountInstallWallPaperParams{
Settings: settings,
@@ -1332,7 +1332,7 @@ func (*AccountInvalidateSignInCodesParams) CRC() uint32 {
return 0xca8ae8ba
}
-// Invalidate the specified login codes, see [here ยป](https://core.telegram.org/api/auth#invalidating-login-codes) for more info.
+// Invalidate the specified login codes, see here ยป for more info.
func (c *Client) AccountInvalidateSignInCodes(codes []string) (bool, error) {
responseData, err := c.MakeRequest(&AccountInvalidateSignInCodesParams{Codes: codes})
if err != nil {
@@ -1363,7 +1363,7 @@ func (*AccountRegisterDeviceParams) FlagIndex() int {
return 0
}
-// Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates)
+// Register device to receive PUSH notifications
func (c *Client) AccountRegisterDevice(params *AccountRegisterDeviceParams) (bool, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -1463,7 +1463,7 @@ func (*AccountResendPasswordEmailParams) CRC() uint32 {
return 0x7a7f2a15
}
-// Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp).
+// Resend the code to verify an email to use as 2FA recovery method.
func (c *Client) AccountResendPasswordEmail() (bool, error) {
responseData, err := c.MakeRequest(&AccountResendPasswordEmailParams{})
if err != nil {
@@ -1485,7 +1485,7 @@ func (*AccountResetAuthorizationParams) CRC() uint32 {
return 0xdf77f3bc
}
-// Log out an active [authorized session](https://core.telegram.org/api/auth) by its hash
+// Log out an active authorized session by its hash
func (c *Client) AccountResetAuthorization(hash int64) (bool, error) {
responseData, err := c.MakeRequest(&AccountResetAuthorizationParams{Hash: hash})
if err != nil {
@@ -1525,7 +1525,7 @@ func (*AccountResetPasswordParams) CRC() uint32 {
return 0x9308ce1b
}
-// Initiate a 2FA password reset: can only be used if the user is already logged-in, [see here for more info ยป](https://core.telegram.org/api/srp#password-reset)
+// Initiate a 2FA password reset: can only be used if the user is already logged-in, see here for more info ยป
func (c *Client) AccountResetPassword() (AccountResetPasswordResult, error) {
responseData, err := c.MakeRequest(&AccountResetPasswordParams{})
if err != nil {
@@ -1545,7 +1545,7 @@ func (*AccountResetWallPapersParams) CRC() uint32 {
return 0xbb3b9804
}
-// Delete all installed [wallpapers](https://core.telegram.org/api/wallpapers), reverting to the default wallpaper set.
+// Delete all installed wallpapers, reverting to the default wallpaper set.
func (c *Client) AccountResetWallPapers() (bool, error) {
responseData, err := c.MakeRequest(&AccountResetWallPapersParams{})
if err != nil {
@@ -1567,7 +1567,7 @@ func (*AccountResetWebAuthorizationParams) CRC() uint32 {
return 0x2d01b9ef
}
-// Log out an active web [telegram login](https://core.telegram.org/widgets/login) session
+// Log out an active web telegram login session
func (c *Client) AccountResetWebAuthorization(hash int64) (bool, error) {
responseData, err := c.MakeRequest(&AccountResetWebAuthorizationParams{Hash: hash})
if err != nil {
@@ -1587,7 +1587,7 @@ func (*AccountResetWebAuthorizationsParams) CRC() uint32 {
return 0x682d2594
}
-// Reset all active web [telegram login](https://core.telegram.org/widgets/login) sessions
+// Reset all active web telegram login sessions
func (c *Client) AccountResetWebAuthorizations() (bool, error) {
responseData, err := c.MakeRequest(&AccountResetWebAuthorizationsParams{})
if err != nil {
@@ -1609,7 +1609,7 @@ func (*AccountResolveBusinessChatLinkParams) CRC() uint32 {
return 0x5492e5ee
}
-// Resolve a [business chat deep link ยป](https://core.telegram.org/api/business#business-chat-links).
+// Resolve a business chat deep link ยป.
func (c *Client) AccountResolveBusinessChatLink(slug string) (*AccountResolvedBusinessChatLinks, error) {
responseData, err := c.MakeRequest(&AccountResolveBusinessChatLinkParams{Slug: slug})
if err != nil {
@@ -1720,7 +1720,7 @@ func (*AccountSaveSecureValueParams) CRC() uint32 {
return 0x899fe31d
}
-// Securely save [Telegram Passport](https://core.telegram.org/passport) document, [for more info see the passport docs ยป](https://core.telegram.org/passport/encryption#encryption)
+// Securely save Telegram Passport document, for more info see the passport docs ยป
func (c *Client) AccountSaveSecureValue(value *InputSecureValue, secureSecretID int64) (*SecureValue, error) {
responseData, err := c.MakeRequest(&AccountSaveSecureValueParams{
SecureSecretID: secureSecretID,
@@ -1773,7 +1773,7 @@ func (*AccountSaveWallPaperParams) CRC() uint32 {
return 0x6c5a5b37
}
-// Install/uninstall [wallpaper](https://core.telegram.org/api/wallpapers)
+// Install/uninstall wallpaper
func (c *Client) AccountSaveWallPaper(wallpaper InputWallPaper, unsave bool, settings *WallPaperSettings) (bool, error) {
responseData, err := c.MakeRequest(&AccountSaveWallPaperParams{
Settings: settings,
@@ -1826,7 +1826,7 @@ func (*AccountSendConfirmPhoneCodeParams) CRC() uint32 {
return 0x1b3faa88
}
-// Send confirmation code to cancel account deletion, for more info [click here ยป](https://core.telegram.org/api/account-deletion)
+// Send confirmation code to cancel account deletion, for more info click here ยป
func (c *Client) AccountSendConfirmPhoneCode(hash string, settings *CodeSettings) (AuthSentCode, error) {
responseData, err := c.MakeRequest(&AccountSendConfirmPhoneCodeParams{
Hash: hash,
@@ -1878,7 +1878,7 @@ func (*AccountSendVerifyPhoneCodeParams) CRC() uint32 {
return 0xa5a356f9
}
-// Send the verification phone code for telegram [passport](https://core.telegram.org/passport).
+// Send the verification phone code for telegram passport.
func (c *Client) AccountSendVerifyPhoneCode(phoneNumber string, settings *CodeSettings) (AuthSentCode, error) {
responseData, err := c.MakeRequest(&AccountSendVerifyPhoneCodeParams{
PhoneNumber: phoneNumber,
@@ -2043,7 +2043,7 @@ func (*AccountSetReactionsNotifySettingsParams) CRC() uint32 {
return 0x316ce548
}
-// Change the [reaction notification settings ยป](https://core.telegram.org/api/reactions#notifications-about-reactions).
+// Change the reaction notification settings ยป.
func (c *Client) AccountSetReactionsNotifySettings(settings *ReactionsNotifySettings) (*ReactionsNotifySettings, error) {
responseData, err := c.MakeRequest(&AccountSetReactionsNotifySettingsParams{Settings: settings})
if err != nil {
@@ -2066,7 +2066,7 @@ func (*AccountToggleConnectedBotPausedParams) CRC() uint32 {
return 0x646e1097
}
-// Pause or unpause a specific chat, temporarily disconnecting it from all [business bots ยป](https://core.telegram.org/api/business#connected-bots).
+// Pause or unpause a specific chat, temporarily disconnecting it from all business bots ยป.
func (c *Client) AccountToggleConnectedBotPaused(peer InputPeer, paused bool) (bool, error) {
responseData, err := c.MakeRequest(&AccountToggleConnectedBotPausedParams{
Paused: paused,
@@ -2091,7 +2091,7 @@ func (*AccountToggleSponsoredMessagesParams) CRC() uint32 {
return 0xb9d9a38d
}
-// Disable or re-enable Telegram ads for the current [Premium](https://core.telegram.org/api/premium) account.
+// Disable or re-enable Telegram ads for the current Premium account.
func (c *Client) AccountToggleSponsoredMessages(enabled bool) (bool, error) {
responseData, err := c.MakeRequest(&AccountToggleSponsoredMessagesParams{Enabled: enabled})
if err != nil {
@@ -2114,7 +2114,7 @@ func (*AccountToggleUsernameParams) CRC() uint32 {
return 0x58d6b376
}
-// Activate or deactivate a purchased [fragment.com](https://core.telegram.orghttps://fragment.com) username associated to the currently logged-in user.
+// Activate or deactivate a purchased fragment.com username associated to the currently logged-in user.
func (c *Client) AccountToggleUsername(username string, active bool) (bool, error) {
responseData, err := c.MakeRequest(&AccountToggleUsernameParams{
Active: active,
@@ -2171,7 +2171,7 @@ func (*AccountUpdateBirthdayParams) FlagIndex() int {
return 0
}
-// Update our [birthday, see here ยป](https://core.telegram.org/api/profile#birthday) for more info.
+// Update our birthday, see here ยป for more info.
func (c *Client) AccountUpdateBirthday(birthday *Birthday) (bool, error) {
responseData, err := c.MakeRequest(&AccountUpdateBirthdayParams{Birthday: birthday})
if err != nil {
@@ -2197,7 +2197,7 @@ func (*AccountUpdateBusinessAwayMessageParams) FlagIndex() int {
return 0
}
-// Set a list of [Telegram Business away messages](https://core.telegram.org/api/business#away-messages).
+// Set a list of Telegram Business away messages.
func (c *Client) AccountUpdateBusinessAwayMessage(message *InputBusinessAwayMessage) (bool, error) {
responseData, err := c.MakeRequest(&AccountUpdateBusinessAwayMessageParams{Message: message})
if err != nil {
@@ -2223,7 +2223,7 @@ func (*AccountUpdateBusinessGreetingMessageParams) FlagIndex() int {
return 0
}
-// Set a list of [Telegram Business greeting messages](https://core.telegram.org/api/business#greeting-messages).
+// Set a list of Telegram Business greeting messages.
func (c *Client) AccountUpdateBusinessGreetingMessage(message *InputBusinessGreetingMessage) (bool, error) {
responseData, err := c.MakeRequest(&AccountUpdateBusinessGreetingMessageParams{Message: message})
if err != nil {
@@ -2249,7 +2249,7 @@ func (*AccountUpdateBusinessIntroParams) FlagIndex() int {
return 0
}
-// Set or remove the [Telegram Business introduction ยป](https://core.telegram.org/api/business#business-introduction).
+// Set or remove the Telegram Business introduction ยป.
func (c *Client) AccountUpdateBusinessIntro(intro *InputBusinessIntro) (bool, error) {
responseData, err := c.MakeRequest(&AccountUpdateBusinessIntroParams{Intro: intro})
if err != nil {
@@ -2276,7 +2276,7 @@ func (*AccountUpdateBusinessLocationParams) FlagIndex() int {
return 0
}
-// [Businesses ยป](https://core.telegram.org/api/business#location) may advertise their location using this method, see [here ยป](https://core.telegram.org/api/business#location) for more info.
+// Businesses ยป may advertise their location using this method, see here ยป for more info.
func (c *Client) AccountUpdateBusinessLocation(geoPoint InputGeoPoint, address string) (bool, error) {
responseData, err := c.MakeRequest(&AccountUpdateBusinessLocationParams{
Address: address,
@@ -2306,8 +2306,8 @@ func (*AccountUpdateBusinessWorkHoursParams) FlagIndex() int {
}
/*
-Specify a set of [Telegram Business opening hours](https://core.telegram.org/api/business#opening-hours).
-This info will be contained in [userFull](https://core.telegram.org/constructor/userFull).`business_work_hours`.
+Specify a set of Telegram Business opening hours.
+This info will be contained in userFull.`business_work_hours`.
*/
func (c *Client) AccountUpdateBusinessWorkHours(businessWorkHours *BusinessWorkHours) (bool, error) {
responseData, err := c.MakeRequest(&AccountUpdateBusinessWorkHoursParams{BusinessWorkHours: businessWorkHours})
@@ -2336,7 +2336,7 @@ func (*AccountUpdateColorParams) FlagIndex() int {
return 0
}
-// Update the [accent color and background custom emoji ยป](https://core.telegram.org/api/colors) of the current account.
+// Update the accent color and background custom emoji ยป of the current account.
func (c *Client) AccountUpdateColor(forProfile bool, color int32, backgroundEmojiID int64) (bool, error) {
responseData, err := c.MakeRequest(&AccountUpdateColorParams{
BackgroundEmojiID: backgroundEmojiID,
@@ -2369,7 +2369,7 @@ func (*AccountUpdateConnectedBotParams) FlagIndex() int {
return 0
}
-// Connect a [business bot ยป](https://core.telegram.org/api/business#connected-bots) to the current account, or to change the current connection settings.
+// Connect a business bot ยป to the current account, or to change the current connection settings.
func (c *Client) AccountUpdateConnectedBot(canReply, deleted bool, bot InputUser, recipients *InputBusinessBotRecipients) (Updates, error) {
responseData, err := c.MakeRequest(&AccountUpdateConnectedBotParams{
Bot: bot,
@@ -2396,7 +2396,7 @@ func (*AccountUpdateDeviceLockedParams) CRC() uint32 {
return 0x38df3532
}
-// When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates).
+// When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications.
func (c *Client) AccountUpdateDeviceLocked(period int32) (bool, error) {
responseData, err := c.MakeRequest(&AccountUpdateDeviceLockedParams{Period: period})
if err != nil {
@@ -2418,7 +2418,7 @@ func (*AccountUpdateEmojiStatusParams) CRC() uint32 {
return 0xfbd3de6b
}
-// Set an [emoji status](https://core.telegram.org/api/emoji-status)
+// Set an emoji status
func (c *Client) AccountUpdateEmojiStatus(emojiStatus EmojiStatus) (bool, error) {
responseData, err := c.MakeRequest(&AccountUpdateEmojiStatusParams{EmojiStatus: emojiStatus})
if err != nil {
@@ -2492,7 +2492,7 @@ func (*AccountUpdatePersonalChannelParams) CRC() uint32 {
return 0xd94305e0
}
-// Associate (or remove) a personal [channel ยป](https://core.telegram.org/api/channel), that will be listed on our personal [profile page ยป](https://core.telegram.org/api/profile#personal-channel).
+// Associate (or remove) a personal channel ยป, that will be listed on our personal profile page ยป.
func (c *Client) AccountUpdatePersonalChannel(channel InputChannel) (bool, error) {
responseData, err := c.MakeRequest(&AccountUpdatePersonalChannelParams{Channel: channel})
if err != nil {
@@ -2623,7 +2623,7 @@ func (*AccountUploadRingtoneParams) CRC() uint32 {
return 0x831a83a2
}
-// Upload notification sound, use [account.saveRingtone](https://core.telegram.org/method/account.saveRingtone) to convert it and add it to the list of saved notification sounds.
+// Upload notification sound, use account.saveRingtone to convert it and add it to the list of saved notification sounds.
func (c *Client) AccountUploadRingtone(file InputFile, fileName, mimeType string) (Document, error) {
responseData, err := c.MakeRequest(&AccountUploadRingtoneParams{
File: file,
@@ -2690,7 +2690,7 @@ func (*AccountUploadWallPaperParams) FlagIndex() int {
return 0
}
-// Create and upload a new [wallpaper](https://core.telegram.org/api/wallpapers)
+// Create and upload a new wallpaper
func (c *Client) AccountUploadWallPaper(forChat bool, file InputFile, mimeType string, settings *WallPaperSettings) (WallPaper, error) {
responseData, err := c.MakeRequest(&AccountUploadWallPaperParams{
File: file,
@@ -2745,7 +2745,7 @@ func (*AccountVerifyPhoneParams) CRC() uint32 {
return 0x4dd3a7f6
}
-// Verify a phone number for telegram [passport](https://core.telegram.org/passport).
+// Verify a phone number for telegram passport.
func (c *Client) AccountVerifyPhone(phoneNumber, phoneCodeHash, phoneCode string) (bool, error) {
responseData, err := c.MakeRequest(&AccountVerifyPhoneParams{
PhoneCode: phoneCode,
@@ -2849,7 +2849,7 @@ func (*AuthCheckPasswordParams) CRC() uint32 {
return 0xd18b4d16
}
-// Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp).
+// Try logging to an account protected by a 2FA password.
func (c *Client) AuthCheckPassword(password InputCheckPasswordSRP) (AuthAuthorization, error) {
responseData, err := c.MakeRequest(&AuthCheckPasswordParams{Password: password})
if err != nil {
@@ -2871,7 +2871,7 @@ func (*AuthCheckRecoveryPasswordParams) CRC() uint32 {
return 0xd36bf79
}
-// Check if the [2FA recovery code](https://core.telegram.org/api/srp) sent using [auth.requestPasswordRecovery](https://core.telegram.org/method/auth.requestPasswordRecovery) is valid, before passing it to [auth.recoverPassword](https://core.telegram.org/method/auth.recoverPassword).
+// Check if the 2FA recovery code sent using auth.requestPasswordRecovery is valid, before passing it to auth.recoverPassword.
func (c *Client) AuthCheckRecoveryPassword(code string) (bool, error) {
responseData, err := c.MakeRequest(&AuthCheckRecoveryPasswordParams{Code: code})
if err != nil {
@@ -2940,8 +2940,8 @@ func (*AuthExportLoginTokenParams) CRC() uint32 {
}
/*
-Generate a login token, for [login via QR code](https://core.telegram.org/api/qr-login).
-The generated login token should be encoded using base64url, then shown as a `tg://login?token=base64encodedtoken` [deep link ยป](https://core.telegram.org/api/links#qr-code-login-links) in the QR code.
+Generate a login token, for login via QR code.
+The generated login token should be encoded using base64url, then shown as a `tg://login?token=base64encodedtoken` deep link ยป in the QR code.
*/
func (c *Client) AuthExportLoginToken(apiID int32, apiHash string, exceptIds []int64) (AuthLoginToken, error) {
responseData, err := c.MakeRequest(&AuthExportLoginTokenParams{
@@ -3024,7 +3024,7 @@ func (*AuthImportLoginTokenParams) CRC() uint32 {
return 0x95ac5ce4
}
-// Login using a redirected login token, generated in case of DC mismatch during [QR code login](https://core.telegram.org/api/qr-login).
+// Login using a redirected login token, generated in case of DC mismatch during QR code login.
func (c *Client) AuthImportLoginToken(token []byte) (AuthLoginToken, error) {
responseData, err := c.MakeRequest(&AuthImportLoginTokenParams{Token: token})
if err != nil {
@@ -3099,7 +3099,7 @@ func (*AuthRecoverPasswordParams) FlagIndex() int {
return 0
}
-// Reset the [2FA password](https://core.telegram.org/api/srp) using the recovery code sent using [auth.requestPasswordRecovery](https://core.telegram.org/method/auth.requestPasswordRecovery).
+// Reset the 2FA password using the recovery code sent using auth.requestPasswordRecovery.
func (c *Client) AuthRecoverPassword(code string, newSettings *AccountPasswordInputSettings) (AuthAuthorization, error) {
responseData, err := c.MakeRequest(&AuthRecoverPasswordParams{
Code: code,
@@ -3180,7 +3180,7 @@ func (*AuthRequestPasswordRecoveryParams) CRC() uint32 {
return 0xd897bc66
}
-// Request recovery code of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).
+// Request recovery code of a 2FA password, only for accounts with a recovery email configured.
func (c *Client) AuthRequestPasswordRecovery() (*AuthPasswordRecovery, error) {
responseData, err := c.MakeRequest(&AuthRequestPasswordRecoveryParams{})
if err != nil {
@@ -3208,7 +3208,7 @@ func (*AuthResendCodeParams) FlagIndex() int {
return 0
}
-// Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see [login](https://core.telegram.org/api/auth) for more info.
+// Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see login for more info.
func (c *Client) AuthResendCode(phoneNumber, phoneCodeHash, reason string) (AuthSentCode, error) {
responseData, err := c.MakeRequest(&AuthResendCodeParams{
PhoneCodeHash: phoneCodeHash,
@@ -3255,7 +3255,7 @@ func (*AuthResetLoginEmailParams) CRC() uint32 {
return 0x7e960193
}
-// Reset the [login email ยป](https://core.telegram.orghttps://core.telegram.org/api/auth#email-verification).
+// Reset the login email ยป.
func (c *Client) AuthResetLoginEmail(phoneNumber, phoneCodeHash string) (AuthSentCode, error) {
responseData, err := c.MakeRequest(&AuthResetLoginEmailParams{
PhoneCodeHash: phoneCodeHash,
@@ -3376,7 +3376,7 @@ func (*BotsAddPreviewMediaParams) CRC() uint32 {
return 0x17aeb75a
}
-// Add a [main mini app preview, see here ยป](https://core.telegram.org/api/bots/webapps#main-mini-app-previews) for more info.
+// Add a main mini app preview, see here ยป for more info.
func (c *Client) BotsAddPreviewMedia(bot InputUser, langCode string, media InputMedia) (*BotPreviewMedia, error) {
responseData, err := c.MakeRequest(&BotsAddPreviewMediaParams{
Bot: bot,
@@ -3474,6 +3474,26 @@ func (*BotsCheckDownloadFileParamsParams) CRC() uint32 {
return 0x50077589
}
+/*
+
+boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+bots.checkDownloadFileParams#50077589 bot:InputUser file_name:string url:string = Bool;
+*/
func (c *Client) BotsCheckDownloadFileParams(bot InputUser, fileName, url string) (bool, error) {
responseData, err := c.MakeRequest(&BotsCheckDownloadFileParamsParams{
Bot: bot,
@@ -3501,7 +3521,7 @@ func (*BotsDeletePreviewMediaParams) CRC() uint32 {
return 0x2d0135b3
}
-// Delete a [main mini app preview, see here ยป](https://core.telegram.org/api/bots/webapps#main-mini-app-previews) for more info.
+// Delete a main mini app preview, see here ยป for more info.
func (c *Client) BotsDeletePreviewMedia(bot InputUser, langCode string, media []InputMedia) (bool, error) {
responseData, err := c.MakeRequest(&BotsDeletePreviewMediaParams{
Bot: bot,
@@ -3530,7 +3550,7 @@ func (*BotsEditPreviewMediaParams) CRC() uint32 {
return 0x8525606f
}
-// Edit a [main mini app preview, see here ยป](https://core.telegram.org/api/bots/webapps#main-mini-app-previews) for more info.
+// Edit a main mini app preview, see here ยป for more info.
func (c *Client) BotsEditPreviewMedia(bot InputUser, langCode string, media, newMedia InputMedia) (*BotPreviewMedia, error) {
responseData, err := c.MakeRequest(&BotsEditPreviewMediaParams{
Bot: bot,
@@ -3549,6 +3569,43 @@ func (c *Client) BotsEditPreviewMedia(bot InputUser, langCode string, media, new
return resp, nil
}
+type BotsGetAdminedBotsParams struct{}
+
+func (*BotsGetAdminedBotsParams) CRC() uint32 {
+ return 0xb0711d83
+}
+
+/*
+
+---functions---
+bots.getAdminedBots#b0711d83 = Vector<User>;
+*/
+func (c *Client) BotsGetAdminedBots() ([]User, error) {
+ responseData, err := c.MakeRequest(&BotsGetAdminedBotsParams{})
+ if err != nil {
+ return nil, errors.Wrap(err, "sending BotsGetAdminedBots")
+ }
+
+ resp, ok := responseData.([]User)
+ if !ok {
+ panic("got invalid response type: " + reflect.TypeOf(responseData).String())
+ }
+ return resp, nil
+}
+
type BotsGetBotCommandsParams struct {
Scope BotCommandScope
LangCode string
@@ -3613,7 +3670,7 @@ func (*BotsGetBotMenuButtonParams) CRC() uint32 {
return 0x9c60eb28
}
-// Gets the menu button action for a given user or for all users, previously set using [bots.setBotMenuButton](https://core.telegram.org/method/bots.setBotMenuButton); users can see this information in the [botInfo](https://core.telegram.org/constructor/botInfo) constructor.
+// Gets the menu button action for a given user or for all users, previously set using bots.setBotMenuButton; users can see this information in the botInfo constructor.
func (c *Client) BotsGetBotMenuButton(userID InputUser) (BotMenuButton, error) {
responseData, err := c.MakeRequest(&BotsGetBotMenuButtonParams{UserID: userID})
if err != nil {
@@ -3636,7 +3693,7 @@ func (*BotsGetPopularAppBotsParams) CRC() uint32 {
return 0xc2510192
}
-// Fetch popular [Main Mini Apps](https://core.telegram.org/api/bots/webapps#main-mini-apps), to be used in the [apps tab of global search ยป](https://core.telegram.org/api/search#apps-tab).
+// Fetch popular Main Mini Apps, to be used in the apps tab of global search ยป.
func (c *Client) BotsGetPopularAppBots(offset string, limit int32) (*BotsPopularAppBots, error) {
responseData, err := c.MakeRequest(&BotsGetPopularAppBotsParams{
Limit: limit,
@@ -3662,7 +3719,7 @@ func (*BotsGetPreviewInfoParams) CRC() uint32 {
return 0x423ab3ad
}
-// Bot owners only, fetch [main mini app preview information, see here ยป](https://core.telegram.org/api/bots/webapps#main-mini-app-previews) for more info.
+// Bot owners only, fetch main mini app preview information, see here ยป for more info.
func (c *Client) BotsGetPreviewInfo(bot InputUser, langCode string) (*BotsPreviewInfo, error) {
responseData, err := c.MakeRequest(&BotsGetPreviewInfoParams{
Bot: bot,
@@ -3687,7 +3744,7 @@ func (*BotsGetPreviewMediasParams) CRC() uint32 {
return 0xa2a5594d
}
-// Fetch [main mini app previews, see here ยป](https://core.telegram.org/api/bots/webapps#main-mini-app-previews) for more info.
+// Fetch main mini app previews, see here ยป for more info.
func (c *Client) BotsGetPreviewMedias(bot InputUser) ([]*BotPreviewMedia, error) {
responseData, err := c.MakeRequest(&BotsGetPreviewMediasParams{Bot: bot})
if err != nil {
@@ -3711,7 +3768,7 @@ func (*BotsInvokeWebViewCustomMethodParams) CRC() uint32 {
return 0x87fc5e7
}
-// Send a custom request from a [mini bot app](https://core.telegram.org/api/bots/webapps), triggered by a [web_app_invoke_custom_method event ยป](https://core.telegram.org/api/web-events#web-app-invoke-custom-method).
+// Send a custom request from a mini bot app, triggered by a web_app_invoke_custom_method event ยป.
func (c *Client) BotsInvokeWebViewCustomMethod(bot InputUser, customMethod string, params *DataJson) (*DataJson, error) {
responseData, err := c.MakeRequest(&BotsInvokeWebViewCustomMethodParams{
Bot: bot,
@@ -3739,7 +3796,7 @@ func (*BotsReorderPreviewMediasParams) CRC() uint32 {
return 0xb627f3aa
}
-// Reorder a [main mini app previews, see here ยป](https://core.telegram.org/api/bots/webapps#main-mini-app-previews) for more info.
+// Reorder a main mini app previews, see here ยป for more info.
func (c *Client) BotsReorderPreviewMedias(bot InputUser, langCode string, order []InputMedia) (bool, error) {
responseData, err := c.MakeRequest(&BotsReorderPreviewMediasParams{
Bot: bot,
@@ -3843,7 +3900,7 @@ func (*BotsSetBotBroadcastDefaultAdminRightsParams) CRC() uint32 {
return 0x788464e1
}
-// Set the default [suggested admin rights](https://core.telegram.org/api/rights#suggested-bot-rights) for bots being added as admins to channels, see [here for more info on how to handle them ยป](https://core.telegram.org/api/rights#suggested-bot-rights).
+// Set the default suggested admin rights for bots being added as admins to channels, see here for more info on how to handle them ยป.
func (c *Client) BotsSetBotBroadcastDefaultAdminRights(adminRights *ChatAdminRights) (bool, error) {
responseData, err := c.MakeRequest(&BotsSetBotBroadcastDefaultAdminRightsParams{AdminRights: adminRights})
if err != nil {
@@ -3893,7 +3950,7 @@ func (*BotsSetBotGroupDefaultAdminRightsParams) CRC() uint32 {
return 0x925ec9ea
}
-// Set the default [suggested admin rights](https://core.telegram.org/api/rights#suggested-bot-rights) for bots being added as admins to groups, see [here for more info on how to handle them ยป](https://core.telegram.org/api/rights#suggested-bot-rights).
+// Set the default suggested admin rights for bots being added as admins to groups, see here for more info on how to handle them ยป.
func (c *Client) BotsSetBotGroupDefaultAdminRights(adminRights *ChatAdminRights) (bool, error) {
responseData, err := c.MakeRequest(&BotsSetBotGroupDefaultAdminRightsParams{AdminRights: adminRights})
if err != nil {
@@ -3946,7 +4003,7 @@ func (*BotsSetBotMenuButtonParams) CRC() uint32 {
return 0x4504d54f
}
-// Sets the [menu button action ยป](https://core.telegram.org/api/bots/menu) for a given user or for all users
+// Sets the menu button action ยป for a given user or for all users
func (c *Client) BotsSetBotMenuButton(userID InputUser, button BotMenuButton) (bool, error) {
responseData, err := c.MakeRequest(&BotsSetBotMenuButtonParams{
Button: button,
@@ -3972,6 +4029,26 @@ func (*BotsToggleUserEmojiStatusPermissionParams) CRC() uint32 {
return 0x6de6392
}
+/*
+
+boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+bots.toggleUserEmojiStatusPermission#6de6392 bot:InputUser enabled:Bool = Bool;
+*/
func (c *Client) BotsToggleUserEmojiStatusPermission(bot InputUser, enabled bool) (bool, error) {
responseData, err := c.MakeRequest(&BotsToggleUserEmojiStatusPermissionParams{
Bot: bot,
@@ -3998,7 +4075,7 @@ func (*BotsToggleUsernameParams) CRC() uint32 {
return 0x53ca973
}
-// Activate or deactivate a purchased [fragment.com](https://core.telegram.orghttps://fragment.com) username associated to a bot we own.
+// Activate or deactivate a purchased fragment.com username associated to a bot we own.
func (c *Client) BotsToggleUsername(bot InputUser, username string, active bool) (bool, error) {
responseData, err := c.MakeRequest(&BotsToggleUsernameParams{
Active: active,
@@ -4016,6 +4093,56 @@ func (c *Client) BotsToggleUsername(bot InputUser, username string, active bool)
return resp, nil
}
+type BotsUpdateStarRefProgramParams struct {
+ Bot InputUser
+ CommissionPermille int32
+ DurationMonths int32 `tl:"flag:0"`
+}
+
+func (*BotsUpdateStarRefProgramParams) CRC() uint32 {
+ return 0x778b5ab3
+}
+
+func (*BotsUpdateStarRefProgramParams) FlagIndex() int {
+ return 0
+}
+
+/*
+
+starRefProgram#dd0c66f2 flags:# bot_id:long commission_permille:int duration_months:flags.0?int end_date:flags.1?int daily_revenue_per_user:flags.2?StarsAmount = StarRefProgram;
+---functions---
+bots.updateStarRefProgram#778b5ab3 flags:# bot:InputUser commission_permille:int duration_months:flags.0?int = StarRefProgram;
+*/
+func (c *Client) BotsUpdateStarRefProgram(bot InputUser, commissionPermille, durationMonths int32) (*StarRefProgram, error) {
+ responseData, err := c.MakeRequest(&BotsUpdateStarRefProgramParams{
+ Bot: bot,
+ CommissionPermille: commissionPermille,
+ DurationMonths: durationMonths,
+ })
+ if err != nil {
+ return nil, errors.Wrap(err, "sending BotsUpdateStarRefProgram")
+ }
+
+ resp, ok := responseData.(*StarRefProgram)
+ if !ok {
+ panic("got invalid response type: " + reflect.TypeOf(responseData).String())
+ }
+ return resp, nil
+}
+
type BotsUpdateUserEmojiStatusParams struct {
UserID InputUser
EmojiStatus EmojiStatus
@@ -4025,6 +4152,26 @@ func (*BotsUpdateUserEmojiStatusParams) CRC() uint32 {
return 0xed9f30c5
}
+/*
+
+boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+bots.updateUserEmojiStatus#ed9f30c5 user_id:InputUser emoji_status:EmojiStatus = Bool;
+*/
func (c *Client) BotsUpdateUserEmojiStatus(userID InputUser, emojiStatus EmojiStatus) (bool, error) {
responseData, err := c.MakeRequest(&BotsUpdateUserEmojiStatusParams{
EmojiStatus: emojiStatus,
@@ -4075,7 +4222,7 @@ func (*ChannelsConvertToGigagroupParams) CRC() uint32 {
return 0xb290c69
}
-// Convert a [supergroup](https://core.telegram.org/api/channel) to a [gigagroup](https://core.telegram.org/api/channel), when requested by [channel suggestions](https://core.telegram.org/api/config#channel-suggestions).
+// Convert a supergroup to a gigagroup, when requested by channel suggestions.
func (c *Client) ChannelsConvertToGigagroup(channel InputChannel) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsConvertToGigagroupParams{Channel: channel})
if err != nil {
@@ -4109,7 +4256,7 @@ func (*ChannelsCreateChannelParams) FlagIndex() int {
return 0
}
-// Create a [supergroup/channel](https://core.telegram.org/api/channel).
+// Create a supergroup/channel.
func (c *Client) ChannelsCreateChannel(params *ChannelsCreateChannelParams) (Updates, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -4140,7 +4287,7 @@ func (*ChannelsCreateForumTopicParams) FlagIndex() int {
return 0
}
-// Create a [forum topic](https://core.telegram.org/api/forum); requires `manage_topics` rights.
+// Create a forum topic; requires `manage_topics` rights.
func (c *Client) ChannelsCreateForumTopic(params *ChannelsCreateForumTopicParams) (Updates, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -4184,7 +4331,7 @@ func (*ChannelsDeleteChannelParams) CRC() uint32 {
return 0xc0111fe3
}
-// Delete a [channel/supergroup](https://core.telegram.org/api/channel)
+// Delete a channel/supergroup
func (c *Client) ChannelsDeleteChannel(channel InputChannel) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsDeleteChannelParams{Channel: channel})
if err != nil {
@@ -4212,7 +4359,7 @@ func (*ChannelsDeleteHistoryParams) FlagIndex() int {
return 0
}
-// Delete the history of a [supergroup](https://core.telegram.org/api/channel)
+// Delete the history of a supergroup
func (c *Client) ChannelsDeleteHistory(forEveryone bool, channel InputChannel, maxID int32) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsDeleteHistoryParams{
Channel: channel,
@@ -4239,7 +4386,7 @@ func (*ChannelsDeleteMessagesParams) CRC() uint32 {
return 0x84c1fd4e
}
-// Delete messages in a [channel/supergroup](https://core.telegram.org/api/channel)
+// Delete messages in a channel/supergroup
func (c *Client) ChannelsDeleteMessages(channel InputChannel, id []int32) (*MessagesAffectedMessages, error) {
responseData, err := c.MakeRequest(&ChannelsDeleteMessagesParams{
Channel: channel,
@@ -4291,7 +4438,7 @@ func (*ChannelsDeleteTopicHistoryParams) CRC() uint32 {
return 0x34435f2d
}
-// Delete message history of a [forum topic](https://core.telegram.org/api/forum)
+// Delete message history of a forum topic
func (c *Client) ChannelsDeleteTopicHistory(channel InputChannel, topMsgID int32) (*MessagesAffectedHistory, error) {
responseData, err := c.MakeRequest(&ChannelsDeleteTopicHistoryParams{
Channel: channel,
@@ -4319,7 +4466,7 @@ func (*ChannelsEditAdminParams) CRC() uint32 {
return 0xd33c8902
}
-// Modify the admin rights of a user in a [supergroup/channel](https://core.telegram.org/api/channel).
+// Modify the admin rights of a user in a supergroup/channel.
func (c *Client) ChannelsEditAdmin(channel InputChannel, userID InputUser, adminRights *ChatAdminRights, rank string) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsEditAdminParams{
AdminRights: adminRights,
@@ -4348,7 +4495,7 @@ func (*ChannelsEditBannedParams) CRC() uint32 {
return 0x96e6cd81
}
-// Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel).
+// Ban/unban/kick a user in a supergroup/channel.
func (c *Client) ChannelsEditBanned(channel InputChannel, participant InputPeer, bannedRights *ChatBannedRights) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsEditBannedParams{
BannedRights: bannedRights,
@@ -4411,7 +4558,7 @@ func (*ChannelsEditForumTopicParams) FlagIndex() int {
return 0
}
-// Edit [forum topic](https://core.telegram.org/api/forum); requires `manage_topics` rights.
+// Edit forum topic; requires `manage_topics` rights.
func (c *Client) ChannelsEditForumTopic(params *ChannelsEditForumTopicParams) (Updates, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -4435,7 +4582,7 @@ func (*ChannelsEditLocationParams) CRC() uint32 {
return 0x58e63f6d
}
-// Edit location of geogroup, see [here ยป](https://core.telegram.org/api/nearby) for more info on geogroups.
+// Edit location of geogroup, see here ยป for more info on geogroups.
func (c *Client) ChannelsEditLocation(channel InputChannel, geoPoint InputGeoPoint, address string) (bool, error) {
responseData, err := c.MakeRequest(&ChannelsEditLocationParams{
Address: address,
@@ -4462,7 +4609,7 @@ func (*ChannelsEditPhotoParams) CRC() uint32 {
return 0xf12e57c9
}
-// Change the photo of a [channel/supergroup](https://core.telegram.org/api/channel)
+// Change the photo of a channel/supergroup
func (c *Client) ChannelsEditPhoto(channel InputChannel, photo InputChatPhoto) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsEditPhotoParams{
Channel: channel,
@@ -4488,7 +4635,7 @@ func (*ChannelsEditTitleParams) CRC() uint32 {
return 0x566decd0
}
-// Edit the name of a [channel/supergroup](https://core.telegram.org/api/channel)
+// Edit the name of a channel/supergroup
func (c *Client) ChannelsEditTitle(channel InputChannel, title string) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsEditTitleParams{
Channel: channel,
@@ -4520,7 +4667,7 @@ func (*ChannelsExportMessageLinkParams) FlagIndex() int {
return 0
}
-// Get link and embed info of a message in a [channel/supergroup](https://core.telegram.org/api/channel)
+// Get link and embed info of a message in a channel/supergroup
func (c *Client) ChannelsExportMessageLink(grouped, thread bool, channel InputChannel, id int32) (*ExportedMessageLink, error) {
responseData, err := c.MakeRequest(&ChannelsExportMessageLinkParams{
Channel: channel,
@@ -4557,7 +4704,7 @@ func (*ChannelsGetAdminLogParams) FlagIndex() int {
return 0
}
-// Get the admin log of a [channel/supergroup](https://core.telegram.org/api/channel)
+// Get the admin log of a channel/supergroup
func (c *Client) ChannelsGetAdminLog(params *ChannelsGetAdminLogParams) (*ChannelsAdminLogResults, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -4585,7 +4732,7 @@ func (*ChannelsGetAdminedPublicChannelsParams) FlagIndex() int {
return 0
}
-// Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel) we're admin in. Usually called when the user exceeds the [limit](https://core.telegram.org/constructor/config) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel), and the user is given the choice to remove one of his channels/supergroups/geogroups.
+// Get channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the limit for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of his channels/supergroups/geogroups.
func (c *Client) ChannelsGetAdminedPublicChannels(byLocation, checkLimit, forPersonal bool) (MessagesChats, error) {
responseData, err := c.MakeRequest(&ChannelsGetAdminedPublicChannelsParams{
ByLocation: byLocation,
@@ -4637,7 +4784,7 @@ func (*ChannelsGetChannelsParams) CRC() uint32 {
return 0xa7f6bbb
}
-// Get info about [channels/supergroups](https://core.telegram.org/api/channel)
+// Get info about channels/supergroups
func (c *Client) ChannelsGetChannels(id []InputChannel) (MessagesChats, error) {
responseData, err := c.MakeRequest(&ChannelsGetChannelsParams{ID: id})
if err != nil {
@@ -4668,7 +4815,7 @@ func (*ChannelsGetForumTopicsParams) FlagIndex() int {
return 0
}
-// Get [topics of a forum](https://core.telegram.org/api/forum)
+// Get topics of a forum
func (c *Client) ChannelsGetForumTopics(params *ChannelsGetForumTopicsParams) (*MessagesForumTopics, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -4716,7 +4863,7 @@ func (*ChannelsGetFullChannelParams) CRC() uint32 {
return 0x8736a09
}
-// Get full info about a [supergroup](https://core.telegram.org/api/channel#supergroups), [gigagroup](https://core.telegram.org/api/channel#gigagroups) or [channel](https://core.telegram.org/api/channel#channels)
+// Get full info about a supergroup, gigagroup or channel
func (c *Client) ChannelsGetFullChannel(channel InputChannel) (*MessagesChatFull, error) {
responseData, err := c.MakeRequest(&ChannelsGetFullChannelParams{Channel: channel})
if err != nil {
@@ -4736,7 +4883,7 @@ func (*ChannelsGetGroupsForDiscussionParams) CRC() uint32 {
return 0xf5dad378
}
-// Get all groups that can be used as [discussion groups](https://core.telegram.org/api/discussion).
+// Get all groups that can be used as discussion groups.
func (c *Client) ChannelsGetGroupsForDiscussion() (MessagesChats, error) {
responseData, err := c.MakeRequest(&ChannelsGetGroupsForDiscussionParams{})
if err != nil {
@@ -4778,7 +4925,7 @@ func (*ChannelsGetLeftChannelsParams) CRC() uint32 {
return 0x8341ecc0
}
-// Get a list of [channels/supergroups](https://core.telegram.org/api/channel) we left, requires a [takeout session, see here ยป for more info](https://core.telegram.org/api/takeout).
+// Get a list of channels/supergroups we left, requires a takeout session, see here ยป for more info.
func (c *Client) ChannelsGetLeftChannels(offset int32) (MessagesChats, error) {
responseData, err := c.MakeRequest(&ChannelsGetLeftChannelsParams{Offset: offset})
if err != nil {
@@ -4801,7 +4948,7 @@ func (*ChannelsGetMessagesParams) CRC() uint32 {
return 0xad8c9a23
}
-// Get [channel/supergroup](https://core.telegram.org/api/channel) messages
+// Get channel/supergroup messages
func (c *Client) ChannelsGetMessages(channel InputChannel, id []InputMessage) (MessagesMessages, error) {
responseData, err := c.MakeRequest(&ChannelsGetMessagesParams{
Channel: channel,
@@ -4827,7 +4974,7 @@ func (*ChannelsGetParticipantParams) CRC() uint32 {
return 0xa0ab6cc6
}
-// Get info about a [channel/supergroup](https://core.telegram.org/api/channel) participant
+// Get info about a channel/supergroup participant
func (c *Client) ChannelsGetParticipant(channel InputChannel, participant InputPeer) (*ChannelsChannelParticipant, error) {
responseData, err := c.MakeRequest(&ChannelsGetParticipantParams{
Channel: channel,
@@ -4856,7 +5003,7 @@ func (*ChannelsGetParticipantsParams) CRC() uint32 {
return 0x77ced9d0
}
-// Get the participants of a [supergroup/channel](https://core.telegram.org/api/channel)
+// Get the participants of a supergroup/channel
func (c *Client) ChannelsGetParticipants(channel InputChannel, filter ChannelParticipantsFilter, offset, limit int32, hash int64) (ChannelsChannelParticipants, error) {
responseData, err := c.MakeRequest(&ChannelsGetParticipantsParams{
Channel: channel,
@@ -4954,7 +5101,7 @@ func (*ChannelsLeaveChannelParams) CRC() uint32 {
return 0xf836aa95
}
-// Leave a [channel/supergroup](https://core.telegram.org/api/channel)
+// Leave a channel/supergroup
func (c *Client) ChannelsLeaveChannel(channel InputChannel) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsLeaveChannelParams{Channel: channel})
if err != nil {
@@ -4977,7 +5124,7 @@ func (*ChannelsReadHistoryParams) CRC() uint32 {
return 0xcc104937
}
-// Mark [channel/supergroup](https://core.telegram.org/api/channel) history as read
+// Mark channel/supergroup history as read
func (c *Client) ChannelsReadHistory(channel InputChannel, maxID int32) (bool, error) {
responseData, err := c.MakeRequest(&ChannelsReadHistoryParams{
Channel: channel,
@@ -5003,7 +5150,7 @@ func (*ChannelsReadMessageContentsParams) CRC() uint32 {
return 0xeab5dc38
}
-// Mark [channel/supergroup](https://core.telegram.org/api/channel) message contents as read
+// Mark channel/supergroup message contents as read
func (c *Client) ChannelsReadMessageContents(channel InputChannel, id []int32) (bool, error) {
responseData, err := c.MakeRequest(&ChannelsReadMessageContentsParams{
Channel: channel,
@@ -5087,7 +5234,7 @@ func (*ChannelsReportAntiSpamFalsePositiveParams) CRC() uint32 {
return 0xa850a693
}
-// Report a [native antispam](https://core.telegram.org/api/antispam) false positive
+// Report a native antispam false positive
func (c *Client) ChannelsReportAntiSpamFalsePositive(channel InputChannel, msgID int32) (bool, error) {
responseData, err := c.MakeRequest(&ChannelsReportAntiSpamFalsePositiveParams{
Channel: channel,
@@ -5170,7 +5317,7 @@ func (*ChannelsSearchPostsParams) CRC() uint32 {
return 0xd19f987b
}
-// Globally search for posts from public [channels ยป](https://core.telegram.org/api/channel) (including those we aren't a member of) containing a specific hashtag.
+// Globally search for posts from public channels ยป (including those we aren't a member of) containing a specific hashtag.
func (c *Client) ChannelsSearchPosts(hashtag string, offsetRate int32, offsetPeer InputPeer, offsetID, limit int32) (MessagesMessages, error) {
responseData, err := c.MakeRequest(&ChannelsSearchPostsParams{
Hashtag: hashtag,
@@ -5199,7 +5346,7 @@ func (*ChannelsSetBoostsToUnblockRestrictionsParams) CRC() uint32 {
return 0xad399cee
}
-// Admins with [ban_users admin rights ยป](https://core.telegram.org/constructor/chatAdminRights) may allow users that apply a certain number of [booosts ยป](https://core.telegram.org/api/boost) to the group to bypass [slow mode ยป](https://core.telegram.org/method/channels.toggleSlowMode) and [other ยป](https://core.telegram.org/api/rights#default-rights) supergroup restrictions, see [here ยป](https://core.telegram.org/api/boost#bypass-slowmode-and-chat-restrictions) for more info.
+// Admins with ban_users admin rights ยป may allow users that apply a certain number of booosts ยป to the group to bypass slow mode ยป and other ยป supergroup restrictions, see here ยป for more info.
func (c *Client) ChannelsSetBoostsToUnblockRestrictions(channel InputChannel, boosts int32) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsSetBoostsToUnblockRestrictionsParams{
Boosts: boosts,
@@ -5225,7 +5372,7 @@ func (*ChannelsSetDiscussionGroupParams) CRC() uint32 {
return 0x40582bb2
}
-// Associate a group to a channel as [discussion group](https://core.telegram.org/api/discussion) for that channel
+// Associate a group to a channel as discussion group for that channel
func (c *Client) ChannelsSetDiscussionGroup(broadcast, group InputChannel) (bool, error) {
responseData, err := c.MakeRequest(&ChannelsSetDiscussionGroupParams{
Broadcast: broadcast,
@@ -5251,7 +5398,7 @@ func (*ChannelsSetEmojiStickersParams) CRC() uint32 {
return 0x3cd930b7
}
-// Set a [custom emoji stickerset](https://core.telegram.org/api/custom-emoji) for supergroups. Only usable after reaching at least the [boost level ยป](https://core.telegram.org/api/boost) specified in the `group_emoji_stickers_level_min` ยป config parameter.
+// Set a custom emoji stickerset for supergroups. Only usable after reaching at least the boost level ยป specified in the `group_emoji_stickers_level_min` ยป config parameter.
func (c *Client) ChannelsSetEmojiStickers(channel InputChannel, stickerset InputStickerSet) (bool, error) {
responseData, err := c.MakeRequest(&ChannelsSetEmojiStickersParams{
Channel: channel,
@@ -5303,7 +5450,7 @@ func (*ChannelsToggleAntiSpamParams) CRC() uint32 {
return 0x68f3e4eb
}
-// Enable or disable the [native antispam system](https://core.telegram.org/api/antispam).
+// Enable or disable the native antispam system.
func (c *Client) ChannelsToggleAntiSpam(channel InputChannel, enabled bool) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsToggleAntiSpamParams{
Channel: channel,
@@ -5329,7 +5476,7 @@ func (*ChannelsToggleForumParams) CRC() uint32 {
return 0xa4298b29
}
-// Enable or disable [forum functionality](https://core.telegram.org/api/forum) in a supergroup.
+// Enable or disable forum functionality in a supergroup.
func (c *Client) ChannelsToggleForum(channel InputChannel, enabled bool) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsToggleForumParams{
Channel: channel,
@@ -5355,7 +5502,7 @@ func (*ChannelsToggleJoinRequestParams) CRC() uint32 {
return 0x4c2985b6
}
-// Set whether all users should [request admin approval to join the group ยป](https://core.telegram.org/api/invites#join-requests).
+// Set whether all users should request admin approval to join the group ยป.
func (c *Client) ChannelsToggleJoinRequest(channel InputChannel, enabled bool) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsToggleJoinRequestParams{
Channel: channel,
@@ -5381,7 +5528,7 @@ func (*ChannelsToggleJoinToSendParams) CRC() uint32 {
return 0xe4cb9580
}
-// Set whether all users [should join a discussion group in order to comment on a post ยป](https://core.telegram.org/api/discussion#requiring-users-to-join-the-group)
+// Set whether all users should join a discussion group in order to comment on a post ยป
func (c *Client) ChannelsToggleJoinToSend(channel InputChannel, enabled bool) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsToggleJoinToSendParams{
Channel: channel,
@@ -5407,7 +5554,7 @@ func (*ChannelsToggleParticipantsHiddenParams) CRC() uint32 {
return 0x6a6e7854
}
-// Hide or display the participants list in a [supergroup](https://core.telegram.org/api/channel).
+// Hide or display the participants list in a supergroup.
func (c *Client) ChannelsToggleParticipantsHidden(channel InputChannel, enabled bool) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsToggleParticipantsHiddenParams{
Channel: channel,
@@ -5518,7 +5665,7 @@ func (*ChannelsToggleUsernameParams) CRC() uint32 {
return 0x50f24105
}
-// Activate or deactivate a purchased [fragment.com](https://core.telegram.orghttps://fragment.com) username associated to a [supergroup or channel](https://core.telegram.org/api/channel) we own.
+// Activate or deactivate a purchased fragment.com username associated to a supergroup or channel we own.
func (c *Client) ChannelsToggleUsername(channel InputChannel, username string, active bool) (bool, error) {
responseData, err := c.MakeRequest(&ChannelsToggleUsernameParams{
Active: active,
@@ -5545,7 +5692,7 @@ func (*ChannelsToggleViewForumAsMessagesParams) CRC() uint32 {
return 0x9738bb15
}
-// Users may also choose to display messages from all topics of a [forum](https://core.telegram.org/api/forum) as if they were sent to a normal group, using a "View as messages" setting in the local client: this setting only affects the current account, and is synced to other logged in sessions using this method.
+// Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a "View as messages" setting in the local client: this setting only affects the current account, and is synced to other logged in sessions using this method.
func (c *Client) ChannelsToggleViewForumAsMessages(channel InputChannel, enabled bool) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsToggleViewForumAsMessagesParams{
Channel: channel,
@@ -5577,7 +5724,7 @@ func (*ChannelsUpdateColorParams) FlagIndex() int {
return 0
}
-// Update the [accent color and background custom emoji ยป](https://core.telegram.org/api/colors) of a channel.
+// Update the accent color and background custom emoji ยป of a channel.
func (c *Client) ChannelsUpdateColor(forProfile bool, channel InputChannel, color int32, backgroundEmojiID int64) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsUpdateColorParams{
BackgroundEmojiID: backgroundEmojiID,
@@ -5605,7 +5752,7 @@ func (*ChannelsUpdateEmojiStatusParams) CRC() uint32 {
return 0xf0d3e6a8
}
-// Set an [emoji status](https://core.telegram.org/api/emoji-status) for a channel or supergroup.
+// Set an emoji status for a channel or supergroup.
func (c *Client) ChannelsUpdateEmojiStatus(channel InputChannel, emojiStatus EmojiStatus) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsUpdateEmojiStatusParams{
Channel: channel,
@@ -5632,7 +5779,7 @@ func (*ChannelsUpdatePinnedForumTopicParams) CRC() uint32 {
return 0x6c2d9026
}
-// Pin or unpin [forum topics](https://core.telegram.org/api/forum)
+// Pin or unpin forum topics
func (c *Client) ChannelsUpdatePinnedForumTopic(channel InputChannel, topicID int32, pinned bool) (Updates, error) {
responseData, err := c.MakeRequest(&ChannelsUpdatePinnedForumTopicParams{
Channel: channel,
@@ -5684,7 +5831,7 @@ func (*ChatlistsCheckChatlistInviteParams) CRC() uint32 {
return 0x41c10fff
}
-// Obtain information about a [chat folder deep link ยป](https://core.telegram.org/api/links#chat-folder-links).
+// Obtain information about a chat folder deep link ยป.
func (c *Client) ChatlistsCheckChatlistInvite(slug string) (ChatlistsChatlistInvite, error) {
responseData, err := c.MakeRequest(&ChatlistsCheckChatlistInviteParams{Slug: slug})
if err != nil {
@@ -5707,7 +5854,7 @@ func (*ChatlistsDeleteExportedInviteParams) CRC() uint32 {
return 0x719c5c5e
}
-// Delete a previously created [chat folder deep link ยป](https://core.telegram.org/api/links#chat-folder-links).
+// Delete a previously created chat folder deep link ยป.
func (c *Client) ChatlistsDeleteExportedInvite(chatlist *InputChatlistDialogFilter, slug string) (bool, error) {
responseData, err := c.MakeRequest(&ChatlistsDeleteExportedInviteParams{
Chatlist: chatlist,
@@ -5740,7 +5887,7 @@ func (*ChatlistsEditExportedInviteParams) FlagIndex() int {
return 0
}
-// Edit a [chat folder deep link ยป](https://core.telegram.org/api/links#chat-folder-links).
+// Edit a chat folder deep link ยป.
func (c *Client) ChatlistsEditExportedInvite(params *ChatlistsEditExportedInviteParams) (*ExportedChatlistInvite, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -5764,7 +5911,7 @@ func (*ChatlistsExportChatlistInviteParams) CRC() uint32 {
return 0x8472478e
}
-// Export a [folder ยป](https://core.telegram.org/api/folders), creating a [chat folder deep link ยป](https://core.telegram.org/api/links#chat-folder-links).
+// Export a folder ยป, creating a chat folder deep link ยป.
func (c *Client) ChatlistsExportChatlistInvite(chatlist *InputChatlistDialogFilter, title string, peers []InputPeer) (*ChatlistsExportedChatlistInvite, error) {
responseData, err := c.MakeRequest(&ChatlistsExportChatlistInviteParams{
Chatlist: chatlist,
@@ -5790,7 +5937,7 @@ func (*ChatlistsGetChatlistUpdatesParams) CRC() uint32 {
return 0x89419521
}
-// Fetch new chats associated with an imported [chat folder deep link ยป](https://core.telegram.org/api/links#chat-folder-links). Must be invoked at most every `chatlist_update_period` seconds (as per the related [client configuration parameter ยป](https://core.telegram.org/api/config#chatlist-update-period)).
+// Fetch new chats associated with an imported chat folder deep link ยป. Must be invoked at most every `chatlist_update_period` seconds (as per the related client configuration parameter ยป).
func (c *Client) ChatlistsGetChatlistUpdates(chatlist *InputChatlistDialogFilter) (*ChatlistsChatlistUpdates, error) {
responseData, err := c.MakeRequest(&ChatlistsGetChatlistUpdatesParams{Chatlist: chatlist})
if err != nil {
@@ -5812,7 +5959,7 @@ func (*ChatlistsGetExportedInvitesParams) CRC() uint32 {
return 0xce03da83
}
-// List all [chat folder deep links ยป](https://core.telegram.org/api/links#chat-folder-links) associated to a folder
+// List all chat folder deep links ยป associated to a folder
func (c *Client) ChatlistsGetExportedInvites(chatlist *InputChatlistDialogFilter) (*ChatlistsExportedInvites, error) {
responseData, err := c.MakeRequest(&ChatlistsGetExportedInvitesParams{Chatlist: chatlist})
if err != nil {
@@ -5834,7 +5981,7 @@ func (*ChatlistsGetLeaveChatlistSuggestionsParams) CRC() uint32 {
return 0xfdbcd714
}
-// Returns identifiers of pinned or always included chats from a chat folder imported using a [chat folder deep link ยป](https://core.telegram.org/api/links#chat-folder-links), which are suggested to be left when the chat folder is deleted.
+// Returns identifiers of pinned or always included chats from a chat folder imported using a chat folder deep link ยป, which are suggested to be left when the chat folder is deleted.
func (c *Client) ChatlistsGetLeaveChatlistSuggestions(chatlist *InputChatlistDialogFilter) ([]Peer, error) {
responseData, err := c.MakeRequest(&ChatlistsGetLeaveChatlistSuggestionsParams{Chatlist: chatlist})
if err != nil {
@@ -5856,7 +6003,7 @@ func (*ChatlistsHideChatlistUpdatesParams) CRC() uint32 {
return 0x66e486fb
}
-// Dismiss new pending peers recently added to a [chat folder deep link ยป](https://core.telegram.org/api/links#chat-folder-links).
+// Dismiss new pending peers recently added to a chat folder deep link ยป.
func (c *Client) ChatlistsHideChatlistUpdates(chatlist *InputChatlistDialogFilter) (bool, error) {
responseData, err := c.MakeRequest(&ChatlistsHideChatlistUpdatesParams{Chatlist: chatlist})
if err != nil {
@@ -5879,7 +6026,7 @@ func (*ChatlistsJoinChatlistInviteParams) CRC() uint32 {
return 0xa6b1e39a
}
-// Import a [chat folder deep link ยป](https://core.telegram.org/api/links#chat-folder-links), joining some or all the chats in the folder.
+// Import a chat folder deep link ยป, joining some or all the chats in the folder.
func (c *Client) ChatlistsJoinChatlistInvite(slug string, peers []InputPeer) (Updates, error) {
responseData, err := c.MakeRequest(&ChatlistsJoinChatlistInviteParams{
Peers: peers,
@@ -5905,7 +6052,7 @@ func (*ChatlistsJoinChatlistUpdatesParams) CRC() uint32 {
return 0xe089f8f5
}
-// Join channels and supergroups recently added to a [chat folder deep link ยป](https://core.telegram.org/api/links#chat-folder-links).
+// Join channels and supergroups recently added to a chat folder deep link ยป.
func (c *Client) ChatlistsJoinChatlistUpdates(chatlist *InputChatlistDialogFilter, peers []InputPeer) (Updates, error) {
responseData, err := c.MakeRequest(&ChatlistsJoinChatlistUpdatesParams{
Chatlist: chatlist,
@@ -5931,7 +6078,7 @@ func (*ChatlistsLeaveChatlistParams) CRC() uint32 {
return 0x74fae13a
}
-// Delete a folder imported using a [chat folder deep link ยป](https://core.telegram.org/api/links#chat-folder-links)
+// Delete a folder imported using a chat folder deep link ยป
func (c *Client) ChatlistsLeaveChatlist(chatlist *InputChatlistDialogFilter, peers []InputPeer) (Updates, error) {
responseData, err := c.MakeRequest(&ChatlistsLeaveChatlistParams{
Chatlist: chatlist,
@@ -5956,7 +6103,7 @@ func (*ContactsAcceptContactParams) CRC() uint32 {
return 0xf831a20f
}
-// If the [add contact action bar is active](https://core.telegram.org/api/action-bar#add-contact), add that user as contact
+// If the add contact action bar is active, add that user as contact
func (c *Client) ContactsAcceptContact(id InputUser) (Updates, error) {
responseData, err := c.MakeRequest(&ContactsAcceptContactParams{ID: id})
if err != nil {
@@ -6013,7 +6160,7 @@ func (*ContactsBlockParams) FlagIndex() int {
return 0
}
-// Adds a peer to a blocklist, see [here ยป](https://core.telegram.org/api/block) for more info.
+// Adds a peer to a blocklist, see here ยป for more info.
func (c *Client) ContactsBlock(myStoriesFrom bool, id InputPeer) (bool, error) {
responseData, err := c.MakeRequest(&ContactsBlockParams{
ID: id,
@@ -6045,7 +6192,7 @@ func (*ContactsBlockFromRepliesParams) FlagIndex() int {
return 0
}
-// Stop getting notifications about [discussion replies](https://core.telegram.org/api/discussion) of a certain user in `@replies`
+// Stop getting notifications about discussion replies of a certain user in `@replies`
func (c *Client) ContactsBlockFromReplies(deleteMessage, deleteHistory, reportSpam bool, msgID int32) (Updates, error) {
responseData, err := c.MakeRequest(&ContactsBlockFromRepliesParams{
DeleteHistory: deleteHistory,
@@ -6116,7 +6263,7 @@ func (*ContactsEditCloseFriendsParams) CRC() uint32 {
return 0xba6705f0
}
-// Edit the [close friends list, see here ยป](https://core.telegram.org/api/privacy) for more info.
+// Edit the close friends list, see here ยป for more info.
func (c *Client) ContactsEditCloseFriends(id []int64) (bool, error) {
responseData, err := c.MakeRequest(&ContactsEditCloseFriendsParams{ID: id})
if err != nil {
@@ -6156,7 +6303,7 @@ func (*ContactsExportContactTokenParams) CRC() uint32 {
return 0xf8654027
}
-// Generates a [temporary profile link](https://core.telegram.org/api/links#temporary-profile-links) for the currently logged-in user.
+// Generates a temporary profile link for the currently logged-in user.
func (c *Client) ContactsExportContactToken() (*ExportedContactToken, error) {
responseData, err := c.MakeRequest(&ContactsExportContactTokenParams{})
if err != nil {
@@ -6176,7 +6323,7 @@ func (*ContactsGetBirthdaysParams) CRC() uint32 {
return 0xdaeda864
}
-// Fetch all users with birthdays that fall within +1/-1 days, relative to the current day: this method should be invoked by clients every 6-8 hours, and if the result is non-empty, it should be used to appropriately update locally cached birthday information in [user](https://core.telegram.org/constructor/user).`birthday`.
+// Fetch all users with birthdays that fall within +1/-1 days, relative to the current day: this method should be invoked by clients every 6-8 hours, and if the result is non-empty, it should be used to appropriately update locally cached birthday information in user.`birthday`.
func (c *Client) ContactsGetBirthdays() (*ContactsContactBirthdays, error) {
responseData, err := c.MakeRequest(&ContactsGetBirthdaysParams{})
if err != nil {
@@ -6283,7 +6430,7 @@ func (*ContactsGetLocatedParams) FlagIndex() int {
return 0
}
-// Get users and geochats near you, see [here ยป](https://core.telegram.org/api/nearby) for more info.
+// Get users and geochats near you, see here ยป for more info.
func (c *Client) ContactsGetLocated(background bool, geoPoint InputGeoPoint, selfExpires int32) (Updates, error) {
responseData, err := c.MakeRequest(&ContactsGetLocatedParams{
Background: background,
@@ -6307,7 +6454,7 @@ func (*ContactsGetSavedParams) CRC() uint32 {
return 0x82f1e39f
}
-// Get all contacts, requires a [takeout session, see here ยป for more info](https://core.telegram.org/api/takeout).
+// Get all contacts, requires a takeout session, see here ยป for more info.
func (c *Client) ContactsGetSaved() ([]*SavedPhoneContact, error) {
responseData, err := c.MakeRequest(&ContactsGetSavedParams{})
if err != nil {
@@ -6386,7 +6533,7 @@ func (*ContactsImportCardParams) CRC() uint32 {
return 0x4fe196fe
}
-// Returns general information on a user using his previously [exported card](https://core.telegram.orghttps://core.telegram.org/method/contacts.exportCard) as input.
The app may use it to open a conversation without knowing the user's phone number.
+// Returns general information on a user using his previously exported card as input.
The app may use it to open a conversation without knowing the user's phone number.
func (c *Client) ContactsImportCard(exportCard []int32) (User, error) {
responseData, err := c.MakeRequest(&ContactsImportCardParams{ExportCard: exportCard})
if err != nil {
@@ -6408,7 +6555,7 @@ func (*ContactsImportContactTokenParams) CRC() uint32 {
return 0x13005788
}
-// Obtain user info from a [temporary profile link](https://core.telegram.org/api/links#temporary-profile-links).
+// Obtain user info from a temporary profile link.
func (c *Client) ContactsImportContactToken(token string) (User, error) {
responseData, err := c.MakeRequest(&ContactsImportContactTokenParams{Token: token})
if err != nil {
@@ -6473,7 +6620,7 @@ func (*ContactsResetTopPeerRatingParams) CRC() uint32 {
return 0x1ae373ac
}
-// Reset [rating](https://core.telegram.org/api/top-rating) of top peer
+// Reset rating of top peer
func (c *Client) ContactsResetTopPeerRating(category TopPeerCategory, peer InputPeer) (bool, error) {
responseData, err := c.MakeRequest(&ContactsResetTopPeerRatingParams{
Category: category,
@@ -6582,7 +6729,7 @@ func (*ContactsSetBlockedParams) FlagIndex() int {
return 0
}
-// Replace the contents of an entire [blocklist, see here for more info ยป](https://core.telegram.org/api/block).
+// Replace the contents of an entire blocklist, see here for more info ยป.
func (c *Client) ContactsSetBlocked(myStoriesFrom bool, id []InputPeer, limit int32) (bool, error) {
responseData, err := c.MakeRequest(&ContactsSetBlockedParams{
ID: id,
@@ -6608,7 +6755,7 @@ func (*ContactsToggleTopPeersParams) CRC() uint32 {
return 0x8514bdda
}
-// Enable/disable [top peers](https://core.telegram.org/api/top-rating)
+// Enable/disable top peers
func (c *Client) ContactsToggleTopPeers(enabled bool) (bool, error) {
responseData, err := c.MakeRequest(&ContactsToggleTopPeersParams{Enabled: enabled})
if err != nil {
@@ -6635,7 +6782,7 @@ func (*ContactsUnblockParams) FlagIndex() int {
return 0
}
-// Deletes a peer from a blocklist, see [here ยป](https://core.telegram.org/api/block) for more info.
+// Deletes a peer from a blocklist, see here ยป for more info.
func (c *Client) ContactsUnblock(myStoriesFrom bool, id InputPeer) (bool, error) {
responseData, err := c.MakeRequest(&ContactsUnblockParams{
ID: id,
@@ -6660,7 +6807,7 @@ func (*FoldersDeleteFolderParams) CRC() uint32 {
return 0x1c295881
}
-// Delete a [peer folder](https://core.telegram.org/api/folders#peer-folders)
+// Delete a peer folder
func (c *Client) FoldersDeleteFolder(folderID int32) (Updates, error) {
responseData, err := c.MakeRequest(&FoldersDeleteFolderParams{FolderID: folderID})
if err != nil {
@@ -6682,7 +6829,7 @@ func (*FoldersEditPeerFoldersParams) CRC() uint32 {
return 0x6847d0ab
}
-// Edit peers in [peer folder](https://core.telegram.org/api/folders#peer-folders)
+// Edit peers in peer folder
func (c *Client) FoldersEditPeerFolders(folderPeers []*InputFolderPeer) (Updates, error) {
responseData, err := c.MakeRequest(&FoldersEditPeerFoldersParams{FolderPeers: folderPeers})
if err != nil {
@@ -6704,7 +6851,7 @@ func (*FragmentGetCollectibleInfoParams) CRC() uint32 {
return 0xbe1e85ba
}
-// Fetch information about a [fragment collectible, see here ยป](https://core.telegram.org/api/fragment#fetching-info-about-fragment-collectibles) for more info on the full flow.
+// Fetch information about a fragment collectible, see here ยป for more info on the full flow.
func (c *Client) FragmentGetCollectibleInfo(collectible InputCollectible) (*FragmentCollectibleInfo, error) {
responseData, err := c.MakeRequest(&FragmentGetCollectibleInfoParams{Collectible: collectible})
if err != nil {
@@ -6749,7 +6896,7 @@ func (*HelpDismissSuggestionParams) CRC() uint32 {
return 0xf50dbaa1
}
-// Dismiss a [suggestion, see here for more info ยป](https://core.telegram.org/api/config#suggestions).
+// Dismiss a suggestion, see here for more info ยป.
func (c *Client) HelpDismissSuggestion(peer InputPeer, suggestion string) (bool, error) {
responseData, err := c.MakeRequest(&HelpDismissSuggestionParams{
Peer: peer,
@@ -6794,31 +6941,6 @@ func (c *Client) HelpEditUserInfo(userID InputUser, message string, entities []M
return resp, nil
}
-type HelpGetAppChangelogParams struct {
- PrevAppVersion string
-}
-
-func (*HelpGetAppChangelogParams) CRC() uint32 {
- return 0x9010ef6f
-}
-
-/*
-Get changelog of current app.
-Typically, an [updates](https://core.telegram.org/constructor/updates) constructor will be returned, containing one or more [updateServiceNotification](https://core.telegram.org/constructor/updateServiceNotification) updates with app-specific changelogs.
-*/
-func (c *Client) HelpGetAppChangelog(prevAppVersion string) (Updates, error) {
- responseData, err := c.MakeRequest(&HelpGetAppChangelogParams{PrevAppVersion: prevAppVersion})
- if err != nil {
- return nil, errors.Wrap(err, "sending HelpGetAppChangelog")
- }
-
- resp, ok := responseData.(Updates)
- if !ok {
- panic("got invalid response type: " + reflect.TypeOf(responseData).String())
- }
- return resp, nil
-}
-
type HelpGetAppConfigParams struct {
Hash int32
}
@@ -6827,7 +6949,7 @@ func (*HelpGetAppConfigParams) CRC() uint32 {
return 0x61e3f854
}
-// Get app-specific configuration, see [client configuration](https://core.telegram.org/api/config#client-configuration) for more info on the result.
+// Get app-specific configuration, see client configuration for more info on the result.
func (c *Client) HelpGetAppConfig(hash int32) (HelpAppConfig, error) {
responseData, err := c.MakeRequest(&HelpGetAppConfigParams{Hash: hash})
if err != nil {
@@ -6869,7 +6991,7 @@ func (*HelpGetCdnConfigParams) CRC() uint32 {
return 0x52029342
}
-// Get configuration for [CDN](https://core.telegram.org/cdn) file downloads.
+// Get configuration for CDN file downloads.
func (c *Client) HelpGetCdnConfig() (*CdnConfig, error) {
responseData, err := c.MakeRequest(&HelpGetCdnConfigParams{})
if err != nil {
@@ -6937,7 +7059,7 @@ func (*HelpGetDeepLinkInfoParams) CRC() uint32 {
return 0x3fedc75f
}
-// Get info about an unsupported deep link, see [here for more info ยป](https://core.telegram.org/api/links#unsupported-links).
+// Get info about an unsupported deep link, see here for more info ยป.
func (c *Client) HelpGetDeepLinkInfo(path string) (HelpDeepLinkInfo, error) {
responseData, err := c.MakeRequest(&HelpGetDeepLinkInfoParams{Path: path})
if err != nil {
@@ -6999,7 +7121,7 @@ func (*HelpGetPassportConfigParams) CRC() uint32 {
return 0xc661ad08
}
-// Get [passport](https://core.telegram.org/passport) configuration
+// Get passport configuration
func (c *Client) HelpGetPassportConfig(hash int32) (HelpPassportConfig, error) {
responseData, err := c.MakeRequest(&HelpGetPassportConfigParams{Hash: hash})
if err != nil {
@@ -7021,7 +7143,7 @@ func (*HelpGetPeerColorsParams) CRC() uint32 {
return 0xda80f42f
}
-// Get the set of [accent color palettes ยป](https://core.telegram.org/api/colors) that can be used for message accents.
+// Get the set of accent color palettes ยป that can be used for message accents.
func (c *Client) HelpGetPeerColors(hash int32) (HelpPeerColors, error) {
responseData, err := c.MakeRequest(&HelpGetPeerColorsParams{Hash: hash})
if err != nil {
@@ -7043,7 +7165,7 @@ func (*HelpGetPeerProfileColorsParams) CRC() uint32 {
return 0xabcfa9fd
}
-// Get the set of [accent color palettes ยป](https://core.telegram.org/api/colors) that can be used in profile page backgrounds.
+// Get the set of accent color palettes ยป that can be used in profile page backgrounds.
func (c *Client) HelpGetPeerProfileColors(hash int32) (HelpPeerColors, error) {
responseData, err := c.MakeRequest(&HelpGetPeerProfileColorsParams{Hash: hash})
if err != nil {
@@ -7187,7 +7309,7 @@ func (*HelpGetTimezonesListParams) CRC() uint32 {
return 0x49b30240
}
-// Returns timezone information that may be used elsewhere in the API, such as to set [Telegram Business opening hours ยป](https://core.telegram.org/api/business#opening-hours).
+// Returns timezone information that may be used elsewhere in the API, such as to set Telegram Business opening hours ยป.
func (c *Client) HelpGetTimezonesList(hash int32) (HelpTimezonesList, error) {
responseData, err := c.MakeRequest(&HelpGetTimezonesListParams{Hash: hash})
if err != nil {
@@ -7467,7 +7589,7 @@ func (*MessagesAcceptURLAuthParams) FlagIndex() int {
return 0
}
-// Use this to accept a Seamless Telegram Login authorization request, for more info [click here ยป](https://core.telegram.org/api/url-authorization)
+// Use this to accept a Seamless Telegram Login authorization request, for more info click here ยป
func (c *Client) MessagesAcceptURLAuth(params *MessagesAcceptURLAuthParams) (URLAuthResult, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -7539,7 +7661,7 @@ func (*MessagesCheckHistoryImportParams) CRC() uint32 {
return 0x43fe19f3
}
-// Obtains information about a chat export file, generated by a foreign chat app, [click here for more info about imported chats ยป](https://core.telegram.org/api/import).
+// Obtains information about a chat export file, generated by a foreign chat app, click here for more info about imported chats ยป.
func (c *Client) MessagesCheckHistoryImport(importHead string) (*MessagesHistoryImportParsed, error) {
responseData, err := c.MakeRequest(&MessagesCheckHistoryImportParams{ImportHead: importHead})
if err != nil {
@@ -7561,7 +7683,7 @@ func (*MessagesCheckHistoryImportPeerParams) CRC() uint32 {
return 0x5dc60f03
}
-// Check whether chat history exported from another chat app can be [imported into a specific Telegram chat, click here for more info ยป](https://core.telegram.org/api/import).
+// Check whether chat history exported from another chat app can be imported into a specific Telegram chat, click here for more info ยป.
func (c *Client) MessagesCheckHistoryImportPeer(peer InputPeer) (*MessagesCheckedHistoryImportPeer, error) {
responseData, err := c.MakeRequest(&MessagesCheckHistoryImportPeerParams{Peer: peer})
if err != nil {
@@ -7583,7 +7705,7 @@ func (*MessagesCheckQuickReplyShortcutParams) CRC() uint32 {
return 0xf1d0fbd3
}
-// Before offering the user the choice to add a message to a [quick reply shortcut](https://core.telegram.org/api/business#quick-reply-shortcuts), to make sure that none of the limits specified [here ยป](https://core.telegram.org/api/business#quick-reply-shortcuts) were reached.
+// Before offering the user the choice to add a message to a quick reply shortcut, to make sure that none of the limits specified here ยป were reached.
func (c *Client) MessagesCheckQuickReplyShortcut(shortcut string) (bool, error) {
responseData, err := c.MakeRequest(&MessagesCheckQuickReplyShortcutParams{Shortcut: shortcut})
if err != nil {
@@ -7603,7 +7725,7 @@ func (*MessagesClearAllDraftsParams) CRC() uint32 {
return 0x7e58ee9c
}
-// Clear all [drafts](https://core.telegram.org/api/drafts).
+// Clear all drafts.
func (c *Client) MessagesClearAllDrafts() (bool, error) {
responseData, err := c.MakeRequest(&MessagesClearAllDraftsParams{})
if err != nil {
@@ -7623,7 +7745,7 @@ func (*MessagesClearRecentReactionsParams) CRC() uint32 {
return 0x9dfeefb4
}
-// Clear recently used [message reactions](https://core.telegram.org/api/reactions)
+// Clear recently used message reactions
func (c *Client) MessagesClearRecentReactions() (bool, error) {
responseData, err := c.MakeRequest(&MessagesClearRecentReactionsParams{})
if err != nil {
@@ -7678,6 +7800,7 @@ func (*MessagesClickSponsoredMessageParams) FlagIndex() int {
return 0
}
+// Informs the server that the user has interacted with a sponsored message in one of the ways listed here ยป.
func (c *Client) MessagesClickSponsoredMessage(media, fullscreen bool, peer InputPeer, randomID []byte) (bool, error) {
responseData, err := c.MakeRequest(&MessagesClickSponsoredMessageParams{
Fullscreen: fullscreen,
@@ -7696,31 +7819,6 @@ func (c *Client) MessagesClickSponsoredMessage(media, fullscreen bool, peer Inpu
return resp, nil
}
-type MessagesConnectStarRefBotParams struct {
- Peer InputPeer
- Bot InputUser
-}
-
-func (*MessagesConnectStarRefBotParams) CRC() uint32 {
- return 0x7ed5348a
-}
-
-func (c *Client) MessagesConnectStarRefBot(peer InputPeer, bot InputUser) (*ConnectedStarRefBots, error) {
- responseData, err := c.MakeRequest(&MessagesConnectStarRefBotParams{
- Bot: bot,
- Peer: peer,
- })
- if err != nil {
- return nil, errors.Wrap(err, "sending MessagesConnectStarRefBot")
- }
-
- resp, ok := responseData.(*ConnectedStarRefBots)
- if !ok {
- panic("got invalid response type: " + reflect.TypeOf(responseData).String())
- }
- return resp, nil
-}
-
type MessagesCreateChatParams struct {
Users []InputUser
Title string
@@ -7761,7 +7859,7 @@ func (*MessagesDeleteChatParams) CRC() uint32 {
return 0x5bd0ee50
}
-// Delete a [chat](https://core.telegram.org/api/channel)
+// Delete a chat
func (c *Client) MessagesDeleteChat(chatID int64) (bool, error) {
responseData, err := c.MakeRequest(&MessagesDeleteChatParams{ChatID: chatID})
if err != nil {
@@ -7842,7 +7940,7 @@ func (*MessagesDeleteFactCheckParams) CRC() uint32 {
return 0xd1da940c
}
-// Delete a [fact-check](https://core.telegram.org/api/factcheck) from a message.
+// Delete a fact-check from a message.
func (c *Client) MessagesDeleteFactCheck(peer InputPeer, msgID int32) (Updates, error) {
responseData, err := c.MakeRequest(&MessagesDeleteFactCheckParams{
MsgID: msgID,
@@ -7955,7 +8053,7 @@ func (*MessagesDeleteQuickReplyMessagesParams) CRC() uint32 {
return 0xe105e910
}
-// Delete one or more messages from a [quick reply shortcut](https://core.telegram.org/api/business#quick-reply-shortcuts). This will also emit an [updateDeleteQuickReplyMessages](https://core.telegram.org/constructor/updateDeleteQuickReplyMessages) update.
+// Delete one or more messages from a quick reply shortcut. This will also emit an updateDeleteQuickReplyMessages update.
func (c *Client) MessagesDeleteQuickReplyMessages(shortcutID int32, id []int32) (Updates, error) {
responseData, err := c.MakeRequest(&MessagesDeleteQuickReplyMessagesParams{
ID: id,
@@ -7981,8 +8079,8 @@ func (*MessagesDeleteQuickReplyShortcutParams) CRC() uint32 {
}
/*
-Completely delete a [quick reply shortcut](https://core.telegram.org/api/business#quick-reply-shortcuts).
-This will also emit an [updateDeleteQuickReply](https://core.telegram.org/constructor/updateDeleteQuickReply) update to other logged-in sessions (and no [updateDeleteQuickReplyMessages](https://core.telegram.org/constructor/updateDeleteQuickReplyMessages) updates, even if all the messages in the shortcuts are also deleted by this method).
+Completely delete a quick reply shortcut.
+This will also emit an updateDeleteQuickReply update to other logged-in sessions (and no updateDeleteQuickReplyMessages updates, even if all the messages in the shortcuts are also deleted by this method).
*/
func (c *Client) MessagesDeleteQuickReplyShortcut(shortcutID int32) (bool, error) {
responseData, err := c.MakeRequest(&MessagesDeleteQuickReplyShortcutParams{ShortcutID: shortcutID})
@@ -8038,7 +8136,7 @@ func (*MessagesDeleteSavedHistoryParams) FlagIndex() int {
return 0
}
-// Deletes messages forwarded from a specific peer to [saved messages ยป](https://core.telegram.org/api/saved-messages).
+// Deletes messages forwarded from a specific peer to saved messages ยป.
func (c *Client) MessagesDeleteSavedHistory(peer InputPeer, maxID, minDate, maxDate int32) (*MessagesAffectedHistory, error) {
responseData, err := c.MakeRequest(&MessagesDeleteSavedHistoryParams{
MaxDate: maxDate,
@@ -8122,7 +8220,7 @@ func (*MessagesEditChatAboutParams) CRC() uint32 {
return 0xdef60797
}
-// Edit the description of a [group/supergroup/channel](https://core.telegram.org/api/channel).
+// Edit the description of a group/supergroup/channel.
func (c *Client) MessagesEditChatAbout(peer InputPeer, about string) (bool, error) {
responseData, err := c.MakeRequest(&MessagesEditChatAboutParams{
About: about,
@@ -8149,7 +8247,7 @@ func (*MessagesEditChatAdminParams) CRC() uint32 {
return 0xa85bd1c2
}
-// Make a user admin in a [basic group](https://core.telegram.org/api/channel#basic-groups).
+// Make a user admin in a basic group.
func (c *Client) MessagesEditChatAdmin(chatID int64, userID InputUser, isAdmin bool) (bool, error) {
responseData, err := c.MakeRequest(&MessagesEditChatAdminParams{
ChatID: chatID,
@@ -8176,7 +8274,7 @@ func (*MessagesEditChatDefaultBannedRightsParams) CRC() uint32 {
return 0xa5866b41
}
-// Edit the default banned rights of a [channel/supergroup/group](https://core.telegram.org/api/channel).
+// Edit the default banned rights of a channel/supergroup/group.
func (c *Client) MessagesEditChatDefaultBannedRights(peer InputPeer, bannedRights *ChatBannedRights) (Updates, error) {
responseData, err := c.MakeRequest(&MessagesEditChatDefaultBannedRightsParams{
BannedRights: bannedRights,
@@ -8245,37 +8343,6 @@ func (c *Client) MessagesEditChatTitle(chatID int64, title string) (Updates, err
return resp, nil
}
-type MessagesEditConnectedStarRefBotParams struct {
- Revoked bool `tl:"flag:0,encoded_in_bitflags"`
- Peer InputPeer
- Link string
-}
-
-func (*MessagesEditConnectedStarRefBotParams) CRC() uint32 {
- return 0xe4fca4a3
-}
-
-func (*MessagesEditConnectedStarRefBotParams) FlagIndex() int {
- return 0
-}
-
-func (c *Client) MessagesEditConnectedStarRefBot(revoked bool, peer InputPeer, link string) (*ConnectedStarRefBots, error) {
- responseData, err := c.MakeRequest(&MessagesEditConnectedStarRefBotParams{
- Link: link,
- Peer: peer,
- Revoked: revoked,
- })
- if err != nil {
- return nil, errors.Wrap(err, "sending MessagesEditConnectedStarRefBot")
- }
-
- resp, ok := responseData.(*ConnectedStarRefBots)
- if !ok {
- panic("got invalid response type: " + reflect.TypeOf(responseData).String())
- }
- return resp, nil
-}
-
type MessagesEditExportedChatInviteParams struct {
Revoked bool `tl:"flag:2,encoded_in_bitflags"`
Peer InputPeer
@@ -8318,7 +8385,7 @@ func (*MessagesEditFactCheckParams) CRC() uint32 {
return 0x589ee75
}
-// Edit/create a [fact-check](https://core.telegram.org/api/factcheck) on a message.
+// Edit/create a fact-check on a message.
func (c *Client) MessagesEditFactCheck(peer InputPeer, msgID int32, text *TextWithEntities) (Updates, error) {
responseData, err := c.MakeRequest(&MessagesEditFactCheckParams{
MsgID: msgID,
@@ -8413,8 +8480,8 @@ func (*MessagesEditQuickReplyShortcutParams) CRC() uint32 {
}
/*
-Rename a [quick reply shortcut](https://core.telegram.org/api/business#quick-reply-shortcuts).
-This will emit an [updateQuickReplies](https://core.telegram.org/constructor/updateQuickReplies) update to other logged-in sessions.
+Rename a quick reply shortcut.
+This will emit an updateQuickReplies update to other logged-in sessions.
*/
func (c *Client) MessagesEditQuickReplyShortcut(shortcutID int32, shortcut string) (bool, error) {
responseData, err := c.MakeRequest(&MessagesEditQuickReplyShortcutParams{
@@ -8558,25 +8625,6 @@ func (c *Client) MessagesForwardMessages(params *MessagesForwardMessagesParams)
return resp, nil
}
-type MessagesGetAdminedBotsParams struct{}
-
-func (*MessagesGetAdminedBotsParams) CRC() uint32 {
- return 0xb0711d83
-}
-
-func (c *Client) MessagesGetAdminedBots() ([]int32, error) {
- responseData, err := c.MakeRequest(&MessagesGetAdminedBotsParams{})
- if err != nil {
- return nil, errors.Wrap(err, "sending MessagesGetAdminedBots")
- }
-
- resp, ok := responseData.([]int32)
- if !ok {
- panic("got invalid response type: " + reflect.TypeOf(responseData).String())
- }
- return resp, nil
-}
-
type MessagesGetAdminsWithInvitesParams struct {
Peer InputPeer
}
@@ -8628,8 +8676,8 @@ func (*MessagesGetAllDraftsParams) CRC() uint32 {
}
/*
-Return all message [drafts](https://core.telegram.org/api/drafts).
-Returns all the latest [updateDraftMessage](https://core.telegram.org/constructor/updateDraftMessage) updates related to all chats with drafts.
+Return all message drafts.
+Returns all the latest updateDraftMessage updates related to all chats with drafts.
*/
func (c *Client) MessagesGetAllDrafts() (Updates, error) {
responseData, err := c.MakeRequest(&MessagesGetAllDraftsParams{})
@@ -8708,7 +8756,7 @@ func (*MessagesGetAttachMenuBotParams) CRC() uint32 {
return 0x77216192
}
-// Returns attachment menu entry for a [bot mini app that can be launched from the attachment menu ยป](https://core.telegram.org/api/bots/attach)
+// Returns attachment menu entry for a bot mini app that can be launched from the attachment menu ยป
func (c *Client) MessagesGetAttachMenuBot(bot InputUser) (*AttachMenuBotsBot, error) {
responseData, err := c.MakeRequest(&MessagesGetAttachMenuBotParams{Bot: bot})
if err != nil {
@@ -8730,7 +8778,7 @@ func (*MessagesGetAttachMenuBotsParams) CRC() uint32 {
return 0x16fcc2cb
}
-// Returns installed attachment menu [bot mini apps ยป](https://core.telegram.org/api/bots/attach)
+// Returns installed attachment menu bot mini apps ยป
func (c *Client) MessagesGetAttachMenuBots(hash int64) (AttachMenuBots, error) {
responseData, err := c.MakeRequest(&MessagesGetAttachMenuBotsParams{Hash: hash})
if err != nil {
@@ -8774,7 +8822,7 @@ func (*MessagesGetAvailableEffectsParams) CRC() uint32 {
return 0xdea20a39
}
-// Fetch the full list of usable [animated message effects ยป](https://core.telegram.org/api/effects).
+// Fetch the full list of usable animated message effects ยป.
func (c *Client) MessagesGetAvailableEffects(hash int32) (MessagesAvailableEffects, error) {
responseData, err := c.MakeRequest(&MessagesGetAvailableEffectsParams{Hash: hash})
if err != nil {
@@ -8796,7 +8844,7 @@ func (*MessagesGetAvailableReactionsParams) CRC() uint32 {
return 0x18dea0ac
}
-// Obtain available [message reactions ยป](https://core.telegram.org/api/reactions)
+// Obtain available message reactions ยป
func (c *Client) MessagesGetAvailableReactions(hash int32) (MessagesAvailableReactions, error) {
responseData, err := c.MakeRequest(&MessagesGetAvailableReactionsParams{Hash: hash})
if err != nil {
@@ -8819,7 +8867,7 @@ func (*MessagesGetBotAppParams) CRC() uint32 {
return 0x34fdc5c3
}
-// Obtain information about a [direct link Mini App](https://core.telegram.org/api/bots/webapps#direct-link-mini-apps)
+// Obtain information about a direct link Mini App
func (c *Client) MessagesGetBotApp(app InputBotApp, hash int64) (*MessagesBotApp, error) {
responseData, err := c.MakeRequest(&MessagesGetBotAppParams{
App: app,
@@ -8949,64 +8997,6 @@ func (c *Client) MessagesGetCommonChats(userID InputUser, maxID int64, limit int
return resp, nil
}
-type MessagesGetConnectedStarRefBotParams struct {
- Peer InputPeer
- Bot InputUser
-}
-
-func (*MessagesGetConnectedStarRefBotParams) CRC() uint32 {
- return 0xb7d998f0
-}
-
-func (c *Client) MessagesGetConnectedStarRefBot(peer InputPeer, bot InputUser) (*ConnectedStarRefBots, error) {
- responseData, err := c.MakeRequest(&MessagesGetConnectedStarRefBotParams{
- Bot: bot,
- Peer: peer,
- })
- if err != nil {
- return nil, errors.Wrap(err, "sending MessagesGetConnectedStarRefBot")
- }
-
- resp, ok := responseData.(*ConnectedStarRefBots)
- if !ok {
- panic("got invalid response type: " + reflect.TypeOf(responseData).String())
- }
- return resp, nil
-}
-
-type MessagesGetConnectedStarRefBotsParams struct {
- Peer InputPeer
- OffsetDate int32 `tl:"flag:2"`
- OffsetLink string `tl:"flag:2"`
- Limit int32
-}
-
-func (*MessagesGetConnectedStarRefBotsParams) CRC() uint32 {
- return 0x5869a553
-}
-
-func (*MessagesGetConnectedStarRefBotsParams) FlagIndex() int {
- return 0
-}
-
-func (c *Client) MessagesGetConnectedStarRefBots(peer InputPeer, offsetDate int32, offsetLink string, limit int32) (*ConnectedStarRefBots, error) {
- responseData, err := c.MakeRequest(&MessagesGetConnectedStarRefBotsParams{
- Limit: limit,
- OffsetDate: offsetDate,
- OffsetLink: offsetLink,
- Peer: peer,
- })
- if err != nil {
- return nil, errors.Wrap(err, "sending MessagesGetConnectedStarRefBots")
- }
-
- resp, ok := responseData.(*ConnectedStarRefBots)
- if !ok {
- panic("got invalid response type: " + reflect.TypeOf(responseData).String())
- }
- return resp, nil
-}
-
type MessagesGetCustomEmojiDocumentsParams struct {
DocumentID []int64
}
@@ -9015,7 +9005,7 @@ func (*MessagesGetCustomEmojiDocumentsParams) CRC() uint32 {
return 0xd9ab0f54
}
-// Fetch [custom emoji stickers ยป](https://core.telegram.org/api/custom-emoji).
+// Fetch custom emoji stickers ยป.
func (c *Client) MessagesGetCustomEmojiDocuments(documentID []int64) ([]Document, error) {
responseData, err := c.MakeRequest(&MessagesGetCustomEmojiDocumentsParams{DocumentID: documentID})
if err != nil {
@@ -9057,7 +9047,7 @@ func (*MessagesGetDefaultTagReactionsParams) CRC() uint32 {
return 0xbdf93428
}
-// Fetch a default recommended list of [saved message tag reactions](https://core.telegram.org/api/saved-messages#tags).
+// Fetch a default recommended list of saved message tag reactions.
func (c *Client) MessagesGetDefaultTagReactions(hash int64) (MessagesReactions, error) {
responseData, err := c.MakeRequest(&MessagesGetDefaultTagReactionsParams{Hash: hash})
if err != nil {
@@ -9103,7 +9093,7 @@ func (*MessagesGetDialogFiltersParams) CRC() uint32 {
return 0xefd48c89
}
-// Get [folders](https://core.telegram.org/api/folders)
+// Get folders
func (c *Client) MessagesGetDialogFilters() (*MessagesDialogFilters, error) {
responseData, err := c.MakeRequest(&MessagesGetDialogFiltersParams{})
if err != nil {
@@ -9178,7 +9168,7 @@ func (*MessagesGetDiscussionMessageParams) CRC() uint32 {
return 0x446972fd
}
-// Get [discussion message](https://core.telegram.org/api/threads) from the [associated discussion group](https://core.telegram.org/api/discussion) of a channel to show it on top of the comment section, without actually joining the group
+// Get discussion message from the associated discussion group of a channel to show it on top of the comment section, without actually joining the group
func (c *Client) MessagesGetDiscussionMessage(peer InputPeer, msgID int32) (*MessagesDiscussionMessage, error) {
responseData, err := c.MakeRequest(&MessagesGetDiscussionMessageParams{
MsgID: msgID,
@@ -9231,7 +9221,7 @@ func (*MessagesGetEmojiGroupsParams) CRC() uint32 {
return 0x7488ce5b
}
-// Represents a list of [emoji categories](https://core.telegram.org/api/emoji-categories).
+// Represents a list of emoji categories.
func (c *Client) MessagesGetEmojiGroups(hash int32) (MessagesEmojiGroups, error) {
responseData, err := c.MakeRequest(&MessagesGetEmojiGroupsParams{Hash: hash})
if err != nil {
@@ -9253,7 +9243,7 @@ func (*MessagesGetEmojiKeywordsParams) CRC() uint32 {
return 0x35a0e062
}
-// Get localized [emoji keywords ยป](https://core.telegram.org/api/custom-emoji#emoji-keywords).
+// Get localized emoji keywords ยป.
func (c *Client) MessagesGetEmojiKeywords(langCode string) (*EmojiKeywordsDifference, error) {
responseData, err := c.MakeRequest(&MessagesGetEmojiKeywordsParams{LangCode: langCode})
if err != nil {
@@ -9276,7 +9266,7 @@ func (*MessagesGetEmojiKeywordsDifferenceParams) CRC() uint32 {
return 0x1508b6af
}
-// Get changed [emoji keywords ยป](https://core.telegram.org/api/custom-emoji#emoji-keywords).
+// Get changed emoji keywords ยป.
func (c *Client) MessagesGetEmojiKeywordsDifference(langCode string, fromVersion int32) (*EmojiKeywordsDifference, error) {
responseData, err := c.MakeRequest(&MessagesGetEmojiKeywordsDifferenceParams{
FromVersion: fromVersion,
@@ -9301,7 +9291,7 @@ func (*MessagesGetEmojiKeywordsLanguagesParams) CRC() uint32 {
return 0x4e9963b2
}
-// Obtain a list of related languages that must be used when fetching [emoji keyword lists ยป](https://core.telegram.org/api/custom-emoji#emoji-keywords).
+// Obtain a list of related languages that must be used when fetching emoji keyword lists ยป.
func (c *Client) MessagesGetEmojiKeywordsLanguages(langCodes []string) ([]*EmojiLanguage, error) {
responseData, err := c.MakeRequest(&MessagesGetEmojiKeywordsLanguagesParams{LangCodes: langCodes})
if err != nil {
@@ -9323,7 +9313,7 @@ func (*MessagesGetEmojiProfilePhotoGroupsParams) CRC() uint32 {
return 0x21a548f3
}
-// Represents a list of [emoji categories](https://core.telegram.org/api/emoji-categories), to be used when selecting custom emojis to set as [profile picture](https://core.telegram.org/api/files#sticker-profile-pictures).
+// Represents a list of emoji categories, to be used when selecting custom emojis to set as profile picture.
func (c *Client) MessagesGetEmojiProfilePhotoGroups(hash int32) (MessagesEmojiGroups, error) {
responseData, err := c.MakeRequest(&MessagesGetEmojiProfilePhotoGroupsParams{Hash: hash})
if err != nil {
@@ -9345,7 +9335,7 @@ func (*MessagesGetEmojiStatusGroupsParams) CRC() uint32 {
return 0x2ecd56cd
}
-// Represents a list of [emoji categories](https://core.telegram.org/api/emoji-categories), to be used when selecting custom emojis to set as [custom emoji status](https://core.telegram.org/api).
+// Represents a list of emoji categories, to be used when selecting custom emojis to set as custom emoji status.
func (c *Client) MessagesGetEmojiStatusGroups(hash int32) (MessagesEmojiGroups, error) {
responseData, err := c.MakeRequest(&MessagesGetEmojiStatusGroupsParams{Hash: hash})
if err != nil {
@@ -9367,7 +9357,7 @@ func (*MessagesGetEmojiStickerGroupsParams) CRC() uint32 {
return 0x1dd840f5
}
-// Represents a list of [emoji categories](https://core.telegram.org/api/emoji-categories), to be used when choosing a sticker.
+// Represents a list of emoji categories, to be used when choosing a sticker.
func (c *Client) MessagesGetEmojiStickerGroups(hash int32) (MessagesEmojiGroups, error) {
responseData, err := c.MakeRequest(&MessagesGetEmojiStickerGroupsParams{Hash: hash})
if err != nil {
@@ -9389,7 +9379,7 @@ func (*MessagesGetEmojiStickersParams) CRC() uint32 {
return 0xfbfca18f
}
-// Gets the list of currently installed [custom emoji stickersets](https://core.telegram.org/api/custom-emoji).
+// Gets the list of currently installed custom emoji stickersets.
func (c *Client) MessagesGetEmojiStickers(hash int64) (MessagesAllStickers, error) {
responseData, err := c.MakeRequest(&MessagesGetEmojiStickersParams{Hash: hash})
if err != nil {
@@ -9411,7 +9401,7 @@ func (*MessagesGetEmojiURLParams) CRC() uint32 {
return 0xd5b10c26
}
-// Returns an HTTP URL which can be used to automatically log in into translation platform and suggest new [emoji keywords ยป](https://core.telegram.org/api/custom-emoji#emoji-keywords). The URL will be valid for 30 seconds after generation.
+// Returns an HTTP URL which can be used to automatically log in into translation platform and suggest new emoji keywords ยป. The URL will be valid for 30 seconds after generation.
func (c *Client) MessagesGetEmojiURL(langCode string) (*EmojiURL, error) {
responseData, err := c.MakeRequest(&MessagesGetEmojiURLParams{LangCode: langCode})
if err != nil {
@@ -9491,7 +9481,7 @@ func (*MessagesGetExtendedMediaParams) CRC() uint32 {
return 0x84f80814
}
-// Fetch updated information about [paid media, see here ยป](https://core.telegram.org/api/paid-media) for the full flow.
+// Fetch updated information about paid media, see here ยป for the full flow.
func (c *Client) MessagesGetExtendedMedia(peer InputPeer, id []int32) (Updates, error) {
responseData, err := c.MakeRequest(&MessagesGetExtendedMediaParams{
ID: id,
@@ -9517,7 +9507,7 @@ func (*MessagesGetFactCheckParams) CRC() uint32 {
return 0xb9cdc5ee
}
-// Fetch one or more [factchecks, see here ยป](https://core.telegram.org/api/factcheck) for the full flow.
+// Fetch one or more factchecks, see here ยป for the full flow.
func (c *Client) MessagesGetFactCheck(peer InputPeer, msgID []int32) ([]*FactCheck, error) {
responseData, err := c.MakeRequest(&MessagesGetFactCheckParams{
MsgID: msgID,
@@ -9608,7 +9598,7 @@ func (*MessagesGetFullChatParams) CRC() uint32 {
return 0xaeb00b34
}
-// Get full info about a [basic group](https://core.telegram.org/api/channel#basic-groups).
+// Get full info about a basic group.
func (c *Client) MessagesGetFullChat(chatID int64) (*MessagesChatFull, error) {
responseData, err := c.MakeRequest(&MessagesGetFullChatParams{ChatID: chatID})
if err != nil {
@@ -9799,7 +9789,7 @@ func (*MessagesGetMessageReactionsListParams) FlagIndex() int {
return 0
}
-// Get [message reaction](https://core.telegram.org/api/reactions) list, along with the sender of each reaction.
+// Get message reaction list, along with the sender of each reaction.
func (c *Client) MessagesGetMessageReactionsList(params *MessagesGetMessageReactionsListParams) (*MessagesMessageReactionsList, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -9822,7 +9812,7 @@ func (*MessagesGetMessageReadParticipantsParams) CRC() uint32 {
return 0x31c1c44f
}
-// Get which users read a specific message: only available for groups and supergroups with less than `chat_read_mark_size_threshold` members, read receipts will be stored for `chat_read_mark_expire_period` seconds after the message was sent, see [client configuration for more info ยป](https://core.telegram.org/api/config#client-configuration).
+// Get which users read a specific message: only available for groups and supergroups with less than `chat_read_mark_size_threshold` members, read receipts will be stored for `chat_read_mark_expire_period` seconds after the message was sent, see client configuration for more info ยป.
func (c *Client) MessagesGetMessageReadParticipants(peer InputPeer, msgID int32) ([]*ReadParticipantDate, error) {
responseData, err := c.MakeRequest(&MessagesGetMessageReadParticipantsParams{
MsgID: msgID,
@@ -9870,7 +9860,7 @@ func (*MessagesGetMessagesReactionsParams) CRC() uint32 {
return 0x8bba90e6
}
-// Get [message reactions ยป](https://core.telegram.org/api/reactions)
+// Get message reactions ยป
func (c *Client) MessagesGetMessagesReactions(peer InputPeer, id []int32) (Updates, error) {
responseData, err := c.MakeRequest(&MessagesGetMessagesReactionsParams{
ID: id,
@@ -9897,7 +9887,7 @@ func (*MessagesGetMessagesViewsParams) CRC() uint32 {
return 0x5784d3e1
}
-// Get and increase the view counter of a message sent or forwarded from a [channel](https://core.telegram.org/api/channel)
+// Get and increase the view counter of a message sent or forwarded from a channel
func (c *Client) MessagesGetMessagesViews(peer InputPeer, id []int32, increment bool) (*MessagesMessageViews, error) {
responseData, err := c.MakeRequest(&MessagesGetMessagesViewsParams{
ID: id,
@@ -9924,7 +9914,7 @@ func (*MessagesGetMyStickersParams) CRC() uint32 {
return 0xd0b5e1fc
}
-// Fetch all [stickersets ยป](https://core.telegram.org/api/stickers) owned by the current user.
+// Fetch all stickersets ยป owned by the current user.
func (c *Client) MessagesGetMyStickers(offsetID int64, limit int32) (*MessagesMyStickers, error) {
responseData, err := c.MakeRequest(&MessagesGetMyStickersParams{
Limit: limit,
@@ -10023,6 +10013,7 @@ func (*MessagesGetPaidReactionPrivacyParams) CRC() uint32 {
return 0x472455aa
}
+// Fetches an updatePaidReactionPrivacy update with the current default paid reaction privacy, see here ยป for more info.
func (c *Client) MessagesGetPaidReactionPrivacy() (Updates, error) {
responseData, err := c.MakeRequest(&MessagesGetPaidReactionPrivacyParams{})
if err != nil {
@@ -10108,7 +10099,7 @@ func (*MessagesGetPinnedSavedDialogsParams) CRC() uint32 {
return 0xd63d94e0
}
-// Get pinned [saved dialogs, see here ยป](https://core.telegram.org/api/saved-messages) for more info.
+// Get pinned saved dialogs, see here ยป for more info.
func (c *Client) MessagesGetPinnedSavedDialogs() (MessagesSavedDialogs, error) {
responseData, err := c.MakeRequest(&MessagesGetPinnedSavedDialogsParams{})
if err != nil {
@@ -10187,6 +10178,25 @@ func (*MessagesGetPreparedInlineMessageParams) CRC() uint32 {
return 0x857ebdb8
}
+/*
+
+messages.preparedInlineMessage#ff57708d query_id:long result:BotInlineResult peer_types:Vector<InlineQueryPeerType> cache_time:int users:Vector<User> = messages.PreparedInlineMessage;
+---functions---
+messages.getPreparedInlineMessage#857ebdb8 bot:InputUser id:string = messages.PreparedInlineMessage;
+*/
func (c *Client) MessagesGetPreparedInlineMessage(bot InputUser, id string) (*MessagesPreparedInlineMessage, error) {
responseData, err := c.MakeRequest(&MessagesGetPreparedInlineMessageParams{
Bot: bot,
@@ -10211,7 +10221,7 @@ func (*MessagesGetQuickRepliesParams) CRC() uint32 {
return 0xd483f2a8
}
-// Fetch basic info about all existing [quick reply shortcuts](https://core.telegram.org/api/business#quick-reply-shortcuts).
+// Fetch basic info about all existing quick reply shortcuts.
func (c *Client) MessagesGetQuickReplies(hash int64) (MessagesQuickReplies, error) {
responseData, err := c.MakeRequest(&MessagesGetQuickRepliesParams{Hash: hash})
if err != nil {
@@ -10239,7 +10249,7 @@ func (*MessagesGetQuickReplyMessagesParams) FlagIndex() int {
return 0
}
-// Fetch (a subset or all) messages in a [quick reply shortcut ยป](https://core.telegram.org/api/business#quick-reply-shortcuts).
+// Fetch (a subset or all) messages in a quick reply shortcut ยป.
func (c *Client) MessagesGetQuickReplyMessages(shortcutID int32, id []int32, hash int64) (MessagesMessages, error) {
responseData, err := c.MakeRequest(&MessagesGetQuickReplyMessagesParams{
Hash: hash,
@@ -10294,7 +10304,7 @@ func (*MessagesGetRecentReactionsParams) CRC() uint32 {
return 0x39461db2
}
-// Get recently used [message reactions](https://core.telegram.org/api/reactions)
+// Get recently used message reactions
func (c *Client) MessagesGetRecentReactions(limit int32, hash int64) (MessagesReactions, error) {
responseData, err := c.MakeRequest(&MessagesGetRecentReactionsParams{
Hash: hash,
@@ -10388,7 +10398,7 @@ func (*MessagesGetSavedDialogsParams) FlagIndex() int {
return 0
}
-// Returns the current saved dialog list, see [here ยป](https://core.telegram.org/api/saved-messages) for more info.
+// Returns the current saved dialog list, see here ยป for more info.
func (c *Client) MessagesGetSavedDialogs(params *MessagesGetSavedDialogsParams) (MessagesSavedDialogs, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -10439,7 +10449,7 @@ func (*MessagesGetSavedHistoryParams) CRC() uint32 {
return 0x3d9a414d
}
-// Returns [saved messages ยป](https://core.telegram.org/api/saved-messages) forwarded from a specific peer
+// Returns saved messages ยป forwarded from a specific peer
func (c *Client) MessagesGetSavedHistory(params *MessagesGetSavedHistoryParams) (MessagesMessages, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -10466,7 +10476,7 @@ func (*MessagesGetSavedReactionTagsParams) FlagIndex() int {
return 0
}
-// Fetch the full list of [saved message tags](https://core.telegram.org/api/saved-messages#tags) created by the user.
+// Fetch the full list of saved message tags created by the user.
func (c *Client) MessagesGetSavedReactionTags(peer InputPeer, hash int64) (MessagesSavedReactionTags, error) {
responseData, err := c.MakeRequest(&MessagesGetSavedReactionTagsParams{
Hash: hash,
@@ -10550,7 +10560,7 @@ func (*MessagesGetSearchCountersParams) FlagIndex() int {
return 0
}
-// Get the number of results that would be found by a [messages.search](https://core.telegram.org/method/messages.search) call with the same parameters
+// Get the number of results that would be found by a messages.search call with the same parameters
func (c *Client) MessagesGetSearchCounters(peer, savedPeerID InputPeer, topMsgID int32, filters []MessagesFilter) ([]*MessagesSearchCounter, error) {
responseData, err := c.MakeRequest(&MessagesGetSearchCountersParams{
Filters: filters,
@@ -10657,6 +10667,7 @@ func (*MessagesGetSponsoredMessagesParams) CRC() uint32 {
return 0x9bd2f439
}
+// Get a list of sponsored messages for a peer, see here ยป for more info.
func (c *Client) MessagesGetSponsoredMessages(peer InputPeer) (MessagesSponsoredMessages, error) {
responseData, err := c.MakeRequest(&MessagesGetSponsoredMessagesParams{Peer: peer})
if err != nil {
@@ -10760,7 +10771,7 @@ func (*MessagesGetSuggestedDialogFiltersParams) CRC() uint32 {
return 0xa29cd42c
}
-// Get [suggested folders](https://core.telegram.org/api/folders)
+// Get suggested folders
func (c *Client) MessagesGetSuggestedDialogFilters() ([]*DialogFilterSuggested, error) {
responseData, err := c.MakeRequest(&MessagesGetSuggestedDialogFiltersParams{})
if err != nil {
@@ -10774,35 +10785,6 @@ func (c *Client) MessagesGetSuggestedDialogFilters() ([]*DialogFilterSuggested,
return resp, nil
}
-type MessagesGetSuggestedStarRefBotsParams struct {
- OrderByRevenue bool `tl:"flag:0,encoded_in_bitflags"`
- OrderByDate bool `tl:"flag:1,encoded_in_bitflags"`
- Peer InputPeer
- Offset string
- Limit int32
-}
-
-func (*MessagesGetSuggestedStarRefBotsParams) CRC() uint32 {
- return 0xd6b48f7
-}
-
-func (*MessagesGetSuggestedStarRefBotsParams) FlagIndex() int {
- return 0
-}
-
-func (c *Client) MessagesGetSuggestedStarRefBots(params *MessagesGetSuggestedStarRefBotsParams) (*SuggestedStarRefBots, error) {
- responseData, err := c.MakeRequest(params)
- if err != nil {
- return nil, errors.Wrap(err, "sending MessagesGetSuggestedStarRefBots")
- }
-
- resp, ok := responseData.(*SuggestedStarRefBots)
- if !ok {
- panic("got invalid response type: " + reflect.TypeOf(responseData).String())
- }
- return resp, nil
-}
-
type MessagesGetTopReactionsParams struct {
Limit int32
Hash int64
@@ -10812,7 +10794,7 @@ func (*MessagesGetTopReactionsParams) CRC() uint32 {
return 0xbb8125ba
}
-// Got popular [message reactions](https://core.telegram.org/api/reactions)
+// Got popular message reactions
func (c *Client) MessagesGetTopReactions(limit int32, hash int64) (MessagesReactions, error) {
responseData, err := c.MakeRequest(&MessagesGetTopReactionsParams{
Hash: hash,
@@ -10902,7 +10884,7 @@ func (*MessagesGetWebPageParams) CRC() uint32 {
return 0x8d9692a3
}
-// Get [instant view](https://core.telegram.orghttps://instantview.telegram.org) page
+// Get instant view page
func (c *Client) MessagesGetWebPage(url string, hash int32) (*MessagesWebPage, error) {
responseData, err := c.MakeRequest(&MessagesGetWebPageParams{
Hash: hash,
@@ -10990,7 +10972,7 @@ func (*MessagesHideAllChatJoinRequestsParams) FlagIndex() int {
return 0
}
-// Dismiss or approve all [join requests](https://core.telegram.org/api/invites#join-requests) related to a specific chat or channel.
+// Dismiss or approve all join requests related to a specific chat or channel.
func (c *Client) MessagesHideAllChatJoinRequests(approved bool, peer InputPeer, link string) (Updates, error) {
responseData, err := c.MakeRequest(&MessagesHideAllChatJoinRequestsParams{
Approved: approved,
@@ -11022,7 +11004,7 @@ func (*MessagesHideChatJoinRequestParams) FlagIndex() int {
return 0
}
-// Dismiss or approve a chat [join request](https://core.telegram.org/api/invites#join-requests) related to a specific chat or channel.
+// Dismiss or approve a chat join request related to a specific chat or channel.
func (c *Client) MessagesHideChatJoinRequest(approved bool, peer InputPeer, userID InputUser) (Updates, error) {
responseData, err := c.MakeRequest(&MessagesHideChatJoinRequestParams{
Approved: approved,
@@ -11048,7 +11030,7 @@ func (*MessagesHidePeerSettingsBarParams) CRC() uint32 {
return 0x4facb138
}
-// Should be called after the user hides the [report spam/add as contact bar](https://core.telegram.org/api/action-bar) of a new chat, effectively prevents the user from executing the actions specified in the [action bar ยป](https://core.telegram.org/api/action-bar).
+// Should be called after the user hides the report spam/add as contact bar of a new chat, effectively prevents the user from executing the actions specified in the action bar ยป.
func (c *Client) MessagesHidePeerSettingsBar(peer InputPeer) (bool, error) {
responseData, err := c.MakeRequest(&MessagesHidePeerSettingsBarParams{Peer: peer})
if err != nil {
@@ -11094,7 +11076,7 @@ func (*MessagesInitHistoryImportParams) CRC() uint32 {
return 0x34090c3b
}
-// Import chat history from a foreign chat app into a specific Telegram chat, [click here for more info about imported chats ยป](https://core.telegram.org/api/import).
+// Import chat history from a foreign chat app into a specific Telegram chat, click here for more info about imported chats ยป.
func (c *Client) MessagesInitHistoryImport(peer InputPeer, file InputFile, mediaCount int32) (*MessagesHistoryImport, error) {
responseData, err := c.MakeRequest(&MessagesInitHistoryImportParams{
File: file,
@@ -11176,7 +11158,7 @@ func (*MessagesMigrateChatParams) CRC() uint32 {
return 0xa2875319
}
-// Turn a [basic group into a supergroup](https://core.telegram.org/api/channel#migration)
+// Turn a basic group into a supergroup
func (c *Client) MessagesMigrateChat(chatID int64) (Updates, error) {
responseData, err := c.MakeRequest(&MessagesMigrateChatParams{ChatID: chatID})
if err != nil {
@@ -11232,7 +11214,7 @@ func (*MessagesRateTranscribedAudioParams) CRC() uint32 {
return 0x7f1d072f
}
-// Rate [transcribed voice message](https://core.telegram.org/api/transcribe)
+// Rate transcribed voice message
func (c *Client) MessagesRateTranscribedAudio(peer InputPeer, msgID int32, transcriptionID int64, good bool) (bool, error) {
responseData, err := c.MakeRequest(&MessagesRateTranscribedAudioParams{
Good: good,
@@ -11261,7 +11243,7 @@ func (*MessagesReadDiscussionParams) CRC() uint32 {
return 0xf731a9f4
}
-// Mark a [thread](https://core.telegram.org/api/threads) as read
+// Mark a thread as read
func (c *Client) MessagesReadDiscussion(peer InputPeer, msgID, readMaxID int32) (bool, error) {
responseData, err := c.MakeRequest(&MessagesReadDiscussionParams{
MsgID: msgID,
@@ -11418,7 +11400,7 @@ func (*MessagesReadReactionsParams) FlagIndex() int {
return 0
}
-// Mark [message reactions ยป](https://core.telegram.org/api/reactions) as read
+// Mark message reactions ยป as read
func (c *Client) MessagesReadReactions(peer InputPeer, topMsgID int32) (*MessagesAffectedHistory, error) {
responseData, err := c.MakeRequest(&MessagesReadReactionsParams{
Peer: peer,
@@ -11527,7 +11509,7 @@ func (*MessagesReorderPinnedSavedDialogsParams) FlagIndex() int {
return 0
}
-// Reorder pinned [saved message dialogs ยป](https://core.telegram.org/api/saved-messages).
+// Reorder pinned saved message dialogs ยป.
func (c *Client) MessagesReorderPinnedSavedDialogs(force bool, order []InputDialogPeer) (bool, error) {
responseData, err := c.MakeRequest(&MessagesReorderPinnedSavedDialogsParams{
Force: force,
@@ -11552,7 +11534,7 @@ func (*MessagesReorderQuickRepliesParams) CRC() uint32 {
return 0x60331907
}
-// Reorder [quick reply shortcuts](https://core.telegram.org/api/business#quick-reply-shortcuts).
+// Reorder quick reply shortcuts.
func (c *Client) MessagesReorderQuickReplies(order []int32) (bool, error) {
responseData, err := c.MakeRequest(&MessagesReorderQuickRepliesParams{Order: order})
if err != nil {
@@ -11660,7 +11642,7 @@ func (*MessagesReportReactionParams) CRC() uint32 {
return 0x3f64c076
}
-// Report a [message reaction](https://core.telegram.org/api/reactions)
+// Report a message reaction
func (c *Client) MessagesReportReaction(peer InputPeer, id int32, reactionPeer InputPeer) (bool, error) {
responseData, err := c.MakeRequest(&MessagesReportReactionParams{
ID: id,
@@ -11686,7 +11668,7 @@ func (*MessagesReportSpamParams) CRC() uint32 {
return 0xcf1592db
}
-// Report a new incoming chat for spam, if the [peer settings](https://core.telegram.org/constructor/peerSettings) of the chat allow us to do that
+// Report a new incoming chat for spam, if the peer settings of the chat allow us to do that
func (c *Client) MessagesReportSpam(peer InputPeer) (bool, error) {
responseData, err := c.MakeRequest(&MessagesReportSpamParams{Peer: peer})
if err != nil {
@@ -11710,6 +11692,7 @@ func (*MessagesReportSponsoredMessageParams) CRC() uint32 {
return 0x1af3dbb8
}
+// Report a sponsored message ยป, see here ยป for more info on the full flow.
func (c *Client) MessagesReportSponsoredMessage(peer InputPeer, randomID, option []byte) (ChannelsSponsoredMessageReportResult, error) {
responseData, err := c.MakeRequest(&MessagesReportSponsoredMessageParams{
Option: option,
@@ -11746,7 +11729,7 @@ func (*MessagesRequestAppWebViewParams) FlagIndex() int {
return 0
}
-// Open a [bot mini app](https://core.telegram.org/bots/webapps) from a [direct Mini App deep link](https://core.telegram.org/api/links#direct-mini-app-links), sending over user information after user confirmation.
+// Open a bot mini app from a direct Mini App deep link, sending over user information after user confirmation.
func (c *Client) MessagesRequestAppWebView(params *MessagesRequestAppWebViewParams) (*WebViewResultURL, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -11806,7 +11789,7 @@ func (*MessagesRequestMainWebViewParams) FlagIndex() int {
return 0
}
-// Open a [Main Mini App](https://core.telegram.org/api/bots/webapps#main-mini-apps).
+// Open a Main Mini App.
func (c *Client) MessagesRequestMainWebView(params *MessagesRequestMainWebViewParams) (*WebViewResultURL, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -11840,7 +11823,7 @@ func (*MessagesRequestSimpleWebViewParams) FlagIndex() int {
return 0
}
-// Open a [bot mini app](https://core.telegram.org/api/bots/webapps).
+// Open a bot mini app.
func (c *Client) MessagesRequestSimpleWebView(params *MessagesRequestSimpleWebViewParams) (*WebViewResultURL, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -11869,7 +11852,7 @@ func (*MessagesRequestURLAuthParams) FlagIndex() int {
return 0
}
-// Get more info about a Seamless Telegram Login authorization request, for more info [click here ยป](https://core.telegram.org/api/url-authorization)
+// Get more info about a Seamless Telegram Login authorization request, for more info click here ยป
func (c *Client) MessagesRequestURLAuth(peer InputPeer, msgID, buttonID int32, url string) (URLAuthResult, error) {
responseData, err := c.MakeRequest(&MessagesRequestURLAuthParams{
ButtonID: buttonID,
@@ -11911,7 +11894,7 @@ func (*MessagesRequestWebViewParams) FlagIndex() int {
return 0
}
-// Open a [bot mini app](https://core.telegram.org/bots/webapps), sending over user information after user confirmation.
+// Open a bot mini app, sending over user information after user confirmation.
func (c *Client) MessagesRequestWebView(params *MessagesRequestWebViewParams) (*WebViewResultURL, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -11970,7 +11953,7 @@ func (*MessagesSaveDraftParams) FlagIndex() int {
return 0
}
-// Save a message [draft](https://core.telegram.org/api/drafts) associated to a chat.
+// Save a message draft associated to a chat.
func (c *Client) MessagesSaveDraft(params *MessagesSaveDraftParams) (bool, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -12024,6 +12007,25 @@ func (*MessagesSavePreparedInlineMessageParams) FlagIndex() int {
return 0
}
+/*
+
+messages.botPreparedInlineMessage#8ecf0511 id:string expire_date:int = messages.BotPreparedInlineMessage;
+---functions---
+messages.savePreparedInlineMessage#f21f7f2f flags:# result:InputBotInlineResult user_id:InputUser peer_types:flags.0?Vector<InlineQueryPeerType> = messages.BotPreparedInlineMessage;
+*/
func (c *Client) MessagesSavePreparedInlineMessage(result InputBotInlineResult, userID InputUser, peerTypes []InlineQueryPeerType) (*MessagesBotPreparedInlineMessage, error) {
responseData, err := c.MakeRequest(&MessagesSavePreparedInlineMessageParams{
PeerTypes: peerTypes,
@@ -12122,7 +12124,7 @@ func (*MessagesSearchCustomEmojiParams) CRC() uint32 {
return 0x2c11c0d7
}
-// Look for [custom emojis](https://core.telegram.org/api/custom-emoji) associated to a UTF8 emoji
+// Look for custom emojis associated to a UTF8 emoji
func (c *Client) MessagesSearchCustomEmoji(emoticon string, hash int64) (EmojiList, error) {
responseData, err := c.MakeRequest(&MessagesSearchCustomEmojiParams{
Emoticon: emoticon,
@@ -12153,7 +12155,7 @@ func (*MessagesSearchEmojiStickerSetsParams) FlagIndex() int {
return 0
}
-// Search for [custom emoji stickersets ยป](https://core.telegram.org/api/custom-emoji)
+// Search for custom emoji stickersets ยป
func (c *Client) MessagesSearchEmojiStickerSets(excludeFeatured bool, q string, hash int64) (MessagesFoundStickerSets, error) {
responseData, err := c.MakeRequest(&MessagesSearchEmojiStickerSetsParams{
ExcludeFeatured: excludeFeatured,
@@ -12272,6 +12274,7 @@ func (c *Client) MessagesSearchStickerSets(excludeFeatured bool, q string, hash
type MessagesSearchStickersParams struct {
Emojis bool `tl:"flag:0,encoded_in_bitflags"`
Q string
+ Emoticon string
LangCode []string
Offset int32
Limit int32
@@ -12286,6 +12289,26 @@ func (*MessagesSearchStickersParams) FlagIndex() int {
return 0
}
+/*
+
+messages.foundStickersNotModified#6010c534 flags:# next_offset:flags.0?int = messages.FoundStickers;
+messages.foundStickers#82c9e290 flags:# next_offset:flags.0?int hash:long stickers:Vector<Document> = messages.FoundStickers;
+---functions---
+messages.searchStickers#29b1c66a flags:# emojis:flags.0?true q:string emoticon:string lang_code:Vector<string> offset:int limit:int hash:long = messages.FoundStickers;
+*/
func (c *Client) MessagesSearchStickers(params *MessagesSearchStickersParams) (MessagesFoundStickers, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -12310,7 +12333,7 @@ func (*MessagesSendBotRequestedPeerParams) CRC() uint32 {
return 0x91b2d060
}
-// Send one or more chosen peers, as requested by a [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer) button.
+// Send one or more chosen peers, as requested by a keyboardButtonRequestPeer button.
func (c *Client) MessagesSendBotRequestedPeer(peer InputPeer, msgID, buttonID int32, requestedPeers []InputPeer) (Updates, error) {
responseData, err := c.MakeRequest(&MessagesSendBotRequestedPeerParams{
ButtonID: buttonID,
@@ -12463,7 +12486,7 @@ func (*MessagesSendInlineBotResultParams) FlagIndex() int {
return 0
}
-// Send a result obtained using [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults).
+// Send a result obtained using messages.getInlineBotResults.
func (c *Client) MessagesSendInlineBotResult(params *MessagesSendInlineBotResultParams) (Updates, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -12588,7 +12611,7 @@ func (*MessagesSendMultiMediaParams) FlagIndex() int {
return 0
}
-// Send an [album or grouped media](https://core.telegram.org/api/files#albums-grouped-media)
+// Send an album or grouped media
func (c *Client) MessagesSendMultiMedia(params *MessagesSendMultiMediaParams) (Updates, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -12618,6 +12641,7 @@ func (*MessagesSendPaidReactionParams) FlagIndex() int {
return 0
}
+// Sends one or more paid Telegram Star reactions ยป, transferring Telegram Stars ยป to a channel's balance.
func (c *Client) MessagesSendPaidReaction(params *MessagesSendPaidReactionParams) (Updates, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -12642,7 +12666,7 @@ func (*MessagesSendQuickReplyMessagesParams) CRC() uint32 {
return 0x6c750de1
}
-// Send a [quick reply shortcut ยป](https://core.telegram.org/api/business#quick-reply-shortcuts).
+// Send a quick reply shortcut ยป.
func (c *Client) MessagesSendQuickReplyMessages(peer InputPeer, shortcutID int32, id []int32, randomID []int64) (Updates, error) {
responseData, err := c.MakeRequest(&MessagesSendQuickReplyMessagesParams{
ID: id,
@@ -12755,7 +12779,7 @@ func (*MessagesSendVoteParams) CRC() uint32 {
return 0x10ea6184
}
-// Vote in a [poll](https://core.telegram.org/constructor/poll)
+// Vote in a poll
func (c *Client) MessagesSendVote(peer InputPeer, msgID int32, options [][]byte) (Updates, error) {
responseData, err := c.MakeRequest(&MessagesSendVoteParams{
MsgID: msgID,
@@ -12784,7 +12808,7 @@ func (*MessagesSendWebViewDataParams) CRC() uint32 {
return 0xdc0242c8
}
-// Used by the user to relay data from an opened [reply keyboard bot mini app](https://core.telegram.org/api/bots/webapps) to the bot that owns it.
+// Used by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it.
func (c *Client) MessagesSendWebViewData(bot InputUser, randomID int64, buttonText, data string) (Updates, error) {
responseData, err := c.MakeRequest(&MessagesSendWebViewDataParams{
Bot: bot,
@@ -12812,7 +12836,7 @@ func (*MessagesSendWebViewResultMessageParams) CRC() uint32 {
return 0xa4314f5
}
-// Terminate webview interaction started with [messages.requestWebView](https://core.telegram.org/method/messages.requestWebView), sending the specified message to the chat on behalf of the user.
+// Terminate webview interaction started with messages.requestWebView, sending the specified message to the chat on behalf of the user.
func (c *Client) MessagesSendWebViewResultMessage(botQueryID string, result InputBotInlineResult) (*WebViewMessageSent, error) {
responseData, err := c.MakeRequest(&MessagesSendWebViewResultMessageParams{
BotQueryID: botQueryID,
@@ -12874,7 +12898,7 @@ func (*MessagesSetBotPrecheckoutResultsParams) FlagIndex() int {
}
/*
-Once the user has confirmed their payment and shipping details, the bot receives an [updateBotPrecheckoutQuery](https://core.telegram.org/constructor/updateBotPrecheckoutQuery) update.
+Once the user has confirmed their payment and shipping details, the bot receives an updateBotPrecheckoutQuery update.
Use this method to respond to such pre-checkout queries.
Note: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent.
*/
@@ -12909,7 +12933,7 @@ func (*MessagesSetBotShippingResultsParams) FlagIndex() int {
return 0
}
-// If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an [updateBotShippingQuery](https://core.telegram.org/constructor/updateBotShippingQuery) update. Use this method to reply to shipping queries.
+// If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an updateBotShippingQuery update. Use this method to reply to shipping queries.
func (c *Client) MessagesSetBotShippingResults(queryID int64, error string, shippingOptions []*ShippingOption) (bool, error) {
responseData, err := c.MakeRequest(&MessagesSetBotShippingResultsParams{
Error: error,
@@ -12942,7 +12966,7 @@ func (*MessagesSetChatAvailableReactionsParams) FlagIndex() int {
return 0
}
-// Change the set of [message reactions ยป](https://core.telegram.org/api/reactions) that can be used in a certain group, supergroup or channel
+// Change the set of message reactions ยป that can be used in a certain group, supergroup or channel
func (c *Client) MessagesSetChatAvailableReactions(peer InputPeer, availableReactions ChatReactions, reactionsLimit int32, paidEnabled bool) (Updates, error) {
responseData, err := c.MakeRequest(&MessagesSetChatAvailableReactionsParams{
AvailableReactions: availableReactions,
@@ -13004,7 +13028,7 @@ func (*MessagesSetChatWallPaperParams) FlagIndex() int {
return 0
}
-// Set a custom [wallpaper ยป](https://core.telegram.org/api/wallpapers) in a specific private chat with another user.
+// Set a custom wallpaper ยป in a specific private chat with another user.
func (c *Client) MessagesSetChatWallPaper(params *MessagesSetChatWallPaperParams) (Updates, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -13222,7 +13246,7 @@ func (*MessagesSetTypingParams) FlagIndex() int {
return 0
}
-// Sends a current user typing event (see [SendMessageAction](https://core.telegram.org/type/SendMessageAction) for all event types) to a conversation partner or group.
+// Sends a current user typing event (see SendMessageAction for all event types) to a conversation partner or group.
func (c *Client) MessagesSetTyping(peer InputPeer, topMsgID int32, action SendMessageAction) (bool, error) {
responseData, err := c.MakeRequest(&MessagesSetTypingParams{
Action: action,
@@ -13272,7 +13296,7 @@ func (*MessagesStartBotParams) CRC() uint32 {
return 0xe6df7378
}
-// Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/api/links#bot-links)
+// Start a conversation with a bot using a deep linking parameter
func (c *Client) MessagesStartBot(bot InputUser, peer InputPeer, randomID int64, startParam string) (Updates, error) {
responseData, err := c.MakeRequest(&MessagesStartBotParams{
Bot: bot,
@@ -13301,8 +13325,8 @@ func (*MessagesStartHistoryImportParams) CRC() uint32 {
}
/*
-Complete the [history import process](https://core.telegram.org/api/import), importing all messages into the chat.
-To be called only after initializing the import with [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport) and uploading all files using [messages.uploadImportedMedia](https://core.telegram.org/method/messages.uploadImportedMedia).
+Complete the history import process, importing all messages into the chat.
+To be called only after initializing the import with messages.initHistoryImport and uploading all files using messages.uploadImportedMedia.
*/
func (c *Client) MessagesStartHistoryImport(peer InputPeer, importID int64) (bool, error) {
responseData, err := c.MakeRequest(&MessagesStartHistoryImportParams{
@@ -13334,7 +13358,7 @@ func (*MessagesToggleBotInAttachMenuParams) FlagIndex() int {
return 0
}
-// Enable or disable [web bot attachment menu ยป](https://core.telegram.org/api/bots/attach)
+// Enable or disable web bot attachment menu ยป
func (c *Client) MessagesToggleBotInAttachMenu(writeAllowed bool, bot InputUser, enabled bool) (bool, error) {
responseData, err := c.MakeRequest(&MessagesToggleBotInAttachMenuParams{
Bot: bot,
@@ -13360,7 +13384,7 @@ func (*MessagesToggleDialogFilterTagsParams) CRC() uint32 {
return 0xfd2dda49
}
-// Enable or disable [folder tags ยป](https://core.telegram.org/api/folders#folder-tags).
+// Enable or disable folder tags ยป.
func (c *Client) MessagesToggleDialogFilterTags(enabled bool) (bool, error) {
responseData, err := c.MakeRequest(&MessagesToggleDialogFilterTagsParams{Enabled: enabled})
if err != nil {
@@ -13413,7 +13437,7 @@ func (*MessagesToggleNoForwardsParams) CRC() uint32 {
return 0xb11eafa2
}
-// Enable or disable [content protection](https://core.telegram.orghttps://telegram.org/blog/protected-content-delete-by-date-and-more) on a channel or chat
+// Enable or disable content protection on a channel or chat
func (c *Client) MessagesToggleNoForwards(peer InputPeer, enabled bool) (Updates, error) {
responseData, err := c.MakeRequest(&MessagesToggleNoForwardsParams{
Enabled: enabled,
@@ -13440,6 +13464,7 @@ func (*MessagesTogglePaidReactionPrivacyParams) CRC() uint32 {
return 0x849ad397
}
+// Changes the privacy of already sent paid reactions on a specific message.
func (c *Client) MessagesTogglePaidReactionPrivacy(peer InputPeer, msgID int32, private bool) (bool, error) {
responseData, err := c.MakeRequest(&MessagesTogglePaidReactionPrivacyParams{
MsgID: msgID,
@@ -13470,7 +13495,7 @@ func (*MessagesTogglePeerTranslationsParams) FlagIndex() int {
return 0
}
-// Show or hide the [real-time chat translation popup](https://core.telegram.org/api/translation) for a certain chat
+// Show or hide the real-time chat translation popup for a certain chat
func (c *Client) MessagesTogglePeerTranslations(disabled bool, peer InputPeer) (bool, error) {
responseData, err := c.MakeRequest(&MessagesTogglePeerTranslationsParams{
Disabled: disabled,
@@ -13500,7 +13525,7 @@ func (*MessagesToggleSavedDialogPinParams) FlagIndex() int {
return 0
}
-// Pin or unpin a [saved message dialog ยป](https://core.telegram.org/api/saved-messages).
+// Pin or unpin a saved message dialog ยป.
func (c *Client) MessagesToggleSavedDialogPin(pinned bool, peer InputDialogPeer) (bool, error) {
responseData, err := c.MakeRequest(&MessagesToggleSavedDialogPinParams{
Peer: peer,
@@ -13560,7 +13585,7 @@ func (*MessagesTranscribeAudioParams) CRC() uint32 {
return 0x269e9a49
}
-// [Transcribe voice message](https://core.telegram.org/api/transcribe)
+// Transcribe voice message
func (c *Client) MessagesTranscribeAudio(peer InputPeer, msgID int32) (*MessagesTranscribedAudio, error) {
responseData, err := c.MakeRequest(&MessagesTranscribeAudioParams{
MsgID: msgID,
@@ -13646,7 +13671,7 @@ func (*MessagesUnpinAllMessagesParams) FlagIndex() int {
return 0
}
-// [Unpin](https://core.telegram.org/api/pin) all pinned messages
+// Unpin all pinned messages
func (c *Client) MessagesUnpinAllMessages(peer InputPeer, topMsgID int32) (*MessagesAffectedHistory, error) {
responseData, err := c.MakeRequest(&MessagesUnpinAllMessagesParams{
Peer: peer,
@@ -13676,7 +13701,7 @@ func (*MessagesUpdateDialogFilterParams) FlagIndex() int {
return 0
}
-// Update [folder](https://core.telegram.org/api/folders)
+// Update folder
func (c *Client) MessagesUpdateDialogFilter(id int32, filter DialogFilter) (bool, error) {
responseData, err := c.MakeRequest(&MessagesUpdateDialogFilterParams{
Filter: filter,
@@ -13701,7 +13726,7 @@ func (*MessagesUpdateDialogFiltersOrderParams) CRC() uint32 {
return 0xc563c1e4
}
-// Reorder [folders](https://core.telegram.org/api/folders)
+// Reorder folders
func (c *Client) MessagesUpdateDialogFiltersOrder(order []int32) (bool, error) {
responseData, err := c.MakeRequest(&MessagesUpdateDialogFiltersOrderParams{Order: order})
if err != nil {
@@ -13758,7 +13783,7 @@ func (*MessagesUpdateSavedReactionTagParams) FlagIndex() int {
return 0
}
-// Update the [description of a saved message tag ยป](https://core.telegram.org/api/saved-messages#tags).
+// Update the description of a saved message tag ยป.
func (c *Client) MessagesUpdateSavedReactionTag(reaction Reaction, title string) (bool, error) {
responseData, err := c.MakeRequest(&MessagesUpdateSavedReactionTagParams{
Reaction: reaction,
@@ -13775,37 +13800,6 @@ func (c *Client) MessagesUpdateSavedReactionTag(reaction Reaction, title string)
return resp, nil
}
-type MessagesUpdateStarRefProgramParams struct {
- Bot InputUser
- CommissionPermille int32
- DurationMonths int32 `tl:"flag:0"`
-}
-
-func (*MessagesUpdateStarRefProgramParams) CRC() uint32 {
- return 0x778b5ab3
-}
-
-func (*MessagesUpdateStarRefProgramParams) FlagIndex() int {
- return 0
-}
-
-func (c *Client) MessagesUpdateStarRefProgram(bot InputUser, commissionPermille, durationMonths int32) (*StarRefProgram, error) {
- responseData, err := c.MakeRequest(&MessagesUpdateStarRefProgramParams{
- Bot: bot,
- CommissionPermille: commissionPermille,
- DurationMonths: durationMonths,
- })
- if err != nil {
- return nil, errors.Wrap(err, "sending MessagesUpdateStarRefProgram")
- }
-
- resp, ok := responseData.(*StarRefProgram)
- if !ok {
- panic("got invalid response type: " + reflect.TypeOf(responseData).String())
- }
- return resp, nil
-}
-
type MessagesUploadEncryptedFileParams struct {
Peer *InputEncryptedChat
File InputEncryptedFile
@@ -13843,7 +13837,7 @@ func (*MessagesUploadImportedMediaParams) CRC() uint32 {
return 0x2a862092
}
-// Upload a media file associated with an [imported chat, click here for more info ยป](https://core.telegram.org/api/import).
+// Upload a media file associated with an imported chat, click here for more info ยป.
func (c *Client) MessagesUploadImportedMedia(peer InputPeer, importID int64, fileName string, media InputMedia) (MessageMedia, error) {
responseData, err := c.MakeRequest(&MessagesUploadImportedMediaParams{
FileName: fileName,
@@ -13903,6 +13897,7 @@ func (*MessagesViewSponsoredMessageParams) CRC() uint32 {
return 0x673ad8f1
}
+// Mark a specific sponsored message ยป as read
func (c *Client) MessagesViewSponsoredMessage(peer InputPeer, randomID []byte) (bool, error) {
responseData, err := c.MakeRequest(&MessagesViewSponsoredMessageParams{
Peer: peer,
@@ -13927,7 +13922,7 @@ func (*PaymentsApplyGiftCodeParams) CRC() uint32 {
return 0xf6e26854
}
-// Apply a [Telegram Premium giftcode ยป](https://core.telegram.org/api/giveaways)
+// Apply a Telegram Premium giftcode ยป
func (c *Client) PaymentsApplyGiftCode(slug string) (Updates, error) {
responseData, err := c.MakeRequest(&PaymentsApplyGiftCodeParams{Slug: slug})
if err != nil {
@@ -13994,26 +13989,44 @@ func (c *Client) PaymentsAssignPlayMarketTransaction(receipt *DataJson, purpose
}
type PaymentsBotCancelStarsSubscriptionParams struct {
- Restore bool `tl:"flag:0,encoded_in_bitflags"`
- UserID InputUser
- InvoiceSlug string `tl:"flag:1"`
- ChargeID string `tl:"flag:2"`
+ Restore bool `tl:"flag:0,encoded_in_bitflags"`
+ UserID InputUser
+ ChargeID string
}
func (*PaymentsBotCancelStarsSubscriptionParams) CRC() uint32 {
- return 0x57f9ece6
+ return 0x6dfa0622
}
func (*PaymentsBotCancelStarsSubscriptionParams) FlagIndex() int {
return 0
}
-func (c *Client) PaymentsBotCancelStarsSubscription(restore bool, userID InputUser, invoiceSlug, chargeID string) (bool, error) {
+/*
+
+boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+payments.botCancelStarsSubscription#6dfa0622 flags:# restore:flags.0?true user_id:InputUser charge_id:string = Bool;
+*/
+func (c *Client) PaymentsBotCancelStarsSubscription(restore bool, userID InputUser, chargeID string) (bool, error) {
responseData, err := c.MakeRequest(&PaymentsBotCancelStarsSubscriptionParams{
- ChargeID: chargeID,
- InvoiceSlug: invoiceSlug,
- Restore: restore,
- UserID: userID,
+ ChargeID: chargeID,
+ Restore: restore,
+ UserID: userID,
})
if err != nil {
return false, errors.Wrap(err, "sending PaymentsBotCancelStarsSubscription")
@@ -14062,6 +14075,7 @@ func (*PaymentsChangeStarsSubscriptionParams) FlagIndex() int {
return 0
}
+// Activate or deactivate a Telegram Star subscription ยป.
func (c *Client) PaymentsChangeStarsSubscription(peer InputPeer, subscriptionID string, canceled bool) (bool, error) {
responseData, err := c.MakeRequest(&PaymentsChangeStarsSubscriptionParams{
Canceled: canceled,
@@ -14087,7 +14101,7 @@ func (*PaymentsCheckGiftCodeParams) CRC() uint32 {
return 0x8e51b4c1
}
-// Obtain information about a [Telegram Premium giftcode ยป](https://core.telegram.org/api/giveaways)
+// Obtain information about a Telegram Premium giftcode ยป
func (c *Client) PaymentsCheckGiftCode(slug string) (*PaymentsCheckedGiftCode, error) {
responseData, err := c.MakeRequest(&PaymentsCheckGiftCodeParams{Slug: slug})
if err != nil {
@@ -14131,6 +14145,50 @@ func (c *Client) PaymentsClearSavedInfo(credentials, info bool) (bool, error) {
return resp, nil
}
+type PaymentsConnectStarRefBotParams struct {
+ Peer InputPeer
+ Bot InputUser
+}
+
+func (*PaymentsConnectStarRefBotParams) CRC() uint32 {
+ return 0x7ed5348a
+}
+
+/*
+
+payments.connectedStarRefBots#98d5ea1d count:int connected_bots:Vector<ConnectedBotStarRef> users:Vector<User> = payments.ConnectedStarRefBots;
+---functions---
+payments.connectStarRefBot#7ed5348a peer:InputPeer bot:InputUser = payments.ConnectedStarRefBots;
+*/
+func (c *Client) PaymentsConnectStarRefBot(peer InputPeer, bot InputUser) (*PaymentsConnectedStarRefBots, error) {
+ responseData, err := c.MakeRequest(&PaymentsConnectStarRefBotParams{
+ Bot: bot,
+ Peer: peer,
+ })
+ if err != nil {
+ return nil, errors.Wrap(err, "sending PaymentsConnectStarRefBot")
+ }
+
+ resp, ok := responseData.(*PaymentsConnectedStarRefBots)
+ if !ok {
+ panic("got invalid response type: " + reflect.TypeOf(responseData).String())
+ }
+ return resp, nil
+}
+
type PaymentsConvertStarGiftParams struct {
UserID InputUser
MsgID int32
@@ -14140,6 +14198,7 @@ func (*PaymentsConvertStarGiftParams) CRC() uint32 {
return 0x421e027
}
+// Convert a received gift ยป into Telegram Stars: this will permanently destroy the gift, converting it into starGift.`convert_stars` Telegram Stars, added to the user's balance.
func (c *Client) PaymentsConvertStarGift(userID InputUser, msgID int32) (bool, error) {
responseData, err := c.MakeRequest(&PaymentsConvertStarGiftParams{
MsgID: msgID,
@@ -14156,6 +14215,56 @@ func (c *Client) PaymentsConvertStarGift(userID InputUser, msgID int32) (bool, e
return resp, nil
}
+type PaymentsEditConnectedStarRefBotParams struct {
+ Revoked bool `tl:"flag:0,encoded_in_bitflags"`
+ Peer InputPeer
+ Link string
+}
+
+func (*PaymentsEditConnectedStarRefBotParams) CRC() uint32 {
+ return 0xe4fca4a3
+}
+
+func (*PaymentsEditConnectedStarRefBotParams) FlagIndex() int {
+ return 0
+}
+
+/*
+
+payments.connectedStarRefBots#98d5ea1d count:int connected_bots:Vector<ConnectedBotStarRef> users:Vector<User> = payments.ConnectedStarRefBots;
+---functions---
+payments.editConnectedStarRefBot#e4fca4a3 flags:# revoked:flags.0?true peer:InputPeer link:string = payments.ConnectedStarRefBots;
+*/
+func (c *Client) PaymentsEditConnectedStarRefBot(revoked bool, peer InputPeer, link string) (*PaymentsConnectedStarRefBots, error) {
+ responseData, err := c.MakeRequest(&PaymentsEditConnectedStarRefBotParams{
+ Link: link,
+ Peer: peer,
+ Revoked: revoked,
+ })
+ if err != nil {
+ return nil, errors.Wrap(err, "sending PaymentsEditConnectedStarRefBot")
+ }
+
+ resp, ok := responseData.(*PaymentsConnectedStarRefBots)
+ if !ok {
+ panic("got invalid response type: " + reflect.TypeOf(responseData).String())
+ }
+ return resp, nil
+}
+
type PaymentsExportInvoiceParams struct {
InvoiceMedia InputMedia
}
@@ -14164,7 +14273,7 @@ func (*PaymentsExportInvoiceParams) CRC() uint32 {
return 0xf91b065
}
-// Generate an [invoice deep link](https://core.telegram.org/api/links#invoice-links)
+// Generate an invoice deep link
func (c *Client) PaymentsExportInvoice(invoiceMedia InputMedia) (*PaymentsExportedInvoice, error) {
responseData, err := c.MakeRequest(&PaymentsExportInvoiceParams{InvoiceMedia: invoiceMedia})
if err != nil {
@@ -14187,6 +14296,7 @@ func (*PaymentsFulfillStarsSubscriptionParams) CRC() uint32 {
return 0xcc5bebb3
}
+// Re-join a private channel associated to an active Telegram Star subscription ยป.
func (c *Client) PaymentsFulfillStarsSubscription(peer InputPeer, subscriptionID string) (bool, error) {
responseData, err := c.MakeRequest(&PaymentsFulfillStarsSubscriptionParams{
Peer: peer,
@@ -14225,6 +14335,102 @@ func (c *Client) PaymentsGetBankCardData(number string) (*PaymentsBankCardData,
return resp, nil
}
+type PaymentsGetConnectedStarRefBotParams struct {
+ Peer InputPeer
+ Bot InputUser
+}
+
+func (*PaymentsGetConnectedStarRefBotParams) CRC() uint32 {
+ return 0xb7d998f0
+}
+
+/*
+
+payments.connectedStarRefBots#98d5ea1d count:int connected_bots:Vector<ConnectedBotStarRef> users:Vector<User> = payments.ConnectedStarRefBots;
+---functions---
+payments.getConnectedStarRefBot#b7d998f0 peer:InputPeer bot:InputUser = payments.ConnectedStarRefBots;
+*/
+func (c *Client) PaymentsGetConnectedStarRefBot(peer InputPeer, bot InputUser) (*PaymentsConnectedStarRefBots, error) {
+ responseData, err := c.MakeRequest(&PaymentsGetConnectedStarRefBotParams{
+ Bot: bot,
+ Peer: peer,
+ })
+ if err != nil {
+ return nil, errors.Wrap(err, "sending PaymentsGetConnectedStarRefBot")
+ }
+
+ resp, ok := responseData.(*PaymentsConnectedStarRefBots)
+ if !ok {
+ panic("got invalid response type: " + reflect.TypeOf(responseData).String())
+ }
+ return resp, nil
+}
+
+type PaymentsGetConnectedStarRefBotsParams struct {
+ Peer InputPeer
+ OffsetDate int32 `tl:"flag:2"`
+ OffsetLink string `tl:"flag:2"`
+ Limit int32
+}
+
+func (*PaymentsGetConnectedStarRefBotsParams) CRC() uint32 {
+ return 0x5869a553
+}
+
+func (*PaymentsGetConnectedStarRefBotsParams) FlagIndex() int {
+ return 0
+}
+
+/*
+
+payments.connectedStarRefBots#98d5ea1d count:int connected_bots:Vector<ConnectedBotStarRef> users:Vector<User> = payments.ConnectedStarRefBots;
+---functions---
+payments.getConnectedStarRefBots#5869a553 flags:# peer:InputPeer offset_date:flags.2?int offset_link:flags.2?string limit:int = payments.ConnectedStarRefBots;
+*/
+func (c *Client) PaymentsGetConnectedStarRefBots(peer InputPeer, offsetDate int32, offsetLink string, limit int32) (*PaymentsConnectedStarRefBots, error) {
+ responseData, err := c.MakeRequest(&PaymentsGetConnectedStarRefBotsParams{
+ Limit: limit,
+ OffsetDate: offsetDate,
+ OffsetLink: offsetLink,
+ Peer: peer,
+ })
+ if err != nil {
+ return nil, errors.Wrap(err, "sending PaymentsGetConnectedStarRefBots")
+ }
+
+ resp, ok := responseData.(*PaymentsConnectedStarRefBots)
+ if !ok {
+ panic("got invalid response type: " + reflect.TypeOf(responseData).String())
+ }
+ return resp, nil
+}
+
type PaymentsGetGiveawayInfoParams struct {
Peer InputPeer
MsgID int32
@@ -14234,7 +14440,7 @@ func (*PaymentsGetGiveawayInfoParams) CRC() uint32 {
return 0xf4239425
}
-// Obtain information about a [Telegram Premium giveaway ยป](https://core.telegram.org/api/giveaways).
+// Obtain information about a Telegram Premium giveaway ยป.
func (c *Client) PaymentsGetGiveawayInfo(peer InputPeer, msgID int32) (PaymentsGiveawayInfo, error) {
responseData, err := c.MakeRequest(&PaymentsGetGiveawayInfoParams{
MsgID: msgID,
@@ -14319,7 +14525,7 @@ func (*PaymentsGetPremiumGiftCodeOptionsParams) FlagIndex() int {
return 0
}
-// Obtain a list of Telegram Premium [giveaway/gift code ยป](https://core.telegram.org/api/giveaways) options.
+// Obtain a list of Telegram Premium giveaway/gift code ยป options.
func (c *Client) PaymentsGetPremiumGiftCodeOptions(boostPeer InputPeer) ([]*PremiumGiftCodeOption, error) {
responseData, err := c.MakeRequest(&PaymentsGetPremiumGiftCodeOptionsParams{BoostPeer: boostPeer})
if err != nil {
@@ -14361,6 +14567,7 @@ func (*PaymentsGetStarGiftsParams) CRC() uint32 {
return 0xc4563590
}
+// Get a list of available gifts, see here ยป for more info.
func (c *Client) PaymentsGetStarGifts(hash int32) (PaymentsStarGifts, error) {
responseData, err := c.MakeRequest(&PaymentsGetStarGiftsParams{Hash: hash})
if err != nil {
@@ -14386,7 +14593,7 @@ func (*PaymentsGetStarsGiftOptionsParams) FlagIndex() int {
return 0
}
-// Obtain a list of [Telegram Stars gift options ยป](https://core.telegram.org/api/stars#buying-or-gifting-stars) as [starsGiftOption](https://core.telegram.org/constructor/starsGiftOption) constructors.
+// Obtain a list of Telegram Stars gift options ยป as starsGiftOption constructors.
func (c *Client) PaymentsGetStarsGiftOptions(userID InputUser) ([]*StarsGiftOption, error) {
responseData, err := c.MakeRequest(&PaymentsGetStarsGiftOptionsParams{UserID: userID})
if err != nil {
@@ -14406,6 +14613,7 @@ func (*PaymentsGetStarsGiveawayOptionsParams) CRC() uint32 {
return 0xbd1efd3e
}
+// Fetch a list of star giveaway options ยป.
func (c *Client) PaymentsGetStarsGiveawayOptions() ([]*StarsGiveawayOption, error) {
responseData, err := c.MakeRequest(&PaymentsGetStarsGiveawayOptionsParams{})
if err != nil {
@@ -14427,7 +14635,7 @@ func (*PaymentsGetStarsRevenueAdsAccountURLParams) CRC() uint32 {
return 0xd1d7efc5
}
-// Returns a URL for a Telegram Ad platform account that can be used to set up advertisements for channel/bot in `peer`, paid using the Telegram Stars owned by the specified `peer`, see [here ยป](https://core.telegram.org/api/stars#paying-for-ads) for more info.
+// Returns a URL for a Telegram Ad platform account that can be used to set up advertisements for channel/bot in `peer`, paid using the Telegram Stars owned by the specified `peer`, see here ยป for more info.
func (c *Client) PaymentsGetStarsRevenueAdsAccountURL(peer InputPeer) (*PaymentsStarsRevenueAdsAccountURL, error) {
responseData, err := c.MakeRequest(&PaymentsGetStarsRevenueAdsAccountURLParams{Peer: peer})
if err != nil {
@@ -14454,7 +14662,7 @@ func (*PaymentsGetStarsRevenueStatsParams) FlagIndex() int {
return 0
}
-// Get [Telegram Star revenue statistics ยป](https://core.telegram.org/api/stars).
+// Get Telegram Star revenue statistics ยป.
func (c *Client) PaymentsGetStarsRevenueStats(dark bool, peer InputPeer) (*PaymentsStarsRevenueStats, error) {
responseData, err := c.MakeRequest(&PaymentsGetStarsRevenueStatsParams{
Dark: dark,
@@ -14481,7 +14689,7 @@ func (*PaymentsGetStarsRevenueWithdrawalURLParams) CRC() uint32 {
return 0x13bbe8b3
}
-// Withdraw funds from a channel or bot's [star balance ยป](https://core.telegram.org/api/stars#withdrawing-revenue).
+// Withdraw funds from a channel or bot's star balance ยป.
func (c *Client) PaymentsGetStarsRevenueWithdrawalURL(peer InputPeer, stars int64, password InputCheckPasswordSRP) (*PaymentsStarsRevenueWithdrawalURL, error) {
responseData, err := c.MakeRequest(&PaymentsGetStarsRevenueWithdrawalURLParams{
Password: password,
@@ -14507,7 +14715,7 @@ func (*PaymentsGetStarsStatusParams) CRC() uint32 {
return 0x104fcfa7
}
-// Get the current [Telegram Stars balance](https://core.telegram.org/api/stars) of the current account (with peer=[inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf)), or the stars balance of the bot specified in `peer`.
+// Get the current Telegram Stars balance of the current account (with peer=inputPeerSelf), or the stars balance of the bot specified in `peer`.
func (c *Client) PaymentsGetStarsStatus(peer InputPeer) (*PaymentsStarsStatus, error) {
responseData, err := c.MakeRequest(&PaymentsGetStarsStatusParams{Peer: peer})
if err != nil {
@@ -14535,6 +14743,7 @@ func (*PaymentsGetStarsSubscriptionsParams) FlagIndex() int {
return 0
}
+// Obtain a list of active, expired or cancelled Telegram Star subscriptions ยป.
func (c *Client) PaymentsGetStarsSubscriptions(missingBalance bool, peer InputPeer, offset string) (*PaymentsStarsStatus, error) {
responseData, err := c.MakeRequest(&PaymentsGetStarsSubscriptionsParams{
MissingBalance: missingBalance,
@@ -14558,7 +14767,7 @@ func (*PaymentsGetStarsTopupOptionsParams) CRC() uint32 {
return 0xc00ec7d3
}
-// Obtain a list of [Telegram Stars topup options ยป](https://core.telegram.org/api/stars#buying-or-gifting-stars) as [starsTopupOption](https://core.telegram.org/constructor/starsTopupOption) constructors.
+// Obtain a list of Telegram Stars topup options ยป as starsTopupOption constructors.
func (c *Client) PaymentsGetStarsTopupOptions() ([]*StarsTopupOption, error) {
responseData, err := c.MakeRequest(&PaymentsGetStarsTopupOptionsParams{})
if err != nil {
@@ -14590,7 +14799,7 @@ func (*PaymentsGetStarsTransactionsParams) FlagIndex() int {
return 0
}
-// Fetch [Telegram Stars transactions](https://core.telegram.org/api/stars#balance-and-transaction-history).
+// Fetch Telegram Stars transactions.
func (c *Client) PaymentsGetStarsTransactions(params *PaymentsGetStarsTransactionsParams) (*PaymentsStarsStatus, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -14613,7 +14822,7 @@ func (*PaymentsGetStarsTransactionsByIDParams) CRC() uint32 {
return 0x27842d2e
}
-// Obtain info about [Telegram Star transactions ยป](https://core.telegram.org/api/stars#balance-and-transaction-history) using specific transaction IDs.
+// Obtain info about Telegram Star transactions ยป using specific transaction IDs.
func (c *Client) PaymentsGetStarsTransactionsByID(peer InputPeer, id []*InputStarsTransaction) (*PaymentsStarsStatus, error) {
responseData, err := c.MakeRequest(&PaymentsGetStarsTransactionsByIDParams{
ID: id,
@@ -14630,6 +14839,54 @@ func (c *Client) PaymentsGetStarsTransactionsByID(peer InputPeer, id []*InputSta
return resp, nil
}
+type PaymentsGetSuggestedStarRefBotsParams struct {
+ OrderByRevenue bool `tl:"flag:0,encoded_in_bitflags"`
+ OrderByDate bool `tl:"flag:1,encoded_in_bitflags"`
+ Peer InputPeer
+ Offset string
+ Limit int32
+}
+
+func (*PaymentsGetSuggestedStarRefBotsParams) CRC() uint32 {
+ return 0xd6b48f7
+}
+
+func (*PaymentsGetSuggestedStarRefBotsParams) FlagIndex() int {
+ return 0
+}
+
+/*
+
+payments.suggestedStarRefBots#b4d5d859 flags:# count:int suggested_bots:Vector<StarRefProgram> users:Vector<User> next_offset:flags.0?string = payments.SuggestedStarRefBots;
+---functions---
+payments.getSuggestedStarRefBots#d6b48f7 flags:# order_by_revenue:flags.0?true order_by_date:flags.1?true peer:InputPeer offset:string limit:int = payments.SuggestedStarRefBots;
+*/
+func (c *Client) PaymentsGetSuggestedStarRefBots(params *PaymentsGetSuggestedStarRefBotsParams) (*PaymentsSuggestedStarRefBots, error) {
+ responseData, err := c.MakeRequest(params)
+ if err != nil {
+ return nil, errors.Wrap(err, "sending PaymentsGetSuggestedStarRefBots")
+ }
+
+ resp, ok := responseData.(*PaymentsSuggestedStarRefBots)
+ if !ok {
+ panic("got invalid response type: " + reflect.TypeOf(responseData).String())
+ }
+ return resp, nil
+}
+
type PaymentsGetUserStarGiftsParams struct {
UserID InputUser
Offset string
@@ -14640,6 +14897,7 @@ func (*PaymentsGetUserStarGiftsParams) CRC() uint32 {
return 0x5e72c7e1
}
+// Get the gifts ยป pinned on a specific user's profile.
func (c *Client) PaymentsGetUserStarGifts(userID InputUser, offset string, limit int32) (*PaymentsUserStarGifts, error) {
responseData, err := c.MakeRequest(&PaymentsGetUserStarGiftsParams{
Limit: limit,
@@ -14667,7 +14925,7 @@ func (*PaymentsLaunchPrepaidGiveawayParams) CRC() uint32 {
return 0x5ff58f20
}
-// Launch a [prepaid giveaway ยป](https://core.telegram.org/api/giveaways).
+// Launch a prepaid giveaway ยป.
func (c *Client) PaymentsLaunchPrepaidGiveaway(peer InputPeer, giveawayID int64, purpose InputStorePaymentPurpose) (Updates, error) {
responseData, err := c.MakeRequest(&PaymentsLaunchPrepaidGiveawayParams{
GiveawayID: giveawayID,
@@ -14694,7 +14952,7 @@ func (*PaymentsRefundStarsChargeParams) CRC() uint32 {
return 0x25ae8f4a
}
-// Refund a [Telegram Stars](https://core.telegram.org/api/stars) transaction, see [here ยป](https://core.telegram.org/api/payments#6-refunds) for more info.
+// Refund a Telegram Stars transaction, see here ยป for more info.
func (c *Client) PaymentsRefundStarsCharge(userID InputUser, chargeID string) (Updates, error) {
responseData, err := c.MakeRequest(&PaymentsRefundStarsChargeParams{
ChargeID: chargeID,
@@ -14726,17 +14984,17 @@ func (*PaymentsRequestRecurringPaymentParams) CRC() uint32 {
- `Method schema is available as of layer 143. [Switch ยป](https://core.telegram.org?layer=143)`
+ `Method schema is available as of layer 143. Switch ยป`
*/
func (c *Client) PaymentsRequestRecurringPayment(userID InputUser, recurringInitCharge string, invoiceMedia InputMedia) (Updates, error) {
responseData, err := c.MakeRequest(&PaymentsRequestRecurringPaymentParams{
@@ -14769,6 +15027,7 @@ func (*PaymentsSaveStarGiftParams) FlagIndex() int {
return 0
}
+// Display or remove a received gift ยป from our profile.
func (c *Client) PaymentsSaveStarGift(unsave bool, userID InputUser, msgID int32) (bool, error) {
responseData, err := c.MakeRequest(&PaymentsSaveStarGiftParams{
MsgID: msgID,
@@ -14826,7 +15085,7 @@ func (*PaymentsSendStarsFormParams) CRC() uint32 {
return 0x7998c914
}
-// Make a payment using [Telegram Stars, see here ยป](https://core.telegram.org/api/stars#using-stars) for more info.
+// Make a payment using Telegram Stars, see here ยป for more info.
func (c *Client) PaymentsSendStarsForm(formID int64, invoice InputInvoice) (PaymentsPaymentResult, error) {
responseData, err := c.MakeRequest(&PaymentsSendStarsFormParams{
FormID: formID,
@@ -14943,7 +15202,7 @@ func (*PhoneConfirmCallParams) CRC() uint32 {
return 0x2efe1722
}
-// [Complete phone call E2E encryption key exchange ยป](https://core.telegram.org/api/end-to-end/voice-calls)
+// Complete phone call E2E encryption key exchange ยป
func (c *Client) PhoneConfirmCall(peer *InputPhoneCall, gA []byte, keyFingerprint int64, protocol *PhoneCallProtocol) (*PhonePhoneCall, error) {
responseData, err := c.MakeRequest(&PhoneConfirmCallParams{
GA: gA,
@@ -15116,7 +15375,7 @@ func (*PhoneExportGroupCallInviteParams) FlagIndex() int {
return 0
}
-// Get an [invite link](https://core.telegram.org/api/links#video-chat-livestream-links) for a group call or livestream
+// Get an invite link for a group call or livestream
func (c *Client) PhoneExportGroupCallInvite(canSelfUnmute bool, call *InputGroupCall) (*PhoneExportedGroupCallInvite, error) {
responseData, err := c.MakeRequest(&PhoneExportGroupCallInviteParams{
Call: call,
@@ -15211,7 +15470,7 @@ func (*PhoneGetGroupCallStreamChannelsParams) CRC() uint32 {
/*
Get info about RTMP streams in a group call or livestream.
-This method should be invoked to the same group/channel-related DC used for [downloading livestream chunks](https://core.telegram.org/api/files#downloading-files).
+This method should be invoked to the same group/channel-related DC used for downloading livestream chunks.
As usual, the media DC is preferred, if available.
*/
func (c *Client) PhoneGetGroupCallStreamChannels(call *InputGroupCall) (*PhoneGroupCallStreamChannels, error) {
@@ -15236,7 +15495,7 @@ func (*PhoneGetGroupCallStreamRtmpURLParams) CRC() uint32 {
return 0xdeb3abbf
}
-// Get RTMP URL and stream key for RTMP livestreams. Can be used even before creating the actual RTMP livestream with [phone.createGroupCall](https://core.telegram.org/method/phone.createGroupCall) (the `rtmp_stream` flag must be set).
+// Get RTMP URL and stream key for RTMP livestreams. Can be used even before creating the actual RTMP livestream with phone.createGroupCall (the `rtmp_stream` flag must be set).
func (c *Client) PhoneGetGroupCallStreamRtmpURL(peer InputPeer, revoke bool) (*PhoneGroupCallStreamRtmpURL, error) {
responseData, err := c.MakeRequest(&PhoneGetGroupCallStreamRtmpURLParams{
Peer: peer,
@@ -15876,7 +16135,7 @@ func (*PremiumApplyBoostParams) FlagIndex() int {
return 0
}
-// Apply one or more [boosts ยป](https://core.telegram.org/api/boost) to a peer.
+// Apply one or more boosts ยป to a peer.
func (c *Client) PremiumApplyBoost(slots []int32, peer InputPeer) (*PremiumMyBoosts, error) {
responseData, err := c.MakeRequest(&PremiumApplyBoostParams{
Peer: peer,
@@ -15935,7 +16194,7 @@ func (*PremiumGetBoostsStatusParams) CRC() uint32 {
return 0x42f1f61
}
-// Gets the current [number of boosts](https://core.telegram.org/api/boost) of a channel/supergroup.
+// Gets the current number of boosts of a channel/supergroup.
func (c *Client) PremiumGetBoostsStatus(peer InputPeer) (*PremiumBoostsStatus, error) {
responseData, err := c.MakeRequest(&PremiumGetBoostsStatusParams{Peer: peer})
if err != nil {
@@ -15955,7 +16214,7 @@ func (*PremiumGetMyBoostsParams) CRC() uint32 {
return 0xbe77b4a
}
-// Obtain which peers are we currently [boosting](https://core.telegram.org/api/boost), and how many [boost slots](https://core.telegram.org/api/boost) we have left.
+// Obtain which peers are we currently boosting, and how many boost slots we have left.
func (c *Client) PremiumGetMyBoosts() (*PremiumMyBoosts, error) {
responseData, err := c.MakeRequest(&PremiumGetMyBoostsParams{})
if err != nil {
@@ -16166,7 +16425,7 @@ func (*StatsGetBroadcastRevenueStatsParams) FlagIndex() int {
return 0
}
-// Get [channel ad revenue statistics ยป](https://core.telegram.org/api/revenue).
+// Get channel ad revenue statistics ยป.
func (c *Client) StatsGetBroadcastRevenueStats(dark bool, peer InputPeer) (*StatsBroadcastRevenueStats, error) {
responseData, err := c.MakeRequest(&StatsGetBroadcastRevenueStatsParams{
Dark: dark,
@@ -16193,7 +16452,7 @@ func (*StatsGetBroadcastRevenueTransactionsParams) CRC() uint32 {
return 0x70990b6d
}
-// Fetch [channel ad revenue transaction history ยป](https://core.telegram.org/api/revenue).
+// Fetch channel ad revenue transaction history ยป.
func (c *Client) StatsGetBroadcastRevenueTransactions(peer InputPeer, offset, limit int32) (*StatsBroadcastRevenueTransactions, error) {
responseData, err := c.MakeRequest(&StatsGetBroadcastRevenueTransactionsParams{
Limit: limit,
@@ -16220,7 +16479,7 @@ func (*StatsGetBroadcastRevenueWithdrawalURLParams) CRC() uint32 {
return 0x9df4faad
}
-// Withdraw funds from a channel's [ad revenue balance ยป](https://core.telegram.org/api/revenue).
+// Withdraw funds from a channel's ad revenue balance ยป.
func (c *Client) StatsGetBroadcastRevenueWithdrawalURL(peer InputPeer, password InputCheckPasswordSRP) (*StatsBroadcastRevenueWithdrawalURL, error) {
responseData, err := c.MakeRequest(&StatsGetBroadcastRevenueWithdrawalURLParams{
Password: password,
@@ -16250,7 +16509,7 @@ func (*StatsGetBroadcastStatsParams) FlagIndex() int {
return 0
}
-// Get [channel statistics](https://core.telegram.org/api/stats)
+// Get channel statistics
func (c *Client) StatsGetBroadcastStats(dark bool, channel InputChannel) (*StatsBroadcastStats, error) {
responseData, err := c.MakeRequest(&StatsGetBroadcastStatsParams{
Channel: channel,
@@ -16280,7 +16539,7 @@ func (*StatsGetMegagroupStatsParams) FlagIndex() int {
return 0
}
-// Get [supergroup statistics](https://core.telegram.org/api/stats)
+// Get supergroup statistics
func (c *Client) StatsGetMegagroupStats(dark bool, channel InputChannel) (*StatsMegagroupStats, error) {
responseData, err := c.MakeRequest(&StatsGetMegagroupStatsParams{
Channel: channel,
@@ -16310,7 +16569,7 @@ func (*StatsGetMessagePublicForwardsParams) CRC() uint32 {
/*
Obtains a list of messages, indicating to which other public channels was a channel message forwarded.
-Will return a list of [messages](https://core.telegram.org/constructor/message) with `peer_id` equal to the public channel to which this message was forwarded.
+Will return a list of messages with `peer_id` equal to the public channel to which this message was forwarded.
*/
func (c *Client) StatsGetMessagePublicForwards(channel InputChannel, msgID int32, offset string, limit int32) (*StatsPublicForwards, error) {
responseData, err := c.MakeRequest(&StatsGetMessagePublicForwardsParams{
@@ -16344,7 +16603,7 @@ func (*StatsGetMessageStatsParams) FlagIndex() int {
return 0
}
-// Get [message statistics](https://core.telegram.org/api/stats)
+// Get message statistics
func (c *Client) StatsGetMessageStats(dark bool, channel InputChannel, msgID int32) (*StatsMessageStats, error) {
responseData, err := c.MakeRequest(&StatsGetMessageStatsParams{
Channel: channel,
@@ -16373,7 +16632,7 @@ func (*StatsGetStoryPublicForwardsParams) CRC() uint32 {
return 0xa6437ef6
}
-// Obtain forwards of a [story](https://core.telegram.org/api/stories) as a message to public chats and reposts by public channels.
+// Obtain forwards of a story as a message to public chats and reposts by public channels.
func (c *Client) StatsGetStoryPublicForwards(peer InputPeer, id int32, offset string, limit int32) (*StatsPublicForwards, error) {
responseData, err := c.MakeRequest(&StatsGetStoryPublicForwardsParams{
ID: id,
@@ -16406,7 +16665,7 @@ func (*StatsGetStoryStatsParams) FlagIndex() int {
return 0
}
-// Get [statistics](https://core.telegram.org/api/stats) for a certain [story](https://core.telegram.org/api/stories).
+// Get statistics for a certain story.
func (c *Client) StatsGetStoryStats(dark bool, peer InputPeer, id int32) (*StatsStoryStats, error) {
responseData, err := c.MakeRequest(&StatsGetStoryStatsParams{
Dark: dark,
@@ -16437,7 +16696,7 @@ func (*StatsLoadAsyncGraphParams) FlagIndex() int {
return 0
}
-// Load [channel statistics graph](https://core.telegram.org/api/stats) asynchronously
+// Load channel statistics graph asynchronously
func (c *Client) StatsLoadAsyncGraph(token string, x int64) (StatsGraph, error) {
responseData, err := c.MakeRequest(&StatsLoadAsyncGraphParams{
Token: token,
@@ -16495,7 +16754,7 @@ func (*StickersChangeStickerParams) FlagIndex() int {
return 0
}
-// Update the keywords, emojis or [mask coordinates](https://core.telegram.org/api/stickers#mask-stickers) of a sticker.
+// Update the keywords, emojis or mask coordinates of a sticker.
func (c *Client) StickersChangeSticker(sticker InputDocument, emoji string, maskCoords *MaskCoords, keywords string) (MessagesStickerSet, error) {
responseData, err := c.MakeRequest(&StickersChangeStickerParams{
Emoji: emoji,
@@ -16675,7 +16934,7 @@ func (*StickersReplaceStickerParams) CRC() uint32 {
return 0x4696459a
}
-// Replace a sticker in a [stickerset ยป](https://core.telegram.org/api/stickers).
+// Replace a sticker in a stickerset ยป.
func (c *Client) StickersReplaceSticker(sticker InputDocument, newSticker *InputStickerSetItem) (MessagesStickerSet, error) {
responseData, err := c.MakeRequest(&StickersReplaceStickerParams{
NewSticker: newSticker,
@@ -16759,7 +17018,7 @@ func (*StoriesActivateStealthModeParams) FlagIndex() int {
return 0
}
-// Activates [stories stealth mode](https://core.telegram.org/api/stories#stealth-mode), see [here ยป](https://core.telegram.org/api/stories#stealth-mode) for more info.
+// Activates stories stealth mode, see here ยป for more info.
func (c *Client) StoriesActivateStealthMode(past, future bool) (Updates, error) {
responseData, err := c.MakeRequest(&StoriesActivateStealthModeParams{
Future: future,
@@ -16807,7 +17066,7 @@ func (*StoriesDeleteStoriesParams) CRC() uint32 {
return 0xae59db5f
}
-// Deletes some posted [stories](https://core.telegram.org/api/stories).
+// Deletes some posted stories.
func (c *Client) StoriesDeleteStories(peer InputPeer, id []int32) ([]int32, error) {
responseData, err := c.MakeRequest(&StoriesDeleteStoriesParams{
ID: id,
@@ -16842,7 +17101,7 @@ func (*StoriesEditStoryParams) FlagIndex() int {
return 0
}
-// Edit an uploaded [story](https://core.telegram.org/api/stories)
+// Edit an uploaded story
func (c *Client) StoriesEditStory(params *StoriesEditStoryParams) (Updates, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -16865,7 +17124,7 @@ func (*StoriesExportStoryLinkParams) CRC() uint32 {
return 0x7b8def20
}
-// Generate a [story deep link](https://core.telegram.org/api/links#story-links) for a specific story
+// Generate a story deep link for a specific story
func (c *Client) StoriesExportStoryLink(peer InputPeer, id int32) (*ExportedStoryLink, error) {
responseData, err := c.MakeRequest(&StoriesExportStoryLinkParams{
ID: id,
@@ -16888,7 +17147,7 @@ func (*StoriesGetAllReadPeerStoriesParams) CRC() uint32 {
return 0x9b5ae7f9
}
-// Obtain the latest read story ID for all peers when first logging in, returned as a list of [updateReadStories](https://core.telegram.org/constructor/updateReadStories) updates, see [here ยป](https://core.telegram.org/api/stories#watching-stories) for more info.
+// Obtain the latest read story ID for all peers when first logging in, returned as a list of updateReadStories updates, see here ยป for more info.
func (c *Client) StoriesGetAllReadPeerStories() (Updates, error) {
responseData, err := c.MakeRequest(&StoriesGetAllReadPeerStoriesParams{})
if err != nil {
@@ -16916,7 +17175,7 @@ func (*StoriesGetAllStoriesParams) FlagIndex() int {
return 0
}
-// Fetch the List of active (or active and hidden) stories, see [here ยป](https://core.telegram.org/api/stories#watching-stories) for more info on watching stories.
+// Fetch the List of active (or active and hidden) stories, see here ยป for more info on watching stories.
func (c *Client) StoriesGetAllStories(next, hidden bool, state string) (StoriesAllStories, error) {
responseData, err := c.MakeRequest(&StoriesGetAllStoriesParams{
Hidden: hidden,
@@ -16940,7 +17199,7 @@ func (*StoriesGetChatsToSendParams) CRC() uint32 {
return 0xa56a8b60
}
-// Obtain a list of channels where the user can post [stories](https://core.telegram.org/api/stories)
+// Obtain a list of channels where the user can post stories
func (c *Client) StoriesGetChatsToSend() (MessagesChats, error) {
responseData, err := c.MakeRequest(&StoriesGetChatsToSendParams{})
if err != nil {
@@ -16984,7 +17243,7 @@ func (*StoriesGetPeerStoriesParams) CRC() uint32 {
return 0x2c4ada50
}
-// Fetch the full active [story list](https://core.telegram.org/api/stories#watching-stories) of a specific peer.
+// Fetch the full active story list of a specific peer.
func (c *Client) StoriesGetPeerStories(peer InputPeer) (*StoriesPeerStories, error) {
responseData, err := c.MakeRequest(&StoriesGetPeerStoriesParams{Peer: peer})
if err != nil {
@@ -17008,7 +17267,7 @@ func (*StoriesGetPinnedStoriesParams) CRC() uint32 {
return 0x5821a5dc
}
-// Fetch the [stories](https://core.telegram.org/api/stories#pinned-or-archived-stories) pinned on a peer's profile.
+// Fetch the stories pinned on a peer's profile.
func (c *Client) StoriesGetPinnedStories(peer InputPeer, offsetID, limit int32) (*StoriesStories, error) {
responseData, err := c.MakeRequest(&StoriesGetPinnedStoriesParams{
Limit: limit,
@@ -17036,7 +17295,7 @@ func (*StoriesGetStoriesArchiveParams) CRC() uint32 {
return 0xb4352016
}
-// Fetch the [story archive ยป](https://core.telegram.org/api/stories#pinned-or-archived-stories) of a peer we control.
+// Fetch the story archive ยป of a peer we control.
func (c *Client) StoriesGetStoriesArchive(peer InputPeer, offsetID, limit int32) (*StoriesStories, error) {
responseData, err := c.MakeRequest(&StoriesGetStoriesArchiveParams{
Limit: limit,
@@ -17063,7 +17322,7 @@ func (*StoriesGetStoriesByIDParams) CRC() uint32 {
return 0x5774ca74
}
-// Obtain full info about a set of [stories](https://core.telegram.org/api/stories) by their IDs.
+// Obtain full info about a set of stories by their IDs.
func (c *Client) StoriesGetStoriesByID(peer InputPeer, id []int32) (*StoriesStories, error) {
responseData, err := c.MakeRequest(&StoriesGetStoriesByIDParams{
ID: id,
@@ -17089,7 +17348,7 @@ func (*StoriesGetStoriesViewsParams) CRC() uint32 {
return 0x28e16cc8
}
-// Obtain info about the view count, forward count, reactions and recent viewers of one or more [stories](https://core.telegram.org/api/stories).
+// Obtain info about the view count, forward count, reactions and recent viewers of one or more stories.
func (c *Client) StoriesGetStoriesViews(peer InputPeer, id []int32) (*StoriesStoryViews, error) {
responseData, err := c.MakeRequest(&StoriesGetStoriesViewsParams{
ID: id,
@@ -17123,7 +17382,7 @@ func (*StoriesGetStoryReactionsListParams) FlagIndex() int {
return 0
}
-// Get the [reaction](https://core.telegram.org/api/reactions) and interaction list of a [story](https://core.telegram.org/api/stories) posted to a channel, along with the sender of each reaction.
+// Get the reaction and interaction list of a story posted to a channel, along with the sender of each reaction.
func (c *Client) StoriesGetStoryReactionsList(params *StoriesGetStoryReactionsListParams) (*StoriesStoryReactionsList, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -17156,7 +17415,7 @@ func (*StoriesGetStoryViewsListParams) FlagIndex() int {
return 0
}
-// Obtain the list of users that have viewed a specific [story we posted](https://core.telegram.org/api/stories)
+// Obtain the list of users that have viewed a specific story we posted
func (c *Client) StoriesGetStoryViewsList(params *StoriesGetStoryViewsListParams) (*StoriesStoryViewsList, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -17205,7 +17464,7 @@ func (*StoriesReadStoriesParams) CRC() uint32 {
return 0xa556dac8
}
-// Mark all stories up to a certain ID as read, for a given peer; will emit an [updateReadStories](https://core.telegram.org/constructor/updateReadStories) update to all logged-in sessions.
+// Mark all stories up to a certain ID as read, for a given peer; will emit an updateReadStories update to all logged-in sessions.
func (c *Client) StoriesReadStories(peer InputPeer, maxID int32) ([]int32, error) {
responseData, err := c.MakeRequest(&StoriesReadStoriesParams{
MaxID: maxID,
@@ -17268,7 +17527,7 @@ func (*StoriesSearchPostsParams) FlagIndex() int {
return 0
}
-// Globally search for [stories](https://core.telegram.org/api/stories) using a hashtag or a [location media area](https://core.telegram.org/api/stories#location-tags), see [here ยป](https://core.telegram.org/api/stories#searching-stories) for more info on the full flow.
+// Globally search for stories using a hashtag or a location media area, see here ยป for more info on the full flow.
func (c *Client) StoriesSearchPosts(params *StoriesSearchPostsParams) (*StoriesFoundStories, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -17340,7 +17599,7 @@ func (*StoriesSendStoryParams) FlagIndex() int {
return 0
}
-// Uploads a [Telegram Story](https://core.telegram.org/api/stories).
+// Uploads a Telegram Story.
func (c *Client) StoriesSendStory(params *StoriesSendStoryParams) (Updates, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -17385,7 +17644,7 @@ func (*StoriesTogglePeerStoriesHiddenParams) CRC() uint32 {
return 0xbd0415c4
}
-// Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see [here ยป](https://core.telegram.org/api/stories#hiding-stories-of-other-users) for more info.
+// Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see here ยป for more info.
func (c *Client) StoriesTogglePeerStoriesHidden(peer InputPeer, hidden bool) (bool, error) {
responseData, err := c.MakeRequest(&StoriesTogglePeerStoriesHiddenParams{
Hidden: hidden,
@@ -17439,7 +17698,7 @@ func (*StoriesTogglePinnedToTopParams) CRC() uint32 {
return 0xb297e9b
}
-// Pin some stories to the top of the profile, see [here ยป](https://core.telegram.org/api/stories#pinned-or-archived-stories) for more info.
+// Pin some stories to the top of the profile, see here ยป for more info.
func (c *Client) StoriesTogglePinnedToTop(peer InputPeer, id []int32) (bool, error) {
responseData, err := c.MakeRequest(&StoriesTogglePinnedToTopParams{
ID: id,
@@ -17503,7 +17762,7 @@ func (*UpdatesGetDifferenceParams) FlagIndex() int {
return 0
}
-// Get new [updates](https://core.telegram.org/api/updates).
+// Get new updates.
func (c *Client) UpdatesGetDifference(params *UpdatesGetDifferenceParams) (UpdatesDifference, error) {
responseData, err := c.MakeRequest(params)
if err != nil {
@@ -17547,7 +17806,7 @@ func (*UploadGetCdnFileParams) CRC() uint32 {
return 0x395f69da
}
-// Download a [CDN](https://core.telegram.org/cdn) file.
+// Download a CDN file.
func (c *Client) UploadGetCdnFile(fileToken []byte, offset int64, limit int32) (UploadCdnFile, error) {
responseData, err := c.MakeRequest(&UploadGetCdnFileParams{
FileToken: fileToken,
@@ -17574,7 +17833,7 @@ func (*UploadGetCdnFileHashesParams) CRC() uint32 {
return 0x91dc3f31
}
-// Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn) files
+// Get SHA256 hashes for verifying downloaded CDN files
func (c *Client) UploadGetCdnFileHashes(fileToken []byte, offset int64) ([]*FileHash, error) {
responseData, err := c.MakeRequest(&UploadGetCdnFileHashesParams{
FileToken: fileToken,
@@ -17657,7 +17916,7 @@ func (*UploadGetWebFileParams) CRC() uint32 {
return 0x24e6818d
}
-// Returns content of a web file, by proxying the request through telegram, see the [webfile docs for more info](https://core.telegram.org/api/files#downloading-webfiles).
+// Returns content of a web file, by proxying the request through telegram, see the webfile docs for more info.
func (c *Client) UploadGetWebFile(location InputWebFileLocation, offset, limit int32) (*UploadWebFile, error) {
responseData, err := c.MakeRequest(&UploadGetWebFileParams{
Limit: limit,
@@ -17684,7 +17943,7 @@ func (*UploadReuploadCdnFileParams) CRC() uint32 {
return 0x9b2754a8
}
-// Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn).
+// Request a reupload of a certain file to a CDN DC.
func (c *Client) UploadReuploadCdnFile(fileToken, requestToken []byte) ([]*FileHash, error) {
responseData, err := c.MakeRequest(&UploadReuploadCdnFileParams{
FileToken: fileToken,
@@ -17789,7 +18048,7 @@ func (*UsersGetIsPremiumRequiredToContactParams) CRC() uint32 {
return 0xa622aa10
}
-// Check whether we can write to the specified user (this method can only be called by non-[Premium](https://core.telegram.org/api/premium) users), see [here ยป](https://core.telegram.org/api/privacy#require-premium-for-new-non-contact-users) for more info on the full flow.
+// Check whether we can write to the specified user (this method can only be called by non-Premium users), see here ยป for more info on the full flow.
func (c *Client) UsersGetIsPremiumRequiredToContact(id []InputUser) (bool, error) {
responseData, err := c.MakeRequest(&UsersGetIsPremiumRequiredToContactParams{ID: id})
if err != nil {
@@ -17847,7 +18106,7 @@ func (*UsersSetSecureValueErrorsParams) CRC() uint32 {
return 0x90c894b5
}
-// Notify the user that the sent [passport](https://core.telegram.org/passport) data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change).
+// Notify the user that the sent passport data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change).
func (c *Client) UsersSetSecureValueErrors(id InputUser, errorsw []SecureValueError) (bool, error) {
responseData, err := c.MakeRequest(&UsersSetSecureValueErrorsParams{
Errors: errorsw,
diff --git a/telegram/types_gen.go b/telegram/types_gen.go
index 5abc0530..31df1dd1 100755
--- a/telegram/types_gen.go
+++ b/telegram/types_gen.go
@@ -2,7 +2,17 @@
package telegram
-// [Telegram Passport](https://core.telegram.org/passport) authorization form
+type AccessPointRule struct {
+ PhonePrefixRules string
+ DcID int32
+ Ips []IpPort
+}
+
+func (*AccessPointRule) CRC() uint32 {
+ return 0x4679b65f
+}
+
+// Telegram Passport authorization form
type AccountAuthorizationForm struct {
RequiredTypes []SecureRequiredType
Values []*SecureValue
@@ -54,7 +64,7 @@ func (*AccountAutoSaveSettings) CRC() uint32 {
return 0x4c3e069d
}
-// Contains info about [business chat deep links ยป](https://core.telegram.org/api/business#business-chat-links) created by the current account.
+// Contains info about business chat deep links ยป created by the current account.
type AccountBusinessChatLinks struct {
Links []*BusinessChatLink
Chats []Chat
@@ -65,7 +75,7 @@ func (*AccountBusinessChatLinks) CRC() uint32 {
return 0xec43a2d1
}
-// Info about currently connected [business bots](https://core.telegram.org/api/business#connected-bots).
+// Info about currently connected business bots.
type AccountConnectedBots struct {
ConnectedBots []*ConnectedBot
Users []User
@@ -131,7 +141,7 @@ func (*AccountPasswordInputSettings) FlagIndex() int {
return 0
}
-// Private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on)
+// Private info associated to the password info (recovery email, telegram passport info & so on)
type AccountPasswordSettings struct {
Email string `tl:"flag:0"`
SecureSettings *SecureSecretSettings `tl:"flag:1"`
@@ -156,7 +166,7 @@ func (*AccountPrivacyRules) CRC() uint32 {
return 0x50a04e45
}
-// Contains info about a single resolved [business chat deep link ยป](https://core.telegram.org/api/business#business-chat-links).
+// Contains info about a single resolved business chat deep link ยป.
type AccountResolvedBusinessChatLinks struct {
Peer Peer
Message string
@@ -221,16 +231,7 @@ func (*AccountDaysTtl) CRC() uint32 {
return 0xb8d0afdf
}
-// Contains the link that must be used to open a [direct link Mini App](https://core.telegram.org/api/bots/webapps#direct-link-mini-apps).
-type AppWebViewResultURL struct {
- URL string
-}
-
-func (*AppWebViewResultURL) CRC() uint32 {
- return 0x3c1b4f0d
-}
-
-// Represents a [bot mini app that can be launched from the attachment/side menu ยป](https://core.telegram.org/api/bots/attach)
+// Represents a bot mini app that can be launched from the attachment/side menu ยป
type AttachMenuBot struct {
Inactive bool `tl:"flag:0,encoded_in_bitflags"`
HasSettings bool `tl:"flag:1,encoded_in_bitflags"`
@@ -252,7 +253,7 @@ func (*AttachMenuBot) FlagIndex() int {
return 0
}
-// Represents an attachment menu icon for [bot mini apps ยป](https://core.telegram.org/api/bots/attach)
+// Represents an attachment menu icon for bot mini apps ยป
type AttachMenuBotIcon struct {
Name string
Icon Document
@@ -267,7 +268,7 @@ func (*AttachMenuBotIcon) FlagIndex() int {
return 0
}
-// Represents an attachment menu icon color for [bot mini apps ยป](https://core.telegram.org/api/bots/attach)
+// Represents an attachment menu icon color for bot mini apps ยป
type AttachMenuBotIconColor struct {
Name string
Color int32
@@ -277,7 +278,7 @@ func (*AttachMenuBotIconColor) CRC() uint32 {
return 0x4576f3f0
}
-// Represents a [bot mini app that can be launched from the attachment menu ยป](https://core.telegram.org/api/bots/attach)
+// Represents a bot mini app that can be launched from the attachment menu ยป
type AttachMenuBotsBot struct {
Bot *AttachMenuBot
Users []User
@@ -297,7 +298,7 @@ func (*AuthExportedAuthorization) CRC() uint32 {
return 0xb434e2b8
}
-// [Future auth token ยป](https://core.telegram.org/api/auth#future-auth-tokens) to be used on subsequent authorizations
+// Future auth token ยป to be used on subsequent authorizations
type AuthLoggedOut struct {
FutureAuthToken []byte `tl:"flag:0"`
}
@@ -310,7 +311,7 @@ func (*AuthLoggedOut) FlagIndex() int {
return 0
}
-// Recovery info of a [2FA password](https://core.telegram.org/api/srp), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp#email-verification).
+// Recovery info of a 2FA password, only for accounts with a recovery email configured.
type AuthPasswordRecovery struct {
EmailPattern string
}
@@ -397,7 +398,7 @@ func (*AutoSaveSettings) FlagIndex() int {
return 0
}
-// Represents a [message effect ยป](https://core.telegram.org/api/effects).
+// Represents a message effect ยป.
type AvailableEffect struct {
PremiumRequired bool `tl:"flag:2,encoded_in_bitflags"`
ID int64
@@ -448,7 +449,7 @@ func (*BankCardOpenURL) CRC() uint32 {
return 0xf568028a
}
-// [Birthday](https://core.telegram.org/api/profile#birthday) information for a user.
+// Birthday information for a user.
type Birthday struct {
Day int32
Month int32
@@ -463,7 +464,7 @@ func (*Birthday) FlagIndex() int {
return 0
}
-// Info about one or more [boosts](https://core.telegram.org/api/boost) applied by a specific user.
+// Info about one or more boosts applied by a specific user.
type Boost struct {
Gift bool `tl:"flag:1,encoded_in_bitflags"`
Giveaway bool `tl:"flag:2,encoded_in_bitflags"`
@@ -486,6 +487,21 @@ func (*Boost) FlagIndex() int {
return 0
}
+/*
+
+botAppSettings#c99b1950 flags:# placeholder_path:flags.0?bytes background_color:flags.1?int background_dark_color:flags.2?int header_color:flags.3?int header_dark_color:flags.4?int = BotAppSettings;
+*/
type BotAppSettings struct {
PlaceholderPath []byte `tl:"flag:0"`
BackgroundColor int32 `tl:"flag:1"`
@@ -502,7 +518,7 @@ func (*BotAppSettings) FlagIndex() int {
return 0
}
-// Contains info about a [bot business connection](https://core.telegram.org/api/business#connected-bots).
+// Contains info about a bot business connection.
type BotBusinessConnection struct {
CanReply bool `tl:"flag:0,encoded_in_bitflags"`
Disabled bool `tl:"flag:1,encoded_in_bitflags"`
@@ -551,7 +567,7 @@ func (*BotInfo) FlagIndex() int {
return 0
}
-// Represents a [Main Mini App preview media, see here ยป](https://core.telegram.org/api/bots/webapps#main-mini-app-previews) for more info.
+// Represents a Main Mini App preview media, see here ยป for more info.
type BotPreviewMedia struct {
Date int32
Media MessageMedia
@@ -572,7 +588,7 @@ func (*BotsBotInfo) CRC() uint32 {
return 0xe8a775b0
}
-// Popular [Main Mini Apps](https://core.telegram.org/api/bots/webapps#main-mini-apps), to be used in the [apps tab of global search ยป](https://core.telegram.org/api/search#apps-tab).
+// Popular Main Mini Apps, to be used in the apps tab of global search ยป.
type BotsPopularAppBots struct {
NextOffset string `tl:"flag:0"`
Users []User
@@ -586,7 +602,7 @@ func (*BotsPopularAppBots) FlagIndex() int {
return 0
}
-// Contains info about [Main Mini App previews, see here ยป](https://core.telegram.org/api/bots/webapps#main-mini-app-previews) for more info.
+// Contains info about Main Mini App previews, see here ยป for more info.
type BotsPreviewInfo struct {
Media []*BotPreviewMedia
LangCodes []string
@@ -596,7 +612,7 @@ func (*BotsPreviewInfo) CRC() uint32 {
return 0xca71d64
}
-// Describes [channel ad revenue balances ยป](https://core.telegram.org/api/revenue).
+// Describes channel ad revenue balances ยป.
type BroadcastRevenueBalances struct {
WithdrawalEnabled bool `tl:"flag:0,encoded_in_bitflags"`
CurrentBalance int64
@@ -612,7 +628,7 @@ func (*BroadcastRevenueBalances) FlagIndex() int {
return 0
}
-// Describes a [Telegram Business away message](https://core.telegram.org/api/business#away-messages), automatically sent to users writing to us when we're offline, during closing hours, while we're on vacation, or in some other custom time period when we cannot immediately answer to the user.
+// Describes a Telegram Business away message, automatically sent to users writing to us when we're offline, during closing hours, while we're on vacation, or in some other custom time period when we cannot immediately answer to the user.
type BusinessAwayMessage struct {
OfflineOnly bool `tl:"flag:0,encoded_in_bitflags"`
ShortcutID int32
@@ -628,7 +644,7 @@ func (*BusinessAwayMessage) FlagIndex() int {
return 0
}
-// Specifies the private chats that a [connected business bot ยป](https://core.telegram.org/api/business#connected-bots) may receive messages and interact with.
+// Specifies the private chats that a connected business bot ยป may receive messages and interact with.
type BusinessBotRecipients struct {
ExistingChats bool `tl:"flag:0,encoded_in_bitflags"`
NewChats bool `tl:"flag:1,encoded_in_bitflags"`
@@ -647,7 +663,7 @@ func (*BusinessBotRecipients) FlagIndex() int {
return 0
}
-// Contains info about a [business chat deep link ยป](https://core.telegram.org/api/business#business-chat-links) created by the current account.
+// Contains info about a business chat deep link ยป created by the current account.
type BusinessChatLink struct {
Link string
Message string
@@ -664,7 +680,7 @@ func (*BusinessChatLink) FlagIndex() int {
return 0
}
-// Describes a [Telegram Business greeting](https://core.telegram.org/api/business#greeting-messages), automatically sent to new users writing to us in private for the first time, or after a certain inactivity period.
+// Describes a Telegram Business greeting, automatically sent to new users writing to us in private for the first time, or after a certain inactivity period.
type BusinessGreetingMessage struct {
ShortcutID int32
Recipients *BusinessRecipients
@@ -675,7 +691,7 @@ func (*BusinessGreetingMessage) CRC() uint32 {
return 0xe519abab
}
-// [Telegram Business introduction ยป](https://core.telegram.org/api/business#business-introduction).
+// Telegram Business introduction ยป.
type BusinessIntro struct {
Title string
Description string
@@ -690,7 +706,7 @@ func (*BusinessIntro) FlagIndex() int {
return 0
}
-// Represents the location of a [Telegram Business ยป](https://core.telegram.org/api/business#location).
+// Represents the location of a Telegram Business ยป.
type BusinessLocation struct {
GeoPoint GeoPoint `tl:"flag:0"`
Address string
@@ -704,7 +720,7 @@ func (*BusinessLocation) FlagIndex() int {
return 0
}
-// Specifies the chats that can receive Telegram Business [away ยป](https://core.telegram.org/api/business#away-messages) and [greeting ยป](https://core.telegram.org/api/business#greeting-messages) messages.
+// Specifies the chats that can receive Telegram Business away ยป and greeting ยป messages.
type BusinessRecipients struct {
ExistingChats bool `tl:"flag:0,encoded_in_bitflags"`
NewChats bool `tl:"flag:1,encoded_in_bitflags"`
@@ -732,7 +748,7 @@ func (*BusinessWeeklyOpen) CRC() uint32 {
return 0x120b1ab9
}
-// Specifies a set of [Telegram Business opening hours](https://core.telegram.org/api/business#opening-hours).
+// Specifies a set of Telegram Business opening hours.
type BusinessWorkHours struct {
OpenNow bool `tl:"flag:0,encoded_in_bitflags"`
TimezoneID string
@@ -747,7 +763,7 @@ func (*BusinessWorkHours) FlagIndex() int {
return 0
}
-// Configuration for [CDN](https://core.telegram.org/cdn) file downloads.
+// Configuration for CDN file downloads.
type CdnConfig struct {
PublicKeys []*CdnPublicKey
}
@@ -756,7 +772,7 @@ func (*CdnConfig) CRC() uint32 {
return 0x5725e40a
}
-// Public key to use only during handshakes to [CDN](https://core.telegram.org/cdn) DCs.
+// Public key to use only during handshakes to CDN DCs.
type CdnPublicKey struct {
DcID int32
PublicKey string
@@ -842,7 +858,7 @@ func (*ChannelsSendAsPeers) CRC() uint32 {
return 0xf496b0c6
}
-// Represents the rights of an admin in a [channel/supergroup](https://core.telegram.org/api/channel).
+// Represents the rights of an admin in a channel/supergroup.
type ChatAdminRights struct {
ChangeInfo bool `tl:"flag:0,encoded_in_bitflags"`
PostMessages bool `tl:"flag:1,encoded_in_bitflags"`
@@ -880,7 +896,7 @@ func (*ChatAdminWithInvites) CRC() uint32 {
return 0xf2ecef23
}
-// Represents the rights of a normal user in a [supergroup/channel/chat](https://core.telegram.org/api/channel). In this case, the flags are inverted: if set, a flag does not allow a user to do X.
+// Represents the rights of a normal user in a supergroup/channel/chat. In this case, the flags are inverted: if set, a flag does not allow a user to do X.
type ChatBannedRights struct {
ViewMessages bool `tl:"flag:0,encoded_in_bitflags"`
SendMessages bool `tl:"flag:1,encoded_in_bitflags"`
@@ -940,7 +956,7 @@ func (*ChatOnlines) CRC() uint32 {
return 0xf041e250
}
-// Updated information about a [chat folder deep link ยป](https://core.telegram.org/api/links#chat-folder-links).
+// Updated information about a chat folder deep link ยป.
type ChatlistsChatlistUpdates struct {
MissingPeers []Peer
Chats []Chat
@@ -951,7 +967,7 @@ func (*ChatlistsChatlistUpdates) CRC() uint32 {
return 0x93bd878d
}
-// Info about an exported [chat folder deep link ยป](https://core.telegram.org/api/links#chat-folder-links).
+// Info about an exported chat folder deep link ยป.
type ChatlistsExportedChatlistInvite struct {
Filter DialogFilter
Invite *ExportedChatlistInvite
@@ -961,7 +977,7 @@ func (*ChatlistsExportedChatlistInvite) CRC() uint32 {
return 0x10e6e3a6
}
-// Info about multiple [chat folder deep links ยป](https://core.telegram.org/api/links#chat-folder-links).
+// Info about multiple chat folder deep links ยป.
type ChatlistsExportedInvites struct {
Invites []*ExportedChatlistInvite
Chats []Chat
@@ -1052,7 +1068,7 @@ func (*Config) FlagIndex() int {
return 0
}
-// Contains info about a [connected business bot ยป](https://core.telegram.org/api/business#connected-bots).
+// Contains info about a connected business bot ยป.
type ConnectedBot struct {
CanReply bool `tl:"flag:0,encoded_in_bitflags"`
BotID int64
@@ -1067,6 +1083,21 @@ func (*ConnectedBot) FlagIndex() int {
return 0
}
+/*
+
+connectedBotStarRef#19a13f71 flags:# revoked:flags.1?true url:string date:int bot_id:long commission_permille:int duration_months:flags.0?int participants:long revenue:long = ConnectedBotStarRef;
+*/
type ConnectedBotStarRef struct {
Revoked bool `tl:"flag:1,encoded_in_bitflags"`
URL string
@@ -1086,16 +1117,6 @@ func (*ConnectedBotStarRef) FlagIndex() int {
return 0
}
-type ConnectedStarRefBots struct {
- Count int32
- ConnectedBots []*ConnectedBotStarRef
- Users []User
-}
-
-func (*ConnectedStarRefBots) CRC() uint32 {
- return 0x98d5ea1d
-}
-
// A contact of the current user that is registered in the system.
type Contact struct {
UserID int64
@@ -1211,7 +1232,7 @@ func (*DefaultHistoryTtl) CRC() uint32 {
return 0x43b46b20
}
-// Suggested [folders](https://core.telegram.org/api/folders)
+// Suggested folders
type DialogFilterSuggested struct {
Filter DialogFilter
Description string
@@ -1261,7 +1282,7 @@ func (*Error) CRC() uint32 {
return 0xc4b9f9bb
}
-// Exported [chat folder deep link ยป](https://core.telegram.org/api/links#chat-folder-links).
+// Exported chat folder deep link ยป.
type ExportedChatlistInvite struct {
Revoked bool `tl:"flag:0,encoded_in_bitflags"`
Title string
@@ -1277,7 +1298,7 @@ func (*ExportedChatlistInvite) FlagIndex() int {
return 0
}
-// Describes a [temporary profile link](https://core.telegram.org/api/links#temporary-profile-links).
+// Describes a temporary profile link.
type ExportedContactToken struct {
URL string
Expires int32
@@ -1297,7 +1318,7 @@ func (*ExportedMessageLink) CRC() uint32 {
return 0x5dab1af4
}
-// Represents a [story deep link](https://core.telegram.org/api/stories#story-links).
+// Represents a story deep link.
type ExportedStoryLink struct {
Link string
}
@@ -1306,7 +1327,7 @@ func (*ExportedStoryLink) CRC() uint32 {
return 0x3fc9053b
}
-// Represents a [fact-check ยป](https://core.telegram.org/api/factcheck) created by an independent fact-checker.
+// Represents a fact-check ยป created by an independent fact-checker.
type FactCheck struct {
NeedCheck bool `tl:"flag:0,encoded_in_bitflags"`
Country string `tl:"flag:1"`
@@ -1333,17 +1354,6 @@ func (*FileHash) CRC() uint32 {
return 0xf39b035c
}
-// File is currently unavailable.
-type FileLocationUnavailable struct {
- VolumeID int64
- LocalID int32
- Secret int64
-}
-
-func (*FileLocationUnavailable) CRC() uint32 {
- return 0x7c596b46
-}
-
// Folder
type Folder struct {
AutofillNewBroadcasts bool `tl:"flag:0,encoded_in_bitflags"`
@@ -1372,7 +1382,7 @@ func (*FolderPeer) CRC() uint32 {
return 0xe9baa668
}
-// A story found using [global story search ยป](https://core.telegram.org/api/stories#searching-stories).
+// A story found using global story search ยป.
type FoundStory struct {
Peer Peer
Story StoryItem
@@ -1382,7 +1392,7 @@ func (*FoundStory) CRC() uint32 {
return 0xe87acbc0
}
-// Info about a [fragment collectible](https://core.telegram.org/api/fragment).
+// Info about a fragment collectible.
type FragmentCollectibleInfo struct {
PurchaseDate int32
Currency string
@@ -1415,7 +1425,7 @@ func (*Game) FlagIndex() int {
return 0
}
-// Address optionally associated to a [geoPoint](https://core.telegram.org/constructor/geoPoint).
+// Address optionally associated to a geoPoint.
type GeoPointAddress struct {
CountryIso2 string
State string `tl:"flag:0"`
@@ -1516,6 +1526,16 @@ func (*GroupCallStreamChannel) CRC() uint32 {
return 0x80eb48af
}
+type HelpConfigSimple struct {
+ Date int32
+ Expires int32
+ Rules []*AccessPointRule
+}
+
+func (*HelpConfigSimple) CRC() uint32 {
+ return 0x5a592a6c
+}
+
// Name, ISO code, localized name and phone codes/patterns of a specific country
type HelpCountry struct {
Hidden bool `tl:"flag:0,encoded_in_bitflags"`
@@ -1557,7 +1577,7 @@ func (*HelpInviteText) CRC() uint32 {
return 0x18cb9f78
}
-// Contains info about a [color palette ยป](https://core.telegram.org/api/colors).
+// Contains info about a color palette ยป.
type HelpPeerColorOption struct {
Hidden bool `tl:"flag:0,encoded_in_bitflags"`
ColorID int32
@@ -1667,7 +1687,7 @@ func (*InlineBotSwitchPm) CRC() uint32 {
return 0x3c20629f
}
-// Specifies an [inline mode mini app](https://core.telegram.org/api/bots/webapps#inline-mode-mini-apps) button, shown on top of the inline query results list.
+// Specifies an inline mode mini app button, shown on top of the inline query results list.
type InlineBotWebView struct {
Text string
URL string
@@ -1689,7 +1709,7 @@ func (*InputAppEvent) CRC() uint32 {
return 0x1d1b1245
}
-// Describes a [Telegram Business away message](https://core.telegram.org/api/business#away-messages), automatically sent to users writing to us when we're offline, during closing hours, while we're on vacation, or in some other custom time period when we cannot immediately answer to the user.
+// Describes a Telegram Business away message, automatically sent to users writing to us when we're offline, during closing hours, while we're on vacation, or in some other custom time period when we cannot immediately answer to the user.
type InputBusinessAwayMessage struct {
OfflineOnly bool `tl:"flag:0,encoded_in_bitflags"`
ShortcutID int32
@@ -1705,7 +1725,7 @@ func (*InputBusinessAwayMessage) FlagIndex() int {
return 0
}
-// Specifies the private chats that a [connected business bot ยป](https://core.telegram.org/api/business#connected-bots) may interact with.
+// Specifies the private chats that a connected business bot ยป may interact with.
type InputBusinessBotRecipients struct {
ExistingChats bool `tl:"flag:0,encoded_in_bitflags"`
NewChats bool `tl:"flag:1,encoded_in_bitflags"`
@@ -1724,7 +1744,7 @@ func (*InputBusinessBotRecipients) FlagIndex() int {
return 0
}
-// Contains info about a [business chat deep link ยป](https://core.telegram.org/api/business#business-chat-links) to be created by the current account.
+// Contains info about a business chat deep link ยป to be created by the current account.
type InputBusinessChatLink struct {
Message string
Entities []MessageEntity `tl:"flag:0"`
@@ -1739,7 +1759,7 @@ func (*InputBusinessChatLink) FlagIndex() int {
return 0
}
-// Describes a [Telegram Business greeting](https://core.telegram.org/api/business#greeting-messages), automatically sent to new users writing to us in private for the first time, or after a certain inactivity period.
+// Describes a Telegram Business greeting, automatically sent to new users writing to us in private for the first time, or after a certain inactivity period.
type InputBusinessGreetingMessage struct {
ShortcutID int32
Recipients *InputBusinessRecipients
@@ -1750,7 +1770,7 @@ func (*InputBusinessGreetingMessage) CRC() uint32 {
return 0x194cb3b
}
-// [Telegram Business introduction ยป](https://core.telegram.org/api/business#business-introduction).
+// Telegram Business introduction ยป.
type InputBusinessIntro struct {
Title string
Description string
@@ -1765,7 +1785,7 @@ func (*InputBusinessIntro) FlagIndex() int {
return 0
}
-// Specifies the chats that can receive Telegram Business [away ยป](https://core.telegram.org/api/business#away-messages) and [greeting ยป](https://core.telegram.org/api/business#greeting-messages) messages.
+// Specifies the chats that can receive Telegram Business away ยป and greeting ยป messages.
type InputBusinessRecipients struct {
ExistingChats bool `tl:"flag:0,encoded_in_bitflags"`
NewChats bool `tl:"flag:1,encoded_in_bitflags"`
@@ -1792,7 +1812,7 @@ func (*InputChatlistDialogFilter) CRC() uint32 {
return 0xf3e0da33
}
-// Info about an [MTProxy](https://core.telegram.org/mtproto/mtproto-transports#transport-obfuscation) used to connect.
+// Info about an MTProxy used to connect.
type InputClientProxy struct {
Address string
Port int32
@@ -1873,7 +1893,7 @@ func (*InputPhoneContact) CRC() uint32 {
return 0xf392b7f4
}
-// Secure value, [for more info see the passport docs ยป](https://core.telegram.org/passport/encryption#encryption)
+// Secure value, for more info see the passport docs ยป
type InputSecureValue struct {
Type SecureValueType
Data *SecureData `tl:"flag:0"`
@@ -1893,7 +1913,7 @@ func (*InputSecureValue) FlagIndex() int {
return 0
}
-// A single media in an [album or grouped media](https://core.telegram.org/api/files#albums-grouped-media) sent with [messages.sendMultiMedia](https://core.telegram.org/method/messages.sendMultiMedia).
+// A single media in an album or grouped media sent with messages.sendMultiMedia.
type InputSingleMedia struct {
Media InputMedia
RandomID int64
@@ -1909,7 +1929,7 @@ func (*InputSingleMedia) FlagIndex() int {
return 0
}
-// Used to fetch info about a [Telegram Star transaction ยป](https://core.telegram.org/api/stars#balance-and-transaction-history).
+// Used to fetch info about a Telegram Star transaction ยป.
type InputStarsTransaction struct {
Refund bool `tl:"flag:0,encoded_in_bitflags"`
ID string
@@ -2061,7 +2081,7 @@ func (*LangPackLanguage) FlagIndex() int {
return 0
}
-// Position on a photo where a mask should be placed when [attaching stickers to media ยป](https://core.telegram.org/api/stickers#attached-stickers)
+// Position on a photo where a mask should be placed when attaching stickers to media ยป
type MaskCoords struct {
N int32
X float64
@@ -2144,7 +2164,7 @@ func (*MessageRange) CRC() uint32 {
return 0xae30253
}
-// [Message reactions ยป](https://core.telegram.org/api/reactions)
+// Message reactions ยป
type MessageReactions struct {
Min bool `tl:"flag:0,encoded_in_bitflags"`
CanSeeList bool `tl:"flag:2,encoded_in_bitflags"`
@@ -2162,6 +2182,7 @@ func (*MessageReactions) FlagIndex() int {
return 0
}
+// Info about a user in the paid Star reactions leaderboard for a message.
type MessageReactor struct {
Top bool `tl:"flag:0,encoded_in_bitflags"`
My bool `tl:"flag:1,encoded_in_bitflags"`
@@ -2178,7 +2199,7 @@ func (*MessageReactor) FlagIndex() int {
return 0
}
-// Info about [the comment section of a channel post, or a simple message thread](https://core.telegram.org/api/threads)
+// Info about the comment section of a channel post, or a simple message thread
type MessageReplies struct {
Comments bool `tl:"flag:0,encoded_in_bitflags"`
Replies int32
@@ -2197,6 +2218,7 @@ func (*MessageReplies) FlagIndex() int {
return 0
}
+// Report menu option
type MessageReportOption struct {
Text string
Option []byte
@@ -2264,7 +2286,7 @@ func (*MessagesArchivedStickers) CRC() uint32 {
return 0x4fcba9c8
}
-// Contains information about a [direct link Mini App](https://core.telegram.org/api/bots/webapps#direct-link-mini-apps)
+// Contains information about a direct link Mini App
type MessagesBotApp struct {
Inactive bool `tl:"flag:0,encoded_in_bitflags"`
RequestWriteAccess bool `tl:"flag:1,encoded_in_bitflags"`
@@ -2298,6 +2320,21 @@ func (*MessagesBotCallbackAnswer) FlagIndex() int {
return 0
}
+/*
+
+messages.botPreparedInlineMessage#8ecf0511 id:string expire_date:int = messages.BotPreparedInlineMessage;
+*/
type MessagesBotPreparedInlineMessage struct {
ID string
ExpireDate int32
@@ -2337,7 +2374,7 @@ func (*MessagesChatAdminsWithInvites) CRC() uint32 {
return 0xb69b72d7
}
-// Full info about a [channel](https://core.telegram.org/api/channel#channels), [supergroup](https://core.telegram.org/api/channel#supergroups), [gigagroup](https://core.telegram.org/api/channel#gigagroups) or [basic group](https://core.telegram.org/api/channel#basic-groups).
+// Full info about a channel, supergroup, gigagroup or basic group.
type MessagesChatFull struct {
FullChat ChatFull
Chats []Chat
@@ -2359,7 +2396,7 @@ func (*MessagesChatInviteImporters) CRC() uint32 {
return 0x81b6b00a
}
-// Contains a confirmation text to be shown to the user, upon [importing chat history, click here for more info ยป](https://core.telegram.org/api/import).
+// Contains a confirmation text to be shown to the user, upon importing chat history, click here for more info ยป.
type MessagesCheckedHistoryImportPeer struct {
ConfirmText string
}
@@ -2368,7 +2405,7 @@ func (*MessagesCheckedHistoryImportPeer) CRC() uint32 {
return 0xa24de717
}
-// [Folder and folder tags](https://core.telegram.org/api/folders) information
+// Folder and folder tags information
type MessagesDialogFilters struct {
TagsEnabled bool `tl:"flag:0,encoded_in_bitflags"`
Filters []DialogFilter
@@ -2382,7 +2419,7 @@ func (*MessagesDialogFilters) FlagIndex() int {
return 0
}
-// Information about a [message thread](https://core.telegram.org/api/threads)
+// Information about a message thread
type MessagesDiscussionMessage struct {
Messages []Message
MaxID int32 `tl:"flag:0"`
@@ -2412,7 +2449,7 @@ func (*MessagesExportedChatInvites) CRC() uint32 {
return 0xbdc62dcc
}
-// Contains information about multiple [forum topics](https://core.telegram.org/api/forum#forum-topics)
+// Contains information about multiple forum topics
type MessagesForumTopics struct {
OrderByCreateDate bool `tl:"flag:0,encoded_in_bitflags"`
Count int32
@@ -2441,7 +2478,7 @@ func (*MessagesHighScores) CRC() uint32 {
return 0x9a3bfd99
}
-// ID of a specific [chat import session, click here for more info ยป](https://core.telegram.org/api/import).
+// ID of a specific chat import session, click here for more info ยป.
type MessagesHistoryImport struct {
ID int64
}
@@ -2451,7 +2488,7 @@ func (*MessagesHistoryImport) CRC() uint32 {
}
/*
-Contains information about a chat export file [generated by a foreign chat app, click here for more info](https://core.telegram.org/api/import).
+Contains information about a chat export file generated by a foreign chat app, click here for more info.
If neither the `pm` or `group` flags are set, the specified chat export was generated from a chat of unknown type.
*/
type MessagesHistoryImportParsed struct {
@@ -2479,7 +2516,7 @@ func (*MessagesInactiveChats) CRC() uint32 {
return 0xa927fec5
}
-// Contains info about successfully or unsuccessfully [invited ยป](https://core.telegram.org/api/invites#direct-invites) users.
+// Contains info about successfully or unsuccessfully invited ยป users.
type MessagesInvitedUsers struct {
Updates Updates
MissingInvitees []*MissingInvitee
@@ -2530,7 +2567,7 @@ func (*MessagesMessageViews) CRC() uint32 {
return 0xb6c4f543
}
-// The list of [stickersets owned by the current account ยป](https://core.telegram.org/api/stickers).
+// The list of stickersets owned by the current account ยป.
type MessagesMyStickers struct {
Count int32
Sets []StickerSetCovered
@@ -2564,6 +2601,21 @@ func (*MessagesPeerSettings) CRC() uint32 {
return 0x6880b94d
}
+/*
+
+messages.preparedInlineMessage#ff57708d query_id:long result:BotInlineResult peer_types:Vector<InlineQueryPeerType> cache_time:int users:Vector<User> = messages.PreparedInlineMessage;
+*/
type MessagesPreparedInlineMessage struct {
QueryID int64
Result BotInlineResult
@@ -2576,7 +2628,7 @@ func (*MessagesPreparedInlineMessage) CRC() uint32 {
return 0xff57708d
}
-// Indicates how many results would be found by a [messages.search](https://core.telegram.org/method/messages.search) call with the same parameters
+// Indicates how many results would be found by a messages.search call with the same parameters
type MessagesSearchCounter struct {
Inexact bool `tl:"flag:1,encoded_in_bitflags"`
Filter MessagesFilter
@@ -2622,7 +2674,7 @@ func (*MessagesSearchResultsPositions) CRC() uint32 {
return 0x53b22baf
}
-// [Transcribed text from a voice message ยป](https://core.telegram.org/api/transcribe)
+// Transcribed text from a voice message ยป
type MessagesTranscribedAudio struct {
Pending bool `tl:"flag:0,encoded_in_bitflags"`
TranscriptionID int64
@@ -2639,7 +2691,7 @@ func (*MessagesTranscribedAudio) FlagIndex() int {
return 0
}
-// Translated text with [entities](https://core.telegram.org/api/entities)
+// Translated text with entities
type MessagesTranslateResult struct {
Result []*TextWithEntities
}
@@ -2685,7 +2737,7 @@ func (*MessagesWebViewResult) CRC() uint32 {
return 0xaadf159b
}
-// Info about why a specific user could not be [invited ยป](https://core.telegram.org/api/invites#direct-invites).
+// Info about why a specific user could not be invited ยป.
type MissingInvitee struct {
PremiumWouldAllowInvite bool `tl:"flag:0,encoded_in_bitflags"`
PremiumRequiredForPm bool `tl:"flag:1,encoded_in_bitflags"`
@@ -2700,7 +2752,7 @@ func (*MissingInvitee) FlagIndex() int {
return 0
}
-// Contains information about a single [boost slot ยป](https://core.telegram.org/api/boost).
+// Contains information about a single boost slot ยป.
type MyBoost struct {
Slot int32
Peer Peer `tl:"flag:0"`
@@ -2737,7 +2789,7 @@ func (*OutboxReadDate) CRC() uint32 {
return 0x3bb842ac
}
-// [Instant view](https://core.telegram.orghttps://instantview.telegram.org) page
+// Instant view page
type Page struct {
Part bool `tl:"flag:0,encoded_in_bitflags"`
Rtl bool `tl:"flag:1,encoded_in_bitflags"`
@@ -2871,7 +2923,7 @@ func (*PaymentsBankCardData) CRC() uint32 {
return 0x3e24e573
}
-// Contains info about a [Telegram Premium giftcode link](https://core.telegram.org/api/links#premium-giftcode-links).
+// Contains info about a Telegram Premium giftcode link.
type PaymentsCheckedGiftCode struct {
ViaGiveaway bool `tl:"flag:2,encoded_in_bitflags"`
FromID Peer `tl:"flag:4"`
@@ -2892,7 +2944,32 @@ func (*PaymentsCheckedGiftCode) FlagIndex() int {
return 0
}
-// Exported [invoice deep link](https://core.telegram.org/api/links#invoice-links)
+/*
+
+payments.connectedStarRefBots#98d5ea1d count:int connected_bots:Vector<ConnectedBotStarRef> users:Vector<User> = payments.ConnectedStarRefBots;
+*/
+type PaymentsConnectedStarRefBots struct {
+ Count int32
+ ConnectedBots []*ConnectedBotStarRef
+ Users []User
+}
+
+func (*PaymentsConnectedStarRefBots) CRC() uint32 {
+ return 0x98d5ea1d
+}
+
+// Exported invoice deep link
type PaymentsExportedInvoice struct {
URL string
}
@@ -2915,7 +2992,7 @@ func (*PaymentsSavedInfo) FlagIndex() int {
return 0
}
-// Contains a URL leading to a page where the user will be able to place ads for the channel/bot, paying using [Telegram Stars](https://core.telegram.org/api/stars#paying-for-ads).
+// Contains a URL leading to a page where the user will be able to place ads for the channel/bot, paying using Telegram Stars.
type PaymentsStarsRevenueAdsAccountURL struct {
URL string
}
@@ -2924,7 +3001,7 @@ func (*PaymentsStarsRevenueAdsAccountURL) CRC() uint32 {
return 0x394e7f21
}
-// [Star revenue statistics, see here ยป](https://core.telegram.org/api/stars) for more info.
+// Star revenue statistics, see here ยป for more info.
type PaymentsStarsRevenueStats struct {
RevenueGraph StatsGraph
Status *StarsRevenueStatus
@@ -2935,7 +3012,7 @@ func (*PaymentsStarsRevenueStats) CRC() uint32 {
return 0xc92bb73b
}
-// Contains the URL to use to [withdraw Telegram Star revenue](https://core.telegram.org/api/stars#withdrawing-revenue).
+// Contains the URL to use to withdraw Telegram Star revenue.
type PaymentsStarsRevenueWithdrawalURL struct {
URL string
}
@@ -2944,7 +3021,7 @@ func (*PaymentsStarsRevenueWithdrawalURL) CRC() uint32 {
return 0x1dab80b7
}
-// Info about the current [Telegram Star balance and transaction history ยป](https://core.telegram.org/api/stars#balance-and-transaction-history).
+// Info about the current Telegram Star subscriptions, balance and transaction history ยป.
type PaymentsStarsStatus struct {
Balance *StarsAmount
Subscriptions []*StarsSubscription `tl:"flag:1"`
@@ -2964,6 +3041,37 @@ func (*PaymentsStarsStatus) FlagIndex() int {
return 0
}
+/*
+
+payments.suggestedStarRefBots#b4d5d859 flags:# count:int suggested_bots:Vector<StarRefProgram> users:Vector<User> next_offset:flags.0?string = payments.SuggestedStarRefBots;
+*/
+type PaymentsSuggestedStarRefBots struct {
+ Count int32
+ SuggestedBots []*StarRefProgram
+ Users []User
+ NextOffset string `tl:"flag:0"`
+}
+
+func (*PaymentsSuggestedStarRefBots) CRC() uint32 {
+ return 0xb4d5d859
+}
+
+func (*PaymentsSuggestedStarRefBots) FlagIndex() int {
+ return 0
+}
+
+// Gifts displayed on a user's profile.
type PaymentsUserStarGifts struct {
Count int32
Gifts []*UserStarGift
@@ -3003,7 +3111,7 @@ func (*PeerBlocked) CRC() uint32 {
return 0xe8fd8014
}
-// Represents a [color palette ยป](https://core.telegram.org/api/colors).
+// Represents a color palette ยป.
type PeerColor struct {
Color int32 `tl:"flag:0"`
BackgroundEmojiID int64 `tl:"flag:1"`
@@ -3040,7 +3148,7 @@ func (*PeerNotifySettings) FlagIndex() int {
return 0
}
-// List of actions that are possible when interacting with this user, to be shown as suggested actions in the [chat action bar ยป](https://core.telegram.org/api/action-bar), see [here ยป](https://core.telegram.org/api/action-bar) for more info.
+// List of actions that are possible when interacting with this user, to be shown as suggested actions in the chat action bar ยป, see here ยป for more info.
type PeerSettings struct {
ReportSpam bool `tl:"flag:0,encoded_in_bitflags"`
AddContact bool `tl:"flag:1,encoded_in_bitflags"`
@@ -3068,7 +3176,7 @@ func (*PeerSettings) FlagIndex() int {
return 0
}
-// [Stories](https://core.telegram.org/api/stories) associated to a peer
+// Stories associated to a peer
type PeerStories struct {
Peer Peer
MaxReadID int32 `tl:"flag:0"`
@@ -3275,7 +3383,7 @@ func (*PostAddress) CRC() uint32 {
return 0x1e8caaeb
}
-// List of [boosts](https://core.telegram.org/api/boost) that were applied to a peer by multiple users.
+// List of boosts that were applied to a peer by multiple users.
type PremiumBoostsList struct {
Count int32
Boosts []*Boost
@@ -3291,7 +3399,7 @@ func (*PremiumBoostsList) FlagIndex() int {
return 0
}
-// Contains info about the current [boost status](https://core.telegram.org/api/boost) of a peer.
+// Contains info about the current boost status of a peer.
type PremiumBoostsStatus struct {
MyBoost bool `tl:"flag:2,encoded_in_bitflags"`
Level int32
@@ -3313,7 +3421,7 @@ func (*PremiumBoostsStatus) FlagIndex() int {
return 0
}
-// A list of peers we are currently [boosting](https://core.telegram.org/api/boost), and how many [boost slots](https://core.telegram.org/api/boost) we have left.
+// A list of peers we are currently boosting, and how many boost slots we have left.
type PremiumMyBoosts struct {
MyBoosts []*MyBoost
Chats []Chat
@@ -3324,7 +3432,7 @@ func (*PremiumMyBoosts) CRC() uint32 {
return 0x9ae228e2
}
-// Contains info about a [giveaway/gift](https://core.telegram.org/api/giveaways) option.
+// Contains info about a giveaway/gift option.
type PremiumGiftCodeOption struct {
Users int32
Months int32
@@ -3379,7 +3487,7 @@ func (*PremiumSubscriptionOption) FlagIndex() int {
return 0
}
-// A [quick reply shortcut](https://core.telegram.org/api/business#quick-reply-shortcuts).
+// A quick reply shortcut.
type QuickReply struct {
ShortcutID int32
Shortcut string
@@ -3406,7 +3514,7 @@ func (*ReactionCount) FlagIndex() int {
return 0
}
-// Reaction notification settings, see [here ยป](https://core.telegram.org/api/reactions#notifications-about-reactions) for more info.
+// Reaction notification settings, see here ยป for more info.
type ReactionsNotifySettings struct {
MessagesNotifyFrom ReactionNotificationsFrom `tl:"flag:0"`
StoriesNotifyFrom ReactionNotificationsFrom `tl:"flag:1"`
@@ -3453,7 +3561,7 @@ func (*RestrictionReason) CRC() uint32 {
return 0xd072acb4
}
-// Represents a [saved dialog ยป](https://core.telegram.org/api/saved-messages).
+// Represents a saved dialog ยป.
type SavedDialog struct {
Pinned bool `tl:"flag:2,encoded_in_bitflags"`
Peer Peer
@@ -3480,7 +3588,7 @@ func (*SavedPhoneContact) CRC() uint32 {
return 0x1142bd56
}
-// Info about a [saved message reaction tag ยป](https://core.telegram.org/api/saved-messages#tags).
+// Info about a saved message reaction tag ยป.
type SavedReactionTag struct {
Reaction Reaction
Title string `tl:"flag:0"`
@@ -3506,7 +3614,7 @@ func (*SearchResultPosition) CRC() uint32 {
return 0x7f648b67
}
-// Information about found messages sent on a specific day, used to split the `messages` in [messages.searchResultsCalendar](https://core.telegram.org/constructor/messages.searchResultsCalendar) constructors by days.
+// Information about found messages sent on a specific day, used to split the `messages` in messages.searchResultsCalendar constructors by days.
type SearchResultsCalendarPeriod struct {
Date int32
MinMsgID int32
@@ -3518,7 +3626,7 @@ func (*SearchResultsCalendarPeriod) CRC() uint32 {
return 0xc9b0539f
}
-// Encrypted credentials required to decrypt [telegram passport](https://core.telegram.org/passport) data.
+// Encrypted credentials required to decrypt telegram passport data.
type SecureCredentialsEncrypted struct {
Data []byte
Hash []byte
@@ -3529,7 +3637,7 @@ func (*SecureCredentialsEncrypted) CRC() uint32 {
return 0x33f0ea47
}
-// Secure [passport](https://core.telegram.org/passport) data, for more info [see the passport docs ยป](https://core.telegram.org/passport/encryption#securedata)
+// Secure passport data, for more info see the passport docs ยป
type SecureData struct {
Data []byte
DataHash []byte
@@ -3607,15 +3715,6 @@ func (*ShippingOption) CRC() uint32 {
return 0xb6213cdf
}
-// Contains the webview URL with appropriate theme parameters added
-type SimpleWebViewResultURL struct {
- URL string
-}
-
-func (*SimpleWebViewResultURL) CRC() uint32 {
- return 0x882f76bb
-}
-
// Info about an SMS job.
type SmsJob struct {
JobID string
@@ -3657,7 +3756,7 @@ func (*SmsjobsStatus) FlagIndex() int {
return 0
}
-// A [sponsored message](https://core.telegram.org/api/sponsored-messages).
+// A sponsored message.
type SponsoredMessage struct {
Recommended bool `tl:"flag:5,encoded_in_bitflags"`
CanReport bool `tl:"flag:12,encoded_in_bitflags"`
@@ -3682,7 +3781,7 @@ func (*SponsoredMessage) FlagIndex() int {
return 0
}
-// A [report option for a sponsored message ยป](https://core.telegram.org/api/sponsored-messages#reporting-sponsored-messages).
+// A report option for a sponsored message ยป.
type SponsoredMessageReportOption struct {
Text string
Option []byte
@@ -3692,6 +3791,7 @@ func (*SponsoredMessageReportOption) CRC() uint32 {
return 0x430d3150
}
+// Represents a star gift, see here ยป for more info.
type StarGift struct {
Limited bool `tl:"flag:0,encoded_in_bitflags"`
SoldOut bool `tl:"flag:1,encoded_in_bitflags"`
@@ -3714,6 +3814,21 @@ func (*StarGift) FlagIndex() int {
return 0
}
+/*
+
+starRefProgram#dd0c66f2 flags:# bot_id:long commission_permille:int duration_months:flags.0?int end_date:flags.1?int daily_revenue_per_user:flags.2?StarsAmount = StarRefProgram;
+*/
type StarRefProgram struct {
BotID int64
CommissionPermille int32
@@ -3730,6 +3845,21 @@ func (*StarRefProgram) FlagIndex() int {
return 0
}
+/*
+
+starsAmount#bbb6b4a3 amount:long nanos:int = StarsAmount;
+*/
type StarsAmount struct {
Amount int64
Nanos int32
@@ -3739,7 +3869,7 @@ func (*StarsAmount) CRC() uint32 {
return 0xbbb6b4a3
}
-// [Telegram Stars gift option](https://core.telegram.org/api/stars#buying-or-gifting-stars).
+// Telegram Stars gift option.
type StarsGiftOption struct {
Extended bool `tl:"flag:1,encoded_in_bitflags"`
Stars int64
@@ -3756,6 +3886,7 @@ func (*StarsGiftOption) FlagIndex() int {
return 0
}
+// Contains info about a Telegram Star giveaway option.
type StarsGiveawayOption struct {
Extended bool `tl:"flag:0,encoded_in_bitflags"`
Default bool `tl:"flag:1,encoded_in_bitflags"`
@@ -3775,6 +3906,7 @@ func (*StarsGiveawayOption) FlagIndex() int {
return 0
}
+// Allowed options for the number of giveaway winners.
type StarsGiveawayWinnersOption struct {
Default bool `tl:"flag:0,encoded_in_bitflags"`
Users int32
@@ -3789,23 +3921,24 @@ func (*StarsGiveawayWinnersOption) FlagIndex() int {
return 0
}
-// Describes [Telegram Star revenue balances ยป](https://core.telegram.org/api/stars).
+// Describes Telegram Star revenue balances ยป.
type StarsRevenueStatus struct {
WithdrawalEnabled bool `tl:"flag:0,encoded_in_bitflags"`
- CurrentBalance int64
- AvailableBalance int64
- OverallRevenue int64
+ CurrentBalance *StarsAmount
+ AvailableBalance *StarsAmount
+ OverallRevenue *StarsAmount
NextWithdrawalAt int32 `tl:"flag:1"`
}
func (*StarsRevenueStatus) CRC() uint32 {
- return 0x79342946
+ return 0xfebe5491
}
func (*StarsRevenueStatus) FlagIndex() int {
return 0
}
+// Represents a Telegram Star subscription ยป.
type StarsSubscription struct {
Canceled bool `tl:"flag:0,encoded_in_bitflags"`
CanRefulfill bool `tl:"flag:1,encoded_in_bitflags"`
@@ -3829,6 +3962,7 @@ func (*StarsSubscription) FlagIndex() int {
return 0
}
+// Pricing of a Telegram Star subscription ยป.
type StarsSubscriptionPricing struct {
Period int32
Amount int64
@@ -3838,7 +3972,7 @@ func (*StarsSubscriptionPricing) CRC() uint32 {
return 0x5416d58
}
-// [Telegram Stars topup option](https://core.telegram.org/api/stars).
+// Telegram Stars topup option.
type StarsTopupOption struct {
Extended bool `tl:"flag:1,encoded_in_bitflags"`
Stars int64
@@ -3855,7 +3989,7 @@ func (*StarsTopupOption) FlagIndex() int {
return 0
}
-// Represents a [Telegram Stars transaction ยป](https://core.telegram.org/api/stars).
+// Represents a Telegram Stars transaction ยป.
type StarsTransaction struct {
Refund bool `tl:"flag:3,encoded_in_bitflags"`
Pending bool `tl:"flag:4,encoded_in_bitflags"`
@@ -3893,7 +4027,7 @@ func (*StarsTransaction) FlagIndex() int {
return 0
}
-// [Channel revenue ad statistics, see here ยป](https://core.telegram.org/api/revenue) for more info.
+// Channel revenue ad statistics, see here ยป for more info.
type StatsBroadcastRevenueStats struct {
TopHoursGraph StatsGraph
RevenueGraph StatsGraph
@@ -3905,7 +4039,7 @@ func (*StatsBroadcastRevenueStats) CRC() uint32 {
return 0x5407e297
}
-// [Channel ad revenue transactions ยป](https://core.telegram.org/api/revenue).
+// Channel ad revenue transactions ยป.
type StatsBroadcastRevenueTransactions struct {
Count int32
Transactions []BroadcastRevenueTransaction
@@ -3915,7 +4049,7 @@ func (*StatsBroadcastRevenueTransactions) CRC() uint32 {
return 0x87158466
}
-// Contains the URL to use to [withdraw channel ad revenue](https://core.telegram.org/api/revenue#withdrawing-revenue).
+// Contains the URL to use to withdraw channel ad revenue.
type StatsBroadcastRevenueWithdrawalURL struct {
URL string
}
@@ -3924,7 +4058,7 @@ func (*StatsBroadcastRevenueWithdrawalURL) CRC() uint32 {
return 0xec659737
}
-// [Channel statistics](https://core.telegram.org/api/stats).
+// Channel statistics.
type StatsBroadcastStats struct {
Period *StatsDateRangeDays
Followers *StatsAbsValueAndPrev
@@ -3954,7 +4088,7 @@ func (*StatsBroadcastStats) CRC() uint32 {
return 0x396ca5fc
}
-// Supergroup [statistics](https://core.telegram.org/api/stats)
+// Supergroup statistics
type StatsMegagroupStats struct {
Period *StatsDateRangeDays
Members *StatsAbsValueAndPrev
@@ -3989,7 +4123,7 @@ func (*StatsMessageStats) CRC() uint32 {
return 0x7fe91c14
}
-// Contains info about the forwards of a [story](https://core.telegram.org/api/stories) as a message to public chats and reposts by public channels.
+// Contains info about the forwards of a story as a message to public chats and reposts by public channels.
type StatsPublicForwards struct {
Count int32
Forwards []PublicForward
@@ -4006,7 +4140,7 @@ func (*StatsPublicForwards) FlagIndex() int {
return 0
}
-// Contains [statistics](https://core.telegram.org/api/stats) about a [story](https://core.telegram.org/api/stories).
+// Contains statistics about a story.
type StatsStoryStats struct {
ViewsGraph StatsGraph
ReactionsByEmotionGraph StatsGraph
@@ -4026,7 +4160,7 @@ func (*StatsAbsValueAndPrev) CRC() uint32 {
return 0xcb43acde
}
-// [Channel statistics](https://core.telegram.org/api/stats) date range
+// Channel statistics date range
type StatsDateRangeDays struct {
MinDate int32
MaxDate int32
@@ -4070,7 +4204,7 @@ func (*StatsGroupTopPoster) CRC() uint32 {
}
/*
-[Channel statistics percentage](https://core.telegram.org/api/stats).
+Channel statistics percentage.
Compute the percentage simply by doing `part * total / 100`
*/
type StatsPercentValue struct {
@@ -4103,7 +4237,7 @@ func (*StickerKeyword) CRC() uint32 {
/*
A stickerpack is a group of stickers associated to the same emoji.
-It is not a sticker pack the way it is usually intended, you may be looking for a [StickerSet](https://core.telegram.org/type/StickerSet).
+It is not a sticker pack the way it is usually intended, you may be looking for a StickerSet.
*/
type StickerPack struct {
Emoticon string
@@ -4153,7 +4287,7 @@ func (*StickersSuggestedShortName) CRC() uint32 {
return 0x85fea03f
}
-// Stories found using [global story search ยป](https://core.telegram.org/api/stories#searching-stories).
+// Stories found using global story search ยป.
type StoriesFoundStories struct {
Count int32
Stories []*FoundStory
@@ -4170,7 +4304,7 @@ func (*StoriesFoundStories) FlagIndex() int {
return 0
}
-// [Active story list](https://core.telegram.org/api/stories#watching-stories) of a specific peer.
+// Active story list of a specific peer.
type StoriesPeerStories struct {
Stories *PeerStories
Chats []Chat
@@ -4181,7 +4315,7 @@ func (*StoriesPeerStories) CRC() uint32 {
return 0xcae68768
}
-// List of [stories](https://core.telegram.org/api/stories#pinned-or-archived-stories)
+// List of stories
type StoriesStories struct {
Count int32
Stories []StoryItem
@@ -4198,7 +4332,7 @@ func (*StoriesStories) FlagIndex() int {
return 0
}
-// List of peers that reacted to or intercated with a specific [story](https://core.telegram.org/api/stories)
+// List of peers that reacted to or intercated with a specific story
type StoriesStoryReactionsList struct {
Count int32
Reactions []StoryReaction
@@ -4215,7 +4349,7 @@ func (*StoriesStoryReactionsList) FlagIndex() int {
return 0
}
-// Reaction and view counters for a list of [stories](https://core.telegram.org/api/stories)
+// Reaction and view counters for a list of stories
type StoriesStoryViews struct {
Views []*StoryViews
Users []User
@@ -4225,7 +4359,7 @@ func (*StoriesStoryViews) CRC() uint32 {
return 0xde9eed1d
}
-// Reaction and view counters for a [story](https://core.telegram.org/api/stories)
+// Reaction and view counters for a story
type StoriesStoryViewsList struct {
Count int32
ViewsCount int32
@@ -4245,7 +4379,7 @@ func (*StoriesStoryViewsList) FlagIndex() int {
return 0
}
-// Information about the current [stealth mode](https://core.telegram.org/api/stories#stealth-mode) session.
+// Information about the current stealth mode session.
type StoriesStealthMode struct {
ActiveUntilDate int32 `tl:"flag:0"`
CooldownUntilDate int32 `tl:"flag:1"`
@@ -4275,7 +4409,7 @@ func (*StoryFwdHeader) FlagIndex() int {
return 0
}
-// Aggregated view and reaction information of a [story](https://core.telegram.org/api/stories).
+// Aggregated view and reaction information of a story.
type StoryViews struct {
HasViewers bool `tl:"flag:1,encoded_in_bitflags"`
ViewsCount int32
@@ -4293,22 +4427,7 @@ func (*StoryViews) FlagIndex() int {
return 0
}
-type SuggestedStarRefBots struct {
- Count int32
- SuggestedBots []*StarRefProgram
- Users []User
- NextOffset string `tl:"flag:0"`
-}
-
-func (*SuggestedStarRefBots) CRC() uint32 {
- return 0xb4d5d859
-}
-
-func (*SuggestedStarRefBots) FlagIndex() int {
- return 0
-}
-
-// Styled text with [message entities](https://core.telegram.org/api/entities)
+// Styled text with message entities
type TextWithEntities struct {
Text string
Entities []MessageEntity
@@ -4404,7 +4523,7 @@ func (*UpdatesState) CRC() uint32 {
return 0xa56c2a3e
}
-// Represents a chunk of an [HTTP webfile](https://core.telegram.org/api/files) downloaded through telegram's secure MTProto servers
+// Represents a chunk of an HTTP webfile downloaded through telegram's secure MTProto servers
type UploadWebFile struct {
Size int32
MimeType string
@@ -4474,6 +4593,7 @@ func (*UserFull) FlagIndex() int {
return 14
}
+// Represents a gift, displayed on a user's profile page.
type UserStarGift struct {
NameHidden bool `tl:"flag:0,encoded_in_bitflags"`
Unsaved bool `tl:"flag:5,encoded_in_bitflags"`
@@ -4519,7 +4639,7 @@ func (*UsersUserFull) CRC() uint32 {
return 0x3b6d152e
}
-// [Wallpaper](https://core.telegram.org/api/wallpapers) rendering information.
+// Wallpaper rendering information.
type WallPaperSettings struct {
Blur bool `tl:"flag:1,encoded_in_bitflags"`
Motion bool `tl:"flag:2,encoded_in_bitflags"`
@@ -4540,7 +4660,7 @@ func (*WallPaperSettings) FlagIndex() int {
return 0
}
-// Represents a bot logged in using the [Telegram login widget](https://core.telegram.org/widgets/login)
+// Represents a bot logged in using the Telegram login widget
type WebAuthorization struct {
Hash int64
BotID int64