Documentation
¶
Index ¶
- Constants
- Variables
- func ComputeDigest(algo *PasswordKdfAlgoSHA256SHA256Pbkdf2Hmacsha512Iter100000SHA256ModPow, ...) []byte
- func DefaultCodeCallback() (string, error)
- func DefaultPasswordCallback() (string, error)
- func DefaultWrongPasswordCallback(attempt, maxRetries int) bool
- func ExpectDocument() func(*ConversationStep)
- func ExpectMedia() func(*ConversationStep)
- func ExpectPhoto() func(*ConversationStep)
- func ExpectSticker() func(*ConversationStep)
- func ExpectVideo() func(*ConversationStep)
- func ExpectVoice() func(*ConversationStep)
- func FileExists(path string) bool
- func GenRandInt() int64
- func GenerateRandomLong() int64
- func GenerateWaveformWithFFmpeg(filename string) ([]byte, error)
- func GetFileName(f any, video ...bool) string
- func GetFloodWait(err error) int
- func GetInputCheckPasswordAlgo(password string, srpB []byte, mp *ige.ModPow) (*ige.SrpAnswer, error)
- func HTMLToMarkdownV2(markdown string) string
- func HandleIncomingUpdates(u any, c *Client) bool
- func InsertTagsIntoText(text string, tags []Tag) string
- func IsFfmpegInstalled() bool
- func IsPhone(phone string) bool
- func IsURL(str string) bool
- func MarshalWithTypeName(v any, noindent ...bool) string
- func MatchError(err error, str string) bool
- func MediaDownloadProgress(editMsg *NewMessage, inline ...*InputBotInlineMessageID) func(*ProgressInfo)
- func PackBotFileID(file any) string
- func PathIsWritable(path string) bool
- func ResolveDataCenterIP(dc int, test, ipv6 bool) string
- func SizetoHuman(size int64) string
- func ToMarkdown(htmlStr string) string
- func UnpackBotFileID(fileID string) (int64, int64, int32, int32, int64)
- func WithAskFunc(fn func(*Conversation, string, ...*SendOptions) (*NewMessage, error)) func(*ConversationStep)
- func WithCondition(fn func(map[string]*NewMessage) bool) func(*ConversationStep)
- func WithMaxRetries(n int) func(*ConversationStep)
- func WithMediaType(mediaType string) func(*ConversationStep)
- func WithRetryMessage(msg string) func(*ConversationStep)
- func WithSkip(skipWords ...string) func(*ConversationStep)
- func WithTransform(fn func(*NewMessage) any) func(*ConversationStep)
- func WithValidator(fn func(*NewMessage) bool) func(*ConversationStep)
- type AccountAcceptAuthorizationParams
- type AccountAuthorizationForm
- type AccountAuthorizations
- type AccountAutoDownloadSettings
- type AccountAutoSaveSettings
- type AccountBusinessChatLinks
- type AccountCancelPasswordEmailParams
- type AccountChangeAuthorizationSettingsParams
- type AccountChangePhoneParams
- type AccountChatThemes
- type AccountChatThemesNotModified
- type AccountChatThemesObj
- type AccountCheckUsernameParams
- type AccountClearRecentEmojiStatusesParams
- type AccountConfirmPasswordEmailParams
- type AccountConfirmPhoneParams
- type AccountConnectedBots
- type AccountContentSettings
- type AccountCreateBusinessChatLinkParams
- type AccountCreateThemeParams
- type AccountDaysTtl
- type AccountDeclinePasswordResetParams
- type AccountDeleteAccountParams
- type AccountDeleteAutoSaveExceptionsParams
- type AccountDeleteBusinessChatLinkParams
- type AccountDeletePasskeyParams
- type AccountDeleteSecureValueParams
- type AccountDisablePeerConnectedBotParams
- type AccountEditBusinessChatLinkParams
- type AccountEmailVerified
- type AccountEmailVerifiedLogin
- type AccountEmailVerifiedObj
- type AccountEmojiStatuses
- type AccountEmojiStatusesNotModified
- type AccountEmojiStatusesObj
- type AccountFinishTakeoutSessionParams
- type AccountGetAccountTtlParams
- type AccountGetAllSecureValuesParams
- type AccountGetAuthorizationFormParams
- type AccountGetAuthorizationsParams
- type AccountGetAutoDownloadSettingsParams
- type AccountGetAutoSaveSettingsParams
- type AccountGetBotBusinessConnectionParams
- type AccountGetBusinessChatLinksParams
- type AccountGetChannelDefaultEmojiStatusesParams
- type AccountGetChannelRestrictedStatusEmojisParams
- type AccountGetChatThemesParams
- type AccountGetCollectibleEmojiStatusesParams
- type AccountGetConnectedBotsParams
- type AccountGetContactSignUpNotificationParams
- type AccountGetContentSettingsParams
- type AccountGetDefaultBackgroundEmojisParams
- type AccountGetDefaultEmojiStatusesParams
- type AccountGetDefaultGroupPhotoEmojisParams
- type AccountGetDefaultProfilePhotoEmojisParams
- type AccountGetGlobalPrivacySettingsParams
- type AccountGetMultiWallPapersParams
- type AccountGetNotifyExceptionsParams
- type AccountGetNotifySettingsParams
- type AccountGetPaidMessagesRevenueParams
- type AccountGetPasskeysParams
- type AccountGetPasswordParams
- type AccountGetPasswordSettingsParams
- type AccountGetPrivacyParams
- type AccountGetReactionsNotifySettingsParams
- type AccountGetRecentEmojiStatusesParams
- type AccountGetSavedMusicIdsParams
- type AccountGetSavedRingtonesParams
- type AccountGetSecureValueParams
- type AccountGetThemeParams
- type AccountGetThemesParams
- type AccountGetTmpPasswordParams
- type AccountGetUniqueGiftChatThemesParams
- type AccountGetWallPaperParams
- type AccountGetWallPapersParams
- type AccountGetWebAuthorizationsParams
- type AccountInitPasskeyRegistrationParams
- type AccountInitTakeoutSessionParams
- type AccountInstallThemeParams
- type AccountInstallWallPaperParams
- type AccountInvalidateSignInCodesParams
- type AccountPaidMessagesRevenue
- type AccountPasskeyRegistrationOptions
- type AccountPasskeys
- type AccountPassword
- type AccountPasswordInputSettings
- type AccountPasswordSettings
- type AccountPrivacyRules
- type AccountRegisterDeviceParams
- type AccountRegisterPasskeyParams
- type AccountReorderUsernamesParams
- type AccountReportPeerParams
- type AccountReportProfilePhotoParams
- type AccountResendPasswordEmailParams
- type AccountResetAuthorizationParams
- type AccountResetNotifySettingsParams
- type AccountResetPasswordFailedWait
- type AccountResetPasswordOk
- type AccountResetPasswordParams
- type AccountResetPasswordRequestedWait
- type AccountResetPasswordResult
- type AccountResetWallPapersParams
- type AccountResetWebAuthorizationParams
- type AccountResetWebAuthorizationsParams
- type AccountResolveBusinessChatLinkParams
- type AccountResolvedBusinessChatLinks
- type AccountSaveAutoDownloadSettingsParams
- type AccountSaveAutoSaveSettingsParams
- type AccountSaveMusicParams
- type AccountSaveRingtoneParams
- type AccountSaveSecureValueParams
- type AccountSaveThemeParams
- type AccountSaveWallPaperParams
- type AccountSavedMusicIds
- type AccountSavedMusicIdsNotModified
- type AccountSavedMusicIdsObj
- type AccountSavedRingtone
- type AccountSavedRingtoneConverted
- type AccountSavedRingtoneObj
- type AccountSavedRingtones
- type AccountSavedRingtonesNotModified
- type AccountSavedRingtonesObj
- type AccountSendChangePhoneCodeParams
- type AccountSendConfirmPhoneCodeParams
- type AccountSendVerifyEmailCodeParams
- type AccountSendVerifyPhoneCodeParams
- type AccountSentEmailCode
- type AccountSetAccountTtlParams
- type AccountSetAuthorizationTtlParams
- type AccountSetContactSignUpNotificationParams
- type AccountSetContentSettingsParams
- type AccountSetGlobalPrivacySettingsParams
- type AccountSetMainProfileTabParams
- type AccountSetPrivacyParams
- type AccountSetReactionsNotifySettingsParams
- type AccountTakeout
- type AccountThemes
- type AccountThemesNotModified
- type AccountThemesObj
- type AccountTmpPassword
- type AccountToggleConnectedBotPausedParams
- type AccountToggleNoPaidMessagesExceptionParams
- type AccountToggleSponsoredMessagesParams
- type AccountToggleUsernameParams
- type AccountUnregisterDeviceParams
- type AccountUpdateBirthdayParams
- type AccountUpdateBusinessAwayMessageParams
- type AccountUpdateBusinessGreetingMessageParams
- type AccountUpdateBusinessIntroParams
- type AccountUpdateBusinessLocationParams
- type AccountUpdateBusinessWorkHoursParams
- type AccountUpdateColorParams
- type AccountUpdateConnectedBotParams
- type AccountUpdateDeviceLockedParams
- type AccountUpdateEmojiStatusParams
- type AccountUpdateNotifySettingsParams
- type AccountUpdatePasswordSettingsParams
- type AccountUpdatePersonalChannelParams
- type AccountUpdateProfileParams
- type AccountUpdateStatusParams
- type AccountUpdateThemeParams
- type AccountUpdateUsernameParams
- type AccountUploadRingtoneParams
- type AccountUploadThemeParams
- type AccountUploadWallPaperParams
- type AccountVerifyEmailParams
- type AccountVerifyPhoneParams
- type AccountWallPapers
- type AccountWallPapersNotModified
- type AccountWallPapersObj
- type AccountWebAuthorizations
- type ActionResult
- type AdminBuilder
- type AdminOptions
- type Album
- func (a *Album) ChannelID() int64
- func (a *Album) ChatID() int64
- func (a *Album) Delete() (*MessagesAffectedMessages, error)
- func (a *Album) Download(opts ...*DownloadOptions) ([]string, error)
- func (a *Album) Edit(Text any, Opts ...*SendOptions) (*NewMessage, error)
- func (a *Album) ForwardTo(PeerID any, Opts ...*ForwardOptions) ([]NewMessage, error)
- func (a *Album) GetReplyMessage() (*NewMessage, error)
- func (a *Album) IsForward() bool
- func (a *Album) IsReply() bool
- func (a *Album) MarkRead() error
- func (a *Album) Marshal(noindent ...bool) string
- func (a *Album) Pin(Opts ...*PinOptions) error
- func (a *Album) Reply(Text any, Opts ...*SendOptions) (*NewMessage, error)
- func (a *Album) ReplyMedia(Media any, Opts ...*MediaOptions) (*NewMessage, error)
- func (a *Album) Respond(Text any, Opts ...*SendOptions) (*NewMessage, error)
- func (a *Album) RespondMedia(Media any, Opts ...*MediaOptions) (*NewMessage, error)
- func (a *Album) Unpin() error
- type AlbumHandler
- type ArticleOptions
- type AttachMenuBot
- type AttachMenuBotIcon
- type AttachMenuBotIconColor
- type AttachMenuBots
- type AttachMenuBotsBot
- type AttachMenuBotsNotModified
- type AttachMenuBotsObj
- type AttachMenuPeerType
- type AuctionBidLevel
- type AuthAcceptLoginTokenParams
- type AuthAuthorization
- type AuthAuthorizationObj
- type AuthAuthorizationSignUpRequired
- type AuthBindTempAuthKeyParams
- type AuthCallback
- type AuthCancelCodeParams
- type AuthCheckPaidAuthParams
- type AuthCheckPasswordParams
- type AuthCheckRecoveryPasswordParams
- type AuthCodeType
- type AuthDropTempAuthKeysParams
- type AuthExportAuthorizationParams
- type AuthExportLoginTokenParams
- type AuthExportedAuthorization
- type AuthFinishPasskeyLoginParams
- type AuthImportAuthorizationParams
- type AuthImportBotAuthorizationParams
- type AuthImportLoginTokenParams
- type AuthImportWebTokenAuthorizationParams
- type AuthInitPasskeyLoginParams
- type AuthLogOutParams
- type AuthLoggedOut
- type AuthLoginToken
- type AuthLoginTokenMigrateTo
- type AuthLoginTokenObj
- type AuthLoginTokenSuccess
- type AuthPasskeyLoginOptions
- type AuthPasswordRecovery
- type AuthRecoverPasswordParams
- type AuthReportMissingCodeParams
- type AuthRequestFirebaseSmsParams
- type AuthRequestPasswordRecoveryParams
- type AuthResendCodeParams
- type AuthResetAuthorizationsParams
- type AuthResetLoginEmailParams
- type AuthSendCodeParams
- type AuthSentCode
- type AuthSentCodeObj
- type AuthSentCodePaymentRequired
- type AuthSentCodeSuccess
- type AuthSentCodeType
- type AuthSentCodeTypeApp
- type AuthSentCodeTypeCall
- type AuthSentCodeTypeEmailCode
- type AuthSentCodeTypeFirebaseSms
- type AuthSentCodeTypeFlashCall
- type AuthSentCodeTypeFragmentSms
- type AuthSentCodeTypeMissedCall
- type AuthSentCodeTypeSetUpEmailRequired
- type AuthSentCodeTypeSms
- type AuthSentCodeTypeSmsPhrase
- type AuthSentCodeTypeSmsWord
- type AuthSignInParams
- type AuthSignUpParams
- type Authorization
- type AutoDownloadSettings
- type AutoSaveException
- type AutoSaveSettings
- type AvailableEffect
- type AvailableReaction
- type BankCardOpenURL
- type BannedBuilder
- func (b *BannedBuilder) Ban(until ...int) (bool, error)
- func (b *BannedBuilder) Invoke() (bool, error)
- func (b *BannedBuilder) Mute() (bool, error)
- func (b *BannedBuilder) Revoke() *BannedBuilder
- func (b *BannedBuilder) TillDate(tillDate int32) *BannedBuilder
- func (b *BannedBuilder) Unban() (bool, error)
- func (b *BannedBuilder) Unmute() (bool, error)
- func (b *BannedBuilder) WithRights(rights *ChatBannedRights) *BannedBuilder
- type BannedOptions
- type BaseProxy
- type BaseTheme
- type Birthday
- type Boost
- type BotApp
- type BotAppNotModified
- type BotAppObj
- type BotAppSettings
- type BotBusinessConnection
- type BotCommand
- type BotCommandScope
- type BotCommandScopeChatAdmins
- type BotCommandScopeChats
- type BotCommandScopeDefault
- type BotCommandScopePeer
- type BotCommandScopePeerAdmins
- type BotCommandScopePeerUser
- type BotCommandScopeUsers
- type BotInfo
- type BotInlineMediaResult
- type BotInlineMessage
- type BotInlineMessageMediaAuto
- type BotInlineMessageMediaContact
- type BotInlineMessageMediaGeo
- type BotInlineMessageMediaInvoice
- type BotInlineMessageMediaVenue
- type BotInlineMessageMediaWebPage
- type BotInlineMessageText
- type BotInlineResult
- type BotInlineResultObj
- type BotMenuButton
- type BotMenuButtonCommands
- type BotMenuButtonDefault
- type BotMenuButtonObj
- type BotPreviewMedia
- type BotVerification
- type BotVerifierSettings
- type BotsAddPreviewMediaParams
- type BotsAllowSendMessageParams
- type BotsAnswerWebhookJsonQueryParams
- type BotsBotInfo
- type BotsCanSendMessageParams
- type BotsCheckDownloadFileParamsParams
- type BotsDeletePreviewMediaParams
- type BotsEditPreviewMediaParams
- type BotsGetAdminedBotsParams
- type BotsGetBotCommandsParams
- type BotsGetBotInfoParams
- type BotsGetBotMenuButtonParams
- type BotsGetBotRecommendationsParams
- type BotsGetPopularAppBotsParams
- type BotsGetPreviewInfoParams
- type BotsGetPreviewMediasParams
- type BotsInvokeWebViewCustomMethodParams
- type BotsPopularAppBots
- type BotsPreviewInfo
- type BotsReorderPreviewMediasParams
- type BotsReorderUsernamesParams
- type BotsResetBotCommandsParams
- type BotsSendCustomRequestParams
- type BotsSetBotBroadcastDefaultAdminRightsParams
- type BotsSetBotCommandsParams
- type BotsSetBotGroupDefaultAdminRightsParams
- type BotsSetBotInfoParams
- type BotsSetBotMenuButtonParams
- type BotsSetCustomVerificationParams
- type BotsToggleUserEmojiStatusPermissionParams
- type BotsToggleUsernameParams
- type BotsUpdateStarRefProgramParams
- type BotsUpdateUserEmojiStatusParams
- type BuildReplyOptions
- type BusinessAwayMessage
- type BusinessAwayMessageSchedule
- type BusinessAwayMessageScheduleAlways
- type BusinessAwayMessageScheduleCustom
- type BusinessAwayMessageScheduleOutsideWorkHours
- type BusinessBotRecipients
- type BusinessBotRights
- type BusinessChatLink
- type BusinessGreetingMessage
- type BusinessIntro
- type BusinessLocation
- type BusinessRecipients
- type BusinessWeeklyOpen
- type BusinessWorkHours
- type ButtonBuilder
- func (ButtonBuilder) Auth(text, url, forwardText string, bot InputUser, requestWriteAccess ...bool) *InputKeyboardButtonURLAuth
- func (ButtonBuilder) Buy(text string) *KeyboardButtonBuy
- func (ButtonBuilder) Clear() *ReplyKeyboardHide
- func (ButtonBuilder) Copy(text string, copyText string) *KeyboardButtonCopy
- func (ButtonBuilder) Data(text, data string) *KeyboardButtonCallback
- func (ButtonBuilder) Force(placeHolder string) *ReplyKeyboardForceReply
- func (ButtonBuilder) Game(text string) *KeyboardButtonGame
- func (ButtonBuilder) Keyboard(Rows ...*KeyboardButtonRow) *ReplyInlineMarkup
- func (ButtonBuilder) Mention(text string, user InputUser) *InputKeyboardButtonUserProfile
- func (ButtonBuilder) RequestLocation(text string) *KeyboardButtonRequestGeoLocation
- func (ButtonBuilder) RequestPeer(text string, buttonID int32, peerType RequestPeerType, ...) *InputKeyboardButtonRequestPeer
- func (ButtonBuilder) RequestPhone(text string) *KeyboardButtonRequestPhone
- func (ButtonBuilder) RequestPoll(text string, quiz bool) *KeyboardButtonRequestPoll
- func (ButtonBuilder) Row(Buttons ...KeyboardButton) *KeyboardButtonRow
- func (ButtonBuilder) SwitchInline(text string, samePeer bool, query string) *KeyboardButtonSwitchInline
- func (ButtonBuilder) Text(text string) *KeyboardButtonObj
- func (ButtonBuilder) URL(text, url string) *KeyboardButtonURL
- func (ButtonBuilder) WebView(text, url string) *KeyboardButtonSimpleWebView
- type CACHE
- func (c *CACHE) BindToUser(userID int64) error
- func (c *CACHE) Clear()
- func (c *CACHE) ClearMediaCache()
- func (c *CACHE) Close() error
- func (c *CACHE) DeleteCachedMedia(key string)
- func (c *CACHE) Disable() *CACHE
- func (c *CACHE) ExportJSON() ([]byte, error)
- func (c *CACHE) GetCachedMedia(key string) (*CachedMedia, bool)
- func (c *CACHE) ImportJSON(data []byte) error
- func (c *CACHE) LookupUsername(username string) (peerID int64, accessHash int64, isChannel bool, found bool)
- func (c *CACHE) ReadFile()
- func (c *CACHE) RebindToUser(userID int64) error
- func (c *CACHE) SetCachedMedia(key string, media *CachedMedia, ttlSeconds ...int64)
- func (c *CACHE) SetStorage(storage CacheStorage) *CACHE
- func (c *CACHE) SetWriteFile(write bool) *CACHE
- func (c *CACHE) UpdateChannel(channel *Channel) bool
- func (c *CACHE) UpdateChat(chat *ChatObj) bool
- func (cache *CACHE) UpdatePeersToCache(users []User, chats []Chat)
- func (c *CACHE) UpdateUser(user *UserObj) bool
- func (c *CACHE) WriteFile()
- type CacheConfig
- type CacheStorage
- type CachedMedia
- type CallbackHandler
- type CallbackOptions
- type CallbackQuery
- func (b *CallbackQuery) Answer(Text string, options ...*CallbackOptions) (bool, error)
- func (b *CallbackQuery) Ask(Text any, Opts ...*SendOptions) (*NewMessage, *NewMessage, error)
- func (b *CallbackQuery) ChannelID() int64
- func (m *CallbackQuery) ChatType() string
- func (b *CallbackQuery) Conv(timeout ...int32) (*Conversation, error)
- func (b *CallbackQuery) DataString() string
- func (b *CallbackQuery) Delete() (*MessagesAffectedMessages, error)
- func (b *CallbackQuery) Edit(Text any, options ...*SendOptions) (*NewMessage, error)
- func (b *CallbackQuery) ForwardTo(ChatID int64, options ...*ForwardOptions) (*NewMessage, error)
- func (b *CallbackQuery) GetChannel() (*Channel, error)
- func (b *CallbackQuery) GetChat() (*ChatObj, error)
- func (b *CallbackQuery) GetChatID() int64
- func (b *CallbackQuery) GetMessage() (*NewMessage, error)
- func (b *CallbackQuery) GetSender() (*UserObj, error)
- func (b *CallbackQuery) GetSenderID() int64
- func (b *CallbackQuery) IsChannel() bool
- func (b *CallbackQuery) IsGroup() bool
- func (b *CallbackQuery) IsPrivate() bool
- func (b *CallbackQuery) Marshal(noindent ...bool) string
- func (b *CallbackQuery) Reply(Text any, options ...*SendOptions) (*NewMessage, error)
- func (b *CallbackQuery) ReplyMedia(Media any, options ...*MediaOptions) (*NewMessage, error)
- func (b *CallbackQuery) Respond(Text any, options ...*SendOptions) (*NewMessage, error)
- func (b *CallbackQuery) RespondMedia(Media any, options ...*MediaOptions) (*NewMessage, error)
- func (b *CallbackQuery) ShortName() string
- func (b *CallbackQuery) WaitClick(timeout ...int32) (*CallbackQuery, error)
- func (b *CallbackQuery) Wizard(timeout ...int32) (*ConversationWizard, error)
- type CdnConfig
- type CdnPublicKey
- type Channel
- type ChannelAdminLogEvent
- type ChannelAdminLogEventAction
- type ChannelAdminLogEventActionChangeAbout
- type ChannelAdminLogEventActionChangeAvailableReactions
- type ChannelAdminLogEventActionChangeEmojiStatus
- type ChannelAdminLogEventActionChangeEmojiStickerSet
- type ChannelAdminLogEventActionChangeHistoryTtl
- type ChannelAdminLogEventActionChangeLinkedChat
- type ChannelAdminLogEventActionChangeLocation
- type ChannelAdminLogEventActionChangePeerColor
- type ChannelAdminLogEventActionChangePhoto
- type ChannelAdminLogEventActionChangeProfilePeerColor
- type ChannelAdminLogEventActionChangeStickerSet
- type ChannelAdminLogEventActionChangeTitle
- type ChannelAdminLogEventActionChangeUsername
- type ChannelAdminLogEventActionChangeUsernames
- type ChannelAdminLogEventActionChangeWallpaper
- type ChannelAdminLogEventActionCreateTopic
- type ChannelAdminLogEventActionDefaultBannedRights
- type ChannelAdminLogEventActionDeleteMessage
- type ChannelAdminLogEventActionDeleteTopic
- type ChannelAdminLogEventActionDiscardGroupCall
- type ChannelAdminLogEventActionEditMessage
- type ChannelAdminLogEventActionEditTopic
- type ChannelAdminLogEventActionExportedInviteDelete
- type ChannelAdminLogEventActionExportedInviteEdit
- type ChannelAdminLogEventActionExportedInviteRevoke
- type ChannelAdminLogEventActionParticipantInvite
- type ChannelAdminLogEventActionParticipantJoin
- type ChannelAdminLogEventActionParticipantJoinByInvite
- type ChannelAdminLogEventActionParticipantJoinByRequest
- type ChannelAdminLogEventActionParticipantLeave
- type ChannelAdminLogEventActionParticipantMute
- type ChannelAdminLogEventActionParticipantSubExtend
- type ChannelAdminLogEventActionParticipantToggleAdmin
- type ChannelAdminLogEventActionParticipantToggleBan
- type ChannelAdminLogEventActionParticipantUnmute
- type ChannelAdminLogEventActionParticipantVolume
- type ChannelAdminLogEventActionPinTopic
- type ChannelAdminLogEventActionSendMessage
- type ChannelAdminLogEventActionStartGroupCall
- type ChannelAdminLogEventActionStopPoll
- type ChannelAdminLogEventActionToggleAntiSpam
- type ChannelAdminLogEventActionToggleAutotranslation
- type ChannelAdminLogEventActionToggleForum
- type ChannelAdminLogEventActionToggleGroupCallSetting
- type ChannelAdminLogEventActionToggleInvites
- type ChannelAdminLogEventActionToggleNoForwards
- type ChannelAdminLogEventActionTogglePreHistoryHidden
- type ChannelAdminLogEventActionToggleSignatureProfiles
- type ChannelAdminLogEventActionToggleSignatures
- type ChannelAdminLogEventActionToggleSlowMode
- type ChannelAdminLogEventActionUpdatePinned
- type ChannelAdminLogEventsFilter
- type ChannelForbidden
- type ChannelFull
- type ChannelLocation
- type ChannelLocationEmpty
- type ChannelLocationObj
- type ChannelMessagesFilter
- type ChannelMessagesFilterEmpty
- type ChannelMessagesFilterObj
- type ChannelOptions
- type ChannelParticipant
- type ChannelParticipantAdmin
- type ChannelParticipantBanned
- type ChannelParticipantCreator
- type ChannelParticipantLeft
- type ChannelParticipantObj
- type ChannelParticipantSelf
- type ChannelParticipantsAdmins
- type ChannelParticipantsBanned
- type ChannelParticipantsBots
- type ChannelParticipantsContacts
- type ChannelParticipantsFilter
- type ChannelParticipantsKicked
- type ChannelParticipantsMentions
- type ChannelParticipantsRecent
- type ChannelParticipantsSearch
- type ChannelsAdminLogResults
- type ChannelsChannelParticipant
- type ChannelsChannelParticipants
- type ChannelsChannelParticipantsNotModified
- type ChannelsChannelParticipantsObj
- type ChannelsCheckSearchPostsFloodParams
- type ChannelsCheckUsernameParams
- type ChannelsConvertToGigagroupParams
- type ChannelsCreateChannelParams
- type ChannelsDeactivateAllUsernamesParams
- type ChannelsDeleteChannelParams
- type ChannelsDeleteHistoryParams
- type ChannelsDeleteMessagesParams
- type ChannelsDeleteParticipantHistoryParams
- type ChannelsEditAdminParams
- type ChannelsEditBannedParams
- type ChannelsEditCreatorParams
- type ChannelsEditLocationParams
- type ChannelsEditPhotoParams
- type ChannelsEditTitleParams
- type ChannelsExportMessageLinkParams
- type ChannelsGetAdminLogParams
- type ChannelsGetAdminedPublicChannelsParams
- type ChannelsGetChannelRecommendationsParams
- type ChannelsGetChannelsParams
- type ChannelsGetFullChannelParams
- type ChannelsGetGroupsForDiscussionParams
- type ChannelsGetInactiveChannelsParams
- type ChannelsGetLeftChannelsParams
- type ChannelsGetMessageAuthorParams
- type ChannelsGetMessagesParams
- type ChannelsGetParticipantParams
- type ChannelsGetParticipantsParams
- type ChannelsGetSendAsParams
- type ChannelsInviteToChannelParams
- type ChannelsJoinChannelParams
- type ChannelsLeaveChannelParams
- type ChannelsReadHistoryParams
- type ChannelsReadMessageContentsParams
- type ChannelsReorderUsernamesParams
- type ChannelsReportAntiSpamFalsePositiveParams
- type ChannelsReportSpamParams
- type ChannelsRestrictSponsoredMessagesParams
- type ChannelsSearchPostsParams
- type ChannelsSendAsPeers
- type ChannelsSetBoostsToUnblockRestrictionsParams
- type ChannelsSetDiscussionGroupParams
- type ChannelsSetEmojiStickersParams
- type ChannelsSetMainProfileTabParams
- type ChannelsSetStickersParams
- type ChannelsSponsoredMessageReportResult
- type ChannelsSponsoredMessageReportResultAdsHidden
- type ChannelsSponsoredMessageReportResultChooseOption
- type ChannelsSponsoredMessageReportResultReported
- type ChannelsToggleAntiSpamParams
- type ChannelsToggleAutotranslationParams
- type ChannelsToggleForumParams
- type ChannelsToggleJoinRequestParams
- type ChannelsToggleJoinToSendParams
- type ChannelsToggleParticipantsHiddenParams
- type ChannelsTogglePreHistoryHiddenParams
- type ChannelsToggleSignaturesParams
- type ChannelsToggleSlowModeParams
- type ChannelsToggleUsernameParams
- type ChannelsToggleViewForumAsMessagesParams
- type ChannelsUpdateColorParams
- type ChannelsUpdateEmojiStatusParams
- type ChannelsUpdatePaidMessagesPriceParams
- type ChannelsUpdateUsernameParams
- type Chat
- type ChatAdminRights
- type ChatAdminWithInvites
- type ChatBannedRights
- type ChatEmpty
- type ChatForbidden
- type ChatFull
- type ChatFullObj
- type ChatInvite
- type ChatInviteAlready
- type ChatInviteExported
- type ChatInviteImporter
- type ChatInviteObj
- type ChatInvitePeek
- type ChatInvitePublicJoinRequests
- type ChatObj
- type ChatOnlines
- type ChatParticipant
- type ChatParticipantAdmin
- type ChatParticipantCreator
- type ChatParticipantObj
- type ChatParticipants
- type ChatParticipantsForbidden
- type ChatParticipantsObj
- type ChatPhoto
- type ChatPhotoEmpty
- type ChatPhotoObj
- type ChatReactions
- type ChatReactionsAll
- type ChatReactionsNone
- type ChatReactionsSome
- type ChatTheme
- type ChatThemeObj
- type ChatThemeUniqueGift
- type ChatlistsChatlistInvite
- type ChatlistsChatlistInviteAlready
- type ChatlistsChatlistInviteObj
- type ChatlistsChatlistUpdates
- type ChatlistsCheckChatlistInviteParams
- type ChatlistsDeleteExportedInviteParams
- type ChatlistsEditExportedInviteParams
- type ChatlistsExportChatlistInviteParams
- type ChatlistsExportedChatlistInvite
- type ChatlistsExportedInvites
- type ChatlistsGetChatlistUpdatesParams
- type ChatlistsGetExportedInvitesParams
- type ChatlistsGetLeaveChatlistSuggestionsParams
- type ChatlistsHideChatlistUpdatesParams
- type ChatlistsJoinChatlistInviteParams
- type ChatlistsJoinChatlistUpdatesParams
- type ChatlistsLeaveChatlistParams
- type ClickOptions
- type Client
- func (c *Client) AcceptSecretChat(chat InputEncryptedChat, gA []byte) error
- func (c *Client) AcceptTOS() (bool, error)
- func (c *Client) AccountAcceptAuthorization(botID int64, scope, publicKey string, valueHashes []*SecureValueHash, ...) (bool, error)
- func (c *Client) AccountCancelPasswordEmail() (bool, error)
- func (c *Client) AccountChangeAuthorizationSettings(confirmed bool, hash int64, ...) (bool, error)
- func (c *Client) AccountChangePhone(phoneNumber, phoneCodeHash, phoneCode string) (User, error)
- func (c *Client) AccountCheckUsername(username string) (bool, error)
- func (c *Client) AccountClearRecentEmojiStatuses() (bool, error)
- func (c *Client) AccountConfirmPasswordEmail(code string) (bool, error)
- func (c *Client) AccountConfirmPhone(phoneCodeHash, phoneCode string) (bool, error)
- func (c *Client) AccountCreateBusinessChatLink(link *InputBusinessChatLink) (*BusinessChatLink, error)
- func (c *Client) AccountCreateTheme(slug, title string, document InputDocument, settings []*InputThemeSettings) (*Theme, error)
- func (c *Client) AccountDeclinePasswordReset() (bool, error)
- func (c *Client) AccountDeleteAccount(reason string, password InputCheckPasswordSRP) (bool, error)
- func (c *Client) AccountDeleteAutoSaveExceptions() (bool, error)
- func (c *Client) AccountDeleteBusinessChatLink(slug string) (bool, error)
- func (c *Client) AccountDeletePasskey(id string) (bool, error)
- func (c *Client) AccountDeleteSecureValue(types []SecureValueType) (bool, error)
- func (c *Client) AccountDisablePeerConnectedBot(peer InputPeer) (bool, error)
- func (c *Client) AccountEditBusinessChatLink(slug string, link *InputBusinessChatLink) (*BusinessChatLink, error)
- func (c *Client) AccountFinishTakeoutSession(success bool) (bool, error)
- func (c *Client) AccountGetAccountTtl() (*AccountDaysTtl, error)
- func (c *Client) AccountGetAllSecureValues() ([]*SecureValue, error)
- func (c *Client) AccountGetAuthorizationForm(botID int64, scope, publicKey string) (*AccountAuthorizationForm, error)
- func (c *Client) AccountGetAuthorizations() (*AccountAuthorizations, error)
- func (c *Client) AccountGetAutoDownloadSettings() (*AccountAutoDownloadSettings, error)
- func (c *Client) AccountGetAutoSaveSettings() (*AccountAutoSaveSettings, error)
- func (c *Client) AccountGetBotBusinessConnection(connectionID string) (Updates, error)
- func (c *Client) AccountGetBusinessChatLinks() (*AccountBusinessChatLinks, error)
- func (c *Client) AccountGetChannelDefaultEmojiStatuses(hash int64) (AccountEmojiStatuses, error)
- func (c *Client) AccountGetChannelRestrictedStatusEmojis(hash int64) (EmojiList, error)
- func (c *Client) AccountGetChatThemes(hash int64) (AccountThemes, error)
- func (c *Client) AccountGetCollectibleEmojiStatuses(hash int64) (AccountEmojiStatuses, error)
- func (c *Client) AccountGetConnectedBots() (*AccountConnectedBots, error)
- func (c *Client) AccountGetContactSignUpNotification() (bool, error)
- func (c *Client) AccountGetContentSettings() (*AccountContentSettings, error)
- func (c *Client) AccountGetDefaultBackgroundEmojis(hash int64) (EmojiList, error)
- func (c *Client) AccountGetDefaultEmojiStatuses(hash int64) (AccountEmojiStatuses, error)
- func (c *Client) AccountGetDefaultGroupPhotoEmojis(hash int64) (EmojiList, error)
- func (c *Client) AccountGetDefaultProfilePhotoEmojis(hash int64) (EmojiList, error)
- func (c *Client) AccountGetGlobalPrivacySettings() (*GlobalPrivacySettings, error)
- func (c *Client) AccountGetMultiWallPapers(wallpapers []InputWallPaper) ([]WallPaper, error)
- func (c *Client) AccountGetNotifyExceptions(compareSound, compareStories bool, peer InputNotifyPeer) (Updates, error)
- func (c *Client) AccountGetNotifySettings(peer InputNotifyPeer) (*PeerNotifySettings, error)
- func (c *Client) AccountGetPaidMessagesRevenue(parentPeer InputPeer, userID InputUser) (*AccountPaidMessagesRevenue, error)
- func (c *Client) AccountGetPasskeys() (*AccountPasskeys, error)
- func (c *Client) AccountGetPassword() (*AccountPassword, error)
- func (c *Client) AccountGetPasswordSettings(password InputCheckPasswordSRP) (*AccountPasswordSettings, error)
- func (c *Client) AccountGetPrivacy(key InputPrivacyKey) (*AccountPrivacyRules, error)
- func (c *Client) AccountGetReactionsNotifySettings() (*ReactionsNotifySettings, error)
- func (c *Client) AccountGetRecentEmojiStatuses(hash int64) (AccountEmojiStatuses, error)
- func (c *Client) AccountGetSavedMusicIds(hash int64) (AccountSavedMusicIds, error)
- func (c *Client) AccountGetSavedRingtones(hash int64) (AccountSavedRingtones, error)
- func (c *Client) AccountGetSecureValue(types []SecureValueType) ([]*SecureValue, error)
- func (c *Client) AccountGetTheme(format string, theme InputTheme) (*Theme, error)
- func (c *Client) AccountGetThemes(format string, hash int64) (AccountThemes, error)
- func (c *Client) AccountGetTmpPassword(password InputCheckPasswordSRP, period int32) (*AccountTmpPassword, error)
- func (c *Client) AccountGetUniqueGiftChatThemes(offset string, limit int32, hash int64) (AccountChatThemes, error)
- func (c *Client) AccountGetWallPaper(wallpaper InputWallPaper) (WallPaper, error)
- func (c *Client) AccountGetWallPapers(hash int64) (AccountWallPapers, error)
- func (c *Client) AccountGetWebAuthorizations() (*AccountWebAuthorizations, error)
- func (c *Client) AccountInitPasskeyRegistration() (*AccountPasskeyRegistrationOptions, error)
- func (c *Client) AccountInitTakeoutSession(params *AccountInitTakeoutSessionParams) (*AccountTakeout, error)
- func (c *Client) AccountInstallTheme(dark bool, theme InputTheme, format string, baseTheme BaseTheme) (bool, error)
- func (c *Client) AccountInstallWallPaper(wallpaper InputWallPaper, settings *WallPaperSettings) (bool, error)
- func (c *Client) AccountInvalidateSignInCodes(codes []string) (bool, error)
- func (c *Client) AccountRegisterDevice(params *AccountRegisterDeviceParams) (bool, error)
- func (c *Client) AccountRegisterPasskey(credential *InputPasskeyCredentialPublicKey) (*Passkey, error)
- func (c *Client) AccountReorderUsernames(order []string) (bool, error)
- func (c *Client) AccountReportPeer(peer InputPeer, reason ReportReason, message string) (bool, error)
- func (c *Client) AccountReportProfilePhoto(peer InputPeer, photoID InputPhoto, reason ReportReason, message string) (bool, error)
- func (c *Client) AccountResendPasswordEmail() (bool, error)
- func (c *Client) AccountResetAuthorization(hash int64) (bool, error)
- func (c *Client) AccountResetNotifySettings() (bool, error)
- func (c *Client) AccountResetPassword() (AccountResetPasswordResult, error)
- func (c *Client) AccountResetWallPapers() (bool, error)
- func (c *Client) AccountResetWebAuthorization(hash int64) (bool, error)
- func (c *Client) AccountResetWebAuthorizations() (bool, error)
- func (c *Client) AccountResolveBusinessChatLink(slug string) (*AccountResolvedBusinessChatLinks, error)
- func (c *Client) AccountSaveAutoDownloadSettings(low, high bool, settings *AutoDownloadSettings) (bool, error)
- func (c *Client) AccountSaveAutoSaveSettings(params *AccountSaveAutoSaveSettingsParams) (bool, error)
- func (c *Client) AccountSaveMusic(unsave bool, id, afterID InputDocument) (bool, error)
- func (c *Client) AccountSaveRingtone(id InputDocument, unsave bool) (AccountSavedRingtone, error)
- func (c *Client) AccountSaveSecureValue(value *InputSecureValue, secureSecretID int64) (*SecureValue, error)
- func (c *Client) AccountSaveTheme(theme InputTheme, unsave bool) (bool, error)
- func (c *Client) AccountSaveWallPaper(wallpaper InputWallPaper, unsave bool, settings *WallPaperSettings) (bool, error)
- func (c *Client) AccountSendChangePhoneCode(phoneNumber string, settings *CodeSettings) (AuthSentCode, error)
- func (c *Client) AccountSendConfirmPhoneCode(hash string, settings *CodeSettings) (AuthSentCode, error)
- func (c *Client) AccountSendVerifyEmailCode(purpose EmailVerifyPurpose, email string) (*AccountSentEmailCode, error)
- func (c *Client) AccountSendVerifyPhoneCode(phoneNumber string, settings *CodeSettings) (AuthSentCode, error)
- func (c *Client) AccountSetAccountTtl(ttl *AccountDaysTtl) (bool, error)
- func (c *Client) AccountSetAuthorizationTtl(authorizationTtlDays int32) (bool, error)
- func (c *Client) AccountSetContactSignUpNotification(silent bool) (bool, error)
- func (c *Client) AccountSetContentSettings(sensitiveEnabled bool) (bool, error)
- func (c *Client) AccountSetGlobalPrivacySettings(settings *GlobalPrivacySettings) (*GlobalPrivacySettings, error)
- func (c *Client) AccountSetMainProfileTab(tab ProfileTab) (bool, error)
- func (c *Client) AccountSetPrivacy(key InputPrivacyKey, rules []InputPrivacyRule) (*AccountPrivacyRules, error)
- func (c *Client) AccountSetReactionsNotifySettings(settings *ReactionsNotifySettings) (*ReactionsNotifySettings, error)
- func (c *Client) AccountToggleConnectedBotPaused(peer InputPeer, paused bool) (bool, error)
- func (c *Client) AccountToggleNoPaidMessagesException(refundCharged, requirePayment bool, parentPeer InputPeer, userID InputUser) (bool, error)
- func (c *Client) AccountToggleSponsoredMessages(enabled bool) (bool, error)
- func (c *Client) AccountToggleUsername(username string, active bool) (bool, error)
- func (c *Client) AccountUnregisterDevice(tokenType int32, token string, otherUids []int64) (bool, error)
- func (c *Client) AccountUpdateBirthday(birthday *Birthday) (bool, error)
- func (c *Client) AccountUpdateBusinessAwayMessage(message *InputBusinessAwayMessage) (bool, error)
- func (c *Client) AccountUpdateBusinessGreetingMessage(message *InputBusinessGreetingMessage) (bool, error)
- func (c *Client) AccountUpdateBusinessIntro(intro *InputBusinessIntro) (bool, error)
- func (c *Client) AccountUpdateBusinessLocation(geoPoint InputGeoPoint, address string) (bool, error)
- func (c *Client) AccountUpdateBusinessWorkHours(businessWorkHours *BusinessWorkHours) (bool, error)
- func (c *Client) AccountUpdateColor(forProfile bool, color PeerColor) (bool, error)
- func (c *Client) AccountUpdateConnectedBot(deleted bool, rights *BusinessBotRights, bot InputUser, ...) (Updates, error)
- func (c *Client) AccountUpdateDeviceLocked(period int32) (bool, error)
- func (c *Client) AccountUpdateEmojiStatus(emojiStatus EmojiStatus) (bool, error)
- func (c *Client) AccountUpdateNotifySettings(peer InputNotifyPeer, settings *InputPeerNotifySettings) (bool, error)
- func (c *Client) AccountUpdatePasswordSettings(password InputCheckPasswordSRP, newSettings *AccountPasswordInputSettings) (bool, error)
- func (c *Client) AccountUpdatePersonalChannel(channel InputChannel) (bool, error)
- func (c *Client) AccountUpdateProfile(firstName, lastName, about string) (User, error)
- func (c *Client) AccountUpdateStatus(offline bool) (bool, error)
- func (c *Client) AccountUpdateTheme(params *AccountUpdateThemeParams) (*Theme, error)
- func (c *Client) AccountUpdateUsername(username string) (User, error)
- func (c *Client) AccountUploadRingtone(file InputFile, fileName, mimeType string) (Document, error)
- func (c *Client) AccountUploadTheme(file, thumb InputFile, fileName, mimeType string) (Document, error)
- func (c *Client) AccountUploadWallPaper(forChat bool, file InputFile, mimeType string, settings *WallPaperSettings) (WallPaper, error)
- func (c *Client) AccountVerifyEmail(purpose EmailVerifyPurpose, verification EmailVerification) (AccountEmailVerified, error)
- func (c *Client) AccountVerifyPhone(phoneNumber, phoneCodeHash, phoneCode string) (bool, error)
- func (c *Client) AddActionHandler(handler MessageHandler) Handle
- func (c *Client) AddAlbumHandler(handler func(m *Album) error) Handle
- func (c *Client) AddCallbackHandler(pattern any, handler CallbackHandler, filters ...Filter) Handle
- func (c *Client) AddCommandHandler(pattern string, handler MessageHandler, filters ...Filter) Handle
- func (c *Client) AddDeleteHandler(pattern any, handler func(d *DeleteMessage) error) Handle
- func (c *Client) AddE2EHandler(handler func(update Update, c *Client) error) Handle
- func (c *Client) AddEditHandler(pattern any, handler MessageHandler, filters ...Filter) Handle
- func (c *Client) AddInlineCallbackHandler(pattern any, handler InlineCallbackHandler) Handle
- func (c *Client) AddInlineHandler(pattern any, handler InlineHandler) Handle
- func (c *Client) AddInlineSendHandler(handler InlineSendHandler) Handle
- func (c *Client) AddJoinRequestHandler(handler PendingJoinHandler) Handle
- func (c *Client) AddMessageHandler(pattern any, handler MessageHandler, filters ...Filter) Handle
- func (c *Client) AddParticipantHandler(handler ParticipantHandler) Handle
- func (c *Client) AddRawHandler(updateType Update, handler RawHandler) Handle
- func (c *Client) AnswerCallbackQuery(QueryID int64, Text string, Opts ...*CallbackOptions) (bool, error)
- func (c *Client) AnswerInlineQuery(QueryID int64, Results []InputBotInlineResult, Options ...*InlineSendOptions) (bool, error)
- func (c *Client) AppHash() string
- func (c *Client) AppID() int32
- func (c *Client) ApproveAllJoinRequests(channel any, invite ...string) error
- func (c *Client) AuthAcceptLoginToken(token []byte) (*Authorization, error)
- func (c *Client) AuthBindTempAuthKey(permAuthKeyID, nonce int64, expiresAt int32, encryptedMessage []byte) (bool, error)
- func (c *Client) AuthCancelCode(phoneNumber, phoneCodeHash string) (bool, error)
- func (c *Client) AuthCheckPaidAuth(phoneNumber, phoneCodeHash string, formID int64) (AuthSentCode, error)
- func (c *Client) AuthCheckPassword(password InputCheckPasswordSRP) (AuthAuthorization, error)
- func (c *Client) AuthCheckRecoveryPassword(code string) (bool, error)
- func (c *Client) AuthDropTempAuthKeys(exceptAuthKeys []int64) (bool, error)
- func (c *Client) AuthExportAuthorization(dcID int32) (*AuthExportedAuthorization, error)
- func (c *Client) AuthExportLoginToken(apiID int32, apiHash string, exceptIds []int64) (AuthLoginToken, error)
- func (c *Client) AuthFinishPasskeyLogin(credential *InputPasskeyCredentialPublicKey, fromDcID int32, ...) (AuthAuthorization, error)
- func (c *Client) AuthImportAuthorization(id int64, bytes []byte) (AuthAuthorization, error)
- func (c *Client) AuthImportBotAuthorization(flags, apiID int32, apiHash, botAuthToken string) (AuthAuthorization, error)
- func (c *Client) AuthImportLoginToken(token []byte) (AuthLoginToken, error)
- func (c *Client) AuthImportWebTokenAuthorization(apiID int32, apiHash, webAuthToken string) (AuthAuthorization, error)
- func (c *Client) AuthInitPasskeyLogin(apiID int32, apiHash string) (*AuthPasskeyLoginOptions, error)
- func (c *Client) AuthLogOut() (*AuthLoggedOut, error)
- func (c *Client) AuthPrompt() error
- func (c *Client) AuthRecoverPassword(code string, newSettings *AccountPasswordInputSettings) (AuthAuthorization, error)
- func (c *Client) AuthReportMissingCode(phoneNumber, phoneCodeHash, mnc string) (bool, error)
- func (c *Client) AuthRequestFirebaseSms(params *AuthRequestFirebaseSmsParams) (bool, error)
- func (c *Client) AuthRequestPasswordRecovery() (*AuthPasswordRecovery, error)
- func (c *Client) AuthResendCode(phoneNumber, phoneCodeHash, reason string) (AuthSentCode, error)
- func (c *Client) AuthResetAuthorizations() (bool, error)
- func (c *Client) AuthResetLoginEmail(phoneNumber, phoneCodeHash string) (AuthSentCode, error)
- func (c *Client) AuthSendCode(phoneNumber string, apiID int32, apiHash string, settings *CodeSettings) (AuthSentCode, error)
- func (c *Client) AuthSignIn(phoneNumber, phoneCodeHash, phoneCode string, ...) (AuthAuthorization, error)
- func (c *Client) AuthSignUp(params *AuthSignUpParams) (AuthAuthorization, error)
- func (c *Client) BotsAddPreviewMedia(bot InputUser, langCode string, media InputMedia) (*BotPreviewMedia, error)
- func (c *Client) BotsAllowSendMessage(bot InputUser) (Updates, error)
- func (c *Client) BotsAnswerWebhookJsonQuery(queryID int64, data *DataJson) (bool, error)
- func (c *Client) BotsCanSendMessage(bot InputUser) (bool, error)
- func (c *Client) BotsCheckDownloadFileParams(bot InputUser, fileName, url string) (bool, error)
- func (c *Client) BotsDeletePreviewMedia(bot InputUser, langCode string, media []InputMedia) (bool, error)
- func (c *Client) BotsEditPreviewMedia(bot InputUser, langCode string, media, newMedia InputMedia) (*BotPreviewMedia, error)
- func (c *Client) BotsGetAdminedBots() ([]User, error)
- func (c *Client) BotsGetBotCommands(scope BotCommandScope, langCode string) ([]*BotCommand, error)
- func (c *Client) BotsGetBotInfo(bot InputUser, langCode string) (*BotsBotInfo, error)
- func (c *Client) BotsGetBotMenuButton(userID InputUser) (BotMenuButton, error)
- func (c *Client) BotsGetBotRecommendations(bot InputUser) (UsersUsers, error)
- func (c *Client) BotsGetPopularAppBots(offset string, limit int32) (*BotsPopularAppBots, error)
- func (c *Client) BotsGetPreviewInfo(bot InputUser, langCode string) (*BotsPreviewInfo, error)
- func (c *Client) BotsGetPreviewMedias(bot InputUser) ([]*BotPreviewMedia, error)
- func (c *Client) BotsInvokeWebViewCustomMethod(bot InputUser, customMethod string, params *DataJson) (*DataJson, error)
- func (c *Client) BotsReorderPreviewMedias(bot InputUser, langCode string, order []InputMedia) (bool, error)
- func (c *Client) BotsReorderUsernames(bot InputUser, order []string) (bool, error)
- func (c *Client) BotsResetBotCommands(scope BotCommandScope, langCode string) (bool, error)
- func (c *Client) BotsSendCustomRequest(customMethod string, params *DataJson) (*DataJson, error)
- func (c *Client) BotsSetBotBroadcastDefaultAdminRights(adminRights *ChatAdminRights) (bool, error)
- func (c *Client) BotsSetBotCommands(scope BotCommandScope, langCode string, commands []*BotCommand) (bool, error)
- func (c *Client) BotsSetBotGroupDefaultAdminRights(adminRights *ChatAdminRights) (bool, error)
- func (c *Client) BotsSetBotInfo(params *BotsSetBotInfoParams) (bool, error)
- func (c *Client) BotsSetBotMenuButton(userID InputUser, button BotMenuButton) (bool, error)
- func (c *Client) BotsSetCustomVerification(enabled bool, bot InputUser, peer InputPeer, customDescription string) (bool, error)
- func (c *Client) BotsToggleUserEmojiStatusPermission(bot InputUser, enabled bool) (bool, error)
- func (c *Client) BotsToggleUsername(bot InputUser, username string, active bool) (bool, error)
- func (c *Client) BotsUpdateStarRefProgram(bot InputUser, commissionPermille, durationMonths int32) (*StarRefProgram, error)
- func (c *Client) BotsUpdateUserEmojiStatus(userID InputUser, emojiStatus EmojiStatus) (bool, error)
- func (c *Client) Broadcast(ctx context.Context, userCallback func(User) error, ...) error
- func (c *Client) ChannelsCheckSearchPostsFlood(query string) (*SearchPostsFlood, error)
- func (c *Client) ChannelsCheckUsername(channel InputChannel, username string) (bool, error)
- func (c *Client) ChannelsConvertToGigagroup(channel InputChannel) (Updates, error)
- func (c *Client) ChannelsCreateChannel(params *ChannelsCreateChannelParams) (Updates, error)
- func (c *Client) ChannelsDeactivateAllUsernames(channel InputChannel) (bool, error)
- func (c *Client) ChannelsDeleteChannel(channel InputChannel) (Updates, error)
- func (c *Client) ChannelsDeleteHistory(forEveryone bool, channel InputChannel, maxID int32) (Updates, error)
- func (c *Client) ChannelsDeleteMessages(channel InputChannel, id []int32) (*MessagesAffectedMessages, error)
- func (c *Client) ChannelsDeleteParticipantHistory(channel InputChannel, participant InputPeer) (*MessagesAffectedHistory, error)
- func (c *Client) ChannelsEditAdmin(channel InputChannel, userID InputUser, adminRights *ChatAdminRights, ...) (Updates, error)
- func (c *Client) ChannelsEditBanned(channel InputChannel, participant InputPeer, bannedRights *ChatBannedRights) (Updates, error)
- func (c *Client) ChannelsEditCreator(channel InputChannel, userID InputUser, password InputCheckPasswordSRP) (Updates, error)
- func (c *Client) ChannelsEditLocation(channel InputChannel, geoPoint InputGeoPoint, address string) (bool, error)
- func (c *Client) ChannelsEditPhoto(channel InputChannel, photo InputChatPhoto) (Updates, error)
- func (c *Client) ChannelsEditTitle(channel InputChannel, title string) (Updates, error)
- func (c *Client) ChannelsExportMessageLink(grouped, thread bool, channel InputChannel, id int32) (*ExportedMessageLink, error)
- func (c *Client) ChannelsGetAdminLog(params *ChannelsGetAdminLogParams) (*ChannelsAdminLogResults, error)
- func (c *Client) ChannelsGetAdminedPublicChannels(byLocation, checkLimit, forPersonal bool) (MessagesChats, error)
- func (c *Client) ChannelsGetChannelRecommendations(channel InputChannel) (MessagesChats, error)
- func (c *Client) ChannelsGetChannels(id []InputChannel) (MessagesChats, error)
- func (c *Client) ChannelsGetFullChannel(channel InputChannel) (*MessagesChatFull, error)
- func (c *Client) ChannelsGetGroupsForDiscussion() (MessagesChats, error)
- func (c *Client) ChannelsGetInactiveChannels() (*MessagesInactiveChats, error)
- func (c *Client) ChannelsGetLeftChannels(offset int32) (MessagesChats, error)
- func (c *Client) ChannelsGetMessageAuthor(channel InputChannel, id int32) (User, error)
- func (c *Client) ChannelsGetMessages(channel InputChannel, id []InputMessage) (MessagesMessages, error)
- func (c *Client) ChannelsGetParticipant(channel InputChannel, participant InputPeer) (*ChannelsChannelParticipant, error)
- func (c *Client) ChannelsGetParticipants(channel InputChannel, filter ChannelParticipantsFilter, offset, limit int32, ...) (ChannelsChannelParticipants, error)
- func (c *Client) ChannelsGetSendAs(forPaidReactions, forLiveStories bool, peer InputPeer) (*ChannelsSendAsPeers, error)
- func (c *Client) ChannelsInviteToChannel(channel InputChannel, users []InputUser) (*MessagesInvitedUsers, error)
- func (c *Client) ChannelsJoinChannel(channel InputChannel) (Updates, error)
- func (c *Client) ChannelsLeaveChannel(channel InputChannel) (Updates, error)
- func (c *Client) ChannelsReadHistory(channel InputChannel, maxID int32) (bool, error)
- func (c *Client) ChannelsReadMessageContents(channel InputChannel, id []int32) (bool, error)
- func (c *Client) ChannelsReorderUsernames(channel InputChannel, order []string) (bool, error)
- func (c *Client) ChannelsReportAntiSpamFalsePositive(channel InputChannel, msgID int32) (bool, error)
- func (c *Client) ChannelsReportSpam(channel InputChannel, participant InputPeer, id []int32) (bool, error)
- func (c *Client) ChannelsRestrictSponsoredMessages(channel InputChannel, restricted bool) (Updates, error)
- func (c *Client) ChannelsSearchPosts(params *ChannelsSearchPostsParams) (MessagesMessages, error)
- func (c *Client) ChannelsSetBoostsToUnblockRestrictions(channel InputChannel, boosts int32) (Updates, error)
- func (c *Client) ChannelsSetDiscussionGroup(broadcast, group InputChannel) (bool, error)
- func (c *Client) ChannelsSetEmojiStickers(channel InputChannel, stickerset InputStickerSet) (bool, error)
- func (c *Client) ChannelsSetMainProfileTab(channel InputChannel, tab ProfileTab) (bool, error)
- func (c *Client) ChannelsSetStickers(channel InputChannel, stickerset InputStickerSet) (bool, error)
- func (c *Client) ChannelsToggleAntiSpam(channel InputChannel, enabled bool) (Updates, error)
- func (c *Client) ChannelsToggleAutotranslation(channel InputChannel, enabled bool) (Updates, error)
- func (c *Client) ChannelsToggleForum(channel InputChannel, enabled, tabs bool) (Updates, error)
- func (c *Client) ChannelsToggleJoinRequest(channel InputChannel, enabled bool) (Updates, error)
- func (c *Client) ChannelsToggleJoinToSend(channel InputChannel, enabled bool) (Updates, error)
- func (c *Client) ChannelsToggleParticipantsHidden(channel InputChannel, enabled bool) (Updates, error)
- func (c *Client) ChannelsTogglePreHistoryHidden(channel InputChannel, enabled bool) (Updates, error)
- func (c *Client) ChannelsToggleSignatures(signaturesEnabled, profilesEnabled bool, channel InputChannel) (Updates, error)
- func (c *Client) ChannelsToggleSlowMode(channel InputChannel, seconds int32) (Updates, error)
- func (c *Client) ChannelsToggleUsername(channel InputChannel, username string, active bool) (bool, error)
- func (c *Client) ChannelsToggleViewForumAsMessages(channel InputChannel, enabled bool) (Updates, error)
- func (c *Client) ChannelsUpdateColor(forProfile bool, channel InputChannel, color int32, backgroundEmojiID int64) (Updates, error)
- func (c *Client) ChannelsUpdateEmojiStatus(channel InputChannel, emojiStatus EmojiStatus) (Updates, error)
- func (c *Client) ChannelsUpdatePaidMessagesPrice(broadcastMessagesAllowed bool, channel InputChannel, ...) (Updates, error)
- func (c *Client) ChannelsUpdateUsername(channel InputChannel, username string) (bool, error)
- func (c *Client) ChatlistsCheckChatlistInvite(slug string) (ChatlistsChatlistInvite, error)
- func (c *Client) ChatlistsDeleteExportedInvite(chatlist *InputChatlistDialogFilter, slug string) (bool, error)
- func (c *Client) ChatlistsEditExportedInvite(chatlist *InputChatlistDialogFilter, slug, title string, peers []InputPeer) (*ExportedChatlistInvite, error)
- func (c *Client) ChatlistsExportChatlistInvite(chatlist *InputChatlistDialogFilter, title string, peers []InputPeer) (*ChatlistsExportedChatlistInvite, error)
- func (c *Client) ChatlistsGetChatlistUpdates(chatlist *InputChatlistDialogFilter) (*ChatlistsChatlistUpdates, error)
- func (c *Client) ChatlistsGetExportedInvites(chatlist *InputChatlistDialogFilter) (*ChatlistsExportedInvites, error)
- func (c *Client) ChatlistsGetLeaveChatlistSuggestions(chatlist *InputChatlistDialogFilter) ([]Peer, error)
- func (c *Client) ChatlistsHideChatlistUpdates(chatlist *InputChatlistDialogFilter) (bool, error)
- func (c *Client) ChatlistsJoinChatlistInvite(slug string, peers []InputPeer) (Updates, error)
- func (c *Client) ChatlistsJoinChatlistUpdates(chatlist *InputChatlistDialogFilter, peers []InputPeer) (Updates, error)
- func (c *Client) ChatlistsLeaveChatlist(chatlist *InputChatlistDialogFilter, peers []InputPeer) (Updates, error)
- func (c *Client) CheckErr(_ any, err error) error
- func (c *Client) CloseChat(channel *InputChannelObj)
- func (c *Client) CommandPrefixes() string
- func (c *Client) Conn() (*Client, error)
- func (c *Client) Connect() error
- func (c *Client) ConnectBot(botToken string) error
- func (c *Client) ContactsAcceptContact(id InputUser) (Updates, error)
- func (c *Client) ContactsAddContact(params *ContactsAddContactParams) (Updates, error)
- func (c *Client) ContactsBlock(myStoriesFrom bool, id InputPeer) (bool, error)
- func (c *Client) ContactsBlockFromReplies(deleteMessage, deleteHistory, reportSpam bool, msgID int32) (Updates, error)
- func (c *Client) ContactsDeleteByPhones(phones []string) (bool, error)
- func (c *Client) ContactsDeleteContacts(id []InputUser) (Updates, error)
- func (c *Client) ContactsEditCloseFriends(id []int64) (bool, error)
- func (c *Client) ContactsExportContactToken() (*ExportedContactToken, error)
- func (c *Client) ContactsGetBirthdays() (*ContactsContactBirthdays, error)
- func (c *Client) ContactsGetBlocked(myStoriesFrom bool, offset, limit int32) (ContactsBlocked, error)
- func (c *Client) ContactsGetContactIDs(hash int64) ([]int32, error)
- func (c *Client) ContactsGetContacts(hash int64) (ContactsContacts, error)
- func (c *Client) ContactsGetLocated(background bool, geoPoint InputGeoPoint, selfExpires int32) (Updates, error)
- func (c *Client) ContactsGetSaved() ([]*SavedPhoneContact, error)
- func (c *Client) ContactsGetSponsoredPeers(q string) (ContactsSponsoredPeers, error)
- func (c *Client) ContactsGetStatuses() ([]*ContactStatus, error)
- func (c *Client) ContactsGetTopPeers(params *ContactsGetTopPeersParams) (ContactsTopPeers, error)
- func (c *Client) ContactsImportContactToken(token string) (User, error)
- func (c *Client) ContactsImportContacts(contacts []*InputPhoneContact) (*ContactsImportedContacts, error)
- func (c *Client) ContactsResetSaved() (bool, error)
- func (c *Client) ContactsResetTopPeerRating(category TopPeerCategory, peer InputPeer) (bool, error)
- func (c *Client) ContactsResolvePhone(phone string) (*ContactsResolvedPeer, error)
- func (c *Client) ContactsResolveUsername(username, referer string) (*ContactsResolvedPeer, error)
- func (c *Client) ContactsSearch(q string, limit int32) (*ContactsFound, error)
- func (c *Client) ContactsSetBlocked(myStoriesFrom bool, id []InputPeer, limit int32) (bool, error)
- func (c *Client) ContactsToggleTopPeers(enabled bool) (bool, error)
- func (c *Client) ContactsUnblock(myStoriesFrom bool, id InputPeer) (bool, error)
- func (c *Client) ContactsUpdateContactNote(id InputUser, note *TextWithEntities) (bool, error)
- func (c *Client) CreateChannel(title string, opts ...*ChannelOptions) (*Channel, error)
- func (c *Client) CreateExportedSender(dcID int, cdn bool, authParams ...*AuthExportedAuthorization) (*mtproto.MTProto, error)
- func (c *Client) DecryptSecretFile(inputFile InputEncryptedFile, key, iv []byte, originalSize int, dcId int) ([]byte, error)
- func (c *Client) DecryptSecretMessage(chatID int32, encryptedData []byte) (*e2e.DecryptedMessageLayer, error)
- func (c *Client) DeleteChannel(channel any) (*Updates, error)
- func (c *Client) DeleteMessages(peerID any, msgIDs []int32, noRevoke ...bool) (*MessagesAffectedMessages, error)
- func (c *Client) DiscardSecretChat(chatID int32, revoke ...bool) error
- func (c *Client) Disconnect() error
- func (c *Client) DownloadChunk(media any, start int, end int, chunkSize int) ([]byte, string, error)
- func (c *Client) DownloadMedia(file any, Opts ...*DownloadOptions) (string, error)
- func (c *Client) Edit2FA(currPwd, newPwd string, opts ...*PasswordOptions) (bool, error)
- func (c *Client) EditAdmin(PeerID, UserID any, Opts ...*AdminOptions) (bool, error)
- func (c *Client) EditAdminBuilder(chatID, userID any) *AdminBuilder
- func (c *Client) EditBanned(PeerID, UserID any, opts ...*BannedOptions) (bool, error)
- func (c *Client) EditBannedBuilder(chatID, userID any) *BannedBuilder
- func (c *Client) EditMessage(peerID any, id int32, message any, opts ...*SendOptions) (*NewMessage, error)
- func (c *Client) EditTitle(PeerID any, Title string, Opts ...*TitleOptions) (bool, error)
- func (c *Client) ExportPts() int32
- func (c *Client) ExportRawSession() *Session
- func (c *Client) ExportSession() string
- func (c *Client) ExportStringSession() string
- func (c *Client) FetchChannelDifference(channelID int64, fromPts int32, limit int32)
- func (c *Client) FetchDifference(fromPts int32, limit int32)
- func (c *Client) FetchDifferenceOnStartup(pts int32)
- func (c *Client) FoldersEditPeerFolders(folderPeers []*InputFolderPeer) (Updates, error)
- func (c *Client) FormatMessage(message, mode string) ([]MessageEntity, string)
- func (c *Client) Forward(peerID, fromPeerID any, msgIDs []int32, opts ...*ForwardOptions) ([]NewMessage, error)
- func (c *Client) FragmentGetCollectibleInfo(collectible InputCollectible) (*FragmentCollectibleInfo, error)
- func (c *Client) GetChannel(channelID int64) (*Channel, error)
- func (c *Client) GetChat(chatID int64) (*ChatObj, error)
- func (c *Client) GetChatInviteLink(peerID any, LinkOpts ...*InviteLinkOptions) (ExportedChatInvite, error)
- func (c *Client) GetChatJoinRequests(channelID any, lim int, query ...string) ([]*JoinRequest, error)
- func (c *Client) GetChatMember(chatID, userID any) (*Participant, error)
- func (c *Client) GetChatMembers(chatID any, Opts ...*ParticipantOptions) ([]*Participant, int32, error)
- func (c *Client) GetChatPhoto(chatID any) (Photo, error)
- func (c *Client) GetChatPhotos(chatID any, limit ...int32) ([]Photo, error)
- func (c *Client) GetCommonChats(userID any) ([]Chat, error)
- func (c *Client) GetCurrentIP() string
- func (c *Client) GetCustomEmoji(docIDs ...int64) ([]Document, error)
- func (c *Client) GetDC() int
- func (c *Client) GetDialogs(Opts ...*DialogOptions) ([]TLDialog, error)
- func (c *Client) GetDifference(Pts, Limit int32) (Message, error)
- func (c *Client) GetExportedSendersStatus() map[int]int
- func (c *Client) GetGroupCall(chatId any) (*InputGroupCall, error)
- func (c *Client) GetGroupCallStream(chatId any) (*GroupCallStream, error)
- func (c *Client) GetHandlerMetrics(handle Handle) *HandlerMetrics
- func (c *Client) GetHistory(PeerID any, opts ...*HistoryOption) ([]NewMessage, error)
- func (c *Client) GetInputPeer(peerID int64) (InputPeer, error)
- func (c *Client) GetLinkedChannel(channel any) (*Channel, error)
- func (c *Client) GetMe() (*UserObj, error)
- func (c *Client) GetMediaGroup(PeerID any, MsgID int32) ([]NewMessage, error)
- func (c *Client) GetMessageByID(PeerID any, MsgID int32) (*NewMessage, error)
- func (c *Client) GetMessages(PeerID any, Opts ...*SearchOption) ([]NewMessage, error)
- func (c *Client) GetMyGifts(unique ...bool) ([]*StarGift, error)
- func (c *Client) GetPeer(peerID int64) (any, error)
- func (c *Client) GetPeerChannel(channelID int64) (*InputPeerChannel, error)
- func (c *Client) GetPeerID(Peer any) int64
- func (c *Client) GetPeerUser(userID int64) (*InputPeerUser, error)
- func (c *Client) GetPinnedMessage(PeerID any) (*NewMessage, error)
- func (c *Client) GetProfilePhotos(userID any, Opts ...*PhotosOptions) ([]UserPhoto, error)
- func (c *Client) GetProxy() Proxy
- func (c *Client) GetSendableChannel(PeerID any) (InputChannel, error)
- func (c *Client) GetSendableMedia(mediaFile any, attr *MediaMetadata) (InputMedia, error)
- func (c *Client) GetSendablePeer(PeerID any) (InputPeer, error)
- func (c *Client) GetSendableUser(PeerID any) (InputUser, error)
- func (c *Client) GetStats(channel any, messageID ...any) (*StatsBroadcastStats, *StatsMessageStats, error)
- func (c *Client) GetUser(userID int64) (*UserObj, error)
- func (c *Client) HandleSecretChatUpdate(update Update) error
- func (c *Client) HelpAcceptTermsOfService(id *DataJson) (bool, error)
- func (c *Client) HelpDismissSuggestion(peer InputPeer, suggestion string) (bool, error)
- func (c *Client) HelpEditUserInfo(userID InputUser, message string, entities []MessageEntity) (HelpUserInfo, error)
- func (c *Client) HelpGetAppConfig(hash int32) (HelpAppConfig, error)
- func (c *Client) HelpGetAppUpdate(source string) (HelpAppUpdate, error)
- func (c *Client) HelpGetCdnConfig() (*CdnConfig, error)
- func (c *Client) HelpGetConfig() (*Config, error)
- func (c *Client) HelpGetCountriesList(langCode string, hash int32) (HelpCountriesList, error)
- func (c *Client) HelpGetDeepLinkInfo(path string) (HelpDeepLinkInfo, error)
- func (c *Client) HelpGetInviteText() (*HelpInviteText, error)
- func (c *Client) HelpGetNearestDc() (*NearestDc, error)
- func (c *Client) HelpGetPassportConfig(hash int32) (HelpPassportConfig, error)
- func (c *Client) HelpGetPeerColors(hash int32) (HelpPeerColors, error)
- func (c *Client) HelpGetPeerProfileColors(hash int32) (HelpPeerColors, error)
- func (c *Client) HelpGetPremiumPromo() (*HelpPremiumPromo, error)
- func (c *Client) HelpGetPromoData() (HelpPromoData, error)
- func (c *Client) HelpGetRecentMeUrls(referer string) (*HelpRecentMeUrls, error)
- func (c *Client) HelpGetSupport() (*HelpSupport, error)
- func (c *Client) HelpGetSupportName() (*HelpSupportName, error)
- func (c *Client) HelpGetTermsOfServiceUpdate() (HelpTermsOfServiceUpdate, error)
- func (c *Client) HelpGetTimezonesList(hash int32) (HelpTimezonesList, error)
- func (c *Client) HelpGetUserInfo(userID InputUser) (HelpUserInfo, error)
- func (c *Client) HelpHidePromoData(peer InputPeer) (bool, error)
- func (c *Client) HelpSaveAppLog(events []*InputAppEvent) (bool, error)
- func (c *Client) HelpSetBotUpdatesStatus(pendingUpdatesCount int32, message string) (bool, error)
- func (c *Client) IdInCache(id int64) bool
- func (c *Client) Idle()
- func (c *Client) ImportRawSession(sess *Session) error
- func (c *Client) ImportSession(sessionString string) (bool, error)
- func (c *Client) ImportStringSession(sessionString string) (bool, error)
- func (c *Client) InitConnection(params *InitConnectionParams) (tl.Object, error)
- func (c *Client) InitialRequest() error
- func (c *Client) InlineQuery(peerID any, Options ...*InlineOptions) (*MessagesBotResults, error)
- func (c *Client) InvokeWithLayer(layer int, query tl.Object) (tl.Object, error)
- func (c *Client) InvokeWithMessagesRange(r MessageRange, query tl.Object) (tl.Object, error)
- func (c *Client) InvokeWithTakeout(takeoutID int, query tl.Object) (tl.Object, error)
- func (c *Client) InvokeWithoutUpdates(query tl.Object) (tl.Object, error)
- func (c *Client) IsAuthorized() (bool, error)
- func (c *Client) IsConnected() bool
- func (c *Client) IterChatMembers(chatID any, Opts ...*ParticipantOptions) (<-chan *Participant, <-chan error)
- func (c *Client) IterDialogs(callback func(*TLDialog) error, Opts ...*DialogOptions) error
- func (c *Client) IterHistory(PeerID any, callback func(*NewMessage) error, opts ...*HistoryOption) error
- func (c *Client) IterMessages(PeerID any, callback func(*NewMessage) error, Opts ...*SearchOption) error
- func (c *Client) JSON(object any, noindent ...any) string
- func (c *Client) JoinChannel(Channel any) (bool, error)
- func (c *Client) KickParticipant(PeerID, UserID any) (bool, error)
- func (c *Client) LangpackGetDifference(langPack, langCode string, fromVersion int32) (*LangPackDifference, error)
- func (c *Client) LangpackGetLangPack(langPack, langCode string) (*LangPackDifference, error)
- func (c *Client) LangpackGetLanguage(langPack, langCode string) (*LangPackLanguage, error)
- func (c *Client) LangpackGetLanguages(langPack string) ([]*LangPackLanguage, error)
- func (c *Client) LangpackGetStrings(langPack, langCode string, keys []string) ([]LangPackString, error)
- func (c *Client) LeaveChannel(Channel any, Revoke ...bool) error
- func (c *Client) LogColor(mode bool)
- func (c *Client) LogOut() error
- func (c *Client) Login(phoneNumber string, options ...*LoginOptions) (bool, error)
- func (c *Client) LoginBot(botToken string) error
- func (c *Client) MatchRPCError(err error, message string) bool
- func (c *Client) Me() *UserObj
- func (c *Client) MessagesAcceptEncryption(peer *InputEncryptedChat, gB []byte, keyFingerprint int64) (EncryptedChat, error)
- func (c *Client) MessagesAcceptURLAuth(params *MessagesAcceptURLAuthParams) (URLAuthResult, error)
- func (c *Client) MessagesAddChatUser(chatID int64, userID InputUser, fwdLimit int32) (*MessagesInvitedUsers, error)
- func (c *Client) MessagesAppendTodoList(peer InputPeer, msgID int32, list []*TodoItem) (Updates, error)
- func (c *Client) MessagesCheckChatInvite(hash string) (ChatInvite, error)
- func (c *Client) MessagesCheckHistoryImport(importHead string) (*MessagesHistoryImportParsed, error)
- func (c *Client) MessagesCheckHistoryImportPeer(peer InputPeer) (*MessagesCheckedHistoryImportPeer, error)
- func (c *Client) MessagesCheckQuickReplyShortcut(shortcut string) (bool, error)
- func (c *Client) MessagesClearAllDrafts() (bool, error)
- func (c *Client) MessagesClearRecentReactions() (bool, error)
- func (c *Client) MessagesClearRecentStickers(attached bool) (bool, error)
- func (c *Client) MessagesClickSponsoredMessage(media, fullscreen bool, randomID []byte) (bool, error)
- func (c *Client) MessagesCreateChat(users []InputUser, title string, ttlPeriod int32) (*MessagesInvitedUsers, error)
- func (c *Client) MessagesCreateForumTopic(params *MessagesCreateForumTopicParams) (Updates, error)
- func (c *Client) MessagesDeleteChat(chatID int64) (bool, error)
- func (c *Client) MessagesDeleteChatUser(revokeHistory bool, chatID int64, userID InputUser) (Updates, error)
- func (c *Client) MessagesDeleteExportedChatInvite(peer InputPeer, link string) (bool, error)
- func (c *Client) MessagesDeleteFactCheck(peer InputPeer, msgID int32) (Updates, error)
- func (c *Client) MessagesDeleteHistory(params *MessagesDeleteHistoryParams) (*MessagesAffectedHistory, error)
- func (c *Client) MessagesDeleteMessages(revoke bool, id []int32) (*MessagesAffectedMessages, error)
- func (c *Client) MessagesDeletePhoneCallHistory(revoke bool) (*MessagesAffectedFoundMessages, error)
- func (c *Client) MessagesDeleteQuickReplyMessages(shortcutID int32, id []int32) (Updates, error)
- func (c *Client) MessagesDeleteQuickReplyShortcut(shortcutID int32) (bool, error)
- func (c *Client) MessagesDeleteRevokedExportedChatInvites(peer InputPeer, adminID InputUser) (bool, error)
- func (c *Client) MessagesDeleteSavedHistory(params *MessagesDeleteSavedHistoryParams) (*MessagesAffectedHistory, error)
- func (c *Client) MessagesDeleteScheduledMessages(peer InputPeer, id []int32) (Updates, error)
- func (c *Client) MessagesDeleteTopicHistory(peer InputPeer, topMsgID int32) (*MessagesAffectedHistory, error)
- func (c *Client) MessagesDiscardEncryption(deleteHistory bool, chatID int32) (bool, error)
- func (c *Client) MessagesEditChatAbout(peer InputPeer, about string) (bool, error)
- func (c *Client) MessagesEditChatAdmin(chatID int64, userID InputUser, isAdmin bool) (bool, error)
- func (c *Client) MessagesEditChatDefaultBannedRights(peer InputPeer, bannedRights *ChatBannedRights) (Updates, error)
- func (c *Client) MessagesEditChatPhoto(chatID int64, photo InputChatPhoto) (Updates, error)
- func (c *Client) MessagesEditChatTitle(chatID int64, title string) (Updates, error)
- func (c *Client) MessagesEditExportedChatInvite(params *MessagesEditExportedChatInviteParams) (MessagesExportedChatInvite, error)
- func (c *Client) MessagesEditFactCheck(peer InputPeer, msgID int32, text *TextWithEntities) (Updates, error)
- func (c *Client) MessagesEditForumTopic(params *MessagesEditForumTopicParams) (Updates, error)
- func (c *Client) MessagesEditInlineBotMessage(params *MessagesEditInlineBotMessageParams) (bool, error)
- func (c *Client) MessagesEditMessage(params *MessagesEditMessageParams) (Updates, error)
- func (c *Client) MessagesEditQuickReplyShortcut(shortcutID int32, shortcut string) (bool, error)
- func (c *Client) MessagesExportChatInvite(params *MessagesExportChatInviteParams) (ExportedChatInvite, error)
- func (c *Client) MessagesFaveSticker(id InputDocument, unfave bool) (bool, error)
- func (c *Client) MessagesForwardMessages(params *MessagesForwardMessagesParams) (Updates, error)
- func (c *Client) MessagesGetAdminsWithInvites(peer InputPeer) (*MessagesChatAdminsWithInvites, error)
- func (c *Client) MessagesGetAllDrafts() (Updates, error)
- func (c *Client) MessagesGetAllStickers(hash int64) (MessagesAllStickers, error)
- func (c *Client) MessagesGetArchivedStickers(masks, emojis bool, offsetID int64, limit int32) (*MessagesArchivedStickers, error)
- func (c *Client) MessagesGetAttachMenuBot(bot InputUser) (*AttachMenuBotsBot, error)
- func (c *Client) MessagesGetAttachMenuBots(hash int64) (AttachMenuBots, error)
- func (c *Client) MessagesGetAttachedStickers(media InputStickeredMedia) ([]StickerSetCovered, error)
- func (c *Client) MessagesGetAvailableEffects(hash int32) (MessagesAvailableEffects, error)
- func (c *Client) MessagesGetAvailableReactions(hash int32) (MessagesAvailableReactions, error)
- func (c *Client) MessagesGetBotApp(app InputBotApp, hash int64) (*MessagesBotApp, error)
- func (c *Client) MessagesGetBotCallbackAnswer(params *MessagesGetBotCallbackAnswerParams) (*MessagesBotCallbackAnswer, error)
- func (c *Client) MessagesGetChatInviteImporters(params *MessagesGetChatInviteImportersParams) (*MessagesChatInviteImporters, error)
- func (c *Client) MessagesGetChats(id []int64) (MessagesChats, error)
- func (c *Client) MessagesGetCommonChats(userID InputUser, maxID int64, limit int32) (MessagesChats, error)
- func (c *Client) MessagesGetCustomEmojiDocuments(documentID []int64) ([]Document, error)
- func (c *Client) MessagesGetDefaultHistoryTtl() (*DefaultHistoryTtl, error)
- func (c *Client) MessagesGetDefaultTagReactions(hash int64) (MessagesReactions, error)
- func (c *Client) MessagesGetDhConfig(version, randomLength int32) (MessagesDhConfig, error)
- func (c *Client) MessagesGetDialogFilters() (*MessagesDialogFilters, error)
- func (c *Client) MessagesGetDialogUnreadMarks(parentPeer InputPeer) ([]DialogPeer, error)
- func (c *Client) MessagesGetDialogs(params *MessagesGetDialogsParams) (MessagesDialogs, error)
- func (c *Client) MessagesGetDiscussionMessage(peer InputPeer, msgID int32) (*MessagesDiscussionMessage, error)
- func (c *Client) MessagesGetDocumentByHash(sha256 []byte, size int64, mimeType string) (Document, error)
- func (c *Client) MessagesGetEmojiGroups(hash int32) (MessagesEmojiGroups, error)
- func (c *Client) MessagesGetEmojiKeywords(langCode string) (*EmojiKeywordsDifference, error)
- func (c *Client) MessagesGetEmojiKeywordsDifference(langCode string, fromVersion int32) (*EmojiKeywordsDifference, error)
- func (c *Client) MessagesGetEmojiKeywordsLanguages(langCodes []string) ([]*EmojiLanguage, error)
- func (c *Client) MessagesGetEmojiProfilePhotoGroups(hash int32) (MessagesEmojiGroups, error)
- func (c *Client) MessagesGetEmojiStatusGroups(hash int32) (MessagesEmojiGroups, error)
- func (c *Client) MessagesGetEmojiStickerGroups(hash int32) (MessagesEmojiGroups, error)
- func (c *Client) MessagesGetEmojiStickers(hash int64) (MessagesAllStickers, error)
- func (c *Client) MessagesGetEmojiURL(langCode string) (*EmojiURL, error)
- func (c *Client) MessagesGetExportedChatInvite(peer InputPeer, link string) (MessagesExportedChatInvite, error)
- func (c *Client) MessagesGetExportedChatInvites(params *MessagesGetExportedChatInvitesParams) (*MessagesExportedChatInvites, error)
- func (c *Client) MessagesGetExtendedMedia(peer InputPeer, id []int32) (Updates, error)
- func (c *Client) MessagesGetFactCheck(peer InputPeer, msgID []int32) ([]*FactCheck, error)
- func (c *Client) MessagesGetFavedStickers(hash int64) (MessagesFavedStickers, error)
- func (c *Client) MessagesGetFeaturedEmojiStickers(hash int64) (MessagesFeaturedStickers, error)
- func (c *Client) MessagesGetFeaturedStickers(hash int64) (MessagesFeaturedStickers, error)
- func (c *Client) MessagesGetForumTopics(params *MessagesGetForumTopicsParams) (*MessagesForumTopics, error)
- func (c *Client) MessagesGetForumTopicsByID(peer InputPeer, topics []int32) (*MessagesForumTopics, error)
- func (c *Client) MessagesGetFullChat(chatID int64) (*MessagesChatFull, error)
- func (c *Client) MessagesGetGameHighScores(peer InputPeer, id int32, userID InputUser) (*MessagesHighScores, error)
- func (c *Client) MessagesGetHistory(params *MessagesGetHistoryParams) (MessagesMessages, error)
- func (c *Client) MessagesGetInlineBotResults(params *MessagesGetInlineBotResultsParams) (*MessagesBotResults, error)
- func (c *Client) MessagesGetInlineGameHighScores(id InputBotInlineMessageID, userID InputUser) (*MessagesHighScores, error)
- func (c *Client) MessagesGetMaskStickers(hash int64) (MessagesAllStickers, error)
- func (c *Client) MessagesGetMessageEditData(peer InputPeer, id int32) (*MessagesMessageEditData, error)
- func (c *Client) MessagesGetMessageReactionsList(params *MessagesGetMessageReactionsListParams) (*MessagesMessageReactionsList, error)
- func (c *Client) MessagesGetMessageReadParticipants(peer InputPeer, msgID int32) ([]*ReadParticipantDate, error)
- func (c *Client) MessagesGetMessages(id []InputMessage) (MessagesMessages, error)
- func (c *Client) MessagesGetMessagesReactions(peer InputPeer, id []int32) (Updates, error)
- func (c *Client) MessagesGetMessagesViews(peer InputPeer, id []int32, increment bool) (*MessagesMessageViews, error)
- func (c *Client) MessagesGetMyStickers(offsetID int64, limit int32) (*MessagesMyStickers, error)
- func (c *Client) MessagesGetOldFeaturedStickers(offset, limit int32, hash int64) (MessagesFeaturedStickers, error)
- func (c *Client) MessagesGetOnlines(peer InputPeer) (*ChatOnlines, error)
- func (c *Client) MessagesGetOutboxReadDate(peer InputPeer, msgID int32) (*OutboxReadDate, error)
- func (c *Client) MessagesGetPaidReactionPrivacy() (Updates, error)
- func (c *Client) MessagesGetPeerDialogs(peers []InputDialogPeer) (*MessagesPeerDialogs, error)
- func (c *Client) MessagesGetPeerSettings(peer InputPeer) (*MessagesPeerSettings, error)
- func (c *Client) MessagesGetPinnedDialogs(folderID int32) (*MessagesPeerDialogs, error)
- func (c *Client) MessagesGetPinnedSavedDialogs() (MessagesSavedDialogs, error)
- func (c *Client) MessagesGetPollResults(peer InputPeer, msgID int32) (Updates, error)
- func (c *Client) MessagesGetPollVotes(params *MessagesGetPollVotesParams) (*MessagesVotesList, error)
- func (c *Client) MessagesGetPreparedInlineMessage(bot InputUser, id string) (*MessagesPreparedInlineMessage, error)
- func (c *Client) MessagesGetQuickReplies(hash int64) (MessagesQuickReplies, error)
- func (c *Client) MessagesGetQuickReplyMessages(shortcutID int32, id []int32, hash int64) (MessagesMessages, error)
- func (c *Client) MessagesGetRecentLocations(peer InputPeer, limit int32, hash int64) (MessagesMessages, error)
- func (c *Client) MessagesGetRecentReactions(limit int32, hash int64) (MessagesReactions, error)
- func (c *Client) MessagesGetRecentStickers(attached bool, hash int64) (MessagesRecentStickers, error)
- func (c *Client) MessagesGetReplies(params *MessagesGetRepliesParams) (MessagesMessages, error)
- func (c *Client) MessagesGetSavedDialogs(params *MessagesGetSavedDialogsParams) (MessagesSavedDialogs, error)
- func (c *Client) MessagesGetSavedDialogsByID(parentPeer InputPeer, ids []InputPeer) (MessagesSavedDialogs, error)
- func (c *Client) MessagesGetSavedGifs(hash int64) (MessagesSavedGifs, error)
- func (c *Client) MessagesGetSavedHistory(params *MessagesGetSavedHistoryParams) (MessagesMessages, error)
- func (c *Client) MessagesGetSavedReactionTags(peer InputPeer, hash int64) (MessagesSavedReactionTags, error)
- func (c *Client) MessagesGetScheduledHistory(peer InputPeer, hash int64) (MessagesMessages, error)
- func (c *Client) MessagesGetScheduledMessages(peer InputPeer, id []int32) (MessagesMessages, error)
- func (c *Client) MessagesGetSearchCounters(peer, savedPeerID InputPeer, topMsgID int32, filters []MessagesFilter) ([]*MessagesSearchCounter, error)
- func (c *Client) MessagesGetSearchResultsCalendar(params *MessagesGetSearchResultsCalendarParams) (*MessagesSearchResultsCalendar, error)
- func (c *Client) MessagesGetSearchResultsPositions(params *MessagesGetSearchResultsPositionsParams) (*MessagesSearchResultsPositions, error)
- func (c *Client) MessagesGetSplitRanges() ([]*MessageRange, error)
- func (c *Client) MessagesGetSponsoredMessages(peer InputPeer, msgID int32) (MessagesSponsoredMessages, error)
- func (c *Client) MessagesGetStickerSet(stickerset InputStickerSet, hash int32) (MessagesStickerSet, error)
- func (c *Client) MessagesGetStickers(emoticon string, hash int64) (MessagesStickers, error)
- func (c *Client) MessagesGetSuggestedDialogFilters() ([]*DialogFilterSuggested, error)
- func (c *Client) MessagesGetTopReactions(limit int32, hash int64) (MessagesReactions, error)
- func (c *Client) MessagesGetUnreadMentions(params *MessagesGetUnreadMentionsParams) (MessagesMessages, error)
- func (c *Client) MessagesGetUnreadReactions(params *MessagesGetUnreadReactionsParams) (MessagesMessages, error)
- func (c *Client) MessagesGetWebPage(url string, hash int32) (*MessagesWebPage, error)
- func (c *Client) MessagesGetWebPagePreview(message string, entities []MessageEntity) (*MessagesWebPagePreview, error)
- func (c *Client) MessagesHideAllChatJoinRequests(approved bool, peer InputPeer, link string) (Updates, error)
- func (c *Client) MessagesHideChatJoinRequest(approved bool, peer InputPeer, userID InputUser) (Updates, error)
- func (c *Client) MessagesHidePeerSettingsBar(peer InputPeer) (bool, error)
- func (c *Client) MessagesImportChatInvite(hash string) (Updates, error)
- func (c *Client) MessagesInitHistoryImport(peer InputPeer, file InputFile, mediaCount int32) (*MessagesHistoryImport, error)
- func (c *Client) MessagesInstallStickerSet(stickerset InputStickerSet, archived bool) (MessagesStickerSetInstallResult, error)
- func (c *Client) MessagesMarkDialogUnread(unread bool, parentPeer InputPeer, peer InputDialogPeer) (bool, error)
- func (c *Client) MessagesMigrateChat(chatID int64) (Updates, error)
- func (c *Client) MessagesProlongWebView(params *MessagesProlongWebViewParams) (bool, error)
- func (c *Client) MessagesRateTranscribedAudio(peer InputPeer, msgID int32, transcriptionID int64, good bool) (bool, error)
- func (c *Client) MessagesReadDiscussion(peer InputPeer, msgID, readMaxID int32) (bool, error)
- func (c *Client) MessagesReadEncryptedHistory(peer *InputEncryptedChat, maxDate int32) (bool, error)
- func (c *Client) MessagesReadFeaturedStickers(id []int64) (bool, error)
- func (c *Client) MessagesReadHistory(peer InputPeer, maxID int32) (*MessagesAffectedMessages, error)
- func (c *Client) MessagesReadMentions(peer InputPeer, topMsgID int32) (*MessagesAffectedHistory, error)
- func (c *Client) MessagesReadMessageContents(id []int32) (*MessagesAffectedMessages, error)
- func (c *Client) MessagesReadReactions(peer InputPeer, topMsgID int32, savedPeerID InputPeer) (*MessagesAffectedHistory, error)
- func (c *Client) MessagesReadSavedHistory(parentPeer, peer InputPeer, maxID int32) (bool, error)
- func (c *Client) MessagesReceivedMessages(maxID int32) ([]*ReceivedNotifyMessage, error)
- func (c *Client) MessagesReceivedQueue(maxQts int32) ([]int64, error)
- func (c *Client) MessagesReorderPinnedDialogs(force bool, folderID int32, order []InputDialogPeer) (bool, error)
- func (c *Client) MessagesReorderPinnedForumTopics(force bool, peer InputPeer, order []int32) (Updates, error)
- func (c *Client) MessagesReorderPinnedSavedDialogs(force bool, order []InputDialogPeer) (bool, error)
- func (c *Client) MessagesReorderQuickReplies(order []int32) (bool, error)
- func (c *Client) MessagesReorderStickerSets(masks, emojis bool, order []int64) (bool, error)
- func (c *Client) MessagesReport(peer InputPeer, id []int32, option []byte, message string) (ReportResult, error)
- func (c *Client) MessagesReportEncryptedSpam(peer *InputEncryptedChat) (bool, error)
- func (c *Client) MessagesReportMessagesDelivery(push bool, peer InputPeer, id []int32) (bool, error)
- func (c *Client) MessagesReportReaction(peer InputPeer, id int32, reactionPeer InputPeer) (bool, error)
- func (c *Client) MessagesReportSpam(peer InputPeer) (bool, error)
- func (c *Client) MessagesReportSponsoredMessage(randomID, option []byte) (ChannelsSponsoredMessageReportResult, error)
- func (c *Client) MessagesRequestAppWebView(params *MessagesRequestAppWebViewParams) (*WebViewResultURL, error)
- func (c *Client) MessagesRequestEncryption(userID InputUser, randomID int32, gA []byte) (EncryptedChat, error)
- func (c *Client) MessagesRequestMainWebView(params *MessagesRequestMainWebViewParams) (*WebViewResultURL, error)
- func (c *Client) MessagesRequestSimpleWebView(params *MessagesRequestSimpleWebViewParams) (*WebViewResultURL, error)
- func (c *Client) MessagesRequestURLAuth(peer InputPeer, msgID, buttonID int32, url string) (URLAuthResult, error)
- func (c *Client) MessagesRequestWebView(params *MessagesRequestWebViewParams) (*WebViewResultURL, error)
- func (c *Client) MessagesSaveDefaultSendAs(peer, sendAs InputPeer) (bool, error)
- func (c *Client) MessagesSaveDraft(params *MessagesSaveDraftParams) (bool, error)
- func (c *Client) MessagesSaveGif(id InputDocument, unsave bool) (bool, error)
- func (c *Client) MessagesSavePreparedInlineMessage(result InputBotInlineResult, userID InputUser, peerTypes []InlineQueryPeerType) (*MessagesBotPreparedInlineMessage, error)
- func (c *Client) MessagesSaveRecentSticker(attached bool, id InputDocument, unsave bool) (bool, error)
- func (c *Client) MessagesSearch(params *MessagesSearchParams) (MessagesMessages, error)
- func (c *Client) MessagesSearchCustomEmoji(emoticon string, hash int64) (EmojiList, error)
- func (c *Client) MessagesSearchEmojiStickerSets(excludeFeatured bool, q string, hash int64) (MessagesFoundStickerSets, error)
- func (c *Client) MessagesSearchGlobal(params *MessagesSearchGlobalParams) (MessagesMessages, error)
- func (c *Client) MessagesSearchSentMedia(q string, filter MessagesFilter, limit int32) (MessagesMessages, error)
- func (c *Client) MessagesSearchStickerSets(excludeFeatured bool, q string, hash int64) (MessagesFoundStickerSets, error)
- func (c *Client) MessagesSearchStickers(params *MessagesSearchStickersParams) (MessagesFoundStickers, error)
- func (c *Client) MessagesSendBotRequestedPeer(peer InputPeer, msgID, buttonID int32, requestedPeers []InputPeer) (Updates, error)
- func (c *Client) MessagesSendEncrypted(silent bool, peer *InputEncryptedChat, randomID int64, data []byte) (MessagesSentEncryptedMessage, error)
- func (c *Client) MessagesSendEncryptedFile(params *MessagesSendEncryptedFileParams) (MessagesSentEncryptedMessage, error)
- func (c *Client) MessagesSendEncryptedService(peer *InputEncryptedChat, randomID int64, data []byte) (MessagesSentEncryptedMessage, error)
- func (c *Client) MessagesSendInlineBotResult(params *MessagesSendInlineBotResultParams) (Updates, error)
- func (c *Client) MessagesSendMedia(params *MessagesSendMediaParams) (Updates, error)
- func (c *Client) MessagesSendMessage(params *MessagesSendMessageParams) (Updates, error)
- func (c *Client) MessagesSendMultiMedia(params *MessagesSendMultiMediaParams) (Updates, error)
- func (c *Client) MessagesSendPaidReaction(params *MessagesSendPaidReactionParams) (Updates, error)
- func (c *Client) MessagesSendQuickReplyMessages(peer InputPeer, shortcutID int32, id []int32, randomID []int64) (Updates, error)
- func (c *Client) MessagesSendReaction(params *MessagesSendReactionParams) (Updates, error)
- func (c *Client) MessagesSendScheduledMessages(peer InputPeer, id []int32) (Updates, error)
- func (c *Client) MessagesSendScreenshotNotification(peer InputPeer, replyTo InputReplyTo, randomID int64) (Updates, error)
- func (c *Client) MessagesSendVote(peer InputPeer, msgID int32, options [][]byte) (Updates, error)
- func (c *Client) MessagesSendWebViewData(bot InputUser, randomID int64, buttonText, data string) (Updates, error)
- func (c *Client) MessagesSendWebViewResultMessage(botQueryID string, result InputBotInlineResult) (*WebViewMessageSent, error)
- func (c *Client) MessagesSetBotCallbackAnswer(params *MessagesSetBotCallbackAnswerParams) (bool, error)
- func (c *Client) MessagesSetBotPrecheckoutResults(success bool, queryID int64, error string) (bool, error)
- func (c *Client) MessagesSetBotShippingResults(queryID int64, error string, shippingOptions []*ShippingOption) (bool, error)
- func (c *Client) MessagesSetChatAvailableReactions(peer InputPeer, availableReactions ChatReactions, reactionsLimit int32, ...) (Updates, error)
- func (c *Client) MessagesSetChatTheme(peer InputPeer, theme InputChatTheme) (Updates, error)
- func (c *Client) MessagesSetChatWallPaper(params *MessagesSetChatWallPaperParams) (Updates, error)
- func (c *Client) MessagesSetDefaultHistoryTtl(period int32) (bool, error)
- func (c *Client) MessagesSetDefaultReaction(reaction Reaction) (bool, error)
- func (c *Client) MessagesSetEncryptedTyping(peer *InputEncryptedChat, typing bool) (bool, error)
- func (c *Client) MessagesSetGameScore(params *MessagesSetGameScoreParams) (Updates, error)
- func (c *Client) MessagesSetHistoryTtl(peer InputPeer, period int32) (Updates, error)
- func (c *Client) MessagesSetInlineBotResults(params *MessagesSetInlineBotResultsParams) (bool, error)
- func (c *Client) MessagesSetInlineGameScore(params *MessagesSetInlineGameScoreParams) (bool, error)
- func (c *Client) MessagesSetTyping(peer InputPeer, topMsgID int32, action SendMessageAction) (bool, error)
- func (c *Client) MessagesStartBot(bot InputUser, peer InputPeer, randomID int64, startParam string) (Updates, error)
- func (c *Client) MessagesStartHistoryImport(peer InputPeer, importID int64) (bool, error)
- func (c *Client) MessagesToggleBotInAttachMenu(writeAllowed bool, bot InputUser, enabled bool) (bool, error)
- func (c *Client) MessagesToggleDialogFilterTags(enabled bool) (bool, error)
- func (c *Client) MessagesToggleDialogPin(pinned bool, peer InputDialogPeer) (bool, error)
- func (c *Client) MessagesToggleNoForwards(peer InputPeer, enabled bool) (Updates, error)
- func (c *Client) MessagesTogglePaidReactionPrivacy(peer InputPeer, msgID int32, private PaidReactionPrivacy) (bool, error)
- func (c *Client) MessagesTogglePeerTranslations(disabled bool, peer InputPeer) (bool, error)
- func (c *Client) MessagesToggleSavedDialogPin(pinned bool, peer InputDialogPeer) (bool, error)
- func (c *Client) MessagesToggleStickerSets(uninstall, archive, unarchive bool, stickersets []InputStickerSet) (bool, error)
- func (c *Client) MessagesToggleSuggestedPostApproval(params *MessagesToggleSuggestedPostApprovalParams) (Updates, error)
- func (c *Client) MessagesToggleTodoCompleted(peer InputPeer, msgID int32, completed, incompleted []int32) (Updates, error)
- func (c *Client) MessagesTranscribeAudio(peer InputPeer, msgID int32) (*MessagesTranscribedAudio, error)
- func (c *Client) MessagesTranslateText(peer InputPeer, id []int32, text []*TextWithEntities, toLang string) (*MessagesTranslateResult, error)
- func (c *Client) MessagesUninstallStickerSet(stickerset InputStickerSet) (bool, error)
- func (c *Client) MessagesUnpinAllMessages(peer InputPeer, topMsgID int32, savedPeerID InputPeer) (*MessagesAffectedHistory, error)
- func (c *Client) MessagesUpdateDialogFilter(id int32, filter DialogFilter) (bool, error)
- func (c *Client) MessagesUpdateDialogFiltersOrder(order []int32) (bool, error)
- func (c *Client) MessagesUpdatePinnedForumTopic(peer InputPeer, topicID int32, pinned bool) (Updates, error)
- func (c *Client) MessagesUpdatePinnedMessage(params *MessagesUpdatePinnedMessageParams) (Updates, error)
- func (c *Client) MessagesUpdateSavedReactionTag(reaction Reaction, title string) (bool, error)
- func (c *Client) MessagesUploadEncryptedFile(peer *InputEncryptedChat, file InputEncryptedFile) (EncryptedFile, error)
- func (c *Client) MessagesUploadImportedMedia(peer InputPeer, importID int64, fileName string, media InputMedia) (MessageMedia, error)
- func (c *Client) MessagesUploadMedia(businessConnectionID string, peer InputPeer, media InputMedia) (MessageMedia, error)
- func (c *Client) MessagesViewSponsoredMessage(randomID []byte) (bool, error)
- func (c *Client) Must(obj any, err error) any
- func (c *Client) NewConversation(peer any, options ...*ConversationOptions) (*Conversation, error)
- func (c *Client) NewRTMPStream(chatID int64, config ...*RTMPConfig) (*RTMPStream, error)
- func (c *Client) NewRecovery() func()
- func (c *Client) NewUpdateDispatcher(sessionName ...string)
- func (c *Client) On(args ...any) Handle
- func (c *Client) OnAlbum(handler func(m *Album) error) Handle
- func (c *Client) OnCallback(pattern string, handler func(m *CallbackQuery) error) Handle
- func (c *Client) OnCommand(command string, handler func(m *NewMessage) error, filters ...Filter) Handle
- func (c *Client) OnDelete(handler func(m *DeleteMessage) error) Handle
- func (c *Client) OnE2EMessage(handler func(update Update, c *Client) error) Handle
- func (c *Client) OnEdit(pattern string, handler func(m *NewMessage) error) Handle
- func (c *Client) OnInlineQuery(pattern string, handler func(m *InlineQuery) error) Handle
- func (c *Client) OnJoinRequest(handler func(m *JoinRequestUpdate) error) Handle
- func (c *Client) OnMessage(pattern string, handler func(m *NewMessage) error, filters ...Filter) Handle
- func (c *Client) OnParticipant(handler func(m *ParticipantUpdate) error) Handle
- func (c *Client) OnRaw(updateType Update, handler func(m Update, c *Client) error) Handle
- func (c *Client) OpenChat(channel *InputChannelObj, timeoutSeconds int32)
- func (c *Client) ParseMode() string
- func (c *Client) PaymentsApplyGiftCode(slug string) (Updates, error)
- func (c *Client) PaymentsAssignAppStoreTransaction(receipt []byte, purpose InputStorePaymentPurpose) (Updates, error)
- func (c *Client) PaymentsAssignPlayMarketTransaction(receipt *DataJson, purpose InputStorePaymentPurpose) (Updates, error)
- func (c *Client) PaymentsBotCancelStarsSubscription(restore bool, userID InputUser, chargeID string) (bool, error)
- func (c *Client) PaymentsCanPurchaseStore(purpose InputStorePaymentPurpose) (bool, error)
- func (c *Client) PaymentsChangeStarsSubscription(peer InputPeer, subscriptionID string, canceled bool) (bool, error)
- func (c *Client) PaymentsCheckCanSendGift(giftID int64) (PaymentsCheckCanSendGiftResult, error)
- func (c *Client) PaymentsCheckGiftCode(slug string) (*PaymentsCheckedGiftCode, error)
- func (c *Client) PaymentsClearSavedInfo(credentials, info bool) (bool, error)
- func (c *Client) PaymentsConnectStarRefBot(peer InputPeer, bot InputUser) (*PaymentsConnectedStarRefBots, error)
- func (c *Client) PaymentsConvertStarGift(stargift InputSavedStarGift) (bool, error)
- func (c *Client) PaymentsCreateStarGiftCollection(peer InputPeer, title string, stargift []InputSavedStarGift) (*StarGiftCollection, error)
- func (c *Client) PaymentsDeleteStarGiftCollection(peer InputPeer, collectionID int32) (bool, error)
- func (c *Client) PaymentsEditConnectedStarRefBot(revoked bool, peer InputPeer, link string) (*PaymentsConnectedStarRefBots, error)
- func (c *Client) PaymentsExportInvoice(invoiceMedia InputMedia) (*PaymentsExportedInvoice, error)
- func (c *Client) PaymentsFulfillStarsSubscription(peer InputPeer, subscriptionID string) (bool, error)
- func (c *Client) PaymentsGetBankCardData(number string) (*PaymentsBankCardData, error)
- func (c *Client) PaymentsGetConnectedStarRefBot(peer InputPeer, bot InputUser) (*PaymentsConnectedStarRefBots, error)
- func (c *Client) PaymentsGetConnectedStarRefBots(peer InputPeer, offsetDate int32, offsetLink string, limit int32) (*PaymentsConnectedStarRefBots, error)
- func (c *Client) PaymentsGetGiveawayInfo(peer InputPeer, msgID int32) (PaymentsGiveawayInfo, error)
- func (c *Client) PaymentsGetPaymentForm(invoice InputInvoice, themeParams *DataJson) (PaymentsPaymentForm, error)
- func (c *Client) PaymentsGetPaymentReceipt(peer InputPeer, msgID int32) (PaymentsPaymentReceipt, error)
- func (c *Client) PaymentsGetPremiumGiftCodeOptions(boostPeer InputPeer) ([]*PremiumGiftCodeOption, error)
- func (c *Client) PaymentsGetResaleStarGifts(params *PaymentsGetResaleStarGiftsParams) (*PaymentsResaleStarGifts, error)
- func (c *Client) PaymentsGetSavedInfo() (*PaymentsSavedInfo, error)
- func (c *Client) PaymentsGetSavedStarGift(stargift []InputSavedStarGift) (*PaymentsSavedStarGifts, error)
- func (c *Client) PaymentsGetSavedStarGifts(params *PaymentsGetSavedStarGiftsParams) (*PaymentsSavedStarGifts, error)
- func (c *Client) PaymentsGetStarGiftActiveAuctions(hash int64) (PaymentsStarGiftActiveAuctions, error)
- func (c *Client) PaymentsGetStarGiftAuctionAcquiredGifts(giftID int64) (*PaymentsStarGiftAuctionAcquiredGifts, error)
- func (c *Client) PaymentsGetStarGiftAuctionState(auction InputStarGiftAuction, version int32) (*PaymentsStarGiftAuctionState, error)
- func (c *Client) PaymentsGetStarGiftCollections(peer InputPeer, hash int64) (PaymentsStarGiftCollections, error)
- func (c *Client) PaymentsGetStarGiftUpgradeAttributes(giftID int64) (*PaymentsStarGiftUpgradeAttributes, error)
- func (c *Client) PaymentsGetStarGiftUpgradePreview(giftID int64) (*PaymentsStarGiftUpgradePreview, error)
- func (c *Client) PaymentsGetStarGiftWithdrawalURL(stargift InputSavedStarGift, password InputCheckPasswordSRP) (*PaymentsStarGiftWithdrawalURL, error)
- func (c *Client) PaymentsGetStarGifts(hash int32) (PaymentsStarGifts, error)
- func (c *Client) PaymentsGetStarsGiftOptions(userID InputUser) ([]*StarsGiftOption, error)
- func (c *Client) PaymentsGetStarsGiveawayOptions() ([]*StarsGiveawayOption, error)
- func (c *Client) PaymentsGetStarsRevenueAdsAccountURL(peer InputPeer) (*PaymentsStarsRevenueAdsAccountURL, error)
- func (c *Client) PaymentsGetStarsRevenueStats(dark, ton bool, peer InputPeer) (*PaymentsStarsRevenueStats, error)
- func (c *Client) PaymentsGetStarsRevenueWithdrawalURL(ton bool, peer InputPeer, amount int64, password InputCheckPasswordSRP) (*PaymentsStarsRevenueWithdrawalURL, error)
- func (c *Client) PaymentsGetStarsStatus(ton bool, peer InputPeer) (*PaymentsStarsStatus, error)
- func (c *Client) PaymentsGetStarsSubscriptions(missingBalance bool, peer InputPeer, offset string) (*PaymentsStarsStatus, error)
- func (c *Client) PaymentsGetStarsTopupOptions() ([]*StarsTopupOption, error)
- func (c *Client) PaymentsGetStarsTransactions(params *PaymentsGetStarsTransactionsParams) (*PaymentsStarsStatus, error)
- func (c *Client) PaymentsGetStarsTransactionsByID(ton bool, peer InputPeer, id []*InputStarsTransaction) (*PaymentsStarsStatus, error)
- func (c *Client) PaymentsGetSuggestedStarRefBots(params *PaymentsGetSuggestedStarRefBotsParams) (*PaymentsSuggestedStarRefBots, error)
- func (c *Client) PaymentsGetUniqueStarGift(slug string) (*PaymentsUniqueStarGift, error)
- func (c *Client) PaymentsGetUniqueStarGiftValueInfo(slug string) (*PaymentsUniqueStarGiftValueInfo, error)
- func (c *Client) PaymentsLaunchPrepaidGiveaway(peer InputPeer, giveawayID int64, purpose InputStorePaymentPurpose) (Updates, error)
- func (c *Client) PaymentsRefundStarsCharge(userID InputUser, chargeID string) (Updates, error)
- func (c *Client) PaymentsReorderStarGiftCollections(peer InputPeer, order []int32) (bool, error)
- func (c *Client) PaymentsResolveStarGiftOffer(decline bool, offerMsgID int32) (Updates, error)
- func (c *Client) PaymentsSaveStarGift(unsave bool, stargift InputSavedStarGift) (bool, error)
- func (c *Client) PaymentsSendPaymentForm(params *PaymentsSendPaymentFormParams) (PaymentsPaymentResult, error)
- func (c *Client) PaymentsSendStarGiftOffer(params *PaymentsSendStarGiftOfferParams) (Updates, error)
- func (c *Client) PaymentsSendStarsForm(formID int64, invoice InputInvoice) (PaymentsPaymentResult, error)
- func (c *Client) PaymentsToggleChatStarGiftNotifications(enabled bool, peer InputPeer) (bool, error)
- func (c *Client) PaymentsToggleStarGiftsPinnedToTop(peer InputPeer, stargift []InputSavedStarGift) (bool, error)
- func (c *Client) PaymentsTransferStarGift(stargift InputSavedStarGift, toID InputPeer) (Updates, error)
- func (c *Client) PaymentsUpdateStarGiftCollection(params *PaymentsUpdateStarGiftCollectionParams) (*StarGiftCollection, error)
- func (c *Client) PaymentsUpdateStarGiftPrice(stargift InputSavedStarGift, resellAmount StarsAmount) (Updates, error)
- func (c *Client) PaymentsUpgradeStarGift(keepOriginalDetails bool, stargift InputSavedStarGift) (Updates, error)
- func (c *Client) PaymentsValidateRequestedInfo(save bool, invoice InputInvoice, info *PaymentRequestedInfo) (*PaymentsValidatedRequestedInfo, error)
- func (c *Client) PeerEquals(a, b any) bool
- func (c *Client) PhoneAcceptCall(peer *InputPhoneCall, gB []byte, protocol *PhoneCallProtocol) (*PhonePhoneCall, error)
- func (c *Client) PhoneCheckGroupCall(call InputGroupCall, sources []int32) ([]int32, error)
- func (c *Client) PhoneConfirmCall(peer *InputPhoneCall, gA []byte, keyFingerprint int64, ...) (*PhonePhoneCall, error)
- func (c *Client) PhoneCreateConferenceCall(params *PhoneCreateConferenceCallParams) (Updates, error)
- func (c *Client) PhoneCreateGroupCall(params *PhoneCreateGroupCallParams) (Updates, error)
- func (c *Client) PhoneDeclineConferenceCallInvite(msgID int32) (Updates, error)
- func (c *Client) PhoneDeleteConferenceCallParticipants(params *PhoneDeleteConferenceCallParticipantsParams) (Updates, error)
- func (c *Client) PhoneDeleteGroupCallMessages(reportSpam bool, call InputGroupCall, messages []int32) (Updates, error)
- func (c *Client) PhoneDeleteGroupCallParticipantMessages(reportSpam bool, call InputGroupCall, participant InputPeer) (Updates, error)
- func (c *Client) PhoneDiscardCall(params *PhoneDiscardCallParams) (Updates, error)
- func (c *Client) PhoneDiscardGroupCall(call InputGroupCall) (Updates, error)
- func (c *Client) PhoneEditGroupCallParticipant(params *PhoneEditGroupCallParticipantParams) (Updates, error)
- func (c *Client) PhoneEditGroupCallTitle(call InputGroupCall, title string) (Updates, error)
- func (c *Client) PhoneExportGroupCallInvite(canSelfUnmute bool, call InputGroupCall) (*PhoneExportedGroupCallInvite, error)
- func (c *Client) PhoneGetCallConfig() (*DataJson, error)
- func (c *Client) PhoneGetGroupCall(call InputGroupCall, limit int32) (*PhoneGroupCall, error)
- func (c *Client) PhoneGetGroupCallChainBlocks(call InputGroupCall, subChainID, offset, limit int32) (Updates, error)
- func (c *Client) PhoneGetGroupCallJoinAs(peer InputPeer) (*PhoneJoinAsPeers, error)
- func (c *Client) PhoneGetGroupCallStars(call InputGroupCall) (*PhoneGroupCallStars, error)
- func (c *Client) PhoneGetGroupCallStreamChannels(call InputGroupCall) (*PhoneGroupCallStreamChannels, error)
- func (c *Client) PhoneGetGroupCallStreamRtmpURL(liveStory bool, peer InputPeer, revoke bool) (*PhoneGroupCallStreamRtmpURL, error)
- func (c *Client) PhoneGetGroupParticipants(call InputGroupCall, ids []InputPeer, sources []int32, offset string, ...) (*PhoneGroupParticipants, error)
- func (c *Client) PhoneInviteConferenceCallParticipant(video bool, call InputGroupCall, userID InputUser) (Updates, error)
- func (c *Client) PhoneInviteToGroupCall(call InputGroupCall, users []InputUser) (Updates, error)
- func (c *Client) PhoneJoinGroupCall(params *PhoneJoinGroupCallParams) (Updates, error)
- func (c *Client) PhoneJoinGroupCallPresentation(call InputGroupCall, params *DataJson) (Updates, error)
- func (c *Client) PhoneLeaveGroupCall(call InputGroupCall, source int32) (Updates, error)
- func (c *Client) PhoneLeaveGroupCallPresentation(call InputGroupCall) (Updates, error)
- func (c *Client) PhoneReceivedCall(peer *InputPhoneCall) (bool, error)
- func (c *Client) PhoneRequestCall(params *PhoneRequestCallParams) (*PhonePhoneCall, error)
- func (c *Client) PhoneSaveCallDebug(peer *InputPhoneCall, debug *DataJson) (bool, error)
- func (c *Client) PhoneSaveCallLog(peer *InputPhoneCall, file InputFile) (bool, error)
- func (c *Client) PhoneSaveDefaultGroupCallJoinAs(peer, joinAs InputPeer) (bool, error)
- func (c *Client) PhoneSaveDefaultSendAs(call InputGroupCall, sendAs InputPeer) (bool, error)
- func (c *Client) PhoneSendConferenceCallBroadcast(call InputGroupCall, block []byte) (Updates, error)
- func (c *Client) PhoneSendGroupCallEncryptedMessage(call InputGroupCall, encryptedMessage []byte) (bool, error)
- func (c *Client) PhoneSendGroupCallMessage(params *PhoneSendGroupCallMessageParams) (Updates, error)
- func (c *Client) PhoneSendSignalingData(peer *InputPhoneCall, data []byte) (bool, error)
- func (c *Client) PhoneSetCallRating(userInitiative bool, peer *InputPhoneCall, rating int32, comment string) (Updates, error)
- func (c *Client) PhoneStartScheduledGroupCall(call InputGroupCall) (Updates, error)
- func (c *Client) PhoneToggleGroupCallRecord(params *PhoneToggleGroupCallRecordParams) (Updates, error)
- func (c *Client) PhoneToggleGroupCallSettings(params *PhoneToggleGroupCallSettingsParams) (Updates, error)
- func (c *Client) PhoneToggleGroupCallStartSubscription(call InputGroupCall, subscribed bool) (Updates, error)
- func (c *Client) PhotosDeletePhotos(id []InputPhoto) ([]int64, error)
- func (c *Client) PhotosGetUserPhotos(userID InputUser, offset int32, maxID int64, limit int32) (PhotosPhotos, error)
- func (c *Client) PhotosUpdateProfilePhoto(fallback bool, bot InputUser, id InputPhoto) (*PhotosPhoto, error)
- func (c *Client) PhotosUploadContactProfilePhoto(params *PhotosUploadContactProfilePhotoParams) (*PhotosPhoto, error)
- func (c *Client) PhotosUploadProfilePhoto(params *PhotosUploadProfilePhotoParams) (*PhotosPhoto, error)
- func (c *Client) PinMessage(PeerID any, MsgID int32, Opts ...*PinOptions) (Updates, error)
- func (c *Client) Ping() time.Duration
- func (c *Client) PremiumApplyBoost(slots []int32, peer InputPeer) (*PremiumMyBoosts, error)
- func (c *Client) PremiumGetBoostsList(gifts bool, peer InputPeer, offset string, limit int32) (*PremiumBoostsList, error)
- func (c *Client) PremiumGetBoostsStatus(peer InputPeer) (*PremiumBoostsStatus, error)
- func (c *Client) PremiumGetMyBoosts() (*PremiumMyBoosts, error)
- func (c *Client) PremiumGetUserBoosts(peer InputPeer, userID InputUser) (*PremiumBoostsList, error)
- func (c *Client) QRLogin(options ...QrOptions) (*QrToken, error)
- func (c *Client) RemoveHandle(handle Handle) error
- func (c *Client) RequestSecretChat(userID any) (*EncryptedChatObj, error)
- func (c *Client) ResolveMedia(mediaFile any, attr *MediaMetadata) (InputMedia, error)
- func (c *Client) ResolveMultiMedia(m any, attrs *MediaMetadata) ([]*InputSingleMedia, error)
- func (c *Client) ResolvePeer(peerToResolve any) (InputPeer, error)
- func (c *Client) ResolveUsername(username string, ref ...string) (any, error)
- func (c *Client) ScrapeAppConfig(config ...*ScrapeConfig) (int32, string, bool, error)
- func (c *Client) SecretChatManager() *e2e.SecretChatManager
- func (c *Client) SendAction(PeerID, Action any, topMsgID ...int32) (*ActionResult, error)
- func (c *Client) SendAlbum(peerID, Album any, opts ...*MediaOptions) ([]*NewMessage, error)
- func (c *Client) SendCode(phoneNumber string) (string, error)
- func (c *Client) SendDice(peerID any, emoji string) (*NewMessage, error)
- func (c *Client) SendGift(toPeer any, giftId int64, message ...string) (PaymentsPaymentResult, error)
- func (c *Client) SendMedia(peerID, Media any, opts ...*MediaOptions) (*NewMessage, error)
- func (c *Client) SendMessage(peerID, message any, opts ...*SendOptions) (*NewMessage, error)
- func (c *Client) SendNewGift(toPeer any, giftId int64, message ...string) (PaymentsPaymentResult, error)
- func (c *Client) SendPoll(peerID any, question string, options []string, opts ...*PollOptions) (*NewMessage, error)
- func (c *Client) SendReaction(peerID any, msgID int32, reaction any, big ...bool) error
- func (c *Client) SendReadAck(PeerID any, MaxID ...int32) (*MessagesAffectedMessages, error)
- func (c *Client) SendSecretChatLayerNotification(chatID int32) (MessagesSentEncryptedMessage, error)
- func (c *Client) SendSecretFile(chatID int32, filePath string, opts *SecretFileOptions) error
- func (c *Client) SendSecretMessage(chatID int32, message string, ttl int32) (MessagesSentEncryptedMessage, error)
- func (c *Client) SetAppHash(appHash string)
- func (c *Client) SetAppID(appID int32)
- func (c *Client) SetBotCommands(commands []*BotCommand, scope *BotCommandScope, languageCode ...string) (bool, error)
- func (c *Client) SetBotDefaultPrivileges(privileges *ChatAdminRights, ForChannels ...bool) (resp bool, err error)
- func (c *Client) SetChatMenuButton(userID int64, button *BotMenuButton) (bool, error)
- func (c *Client) SetCommandPrefixes(prefixes string)
- func (c *Client) SetEmojiStatus(emoji ...any) (bool, error)
- func (c *Client) SetLifecycleHooks(hooks *LifecycleHooks)
- func (c *Client) SetLogLevel(level LogLevel)
- func (c *Client) SetParseMode(mode string)
- func (c *Client) SetProxy(proxy Proxy)
- func (c *Client) SmsjobsFinishJob(jobID, error string) (bool, error)
- func (c *Client) SmsjobsGetSmsJob(jobID string) (*SmsJob, error)
- func (c *Client) SmsjobsGetStatus() (*SmsjobsStatus, error)
- func (c *Client) SmsjobsIsEligibleToJoin() (*SmsjobsEligibleToJoin, error)
- func (c *Client) SmsjobsJoin() (bool, error)
- func (c *Client) SmsjobsLeave() (bool, error)
- func (c *Client) SmsjobsUpdateSettings(allowInternational bool) (bool, error)
- func (c *Client) St() error
- func (c *Client) Start() error
- func (c *Client) StartGroupCallMedia(peer any, rtmp ...bool) (PhoneCall, error)
- func (c *Client) StatsGetBroadcastStats(dark bool, channel InputChannel) (*StatsBroadcastStats, error)
- func (c *Client) StatsGetMegagroupStats(dark bool, channel InputChannel) (*StatsMegagroupStats, error)
- func (c *Client) StatsGetMessagePublicForwards(channel InputChannel, msgID int32, offset string, limit int32) (*StatsPublicForwards, error)
- func (c *Client) StatsGetMessageStats(dark bool, channel InputChannel, msgID int32) (*StatsMessageStats, error)
- func (c *Client) StatsGetStoryPublicForwards(peer InputPeer, id int32, offset string, limit int32) (*StatsPublicForwards, error)
- func (c *Client) StatsGetStoryStats(dark bool, peer InputPeer, id int32) (*StatsStoryStats, error)
- func (c *Client) StatsLoadAsyncGraph(token string, x int64) (StatsGraph, error)
- func (c *Client) StickersAddStickerToSet(stickerset InputStickerSet, sticker *InputStickerSetItem) (MessagesStickerSet, error)
- func (c *Client) StickersChangeSticker(sticker InputDocument, emoji string, maskCoords *MaskCoords, keywords string) (MessagesStickerSet, error)
- func (c *Client) StickersChangeStickerPosition(sticker InputDocument, position int32) (MessagesStickerSet, error)
- func (c *Client) StickersCheckShortName(shortName string) (bool, error)
- func (c *Client) StickersCreateStickerSet(params *StickersCreateStickerSetParams) (MessagesStickerSet, error)
- func (c *Client) StickersDeleteStickerSet(stickerset InputStickerSet) (bool, error)
- func (c *Client) StickersRemoveStickerFromSet(sticker InputDocument) (MessagesStickerSet, error)
- func (c *Client) StickersRenameStickerSet(stickerset InputStickerSet, title string) (MessagesStickerSet, error)
- func (c *Client) StickersReplaceSticker(sticker InputDocument, newSticker *InputStickerSetItem) (MessagesStickerSet, error)
- func (c *Client) StickersSetStickerSetThumb(stickerset InputStickerSet, thumb InputDocument, thumbDocumentID int64) (MessagesStickerSet, error)
- func (c *Client) StickersSuggestShortName(title string) (*StickersSuggestedShortName, error)
- func (c *Client) Stop() error
- func (c *Client) StoriesActivateStealthMode(past, future bool) (Updates, error)
- func (c *Client) StoriesCanSendStory(peer InputPeer) (*StoriesCanSendStoryCount, error)
- func (c *Client) StoriesCreateAlbum(peer InputPeer, title string, stories []int32) (*StoryAlbum, error)
- func (c *Client) StoriesDeleteAlbum(peer InputPeer, albumID int32) (bool, error)
- func (c *Client) StoriesDeleteStories(peer InputPeer, id []int32) ([]int32, error)
- func (c *Client) StoriesEditStory(params *StoriesEditStoryParams) (Updates, error)
- func (c *Client) StoriesExportStoryLink(peer InputPeer, id int32) (*ExportedStoryLink, error)
- func (c *Client) StoriesGetAlbumStories(peer InputPeer, albumID, offset, limit int32) (*StoriesStories, error)
- func (c *Client) StoriesGetAlbums(peer InputPeer, hash int64) (StoriesAlbums, error)
- func (c *Client) StoriesGetAllReadPeerStories() (Updates, error)
- func (c *Client) StoriesGetAllStories(next, hidden bool, state string) (StoriesAllStories, error)
- func (c *Client) StoriesGetChatsToSend() (MessagesChats, error)
- func (c *Client) StoriesGetPeerMaxIDs(id []InputPeer) ([]*RecentStory, error)
- func (c *Client) StoriesGetPeerStories(peer InputPeer) (*StoriesPeerStories, error)
- func (c *Client) StoriesGetPinnedStories(peer InputPeer, offsetID, limit int32) (*StoriesStories, error)
- func (c *Client) StoriesGetStoriesArchive(peer InputPeer, offsetID, limit int32) (*StoriesStories, error)
- func (c *Client) StoriesGetStoriesByID(peer InputPeer, id []int32) (*StoriesStories, error)
- func (c *Client) StoriesGetStoriesViews(peer InputPeer, id []int32) (*StoriesStoryViews, error)
- func (c *Client) StoriesGetStoryReactionsList(params *StoriesGetStoryReactionsListParams) (*StoriesStoryReactionsList, error)
- func (c *Client) StoriesGetStoryViewsList(params *StoriesGetStoryViewsListParams) (*StoriesStoryViewsList, error)
- func (c *Client) StoriesIncrementStoryViews(peer InputPeer, id []int32) (bool, error)
- func (c *Client) StoriesReadStories(peer InputPeer, maxID int32) ([]int32, error)
- func (c *Client) StoriesReorderAlbums(peer InputPeer, order []int32) (bool, error)
- func (c *Client) StoriesReport(peer InputPeer, id []int32, option []byte, message string) (ReportResult, error)
- func (c *Client) StoriesSearchPosts(params *StoriesSearchPostsParams) (*StoriesFoundStories, error)
- func (c *Client) StoriesSendReaction(addToRecent bool, peer InputPeer, storyID int32, reaction Reaction) (Updates, error)
- func (c *Client) StoriesSendStory(params *StoriesSendStoryParams) (Updates, error)
- func (c *Client) StoriesStartLive(params *StoriesStartLiveParams) (Updates, error)
- func (c *Client) StoriesToggleAllStoriesHidden(hidden bool) (bool, error)
- func (c *Client) StoriesTogglePeerStoriesHidden(peer InputPeer, hidden bool) (bool, error)
- func (c *Client) StoriesTogglePinned(peer InputPeer, id []int32, pinned bool) ([]int32, error)
- func (c *Client) StoriesTogglePinnedToTop(peer InputPeer, id []int32) (bool, error)
- func (c *Client) StoriesUpdateAlbum(params *StoriesUpdateAlbumParams) (*StoryAlbum, error)
- func (c *Client) Stringify(object any) string
- func (c *Client) SwitchDc(dcID int) error
- func (c *Client) Terminate() error
- func (c *Client) ToRpcError(err error) *RpcError
- func (c *Client) TransferChatOwnership(chatID any, userID any, password string) error
- func (c *Client) Try(obj any, err error) any
- func (c *Client) TypeOf(obj any) string
- func (c *Client) UnpinMessage(PeerID any, MsgID int32, Opts ...*PinOptions) (Updates, error)
- func (c *Client) UpdatesGetChannelDifference(params *UpdatesGetChannelDifferenceParams) (UpdatesChannelDifference, error)
- func (c *Client) UpdatesGetDifference(params *UpdatesGetDifferenceParams) (UpdatesDifference, error)
- func (c *Client) UpdatesGetState() (*UpdatesState, error)
- func (c *Client) UploadFile(src any, Opts ...*UploadOptions) (InputFile, error)
- func (c *Client) UploadGetCdnFile(fileToken []byte, offset int64, limit int32) (UploadCdnFile, error)
- func (c *Client) UploadGetCdnFileHashes(fileToken []byte, offset int64) ([]*FileHash, error)
- func (c *Client) UploadGetFile(params *UploadGetFileParams) (UploadFile, error)
- func (c *Client) UploadGetFileHashes(location InputFileLocation, offset int64) ([]*FileHash, error)
- func (c *Client) UploadGetWebFile(location InputWebFileLocation, offset, limit int32) (*UploadWebFile, error)
- func (c *Client) UploadReuploadCdnFile(fileToken, requestToken []byte) ([]*FileHash, error)
- func (c *Client) UploadSaveBigFilePart(fileID int64, filePart, fileTotalParts int32, bytes []byte) (bool, error)
- func (c *Client) UploadSaveFilePart(fileID int64, filePart int32, bytes []byte) (bool, error)
- func (c *Client) UsersGetFullUser(id InputUser) (*UsersUserFull, error)
- func (c *Client) UsersGetRequirementsToContact(id []InputUser) ([]RequirementToContact, error)
- func (c *Client) UsersGetSavedMusic(id InputUser, offset, limit int32, hash int64) (UsersSavedMusic, error)
- func (c *Client) UsersGetSavedMusicByID(id InputUser, documents []InputDocument) (UsersSavedMusic, error)
- func (c *Client) UsersGetUsers(id []InputUser) ([]User, error)
- func (c *Client) UsersSetSecureValueErrors(id InputUser, errorsw []SecureValueError) (bool, error)
- func (c *Client) UsersSuggestBirthday(id InputUser, birthday *Birthday) (Updates, error)
- func (c *Client) WrapError(err error) error
- type ClientConfig
- type ClientConfigBuilder
- func (b *ClientConfigBuilder) Build() ClientConfig
- func (b *ClientConfigBuilder) WithCache(cache *CACHE) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithCacheSenders() *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithDataCenter(dc int) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithDeviceConfig(deviceModel, systemVersion, appVersion, langCode, sysLangCode, langPack string) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithDisableCache() *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithErrorHandler(handler func(err error) bool) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithFloodHandler(handler func(err error) bool) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithIpAddr(ipAddr string) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithLocalAddr(localAddr string) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithLogLevel(level LogLevel) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithLogger(logger Logger) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithMemorySession() *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithNoUpdates() *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithParseMode(parseMode string) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithProxy(proxy Proxy) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithPublicKeys(publicKeys []*rsa.PublicKey) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithReqTimeout(reqTimeout int) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithSession(session string, sessionAESKey ...string) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithSessionName(name string) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithSleepThresholdMs(threshold int) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithStringSession(stringSession string) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithTestMode() *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithTimeout(timeout int) *ClientConfigBuilder
- func (b *ClientConfigBuilder) WithTransportMode(mode string) *ClientConfigBuilder
- type CodeSettings
- type Config
- type ConnectedBot
- type ConnectedBotStarRef
- type Contact
- type ContactBirthday
- type ContactStatus
- type ContactsAcceptContactParams
- type ContactsAddContactParams
- type ContactsBlockFromRepliesParams
- type ContactsBlockParams
- type ContactsBlocked
- type ContactsBlockedObj
- type ContactsBlockedSlice
- type ContactsContactBirthdays
- type ContactsContacts
- type ContactsContactsNotModified
- type ContactsContactsObj
- type ContactsDeleteByPhonesParams
- type ContactsDeleteContactsParams
- type ContactsEditCloseFriendsParams
- type ContactsExportContactTokenParams
- type ContactsFound
- type ContactsGetBirthdaysParams
- type ContactsGetBlockedParams
- type ContactsGetContactIDsParams
- type ContactsGetContactsParams
- type ContactsGetLocatedParams
- type ContactsGetSavedParams
- type ContactsGetSponsoredPeersParams
- type ContactsGetStatusesParams
- type ContactsGetTopPeersParams
- type ContactsImportContactTokenParams
- type ContactsImportContactsParams
- type ContactsImportedContacts
- type ContactsResetSavedParams
- type ContactsResetTopPeerRatingParams
- type ContactsResolvePhoneParams
- type ContactsResolveUsernameParams
- type ContactsResolvedPeer
- type ContactsSearchParams
- type ContactsSetBlockedParams
- type ContactsSponsoredPeers
- type ContactsSponsoredPeersEmpty
- type ContactsSponsoredPeersObj
- type ContactsToggleTopPeersParams
- type ContactsTopPeers
- type ContactsTopPeersDisabled
- type ContactsTopPeersNotModified
- type ContactsTopPeersObj
- type ContactsUnblockParams
- type ContactsUpdateContactNoteParams
- type Conversation
- func (c *Conversation) Ask(text any, opts ...*SendOptions) (*NewMessage, error)
- func (c *Conversation) AskDocument(text any, opts ...*SendOptions) (*NewMessage, error)
- func (c *Conversation) AskMedia(text any, opts ...*SendOptions) (*NewMessage, error)
- func (c *Conversation) AskNumber(question string, maxRetries ...int) (int64, error)
- func (c *Conversation) AskPhoto(text any, opts ...*SendOptions) (*NewMessage, error)
- func (c *Conversation) AskUntil(question string, validator func(*NewMessage) bool, maxRetries int, ...) (*NewMessage, error)
- func (c *Conversation) AskVideo(text any, opts ...*SendOptions) (*NewMessage, error)
- func (c *Conversation) AskVoice(text any, opts ...*SendOptions) (*NewMessage, error)
- func (c *Conversation) AskYesNo(question string) (bool, error)
- func (c *Conversation) Choice(text string, choices []string) (*CallbackQuery, error)
- func (c *Conversation) ChoiceRow(text string, rows ...[]string) (*CallbackQuery, error)
- func (c *Conversation) Close()
- func (c *Conversation) GetEdit() (*NewMessage, error)
- func (c *Conversation) GetReply() (*NewMessage, error)
- func (c *Conversation) GetResponse() (*NewMessage, error)
- func (c *Conversation) GetResponseContaining(words ...string) (*NewMessage, error)
- func (c *Conversation) GetResponseExact(options ...string) (*NewMessage, error)
- func (c *Conversation) GetResponseMatching(pattern *regexp.Regexp) (*NewMessage, error)
- func (c *Conversation) IsClosed() bool
- func (c *Conversation) LastMessage() *NewMessage
- func (c *Conversation) MarkRead() (*MessagesAffectedMessages, error)
- func (c *Conversation) Reply(text any, opts ...*SendOptions) (*NewMessage, error)
- func (c *Conversation) ReplyMedia(media InputMedia, opts ...*MediaOptions) (*NewMessage, error)
- func (c *Conversation) Respond(text any, opts ...*SendOptions) (*NewMessage, error)
- func (c *Conversation) RespondMedia(media InputMedia, opts ...*MediaOptions) (*NewMessage, error)
- func (c *Conversation) SetAbortKeywords(keywords ...string) *Conversation
- func (c *Conversation) SetFromUser(userID int64) *Conversation
- func (c *Conversation) SetStopPropagation(stop bool) *Conversation
- func (c *Conversation) SetTimeout(timeout int32) *Conversation
- func (c *Conversation) WaitClick() (*CallbackQuery, error)
- func (c *Conversation) WaitEvent(ev Update) (Update, error)
- func (c *Conversation) WaitForDocument() (*NewMessage, error)
- func (c *Conversation) WaitForMedia() (*NewMessage, error)
- func (c *Conversation) WaitForPhoto() (*NewMessage, error)
- func (c *Conversation) WaitForSticker() (*NewMessage, error)
- func (c *Conversation) WaitForVideo() (*NewMessage, error)
- func (c *Conversation) WaitForVoice() (*NewMessage, error)
- func (c *Conversation) WaitRead() (*UpdateReadChannelInbox, error)
- func (c *Conversation) WithContext(ctx context.Context) *Conversation
- func (c *Conversation) WithFromUser(userID int64) *Conversation
- func (c *Conversation) WithPrivate(private bool) *Conversation
- func (c *Conversation) WithStopPropagation(stop bool) *Conversation
- func (c *Conversation) WithTimeout(timeout int32) *Conversation
- func (c *Conversation) Wizard() *ConversationWizard
- type ConversationOptions
- type ConversationStep
- type ConversationWizard
- func (w *ConversationWizard) AllowBack() *ConversationWizard
- func (w *ConversationWizard) GetAllTransformed() map[string]any
- func (w *ConversationWizard) GetAnswer(name string) *NewMessage
- func (w *ConversationWizard) GetAnswerText(name string) string
- func (w *ConversationWizard) GetTransformed(name string) any
- func (w *ConversationWizard) HasAnswer(name string) bool
- func (w *ConversationWizard) OnStepComplete(fn func(string, int)) *ConversationWizard
- func (w *ConversationWizard) Run() (map[string]*NewMessage, error)
- func (w *ConversationWizard) Step(name, question string, opts ...func(*ConversationStep)) *ConversationWizard
- func (w *ConversationWizard) WithProgress(format string) *ConversationWizard
- type CustomFile
- type DataJson
- type DcOption
- type DefaultHistoryTtl
- type DeleteHandler
- type DeleteMessage
- type Destination
- type DeviceConfig
- type Dialog
- type DialogFilter
- type DialogFilterChatlist
- type DialogFilterDefault
- type DialogFilterObj
- type DialogFilterSuggested
- type DialogFolder
- type DialogObj
- type DialogOptions
- type DialogPeer
- type DialogPeerFolder
- type DialogPeerObj
- type DisallowedGiftsSettings
- type Document
- type DocumentAttribute
- type DocumentAttributeAnimated
- type DocumentAttributeAudio
- type DocumentAttributeCustomEmoji
- type DocumentAttributeFilename
- type DocumentAttributeHasStickers
- type DocumentAttributeImageSize
- type DocumentAttributeSticker
- type DocumentAttributeVideo
- type DocumentEmpty
- type DocumentObj
- type DownloadOptions
- type DraftMessage
- type DraftMessageEmpty
- type DraftMessageObj
- type E2EHandler
- type EditHandler
- type EmailVerification
- type EmailVerificationApple
- type EmailVerificationCode
- type EmailVerificationGoogle
- type EmailVerifyPurpose
- type EmailVerifyPurposeLoginChange
- type EmailVerifyPurposeLoginSetup
- type EmailVerifyPurposePassport
- type EmojiGroup
- type EmojiGroupGreeting
- type EmojiGroupObj
- type EmojiGroupPremium
- type EmojiKeyword
- type EmojiKeywordDeleted
- type EmojiKeywordObj
- type EmojiKeywordsDifference
- type EmojiLanguage
- type EmojiList
- type EmojiListNotModified
- type EmojiListObj
- type EmojiStatus
- type EmojiStatusCollectible
- type EmojiStatusEmpty
- type EmojiStatusObj
- type EmojiURL
- type EncryptedChat
- type EncryptedChatDiscarded
- type EncryptedChatEmpty
- type EncryptedChatObj
- type EncryptedChatRequested
- type EncryptedChatWaiting
- type EncryptedFile
- type EncryptedFileEmpty
- type EncryptedFileObj
- type EncryptedMessage
- type EncryptedMessageObj
- type EncryptedMessageService
- type Error
- type EventType
- type ExSender
- type ExSenders
- type ExportedChatInvite
- type ExportedChatlistInvite
- type ExportedContactToken
- type ExportedMessageLink
- type ExportedStoryLink
- type FactCheck
- type FileCacheStorage
- type FileHash
- type FileLocationOptions
- type Filter
- func All(fs ...Filter) Filter
- func Any(fs ...Filter) Filter
- func AnyFilter(filters ...Filter) Filter
- func Custom(fn func(*NewMessage) bool) Filter
- func CustomCallback(fn func(*CallbackQuery) bool) Filter
- func F(flags FilterFlag) Filter
- func FromUser(ids ...int64) Filter
- func InChat(ids ...int64) Filter
- func Not(f Filter) Filter
- func TextMaxLen(n int) Filter
- func TextMinLen(n int) Filter
- func (f Filter) Blacklist() Filter
- func (f Filter) CustomCB(fn func(*CallbackQuery) bool) Filter
- func (f Filter) Flag(flag FilterFlag) Filter
- func (f Filter) FromChannels(ids ...int64) Filter
- func (f Filter) FromChats(ids ...int64) Filter
- func (f Filter) FromUsers(ids ...int64) Filter
- func (f Filter) MaxLen(n int) Filter
- func (f Filter) MinLen(n int) Filter
- func (f Filter) Or(other Filter) Filter
- func (f Filter) WithFunc(fn func(*NewMessage) bool) Filter
- func (f Filter) WithMediaTypes(t ...string) Filter
- type FilterFlag
- type Folder
- type FolderPeer
- type FoldersEditPeerFoldersParams
- type ForumTopic
- type ForumTopicDeleted
- type ForumTopicObj
- type ForwardOptions
- type FoundStory
- type FragmentCollectibleInfo
- type FragmentGetCollectibleInfoParams
- type Game
- type GeoPoint
- type GeoPointAddress
- type GeoPointEmpty
- type GeoPointObj
- type GlobalPrivacySettings
- type GroupCall
- type GroupCallDiscarded
- type GroupCallDonor
- type GroupCallMessage
- type GroupCallObj
- type GroupCallParticipant
- type GroupCallParticipantVideo
- type GroupCallParticipantVideoSourceGroup
- type GroupCallStream
- func (s *GroupCallStream) GetChannel() *GroupCallStreamChannel
- func (s *GroupCallStream) GetScale() int32
- func (s *GroupCallStream) GetTS() int64
- func (s *GroupCallStream) NextChunk() ([]byte, error)
- func (s *GroupCallStream) SetChannel(channel int32)
- func (s *GroupCallStream) SetScale(scale int32)
- func (s *GroupCallStream) SetTS(ts int64)
- type GroupCallStreamChannel
- type Handle
- type HandlerMetrics
- type HelpAcceptTermsOfServiceParams
- type HelpAppConfig
- type HelpAppConfigNotModified
- type HelpAppConfigObj
- type HelpAppUpdate
- type HelpAppUpdateObj
- type HelpCountriesList
- type HelpCountriesListNotModified
- type HelpCountriesListObj
- type HelpCountry
- type HelpCountryCode
- type HelpDeepLinkInfo
- type HelpDeepLinkInfoEmpty
- type HelpDeepLinkInfoObj
- type HelpDismissSuggestionParams
- type HelpEditUserInfoParams
- type HelpGetAppConfigParams
- type HelpGetAppUpdateParams
- type HelpGetCdnConfigParams
- type HelpGetConfigParams
- type HelpGetCountriesListParams
- type HelpGetDeepLinkInfoParams
- type HelpGetInviteTextParams
- type HelpGetNearestDcParams
- type HelpGetPassportConfigParams
- type HelpGetPeerColorsParams
- type HelpGetPeerProfileColorsParams
- type HelpGetPremiumPromoParams
- type HelpGetPromoDataParams
- type HelpGetRecentMeUrlsParams
- type HelpGetSupportNameParams
- type HelpGetSupportParams
- type HelpGetTermsOfServiceUpdateParams
- type HelpGetTimezonesListParams
- type HelpGetUserInfoParams
- type HelpHidePromoDataParams
- type HelpInviteText
- type HelpNoAppUpdate
- type HelpPassportConfig
- type HelpPassportConfigNotModified
- type HelpPassportConfigObj
- type HelpPeerColorOption
- type HelpPeerColorProfileSet
- type HelpPeerColorSet
- type HelpPeerColorSetObj
- type HelpPeerColors
- type HelpPeerColorsNotModified
- type HelpPeerColorsObj
- type HelpPremiumPromo
- type HelpPromoData
- type HelpPromoDataEmpty
- type HelpPromoDataObj
- type HelpRecentMeUrls
- type HelpSaveAppLogParams
- type HelpSetBotUpdatesStatusParams
- type HelpSupport
- type HelpSupportName
- type HelpTermsOfService
- type HelpTermsOfServiceUpdate
- type HelpTermsOfServiceUpdateEmpty
- type HelpTermsOfServiceUpdateObj
- type HelpTimezonesList
- type HelpTimezonesListNotModified
- type HelpTimezonesListObj
- type HelpUserInfo
- type HelpUserInfoEmpty
- type HelpUserInfoObj
- type HighScore
- type HistoryOption
- type Hook
- type HttpProxy
- type ImportedContact
- type InitConnectionParams
- type InlineBotSwitchPm
- type InlineBotWebView
- type InlineBuilder
- func (i *InlineBuilder) Answer(options ...*InlineSendOptions) (bool, error)
- func (i *InlineBuilder) Article(title, description, text string, options ...*ArticleOptions) *InlineBuilder
- func (i *InlineBuilder) CacheTime(seconds int32) *InlineBuilder
- func (i *InlineBuilder) Document(document any, options ...*ArticleOptions) *InlineBuilder
- func (i *InlineBuilder) Error() error
- func (i *InlineBuilder) Game(ID, ShortName string, options ...*ArticleOptions) *InlineBuilder
- func (i *InlineBuilder) IsPersonal(personal bool) *InlineBuilder
- func (i *InlineBuilder) MaxResults(max int32) *InlineBuilder
- func (i *InlineBuilder) NextOffset(offset string) *InlineBuilder
- func (i *InlineBuilder) Photo(photo any, options ...*ArticleOptions) *InlineBuilder
- func (i *InlineBuilder) Results() []InputBotInlineResult
- func (i *InlineBuilder) SwitchPM(text, startParam string) *InlineBuilder
- func (i *InlineBuilder) WithContent(content InputWebDocument) *InlineBuilder
- func (i *InlineBuilder) WithContentURL(url string) *InlineBuilder
- func (i *InlineBuilder) WithDescription(desc string) *InlineBuilder
- func (i *InlineBuilder) WithID(id string) *InlineBuilder
- func (i *InlineBuilder) WithInvertMedia(invert bool) *InlineBuilder
- func (i *InlineBuilder) WithLinkPreview(enable bool) *InlineBuilder
- func (i *InlineBuilder) WithReplyMarkup(markup ReplyMarkup) *InlineBuilder
- func (i *InlineBuilder) WithThumb(thumb InputWebDocument) *InlineBuilder
- func (i *InlineBuilder) WithThumbURL(url string) *InlineBuilder
- type InlineCallbackHandler
- type InlineCallbackQuery
- func (b *InlineCallbackQuery) Answer(Text string, options ...*CallbackOptions) (bool, error)
- func (b *InlineCallbackQuery) ChatType() string
- func (b *InlineCallbackQuery) DataString() string
- func (b *InlineCallbackQuery) Edit(Text any, options ...*SendOptions) (*NewMessage, error)
- func (b *InlineCallbackQuery) GetSender() (*UserObj, error)
- func (b *InlineCallbackQuery) GetSenderID() int64
- func (b *InlineCallbackQuery) IsChannel() bool
- func (b *InlineCallbackQuery) IsGroup() bool
- func (b *InlineCallbackQuery) IsPrivate() bool
- func (b *InlineCallbackQuery) Marshal(noindent ...bool) string
- func (b *InlineCallbackQuery) ShortName() string
- type InlineHandler
- type InlineOptions
- type InlineQuery
- func (i *InlineQuery) Answer(results []InputBotInlineResult, options ...*InlineSendOptions) (bool, error)
- func (m *InlineQuery) Args() string
- func (m *InlineQuery) ArgsList() []string
- func (i *InlineQuery) Builder() *InlineBuilder
- func (i *InlineQuery) IsChannel() bool
- func (i *InlineQuery) IsGroup() bool
- func (i *InlineQuery) IsPrivate() bool
- func (i *InlineQuery) Marshal(noindent ...bool) string
- type InlineQueryPeerType
- type InlineSend
- func (i *InlineSend) AccessHash() int64
- func (i *InlineSend) ChannelID() int64
- func (i *InlineSend) ChatID() int64
- func (i *InlineSend) Edit(message any, options ...*SendOptions) (*NewMessage, error)
- func (i *InlineSend) GetMessage() (*NewMessage, error)
- func (i *InlineSend) GetPeer() (InputPeer, error)
- func (i *InlineSend) GetReplyMessage() (*NewMessage, error)
- func (i *InlineSend) Marshal(noindent ...bool) string
- func (i *InlineSend) MessageID() int32
- type InlineSendHandler
- type InlineSendOptions
- type InputAppEvent
- type InputBotApp
- type InputBotAppID
- type InputBotAppShortName
- type InputBotInlineMessage
- type InputBotInlineMessageGame
- type InputBotInlineMessageID
- type InputBotInlineMessageID64
- type InputBotInlineMessageIDObj
- type InputBotInlineMessageMediaAuto
- type InputBotInlineMessageMediaContact
- type InputBotInlineMessageMediaGeo
- type InputBotInlineMessageMediaInvoice
- type InputBotInlineMessageMediaVenue
- type InputBotInlineMessageMediaWebPage
- type InputBotInlineMessageText
- type InputBotInlineResult
- type InputBotInlineResultDocument
- type InputBotInlineResultGame
- type InputBotInlineResultObj
- type InputBotInlineResultPhoto
- type InputBusinessAwayMessage
- type InputBusinessBotRecipients
- type InputBusinessChatLink
- type InputBusinessGreetingMessage
- type InputBusinessIntro
- type InputBusinessRecipients
- type InputChannel
- type InputChannelEmpty
- type InputChannelFromMessage
- type InputChannelObj
- type InputChatPhoto
- type InputChatPhotoEmpty
- type InputChatPhotoObj
- type InputChatTheme
- type InputChatThemeEmpty
- type InputChatThemeObj
- type InputChatThemeUniqueGift
- type InputChatUploadedPhoto
- type InputChatlistDialogFilter
- type InputCheckPasswordEmpty
- type InputCheckPasswordSRP
- type InputCheckPasswordSRPObj
- type InputClientProxy
- type InputCollectible
- type InputCollectiblePhone
- type InputCollectibleUsername
- type InputDialogPeer
- type InputDialogPeerFolder
- type InputDialogPeerObj
- type InputDocument
- type InputDocumentEmpty
- type InputDocumentFileLocation
- type InputDocumentObj
- type InputEmojiStatusCollectible
- type InputEncryptedChat
- type InputEncryptedFile
- type InputEncryptedFileBigUploaded
- type InputEncryptedFileEmpty
- type InputEncryptedFileLocation
- type InputEncryptedFileObj
- type InputEncryptedFileUploaded
- type InputFile
- type InputFileBig
- type InputFileLocation
- type InputFileLocationObj
- type InputFileObj
- type InputFileStoryDocument
- type InputFolderPeer
- type InputGame
- type InputGameID
- type InputGameShortName
- type InputGeoPoint
- type InputGeoPointEmpty
- type InputGeoPointObj
- type InputGroupCall
- type InputGroupCallInviteMessage
- type InputGroupCallObj
- type InputGroupCallSlug
- type InputGroupCallStream
- type InputInvoice
- type InputInvoiceBusinessBotTransferStars
- type InputInvoiceChatInviteSubscription
- type InputInvoiceMessage
- type InputInvoicePremiumAuthCode
- type InputInvoicePremiumGiftCode
- type InputInvoicePremiumGiftStars
- type InputInvoiceSlug
- type InputInvoiceStarGift
- type InputInvoiceStarGiftAuctionBid
- type InputInvoiceStarGiftDropOriginalDetails
- type InputInvoiceStarGiftPrepaidUpgrade
- type InputInvoiceStarGiftResale
- type InputInvoiceStarGiftTransfer
- type InputInvoiceStarGiftUpgrade
- type InputInvoiceStars
- type InputKeyboardButtonRequestPeer
- type InputKeyboardButtonURLAuth
- type InputKeyboardButtonUserProfile
- type InputMedia
- type InputMediaAreaChannelPost
- type InputMediaAreaVenue
- type InputMediaContact
- type InputMediaDice
- type InputMediaDocument
- type InputMediaDocumentExternal
- type InputMediaEmpty
- type InputMediaGame
- type InputMediaGeoLive
- type InputMediaGeoPoint
- type InputMediaInvoice
- type InputMediaPaidMedia
- type InputMediaPhoto
- type InputMediaPhotoExternal
- type InputMediaPoll
- type InputMediaStory
- type InputMediaTodo
- type InputMediaUploadedDocument
- type InputMediaUploadedPhoto
- type InputMediaVenue
- type InputMediaWebPage
- type InputMessage
- type InputMessageCallbackQuery
- type InputMessageEntityMentionName
- type InputMessageID
- type InputMessagePinned
- type InputMessageReplyTo
- type InputMessagesFilterChatPhotos
- type InputMessagesFilterContacts
- type InputMessagesFilterDocument
- type InputMessagesFilterEmpty
- type InputMessagesFilterGeo
- type InputMessagesFilterGif
- type InputMessagesFilterMusic
- type InputMessagesFilterMyMentions
- type InputMessagesFilterPhoneCalls
- type InputMessagesFilterPhotoVideo
- type InputMessagesFilterPhotos
- type InputMessagesFilterPinned
- type InputMessagesFilterRoundVideo
- type InputMessagesFilterRoundVoice
- type InputMessagesFilterURL
- type InputMessagesFilterVideo
- type InputMessagesFilterVoice
- type InputNotifyBroadcasts
- type InputNotifyChats
- type InputNotifyForumTopic
- type InputNotifyPeer
- type InputNotifyPeerObj
- type InputNotifyUsers
- type InputPasskeyCredentialPublicKey
- type InputPasskeyResponse
- type InputPasskeyResponseLogin
- type InputPasskeyResponseRegister
- type InputPaymentCredentials
- type InputPaymentCredentialsApplePay
- type InputPaymentCredentialsGooglePay
- type InputPaymentCredentialsObj
- type InputPaymentCredentialsSaved
- type InputPeer
- type InputPeerCache
- type InputPeerChannel
- type InputPeerChannelFromMessage
- type InputPeerChat
- type InputPeerColorCollectible
- type InputPeerEmpty
- type InputPeerNotifySettings
- type InputPeerPhotoFileLocation
- type InputPeerSelf
- type InputPeerUser
- type InputPeerUserFromMessage
- type InputPhoneCall
- type InputPhoneContact
- type InputPhoto
- type InputPhotoEmpty
- type InputPhotoFileLocation
- type InputPhotoLegacyFileLocation
- type InputPhotoObj
- type InputPrivacyKey
- type InputPrivacyRule
- type InputPrivacyValueAllowAll
- type InputPrivacyValueAllowBots
- type InputPrivacyValueAllowChatParticipants
- type InputPrivacyValueAllowCloseFriends
- type InputPrivacyValueAllowContacts
- type InputPrivacyValueAllowPremium
- type InputPrivacyValueAllowUsers
- type InputPrivacyValueDisallowAll
- type InputPrivacyValueDisallowBots
- type InputPrivacyValueDisallowChatParticipants
- type InputPrivacyValueDisallowContacts
- type InputPrivacyValueDisallowUsers
- type InputQuickReplyShortcut
- type InputQuickReplyShortcutID
- type InputQuickReplyShortcutObj
- type InputReplyTo
- type InputReplyToMessage
- type InputReplyToMonoForum
- type InputReplyToStory
- type InputSavedStarGift
- type InputSavedStarGiftChat
- type InputSavedStarGiftSlug
- type InputSavedStarGiftUser
- type InputSecureFile
- type InputSecureFileLocation
- type InputSecureFileObj
- type InputSecureFileUploaded
- type InputSecureValue
- type InputSingleMedia
- type InputStarGiftAuction
- type InputStarGiftAuctionObj
- type InputStarGiftAuctionSlug
- type InputStarsTransaction
- type InputStickerSet
- type InputStickerSetAnimatedEmoji
- type InputStickerSetAnimatedEmojiAnimations
- type InputStickerSetDice
- type InputStickerSetEmojiChannelDefaultStatuses
- type InputStickerSetEmojiDefaultStatuses
- type InputStickerSetEmojiDefaultTopicIcons
- type InputStickerSetEmojiGenericAnimations
- type InputStickerSetEmpty
- type InputStickerSetID
- type InputStickerSetItem
- type InputStickerSetPremiumGifts
- type InputStickerSetShortName
- type InputStickerSetThumb
- type InputStickerSetTonGifts
- type InputStickeredMedia
- type InputStickeredMediaDocument
- type InputStickeredMediaPhoto
- type InputStorePaymentAuthCode
- type InputStorePaymentGiftPremium
- type InputStorePaymentPremiumGiftCode
- type InputStorePaymentPremiumGiveaway
- type InputStorePaymentPremiumSubscription
- type InputStorePaymentPurpose
- type InputStorePaymentStarsGift
- type InputStorePaymentStarsGiveaway
- type InputStorePaymentStarsTopup
- type InputTakeoutFileLocation
- type InputTheme
- type InputThemeObj
- type InputThemeSettings
- type InputThemeSlug
- type InputUser
- type InputUserEmpty
- type InputUserFromMessage
- type InputUserObj
- type InputUserSelf
- type InputWallPaper
- type InputWallPaperNoFile
- type InputWallPaperObj
- type InputWallPaperSlug
- type InputWebDocument
- type InputWebFileAudioAlbumThumbLocation
- type InputWebFileGeoPointLocation
- type InputWebFileLocation
- type InputWebFileLocationObj
- type InviteLinkOptions
- type Invoice
- type InvokeWithLayerParams
- type InvokeWithMessagesRangeParams
- type InvokeWithTakeoutParams
- type InvokeWithoutUpdatesParams
- type JoinRequest
- type JoinRequestUpdate
- func (jru *JoinRequestUpdate) Approve(userID int64) (bool, error)
- func (jru *JoinRequestUpdate) ChannelID() int64
- func (jru *JoinRequestUpdate) ChatID() int64
- func (jru *JoinRequestUpdate) Decline(userID int64) (bool, error)
- func (jru *JoinRequestUpdate) GetInputPeer() (InputPeer, error)
- func (jru *JoinRequestUpdate) GetPeer() (Peer, error)
- func (jru *JoinRequestUpdate) HasUser(userID int64) bool
- func (jru *JoinRequestUpdate) IsEmpty() bool
- func (jru *JoinRequestUpdate) Marshal(noindent ...bool) string
- func (jru *JoinRequestUpdate) UserIDs() []int64
- type JsonArray
- type JsonBool
- type JsonNull
- type JsonNumber
- type JsonObject
- type JsonObjectValue
- type JsonString
- type JsonValue
- type KeyboardBuilder
- func (kb *KeyboardBuilder) AddRow(buttons ...KeyboardButton) *KeyboardBuilder
- func (kb *KeyboardBuilder) Build() *ReplyInlineMarkup
- func (kb *KeyboardBuilder) BuildReply(opts ...BuildReplyOptions) *ReplyKeyboardMarkup
- func (kb *KeyboardBuilder) NewColumn(x int, buttons ...KeyboardButton) *KeyboardBuilder
- func (kb *KeyboardBuilder) NewGrid(x, y int, buttons ...KeyboardButton) *KeyboardBuilder
- func (kb *KeyboardBuilder) NewRow(y int, buttons ...KeyboardButton) *KeyboardBuilder
- type KeyboardButton
- type KeyboardButtonBuy
- type KeyboardButtonCallback
- type KeyboardButtonCopy
- type KeyboardButtonGame
- type KeyboardButtonObj
- type KeyboardButtonRequestGeoLocation
- type KeyboardButtonRequestPeer
- type KeyboardButtonRequestPhone
- type KeyboardButtonRequestPoll
- type KeyboardButtonRow
- type KeyboardButtonSimpleWebView
- type KeyboardButtonSwitchInline
- type KeyboardButtonURL
- type KeyboardButtonURLAuth
- type KeyboardButtonUserProfile
- type KeyboardButtonWebView
- type LabeledPrice
- type LangPackDifference
- type LangPackLanguage
- type LangPackString
- type LangPackStringDeleted
- type LangPackStringObj
- type LangPackStringPluralized
- type LangpackGetDifferenceParams
- type LangpackGetLangPackParams
- type LangpackGetLanguageParams
- type LangpackGetLanguagesParams
- type LangpackGetStringsParams
- type LifecycleHooks
- type LogEntry
- type LogFormatter
- type LogLevel
- type LogOutputMode
- type Logger
- type LoggerConfig
- type LoginOptions
- type MTProxy
- type MaskCoords
- type MediaArea
- type MediaAreaChannelPost
- type MediaAreaCoordinates
- type MediaAreaGeoPoint
- type MediaAreaStarGift
- type MediaAreaSuggestedReaction
- type MediaAreaURL
- type MediaAreaVenue
- type MediaAreaWeather
- type MediaMetadata
- type MediaOptions
- type MemoryCacheStorage
- type Message
- type MessageAction
- type MessageActionBoostApply
- type MessageActionBotAllowed
- type MessageActionChannelCreate
- type MessageActionChannelMigrateFrom
- type MessageActionChatAddUser
- type MessageActionChatCreate
- type MessageActionChatDeletePhoto
- type MessageActionChatDeleteUser
- type MessageActionChatEditPhoto
- type MessageActionChatEditTitle
- type MessageActionChatJoinedByLink
- type MessageActionChatJoinedByRequest
- type MessageActionChatMigrateTo
- type MessageActionConferenceCall
- type MessageActionContactSignUp
- type MessageActionCustomAction
- type MessageActionEmpty
- type MessageActionGameScore
- type MessageActionGeoProximityReached
- type MessageActionGiftCode
- type MessageActionGiftPremium
- type MessageActionGiftStars
- type MessageActionGiftTon
- type MessageActionGiveawayLaunch
- type MessageActionGiveawayResults
- type MessageActionGroupCall
- type MessageActionGroupCallScheduled
- type MessageActionHistoryClear
- type MessageActionInviteToGroupCall
- type MessageActionPaidMessagesPrice
- type MessageActionPaidMessagesRefunded
- type MessageActionPaymentRefunded
- type MessageActionPaymentSent
- type MessageActionPaymentSentMe
- type MessageActionPhoneCall
- type MessageActionPinMessage
- type MessageActionPrizeStars
- type MessageActionRequestedPeer
- type MessageActionRequestedPeerSentMe
- type MessageActionScreenshotTaken
- type MessageActionSecureValuesSent
- type MessageActionSecureValuesSentMe
- type MessageActionSetChatTheme
- type MessageActionSetChatWallPaper
- type MessageActionSetMessagesTtl
- type MessageActionStarGift
- type MessageActionStarGiftPurchaseOffer
- type MessageActionStarGiftPurchaseOfferDeclined
- type MessageActionStarGiftUnique
- type MessageActionSuggestBirthday
- type MessageActionSuggestProfilePhoto
- type MessageActionSuggestedPostApproval
- type MessageActionSuggestedPostRefund
- type MessageActionSuggestedPostSuccess
- type MessageActionTodoAppendTasks
- type MessageActionTodoCompletions
- type MessageActionTopicCreate
- type MessageActionTopicEdit
- type MessageActionWebViewDataSent
- type MessageActionWebViewDataSentMe
- type MessageEmpty
- type MessageEntity
- type MessageEntityBankCard
- type MessageEntityBlockquote
- type MessageEntityBold
- type MessageEntityBotCommand
- type MessageEntityCashtag
- type MessageEntityCode
- type MessageEntityCustomEmoji
- type MessageEntityEmail
- type MessageEntityHashtag
- type MessageEntityItalic
- type MessageEntityMention
- type MessageEntityMentionName
- type MessageEntityPhone
- type MessageEntityPre
- type MessageEntitySpoiler
- type MessageEntityStrike
- type MessageEntityTextURL
- type MessageEntityURL
- type MessageEntityUnderline
- type MessageEntityUnknown
- type MessageExtendedMedia
- type MessageExtendedMediaObj
- type MessageExtendedMediaPreview
- type MessageFwdHeader
- type MessageHandler
- type MessageMedia
- type MessageMediaContact
- type MessageMediaDice
- type MessageMediaDocument
- type MessageMediaEmpty
- type MessageMediaGame
- type MessageMediaGeo
- type MessageMediaGeoLive
- type MessageMediaGiveaway
- type MessageMediaGiveawayResults
- type MessageMediaInvoice
- type MessageMediaPaidMedia
- type MessageMediaPhoto
- type MessageMediaPoll
- type MessageMediaStory
- type MessageMediaToDo
- type MessageMediaUnsupported
- type MessageMediaVenue
- type MessageMediaVideoStream
- type MessageMediaWebPage
- type MessageObj
- type MessagePeerReaction
- type MessagePeerVote
- type MessagePeerVoteInputOption
- type MessagePeerVoteMultiple
- type MessagePeerVoteObj
- type MessageRange
- type MessageReactions
- type MessageReactor
- type MessageReplies
- type MessageReplyHeader
- type MessageReplyHeaderObj
- type MessageReplyStoryHeader
- type MessageReportOption
- type MessageService
- type MessageViews
- type MessagesAcceptEncryptionParams
- type MessagesAcceptURLAuthParams
- type MessagesAddChatUserParams
- type MessagesAffectedFoundMessages
- type MessagesAffectedHistory
- type MessagesAffectedMessages
- type MessagesAllStickers
- type MessagesAllStickersNotModified
- type MessagesAllStickersObj
- type MessagesAppendTodoListParams
- type MessagesArchivedStickers
- type MessagesAvailableEffects
- type MessagesAvailableEffectsNotModified
- type MessagesAvailableEffectsObj
- type MessagesAvailableReactions
- type MessagesAvailableReactionsNotModified
- type MessagesAvailableReactionsObj
- type MessagesBotApp
- type MessagesBotCallbackAnswer
- type MessagesBotPreparedInlineMessage
- type MessagesBotResults
- type MessagesChannelMessages
- type MessagesChatAdminsWithInvites
- type MessagesChatFull
- type MessagesChatInviteImporters
- type MessagesChats
- type MessagesChatsObj
- type MessagesChatsSlice
- type MessagesCheckChatInviteParams
- type MessagesCheckHistoryImportParams
- type MessagesCheckHistoryImportPeerParams
- type MessagesCheckQuickReplyShortcutParams
- type MessagesCheckedHistoryImportPeer
- type MessagesClearAllDraftsParams
- type MessagesClearRecentReactionsParams
- type MessagesClearRecentStickersParams
- type MessagesClickSponsoredMessageParams
- type MessagesCreateChatParams
- type MessagesCreateForumTopicParams
- type MessagesDeleteChatParams
- type MessagesDeleteChatUserParams
- type MessagesDeleteExportedChatInviteParams
- type MessagesDeleteFactCheckParams
- type MessagesDeleteHistoryParams
- type MessagesDeleteMessagesParams
- type MessagesDeletePhoneCallHistoryParams
- type MessagesDeleteQuickReplyMessagesParams
- type MessagesDeleteQuickReplyShortcutParams
- type MessagesDeleteRevokedExportedChatInvitesParams
- type MessagesDeleteSavedHistoryParams
- type MessagesDeleteScheduledMessagesParams
- type MessagesDeleteTopicHistoryParams
- type MessagesDhConfig
- type MessagesDhConfigNotModified
- type MessagesDhConfigObj
- type MessagesDialogFilters
- type MessagesDialogs
- type MessagesDialogsNotModified
- type MessagesDialogsObj
- type MessagesDialogsSlice
- type MessagesDiscardEncryptionParams
- type MessagesDiscussionMessage
- type MessagesEditChatAboutParams
- type MessagesEditChatAdminParams
- type MessagesEditChatDefaultBannedRightsParams
- type MessagesEditChatPhotoParams
- type MessagesEditChatTitleParams
- type MessagesEditExportedChatInviteParams
- type MessagesEditFactCheckParams
- type MessagesEditForumTopicParams
- type MessagesEditInlineBotMessageParams
- type MessagesEditMessageParams
- type MessagesEditQuickReplyShortcutParams
- type MessagesEmojiGroups
- type MessagesEmojiGroupsNotModified
- type MessagesEmojiGroupsObj
- type MessagesExportChatInviteParams
- type MessagesExportedChatInvite
- type MessagesExportedChatInviteObj
- type MessagesExportedChatInviteReplaced
- type MessagesExportedChatInvites
- type MessagesFaveStickerParams
- type MessagesFavedStickers
- type MessagesFavedStickersNotModified
- type MessagesFavedStickersObj
- type MessagesFeaturedStickers
- type MessagesFeaturedStickersNotModified
- type MessagesFeaturedStickersObj
- type MessagesFilter
- type MessagesForumTopics
- type MessagesForwardMessagesParams
- type MessagesFoundStickerSets
- type MessagesFoundStickerSetsNotModified
- type MessagesFoundStickerSetsObj
- type MessagesFoundStickers
- type MessagesFoundStickersNotModified
- type MessagesFoundStickersObj
- type MessagesGetAdminsWithInvitesParams
- type MessagesGetAllDraftsParams
- type MessagesGetAllStickersParams
- type MessagesGetArchivedStickersParams
- type MessagesGetAttachMenuBotParams
- type MessagesGetAttachMenuBotsParams
- type MessagesGetAttachedStickersParams
- type MessagesGetAvailableEffectsParams
- type MessagesGetAvailableReactionsParams
- type MessagesGetBotAppParams
- type MessagesGetBotCallbackAnswerParams
- type MessagesGetChatInviteImportersParams
- type MessagesGetChatsParams
- type MessagesGetCommonChatsParams
- type MessagesGetCustomEmojiDocumentsParams
- type MessagesGetDefaultHistoryTtlParams
- type MessagesGetDefaultTagReactionsParams
- type MessagesGetDhConfigParams
- type MessagesGetDialogFiltersParams
- type MessagesGetDialogUnreadMarksParams
- type MessagesGetDialogsParams
- type MessagesGetDiscussionMessageParams
- type MessagesGetDocumentByHashParams
- type MessagesGetEmojiGroupsParams
- type MessagesGetEmojiKeywordsDifferenceParams
- type MessagesGetEmojiKeywordsLanguagesParams
- type MessagesGetEmojiKeywordsParams
- type MessagesGetEmojiProfilePhotoGroupsParams
- type MessagesGetEmojiStatusGroupsParams
- type MessagesGetEmojiStickerGroupsParams
- type MessagesGetEmojiStickersParams
- type MessagesGetEmojiURLParams
- type MessagesGetExportedChatInviteParams
- type MessagesGetExportedChatInvitesParams
- type MessagesGetExtendedMediaParams
- type MessagesGetFactCheckParams
- type MessagesGetFavedStickersParams
- type MessagesGetFeaturedEmojiStickersParams
- type MessagesGetFeaturedStickersParams
- type MessagesGetForumTopicsByIDParams
- type MessagesGetForumTopicsParams
- type MessagesGetFullChatParams
- type MessagesGetGameHighScoresParams
- type MessagesGetHistoryParams
- type MessagesGetInlineBotResultsParams
- type MessagesGetInlineGameHighScoresParams
- type MessagesGetMaskStickersParams
- type MessagesGetMessageEditDataParams
- type MessagesGetMessageReactionsListParams
- type MessagesGetMessageReadParticipantsParams
- type MessagesGetMessagesParams
- type MessagesGetMessagesReactionsParams
- type MessagesGetMessagesViewsParams
- type MessagesGetMyStickersParams
- type MessagesGetOldFeaturedStickersParams
- type MessagesGetOnlinesParams
- type MessagesGetOutboxReadDateParams
- type MessagesGetPaidReactionPrivacyParams
- type MessagesGetPeerDialogsParams
- type MessagesGetPeerSettingsParams
- type MessagesGetPinnedDialogsParams
- type MessagesGetPinnedSavedDialogsParams
- type MessagesGetPollResultsParams
- type MessagesGetPollVotesParams
- type MessagesGetPreparedInlineMessageParams
- type MessagesGetQuickRepliesParams
- type MessagesGetQuickReplyMessagesParams
- type MessagesGetRecentLocationsParams
- type MessagesGetRecentReactionsParams
- type MessagesGetRecentStickersParams
- type MessagesGetRepliesParams
- type MessagesGetSavedDialogsByIDParams
- type MessagesGetSavedDialogsParams
- type MessagesGetSavedGifsParams
- type MessagesGetSavedHistoryParams
- type MessagesGetSavedReactionTagsParams
- type MessagesGetScheduledHistoryParams
- type MessagesGetScheduledMessagesParams
- type MessagesGetSearchCountersParams
- type MessagesGetSearchResultsCalendarParams
- type MessagesGetSearchResultsPositionsParams
- type MessagesGetSplitRangesParams
- type MessagesGetSponsoredMessagesParams
- type MessagesGetStickerSetParams
- type MessagesGetStickersParams
- type MessagesGetSuggestedDialogFiltersParams
- type MessagesGetTopReactionsParams
- type MessagesGetUnreadMentionsParams
- type MessagesGetUnreadReactionsParams
- type MessagesGetWebPageParams
- type MessagesGetWebPagePreviewParams
- type MessagesHideAllChatJoinRequestsParams
- type MessagesHideChatJoinRequestParams
- type MessagesHidePeerSettingsBarParams
- type MessagesHighScores
- type MessagesHistoryImport
- type MessagesHistoryImportParsed
- type MessagesImportChatInviteParams
- type MessagesInactiveChats
- type MessagesInitHistoryImportParams
- type MessagesInstallStickerSetParams
- type MessagesInvitedUsers
- type MessagesMarkDialogUnreadParams
- type MessagesMessageEditData
- type MessagesMessageReactionsList
- type MessagesMessageViews
- type MessagesMessages
- type MessagesMessagesNotModified
- type MessagesMessagesObj
- type MessagesMessagesSlice
- type MessagesMigrateChatParams
- type MessagesMyStickers
- type MessagesPeerDialogs
- type MessagesPeerSettings
- type MessagesPreparedInlineMessage
- type MessagesProlongWebViewParams
- type MessagesQuickReplies
- type MessagesQuickRepliesNotModified
- type MessagesQuickRepliesObj
- type MessagesRateTranscribedAudioParams
- type MessagesReactions
- type MessagesReactionsNotModified
- type MessagesReactionsObj
- type MessagesReadDiscussionParams
- type MessagesReadEncryptedHistoryParams
- type MessagesReadFeaturedStickersParams
- type MessagesReadHistoryParams
- type MessagesReadMentionsParams
- type MessagesReadMessageContentsParams
- type MessagesReadReactionsParams
- type MessagesReadSavedHistoryParams
- type MessagesReceivedMessagesParams
- type MessagesReceivedQueueParams
- type MessagesRecentStickers
- type MessagesRecentStickersNotModified
- type MessagesRecentStickersObj
- type MessagesReorderPinnedDialogsParams
- type MessagesReorderPinnedForumTopicsParams
- type MessagesReorderPinnedSavedDialogsParams
- type MessagesReorderQuickRepliesParams
- type MessagesReorderStickerSetsParams
- type MessagesReportEncryptedSpamParams
- type MessagesReportMessagesDeliveryParams
- type MessagesReportParams
- type MessagesReportReactionParams
- type MessagesReportSpamParams
- type MessagesReportSponsoredMessageParams
- type MessagesRequestAppWebViewParams
- type MessagesRequestEncryptionParams
- type MessagesRequestMainWebViewParams
- type MessagesRequestSimpleWebViewParams
- type MessagesRequestURLAuthParams
- type MessagesRequestWebViewParams
- type MessagesSaveDefaultSendAsParams
- type MessagesSaveDraftParams
- type MessagesSaveGifParams
- type MessagesSavePreparedInlineMessageParams
- type MessagesSaveRecentStickerParams
- type MessagesSavedDialogs
- type MessagesSavedDialogsNotModified
- type MessagesSavedDialogsObj
- type MessagesSavedDialogsSlice
- type MessagesSavedGifs
- type MessagesSavedGifsNotModified
- type MessagesSavedGifsObj
- type MessagesSavedReactionTags
- type MessagesSavedReactionTagsNotModified
- type MessagesSavedReactionTagsObj
- type MessagesSearchCounter
- type MessagesSearchCustomEmojiParams
- type MessagesSearchEmojiStickerSetsParams
- type MessagesSearchGlobalParams
- type MessagesSearchParams
- type MessagesSearchResultsCalendar
- type MessagesSearchResultsPositions
- type MessagesSearchSentMediaParams
- type MessagesSearchStickerSetsParams
- type MessagesSearchStickersParams
- type MessagesSendBotRequestedPeerParams
- type MessagesSendEncryptedFileParams
- type MessagesSendEncryptedParams
- type MessagesSendEncryptedServiceParams
- type MessagesSendInlineBotResultParams
- type MessagesSendMediaParams
- type MessagesSendMessageParams
- type MessagesSendMultiMediaParams
- type MessagesSendPaidReactionParams
- type MessagesSendQuickReplyMessagesParams
- type MessagesSendReactionParams
- type MessagesSendScheduledMessagesParams
- type MessagesSendScreenshotNotificationParams
- type MessagesSendVoteParams
- type MessagesSendWebViewDataParams
- type MessagesSendWebViewResultMessageParams
- type MessagesSentEncryptedFile
- type MessagesSentEncryptedMessage
- type MessagesSentEncryptedMessageObj
- type MessagesSetBotCallbackAnswerParams
- type MessagesSetBotPrecheckoutResultsParams
- type MessagesSetBotShippingResultsParams
- type MessagesSetChatAvailableReactionsParams
- type MessagesSetChatThemeParams
- type MessagesSetChatWallPaperParams
- type MessagesSetDefaultHistoryTtlParams
- type MessagesSetDefaultReactionParams
- type MessagesSetEncryptedTypingParams
- type MessagesSetGameScoreParams
- type MessagesSetHistoryTtlParams
- type MessagesSetInlineBotResultsParams
- type MessagesSetInlineGameScoreParams
- type MessagesSetTypingParams
- type MessagesSponsoredMessages
- type MessagesSponsoredMessagesEmpty
- type MessagesSponsoredMessagesObj
- type MessagesStartBotParams
- type MessagesStartHistoryImportParams
- type MessagesStickerSet
- type MessagesStickerSetInstallResult
- type MessagesStickerSetInstallResultArchive
- type MessagesStickerSetInstallResultSuccess
- type MessagesStickerSetNotModified
- type MessagesStickerSetObj
- type MessagesStickers
- type MessagesStickersNotModified
- type MessagesStickersObj
- type MessagesToggleBotInAttachMenuParams
- type MessagesToggleDialogFilterTagsParams
- type MessagesToggleDialogPinParams
- type MessagesToggleNoForwardsParams
- type MessagesTogglePaidReactionPrivacyParams
- type MessagesTogglePeerTranslationsParams
- type MessagesToggleSavedDialogPinParams
- type MessagesToggleStickerSetsParams
- type MessagesToggleSuggestedPostApprovalParams
- type MessagesToggleTodoCompletedParams
- type MessagesTranscribeAudioParams
- type MessagesTranscribedAudio
- type MessagesTranslateResult
- type MessagesTranslateTextParams
- type MessagesUninstallStickerSetParams
- type MessagesUnpinAllMessagesParams
- type MessagesUpdateDialogFilterParams
- type MessagesUpdateDialogFiltersOrderParams
- type MessagesUpdatePinnedForumTopicParams
- type MessagesUpdatePinnedMessageParams
- type MessagesUpdateSavedReactionTagParams
- type MessagesUploadEncryptedFileParams
- type MessagesUploadImportedMediaParams
- type MessagesUploadMediaParams
- type MessagesViewSponsoredMessageParams
- type MessagesVotesList
- type MessagesWebPage
- type MessagesWebPagePreview
- type Middleware
- type MissingInvitee
- type MonoForumDialog
- type MyBoost
- type NearestDc
- type NewMessage
- func (m *NewMessage) Animation() *DocumentObj
- func (m *NewMessage) Args() string
- func (m *NewMessage) ArgsList() []string
- func (m *NewMessage) Ask(Text any, Opts ...*SendOptions) (*NewMessage, *NewMessage, error)
- func (m *NewMessage) Audio() *DocumentObj
- func (m *NewMessage) ChannelID() int64
- func (m *NewMessage) ChatID() int64
- func (m *NewMessage) ChatType() string
- func (m *NewMessage) CheckErr(obj any, err error) error
- func (m *NewMessage) Click(options ...any) (*MessagesBotCallbackAnswer, error)
- func (m *NewMessage) Contact() *MessageMediaContact
- func (m *NewMessage) Conv(timeout ...int32) (*Conversation, error)
- func (m *NewMessage) Date() int32
- func (m *NewMessage) Delete() (*MessagesAffectedMessages, error)
- func (m *NewMessage) Document() *DocumentObj
- func (m *NewMessage) Download(opts ...*DownloadOptions) (string, error)
- func (m *NewMessage) Edit(Text any, Opts ...*SendOptions) (*NewMessage, error)
- func (m *NewMessage) Fact() ([]*FactCheck, error)
- func (m *NewMessage) ForwardTo(PeerID any, Opts ...*ForwardOptions) (*NewMessage, error)
- func (m *NewMessage) Game() *MessageMediaGame
- func (m *NewMessage) Geo() *GeoPointObj
- func (m *NewMessage) GetChannel() (*Channel, error)
- func (m *NewMessage) GetChat() (*ChatObj, error)
- func (m *NewMessage) GetCommand() string
- func (m *NewMessage) GetDiscussionMessages() ([]*NewMessage, error)
- func (m *NewMessage) GetMediaGroup() ([]NewMessage, error)
- func (m *NewMessage) GetPeer() (int64, int64)
- func (m *NewMessage) GetReplyMessage() (*NewMessage, error)
- func (m *NewMessage) GetSender() (*UserObj, error)
- func (m *NewMessage) GetSenderChat() *Channel
- func (m *NewMessage) Invoice() *MessageMediaInvoice
- func (m *NewMessage) IsAnonymous() bool
- func (m *NewMessage) IsChannel() bool
- func (m *NewMessage) IsChannelPost() bool
- func (m *NewMessage) IsCommand() bool
- func (m *NewMessage) IsEmpty() bool
- func (m *NewMessage) IsForward() bool
- func (m *NewMessage) IsGroup() bool
- func (m *NewMessage) IsMedia() bool
- func (m *NewMessage) IsOutgoing() bool
- func (m *NewMessage) IsPrivate() bool
- func (m *NewMessage) IsReply() bool
- func (m *NewMessage) IsService() bool
- func (m *NewMessage) Link() string
- func (m *NewMessage) MarkRead() (err error)
- func (m *NewMessage) Marshal(noindent ...bool) string
- func (m *NewMessage) Media() MessageMedia
- func (m *NewMessage) MediaType() string
- func (m *NewMessage) MessageText() string
- func (m *NewMessage) Photo() *PhotoObj
- func (a *NewMessage) Pin(opts ...*PinOptions) (err error)
- func (m *NewMessage) Poll() *MessageMediaPoll
- func (m *NewMessage) RawText(markdown ...bool) string
- func (m *NewMessage) React(Reactions ...any) error
- func (m *NewMessage) Reply(Text any, Opts ...*SendOptions) (*NewMessage, error)
- func (m *NewMessage) ReplyAlbum(Album any, Opts ...*MediaOptions) ([]*NewMessage, error)
- func (m *NewMessage) ReplyID() int32
- func (m *NewMessage) ReplyMarkup() *ReplyMarkup
- func (m *NewMessage) ReplyMedia(Media any, Opts ...*MediaOptions) (*NewMessage, error)
- func (m *NewMessage) ReplySenderID() int64
- func (m *NewMessage) ReplyToMsgID() int32
- func (m *NewMessage) ReplyWithoutError(Text any, Opts ...*SendOptions) *NewMessage
- func (m *NewMessage) Respond(Text any, Opts ...*SendOptions) (*NewMessage, error)
- func (m *NewMessage) RespondAlbum(Album any, Opts ...*MediaOptions) ([]*NewMessage, error)
- func (m *NewMessage) RespondMedia(Media any, Opts ...*MediaOptions) (*NewMessage, error)
- func (m *NewMessage) SendAction(Action any) (*ActionResult, error)
- func (m *NewMessage) SendDice(Emoticon string) (*NewMessage, error)
- func (m *NewMessage) SenderID() int64
- func (m *NewMessage) Sticker() *DocumentObj
- func (m *NewMessage) Text() string
- func (m *NewMessage) TopicID() (int32, bool)
- func (m *NewMessage) Unmarshal(data []byte) (*NewMessage, error)
- func (a *NewMessage) Unpin() (err error)
- func (m *NewMessage) Venue() *MessageMediaVenue
- func (m *NewMessage) Video() *DocumentObj
- func (m *NewMessage) Voice() *DocumentObj
- func (m *NewMessage) WaitClick(timeout ...int32) (*CallbackQuery, error)
- func (m *NewMessage) WebPage() *WebPageObj
- func (m *NewMessage) Wizard(timeout ...int32) (*ConversationWizard, error)
- type NotificationSound
- type NotificationSoundDefault
- type NotificationSoundLocal
- type NotificationSoundNone
- type NotificationSoundRingtone
- type NotifyBroadcasts
- type NotifyChats
- type NotifyForumTopic
- type NotifyPeer
- type NotifyPeerObj
- type NotifyUsers
- type Null
- type Number
- type OutboxReadDate
- type Page
- type PageBlock
- type PageBlockAnchor
- type PageBlockAudio
- type PageBlockAuthorDate
- type PageBlockBlockquote
- type PageBlockChannel
- type PageBlockCollage
- type PageBlockCover
- type PageBlockDetails
- type PageBlockDivider
- type PageBlockEmbed
- type PageBlockEmbedPost
- type PageBlockFooter
- type PageBlockHeader
- type PageBlockKicker
- type PageBlockList
- type PageBlockMap
- type PageBlockOrderedList
- type PageBlockParagraph
- type PageBlockPhoto
- type PageBlockPreformatted
- type PageBlockPullquote
- type PageBlockRelatedArticles
- type PageBlockSlideshow
- type PageBlockSubheader
- type PageBlockSubtitle
- type PageBlockTable
- type PageBlockTitle
- type PageBlockUnsupported
- type PageBlockVideo
- type PageCaption
- type PageListItem
- type PageListItemBlocks
- type PageListItemText
- type PageListOrderedItem
- type PageListOrderedItemBlocks
- type PageListOrderedItemText
- type PageRelatedArticle
- type PageTableCell
- type PageTableRow
- type PaidReactionPrivacy
- type PaidReactionPrivacyAnonymous
- type PaidReactionPrivacyDefault
- type PaidReactionPrivacyPeer
- type Participant
- type ParticipantHandler
- type ParticipantOptions
- type ParticipantUpdate
- func (pu *ParticipantUpdate) ActorID() int64
- func (pu *ParticipantUpdate) Ban() (bool, error)
- func (pu *ParticipantUpdate) ChannelID() int64
- func (pu *ParticipantUpdate) ChatID() int64
- func (pu *ParticipantUpdate) Demote() (bool, error)
- func (pu *ParticipantUpdate) IsAdded() bool
- func (pu *ParticipantUpdate) IsBanned() bool
- func (pu *ParticipantUpdate) IsDemoted() bool
- func (pu *ParticipantUpdate) IsJoined() bool
- func (pu *ParticipantUpdate) IsKicked() bool
- func (pu *ParticipantUpdate) IsLeft() bool
- func (pu *ParticipantUpdate) IsPromoted() bool
- func (pu *ParticipantUpdate) Kick() (bool, error)
- func (pu *ParticipantUpdate) Marshal(noindent ...bool) string
- func (pu *ParticipantUpdate) Promote() (bool, error)
- func (pu *ParticipantUpdate) Unban() (bool, error)
- func (pu *ParticipantUpdate) UserID() int64
- type Passkey
- type PasswordKdfAlgo
- type PasswordKdfAlgoSHA256SHA256Pbkdf2Hmacsha512Iter100000SHA256ModPow
- type PasswordKdfAlgoUnknown
- type PasswordOptions
- type PaymentCharge
- type PaymentFormMethod
- type PaymentRequestedInfo
- type PaymentSavedCredentialsCard
- type PaymentsApplyGiftCodeParams
- type PaymentsAssignAppStoreTransactionParams
- type PaymentsAssignPlayMarketTransactionParams
- type PaymentsBankCardData
- type PaymentsBotCancelStarsSubscriptionParams
- type PaymentsCanPurchaseStoreParams
- type PaymentsChangeStarsSubscriptionParams
- type PaymentsCheckCanSendGiftParams
- type PaymentsCheckCanSendGiftResult
- type PaymentsCheckCanSendGiftResultFail
- type PaymentsCheckCanSendGiftResultOk
- type PaymentsCheckGiftCodeParams
- type PaymentsCheckedGiftCode
- type PaymentsClearSavedInfoParams
- type PaymentsConnectStarRefBotParams
- type PaymentsConnectedStarRefBots
- type PaymentsConvertStarGiftParams
- type PaymentsCreateStarGiftCollectionParams
- type PaymentsDeleteStarGiftCollectionParams
- type PaymentsEditConnectedStarRefBotParams
- type PaymentsExportInvoiceParams
- type PaymentsExportedInvoice
- type PaymentsFulfillStarsSubscriptionParams
- type PaymentsGetBankCardDataParams
- type PaymentsGetConnectedStarRefBotParams
- type PaymentsGetConnectedStarRefBotsParams
- type PaymentsGetGiveawayInfoParams
- type PaymentsGetPaymentFormParams
- type PaymentsGetPaymentReceiptParams
- type PaymentsGetPremiumGiftCodeOptionsParams
- type PaymentsGetResaleStarGiftsParams
- type PaymentsGetSavedInfoParams
- type PaymentsGetSavedStarGiftParams
- type PaymentsGetSavedStarGiftsParams
- type PaymentsGetStarGiftActiveAuctionsParams
- type PaymentsGetStarGiftAuctionAcquiredGiftsParams
- type PaymentsGetStarGiftAuctionStateParams
- type PaymentsGetStarGiftCollectionsParams
- type PaymentsGetStarGiftUpgradeAttributesParams
- type PaymentsGetStarGiftUpgradePreviewParams
- type PaymentsGetStarGiftWithdrawalURLParams
- type PaymentsGetStarGiftsParams
- type PaymentsGetStarsGiftOptionsParams
- type PaymentsGetStarsGiveawayOptionsParams
- type PaymentsGetStarsRevenueAdsAccountURLParams
- type PaymentsGetStarsRevenueStatsParams
- type PaymentsGetStarsRevenueWithdrawalURLParams
- type PaymentsGetStarsStatusParams
- type PaymentsGetStarsSubscriptionsParams
- type PaymentsGetStarsTopupOptionsParams
- type PaymentsGetStarsTransactionsByIDParams
- type PaymentsGetStarsTransactionsParams
- type PaymentsGetSuggestedStarRefBotsParams
- type PaymentsGetUniqueStarGiftParams
- type PaymentsGetUniqueStarGiftValueInfoParams
- type PaymentsGiveawayInfo
- type PaymentsGiveawayInfoObj
- type PaymentsGiveawayInfoResults
- type PaymentsLaunchPrepaidGiveawayParams
- type PaymentsPaymentForm
- type PaymentsPaymentFormObj
- type PaymentsPaymentFormStarGift
- type PaymentsPaymentFormStars
- type PaymentsPaymentReceipt
- type PaymentsPaymentReceiptObj
- type PaymentsPaymentReceiptStars
- type PaymentsPaymentResult
- type PaymentsPaymentResultObj
- type PaymentsPaymentVerificationNeeded
- type PaymentsRefundStarsChargeParams
- type PaymentsReorderStarGiftCollectionsParams
- type PaymentsResaleStarGifts
- type PaymentsResolveStarGiftOfferParams
- type PaymentsSaveStarGiftParams
- type PaymentsSavedInfo
- type PaymentsSavedStarGifts
- type PaymentsSendPaymentFormParams
- type PaymentsSendStarGiftOfferParams
- type PaymentsSendStarsFormParams
- type PaymentsStarGiftActiveAuctions
- type PaymentsStarGiftActiveAuctionsNotModified
- type PaymentsStarGiftActiveAuctionsObj
- type PaymentsStarGiftAuctionAcquiredGifts
- type PaymentsStarGiftAuctionState
- type PaymentsStarGiftCollections
- type PaymentsStarGiftCollectionsNotModified
- type PaymentsStarGiftCollectionsObj
- type PaymentsStarGiftUpgradeAttributes
- type PaymentsStarGiftUpgradePreview
- type PaymentsStarGiftWithdrawalURL
- type PaymentsStarGifts
- type PaymentsStarGiftsNotModified
- type PaymentsStarGiftsObj
- type PaymentsStarsRevenueAdsAccountURL
- type PaymentsStarsRevenueStats
- type PaymentsStarsRevenueWithdrawalURL
- type PaymentsStarsStatus
- type PaymentsSuggestedStarRefBots
- type PaymentsToggleChatStarGiftNotificationsParams
- type PaymentsToggleStarGiftsPinnedToTopParams
- type PaymentsTransferStarGiftParams
- type PaymentsUniqueStarGift
- type PaymentsUniqueStarGiftValueInfo
- type PaymentsUpdateStarGiftCollectionParams
- type PaymentsUpdateStarGiftPriceParams
- type PaymentsUpgradeStarGiftParams
- type PaymentsValidateRequestedInfoParams
- type PaymentsValidatedRequestedInfo
- type Peer
- type PeerBlocked
- type PeerChannel
- type PeerChat
- type PeerColor
- type PeerColorCollectible
- type PeerColorObj
- type PeerLocated
- type PeerLocatedObj
- type PeerNotifySettings
- type PeerSelfLocated
- type PeerSettings
- type PeerStories
- type PeerUser
- type PendingJoinHandler
- type PendingSuggestion
- type PhoneAcceptCallParams
- type PhoneCall
- type PhoneCallAccepted
- type PhoneCallDiscardReason
- type PhoneCallDiscardReasonBusy
- type PhoneCallDiscardReasonDisconnect
- type PhoneCallDiscardReasonHangup
- type PhoneCallDiscardReasonMigrateConferenceCall
- type PhoneCallDiscardReasonMissed
- type PhoneCallDiscarded
- type PhoneCallEmpty
- type PhoneCallObj
- type PhoneCallProtocol
- type PhoneCallRequested
- type PhoneCallWaiting
- type PhoneCheckGroupCallParams
- type PhoneConfirmCallParams
- type PhoneConnection
- type PhoneConnectionObj
- type PhoneConnectionWebrtc
- type PhoneCreateConferenceCallParams
- type PhoneCreateGroupCallParams
- type PhoneDeclineConferenceCallInviteParams
- type PhoneDeleteConferenceCallParticipantsParams
- type PhoneDeleteGroupCallMessagesParams
- type PhoneDeleteGroupCallParticipantMessagesParams
- type PhoneDiscardCallParams
- type PhoneDiscardGroupCallParams
- type PhoneEditGroupCallParticipantParams
- type PhoneEditGroupCallTitleParams
- type PhoneExportGroupCallInviteParams
- type PhoneExportedGroupCallInvite
- type PhoneGetCallConfigParams
- type PhoneGetGroupCallChainBlocksParams
- type PhoneGetGroupCallJoinAsParams
- type PhoneGetGroupCallParams
- type PhoneGetGroupCallStarsParams
- type PhoneGetGroupCallStreamChannelsParams
- type PhoneGetGroupCallStreamRtmpURLParams
- type PhoneGetGroupParticipantsParams
- type PhoneGroupCall
- type PhoneGroupCallStars
- type PhoneGroupCallStreamChannels
- type PhoneGroupCallStreamRtmpURL
- type PhoneGroupParticipants
- type PhoneInviteConferenceCallParticipantParams
- type PhoneInviteToGroupCallParams
- type PhoneJoinAsPeers
- type PhoneJoinGroupCallParams
- type PhoneJoinGroupCallPresentationParams
- type PhoneLeaveGroupCallParams
- type PhoneLeaveGroupCallPresentationParams
- type PhonePhoneCall
- type PhoneReceivedCallParams
- type PhoneRequestCallParams
- type PhoneSaveCallDebugParams
- type PhoneSaveCallLogParams
- type PhoneSaveDefaultGroupCallJoinAsParams
- type PhoneSaveDefaultSendAsParams
- type PhoneSendConferenceCallBroadcastParams
- type PhoneSendGroupCallEncryptedMessageParams
- type PhoneSendGroupCallMessageParams
- type PhoneSendSignalingDataParams
- type PhoneSetCallRatingParams
- type PhoneStartScheduledGroupCallParams
- type PhoneToggleGroupCallRecordParams
- type PhoneToggleGroupCallSettingsParams
- type PhoneToggleGroupCallStartSubscriptionParams
- type Photo
- type PhotoCachedSize
- type PhotoEmpty
- type PhotoObj
- type PhotoPathSize
- type PhotoSize
- type PhotoSizeEmpty
- type PhotoSizeObj
- type PhotoSizeProgressive
- type PhotoStrippedSize
- type PhotosDeletePhotosParams
- type PhotosGetUserPhotosParams
- type PhotosOptions
- type PhotosPhoto
- type PhotosPhotos
- type PhotosPhotosObj
- type PhotosPhotosSlice
- type PhotosUpdateProfilePhotoParams
- type PhotosUploadContactProfilePhotoParams
- type PhotosUploadProfilePhotoParams
- type PinOptions
- type Poll
- type PollAnswer
- type PollAnswerVoters
- type PollOptions
- type PollResults
- type PopularContact
- type PostAddress
- type PostInteractionCounters
- type PostInteractionCountersMessage
- type PostInteractionCountersStory
- type PremiumApplyBoostParams
- type PremiumBoostsList
- type PremiumBoostsStatus
- type PremiumGetBoostsListParams
- type PremiumGetBoostsStatusParams
- type PremiumGetMyBoostsParams
- type PremiumGetUserBoostsParams
- type PremiumGiftCodeOption
- type PremiumMyBoosts
- type PremiumSubscriptionOption
- type PrepaidGiveaway
- type PrepaidGiveawayObj
- type PrepaidStarsGiveaway
- type PrivacyKey
- type PrivacyRule
- type PrivacyValueAllowAll
- type PrivacyValueAllowBots
- type PrivacyValueAllowChatParticipants
- type PrivacyValueAllowCloseFriends
- type PrivacyValueAllowContacts
- type PrivacyValueAllowPremium
- type PrivacyValueAllowUsers
- type PrivacyValueDisallowAll
- type PrivacyValueDisallowBots
- type PrivacyValueDisallowChatParticipants
- type PrivacyValueDisallowContacts
- type PrivacyValueDisallowUsers
- type ProfileTab
- type ProgressInfo
- type ProgressManager
- func (pm *ProgressManager) SetFileName(fileName string)
- func (pm *ProgressManager) SetInlineMessage(client *Client, inline *InputBotInlineMessageID) *ProgressManager
- func (pm *ProgressManager) SetMessage(msg *NewMessage) *ProgressManager
- func (pm *ProgressManager) SetTotalSize(totalSize int64)
- func (pm *ProgressManager) WithCallback(callback func(*ProgressInfo)) *ProgressManager
- func (pm *ProgressManager) WithEdit(editFunc func(totalSize, currentSize int64)) *ProgressManager
- type Proxy
- type PublicForward
- type PublicForwardMessage
- type PublicForwardStory
- type QrOptions
- type QrToken
- func (q *QrToken) Expires() int32
- func (q *QrToken) ExportAsPng() ([]byte, error)
- func (q *QrToken) ExportAsSmallString() string
- func (q *QrToken) IsExpired() bool
- func (q *QrToken) PrintToConsole()
- func (q *QrToken) Renew() error
- func (q *QrToken) Token() []byte
- func (q *QrToken) Url() string
- func (q *QrToken) WaitLogin(timeout ...int32) error
- type QuickReply
- type RTMPConfig
- type RTMPStream
- func (s *RTMPStream) ClosePipe() error
- func (s *RTMPStream) CurrentPosition() time.Duration
- func (s *RTMPStream) FeedChunk(data []byte) error
- func (s *RTMPStream) FeedReader(r io.Reader) error
- func (s *RTMPStream) FetchRTMPURL() error
- func (s *RTMPStream) GetFullURL() string
- func (s *RTMPStream) GetKey() string
- func (s *RTMPStream) GetURL() string
- func (s *RTMPStream) IsMuted() bool
- func (s *RTMPStream) LastError() error
- func (s *RTMPStream) Mute() error
- func (s *RTMPStream) OnEnd(fn func(int64))
- func (s *RTMPStream) OnError(fn func(int64, error))
- func (s *RTMPStream) Pause() error
- func (s *RTMPStream) Play(source any) error
- func (s *RTMPStream) PlayAudioWithImage(audioSource any, imageSource string) error
- func (s *RTMPStream) RefreshRTMPURL() error
- func (s *RTMPStream) Resume() error
- func (s *RTMPStream) Seek(position time.Duration) error
- func (s *RTMPStream) SetAudioBitrate(bitrate string)
- func (s *RTMPStream) SetBitrate(bitrate string)
- func (s *RTMPStream) SetFrameRate(fps int)
- func (s *RTMPStream) SetFullURL(fullURL string) error
- func (s *RTMPStream) SetKey(key string)
- func (s *RTMPStream) SetLoopCount(count int)
- func (s *RTMPStream) SetURL(url string)
- func (s *RTMPStream) StartPipe() error
- func (s *RTMPStream) State() StreamState
- func (s *RTMPStream) Stop() error
- func (s *RTMPStream) Unmute() error
- type RawHandler
- type Reaction
- type ReactionCount
- type ReactionCustomEmoji
- type ReactionEmoji
- type ReactionEmpty
- type ReactionNotificationsFrom
- type ReactionPaid
- type ReactionsNotifySettings
- type ReadParticipantDate
- type ReceivedNotifyMessage
- type RecentMeURL
- type RecentMeURLChat
- type RecentMeURLChatInvite
- type RecentMeURLStickerSet
- type RecentMeURLUnknown
- type RecentMeURLUser
- type RecentStory
- type ReplyInlineMarkup
- type ReplyKeyboardForceReply
- type ReplyKeyboardHide
- type ReplyKeyboardMarkup
- type ReplyMarkup
- type ReportReason
- type ReportResult
- type ReportResultAddComment
- type ReportResultChooseOption
- type ReportResultReported
- type RequestPeerOptions
- type RequestPeerType
- type RequestPeerTypeBroadcast
- type RequestPeerTypeChat
- type RequestPeerTypeUser
- type RequestedPeer
- type RequestedPeerChannel
- type RequestedPeerChat
- type RequestedPeerUser
- type RequirementToContact
- type RequirementToContactEmpty
- type RequirementToContactPaidMessages
- type RequirementToContactPremium
- type RestrictionReason
- type RichText
- type RpcError
- type SavedDialog
- type SavedDialogObj
- type SavedPhoneContact
- type SavedReactionTag
- type SavedStarGift
- type ScrapeConfig
- type SearchOption
- type SearchPostsFlood
- type SearchResultPosition
- type SearchResultsCalendarPeriod
- type SecretFileOptions
- type SecureCredentialsEncrypted
- type SecureData
- type SecureFile
- type SecureFileEmpty
- type SecureFileObj
- type SecurePasswordKdfAlgo
- type SecurePasswordKdfAlgoPbkdf2Hmacsha512Iter100000
- type SecurePasswordKdfAlgoSHA512
- type SecurePasswordKdfAlgoUnknown
- type SecurePlainData
- type SecurePlainEmail
- type SecurePlainPhone
- type SecureRequiredType
- type SecureRequiredTypeObj
- type SecureRequiredTypeOneOf
- type SecureSecretSettings
- type SecureValue
- type SecureValueError
- type SecureValueErrorData
- type SecureValueErrorFile
- type SecureValueErrorFiles
- type SecureValueErrorFrontSide
- type SecureValueErrorObj
- type SecureValueErrorReverseSide
- type SecureValueErrorSelfie
- type SecureValueErrorTranslationFile
- type SecureValueErrorTranslationFiles
- type SecureValueHash
- type SecureValueType
- type SendAsPeer
- type SendMessageAction
- type SendMessageCancelAction
- type SendMessageChooseContactAction
- type SendMessageChooseStickerAction
- type SendMessageEmojiInteraction
- type SendMessageEmojiInteractionSeen
- type SendMessageGamePlayAction
- type SendMessageGeoLocationAction
- type SendMessageHistoryImportAction
- type SendMessageRecordAudioAction
- type SendMessageRecordRoundAction
- type SendMessageRecordVideoAction
- type SendMessageTextDraftAction
- type SendMessageTypingAction
- type SendMessageUploadAudioAction
- type SendMessageUploadDocumentAction
- type SendMessageUploadPhotoAction
- type SendMessageUploadRoundAction
- type SendMessageUploadVideoAction
- type SendOptions
- type Session
- type ShippingOption
- type SimpleLogger
- type SmsJob
- type SmsjobsEligibleToJoin
- type SmsjobsFinishJobParams
- type SmsjobsGetSmsJobParams
- type SmsjobsGetStatusParams
- type SmsjobsIsEligibleToJoinParams
- type SmsjobsJoinParams
- type SmsjobsLeaveParams
- type SmsjobsStatus
- type SmsjobsUpdateSettingsParams
- type Socks4Proxy
- type Socks5Proxy
- type Source
- type SpeakingInGroupCallAction
- type SponsoredMessage
- type SponsoredMessageReportOption
- type SponsoredPeer
- type StarGift
- type StarGiftActiveAuctionState
- type StarGiftAttribute
- type StarGiftAttributeBackdrop
- type StarGiftAttributeCounter
- type StarGiftAttributeID
- type StarGiftAttributeIDBackdrop
- type StarGiftAttributeIDModel
- type StarGiftAttributeIDPattern
- type StarGiftAttributeModel
- type StarGiftAttributeOriginalDetails
- type StarGiftAttributePattern
- type StarGiftAuctionAcquiredGift
- type StarGiftAuctionRound
- type StarGiftAuctionRoundExtendable
- type StarGiftAuctionRoundObj
- type StarGiftAuctionState
- type StarGiftAuctionStateFinished
- type StarGiftAuctionStateNotModified
- type StarGiftAuctionStateObj
- type StarGiftAuctionUserState
- type StarGiftBackground
- type StarGiftCollection
- type StarGiftObj
- type StarGiftUnique
- type StarGiftUpgradePrice
- type StarRefProgram
- type StarsAmount
- type StarsAmountObj
- type StarsGiftOption
- type StarsGiveawayOption
- type StarsGiveawayWinnersOption
- type StarsRating
- type StarsRevenueStatus
- type StarsSubscription
- type StarsSubscriptionPricing
- type StarsTonAmount
- type StarsTopupOption
- type StarsTransaction
- type StarsTransactionPeer
- type StarsTransactionPeerAPI
- type StarsTransactionPeerAds
- type StarsTransactionPeerAppStore
- type StarsTransactionPeerFragment
- type StarsTransactionPeerObj
- type StarsTransactionPeerPlayMarket
- type StarsTransactionPeerPremiumBot
- type StarsTransactionPeerUnsupported
- type StatsAbsValueAndPrev
- type StatsBroadcastStats
- type StatsDateRangeDays
- type StatsGetBroadcastStatsParams
- type StatsGetMegagroupStatsParams
- type StatsGetMessagePublicForwardsParams
- type StatsGetMessageStatsParams
- type StatsGetStoryPublicForwardsParams
- type StatsGetStoryStatsParams
- type StatsGraph
- type StatsGraphAsync
- type StatsGraphError
- type StatsGraphObj
- type StatsGroupTopAdmin
- type StatsGroupTopInviter
- type StatsGroupTopPoster
- type StatsLoadAsyncGraphParams
- type StatsMegagroupStats
- type StatsMessageStats
- type StatsPercentValue
- type StatsPublicForwards
- type StatsStoryStats
- type StatsURL
- type StickerKeyword
- type StickerPack
- type StickerSet
- type StickerSetCovered
- type StickerSetCoveredObj
- type StickerSetFullCovered
- type StickerSetMultiCovered
- type StickerSetNoCovered
- type StickersAddStickerToSetParams
- type StickersChangeStickerParams
- type StickersChangeStickerPositionParams
- type StickersCheckShortNameParams
- type StickersCreateStickerSetParams
- type StickersDeleteStickerSetParams
- type StickersRemoveStickerFromSetParams
- type StickersRenameStickerSetParams
- type StickersReplaceStickerParams
- type StickersSetStickerSetThumbParams
- type StickersSuggestShortNameParams
- type StickersSuggestedShortName
- type StorageFileType
- type StoriesActivateStealthModeParams
- type StoriesAlbums
- type StoriesAlbumsNotModified
- type StoriesAlbumsObj
- type StoriesAllStories
- type StoriesAllStoriesNotModified
- type StoriesAllStoriesObj
- type StoriesCanSendStoryCount
- type StoriesCanSendStoryParams
- type StoriesCreateAlbumParams
- type StoriesDeleteAlbumParams
- type StoriesDeleteStoriesParams
- type StoriesEditStoryParams
- type StoriesExportStoryLinkParams
- type StoriesFoundStories
- type StoriesGetAlbumStoriesParams
- type StoriesGetAlbumsParams
- type StoriesGetAllReadPeerStoriesParams
- type StoriesGetAllStoriesParams
- type StoriesGetChatsToSendParams
- type StoriesGetPeerMaxIDsParams
- type StoriesGetPeerStoriesParams
- type StoriesGetPinnedStoriesParams
- type StoriesGetStoriesArchiveParams
- type StoriesGetStoriesByIDParams
- type StoriesGetStoriesViewsParams
- type StoriesGetStoryReactionsListParams
- type StoriesGetStoryViewsListParams
- type StoriesIncrementStoryViewsParams
- type StoriesPeerStories
- type StoriesReadStoriesParams
- type StoriesReorderAlbumsParams
- type StoriesReportParams
- type StoriesSearchPostsParams
- type StoriesSendReactionParams
- type StoriesSendStoryParams
- type StoriesStartLiveParams
- type StoriesStealthMode
- type StoriesStories
- type StoriesStoryReactionsList
- type StoriesStoryViews
- type StoriesStoryViewsList
- type StoriesToggleAllStoriesHiddenParams
- type StoriesTogglePeerStoriesHiddenParams
- type StoriesTogglePinnedParams
- type StoriesTogglePinnedToTopParams
- type StoriesUpdateAlbumParams
- type StoryAlbum
- type StoryFwdHeader
- type StoryItem
- type StoryItemDeleted
- type StoryItemObj
- type StoryItemSkipped
- type StoryReaction
- type StoryReactionObj
- type StoryReactionPublicForward
- type StoryReactionPublicRepost
- type StoryView
- type StoryViewObj
- type StoryViewPublicForward
- type StoryViewPublicRepost
- type StoryViews
- type StreamState
- type SuggestedPost
- type TLDialog
- type Tag
- type TextAnchor
- type TextBold
- type TextConcat
- type TextEmail
- type TextEmpty
- type TextFixed
- type TextImage
- type TextItalic
- type TextMarked
- type TextPhone
- type TextPlain
- type TextStrike
- type TextSubscript
- type TextSuperscript
- type TextURL
- type TextUnderline
- type TextWithEntities
- type Theme
- type ThemeSettings
- type Timezone
- type TitleOptions
- type TodoCompletion
- type TodoItem
- type TodoList
- type TopPeer
- type TopPeerCategory
- type TopPeerCategoryPeers
- type URLAuthResult
- type URLAuthResultAccepted
- type URLAuthResultDefault
- type URLAuthResultRequest
- type Update
- type UpdateAttachMenuBots
- type UpdateAutoSaveSettings
- type UpdateBotBusinessConnect
- type UpdateBotCallbackQuery
- type UpdateBotChatBoost
- type UpdateBotChatInviteRequester
- type UpdateBotCommands
- type UpdateBotDeleteBusinessMessage
- type UpdateBotEditBusinessMessage
- type UpdateBotInlineQuery
- type UpdateBotInlineSend
- type UpdateBotMenuButton
- type UpdateBotMessageReaction
- type UpdateBotMessageReactions
- type UpdateBotNewBusinessMessage
- type UpdateBotPrecheckoutQuery
- type UpdateBotPurchasedPaidMedia
- type UpdateBotShippingQuery
- type UpdateBotStopped
- type UpdateBotWebhookJson
- type UpdateBotWebhookJsonQuery
- type UpdateBusinessBotCallbackQuery
- type UpdateChannel
- type UpdateChannelAvailableMessages
- type UpdateChannelMessageForwards
- type UpdateChannelMessageViews
- type UpdateChannelParticipant
- type UpdateChannelReadMessagesContents
- type UpdateChannelTooLong
- type UpdateChannelUserTyping
- type UpdateChannelViewForumAsMessages
- type UpdateChannelWebPage
- type UpdateChat
- type UpdateChatDefaultBannedRights
- type UpdateChatParticipant
- type UpdateChatParticipantAdd
- type UpdateChatParticipantAdmin
- type UpdateChatParticipantDelete
- type UpdateChatParticipants
- type UpdateChatUserTyping
- type UpdateConfig
- type UpdateContactsReset
- type UpdateDcOptions
- type UpdateDeleteChannelMessages
- type UpdateDeleteGroupCallMessages
- type UpdateDeleteMessages
- type UpdateDeleteQuickReply
- type UpdateDeleteQuickReplyMessages
- type UpdateDeleteScheduledMessages
- type UpdateDialogFilter
- type UpdateDialogFilterOrder
- type UpdateDialogFilters
- type UpdateDialogPinned
- type UpdateDialogUnreadMark
- type UpdateDispatcher
- func (d *UpdateDispatcher) GetChannelPts(channelID int64) int32
- func (d *UpdateDispatcher) GetDate() int32
- func (d *UpdateDispatcher) GetPts() int32
- func (d *UpdateDispatcher) GetQts() int32
- func (d *UpdateDispatcher) GetSeq() int32
- func (d *UpdateDispatcher) SetChannelPts(channelID int64, pts int32)
- func (d *UpdateDispatcher) SetDate(date int32)
- func (d *UpdateDispatcher) SetPts(pts int32)
- func (d *UpdateDispatcher) SetQts(qts int32)
- func (d *UpdateDispatcher) SetSeq(seq int32)
- func (d *UpdateDispatcher) TryMarkUpdateProcessed(updateID int64) bool
- func (u *UpdateDispatcher) UpdateLastUpdateTime()
- type UpdateDraftMessage
- type UpdateEditChannelMessage
- type UpdateEditMessage
- type UpdateEncryptedChatTyping
- type UpdateEncryptedMessagesRead
- type UpdateEncryption
- type UpdateFavedStickers
- type UpdateFolderPeers
- type UpdateGeoLiveViewed
- type UpdateGroupCall
- type UpdateGroupCallChainBlocks
- type UpdateGroupCallConnection
- type UpdateGroupCallEncryptedMessage
- type UpdateGroupCallMessage
- type UpdateGroupCallParticipants
- type UpdateInlineBotCallbackQuery
- type UpdateLangPack
- type UpdateLangPackTooLong
- type UpdateLoginToken
- type UpdateMessageExtendedMedia
- type UpdateMessageID
- type UpdateMessagePoll
- type UpdateMessagePollVote
- type UpdateMessageReactions
- type UpdateMonoForumNoPaidException
- type UpdateMoveStickerSetToTop
- type UpdateNewAuthorization
- type UpdateNewChannelMessage
- type UpdateNewEncryptedMessage
- type UpdateNewMessage
- type UpdateNewQuickReply
- type UpdateNewScheduledMessage
- type UpdateNewStickerSet
- type UpdateNewStoryReaction
- type UpdateNotifySettings
- type UpdatePaidReactionPrivacy
- type UpdatePeerBlocked
- type UpdatePeerHistoryTtl
- type UpdatePeerLocated
- type UpdatePeerSettings
- type UpdatePeerWallpaper
- type UpdatePendingJoinRequests
- type UpdatePhoneCall
- type UpdatePhoneCallSignalingData
- type UpdatePinnedChannelMessages
- type UpdatePinnedDialogs
- type UpdatePinnedForumTopic
- type UpdatePinnedForumTopics
- type UpdatePinnedMessages
- type UpdatePinnedSavedDialogs
- type UpdatePrivacy
- type UpdatePtsChanged
- type UpdateQuickReplies
- type UpdateQuickReplyMessage
- type UpdateReadChannelDiscussionInbox
- type UpdateReadChannelDiscussionOutbox
- type UpdateReadChannelInbox
- type UpdateReadChannelOutbox
- type UpdateReadFeaturedEmojiStickers
- type UpdateReadFeaturedStickers
- type UpdateReadHistoryInbox
- type UpdateReadHistoryOutbox
- type UpdateReadMessagesContents
- type UpdateReadMonoForumInbox
- type UpdateReadMonoForumOutbox
- type UpdateReadStories
- type UpdateRecentEmojiStatuses
- type UpdateRecentReactions
- type UpdateRecentStickers
- type UpdateSavedDialogPinned
- type UpdateSavedGifs
- type UpdateSavedReactionTags
- type UpdateSavedRingtones
- type UpdateSentPhoneCode
- type UpdateSentStoryReaction
- type UpdateServiceNotification
- type UpdateShort
- type UpdateShortChatMessage
- type UpdateShortMessage
- type UpdateShortSentMessage
- type UpdateSmsJob
- type UpdateStarGiftAuctionState
- type UpdateStarGiftAuctionUserState
- type UpdateStarsBalance
- type UpdateStarsRevenueStatus
- type UpdateState
- type UpdateStickerSets
- type UpdateStickerSetsOrder
- type UpdateStoriesStealthMode
- type UpdateStory
- type UpdateStoryID
- type UpdateTheme
- type UpdateTranscribedAudio
- type UpdateUser
- type UpdateUserEmojiStatus
- type UpdateUserName
- type UpdateUserPhone
- type UpdateUserStatus
- type UpdateUserTyping
- type UpdateWebPage
- type UpdateWebViewResultSent
- type Updates
- type UpdatesChannelDifference
- type UpdatesChannelDifferenceEmpty
- type UpdatesChannelDifferenceObj
- type UpdatesChannelDifferenceTooLong
- type UpdatesCombined
- type UpdatesDifference
- type UpdatesDifferenceEmpty
- type UpdatesDifferenceObj
- type UpdatesDifferenceSlice
- type UpdatesDifferenceTooLong
- type UpdatesGetChannelDifferenceParams
- type UpdatesGetDifferenceParams
- type UpdatesGetStateParams
- type UpdatesObj
- type UpdatesState
- type UpdatesTooLong
- type UploadCdnFile
- type UploadCdnFileObj
- type UploadCdnFileReuploadNeeded
- type UploadFile
- type UploadFileCdnRedirect
- type UploadFileObj
- type UploadGetCdnFileHashesParams
- type UploadGetCdnFileParams
- type UploadGetFileHashesParams
- type UploadGetFileParams
- type UploadGetWebFileParams
- type UploadOptions
- type UploadReuploadCdnFileParams
- type UploadSaveBigFilePartParams
- type UploadSaveFilePartParams
- type UploadWebFile
- type User
- type UserEmpty
- type UserFull
- type UserObj
- type UserPhoto
- type UserProfilePhoto
- type UserProfilePhotoEmpty
- type UserProfilePhotoObj
- type UserStatus
- type UserStatusEmpty
- type UserStatusLastMonth
- type UserStatusLastWeek
- type UserStatusOffline
- type UserStatusOnline
- type UserStatusRecently
- type Username
- type UsersGetFullUserParams
- type UsersGetRequirementsToContactParams
- type UsersGetSavedMusicByIDParams
- type UsersGetSavedMusicParams
- type UsersGetUsersParams
- type UsersSavedMusic
- type UsersSavedMusicNotModified
- type UsersSavedMusicObj
- type UsersSetSecureValueErrorsParams
- type UsersSuggestBirthdayParams
- type UsersUserFull
- type UsersUsers
- type UsersUsersObj
- type UsersUsersSlice
- type VideoSize
- type VideoSizeEmojiMarkup
- type VideoSizeObj
- type VideoSizeStickerMarkup
- type WallPaper
- type WallPaperNoFile
- type WallPaperObj
- type WallPaperSettings
- type WebAuthorization
- type WebDocument
- type WebDocumentNoProxy
- type WebDocumentObj
- type WebPage
- type WebPageAttribute
- type WebPageAttributeStarGiftAuction
- type WebPageAttributeStarGiftCollection
- type WebPageAttributeStickerSet
- type WebPageAttributeStory
- type WebPageAttributeTheme
- type WebPageAttributeUniqueStarGift
- type WebPageEmpty
- type WebPageNotModified
- type WebPageObj
- type WebPagePending
- type WebViewMessageSent
- type WebViewResultURL
- type WorkerPool
- type WrongPasswordCallback
Constants ¶
const ( Admin = "admin" Creator = "creator" Member = "member" Restricted = "restricted" Left = "left" Kicked = "kicked" )
const ( ApiVersion = 220 Version = "v1.7.0" ModeAbridged = "modeAbridged" ModeFull = "modeFull" ModeIntermediate = "modeIntermediate" ModePaddedIntermediate = "modePaddedIntermediate" MarkDown string = "Markdown" HTML string = "HTML" EntityUser string = "user" EntityChat string = "chat" EntityChannel string = "channel" EntityUnknown string = "unknown" OnNewMessage = "OnNewMessage" OnEditMessage = "OnEditMessage" OnChatAction = "OnChatAction" OnInlineQuery = "OnInlineQuery" OnCallbackQuery = "OnCallbackQuery" OnInlineCallbackQuery = "OnInlineCallbackQuery" OnChosenInlineResult = "OnChosenInlineResult" OnDeleteMessage = "OnDeleteMessage" OneTimeMediaTTL = 2147483647 )
const ( LogTrace = TraceLevel LogDebug = DebugLevel LogInfo = InfoLevel LogWarn = WarnLevel LogError = ErrorLevel LogFatal = FatalLevel LogPanic = PanicLevel LogNone = NoLevel LogDisable = NoLevel )
const ( ConversationGroup = -1 DefaultGroup = 0 )
const (
// the initial data center to connect to, before authentication
DefaultDataCenter = 4
)
Variables ¶
var ( UsernameRe = regexp.MustCompile(`(?i)(?:@|(?:https?:\/\/)?(?:www\.)?(?:telegram\.(?:me|dog)|t\.me)\/)([\w\d_]+)`) TgJoinRe = regexp.MustCompile(`^(?:https?://)?(?:www\.)?t(?:elegram)?\.(?:org|me|dog)/(?:joinchat/|\+)([\w-]+)$`) Actions = map[string]SendMessageAction{ "typing": &SendMessageTypingAction{}, "upload_photo": &SendMessageUploadPhotoAction{}, "record_video": &SendMessageRecordVideoAction{}, "upload_video": &SendMessageUploadVideoAction{}, "record_audio": &SendMessageRecordAudioAction{}, "upload_audio": &SendMessageUploadAudioAction{}, "upload_document": &SendMessageUploadDocumentAction{}, "game": &SendMessageGamePlayAction{}, "cancel": &SendMessageCancelAction{}, "round_video": &SendMessageUploadRoundAction{}, "call": &SpeakingInGroupCallAction{}, "record_round": &SendMessageRecordRoundAction{}, "history_import": &SendMessageHistoryImportAction{}, "geo": &SendMessageGeoLocationAction{}, "choose_contact": &SendMessageChooseContactAction{}, "choose_sticker": &SendMessageChooseStickerAction{}, "emoji": &SendMessageEmojiInteraction{}, "emoji_seen": &SendMessageEmojiInteractionSeen{}, } )
var ( ErrConversationTimeout = errors.New("conversation timeout") ErrConversationClosed = errors.New("conversation closed") ErrConversationAborted = errors.New("conversation aborted by user") ErrValidationFailed = errors.New("validation failed after max retries") )
var ( ErrFFmpegNotFound = errors.New("ffmpeg not found in PATH") ErrStreamPlaying = errors.New("stream already playing") ErrStreamNotPaused = errors.New("stream not paused") ErrNoRTMPURL = errors.New("RTMP URL not set, call FetchRTMPURL() first") ErrNoInputSource = errors.New("no input source available") ErrFileNotFound = errors.New("input file not found") )
var ( IsPrivate = Filter{/* contains filtered or unexported fields */} IsGroup = Filter{/* contains filtered or unexported fields */} IsChannel = Filter{/* contains filtered or unexported fields */} IsMedia = Filter{/* contains filtered or unexported fields */} IsCommand = Filter{/* contains filtered or unexported fields */} IsReply = Filter{/* contains filtered or unexported fields */} IsForward = Filter{/* contains filtered or unexported fields */} IsMention = Filter{/* contains filtered or unexported fields */} IsOutgoing = Filter{/* contains filtered or unexported fields */} IsIncoming = Filter{/* contains filtered or unexported fields */} IsEdited = Filter{/* contains filtered or unexported fields */} IsText = Filter{/* contains filtered or unexported fields */} IsPhoto = Filter{/* contains filtered or unexported fields */} IsVideo = Filter{/* contains filtered or unexported fields */} IsAudio = Filter{/* contains filtered or unexported fields */} IsVoice = Filter{/* contains filtered or unexported fields */} IsBot = Filter{/* contains filtered or unexported fields */} )
var ( FilterPrivate = IsPrivate FilterGroup = IsGroup FilterChannel = IsChannel FilterMedia = IsMedia FilterCommand = IsCommand FilterReply = IsReply FilterForward = IsForward FilterFromBot = IsBot FilterMention = IsMention FilterOutgoing = IsOutgoing FilterIncoming = IsIncoming FilterEdited = IsEdited FilterPhoto = IsPhoto FilterVideo = IsVideo FilterDocument = Filter{/* contains filtered or unexported fields */} FilterAudio = IsAudio FilterSticker = Filter{/* contains filtered or unexported fields */} FilterAnimation = Filter{/* contains filtered or unexported fields */} FilterVoice = IsVoice FilterVideoNote = Filter{/* contains filtered or unexported fields */} FilterContact = Filter{/* contains filtered or unexported fields */} FilterLocation = Filter{/* contains filtered or unexported fields */} FilterVenue = Filter{/* contains filtered or unexported fields */} FilterPoll = Filter{/* contains filtered or unexported fields */} FilterText = IsText )
var ( OnMessage ev = "message" OnCommand ev = "command" OnCommandShort ev = "cmd" OnAction ev = "action" OnEdit ev = "edit" OnDelete ev = "delete" OnAlbum ev = "album" OnInline ev = "inline" OnCallback ev = "callback" OnInlineCallback ev = "inlinecallback" OnChosenInline ev = "choseninline" OnParticipant ev = "participant" OnJoinRequest ev = "joinrequest" OnRaw ev = "raw" )
var Button = ButtonBuilder{}
var ErrEndGroup = errors.New("[EndGroup] end of handler propagation")
var ErrStopIteration = errors.New("stop iteration")
Functions ¶
func ComputeDigest ¶
func ComputeDigest(algo *PasswordKdfAlgoSHA256SHA256Pbkdf2Hmacsha512Iter100000SHA256ModPow, password string) []byte
func DefaultCodeCallback ¶ added in v1.6.9
func DefaultPasswordCallback ¶ added in v1.6.9
func DefaultWrongPasswordCallback ¶ added in v1.6.9
func ExpectDocument ¶ added in v1.6.10
func ExpectDocument() func(*ConversationStep)
func ExpectMedia ¶ added in v1.6.10
func ExpectMedia() func(*ConversationStep)
func ExpectPhoto ¶ added in v1.6.10
func ExpectPhoto() func(*ConversationStep)
Convenience helpers for common media types
func ExpectSticker ¶ added in v1.6.10
func ExpectSticker() func(*ConversationStep)
func ExpectVideo ¶ added in v1.6.10
func ExpectVideo() func(*ConversationStep)
func ExpectVoice ¶ added in v1.6.10
func ExpectVoice() func(*ConversationStep)
func FileExists ¶
func GenRandInt ¶
func GenRandInt() int64
func GenerateRandomLong ¶
func GenerateRandomLong() int64
func GenerateWaveformWithFFmpeg ¶ added in v1.6.3
func GetFileName ¶
Func to get the file name of Media
Accepted types: *MessageMedia *Document *Photo
func GetFloodWait ¶ added in v1.5.5
func GetInputCheckPasswordAlgo ¶
func GetInputCheckPasswordAlgo(password string, srpB []byte, mp *ige.ModPow) (*ige.SrpAnswer, error)
GetInputCheckPassword returns the input check password for the given password and salt. all the internal functions are in internal/ige, send pr if you want to use them directly https://core.telegram.org/api/srp#checking-the-password-with-srp
func HTMLToMarkdownV2 ¶
func HandleIncomingUpdates ¶
HandleIncomingUpdates processes incoming updates and dispatches them to the appropriate handlers.
func InsertTagsIntoText ¶ added in v1.5.6
func IsFfmpegInstalled ¶
func IsFfmpegInstalled() bool
func MarshalWithTypeName ¶ added in v1.6.9
func MatchError ¶ added in v1.5.5
func MediaDownloadProgress ¶ added in v1.5.6
func MediaDownloadProgress(editMsg *NewMessage, inline ...*InputBotInlineMessageID) func(*ProgressInfo)
MediaDownloadProgress creates a progress callback that edits a telegram message with download progress
func PackBotFileID ¶
PackBotFileID packs a file object to a file-id, including file size (if available)
func PathIsWritable ¶
func ResolveDataCenterIP ¶ added in v1.4.2
func SizetoHuman ¶ added in v1.5.6
func ToMarkdown ¶ added in v1.5.6
func UnpackBotFileID ¶
UnpackBotFileID unpacks a file id to its components, including file size if present
func WithAskFunc ¶ added in v1.6.10
func WithAskFunc(fn func(*Conversation, string, ...*SendOptions) (*NewMessage, error)) func(*ConversationStep)
func WithCondition ¶ added in v1.6.10
func WithCondition(fn func(map[string]*NewMessage) bool) func(*ConversationStep)
WithCondition adds a condition to determine if step should be asked
func WithMaxRetries ¶ added in v1.6.9
func WithMaxRetries(n int) func(*ConversationStep)
func WithMediaType ¶ added in v1.6.10
func WithMediaType(mediaType string) func(*ConversationStep)
func WithRetryMessage ¶ added in v1.6.9
func WithRetryMessage(msg string) func(*ConversationStep)
func WithSkip ¶ added in v1.6.10
func WithSkip(skipWords ...string) func(*ConversationStep)
WithSkip makes a step skippable
func WithTransform ¶ added in v1.6.10
func WithTransform(fn func(*NewMessage) any) func(*ConversationStep)
WithTransform adds a transformation function for the answer
func WithValidator ¶ added in v1.6.9
func WithValidator(fn func(*NewMessage) bool) func(*ConversationStep)
Types ¶
type AccountAcceptAuthorizationParams ¶
type AccountAcceptAuthorizationParams struct {
BotID int64
Scope string
PublicKey string
ValueHashes []*SecureValueHash
Credentials *SecureCredentialsEncrypted
}
func (*AccountAcceptAuthorizationParams) CRC ¶
func (*AccountAcceptAuthorizationParams) CRC() uint32
type AccountAuthorizationForm ¶
type AccountAuthorizationForm struct {
RequiredTypes []SecureRequiredType
Values []*SecureValue
Errors []SecureValueError
Users []User
PrivacyPolicyURL string `tl:"flag:0"`
}
Telegram Passport authorization form
func (*AccountAuthorizationForm) CRC ¶
func (*AccountAuthorizationForm) CRC() uint32
func (*AccountAuthorizationForm) FlagIndex ¶
func (*AccountAuthorizationForm) FlagIndex() int
type AccountAuthorizations ¶
type AccountAuthorizations struct {
AuthorizationTtlDays int32
Authorizations []*Authorization
}
Logged-in sessions
func (*AccountAuthorizations) CRC ¶
func (*AccountAuthorizations) CRC() uint32
type AccountAutoDownloadSettings ¶
type AccountAutoDownloadSettings struct {
Low *AutoDownloadSettings
Medium *AutoDownloadSettings
High *AutoDownloadSettings
}
Media autodownload settings
func (*AccountAutoDownloadSettings) CRC ¶
func (*AccountAutoDownloadSettings) CRC() uint32
type AccountAutoSaveSettings ¶
type AccountAutoSaveSettings struct {
UsersSettings *AutoSaveSettings
ChatsSettings *AutoSaveSettings
BroadcastsSettings *AutoSaveSettings
Exceptions []*AutoSaveException
Chats []Chat
Users []User
}
Contains media autosave settings
func (*AccountAutoSaveSettings) CRC ¶
func (*AccountAutoSaveSettings) CRC() uint32
type AccountBusinessChatLinks ¶
type AccountBusinessChatLinks struct {
Links []*BusinessChatLink
Chats []Chat
Users []User
}
Contains info about business chat deep links created by the current account.
func (*AccountBusinessChatLinks) CRC ¶
func (*AccountBusinessChatLinks) CRC() uint32
type AccountCancelPasswordEmailParams ¶
type AccountCancelPasswordEmailParams struct{}
func (*AccountCancelPasswordEmailParams) CRC ¶
func (*AccountCancelPasswordEmailParams) CRC() uint32
type AccountChangeAuthorizationSettingsParams ¶
type AccountChangeAuthorizationSettingsParams struct {
Confirmed bool `tl:"flag:3,encoded_in_bitflags"`
Hash int64
EncryptedRequestsDisabled bool `tl:"flag:0"`
CallRequestsDisabled bool `tl:"flag:1"`
}
func (*AccountChangeAuthorizationSettingsParams) CRC ¶
func (*AccountChangeAuthorizationSettingsParams) CRC() uint32
func (*AccountChangeAuthorizationSettingsParams) FlagIndex ¶
func (*AccountChangeAuthorizationSettingsParams) FlagIndex() int
type AccountChangePhoneParams ¶
func (*AccountChangePhoneParams) CRC ¶
func (*AccountChangePhoneParams) CRC() uint32
type AccountChatThemes ¶ added in v1.6.3
type AccountChatThemesNotModified ¶ added in v1.6.7
type AccountChatThemesNotModified struct{}
The available chat themes were not modified
func (*AccountChatThemesNotModified) CRC ¶ added in v1.6.7
func (*AccountChatThemesNotModified) CRC() uint32
func (*AccountChatThemesNotModified) ImplementsAccountChatThemes ¶ added in v1.6.7
func (*AccountChatThemesNotModified) ImplementsAccountChatThemes()
type AccountChatThemesObj ¶ added in v1.6.7
type AccountChatThemesObj struct {
Hash int64 // Hash to pass to the method that returned this constructor, to avoid refetching the result if it hasn't changed.
Themes []ChatTheme // Themes.
Chats []Chat // Chats mentioned in the `themes` field.
Users []User // Users mentioned in the `themes` field.
NextOffset string `tl:"flag:0"` // Next offset for pagination.
}
Available chat themes
func (*AccountChatThemesObj) CRC ¶ added in v1.6.7
func (*AccountChatThemesObj) CRC() uint32
func (*AccountChatThemesObj) FlagIndex ¶ added in v1.6.7
func (*AccountChatThemesObj) FlagIndex() int
func (*AccountChatThemesObj) ImplementsAccountChatThemes ¶ added in v1.6.7
func (*AccountChatThemesObj) ImplementsAccountChatThemes()
type AccountCheckUsernameParams ¶
type AccountCheckUsernameParams struct {
Username string
}
func (*AccountCheckUsernameParams) CRC ¶
func (*AccountCheckUsernameParams) CRC() uint32
type AccountClearRecentEmojiStatusesParams ¶
type AccountClearRecentEmojiStatusesParams struct{}
func (*AccountClearRecentEmojiStatusesParams) CRC ¶
func (*AccountClearRecentEmojiStatusesParams) CRC() uint32
type AccountConfirmPasswordEmailParams ¶
type AccountConfirmPasswordEmailParams struct {
Code string
}
func (*AccountConfirmPasswordEmailParams) CRC ¶
func (*AccountConfirmPasswordEmailParams) CRC() uint32
type AccountConfirmPhoneParams ¶
func (*AccountConfirmPhoneParams) CRC ¶
func (*AccountConfirmPhoneParams) CRC() uint32
type AccountConnectedBots ¶
type AccountConnectedBots struct {
ConnectedBots []*ConnectedBot
Users []User
}
Info about currently connected business bots.
func (*AccountConnectedBots) CRC ¶
func (*AccountConnectedBots) CRC() uint32
type AccountContentSettings ¶
type AccountContentSettings struct {
SensitiveEnabled bool `tl:"flag:0,encoded_in_bitflags"`
SensitiveCanChange bool `tl:"flag:1,encoded_in_bitflags"`
}
Sensitive content settings
func (*AccountContentSettings) CRC ¶
func (*AccountContentSettings) CRC() uint32
func (*AccountContentSettings) FlagIndex ¶
func (*AccountContentSettings) FlagIndex() int
type AccountCreateBusinessChatLinkParams ¶
type AccountCreateBusinessChatLinkParams struct {
Link *InputBusinessChatLink
}
func (*AccountCreateBusinessChatLinkParams) CRC ¶
func (*AccountCreateBusinessChatLinkParams) CRC() uint32
type AccountCreateThemeParams ¶
type AccountCreateThemeParams struct {
Slug string
Title string
Document InputDocument `tl:"flag:2"`
Settings []*InputThemeSettings `tl:"flag:3"`
}
func (*AccountCreateThemeParams) CRC ¶
func (*AccountCreateThemeParams) CRC() uint32
func (*AccountCreateThemeParams) FlagIndex ¶
func (*AccountCreateThemeParams) FlagIndex() int
type AccountDaysTtl ¶
type AccountDaysTtl struct {
Days int32
}
Time to live in days of the current account
func (*AccountDaysTtl) CRC ¶
func (*AccountDaysTtl) CRC() uint32
type AccountDeclinePasswordResetParams ¶
type AccountDeclinePasswordResetParams struct{}
func (*AccountDeclinePasswordResetParams) CRC ¶
func (*AccountDeclinePasswordResetParams) CRC() uint32
type AccountDeleteAccountParams ¶
type AccountDeleteAccountParams struct {
Reason string
Password InputCheckPasswordSRP `tl:"flag:0"`
}
func (*AccountDeleteAccountParams) CRC ¶
func (*AccountDeleteAccountParams) CRC() uint32
func (*AccountDeleteAccountParams) FlagIndex ¶
func (*AccountDeleteAccountParams) FlagIndex() int
type AccountDeleteAutoSaveExceptionsParams ¶
type AccountDeleteAutoSaveExceptionsParams struct{}
func (*AccountDeleteAutoSaveExceptionsParams) CRC ¶
func (*AccountDeleteAutoSaveExceptionsParams) CRC() uint32
type AccountDeleteBusinessChatLinkParams ¶
type AccountDeleteBusinessChatLinkParams struct {
Slug string
}
func (*AccountDeleteBusinessChatLinkParams) CRC ¶
func (*AccountDeleteBusinessChatLinkParams) CRC() uint32
type AccountDeletePasskeyParams ¶ added in v1.6.10
type AccountDeletePasskeyParams struct {
ID string
}
func (*AccountDeletePasskeyParams) CRC ¶ added in v1.6.10
func (*AccountDeletePasskeyParams) CRC() uint32
type AccountDeleteSecureValueParams ¶
type AccountDeleteSecureValueParams struct {
Types []SecureValueType
}
func (*AccountDeleteSecureValueParams) CRC ¶
func (*AccountDeleteSecureValueParams) CRC() uint32
type AccountDisablePeerConnectedBotParams ¶
type AccountDisablePeerConnectedBotParams struct {
Peer InputPeer
}
func (*AccountDisablePeerConnectedBotParams) CRC ¶
func (*AccountDisablePeerConnectedBotParams) CRC() uint32
type AccountEditBusinessChatLinkParams ¶
type AccountEditBusinessChatLinkParams struct {
Slug string
Link *InputBusinessChatLink
}
func (*AccountEditBusinessChatLinkParams) CRC ¶
func (*AccountEditBusinessChatLinkParams) CRC() uint32
type AccountEmailVerified ¶
type AccountEmailVerifiedLogin ¶
type AccountEmailVerifiedLogin struct {
Email string // The verified email address.
SentCode AuthSentCode // Info about the sent login code
}
The email was verified correctly, and a login code was just sent to it.
func (*AccountEmailVerifiedLogin) CRC ¶
func (*AccountEmailVerifiedLogin) CRC() uint32
func (*AccountEmailVerifiedLogin) ImplementsAccountEmailVerified ¶
func (*AccountEmailVerifiedLogin) ImplementsAccountEmailVerified()
type AccountEmailVerifiedObj ¶
type AccountEmailVerifiedObj struct {
Email string // The verified email address.
}
The email was verified correctly.
func (*AccountEmailVerifiedObj) CRC ¶
func (*AccountEmailVerifiedObj) CRC() uint32
func (*AccountEmailVerifiedObj) ImplementsAccountEmailVerified ¶
func (*AccountEmailVerifiedObj) ImplementsAccountEmailVerified()
type AccountEmojiStatuses ¶
type AccountEmojiStatusesNotModified ¶
type AccountEmojiStatusesNotModified struct{}
The server-side list of emoji statuses hasn't changed
func (*AccountEmojiStatusesNotModified) CRC ¶
func (*AccountEmojiStatusesNotModified) CRC() uint32
func (*AccountEmojiStatusesNotModified) ImplementsAccountEmojiStatuses ¶
func (*AccountEmojiStatusesNotModified) ImplementsAccountEmojiStatuses()
type AccountEmojiStatusesObj ¶
type AccountEmojiStatusesObj struct {
Hash int64 // Hash used for caching, for more info click here
Statuses []EmojiStatus // Emoji statuses
}
A list of emoji statuses
func (*AccountEmojiStatusesObj) CRC ¶
func (*AccountEmojiStatusesObj) CRC() uint32
func (*AccountEmojiStatusesObj) ImplementsAccountEmojiStatuses ¶
func (*AccountEmojiStatusesObj) ImplementsAccountEmojiStatuses()
type AccountFinishTakeoutSessionParams ¶
type AccountFinishTakeoutSessionParams struct {
Success bool `tl:"flag:0,encoded_in_bitflags"`
}
func (*AccountFinishTakeoutSessionParams) CRC ¶
func (*AccountFinishTakeoutSessionParams) CRC() uint32
func (*AccountFinishTakeoutSessionParams) FlagIndex ¶
func (*AccountFinishTakeoutSessionParams) FlagIndex() int
type AccountGetAccountTtlParams ¶
type AccountGetAccountTtlParams struct{}
func (*AccountGetAccountTtlParams) CRC ¶
func (*AccountGetAccountTtlParams) CRC() uint32
type AccountGetAllSecureValuesParams ¶
type AccountGetAllSecureValuesParams struct{}
func (*AccountGetAllSecureValuesParams) CRC ¶
func (*AccountGetAllSecureValuesParams) CRC() uint32
type AccountGetAuthorizationFormParams ¶
func (*AccountGetAuthorizationFormParams) CRC ¶
func (*AccountGetAuthorizationFormParams) CRC() uint32
type AccountGetAuthorizationsParams ¶
type AccountGetAuthorizationsParams struct{}
func (*AccountGetAuthorizationsParams) CRC ¶
func (*AccountGetAuthorizationsParams) CRC() uint32
type AccountGetAutoDownloadSettingsParams ¶
type AccountGetAutoDownloadSettingsParams struct{}
func (*AccountGetAutoDownloadSettingsParams) CRC ¶
func (*AccountGetAutoDownloadSettingsParams) CRC() uint32
type AccountGetAutoSaveSettingsParams ¶
type AccountGetAutoSaveSettingsParams struct{}
func (*AccountGetAutoSaveSettingsParams) CRC ¶
func (*AccountGetAutoSaveSettingsParams) CRC() uint32
type AccountGetBotBusinessConnectionParams ¶
type AccountGetBotBusinessConnectionParams struct {
ConnectionID string
}
func (*AccountGetBotBusinessConnectionParams) CRC ¶
func (*AccountGetBotBusinessConnectionParams) CRC() uint32
type AccountGetBusinessChatLinksParams ¶
type AccountGetBusinessChatLinksParams struct{}
func (*AccountGetBusinessChatLinksParams) CRC ¶
func (*AccountGetBusinessChatLinksParams) CRC() uint32
type AccountGetChannelDefaultEmojiStatusesParams ¶
type AccountGetChannelDefaultEmojiStatusesParams struct {
Hash int64
}
func (*AccountGetChannelDefaultEmojiStatusesParams) CRC ¶
func (*AccountGetChannelDefaultEmojiStatusesParams) CRC() uint32
type AccountGetChannelRestrictedStatusEmojisParams ¶
type AccountGetChannelRestrictedStatusEmojisParams struct {
Hash int64
}
func (*AccountGetChannelRestrictedStatusEmojisParams) CRC ¶
func (*AccountGetChannelRestrictedStatusEmojisParams) CRC() uint32
type AccountGetChatThemesParams ¶
type AccountGetChatThemesParams struct {
Hash int64
}
func (*AccountGetChatThemesParams) CRC ¶
func (*AccountGetChatThemesParams) CRC() uint32
type AccountGetCollectibleEmojiStatusesParams ¶ added in v1.5.6
type AccountGetCollectibleEmojiStatusesParams struct {
Hash int64
}
func (*AccountGetCollectibleEmojiStatusesParams) CRC ¶ added in v1.5.6
func (*AccountGetCollectibleEmojiStatusesParams) CRC() uint32
type AccountGetConnectedBotsParams ¶
type AccountGetConnectedBotsParams struct{}
func (*AccountGetConnectedBotsParams) CRC ¶
func (*AccountGetConnectedBotsParams) CRC() uint32
type AccountGetContactSignUpNotificationParams ¶
type AccountGetContactSignUpNotificationParams struct{}
func (*AccountGetContactSignUpNotificationParams) CRC ¶
func (*AccountGetContactSignUpNotificationParams) CRC() uint32
type AccountGetContentSettingsParams ¶
type AccountGetContentSettingsParams struct{}
func (*AccountGetContentSettingsParams) CRC ¶
func (*AccountGetContentSettingsParams) CRC() uint32
type AccountGetDefaultBackgroundEmojisParams ¶
type AccountGetDefaultBackgroundEmojisParams struct {
Hash int64
}
func (*AccountGetDefaultBackgroundEmojisParams) CRC ¶
func (*AccountGetDefaultBackgroundEmojisParams) CRC() uint32
type AccountGetDefaultEmojiStatusesParams ¶
type AccountGetDefaultEmojiStatusesParams struct {
Hash int64
}
func (*AccountGetDefaultEmojiStatusesParams) CRC ¶
func (*AccountGetDefaultEmojiStatusesParams) CRC() uint32
type AccountGetDefaultGroupPhotoEmojisParams ¶
type AccountGetDefaultGroupPhotoEmojisParams struct {
Hash int64
}
func (*AccountGetDefaultGroupPhotoEmojisParams) CRC ¶
func (*AccountGetDefaultGroupPhotoEmojisParams) CRC() uint32
type AccountGetDefaultProfilePhotoEmojisParams ¶
type AccountGetDefaultProfilePhotoEmojisParams struct {
Hash int64
}
func (*AccountGetDefaultProfilePhotoEmojisParams) CRC ¶
func (*AccountGetDefaultProfilePhotoEmojisParams) CRC() uint32
type AccountGetGlobalPrivacySettingsParams ¶
type AccountGetGlobalPrivacySettingsParams struct{}
func (*AccountGetGlobalPrivacySettingsParams) CRC ¶
func (*AccountGetGlobalPrivacySettingsParams) CRC() uint32
type AccountGetMultiWallPapersParams ¶
type AccountGetMultiWallPapersParams struct {
Wallpapers []InputWallPaper
}
func (*AccountGetMultiWallPapersParams) CRC ¶
func (*AccountGetMultiWallPapersParams) CRC() uint32
type AccountGetNotifyExceptionsParams ¶
type AccountGetNotifyExceptionsParams struct {
CompareSound bool `tl:"flag:1,encoded_in_bitflags"`
CompareStories bool `tl:"flag:2,encoded_in_bitflags"`
Peer InputNotifyPeer `tl:"flag:0"`
}
func (*AccountGetNotifyExceptionsParams) CRC ¶
func (*AccountGetNotifyExceptionsParams) CRC() uint32
func (*AccountGetNotifyExceptionsParams) FlagIndex ¶
func (*AccountGetNotifyExceptionsParams) FlagIndex() int
type AccountGetNotifySettingsParams ¶
type AccountGetNotifySettingsParams struct {
Peer InputNotifyPeer
}
func (*AccountGetNotifySettingsParams) CRC ¶
func (*AccountGetNotifySettingsParams) CRC() uint32
type AccountGetPaidMessagesRevenueParams ¶ added in v1.6.0
type AccountGetPaidMessagesRevenueParams struct {
ParentPeer InputPeer `tl:"flag:0"`
UserID InputUser
}
func (*AccountGetPaidMessagesRevenueParams) CRC ¶ added in v1.6.0
func (*AccountGetPaidMessagesRevenueParams) CRC() uint32
func (*AccountGetPaidMessagesRevenueParams) FlagIndex ¶ added in v1.6.1
func (*AccountGetPaidMessagesRevenueParams) FlagIndex() int
type AccountGetPasskeysParams ¶ added in v1.6.10
type AccountGetPasskeysParams struct{}
func (*AccountGetPasskeysParams) CRC ¶ added in v1.6.10
func (*AccountGetPasskeysParams) CRC() uint32
type AccountGetPasswordParams ¶
type AccountGetPasswordParams struct{}
func (*AccountGetPasswordParams) CRC ¶
func (*AccountGetPasswordParams) CRC() uint32
type AccountGetPasswordSettingsParams ¶
type AccountGetPasswordSettingsParams struct {
Password InputCheckPasswordSRP
}
func (*AccountGetPasswordSettingsParams) CRC ¶
func (*AccountGetPasswordSettingsParams) CRC() uint32
type AccountGetPrivacyParams ¶
type AccountGetPrivacyParams struct {
Key InputPrivacyKey
}
func (*AccountGetPrivacyParams) CRC ¶
func (*AccountGetPrivacyParams) CRC() uint32
type AccountGetReactionsNotifySettingsParams ¶
type AccountGetReactionsNotifySettingsParams struct{}
func (*AccountGetReactionsNotifySettingsParams) CRC ¶
func (*AccountGetReactionsNotifySettingsParams) CRC() uint32
type AccountGetRecentEmojiStatusesParams ¶
type AccountGetRecentEmojiStatusesParams struct {
Hash int64
}
func (*AccountGetRecentEmojiStatusesParams) CRC ¶
func (*AccountGetRecentEmojiStatusesParams) CRC() uint32
type AccountGetSavedMusicIdsParams ¶ added in v1.6.3
type AccountGetSavedMusicIdsParams struct {
Hash int64
}
func (*AccountGetSavedMusicIdsParams) CRC ¶ added in v1.6.3
func (*AccountGetSavedMusicIdsParams) CRC() uint32
type AccountGetSavedRingtonesParams ¶
type AccountGetSavedRingtonesParams struct {
Hash int64
}
func (*AccountGetSavedRingtonesParams) CRC ¶
func (*AccountGetSavedRingtonesParams) CRC() uint32
type AccountGetSecureValueParams ¶
type AccountGetSecureValueParams struct {
Types []SecureValueType
}
func (*AccountGetSecureValueParams) CRC ¶
func (*AccountGetSecureValueParams) CRC() uint32
type AccountGetThemeParams ¶
type AccountGetThemeParams struct {
Format string
Theme InputTheme
}
func (*AccountGetThemeParams) CRC ¶
func (*AccountGetThemeParams) CRC() uint32
type AccountGetThemesParams ¶
func (*AccountGetThemesParams) CRC ¶
func (*AccountGetThemesParams) CRC() uint32
type AccountGetTmpPasswordParams ¶
type AccountGetTmpPasswordParams struct {
Password InputCheckPasswordSRP
Period int32
}
func (*AccountGetTmpPasswordParams) CRC ¶
func (*AccountGetTmpPasswordParams) CRC() uint32
type AccountGetUniqueGiftChatThemesParams ¶ added in v1.6.3
func (*AccountGetUniqueGiftChatThemesParams) CRC ¶ added in v1.6.3
func (*AccountGetUniqueGiftChatThemesParams) CRC() uint32
type AccountGetWallPaperParams ¶
type AccountGetWallPaperParams struct {
Wallpaper InputWallPaper
}
func (*AccountGetWallPaperParams) CRC ¶
func (*AccountGetWallPaperParams) CRC() uint32
type AccountGetWallPapersParams ¶
type AccountGetWallPapersParams struct {
Hash int64
}
func (*AccountGetWallPapersParams) CRC ¶
func (*AccountGetWallPapersParams) CRC() uint32
type AccountGetWebAuthorizationsParams ¶
type AccountGetWebAuthorizationsParams struct{}
func (*AccountGetWebAuthorizationsParams) CRC ¶
func (*AccountGetWebAuthorizationsParams) CRC() uint32
type AccountInitPasskeyRegistrationParams ¶ added in v1.6.10
type AccountInitPasskeyRegistrationParams struct{}
func (*AccountInitPasskeyRegistrationParams) CRC ¶ added in v1.6.10
func (*AccountInitPasskeyRegistrationParams) CRC() uint32
type AccountInitTakeoutSessionParams ¶
type AccountInitTakeoutSessionParams struct {
Contacts bool `tl:"flag:0,encoded_in_bitflags"`
MessageUsers bool `tl:"flag:1,encoded_in_bitflags"`
MessageChats bool `tl:"flag:2,encoded_in_bitflags"`
MessageMegagroups bool `tl:"flag:3,encoded_in_bitflags"`
MessageChannels bool `tl:"flag:4,encoded_in_bitflags"`
Files bool `tl:"flag:5,encoded_in_bitflags"`
FileMaxSize int64 `tl:"flag:5"`
}
func (*AccountInitTakeoutSessionParams) CRC ¶
func (*AccountInitTakeoutSessionParams) CRC() uint32
func (*AccountInitTakeoutSessionParams) FlagIndex ¶
func (*AccountInitTakeoutSessionParams) FlagIndex() int
type AccountInstallThemeParams ¶
type AccountInstallThemeParams struct {
Dark bool `tl:"flag:0,encoded_in_bitflags"`
Theme InputTheme `tl:"flag:1"`
Format string `tl:"flag:2"`
BaseTheme BaseTheme `tl:"flag:3"`
}
func (*AccountInstallThemeParams) CRC ¶
func (*AccountInstallThemeParams) CRC() uint32
func (*AccountInstallThemeParams) FlagIndex ¶
func (*AccountInstallThemeParams) FlagIndex() int
type AccountInstallWallPaperParams ¶
type AccountInstallWallPaperParams struct {
Wallpaper InputWallPaper
Settings *WallPaperSettings
}
func (*AccountInstallWallPaperParams) CRC ¶
func (*AccountInstallWallPaperParams) CRC() uint32
type AccountInvalidateSignInCodesParams ¶
type AccountInvalidateSignInCodesParams struct {
Codes []string
}
func (*AccountInvalidateSignInCodesParams) CRC ¶
func (*AccountInvalidateSignInCodesParams) CRC() uint32
type AccountPaidMessagesRevenue ¶ added in v1.6.0
type AccountPaidMessagesRevenue struct {
StarsAmount int64
}
Total number of non-refunded Telegram Stars a user has spent on sending us messages either directly or through a channel
func (*AccountPaidMessagesRevenue) CRC ¶ added in v1.6.0
func (*AccountPaidMessagesRevenue) CRC() uint32
type AccountPasskeyRegistrationOptions ¶ added in v1.6.10
type AccountPasskeyRegistrationOptions struct {
Options *DataJson
}
func (*AccountPasskeyRegistrationOptions) CRC ¶ added in v1.6.10
func (*AccountPasskeyRegistrationOptions) CRC() uint32
type AccountPasskeys ¶ added in v1.6.10
type AccountPasskeys struct {
Passkeys []*Passkey
}
func (*AccountPasskeys) CRC ¶ added in v1.6.10
func (*AccountPasskeys) CRC() uint32
type AccountPassword ¶
type AccountPassword struct {
HasRecovery bool `tl:"flag:0,encoded_in_bitflags"`
HasSecureValues bool `tl:"flag:1,encoded_in_bitflags"`
HasPassword bool `tl:"flag:2,encoded_in_bitflags"`
CurrentAlgo PasswordKdfAlgo `tl:"flag:2"`
SRPB []byte `tl:"flag:2"`
SRPID int64 `tl:"flag:2"`
Hint string `tl:"flag:3"`
EmailUnconfirmedPattern string `tl:"flag:4"`
NewAlgo PasswordKdfAlgo
NewSecureAlgo SecurePasswordKdfAlgo
SecureRandom []byte
PendingResetDate int32 `tl:"flag:5"`
LoginEmailPattern string `tl:"flag:6"`
}
Configuration for two-factor authorization
func (*AccountPassword) CRC ¶
func (*AccountPassword) CRC() uint32
func (*AccountPassword) FlagIndex ¶
func (*AccountPassword) FlagIndex() int
type AccountPasswordInputSettings ¶
type AccountPasswordInputSettings struct {
NewAlgo PasswordKdfAlgo `tl:"flag:0"`
NewPasswordHash []byte `tl:"flag:0"`
Hint string `tl:"flag:0"`
Email string `tl:"flag:1"`
NewSecureSettings *SecureSecretSettings `tl:"flag:2"`
}
Settings for setting up a new password
func (*AccountPasswordInputSettings) CRC ¶
func (*AccountPasswordInputSettings) CRC() uint32
func (*AccountPasswordInputSettings) FlagIndex ¶
func (*AccountPasswordInputSettings) FlagIndex() int
type AccountPasswordSettings ¶
type AccountPasswordSettings struct {
Email string `tl:"flag:0"`
SecureSettings *SecureSecretSettings `tl:"flag:1"`
}
Private info associated to the password info (recovery email, telegram passport info & so on)
func (*AccountPasswordSettings) CRC ¶
func (*AccountPasswordSettings) CRC() uint32
func (*AccountPasswordSettings) FlagIndex ¶
func (*AccountPasswordSettings) FlagIndex() int
type AccountPrivacyRules ¶
type AccountPrivacyRules struct {
Rules []PrivacyRule
Chats []Chat
Users []User
}
Privacy rules
func (*AccountPrivacyRules) CRC ¶
func (*AccountPrivacyRules) CRC() uint32
type AccountRegisterDeviceParams ¶
type AccountRegisterDeviceParams struct {
NoMuted bool `tl:"flag:0,encoded_in_bitflags"`
TokenType int32
Token string
AppSandbox bool
Secret []byte
OtherUids []int64
}
func (*AccountRegisterDeviceParams) CRC ¶
func (*AccountRegisterDeviceParams) CRC() uint32
func (*AccountRegisterDeviceParams) FlagIndex ¶
func (*AccountRegisterDeviceParams) FlagIndex() int
type AccountRegisterPasskeyParams ¶ added in v1.6.10
type AccountRegisterPasskeyParams struct {
Credential *InputPasskeyCredentialPublicKey
}
func (*AccountRegisterPasskeyParams) CRC ¶ added in v1.6.10
func (*AccountRegisterPasskeyParams) CRC() uint32
type AccountReorderUsernamesParams ¶
type AccountReorderUsernamesParams struct {
Order []string
}
func (*AccountReorderUsernamesParams) CRC ¶
func (*AccountReorderUsernamesParams) CRC() uint32
type AccountReportPeerParams ¶
type AccountReportPeerParams struct {
Peer InputPeer
Reason ReportReason
Message string
}
func (*AccountReportPeerParams) CRC ¶
func (*AccountReportPeerParams) CRC() uint32
type AccountReportProfilePhotoParams ¶
type AccountReportProfilePhotoParams struct {
Peer InputPeer
PhotoID InputPhoto
Reason ReportReason
Message string
}
func (*AccountReportProfilePhotoParams) CRC ¶
func (*AccountReportProfilePhotoParams) CRC() uint32
type AccountResendPasswordEmailParams ¶
type AccountResendPasswordEmailParams struct{}
func (*AccountResendPasswordEmailParams) CRC ¶
func (*AccountResendPasswordEmailParams) CRC() uint32
type AccountResetAuthorizationParams ¶
type AccountResetAuthorizationParams struct {
Hash int64
}
func (*AccountResetAuthorizationParams) CRC ¶
func (*AccountResetAuthorizationParams) CRC() uint32
type AccountResetNotifySettingsParams ¶
type AccountResetNotifySettingsParams struct{}
func (*AccountResetNotifySettingsParams) CRC ¶
func (*AccountResetNotifySettingsParams) CRC() uint32
type AccountResetPasswordFailedWait ¶
type AccountResetPasswordFailedWait struct {
RetryDate int32 // Wait until this date before requesting another reset.
}
You recently requested a password reset that was canceled, please wait until the specified date before requesting another reset.
func (*AccountResetPasswordFailedWait) CRC ¶
func (*AccountResetPasswordFailedWait) CRC() uint32
func (*AccountResetPasswordFailedWait) ImplementsAccountResetPasswordResult ¶
func (*AccountResetPasswordFailedWait) ImplementsAccountResetPasswordResult()
type AccountResetPasswordOk ¶
type AccountResetPasswordOk struct{}
The 2FA password was reset successfully.
func (*AccountResetPasswordOk) CRC ¶
func (*AccountResetPasswordOk) CRC() uint32
func (*AccountResetPasswordOk) ImplementsAccountResetPasswordResult ¶
func (*AccountResetPasswordOk) ImplementsAccountResetPasswordResult()
type AccountResetPasswordParams ¶
type AccountResetPasswordParams struct{}
func (*AccountResetPasswordParams) CRC ¶
func (*AccountResetPasswordParams) CRC() uint32
type AccountResetPasswordRequestedWait ¶
type AccountResetPasswordRequestedWait struct {
UntilDate int32 // Wait until this date before finalizing the reset.
}
You successfully requested a password reset, please wait until the specified date before finalizing the reset.
func (*AccountResetPasswordRequestedWait) CRC ¶
func (*AccountResetPasswordRequestedWait) CRC() uint32
func (*AccountResetPasswordRequestedWait) ImplementsAccountResetPasswordResult ¶
func (*AccountResetPasswordRequestedWait) ImplementsAccountResetPasswordResult()
type AccountResetWallPapersParams ¶
type AccountResetWallPapersParams struct{}
func (*AccountResetWallPapersParams) CRC ¶
func (*AccountResetWallPapersParams) CRC() uint32
type AccountResetWebAuthorizationParams ¶
type AccountResetWebAuthorizationParams struct {
Hash int64
}
func (*AccountResetWebAuthorizationParams) CRC ¶
func (*AccountResetWebAuthorizationParams) CRC() uint32
type AccountResetWebAuthorizationsParams ¶
type AccountResetWebAuthorizationsParams struct{}
func (*AccountResetWebAuthorizationsParams) CRC ¶
func (*AccountResetWebAuthorizationsParams) CRC() uint32
type AccountResolveBusinessChatLinkParams ¶
type AccountResolveBusinessChatLinkParams struct {
Slug string
}
func (*AccountResolveBusinessChatLinkParams) CRC ¶
func (*AccountResolveBusinessChatLinkParams) CRC() uint32
type AccountResolvedBusinessChatLinks ¶
type AccountResolvedBusinessChatLinks struct {
Peer Peer
Message string
Entities []MessageEntity `tl:"flag:0"`
Chats []Chat
Users []User
}
Contains info about a single resolved business chat deep link.
func (*AccountResolvedBusinessChatLinks) CRC ¶
func (*AccountResolvedBusinessChatLinks) CRC() uint32
func (*AccountResolvedBusinessChatLinks) FlagIndex ¶
func (*AccountResolvedBusinessChatLinks) FlagIndex() int
type AccountSaveAutoDownloadSettingsParams ¶
type AccountSaveAutoDownloadSettingsParams struct {
Low bool `tl:"flag:0,encoded_in_bitflags"`
High bool `tl:"flag:1,encoded_in_bitflags"`
Settings *AutoDownloadSettings
}
func (*AccountSaveAutoDownloadSettingsParams) CRC ¶
func (*AccountSaveAutoDownloadSettingsParams) CRC() uint32
func (*AccountSaveAutoDownloadSettingsParams) FlagIndex ¶
func (*AccountSaveAutoDownloadSettingsParams) FlagIndex() int
type AccountSaveAutoSaveSettingsParams ¶
type AccountSaveAutoSaveSettingsParams struct {
Users bool `tl:"flag:0,encoded_in_bitflags"`
Chats bool `tl:"flag:1,encoded_in_bitflags"`
Broadcasts bool `tl:"flag:2,encoded_in_bitflags"`
Peer InputPeer `tl:"flag:3"`
Settings *AutoSaveSettings
}
func (*AccountSaveAutoSaveSettingsParams) CRC ¶
func (*AccountSaveAutoSaveSettingsParams) CRC() uint32
func (*AccountSaveAutoSaveSettingsParams) FlagIndex ¶
func (*AccountSaveAutoSaveSettingsParams) FlagIndex() int
type AccountSaveMusicParams ¶ added in v1.6.3
type AccountSaveMusicParams struct {
Unsave bool `tl:"flag:0,encoded_in_bitflags"`
ID InputDocument
AfterID InputDocument `tl:"flag:1"`
}
func (*AccountSaveMusicParams) CRC ¶ added in v1.6.3
func (*AccountSaveMusicParams) CRC() uint32
func (*AccountSaveMusicParams) FlagIndex ¶ added in v1.6.3
func (*AccountSaveMusicParams) FlagIndex() int
type AccountSaveRingtoneParams ¶
type AccountSaveRingtoneParams struct {
ID InputDocument
Unsave bool
}
func (*AccountSaveRingtoneParams) CRC ¶
func (*AccountSaveRingtoneParams) CRC() uint32
type AccountSaveSecureValueParams ¶
type AccountSaveSecureValueParams struct {
Value *InputSecureValue
SecureSecretID int64
}
func (*AccountSaveSecureValueParams) CRC ¶
func (*AccountSaveSecureValueParams) CRC() uint32
type AccountSaveThemeParams ¶
type AccountSaveThemeParams struct {
Theme InputTheme
Unsave bool
}
func (*AccountSaveThemeParams) CRC ¶
func (*AccountSaveThemeParams) CRC() uint32
type AccountSaveWallPaperParams ¶
type AccountSaveWallPaperParams struct {
Wallpaper InputWallPaper
Unsave bool
Settings *WallPaperSettings
}
func (*AccountSaveWallPaperParams) CRC ¶
func (*AccountSaveWallPaperParams) CRC() uint32
type AccountSavedMusicIds ¶ added in v1.6.3
type AccountSavedMusicIdsNotModified ¶ added in v1.6.3
type AccountSavedMusicIdsNotModified struct{}
The list of IDs of songs (document.`id`s) currently pinned on our profile hasn't changed.
func (*AccountSavedMusicIdsNotModified) CRC ¶ added in v1.6.3
func (*AccountSavedMusicIdsNotModified) CRC() uint32
func (*AccountSavedMusicIdsNotModified) ImplementsAccountSavedMusicIds ¶ added in v1.6.3
func (*AccountSavedMusicIdsNotModified) ImplementsAccountSavedMusicIds()
type AccountSavedMusicIdsObj ¶ added in v1.6.3
type AccountSavedMusicIdsObj struct {
Ids []int64 // Full list of document.`id`s
}
List of IDs of songs (document.`id`s) currently pinned on our profile
func (*AccountSavedMusicIdsObj) CRC ¶ added in v1.6.3
func (*AccountSavedMusicIdsObj) CRC() uint32
func (*AccountSavedMusicIdsObj) ImplementsAccountSavedMusicIds ¶ added in v1.6.3
func (*AccountSavedMusicIdsObj) ImplementsAccountSavedMusicIds()
type AccountSavedRingtone ¶
type AccountSavedRingtoneConverted ¶
type AccountSavedRingtoneConverted struct {
Document Document
}
func (*AccountSavedRingtoneConverted) CRC ¶
func (*AccountSavedRingtoneConverted) CRC() uint32
func (*AccountSavedRingtoneConverted) ImplementsAccountSavedRingtone ¶
func (*AccountSavedRingtoneConverted) ImplementsAccountSavedRingtone()
type AccountSavedRingtoneObj ¶
type AccountSavedRingtoneObj struct{}
The notification sound was already in MP3 format and was saved without any modification
func (*AccountSavedRingtoneObj) CRC ¶
func (*AccountSavedRingtoneObj) CRC() uint32
func (*AccountSavedRingtoneObj) ImplementsAccountSavedRingtone ¶
func (*AccountSavedRingtoneObj) ImplementsAccountSavedRingtone()
type AccountSavedRingtones ¶
type AccountSavedRingtonesNotModified ¶
type AccountSavedRingtonesNotModified struct{}
The notification sound list hasn't changed.
func (*AccountSavedRingtonesNotModified) CRC ¶
func (*AccountSavedRingtonesNotModified) CRC() uint32
func (*AccountSavedRingtonesNotModified) ImplementsAccountSavedRingtones ¶
func (*AccountSavedRingtonesNotModified) ImplementsAccountSavedRingtones()
type AccountSavedRingtonesObj ¶
type AccountSavedRingtonesObj struct {
Hash int64 // Hash used for caching, for more info click here
Ringtones []Document // Saved notification sounds
}
A list of saved notification sounds
func (*AccountSavedRingtonesObj) CRC ¶
func (*AccountSavedRingtonesObj) CRC() uint32
func (*AccountSavedRingtonesObj) ImplementsAccountSavedRingtones ¶
func (*AccountSavedRingtonesObj) ImplementsAccountSavedRingtones()
type AccountSendChangePhoneCodeParams ¶
type AccountSendChangePhoneCodeParams struct {
PhoneNumber string
Settings *CodeSettings
}
func (*AccountSendChangePhoneCodeParams) CRC ¶
func (*AccountSendChangePhoneCodeParams) CRC() uint32
type AccountSendConfirmPhoneCodeParams ¶
type AccountSendConfirmPhoneCodeParams struct {
Hash string
Settings *CodeSettings
}
func (*AccountSendConfirmPhoneCodeParams) CRC ¶
func (*AccountSendConfirmPhoneCodeParams) CRC() uint32
type AccountSendVerifyEmailCodeParams ¶
type AccountSendVerifyEmailCodeParams struct {
Purpose EmailVerifyPurpose
Email string
}
func (*AccountSendVerifyEmailCodeParams) CRC ¶
func (*AccountSendVerifyEmailCodeParams) CRC() uint32
type AccountSendVerifyPhoneCodeParams ¶
type AccountSendVerifyPhoneCodeParams struct {
PhoneNumber string
Settings *CodeSettings
}
func (*AccountSendVerifyPhoneCodeParams) CRC ¶
func (*AccountSendVerifyPhoneCodeParams) CRC() uint32
type AccountSentEmailCode ¶
The sent email code
func (*AccountSentEmailCode) CRC ¶
func (*AccountSentEmailCode) CRC() uint32
type AccountSetAccountTtlParams ¶
type AccountSetAccountTtlParams struct {
Ttl *AccountDaysTtl
}
func (*AccountSetAccountTtlParams) CRC ¶
func (*AccountSetAccountTtlParams) CRC() uint32
type AccountSetAuthorizationTtlParams ¶
type AccountSetAuthorizationTtlParams struct {
AuthorizationTtlDays int32
}
func (*AccountSetAuthorizationTtlParams) CRC ¶
func (*AccountSetAuthorizationTtlParams) CRC() uint32
type AccountSetContactSignUpNotificationParams ¶
type AccountSetContactSignUpNotificationParams struct {
Silent bool
}
func (*AccountSetContactSignUpNotificationParams) CRC ¶
func (*AccountSetContactSignUpNotificationParams) CRC() uint32
type AccountSetContentSettingsParams ¶
type AccountSetContentSettingsParams struct {
SensitiveEnabled bool `tl:"flag:0,encoded_in_bitflags"`
}
func (*AccountSetContentSettingsParams) CRC ¶
func (*AccountSetContentSettingsParams) CRC() uint32
func (*AccountSetContentSettingsParams) FlagIndex ¶
func (*AccountSetContentSettingsParams) FlagIndex() int
type AccountSetGlobalPrivacySettingsParams ¶
type AccountSetGlobalPrivacySettingsParams struct {
Settings *GlobalPrivacySettings
}
func (*AccountSetGlobalPrivacySettingsParams) CRC ¶
func (*AccountSetGlobalPrivacySettingsParams) CRC() uint32
type AccountSetMainProfileTabParams ¶ added in v1.6.3
type AccountSetMainProfileTabParams struct {
Tab ProfileTab
}
func (*AccountSetMainProfileTabParams) CRC ¶ added in v1.6.3
func (*AccountSetMainProfileTabParams) CRC() uint32
type AccountSetPrivacyParams ¶
type AccountSetPrivacyParams struct {
Key InputPrivacyKey
Rules []InputPrivacyRule
}
func (*AccountSetPrivacyParams) CRC ¶
func (*AccountSetPrivacyParams) CRC() uint32
type AccountSetReactionsNotifySettingsParams ¶
type AccountSetReactionsNotifySettingsParams struct {
Settings *ReactionsNotifySettings
}
func (*AccountSetReactionsNotifySettingsParams) CRC ¶
func (*AccountSetReactionsNotifySettingsParams) CRC() uint32
type AccountTakeout ¶
type AccountTakeout struct {
ID int64
}
Takeout info
func (*AccountTakeout) CRC ¶
func (*AccountTakeout) CRC() uint32
type AccountThemes ¶
type AccountThemesNotModified ¶
type AccountThemesNotModified struct{}
No new themes were installed
func (*AccountThemesNotModified) CRC ¶
func (*AccountThemesNotModified) CRC() uint32
func (*AccountThemesNotModified) ImplementsAccountThemes ¶
func (*AccountThemesNotModified) ImplementsAccountThemes()
type AccountThemesObj ¶
type AccountThemesObj struct {
Hash int64 // Hash used for caching, for more info click here
Themes []*Theme // Themes
}
Installed themes
func (*AccountThemesObj) CRC ¶
func (*AccountThemesObj) CRC() uint32
func (*AccountThemesObj) ImplementsAccountThemes ¶
func (*AccountThemesObj) ImplementsAccountThemes()
type AccountTmpPassword ¶
Temporary payment password
func (*AccountTmpPassword) CRC ¶
func (*AccountTmpPassword) CRC() uint32
type AccountToggleConnectedBotPausedParams ¶
func (*AccountToggleConnectedBotPausedParams) CRC ¶
func (*AccountToggleConnectedBotPausedParams) CRC() uint32
type AccountToggleNoPaidMessagesExceptionParams ¶ added in v1.6.1
type AccountToggleNoPaidMessagesExceptionParams struct {
RefundCharged bool `tl:"flag:0,encoded_in_bitflags"`
RequirePayment bool `tl:"flag:2,encoded_in_bitflags"`
ParentPeer InputPeer `tl:"flag:1"`
UserID InputUser
}
func (*AccountToggleNoPaidMessagesExceptionParams) CRC ¶ added in v1.6.1
func (*AccountToggleNoPaidMessagesExceptionParams) CRC() uint32
func (*AccountToggleNoPaidMessagesExceptionParams) FlagIndex ¶ added in v1.6.1
func (*AccountToggleNoPaidMessagesExceptionParams) FlagIndex() int
type AccountToggleSponsoredMessagesParams ¶
type AccountToggleSponsoredMessagesParams struct {
Enabled bool
}
func (*AccountToggleSponsoredMessagesParams) CRC ¶
func (*AccountToggleSponsoredMessagesParams) CRC() uint32
type AccountToggleUsernameParams ¶
func (*AccountToggleUsernameParams) CRC ¶
func (*AccountToggleUsernameParams) CRC() uint32
type AccountUnregisterDeviceParams ¶
func (*AccountUnregisterDeviceParams) CRC ¶
func (*AccountUnregisterDeviceParams) CRC() uint32
type AccountUpdateBirthdayParams ¶
type AccountUpdateBirthdayParams struct {
Birthday *Birthday `tl:"flag:0"`
}
func (*AccountUpdateBirthdayParams) CRC ¶
func (*AccountUpdateBirthdayParams) CRC() uint32
func (*AccountUpdateBirthdayParams) FlagIndex ¶
func (*AccountUpdateBirthdayParams) FlagIndex() int
type AccountUpdateBusinessAwayMessageParams ¶
type AccountUpdateBusinessAwayMessageParams struct {
Message *InputBusinessAwayMessage `tl:"flag:0"`
}
func (*AccountUpdateBusinessAwayMessageParams) CRC ¶
func (*AccountUpdateBusinessAwayMessageParams) CRC() uint32
func (*AccountUpdateBusinessAwayMessageParams) FlagIndex ¶
func (*AccountUpdateBusinessAwayMessageParams) FlagIndex() int
type AccountUpdateBusinessGreetingMessageParams ¶
type AccountUpdateBusinessGreetingMessageParams struct {
Message *InputBusinessGreetingMessage `tl:"flag:0"`
}
func (*AccountUpdateBusinessGreetingMessageParams) CRC ¶
func (*AccountUpdateBusinessGreetingMessageParams) CRC() uint32
func (*AccountUpdateBusinessGreetingMessageParams) FlagIndex ¶
func (*AccountUpdateBusinessGreetingMessageParams) FlagIndex() int
type AccountUpdateBusinessIntroParams ¶
type AccountUpdateBusinessIntroParams struct {
Intro *InputBusinessIntro `tl:"flag:0"`
}
func (*AccountUpdateBusinessIntroParams) CRC ¶
func (*AccountUpdateBusinessIntroParams) CRC() uint32
func (*AccountUpdateBusinessIntroParams) FlagIndex ¶
func (*AccountUpdateBusinessIntroParams) FlagIndex() int
type AccountUpdateBusinessLocationParams ¶
type AccountUpdateBusinessLocationParams struct {
GeoPoint InputGeoPoint `tl:"flag:1"`
Address string `tl:"flag:0"`
}
func (*AccountUpdateBusinessLocationParams) CRC ¶
func (*AccountUpdateBusinessLocationParams) CRC() uint32
func (*AccountUpdateBusinessLocationParams) FlagIndex ¶
func (*AccountUpdateBusinessLocationParams) FlagIndex() int
type AccountUpdateBusinessWorkHoursParams ¶
type AccountUpdateBusinessWorkHoursParams struct {
BusinessWorkHours *BusinessWorkHours `tl:"flag:0"`
}
func (*AccountUpdateBusinessWorkHoursParams) CRC ¶
func (*AccountUpdateBusinessWorkHoursParams) CRC() uint32
func (*AccountUpdateBusinessWorkHoursParams) FlagIndex ¶
func (*AccountUpdateBusinessWorkHoursParams) FlagIndex() int
type AccountUpdateColorParams ¶
type AccountUpdateColorParams struct {
ForProfile bool `tl:"flag:1,encoded_in_bitflags"`
Color PeerColor `tl:"flag:2"`
}
func (*AccountUpdateColorParams) CRC ¶
func (*AccountUpdateColorParams) CRC() uint32
func (*AccountUpdateColorParams) FlagIndex ¶
func (*AccountUpdateColorParams) FlagIndex() int
type AccountUpdateConnectedBotParams ¶
type AccountUpdateConnectedBotParams struct {
Deleted bool `tl:"flag:1,encoded_in_bitflags"`
Rights *BusinessBotRights `tl:"flag:0"`
Bot InputUser
Recipients *InputBusinessBotRecipients
}
func (*AccountUpdateConnectedBotParams) CRC ¶
func (*AccountUpdateConnectedBotParams) CRC() uint32
func (*AccountUpdateConnectedBotParams) FlagIndex ¶
func (*AccountUpdateConnectedBotParams) FlagIndex() int
type AccountUpdateDeviceLockedParams ¶
type AccountUpdateDeviceLockedParams struct {
Period int32
}
func (*AccountUpdateDeviceLockedParams) CRC ¶
func (*AccountUpdateDeviceLockedParams) CRC() uint32
type AccountUpdateEmojiStatusParams ¶
type AccountUpdateEmojiStatusParams struct {
EmojiStatus EmojiStatus
}
func (*AccountUpdateEmojiStatusParams) CRC ¶
func (*AccountUpdateEmojiStatusParams) CRC() uint32
type AccountUpdateNotifySettingsParams ¶
type AccountUpdateNotifySettingsParams struct {
Peer InputNotifyPeer
Settings *InputPeerNotifySettings
}
func (*AccountUpdateNotifySettingsParams) CRC ¶
func (*AccountUpdateNotifySettingsParams) CRC() uint32
type AccountUpdatePasswordSettingsParams ¶
type AccountUpdatePasswordSettingsParams struct {
Password InputCheckPasswordSRP
NewSettings *AccountPasswordInputSettings
}
func (*AccountUpdatePasswordSettingsParams) CRC ¶
func (*AccountUpdatePasswordSettingsParams) CRC() uint32
type AccountUpdatePersonalChannelParams ¶
type AccountUpdatePersonalChannelParams struct {
Channel InputChannel
}
func (*AccountUpdatePersonalChannelParams) CRC ¶
func (*AccountUpdatePersonalChannelParams) CRC() uint32
type AccountUpdateProfileParams ¶
type AccountUpdateProfileParams struct {
FirstName string `tl:"flag:0"`
LastName string `tl:"flag:1"`
About string `tl:"flag:2"`
}
func (*AccountUpdateProfileParams) CRC ¶
func (*AccountUpdateProfileParams) CRC() uint32
func (*AccountUpdateProfileParams) FlagIndex ¶
func (*AccountUpdateProfileParams) FlagIndex() int
type AccountUpdateStatusParams ¶
type AccountUpdateStatusParams struct {
Offline bool
}
func (*AccountUpdateStatusParams) CRC ¶
func (*AccountUpdateStatusParams) CRC() uint32
type AccountUpdateThemeParams ¶
type AccountUpdateThemeParams struct {
Format string
Theme InputTheme
Slug string `tl:"flag:0"`
Title string `tl:"flag:1"`
Document InputDocument `tl:"flag:2"`
Settings []*InputThemeSettings `tl:"flag:3"`
}
func (*AccountUpdateThemeParams) CRC ¶
func (*AccountUpdateThemeParams) CRC() uint32
func (*AccountUpdateThemeParams) FlagIndex ¶
func (*AccountUpdateThemeParams) FlagIndex() int
type AccountUpdateUsernameParams ¶
type AccountUpdateUsernameParams struct {
Username string
}
func (*AccountUpdateUsernameParams) CRC ¶
func (*AccountUpdateUsernameParams) CRC() uint32
type AccountUploadRingtoneParams ¶
func (*AccountUploadRingtoneParams) CRC ¶
func (*AccountUploadRingtoneParams) CRC() uint32
type AccountUploadThemeParams ¶
type AccountUploadThemeParams struct {
File InputFile
Thumb InputFile `tl:"flag:0"`
FileName string
MimeType string
}
func (*AccountUploadThemeParams) CRC ¶
func (*AccountUploadThemeParams) CRC() uint32
func (*AccountUploadThemeParams) FlagIndex ¶
func (*AccountUploadThemeParams) FlagIndex() int
type AccountUploadWallPaperParams ¶
type AccountUploadWallPaperParams struct {
ForChat bool `tl:"flag:0,encoded_in_bitflags"`
File InputFile
MimeType string
Settings *WallPaperSettings
}
func (*AccountUploadWallPaperParams) CRC ¶
func (*AccountUploadWallPaperParams) CRC() uint32
func (*AccountUploadWallPaperParams) FlagIndex ¶
func (*AccountUploadWallPaperParams) FlagIndex() int
type AccountVerifyEmailParams ¶
type AccountVerifyEmailParams struct {
Purpose EmailVerifyPurpose
Verification EmailVerification
}
func (*AccountVerifyEmailParams) CRC ¶
func (*AccountVerifyEmailParams) CRC() uint32
type AccountVerifyPhoneParams ¶
func (*AccountVerifyPhoneParams) CRC ¶
func (*AccountVerifyPhoneParams) CRC() uint32
type AccountWallPapers ¶
type AccountWallPapersNotModified ¶
type AccountWallPapersNotModified struct{}
No new wallpapers were found
func (*AccountWallPapersNotModified) CRC ¶
func (*AccountWallPapersNotModified) CRC() uint32
func (*AccountWallPapersNotModified) ImplementsAccountWallPapers ¶
func (*AccountWallPapersNotModified) ImplementsAccountWallPapers()
type AccountWallPapersObj ¶
type AccountWallPapersObj struct {
Hash int64 // Hash used for caching, for more info click here
Wallpapers []WallPaper // Wallpapers
}
Installed wallpapers
func (*AccountWallPapersObj) CRC ¶
func (*AccountWallPapersObj) CRC() uint32
func (*AccountWallPapersObj) ImplementsAccountWallPapers ¶
func (*AccountWallPapersObj) ImplementsAccountWallPapers()
type AccountWebAuthorizations ¶
type AccountWebAuthorizations struct {
Authorizations []*WebAuthorization
Users []User
}
Web authorizations
func (*AccountWebAuthorizations) CRC ¶
func (*AccountWebAuthorizations) CRC() uint32
type ActionResult ¶
type ActionResult struct {
Peer InputPeer // The peer the action was sent to
Client *Client // The client that sent the action
}
func (*ActionResult) Cancel ¶
func (a *ActionResult) Cancel() bool
Cancel the pointed Action, Returns true if the action was cancelled
type AdminBuilder ¶ added in v1.6.10
type AdminBuilder struct {
// contains filtered or unexported fields
}
func (*AdminBuilder) Demote ¶ added in v1.6.10
func (b *AdminBuilder) Demote() (bool, error)
func (*AdminBuilder) Invoke ¶ added in v1.6.10
func (b *AdminBuilder) Invoke() (bool, error)
func (*AdminBuilder) Promote ¶ added in v1.6.10
func (b *AdminBuilder) Promote() (bool, error)
func (*AdminBuilder) WithRank ¶ added in v1.6.10
func (b *AdminBuilder) WithRank(rank string) *AdminBuilder
func (*AdminBuilder) WithRights ¶ added in v1.6.10
func (b *AdminBuilder) WithRights(rights *ChatAdminRights) *AdminBuilder
type AdminOptions ¶
type AdminOptions struct {
IsAdmin bool `json:"is_admin,omitempty"`
Rights *ChatAdminRights `json:"rights,omitempty"`
Rank string `json:"rank,omitempty"`
}
type Album ¶
type Album struct {
Client *Client
GroupedID int64
Messages []*NewMessage
}
Album Type for MediaGroup
func (*Album) Delete ¶
func (a *Album) Delete() (*MessagesAffectedMessages, error)
func (*Album) Edit ¶
func (a *Album) Edit(Text any, Opts ...*SendOptions) (*NewMessage, error)
func (*Album) ForwardTo ¶
func (a *Album) ForwardTo(PeerID any, Opts ...*ForwardOptions) ([]NewMessage, error)
func (*Album) GetReplyMessage ¶
func (a *Album) GetReplyMessage() (*NewMessage, error)
func (*Album) Pin ¶
func (a *Album) Pin(Opts ...*PinOptions) error
func (*Album) Reply ¶
func (a *Album) Reply(Text any, Opts ...*SendOptions) (*NewMessage, error)
func (*Album) ReplyMedia ¶
func (a *Album) ReplyMedia(Media any, Opts ...*MediaOptions) (*NewMessage, error)
func (*Album) Respond ¶
func (a *Album) Respond(Text any, Opts ...*SendOptions) (*NewMessage, error)
func (*Album) RespondMedia ¶
func (a *Album) RespondMedia(Media any, Opts ...*MediaOptions) (*NewMessage, error)
type AlbumHandler ¶
type ArticleOptions ¶
type ArticleOptions struct {
ID string // Unique result identifier
Title string // Result title
Description string // Short description of the result
MimeType string // MIME type for content
ExcludeMedia bool // Separate media from message text
ForceDocument bool // Force result as document
Thumb InputWebDocument // Thumbnail for the result
Content InputWebDocument // Content URL and attributes
LinkPreview bool // Enable link preview in message
ReplyMarkup ReplyMarkup // Inline keyboard for the result
Entities []MessageEntity // Text formatting entities
ParseMode string // Parse mode: "HTML" or "Markdown"
Caption string // Caption for media results
InvertMedia bool // Show media below text
Venue *InputBotInlineMessageMediaVenue // Venue information
Location *InputBotInlineMessageMediaGeo // Location information
Contact *InputBotInlineMessageMediaContact // Contact information
Invoice *InputBotInlineMessageMediaInvoice // Invoice for payments
WebPage *InputBotInlineMessageMediaWebPage // Web page preview
BusinessConnectionId string // Business connection ID
VoiceNote bool // Send as voice note
}
type AttachMenuBot ¶
type AttachMenuBot struct {
Inactive bool `tl:"flag:0,encoded_in_bitflags"`
HasSettings bool `tl:"flag:1,encoded_in_bitflags"`
RequestWriteAccess bool `tl:"flag:2,encoded_in_bitflags"`
ShowInAttachMenu bool `tl:"flag:3,encoded_in_bitflags"`
ShowInSideMenu bool `tl:"flag:4,encoded_in_bitflags"`
SideMenuDisclaimerNeeded bool `tl:"flag:5,encoded_in_bitflags"`
BotID int64
ShortName string
PeerTypes []AttachMenuPeerType `tl:"flag:3"`
Icons []*AttachMenuBotIcon
}
Represents a bot mini app that can be launched from the attachment/side menu
func (*AttachMenuBot) CRC ¶
func (*AttachMenuBot) CRC() uint32
func (*AttachMenuBot) FlagIndex ¶
func (*AttachMenuBot) FlagIndex() int
type AttachMenuBotIcon ¶
type AttachMenuBotIcon struct {
Name string
Icon Document
Colors []*AttachMenuBotIconColor `tl:"flag:0"`
}
Represents an attachment menu icon for bot mini apps
func (*AttachMenuBotIcon) CRC ¶
func (*AttachMenuBotIcon) CRC() uint32
func (*AttachMenuBotIcon) FlagIndex ¶
func (*AttachMenuBotIcon) FlagIndex() int
type AttachMenuBotIconColor ¶
Represents an attachment menu icon color for bot mini apps
func (*AttachMenuBotIconColor) CRC ¶
func (*AttachMenuBotIconColor) CRC() uint32
type AttachMenuBots ¶
type AttachMenuBotsBot ¶
type AttachMenuBotsBot struct {
Bot *AttachMenuBot
Users []User
}
Represents a bot mini app that can be launched from the attachment menu
func (*AttachMenuBotsBot) CRC ¶
func (*AttachMenuBotsBot) CRC() uint32
type AttachMenuBotsNotModified ¶
type AttachMenuBotsNotModified struct{}
The list of bot mini apps hasn't changed
func (*AttachMenuBotsNotModified) CRC ¶
func (*AttachMenuBotsNotModified) CRC() uint32
func (*AttachMenuBotsNotModified) ImplementsAttachMenuBots ¶
func (*AttachMenuBotsNotModified) ImplementsAttachMenuBots()
type AttachMenuBotsObj ¶
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
Users []User // Info about related users/bots
}
Represents a list of bot mini apps that can be launched from the attachment menu
func (*AttachMenuBotsObj) CRC ¶
func (*AttachMenuBotsObj) CRC() uint32
func (*AttachMenuBotsObj) ImplementsAttachMenuBots ¶
func (*AttachMenuBotsObj) ImplementsAttachMenuBots()
type AttachMenuPeerType ¶
type AttachMenuPeerType uint32
const ( AttachMenuPeerTypeBotPm AttachMenuPeerType = 0xc32bfa1a AttachMenuPeerTypeBroadcast AttachMenuPeerType = 0x7bfbdefc AttachMenuPeerTypeChat AttachMenuPeerType = 0x509113f AttachMenuPeerTypePm AttachMenuPeerType = 0xf146d31f AttachMenuPeerTypeSameBotPm AttachMenuPeerType = 0x7d6be90e )
func (AttachMenuPeerType) CRC ¶
func (e AttachMenuPeerType) CRC() uint32
func (AttachMenuPeerType) String ¶
func (e AttachMenuPeerType) String() string
type AuctionBidLevel ¶ added in v1.6.7
func (*AuctionBidLevel) CRC ¶ added in v1.6.7
func (*AuctionBidLevel) CRC() uint32
type AuthAcceptLoginTokenParams ¶
type AuthAcceptLoginTokenParams struct {
Token []byte
}
func (*AuthAcceptLoginTokenParams) CRC ¶
func (*AuthAcceptLoginTokenParams) CRC() uint32
type AuthAuthorization ¶
func CodeAuthAttempt ¶ added in v1.6.7
func CodeAuthAttempt(c *Client, phoneNumber string, opts *LoginOptions, maxRetries int) (AuthAuthorization, error)
CodeAuthAttempt handles the authentication process with code and optional 2FA password.
type AuthAuthorizationObj ¶
type AuthAuthorizationObj struct {
SetupPasswordRequired bool `tl:"flag:1,encoded_in_bitflags"` // Suggests the user to set up a 2-step verification password to be able to log in again
OtherwiseReloginDays int32 `tl:"flag:1"` // If and only if setup_password_required is set and the user declines to set a 2-step verification password, they will be able to log into their account via SMS again only after this many days pass.
TmpSessions int32 `tl:"flag:0"` // Temporary passport sessions
FutureAuthToken []byte `tl:"flag:2"` // A future auth token
User User // Info on authorized user
}
Contains user authorization info.
func (*AuthAuthorizationObj) CRC ¶
func (*AuthAuthorizationObj) CRC() uint32
func (*AuthAuthorizationObj) FlagIndex ¶
func (*AuthAuthorizationObj) FlagIndex() int
func (*AuthAuthorizationObj) ImplementsAuthAuthorization ¶
func (*AuthAuthorizationObj) ImplementsAuthAuthorization()
type AuthAuthorizationSignUpRequired ¶
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
}
An account with this phone number doesn't exist on telegram: the user has to enter basic information and sign up
func (*AuthAuthorizationSignUpRequired) CRC ¶
func (*AuthAuthorizationSignUpRequired) CRC() uint32
func (*AuthAuthorizationSignUpRequired) FlagIndex ¶
func (*AuthAuthorizationSignUpRequired) FlagIndex() int
func (*AuthAuthorizationSignUpRequired) ImplementsAuthAuthorization ¶
func (*AuthAuthorizationSignUpRequired) ImplementsAuthAuthorization()
type AuthBindTempAuthKeyParams ¶
type AuthBindTempAuthKeyParams struct {
PermAuthKeyID int64
Nonce int64
ExpiresAt int32
EncryptedMessage []byte
}
func (*AuthBindTempAuthKeyParams) CRC ¶
func (*AuthBindTempAuthKeyParams) CRC() uint32
type AuthCallback ¶ added in v1.6.9
AuthCallback is a function type for authentication input callbacks.
type AuthCancelCodeParams ¶
func (*AuthCancelCodeParams) CRC ¶
func (*AuthCancelCodeParams) CRC() uint32
type AuthCheckPaidAuthParams ¶ added in v1.6.8
func (*AuthCheckPaidAuthParams) CRC ¶ added in v1.6.8
func (*AuthCheckPaidAuthParams) CRC() uint32
type AuthCheckPasswordParams ¶
type AuthCheckPasswordParams struct {
Password InputCheckPasswordSRP
}
func (*AuthCheckPasswordParams) CRC ¶
func (*AuthCheckPasswordParams) CRC() uint32
type AuthCheckRecoveryPasswordParams ¶
type AuthCheckRecoveryPasswordParams struct {
Code string
}
func (*AuthCheckRecoveryPasswordParams) CRC ¶
func (*AuthCheckRecoveryPasswordParams) CRC() uint32
type AuthCodeType ¶
type AuthCodeType uint32
const ( AuthCodeTypeCall AuthCodeType = 0x741cd3e3 AuthCodeTypeFlashCall AuthCodeType = 0x226ccefb AuthCodeTypeFragmentSms AuthCodeType = 0x6ed998c AuthCodeTypeMissedCall AuthCodeType = 0xd61ad6ee AuthCodeTypeSms AuthCodeType = 0x72a3158c )
func (AuthCodeType) CRC ¶
func (e AuthCodeType) CRC() uint32
func (AuthCodeType) String ¶
func (e AuthCodeType) String() string
type AuthDropTempAuthKeysParams ¶
type AuthDropTempAuthKeysParams struct {
ExceptAuthKeys []int64
}
func (*AuthDropTempAuthKeysParams) CRC ¶
func (*AuthDropTempAuthKeysParams) CRC() uint32
type AuthExportAuthorizationParams ¶
type AuthExportAuthorizationParams struct {
DcID int32
}
func (*AuthExportAuthorizationParams) CRC ¶
func (*AuthExportAuthorizationParams) CRC() uint32
type AuthExportLoginTokenParams ¶
func (*AuthExportLoginTokenParams) CRC ¶
func (*AuthExportLoginTokenParams) CRC() uint32
type AuthExportedAuthorization ¶
Data for copying of authorization between data centers.
func (*AuthExportedAuthorization) CRC ¶
func (*AuthExportedAuthorization) CRC() uint32
type AuthFinishPasskeyLoginParams ¶ added in v1.6.10
type AuthFinishPasskeyLoginParams struct {
Credential *InputPasskeyCredentialPublicKey
FromDcID int32 `tl:"flag:0"`
FromAuthKeyID int64 `tl:"flag:0"`
}
func (*AuthFinishPasskeyLoginParams) CRC ¶ added in v1.6.10
func (*AuthFinishPasskeyLoginParams) CRC() uint32
func (*AuthFinishPasskeyLoginParams) FlagIndex ¶ added in v1.6.10
func (*AuthFinishPasskeyLoginParams) FlagIndex() int
type AuthImportAuthorizationParams ¶
func (*AuthImportAuthorizationParams) CRC ¶
func (*AuthImportAuthorizationParams) CRC() uint32
type AuthImportBotAuthorizationParams ¶
type AuthImportBotAuthorizationParams struct {
Flags int32
APIID int32
APIHash string
BotAuthToken string
}
func (*AuthImportBotAuthorizationParams) CRC ¶
func (*AuthImportBotAuthorizationParams) CRC() uint32
type AuthImportLoginTokenParams ¶
type AuthImportLoginTokenParams struct {
Token []byte
}
func (*AuthImportLoginTokenParams) CRC ¶
func (*AuthImportLoginTokenParams) CRC() uint32
type AuthImportWebTokenAuthorizationParams ¶
type AuthImportWebTokenAuthorizationParams struct {
APIID int32
APIHash string
WebAuthToken string
}
func (*AuthImportWebTokenAuthorizationParams) CRC ¶
func (*AuthImportWebTokenAuthorizationParams) CRC() uint32
type AuthInitPasskeyLoginParams ¶ added in v1.6.10
func (*AuthInitPasskeyLoginParams) CRC ¶ added in v1.6.10
func (*AuthInitPasskeyLoginParams) CRC() uint32
type AuthLogOutParams ¶
type AuthLogOutParams struct{}
func (*AuthLogOutParams) CRC ¶
func (*AuthLogOutParams) CRC() uint32
type AuthLoggedOut ¶
type AuthLoggedOut struct {
FutureAuthToken []byte `tl:"flag:0"`
}
Future auth token to be used on subsequent authorizations
func (*AuthLoggedOut) CRC ¶
func (*AuthLoggedOut) CRC() uint32
func (*AuthLoggedOut) FlagIndex ¶
func (*AuthLoggedOut) FlagIndex() int
type AuthLoginToken ¶
type AuthLoginTokenMigrateTo ¶
Repeat the query to the specified DC
func (*AuthLoginTokenMigrateTo) CRC ¶
func (*AuthLoginTokenMigrateTo) CRC() uint32
func (*AuthLoginTokenMigrateTo) ImplementsAuthLoginToken ¶
func (*AuthLoginTokenMigrateTo) ImplementsAuthLoginToken()
type AuthLoginTokenObj ¶
type AuthLoginTokenObj struct {
Expires int32 // Expiration date of QR code
Token []byte // Token to render in QR code
}
Login token (for QR code login)
func (*AuthLoginTokenObj) CRC ¶
func (*AuthLoginTokenObj) CRC() uint32
func (*AuthLoginTokenObj) ImplementsAuthLoginToken ¶
func (*AuthLoginTokenObj) ImplementsAuthLoginToken()
type AuthLoginTokenSuccess ¶
type AuthLoginTokenSuccess struct {
Authorization AuthAuthorization // Authorization info
}
Login via token (QR code) succeeded!
func (*AuthLoginTokenSuccess) CRC ¶
func (*AuthLoginTokenSuccess) CRC() uint32
func (*AuthLoginTokenSuccess) ImplementsAuthLoginToken ¶
func (*AuthLoginTokenSuccess) ImplementsAuthLoginToken()
type AuthPasskeyLoginOptions ¶ added in v1.6.10
type AuthPasskeyLoginOptions struct {
Options *DataJson
}
func (*AuthPasskeyLoginOptions) CRC ¶ added in v1.6.10
func (*AuthPasskeyLoginOptions) CRC() uint32
type AuthPasswordRecovery ¶
type AuthPasswordRecovery struct {
EmailPattern string
}
Recovery info of a 2FA password, only for accounts with a recovery email configured.
func (*AuthPasswordRecovery) CRC ¶
func (*AuthPasswordRecovery) CRC() uint32
type AuthRecoverPasswordParams ¶
type AuthRecoverPasswordParams struct {
Code string
NewSettings *AccountPasswordInputSettings `tl:"flag:0"`
}
func (*AuthRecoverPasswordParams) CRC ¶
func (*AuthRecoverPasswordParams) CRC() uint32
func (*AuthRecoverPasswordParams) FlagIndex ¶
func (*AuthRecoverPasswordParams) FlagIndex() int
type AuthReportMissingCodeParams ¶
func (*AuthReportMissingCodeParams) CRC ¶
func (*AuthReportMissingCodeParams) CRC() uint32
type AuthRequestFirebaseSmsParams ¶
type AuthRequestFirebaseSmsParams struct {
PhoneNumber string
PhoneCodeHash string
SafetyNetToken string `tl:"flag:0"`
PlayIntegrityToken string `tl:"flag:2"`
IosPushSecret string `tl:"flag:1"`
}
func (*AuthRequestFirebaseSmsParams) CRC ¶
func (*AuthRequestFirebaseSmsParams) CRC() uint32
func (*AuthRequestFirebaseSmsParams) FlagIndex ¶
func (*AuthRequestFirebaseSmsParams) FlagIndex() int
type AuthRequestPasswordRecoveryParams ¶
type AuthRequestPasswordRecoveryParams struct{}
func (*AuthRequestPasswordRecoveryParams) CRC ¶
func (*AuthRequestPasswordRecoveryParams) CRC() uint32
type AuthResendCodeParams ¶
type AuthResendCodeParams struct {
PhoneNumber string
PhoneCodeHash string
Reason string `tl:"flag:0"`
}
func (*AuthResendCodeParams) CRC ¶
func (*AuthResendCodeParams) CRC() uint32
func (*AuthResendCodeParams) FlagIndex ¶
func (*AuthResendCodeParams) FlagIndex() int
type AuthResetAuthorizationsParams ¶
type AuthResetAuthorizationsParams struct{}
func (*AuthResetAuthorizationsParams) CRC ¶
func (*AuthResetAuthorizationsParams) CRC() uint32
type AuthResetLoginEmailParams ¶
func (*AuthResetLoginEmailParams) CRC ¶
func (*AuthResetLoginEmailParams) CRC() uint32
type AuthSendCodeParams ¶
type AuthSendCodeParams struct {
PhoneNumber string
APIID int32
APIHash string
Settings *CodeSettings
}
func (*AuthSendCodeParams) CRC ¶
func (*AuthSendCodeParams) CRC() uint32
type AuthSentCode ¶
type AuthSentCodeObj ¶
type AuthSentCodeObj struct {
Type AuthSentCodeType // Phone code type
PhoneCodeHash string // Phone code hash, to be stored and later re-used with auth.signIn
NextType AuthCodeType `tl:"flag:1"` // Phone code type that will be sent next, if the phone code is not received within `timeout` seconds: to send it use auth.resendCode
Timeout int32 `tl:"flag:2"` // Timeout for reception of the phone code
}
Contains info about a sent verification code.
func (*AuthSentCodeObj) CRC ¶
func (*AuthSentCodeObj) CRC() uint32
func (*AuthSentCodeObj) FlagIndex ¶
func (*AuthSentCodeObj) FlagIndex() int
func (*AuthSentCodeObj) ImplementsAuthSentCode ¶
func (*AuthSentCodeObj) ImplementsAuthSentCode()
type AuthSentCodePaymentRequired ¶ added in v1.6.0
type AuthSentCodePaymentRequired struct {
StoreProduct string
PhoneCodeHash string
SupportEmailAddress string
SupportEmailSubject string
Currency string
Amount int64
}
Official apps may receive this constructor, indicating that due to the high cost of SMS verification codes for the user's country/provider, the user must purchase a Telegram Premium subscription in order to proceed with the login/signup.
func (*AuthSentCodePaymentRequired) CRC ¶ added in v1.6.0
func (*AuthSentCodePaymentRequired) CRC() uint32
func (*AuthSentCodePaymentRequired) ImplementsAuthSentCode ¶ added in v1.6.0
func (*AuthSentCodePaymentRequired) ImplementsAuthSentCode()
type AuthSentCodeSuccess ¶
type AuthSentCodeSuccess struct {
Authorization AuthAuthorization // Authorization info
}
The user successfully authorized using future auth tokens
func (*AuthSentCodeSuccess) CRC ¶
func (*AuthSentCodeSuccess) CRC() uint32
func (*AuthSentCodeSuccess) ImplementsAuthSentCode ¶
func (*AuthSentCodeSuccess) ImplementsAuthSentCode()
type AuthSentCodeType ¶
type AuthSentCodeTypeApp ¶
type AuthSentCodeTypeApp struct {
Length int32 // Length of the code in bytes
}
The code was sent through the telegram app
func (*AuthSentCodeTypeApp) CRC ¶
func (*AuthSentCodeTypeApp) CRC() uint32
func (*AuthSentCodeTypeApp) ImplementsAuthSentCodeType ¶
func (*AuthSentCodeTypeApp) ImplementsAuthSentCodeType()
type AuthSentCodeTypeCall ¶
type AuthSentCodeTypeCall struct {
Length int32 // Length of the verification code
}
The code will be sent via a phone call: a synthesized voice will tell the user which verification code to input.
func (*AuthSentCodeTypeCall) CRC ¶
func (*AuthSentCodeTypeCall) CRC() uint32
func (*AuthSentCodeTypeCall) ImplementsAuthSentCodeType ¶
func (*AuthSentCodeTypeCall) ImplementsAuthSentCodeType()
type AuthSentCodeTypeEmailCode ¶
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
EmailPattern string // Pattern of the email
Length int32 // Length of the sent verification code
ResetAvailablePeriod int32 `tl:"flag:3"` // Clients should wait for the specified amount of seconds before allowing the user to invoke auth.resetLoginEmail (will be 0 for Premium users).
ResetPendingDate int32 `tl:"flag:4"` // An email reset was already requested, and will occur at the specified date.
}
The code was sent via the previously configured login email
func (*AuthSentCodeTypeEmailCode) CRC ¶
func (*AuthSentCodeTypeEmailCode) CRC() uint32
func (*AuthSentCodeTypeEmailCode) FlagIndex ¶
func (*AuthSentCodeTypeEmailCode) FlagIndex() int
func (*AuthSentCodeTypeEmailCode) ImplementsAuthSentCodeType ¶
func (*AuthSentCodeTypeEmailCode) ImplementsAuthSentCodeType()
type AuthSentCodeTypeFirebaseSms ¶
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
PlayIntegrityNonce []byte `tl:"flag:2"` // Play Integrity API nonce
Receipt string `tl:"flag:1"` // On iOS, must be compared with the `receipt` extracted from the received push notification.
PushTimeout int32 `tl:"flag:1"` // On iOS: if a push notification with the `ios_push_secret` isn't received within `push_timeout` seconds, the `next_type` authentication method must be used, with auth.resendCode.
Length int32 // Length of the code that will be delivered.
}
An authentication code should be delivered via SMS after Firebase attestation, as described in the auth documentation.
func (*AuthSentCodeTypeFirebaseSms) CRC ¶
func (*AuthSentCodeTypeFirebaseSms) CRC() uint32
func (*AuthSentCodeTypeFirebaseSms) FlagIndex ¶
func (*AuthSentCodeTypeFirebaseSms) FlagIndex() int
func (*AuthSentCodeTypeFirebaseSms) ImplementsAuthSentCodeType ¶
func (*AuthSentCodeTypeFirebaseSms) ImplementsAuthSentCodeType()
type AuthSentCodeTypeFlashCall ¶
type AuthSentCodeTypeFlashCall struct {
Pattern string // pattern to match
}
The code will be sent via a flash phone call, that will be closed immediately. The phone code will then be the phone number itself, just make sure that the phone number matches the specified pattern.
func (*AuthSentCodeTypeFlashCall) CRC ¶
func (*AuthSentCodeTypeFlashCall) CRC() uint32
func (*AuthSentCodeTypeFlashCall) ImplementsAuthSentCodeType ¶
func (*AuthSentCodeTypeFlashCall) ImplementsAuthSentCodeType()
type AuthSentCodeTypeFragmentSms ¶
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.
}
The code was delivered via fragment.com.
func (*AuthSentCodeTypeFragmentSms) CRC ¶
func (*AuthSentCodeTypeFragmentSms) CRC() uint32
func (*AuthSentCodeTypeFragmentSms) ImplementsAuthSentCodeType ¶
func (*AuthSentCodeTypeFragmentSms) ImplementsAuthSentCodeType()
type AuthSentCodeTypeMissedCall ¶
type AuthSentCodeTypeMissedCall struct {
Prefix string // Prefix of the phone number from which the call will be made
Length int32 // Length of the verification code
}
The code will be sent via a flash phone call, that will be closed immediately. The last digits of the phone number that calls are the code that must be entered manually by the user.
func (*AuthSentCodeTypeMissedCall) CRC ¶
func (*AuthSentCodeTypeMissedCall) CRC() uint32
func (*AuthSentCodeTypeMissedCall) ImplementsAuthSentCodeType ¶
func (*AuthSentCodeTypeMissedCall) ImplementsAuthSentCodeType()
type AuthSentCodeTypeSetUpEmailRequired ¶
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
}
The user should add and verify an email address in order to login as described here.
func (*AuthSentCodeTypeSetUpEmailRequired) CRC ¶
func (*AuthSentCodeTypeSetUpEmailRequired) CRC() uint32
func (*AuthSentCodeTypeSetUpEmailRequired) FlagIndex ¶
func (*AuthSentCodeTypeSetUpEmailRequired) FlagIndex() int
func (*AuthSentCodeTypeSetUpEmailRequired) ImplementsAuthSentCodeType ¶
func (*AuthSentCodeTypeSetUpEmailRequired) ImplementsAuthSentCodeType()
type AuthSentCodeTypeSms ¶
type AuthSentCodeTypeSms struct {
Length int32 // Length of the code in bytes
}
The code was sent via SMS
func (*AuthSentCodeTypeSms) CRC ¶
func (*AuthSentCodeTypeSms) CRC() uint32
func (*AuthSentCodeTypeSms) ImplementsAuthSentCodeType ¶
func (*AuthSentCodeTypeSms) ImplementsAuthSentCodeType()
type AuthSentCodeTypeSmsPhrase ¶
type AuthSentCodeTypeSmsPhrase struct {
Beginning string `tl:"flag:0"` // If set, the secret phrase (and the SMS) starts with this word.
}
The code was sent via SMS as a secret phrase starting with the word specified in `beginning`
func (*AuthSentCodeTypeSmsPhrase) CRC ¶
func (*AuthSentCodeTypeSmsPhrase) CRC() uint32
func (*AuthSentCodeTypeSmsPhrase) FlagIndex ¶
func (*AuthSentCodeTypeSmsPhrase) FlagIndex() int
func (*AuthSentCodeTypeSmsPhrase) ImplementsAuthSentCodeType ¶
func (*AuthSentCodeTypeSmsPhrase) ImplementsAuthSentCodeType()
type AuthSentCodeTypeSmsWord ¶
type AuthSentCodeTypeSmsWord struct {
Beginning string `tl:"flag:0"` // If set, the secret word in the sent SMS (which may contain multiple words) starts with this letter.
}
The code was sent via SMS as a secret word, starting with the letter specified in `beginning`
func (*AuthSentCodeTypeSmsWord) CRC ¶
func (*AuthSentCodeTypeSmsWord) CRC() uint32
func (*AuthSentCodeTypeSmsWord) FlagIndex ¶
func (*AuthSentCodeTypeSmsWord) FlagIndex() int
func (*AuthSentCodeTypeSmsWord) ImplementsAuthSentCodeType ¶
func (*AuthSentCodeTypeSmsWord) ImplementsAuthSentCodeType()
type AuthSignInParams ¶
type AuthSignInParams struct {
PhoneNumber string
PhoneCodeHash string
PhoneCode string `tl:"flag:0"`
EmailVerification EmailVerification `tl:"flag:1"`
}
func (*AuthSignInParams) CRC ¶
func (*AuthSignInParams) CRC() uint32
func (*AuthSignInParams) FlagIndex ¶
func (*AuthSignInParams) FlagIndex() int
type AuthSignUpParams ¶
type AuthSignUpParams struct {
NoJoinedNotifications bool `tl:"flag:0,encoded_in_bitflags"`
PhoneNumber string
PhoneCodeHash string
FirstName string
LastName string
}
func (*AuthSignUpParams) CRC ¶
func (*AuthSignUpParams) CRC() uint32
func (*AuthSignUpParams) FlagIndex ¶
func (*AuthSignUpParams) FlagIndex() int
type Authorization ¶
type Authorization struct {
Current bool `tl:"flag:0,encoded_in_bitflags"`
OfficialApp bool `tl:"flag:1,encoded_in_bitflags"`
PasswordPending bool `tl:"flag:2,encoded_in_bitflags"`
EncryptedRequestsDisabled bool `tl:"flag:3,encoded_in_bitflags"`
CallRequestsDisabled bool `tl:"flag:4,encoded_in_bitflags"`
Unconfirmed bool `tl:"flag:5,encoded_in_bitflags"`
Hash int64
DeviceModel string
Platform string
SystemVersion string
APIID int32
AppName string
AppVersion string
DateCreated int32
DateActive int32
Ip string
Country string
Region string
}
Logged-in session
func (*Authorization) CRC ¶
func (*Authorization) CRC() uint32
func (*Authorization) FlagIndex ¶
func (*Authorization) FlagIndex() int
type AutoDownloadSettings ¶
type AutoDownloadSettings struct {
Disabled bool `tl:"flag:0,encoded_in_bitflags"`
VideoPreloadLarge bool `tl:"flag:1,encoded_in_bitflags"`
AudioPreloadNext bool `tl:"flag:2,encoded_in_bitflags"`
PhonecallsLessData bool `tl:"flag:3,encoded_in_bitflags"`
StoriesPreload bool `tl:"flag:4,encoded_in_bitflags"`
PhotoSizeMax int32
VideoSizeMax int64
FileSizeMax int64
VideoUploadMaxbitrate int32
SmallQueueActiveOperationsMax int32
LargeQueueActiveOperationsMax int32
}
Autodownload settings
func (*AutoDownloadSettings) CRC ¶
func (*AutoDownloadSettings) CRC() uint32
func (*AutoDownloadSettings) FlagIndex ¶
func (*AutoDownloadSettings) FlagIndex() int
type AutoSaveException ¶
type AutoSaveException struct {
Peer Peer
Settings *AutoSaveSettings
}
Peer-specific media autosave settings
func (*AutoSaveException) CRC ¶
func (*AutoSaveException) CRC() uint32
type AutoSaveSettings ¶
type AutoSaveSettings struct {
Photos bool `tl:"flag:0,encoded_in_bitflags"`
Videos bool `tl:"flag:1,encoded_in_bitflags"`
VideoMaxSize int64 `tl:"flag:2"`
}
Media autosave settings
func (*AutoSaveSettings) CRC ¶
func (*AutoSaveSettings) CRC() uint32
func (*AutoSaveSettings) FlagIndex ¶
func (*AutoSaveSettings) FlagIndex() int
type AvailableEffect ¶
type AvailableEffect struct {
PremiumRequired bool `tl:"flag:2,encoded_in_bitflags"`
ID int64
Emoticon string
StaticIconID int64 `tl:"flag:0"`
EffectStickerID int64
EffectAnimationID int64 `tl:"flag:1"`
}
Represents a message effect.
func (*AvailableEffect) CRC ¶
func (*AvailableEffect) CRC() uint32
func (*AvailableEffect) FlagIndex ¶
func (*AvailableEffect) FlagIndex() int
type AvailableReaction ¶
type AvailableReaction struct {
Inactive bool `tl:"flag:0,encoded_in_bitflags"`
Premium bool `tl:"flag:2,encoded_in_bitflags"`
Reaction string
Title string
StaticIcon Document
AppearAnimation Document
SelectAnimation Document
ActivateAnimation Document
EffectAnimation Document
AroundAnimation Document `tl:"flag:1"`
CenterIcon Document `tl:"flag:1"`
}
Animations associated with a message reaction
func (*AvailableReaction) CRC ¶
func (*AvailableReaction) CRC() uint32
func (*AvailableReaction) FlagIndex ¶
func (*AvailableReaction) FlagIndex() int
type BankCardOpenURL ¶
Credit card info URL provided by the bank
func (*BankCardOpenURL) CRC ¶
func (*BankCardOpenURL) CRC() uint32
type BannedBuilder ¶ added in v1.6.10
type BannedBuilder struct {
// contains filtered or unexported fields
}
func (*BannedBuilder) Ban ¶ added in v1.6.10
func (b *BannedBuilder) Ban(until ...int) (bool, error)
func (*BannedBuilder) Invoke ¶ added in v1.6.10
func (b *BannedBuilder) Invoke() (bool, error)
func (*BannedBuilder) Mute ¶ added in v1.6.10
func (b *BannedBuilder) Mute() (bool, error)
func (*BannedBuilder) Revoke ¶ added in v1.6.10
func (b *BannedBuilder) Revoke() *BannedBuilder
func (*BannedBuilder) TillDate ¶ added in v1.6.10
func (b *BannedBuilder) TillDate(tillDate int32) *BannedBuilder
func (*BannedBuilder) Unban ¶ added in v1.6.10
func (b *BannedBuilder) Unban() (bool, error)
func (*BannedBuilder) Unmute ¶ added in v1.6.10
func (b *BannedBuilder) Unmute() (bool, error)
func (*BannedBuilder) WithRights ¶ added in v1.6.10
func (b *BannedBuilder) WithRights(rights *ChatBannedRights) *BannedBuilder
type BannedOptions ¶
type BannedOptions struct {
Ban bool `json:"ban,omitempty"`
Unban bool `json:"unban,omitempty"`
Mute bool `json:"mute,omitempty"`
Unmute bool `json:"unmute,omitempty"`
Rights *ChatBannedRights `json:"rights,omitempty"`
Revoke bool `json:"revoke,omitempty"`
TillDate int32 `json:"till_date,omitempty"`
}
type Boost ¶
type Boost struct {
Gift bool `tl:"flag:1,encoded_in_bitflags"`
Giveaway bool `tl:"flag:2,encoded_in_bitflags"`
Unclaimed bool `tl:"flag:3,encoded_in_bitflags"`
ID string
UserID int64 `tl:"flag:0"`
GiveawayMsgID int32 `tl:"flag:2"`
Date int32
Expires int32
UsedGiftSlug string `tl:"flag:4"`
Multiplier int32 `tl:"flag:5"`
Stars int64 `tl:"flag:6"`
}
Info about one or more boosts applied by a specific user.
type BotAppNotModified ¶
type BotAppNotModified struct{}
Bot app info hasn't changed.
func (*BotAppNotModified) CRC ¶
func (*BotAppNotModified) CRC() uint32
func (*BotAppNotModified) ImplementsBotApp ¶
func (*BotAppNotModified) ImplementsBotApp()
type BotAppObj ¶
type BotAppObj struct {
ID int64 // bot mini app ID
AccessHash int64 // bot mini app access hash
ShortName string // bot mini app short name, used to generate Direct Mini App deep links.
Title string // bot mini app title.
Description string // bot mini app description.
Photo Photo // bot mini app photo.
Document Document `tl:"flag:0"` // bot mini app animation.
Hash int64 // Hash to pass to messages.getBotApp, to avoid refetching bot app info if it hasn't changed.
}
Contains information about a direct link Mini App.
func (*BotAppObj) ImplementsBotApp ¶
func (*BotAppObj) ImplementsBotApp()
type BotAppSettings ¶ added in v1.3.21
type BotAppSettings struct {
PlaceholderPath []byte `tl:"flag:0"`
BackgroundColor int32 `tl:"flag:1"`
BackgroundDarkColor int32 `tl:"flag:2"`
HeaderColor int32 `tl:"flag:3"`
HeaderDarkColor int32 `tl:"flag:4"`
}
Mini app settings
func (*BotAppSettings) CRC ¶ added in v1.3.21
func (*BotAppSettings) CRC() uint32
func (*BotAppSettings) FlagIndex ¶ added in v1.3.21
func (*BotAppSettings) FlagIndex() int
type BotBusinessConnection ¶
type BotBusinessConnection struct {
Disabled bool `tl:"flag:1,encoded_in_bitflags"`
ConnectionID string
UserID int64
DcID int32
Date int32
Rights *BusinessBotRights `tl:"flag:2"`
}
Contains info about a bot business connection.
func (*BotBusinessConnection) CRC ¶
func (*BotBusinessConnection) CRC() uint32
func (*BotBusinessConnection) FlagIndex ¶
func (*BotBusinessConnection) FlagIndex() int
type BotCommand ¶
Describes a bot command that can be used in a chat
func (*BotCommand) CRC ¶
func (*BotCommand) CRC() uint32
type BotCommandScope ¶
type BotCommandScopeChatAdmins ¶
type BotCommandScopeChatAdmins struct{}
The specified bot commands will be valid only for chat administrators, in all groups and supergroups.
func (*BotCommandScopeChatAdmins) CRC ¶
func (*BotCommandScopeChatAdmins) CRC() uint32
func (*BotCommandScopeChatAdmins) ImplementsBotCommandScope ¶
func (*BotCommandScopeChatAdmins) ImplementsBotCommandScope()
type BotCommandScopeChats ¶
type BotCommandScopeChats struct{}
The specified bot commands will be valid in all groups and supergroups.
func (*BotCommandScopeChats) CRC ¶
func (*BotCommandScopeChats) CRC() uint32
func (*BotCommandScopeChats) ImplementsBotCommandScope ¶
func (*BotCommandScopeChats) ImplementsBotCommandScope()
type BotCommandScopeDefault ¶
type BotCommandScopeDefault struct{}
The commands will be valid in all dialogs
func (*BotCommandScopeDefault) CRC ¶
func (*BotCommandScopeDefault) CRC() uint32
func (*BotCommandScopeDefault) ImplementsBotCommandScope ¶
func (*BotCommandScopeDefault) ImplementsBotCommandScope()
type BotCommandScopePeer ¶
type BotCommandScopePeer struct {
Peer InputPeer // The dialog
}
The specified bot commands will be valid only in a specific dialog.
func (*BotCommandScopePeer) CRC ¶
func (*BotCommandScopePeer) CRC() uint32
func (*BotCommandScopePeer) ImplementsBotCommandScope ¶
func (*BotCommandScopePeer) ImplementsBotCommandScope()
type BotCommandScopePeerAdmins ¶
type BotCommandScopePeerAdmins struct {
Peer InputPeer // The chat
}
The specified bot commands will be valid for all admins of the specified group or supergroup.
func (*BotCommandScopePeerAdmins) CRC ¶
func (*BotCommandScopePeerAdmins) CRC() uint32
func (*BotCommandScopePeerAdmins) ImplementsBotCommandScope ¶
func (*BotCommandScopePeerAdmins) ImplementsBotCommandScope()
type BotCommandScopePeerUser ¶
The specified bot commands will be valid only for a specific user in the specified group or supergroup.
func (*BotCommandScopePeerUser) CRC ¶
func (*BotCommandScopePeerUser) CRC() uint32
func (*BotCommandScopePeerUser) ImplementsBotCommandScope ¶
func (*BotCommandScopePeerUser) ImplementsBotCommandScope()
type BotCommandScopeUsers ¶
type BotCommandScopeUsers struct{}
The specified bot commands will only be valid in all private chats with users.
func (*BotCommandScopeUsers) CRC ¶
func (*BotCommandScopeUsers) CRC() uint32
func (*BotCommandScopeUsers) ImplementsBotCommandScope ¶
func (*BotCommandScopeUsers) ImplementsBotCommandScope()
type BotInfo ¶
type BotInfo struct {
HasPreviewMedias bool `tl:"flag:6,encoded_in_bitflags"`
UserID int64 `tl:"flag:0"`
Description string `tl:"flag:1"`
DescriptionPhoto Photo `tl:"flag:4"`
DescriptionDocument Document `tl:"flag:5"`
Commands []*BotCommand `tl:"flag:2"`
MenuButton BotMenuButton `tl:"flag:3"`
PrivacyPolicyURL string `tl:"flag:7"`
AppSettings *BotAppSettings `tl:"flag:8"`
VerifierSettings *BotVerifierSettings `tl:"flag:9"`
}
Info about bots (available bot commands, etc)
type BotInlineMediaResult ¶
type BotInlineMediaResult struct {
ID string // Result ID
Type string // Result type (see bot API docs)
Photo Photo `tl:"flag:0"` // If type is `photo`, the photo to send
Document Document `tl:"flag:1"` // If type is `document`, the document to send
Title string `tl:"flag:2"` // Result title
Description string `tl:"flag:3"` // Description
SendMessage BotInlineMessage // Depending on the `type` and on the constructor, contains the caption of the media or the content of the message to be sent instead of the media
}
Media result
func (*BotInlineMediaResult) CRC ¶
func (*BotInlineMediaResult) CRC() uint32
func (*BotInlineMediaResult) FlagIndex ¶
func (*BotInlineMediaResult) FlagIndex() int
func (*BotInlineMediaResult) ImplementsBotInlineResult ¶
func (*BotInlineMediaResult) ImplementsBotInlineResult()
type BotInlineMessage ¶
type BotInlineMessageMediaAuto ¶
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
Entities []MessageEntity `tl:"flag:1"` // Message entities for styled text
ReplyMarkup ReplyMarkup `tl:"flag:2"` // Inline keyboard
}
Send whatever media is attached to the botInlineMediaResult
func (*BotInlineMessageMediaAuto) CRC ¶
func (*BotInlineMessageMediaAuto) CRC() uint32
func (*BotInlineMessageMediaAuto) FlagIndex ¶
func (*BotInlineMessageMediaAuto) FlagIndex() int
func (*BotInlineMessageMediaAuto) ImplementsBotInlineMessage ¶
func (*BotInlineMessageMediaAuto) ImplementsBotInlineMessage()
type BotInlineMessageMediaContact ¶
type BotInlineMessageMediaContact struct {
PhoneNumber string // Phone number
FirstName string // First name
LastName string // Last name
Vcard string // VCard info
ReplyMarkup ReplyMarkup `tl:"flag:2"` // Inline keyboard
}
Send a contact
func (*BotInlineMessageMediaContact) CRC ¶
func (*BotInlineMessageMediaContact) CRC() uint32
func (*BotInlineMessageMediaContact) FlagIndex ¶
func (*BotInlineMessageMediaContact) FlagIndex() int
func (*BotInlineMessageMediaContact) ImplementsBotInlineMessage ¶
func (*BotInlineMessageMediaContact) ImplementsBotInlineMessage()
type BotInlineMessageMediaGeo ¶
type BotInlineMessageMediaGeo struct {
Geo GeoPoint // Geolocation
Heading int32 `tl:"flag:0"` // For live locations, a direction in which the location moves, in degrees; 1-360.
Period int32 `tl:"flag:1"` // Validity period
ProximityNotificationRadius int32 `tl:"flag:3"` // For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000).
ReplyMarkup ReplyMarkup `tl:"flag:2"` // Inline keyboard
}
Send a geolocation
func (*BotInlineMessageMediaGeo) CRC ¶
func (*BotInlineMessageMediaGeo) CRC() uint32
func (*BotInlineMessageMediaGeo) FlagIndex ¶
func (*BotInlineMessageMediaGeo) FlagIndex() int
func (*BotInlineMessageMediaGeo) ImplementsBotInlineMessage ¶
func (*BotInlineMessageMediaGeo) ImplementsBotInlineMessage()
type BotInlineMessageMediaInvoice ¶
type BotInlineMessageMediaInvoice struct {
ShippingAddressRequested bool `tl:"flag:1,encoded_in_bitflags"` // Set this flag if you require the user's shipping address to complete the order
Test bool `tl:"flag:3,encoded_in_bitflags"` // Test invoice
Title string // Product name, 1-32 characters
Description string // Product description, 1-255 characters
Photo WebDocument `tl:"flag:0"` // Product photo
Currency string // Three-letter ISO 4217 currency code, or `XTR` for Telegram Stars.
TotalAmount 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).
ReplyMarkup ReplyMarkup `tl:"flag:2"` // Inline keyboard
}
Send an invoice
func (*BotInlineMessageMediaInvoice) CRC ¶
func (*BotInlineMessageMediaInvoice) CRC() uint32
func (*BotInlineMessageMediaInvoice) FlagIndex ¶
func (*BotInlineMessageMediaInvoice) FlagIndex() int
func (*BotInlineMessageMediaInvoice) ImplementsBotInlineMessage ¶
func (*BotInlineMessageMediaInvoice) ImplementsBotInlineMessage()
type BotInlineMessageMediaVenue ¶
type BotInlineMessageMediaVenue struct {
Geo GeoPoint // Geolocation of venue
Title string // Venue name
Address string // Address
Provider string // Venue provider: currently only "foursquare" and "gplaces" (Google Places) need to be supported
VenueID string // Venue ID in the provider's database
VenueType string // Venue type in the provider's database
ReplyMarkup ReplyMarkup `tl:"flag:2"` // Inline keyboard
}
Send a venue
func (*BotInlineMessageMediaVenue) CRC ¶
func (*BotInlineMessageMediaVenue) CRC() uint32
func (*BotInlineMessageMediaVenue) FlagIndex ¶
func (*BotInlineMessageMediaVenue) FlagIndex() int
func (*BotInlineMessageMediaVenue) ImplementsBotInlineMessage ¶
func (*BotInlineMessageMediaVenue) ImplementsBotInlineMessage()
type BotInlineMessageMediaWebPage ¶
type BotInlineMessageMediaWebPage 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.
ForceLargeMedia bool `tl:"flag:4,encoded_in_bitflags"` // If set, specifies that a large media preview should be used.
ForceSmallMedia bool `tl:"flag:5,encoded_in_bitflags"` // If set, specifies that a small media preview should be used.
Manual bool `tl:"flag:7,encoded_in_bitflags"` // If set, indicates that the URL used for the webpage preview was specified manually using inputMediaWebPage, and may not be related to any of the URLs specified in the message.
Safe bool `tl:"flag:8,encoded_in_bitflags"` // If set, the link can be opened directly without user confirmation.
Message string // The message, can be empty.
Entities []MessageEntity `tl:"flag:1"` // Message entities for styled text
URL string // The URL to use for the link preview.
ReplyMarkup ReplyMarkup `tl:"flag:2"` // Reply markup for sending bot buttons
}
Specifies options that must be used to generate the link preview for the message, or even a standalone link preview without an attached message.
func (*BotInlineMessageMediaWebPage) CRC ¶
func (*BotInlineMessageMediaWebPage) CRC() uint32
func (*BotInlineMessageMediaWebPage) FlagIndex ¶
func (*BotInlineMessageMediaWebPage) FlagIndex() int
func (*BotInlineMessageMediaWebPage) ImplementsBotInlineMessage ¶
func (*BotInlineMessageMediaWebPage) ImplementsBotInlineMessage()
type BotInlineMessageText ¶
type BotInlineMessageText struct {
NoWebpage bool `tl:"flag:0,encoded_in_bitflags"` // Disable webpage preview
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 // The message
Entities []MessageEntity `tl:"flag:1"` // Message entities for styled text
ReplyMarkup ReplyMarkup `tl:"flag:2"` // Inline keyboard
}
Send a simple text message
func (*BotInlineMessageText) CRC ¶
func (*BotInlineMessageText) CRC() uint32
func (*BotInlineMessageText) FlagIndex ¶
func (*BotInlineMessageText) FlagIndex() int
func (*BotInlineMessageText) ImplementsBotInlineMessage ¶
func (*BotInlineMessageText) ImplementsBotInlineMessage()
type BotInlineResult ¶
type BotInlineResultObj ¶
type BotInlineResultObj struct {
ID string // Result ID
Type string // Result type (see bot API docs)
Title string `tl:"flag:1"` // Result title
Description string `tl:"flag:2"` // Result description
URL string `tl:"flag:3"` // URL of article or webpage
Thumb WebDocument `tl:"flag:4"` // Thumbnail for the result
Content WebDocument `tl:"flag:5"` // Content of the result
SendMessage BotInlineMessage // Message to send
}
Generic result
func (*BotInlineResultObj) CRC ¶
func (*BotInlineResultObj) CRC() uint32
func (*BotInlineResultObj) FlagIndex ¶
func (*BotInlineResultObj) FlagIndex() int
func (*BotInlineResultObj) ImplementsBotInlineResult ¶
func (*BotInlineResultObj) ImplementsBotInlineResult()
type BotMenuButton ¶
type BotMenuButtonCommands ¶
type BotMenuButtonCommands struct{}
Bot menu button that opens the bot command list when clicked.
func (*BotMenuButtonCommands) CRC ¶
func (*BotMenuButtonCommands) CRC() uint32
func (*BotMenuButtonCommands) ImplementsBotMenuButton ¶
func (*BotMenuButtonCommands) ImplementsBotMenuButton()
type BotMenuButtonDefault ¶
type BotMenuButtonDefault struct{}
Placeholder bot menu button never returned to users:
func (*BotMenuButtonDefault) CRC ¶
func (*BotMenuButtonDefault) CRC() uint32
func (*BotMenuButtonDefault) ImplementsBotMenuButton ¶
func (*BotMenuButtonDefault) ImplementsBotMenuButton()
type BotMenuButtonObj ¶
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
}
Bot menu button that opens a web app when clicked.
func (*BotMenuButtonObj) CRC ¶
func (*BotMenuButtonObj) CRC() uint32
func (*BotMenuButtonObj) ImplementsBotMenuButton ¶
func (*BotMenuButtonObj) ImplementsBotMenuButton()
type BotPreviewMedia ¶
type BotPreviewMedia struct {
Date int32
Media MessageMedia
}
Represents a Main Mini App preview media
func (*BotPreviewMedia) CRC ¶
func (*BotPreviewMedia) CRC() uint32
type BotVerification ¶ added in v1.5.3
Describes a bot verification icon.
func (*BotVerification) CRC ¶ added in v1.5.3
func (*BotVerification) CRC() uint32
type BotVerifierSettings ¶ added in v1.5.3
type BotVerifierSettings struct {
CanModifyCustomDescription bool `tl:"flag:1,encoded_in_bitflags"`
Icon int64
Company string
CustomDescription string `tl:"flag:0"`
}
Info about the current verifier bot.
func (*BotVerifierSettings) CRC ¶ added in v1.5.3
func (*BotVerifierSettings) CRC() uint32
func (*BotVerifierSettings) FlagIndex ¶ added in v1.5.3
func (*BotVerifierSettings) FlagIndex() int
type BotsAddPreviewMediaParams ¶
type BotsAddPreviewMediaParams struct {
Bot InputUser
LangCode string
Media InputMedia
}
func (*BotsAddPreviewMediaParams) CRC ¶
func (*BotsAddPreviewMediaParams) CRC() uint32
type BotsAllowSendMessageParams ¶
type BotsAllowSendMessageParams struct {
Bot InputUser
}
func (*BotsAllowSendMessageParams) CRC ¶
func (*BotsAllowSendMessageParams) CRC() uint32
type BotsAnswerWebhookJsonQueryParams ¶
func (*BotsAnswerWebhookJsonQueryParams) CRC ¶
func (*BotsAnswerWebhookJsonQueryParams) CRC() uint32
type BotsBotInfo ¶
Localized information about a bot.
func (*BotsBotInfo) CRC ¶
func (*BotsBotInfo) CRC() uint32
type BotsCanSendMessageParams ¶
type BotsCanSendMessageParams struct {
Bot InputUser
}
func (*BotsCanSendMessageParams) CRC ¶
func (*BotsCanSendMessageParams) CRC() uint32
type BotsCheckDownloadFileParamsParams ¶ added in v1.4.2
func (*BotsCheckDownloadFileParamsParams) CRC ¶ added in v1.4.2
func (*BotsCheckDownloadFileParamsParams) CRC() uint32
type BotsDeletePreviewMediaParams ¶
type BotsDeletePreviewMediaParams struct {
Bot InputUser
LangCode string
Media []InputMedia
}
func (*BotsDeletePreviewMediaParams) CRC ¶
func (*BotsDeletePreviewMediaParams) CRC() uint32
type BotsEditPreviewMediaParams ¶
type BotsEditPreviewMediaParams struct {
Bot InputUser
LangCode string
Media InputMedia
NewMedia InputMedia
}
func (*BotsEditPreviewMediaParams) CRC ¶
func (*BotsEditPreviewMediaParams) CRC() uint32
type BotsGetAdminedBotsParams ¶ added in v1.4.8
type BotsGetAdminedBotsParams struct{}
func (*BotsGetAdminedBotsParams) CRC ¶ added in v1.4.8
func (*BotsGetAdminedBotsParams) CRC() uint32
type BotsGetBotCommandsParams ¶
type BotsGetBotCommandsParams struct {
Scope BotCommandScope
LangCode string
}
func (*BotsGetBotCommandsParams) CRC ¶
func (*BotsGetBotCommandsParams) CRC() uint32
type BotsGetBotInfoParams ¶
func (*BotsGetBotInfoParams) CRC ¶
func (*BotsGetBotInfoParams) CRC() uint32
func (*BotsGetBotInfoParams) FlagIndex ¶
func (*BotsGetBotInfoParams) FlagIndex() int
type BotsGetBotMenuButtonParams ¶
type BotsGetBotMenuButtonParams struct {
UserID InputUser
}
func (*BotsGetBotMenuButtonParams) CRC ¶
func (*BotsGetBotMenuButtonParams) CRC() uint32
type BotsGetBotRecommendationsParams ¶ added in v1.5.3
type BotsGetBotRecommendationsParams struct {
Bot InputUser
}
func (*BotsGetBotRecommendationsParams) CRC ¶ added in v1.5.3
func (*BotsGetBotRecommendationsParams) CRC() uint32
type BotsGetPopularAppBotsParams ¶
func (*BotsGetPopularAppBotsParams) CRC ¶
func (*BotsGetPopularAppBotsParams) CRC() uint32
type BotsGetPreviewInfoParams ¶
func (*BotsGetPreviewInfoParams) CRC ¶
func (*BotsGetPreviewInfoParams) CRC() uint32
type BotsGetPreviewMediasParams ¶
type BotsGetPreviewMediasParams struct {
Bot InputUser
}
func (*BotsGetPreviewMediasParams) CRC ¶
func (*BotsGetPreviewMediasParams) CRC() uint32
type BotsInvokeWebViewCustomMethodParams ¶
type BotsInvokeWebViewCustomMethodParams struct {
Bot InputUser
CustomMethod string
Params *DataJson
}
func (*BotsInvokeWebViewCustomMethodParams) CRC ¶
func (*BotsInvokeWebViewCustomMethodParams) CRC() uint32
type BotsPopularAppBots ¶
Popular Main Mini Apps, to be used in the apps tab of global search.
func (*BotsPopularAppBots) CRC ¶
func (*BotsPopularAppBots) CRC() uint32
func (*BotsPopularAppBots) FlagIndex ¶
func (*BotsPopularAppBots) FlagIndex() int
type BotsPreviewInfo ¶
type BotsPreviewInfo struct {
Media []*BotPreviewMedia
LangCodes []string
}
Contains info about Main Mini App previews
func (*BotsPreviewInfo) CRC ¶
func (*BotsPreviewInfo) CRC() uint32
type BotsReorderPreviewMediasParams ¶
type BotsReorderPreviewMediasParams struct {
Bot InputUser
LangCode string
Order []InputMedia
}
func (*BotsReorderPreviewMediasParams) CRC ¶
func (*BotsReorderPreviewMediasParams) CRC() uint32
type BotsReorderUsernamesParams ¶
func (*BotsReorderUsernamesParams) CRC ¶
func (*BotsReorderUsernamesParams) CRC() uint32
type BotsResetBotCommandsParams ¶
type BotsResetBotCommandsParams struct {
Scope BotCommandScope
LangCode string
}
func (*BotsResetBotCommandsParams) CRC ¶
func (*BotsResetBotCommandsParams) CRC() uint32
type BotsSendCustomRequestParams ¶
func (*BotsSendCustomRequestParams) CRC ¶
func (*BotsSendCustomRequestParams) CRC() uint32
type BotsSetBotBroadcastDefaultAdminRightsParams ¶
type BotsSetBotBroadcastDefaultAdminRightsParams struct {
AdminRights *ChatAdminRights
}
func (*BotsSetBotBroadcastDefaultAdminRightsParams) CRC ¶
func (*BotsSetBotBroadcastDefaultAdminRightsParams) CRC() uint32
type BotsSetBotCommandsParams ¶
type BotsSetBotCommandsParams struct {
Scope BotCommandScope
LangCode string
Commands []*BotCommand
}
func (*BotsSetBotCommandsParams) CRC ¶
func (*BotsSetBotCommandsParams) CRC() uint32
type BotsSetBotGroupDefaultAdminRightsParams ¶
type BotsSetBotGroupDefaultAdminRightsParams struct {
AdminRights *ChatAdminRights
}
func (*BotsSetBotGroupDefaultAdminRightsParams) CRC ¶
func (*BotsSetBotGroupDefaultAdminRightsParams) CRC() uint32
type BotsSetBotInfoParams ¶
type BotsSetBotInfoParams struct {
Bot InputUser `tl:"flag:2"`
LangCode string
Name string `tl:"flag:3"`
About string `tl:"flag:0"`
Description string `tl:"flag:1"`
}
func (*BotsSetBotInfoParams) CRC ¶
func (*BotsSetBotInfoParams) CRC() uint32
func (*BotsSetBotInfoParams) FlagIndex ¶
func (*BotsSetBotInfoParams) FlagIndex() int
type BotsSetBotMenuButtonParams ¶
type BotsSetBotMenuButtonParams struct {
UserID InputUser
Button BotMenuButton
}
func (*BotsSetBotMenuButtonParams) CRC ¶
func (*BotsSetBotMenuButtonParams) CRC() uint32
type BotsSetCustomVerificationParams ¶ added in v1.5.3
type BotsSetCustomVerificationParams struct {
Enabled bool `tl:"flag:1,encoded_in_bitflags"`
Bot InputUser `tl:"flag:0"`
Peer InputPeer
CustomDescription string `tl:"flag:2"`
}
func (*BotsSetCustomVerificationParams) CRC ¶ added in v1.5.3
func (*BotsSetCustomVerificationParams) CRC() uint32
func (*BotsSetCustomVerificationParams) FlagIndex ¶ added in v1.5.3
func (*BotsSetCustomVerificationParams) FlagIndex() int
type BotsToggleUserEmojiStatusPermissionParams ¶ added in v1.4.2
func (*BotsToggleUserEmojiStatusPermissionParams) CRC ¶ added in v1.4.2
func (*BotsToggleUserEmojiStatusPermissionParams) CRC() uint32
type BotsToggleUsernameParams ¶
func (*BotsToggleUsernameParams) CRC ¶
func (*BotsToggleUsernameParams) CRC() uint32
type BotsUpdateStarRefProgramParams ¶ added in v1.4.8
type BotsUpdateStarRefProgramParams struct {
Bot InputUser
CommissionPermille int32
DurationMonths int32 `tl:"flag:0"`
}
func (*BotsUpdateStarRefProgramParams) CRC ¶ added in v1.4.8
func (*BotsUpdateStarRefProgramParams) CRC() uint32
func (*BotsUpdateStarRefProgramParams) FlagIndex ¶ added in v1.4.8
func (*BotsUpdateStarRefProgramParams) FlagIndex() int
type BotsUpdateUserEmojiStatusParams ¶ added in v1.4.2
type BotsUpdateUserEmojiStatusParams struct {
UserID InputUser
EmojiStatus EmojiStatus
}
func (*BotsUpdateUserEmojiStatusParams) CRC ¶ added in v1.4.2
func (*BotsUpdateUserEmojiStatusParams) CRC() uint32
type BuildReplyOptions ¶ added in v1.5.4
type BusinessAwayMessage ¶
type BusinessAwayMessage struct {
OfflineOnly bool `tl:"flag:0,encoded_in_bitflags"`
ShortcutID int32
Schedule BusinessAwayMessageSchedule
Recipients *BusinessRecipients
}
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.
func (*BusinessAwayMessage) CRC ¶
func (*BusinessAwayMessage) CRC() uint32
func (*BusinessAwayMessage) FlagIndex ¶
func (*BusinessAwayMessage) FlagIndex() int
type BusinessAwayMessageScheduleAlways ¶
type BusinessAwayMessageScheduleAlways struct{}
Always send Telegram Business away messages to users writing to us in private.
func (*BusinessAwayMessageScheduleAlways) CRC ¶
func (*BusinessAwayMessageScheduleAlways) CRC() uint32
func (*BusinessAwayMessageScheduleAlways) ImplementsBusinessAwayMessageSchedule ¶
func (*BusinessAwayMessageScheduleAlways) ImplementsBusinessAwayMessageSchedule()
type BusinessAwayMessageScheduleCustom ¶
type BusinessAwayMessageScheduleCustom struct {
StartDate int32 // Start date (UNIX timestamp).
EndDate int32 // End date (UNIX timestamp).
}
Send Telegram Business away messages to users writing to us in private in the specified time span.
func (*BusinessAwayMessageScheduleCustom) CRC ¶
func (*BusinessAwayMessageScheduleCustom) CRC() uint32
func (*BusinessAwayMessageScheduleCustom) ImplementsBusinessAwayMessageSchedule ¶
func (*BusinessAwayMessageScheduleCustom) ImplementsBusinessAwayMessageSchedule()
type BusinessAwayMessageScheduleOutsideWorkHours ¶
type BusinessAwayMessageScheduleOutsideWorkHours struct{}
Send Telegram Business away messages to users writing to us in private outside of the configured Telegram Business working hours.
func (*BusinessAwayMessageScheduleOutsideWorkHours) CRC ¶
func (*BusinessAwayMessageScheduleOutsideWorkHours) CRC() uint32
func (*BusinessAwayMessageScheduleOutsideWorkHours) ImplementsBusinessAwayMessageSchedule ¶
func (*BusinessAwayMessageScheduleOutsideWorkHours) ImplementsBusinessAwayMessageSchedule()
type BusinessBotRecipients ¶
type BusinessBotRecipients struct {
ExistingChats bool `tl:"flag:0,encoded_in_bitflags"`
NewChats bool `tl:"flag:1,encoded_in_bitflags"`
Contacts bool `tl:"flag:2,encoded_in_bitflags"`
NonContacts bool `tl:"flag:3,encoded_in_bitflags"`
ExcludeSelected bool `tl:"flag:5,encoded_in_bitflags"`
Users []int64 `tl:"flag:4"`
ExcludeUsers []int64 `tl:"flag:6"`
}
Specifies the private chats that a connected business bot may receive messages and interact with.
func (*BusinessBotRecipients) CRC ¶
func (*BusinessBotRecipients) CRC() uint32
func (*BusinessBotRecipients) FlagIndex ¶
func (*BusinessBotRecipients) FlagIndex() int
type BusinessBotRights ¶ added in v1.6.0
type BusinessBotRights struct {
Reply bool `tl:"flag:0,encoded_in_bitflags"`
ReadMessages bool `tl:"flag:1,encoded_in_bitflags"`
DeleteSentMessages bool `tl:"flag:2,encoded_in_bitflags"`
DeleteReceivedMessages bool `tl:"flag:3,encoded_in_bitflags"`
EditName bool `tl:"flag:4,encoded_in_bitflags"`
EditBio bool `tl:"flag:5,encoded_in_bitflags"`
EditProfilePhoto bool `tl:"flag:6,encoded_in_bitflags"`
EditUsername bool `tl:"flag:7,encoded_in_bitflags"`
ViewGifts bool `tl:"flag:8,encoded_in_bitflags"`
SellGifts bool `tl:"flag:9,encoded_in_bitflags"`
ChangeGiftSettings bool `tl:"flag:10,encoded_in_bitflags"`
TransferAndUpgradeGifts bool `tl:"flag:11,encoded_in_bitflags"`
TransferStars bool `tl:"flag:12,encoded_in_bitflags"`
ManageStories bool `tl:"flag:13,encoded_in_bitflags"`
}
Business bot rights.
func (*BusinessBotRights) CRC ¶ added in v1.6.0
func (*BusinessBotRights) CRC() uint32
func (*BusinessBotRights) FlagIndex ¶ added in v1.6.0
func (*BusinessBotRights) FlagIndex() int
type BusinessChatLink ¶
type BusinessChatLink struct {
Link string
Message string
Entities []MessageEntity `tl:"flag:0"`
Title string `tl:"flag:1"`
Views int32
}
Contains info about a business chat deep link created by the current account.
func (*BusinessChatLink) CRC ¶
func (*BusinessChatLink) CRC() uint32
func (*BusinessChatLink) FlagIndex ¶
func (*BusinessChatLink) FlagIndex() int
type BusinessGreetingMessage ¶
type BusinessGreetingMessage struct {
ShortcutID int32
Recipients *BusinessRecipients
NoActivityDays int32
}
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.
func (*BusinessGreetingMessage) CRC ¶
func (*BusinessGreetingMessage) CRC() uint32
type BusinessIntro ¶
Telegram Business introduction.
func (*BusinessIntro) CRC ¶
func (*BusinessIntro) CRC() uint32
func (*BusinessIntro) FlagIndex ¶
func (*BusinessIntro) FlagIndex() int
type BusinessLocation ¶
Represents the location of a Telegram Business.
func (*BusinessLocation) CRC ¶
func (*BusinessLocation) CRC() uint32
func (*BusinessLocation) FlagIndex ¶
func (*BusinessLocation) FlagIndex() int
type BusinessRecipients ¶
type BusinessRecipients struct {
ExistingChats bool `tl:"flag:0,encoded_in_bitflags"`
NewChats bool `tl:"flag:1,encoded_in_bitflags"`
Contacts bool `tl:"flag:2,encoded_in_bitflags"`
NonContacts bool `tl:"flag:3,encoded_in_bitflags"`
ExcludeSelected bool `tl:"flag:5,encoded_in_bitflags"`
Users []int64 `tl:"flag:4"`
}
Specifies the chats that can receive Telegram Business away and greeting messages.
func (*BusinessRecipients) CRC ¶
func (*BusinessRecipients) CRC() uint32
func (*BusinessRecipients) FlagIndex ¶
func (*BusinessRecipients) FlagIndex() int
type BusinessWeeklyOpen ¶
A time interval, indicating the opening hours of a business.
func (*BusinessWeeklyOpen) CRC ¶
func (*BusinessWeeklyOpen) CRC() uint32
type BusinessWorkHours ¶
type BusinessWorkHours struct {
OpenNow bool `tl:"flag:0,encoded_in_bitflags"`
TimezoneID string
WeeklyOpen []*BusinessWeeklyOpen
}
Specifies a set of Telegram Business opening hours.
func (*BusinessWorkHours) CRC ¶
func (*BusinessWorkHours) CRC() uint32
func (*BusinessWorkHours) FlagIndex ¶
func (*BusinessWorkHours) FlagIndex() int
type ButtonBuilder ¶ added in v1.5.3
type ButtonBuilder struct{}
func (ButtonBuilder) Auth ¶ added in v1.5.3
func (ButtonBuilder) Auth(text, url, forwardText string, bot InputUser, requestWriteAccess ...bool) *InputKeyboardButtonURLAuth
func (ButtonBuilder) Buy ¶ added in v1.5.3
func (ButtonBuilder) Buy(text string) *KeyboardButtonBuy
func (ButtonBuilder) Clear ¶ added in v1.5.3
func (ButtonBuilder) Clear() *ReplyKeyboardHide
func (ButtonBuilder) Copy ¶ added in v1.5.4
func (ButtonBuilder) Copy(text string, copyText string) *KeyboardButtonCopy
func (ButtonBuilder) Data ¶ added in v1.5.3
func (ButtonBuilder) Data(text, data string) *KeyboardButtonCallback
func (ButtonBuilder) Force ¶ added in v1.5.3
func (ButtonBuilder) Force(placeHolder string) *ReplyKeyboardForceReply
func (ButtonBuilder) Game ¶ added in v1.5.3
func (ButtonBuilder) Game(text string) *KeyboardButtonGame
func (ButtonBuilder) Keyboard ¶ added in v1.5.3
func (ButtonBuilder) Keyboard(Rows ...*KeyboardButtonRow) *ReplyInlineMarkup
func (ButtonBuilder) Mention ¶ added in v1.5.3
func (ButtonBuilder) Mention(text string, user InputUser) *InputKeyboardButtonUserProfile
func (ButtonBuilder) RequestLocation ¶ added in v1.5.3
func (ButtonBuilder) RequestLocation(text string) *KeyboardButtonRequestGeoLocation
func (ButtonBuilder) RequestPeer ¶ added in v1.5.3
func (ButtonBuilder) RequestPeer(text string, buttonID int32, peerType RequestPeerType, options ...RequestPeerOptions) *InputKeyboardButtonRequestPeer
func (ButtonBuilder) RequestPhone ¶ added in v1.5.3
func (ButtonBuilder) RequestPhone(text string) *KeyboardButtonRequestPhone
func (ButtonBuilder) RequestPoll ¶ added in v1.5.3
func (ButtonBuilder) RequestPoll(text string, quiz bool) *KeyboardButtonRequestPoll
func (ButtonBuilder) Row ¶ added in v1.5.3
func (ButtonBuilder) Row(Buttons ...KeyboardButton) *KeyboardButtonRow
func (ButtonBuilder) SwitchInline ¶ added in v1.5.3
func (ButtonBuilder) SwitchInline(text string, samePeer bool, query string) *KeyboardButtonSwitchInline
func (ButtonBuilder) Text ¶ added in v1.5.3
func (ButtonBuilder) Text(text string) *KeyboardButtonObj
func (ButtonBuilder) URL ¶ added in v1.5.3
func (ButtonBuilder) URL(text, url string) *KeyboardButtonURL
func (ButtonBuilder) WebView ¶ added in v1.5.3
func (ButtonBuilder) WebView(text, url string) *KeyboardButtonSimpleWebView
type CACHE ¶
type CACHE struct {
*sync.RWMutex
InputPeers *InputPeerCache `json:"input_peers,omitempty"`
// contains filtered or unexported fields
}
func NewCache ¶
func NewCache(fileName string, opts ...*CacheConfig) *CACHE
func (*CACHE) BindToUser ¶ added in v1.6.9
func (*CACHE) ClearMediaCache ¶ added in v1.6.10
func (c *CACHE) ClearMediaCache()
func (*CACHE) DeleteCachedMedia ¶ added in v1.6.10
func (*CACHE) ExportJSON ¶
func (*CACHE) GetCachedMedia ¶ added in v1.6.10
func (c *CACHE) GetCachedMedia(key string) (*CachedMedia, bool)
GetCachedMedia retrieves a cached media by its key (URL or file hash)
func (*CACHE) ImportJSON ¶
func (*CACHE) LookupUsername ¶ added in v1.6.10
func (*CACHE) RebindToUser ¶ added in v1.7.0
RebindToUser rebinds the cache to a different user ID Used when actual user ID is discovered after initial binding with 0
func (*CACHE) SetCachedMedia ¶ added in v1.6.10
func (c *CACHE) SetCachedMedia(key string, media *CachedMedia, ttlSeconds ...int64)
func (*CACHE) SetStorage ¶ added in v1.6.9
func (c *CACHE) SetStorage(storage CacheStorage) *CACHE
SetStorage sets a custom storage backend for the cache
func (*CACHE) SetWriteFile ¶ added in v1.3.21
func (*CACHE) UpdateChannel ¶
func (*CACHE) UpdateChat ¶
func (*CACHE) UpdatePeersToCache ¶
func (*CACHE) UpdateUser ¶
type CacheConfig ¶ added in v1.4.3
type CacheConfig struct {
MaxSize int // Maximum entries to cache (0 = unlimited)
LogLevel LogLevel // Log verbosity for cache operations
LogColor bool // Enable colored log output
Logger Logger // Custom logger instance
LogName string // Logger name prefix
Memory bool // Keep cache in memory only (no persistence)
Disabled bool // Disable caching entirely
Storage CacheStorage // Custom storage backend (overrides file-based storage)
}
type CacheStorage ¶ added in v1.6.9
type CacheStorage interface {
// Read reads cache data from storage
Read() (*InputPeerCache, error)
// Write writes cache data to storage
Write(*InputPeerCache) error
// Close closes the storage backend
Close() error
}
CacheStorage defines the interface for cache persistence backends
type CachedMedia ¶ added in v1.6.10
type CallbackHandler ¶
type CallbackHandler func(m *CallbackQuery) error
type CallbackOptions ¶
type CallbackQuery ¶
type CallbackQuery struct {
QueryID int64
Data []byte
OriginalUpdate *UpdateBotCallbackQuery
Sender *UserObj
MessageID int32
SenderID int64
ChatID int64
Chat *ChatObj
Channel *Channel
Peer Peer
Client *Client
}
func (*CallbackQuery) Answer ¶
func (b *CallbackQuery) Answer(Text string, options ...*CallbackOptions) (bool, error)
func (*CallbackQuery) Ask ¶ added in v1.6.3
func (b *CallbackQuery) Ask(Text any, Opts ...*SendOptions) (*NewMessage, *NewMessage, error)
Ask starts new conversation with the user returns the sent message and the response message
func (*CallbackQuery) ChannelID ¶ added in v1.6.7
func (b *CallbackQuery) ChannelID() int64
func (*CallbackQuery) ChatType ¶
func (m *CallbackQuery) ChatType() string
func (*CallbackQuery) Conv ¶ added in v1.6.3
func (b *CallbackQuery) Conv(timeout ...int32) (*Conversation, error)
Conv starts a new conversation with the user
func (*CallbackQuery) DataString ¶
func (b *CallbackQuery) DataString() string
func (*CallbackQuery) Delete ¶
func (b *CallbackQuery) Delete() (*MessagesAffectedMessages, error)
func (*CallbackQuery) Edit ¶
func (b *CallbackQuery) Edit(Text any, options ...*SendOptions) (*NewMessage, error)
func (*CallbackQuery) ForwardTo ¶
func (b *CallbackQuery) ForwardTo(ChatID int64, options ...*ForwardOptions) (*NewMessage, error)
func (*CallbackQuery) GetChannel ¶
func (b *CallbackQuery) GetChannel() (*Channel, error)
func (*CallbackQuery) GetChat ¶
func (b *CallbackQuery) GetChat() (*ChatObj, error)
func (*CallbackQuery) GetChatID ¶
func (b *CallbackQuery) GetChatID() int64
func (*CallbackQuery) GetMessage ¶
func (b *CallbackQuery) GetMessage() (*NewMessage, error)
func (*CallbackQuery) GetSender ¶
func (b *CallbackQuery) GetSender() (*UserObj, error)
func (*CallbackQuery) GetSenderID ¶
func (b *CallbackQuery) GetSenderID() int64
func (*CallbackQuery) IsChannel ¶
func (b *CallbackQuery) IsChannel() bool
func (*CallbackQuery) IsGroup ¶
func (b *CallbackQuery) IsGroup() bool
func (*CallbackQuery) IsPrivate ¶
func (b *CallbackQuery) IsPrivate() bool
func (*CallbackQuery) Marshal ¶
func (b *CallbackQuery) Marshal(noindent ...bool) string
func (*CallbackQuery) Reply ¶
func (b *CallbackQuery) Reply(Text any, options ...*SendOptions) (*NewMessage, error)
func (*CallbackQuery) ReplyMedia ¶
func (b *CallbackQuery) ReplyMedia(Media any, options ...*MediaOptions) (*NewMessage, error)
func (*CallbackQuery) Respond ¶
func (b *CallbackQuery) Respond(Text any, options ...*SendOptions) (*NewMessage, error)
func (*CallbackQuery) RespondMedia ¶
func (b *CallbackQuery) RespondMedia(Media any, options ...*MediaOptions) (*NewMessage, error)
func (*CallbackQuery) ShortName ¶
func (b *CallbackQuery) ShortName() string
func (*CallbackQuery) WaitClick ¶ added in v1.6.7
func (b *CallbackQuery) WaitClick(timeout ...int32) (*CallbackQuery, error)
func (*CallbackQuery) Wizard ¶ added in v1.6.10
func (b *CallbackQuery) Wizard(timeout ...int32) (*ConversationWizard, error)
Wizard starts a new conversation wizard with the user
type CdnConfig ¶
type CdnConfig struct {
PublicKeys []*CdnPublicKey
}
Configuration for CDN file downloads.
type CdnPublicKey ¶
Public key to use only during handshakes to CDN DCs.
func (*CdnPublicKey) CRC ¶
func (*CdnPublicKey) CRC() uint32
type Channel ¶
type Channel struct {
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.
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).
Autotranslation bool `tl:"flag2:15,encoded_in_bitflags"` // If set, autotranslation was enabled for all users by the admin of the channel, as specified here.
BroadcastMessagesAllowed bool `tl:"flag2:16,encoded_in_bitflags"` // If set, this channel has an associated monoforum, and its ID is specified in the `linked_monoforum_id` flag.
Monoforum bool `tl:"flag2:17,encoded_in_bitflags"` // If set, this is a monoforum, and the ID of the associated channel is specified in the `linked_monoforum_id`.
ForumTabs bool `tl:"flag2:19,encoded_in_bitflags"` // If set, enables the tabbed forum UI.
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 *RecentStory `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.
BotVerificationIcon int64 `tl:"flag2:13"` // Describes a bot verification icon.
SendPaidMessagesStars int64 `tl:"flag2:14"` // If set, this supergroup or monoforum has enabled paid messages, we <em>might</em> need to pay the specified amount of Stars to send messages to it, depending on the configured exceptions: check channelFull.`send_paid_messages_stars` to see if the currently logged in user actually has to pay or not
LinkedMonoforumID int64 `tl:"flag2:18"` // For channels with associated monoforums, the monoforum ID. For Monoforums, the ID of the associated channel.
}
Channel/supergroup info
func (*Channel) ImplementsChat ¶
func (*Channel) ImplementsChat()
type ChannelAdminLogEvent ¶
type ChannelAdminLogEvent struct {
ID int64
Date int32
UserID int64
Action ChannelAdminLogEventAction
}
Admin log event
func (*ChannelAdminLogEvent) CRC ¶
func (*ChannelAdminLogEvent) CRC() uint32
type ChannelAdminLogEventActionChangeAbout ¶
type ChannelAdminLogEventActionChangeAbout struct {
PrevValue string // Previous description
NewValue string // New description
}
The description was changed
func (*ChannelAdminLogEventActionChangeAbout) CRC ¶
func (*ChannelAdminLogEventActionChangeAbout) CRC() uint32
func (*ChannelAdminLogEventActionChangeAbout) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionChangeAbout) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionChangeAvailableReactions ¶
type ChannelAdminLogEventActionChangeAvailableReactions struct {
PrevValue ChatReactions // Previously allowed reaction emojis
NewValue ChatReactions // New allowed reaction emojis
}
The set of allowed message reactions for this channel has changed
func (*ChannelAdminLogEventActionChangeAvailableReactions) CRC ¶
func (*ChannelAdminLogEventActionChangeAvailableReactions) CRC() uint32
func (*ChannelAdminLogEventActionChangeAvailableReactions) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionChangeAvailableReactions) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionChangeEmojiStatus ¶
type ChannelAdminLogEventActionChangeEmojiStatus struct {
PrevValue EmojiStatus // Previous emoji status
NewValue EmojiStatus // New emoji status
}
The emoji status was changed
func (*ChannelAdminLogEventActionChangeEmojiStatus) CRC ¶
func (*ChannelAdminLogEventActionChangeEmojiStatus) CRC() uint32
func (*ChannelAdminLogEventActionChangeEmojiStatus) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionChangeEmojiStatus) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionChangeEmojiStickerSet ¶
type ChannelAdminLogEventActionChangeEmojiStickerSet struct {
PrevStickerset InputStickerSet // Old value
NewStickerset InputStickerSet // New value
}
The supergroup's custom emoji stickerset was changed.
func (*ChannelAdminLogEventActionChangeEmojiStickerSet) CRC ¶
func (*ChannelAdminLogEventActionChangeEmojiStickerSet) CRC() uint32
func (*ChannelAdminLogEventActionChangeEmojiStickerSet) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionChangeEmojiStickerSet) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionChangeHistoryTtl ¶
type ChannelAdminLogEventActionChangeHistoryTtl struct {
PrevValue int32 // Previous value
NewValue int32 // New value
}
The Time-To-Live of messages in this chat was changed
func (*ChannelAdminLogEventActionChangeHistoryTtl) CRC ¶
func (*ChannelAdminLogEventActionChangeHistoryTtl) CRC() uint32
func (*ChannelAdminLogEventActionChangeHistoryTtl) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionChangeHistoryTtl) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionChangeLinkedChat ¶
type ChannelAdminLogEventActionChangeLinkedChat struct {
PrevValue int64 // Previous linked chat
NewValue int64 // New linked chat
}
The linked chat was changed
func (*ChannelAdminLogEventActionChangeLinkedChat) CRC ¶
func (*ChannelAdminLogEventActionChangeLinkedChat) CRC() uint32
func (*ChannelAdminLogEventActionChangeLinkedChat) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionChangeLinkedChat) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionChangeLocation ¶
type ChannelAdminLogEventActionChangeLocation struct {
PrevValue ChannelLocation // Previous location
NewValue ChannelLocation // New location
}
The geogroup location was changed
func (*ChannelAdminLogEventActionChangeLocation) CRC ¶
func (*ChannelAdminLogEventActionChangeLocation) CRC() uint32
func (*ChannelAdminLogEventActionChangeLocation) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionChangeLocation) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionChangePeerColor ¶
type ChannelAdminLogEventActionChangePeerColor struct {
PrevValue PeerColor // Previous accent palette
NewValue PeerColor // New accent palette
}
The message accent color was changed
func (*ChannelAdminLogEventActionChangePeerColor) CRC ¶
func (*ChannelAdminLogEventActionChangePeerColor) CRC() uint32
func (*ChannelAdminLogEventActionChangePeerColor) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionChangePeerColor) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionChangePhoto ¶
type ChannelAdminLogEventActionChangePhoto struct {
PrevPhoto Photo // Previous picture
NewPhoto Photo // New picture
}
The channel/supergroup's picture was changed
func (*ChannelAdminLogEventActionChangePhoto) CRC ¶
func (*ChannelAdminLogEventActionChangePhoto) CRC() uint32
func (*ChannelAdminLogEventActionChangePhoto) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionChangePhoto) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionChangeProfilePeerColor ¶
type ChannelAdminLogEventActionChangeProfilePeerColor struct {
PrevValue PeerColor // Previous accent palette
NewValue PeerColor // New accent palette
}
The profile accent color was changed
func (*ChannelAdminLogEventActionChangeProfilePeerColor) CRC ¶
func (*ChannelAdminLogEventActionChangeProfilePeerColor) CRC() uint32
func (*ChannelAdminLogEventActionChangeProfilePeerColor) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionChangeProfilePeerColor) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionChangeStickerSet ¶
type ChannelAdminLogEventActionChangeStickerSet struct {
PrevStickerset InputStickerSet // Previous stickerset
NewStickerset InputStickerSet // New stickerset
}
The supergroup's stickerset was changed
func (*ChannelAdminLogEventActionChangeStickerSet) CRC ¶
func (*ChannelAdminLogEventActionChangeStickerSet) CRC() uint32
func (*ChannelAdminLogEventActionChangeStickerSet) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionChangeStickerSet) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionChangeTitle ¶
type ChannelAdminLogEventActionChangeTitle struct {
PrevValue string // Previous title
NewValue string // New title
}
Channel/supergroup title was changed
func (*ChannelAdminLogEventActionChangeTitle) CRC ¶
func (*ChannelAdminLogEventActionChangeTitle) CRC() uint32
func (*ChannelAdminLogEventActionChangeTitle) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionChangeTitle) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionChangeUsername ¶
type ChannelAdminLogEventActionChangeUsername struct {
PrevValue string // Old username
NewValue string // New username
}
Channel/supergroup username was changed
func (*ChannelAdminLogEventActionChangeUsername) CRC ¶
func (*ChannelAdminLogEventActionChangeUsername) CRC() uint32
func (*ChannelAdminLogEventActionChangeUsername) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionChangeUsername) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionChangeUsernames ¶
type ChannelAdminLogEventActionChangeUsernames struct {
PrevValue []string // Previous set of usernames
NewValue []string // New set of usernames
}
The list of usernames associated with the channel was changed
func (*ChannelAdminLogEventActionChangeUsernames) CRC ¶
func (*ChannelAdminLogEventActionChangeUsernames) CRC() uint32
func (*ChannelAdminLogEventActionChangeUsernames) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionChangeUsernames) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionChangeWallpaper ¶
type ChannelAdminLogEventActionChangeWallpaper struct {
PrevValue WallPaper // Previous wallpaper
NewValue WallPaper // New wallpaper
}
The wallpaper was changed
func (*ChannelAdminLogEventActionChangeWallpaper) CRC ¶
func (*ChannelAdminLogEventActionChangeWallpaper) CRC() uint32
func (*ChannelAdminLogEventActionChangeWallpaper) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionChangeWallpaper) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionCreateTopic ¶
type ChannelAdminLogEventActionCreateTopic struct {
Topic ForumTopic // The forum topic that was created
}
A forum topic was created
func (*ChannelAdminLogEventActionCreateTopic) CRC ¶
func (*ChannelAdminLogEventActionCreateTopic) CRC() uint32
func (*ChannelAdminLogEventActionCreateTopic) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionCreateTopic) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionDefaultBannedRights ¶
type ChannelAdminLogEventActionDefaultBannedRights struct {
PrevBannedRights *ChatBannedRights // Previous global banned rights
NewBannedRights *ChatBannedRights // New global banned rights.
}
The default banned rights were modified
func (*ChannelAdminLogEventActionDefaultBannedRights) CRC ¶
func (*ChannelAdminLogEventActionDefaultBannedRights) CRC() uint32
func (*ChannelAdminLogEventActionDefaultBannedRights) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionDefaultBannedRights) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionDeleteMessage ¶
type ChannelAdminLogEventActionDeleteMessage struct {
Message Message // The message that was deleted
}
A message was deleted
func (*ChannelAdminLogEventActionDeleteMessage) CRC ¶
func (*ChannelAdminLogEventActionDeleteMessage) CRC() uint32
func (*ChannelAdminLogEventActionDeleteMessage) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionDeleteMessage) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionDeleteTopic ¶
type ChannelAdminLogEventActionDeleteTopic struct {
Topic ForumTopic // The forum topic that was deleted
}
A forum topic was deleted
func (*ChannelAdminLogEventActionDeleteTopic) CRC ¶
func (*ChannelAdminLogEventActionDeleteTopic) CRC() uint32
func (*ChannelAdminLogEventActionDeleteTopic) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionDeleteTopic) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionDiscardGroupCall ¶
type ChannelAdminLogEventActionDiscardGroupCall struct {
Call InputGroupCall // The group call that was terminated
}
A group call was terminated
func (*ChannelAdminLogEventActionDiscardGroupCall) CRC ¶
func (*ChannelAdminLogEventActionDiscardGroupCall) CRC() uint32
func (*ChannelAdminLogEventActionDiscardGroupCall) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionDiscardGroupCall) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionEditMessage ¶
type ChannelAdminLogEventActionEditMessage struct {
PrevMessage Message // Old message
NewMessage Message // New message
}
A message was edited
func (*ChannelAdminLogEventActionEditMessage) CRC ¶
func (*ChannelAdminLogEventActionEditMessage) CRC() uint32
func (*ChannelAdminLogEventActionEditMessage) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionEditMessage) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionEditTopic ¶
type ChannelAdminLogEventActionEditTopic struct {
PrevTopic ForumTopic // Previous topic information
NewTopic ForumTopic // New topic information
}
A forum topic was edited
func (*ChannelAdminLogEventActionEditTopic) CRC ¶
func (*ChannelAdminLogEventActionEditTopic) CRC() uint32
func (*ChannelAdminLogEventActionEditTopic) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionEditTopic) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionExportedInviteDelete ¶
type ChannelAdminLogEventActionExportedInviteDelete struct {
Invite ExportedChatInvite // The deleted chat invite
}
A chat invite was deleted
func (*ChannelAdminLogEventActionExportedInviteDelete) CRC ¶
func (*ChannelAdminLogEventActionExportedInviteDelete) CRC() uint32
func (*ChannelAdminLogEventActionExportedInviteDelete) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionExportedInviteDelete) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionExportedInviteEdit ¶
type ChannelAdminLogEventActionExportedInviteEdit struct {
PrevInvite ExportedChatInvite // Previous chat invite information
NewInvite ExportedChatInvite // New chat invite information
}
A chat invite was edited
func (*ChannelAdminLogEventActionExportedInviteEdit) CRC ¶
func (*ChannelAdminLogEventActionExportedInviteEdit) CRC() uint32
func (*ChannelAdminLogEventActionExportedInviteEdit) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionExportedInviteEdit) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionExportedInviteRevoke ¶
type ChannelAdminLogEventActionExportedInviteRevoke struct {
Invite ExportedChatInvite // The invite link that was revoked
}
A specific invite link was revoked
func (*ChannelAdminLogEventActionExportedInviteRevoke) CRC ¶
func (*ChannelAdminLogEventActionExportedInviteRevoke) CRC() uint32
func (*ChannelAdminLogEventActionExportedInviteRevoke) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionExportedInviteRevoke) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionParticipantInvite ¶
type ChannelAdminLogEventActionParticipantInvite struct {
Participant ChannelParticipant // The user that was invited
}
A user was invited to the group
func (*ChannelAdminLogEventActionParticipantInvite) CRC ¶
func (*ChannelAdminLogEventActionParticipantInvite) CRC() uint32
func (*ChannelAdminLogEventActionParticipantInvite) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionParticipantInvite) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionParticipantJoin ¶
type ChannelAdminLogEventActionParticipantJoin struct{}
A user has joined the group (in the case of big groups, info of the user that has joined isn't shown)
func (*ChannelAdminLogEventActionParticipantJoin) CRC ¶
func (*ChannelAdminLogEventActionParticipantJoin) CRC() uint32
func (*ChannelAdminLogEventActionParticipantJoin) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionParticipantJoin) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionParticipantJoinByInvite ¶
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
}
A user joined the supergroup/channel using a specific invite link
func (*ChannelAdminLogEventActionParticipantJoinByInvite) CRC ¶
func (*ChannelAdminLogEventActionParticipantJoinByInvite) CRC() uint32
func (*ChannelAdminLogEventActionParticipantJoinByInvite) FlagIndex ¶
func (*ChannelAdminLogEventActionParticipantJoinByInvite) FlagIndex() int
func (*ChannelAdminLogEventActionParticipantJoinByInvite) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionParticipantJoinByInvite) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionParticipantJoinByRequest ¶
type ChannelAdminLogEventActionParticipantJoinByRequest struct {
Invite ExportedChatInvite // The invite link that was used to join the chat
ApprovedBy int64 // ID of the admin that approved the invite
}
A new member was accepted to the chat by an admin
func (*ChannelAdminLogEventActionParticipantJoinByRequest) CRC ¶
func (*ChannelAdminLogEventActionParticipantJoinByRequest) CRC() uint32
func (*ChannelAdminLogEventActionParticipantJoinByRequest) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionParticipantJoinByRequest) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionParticipantLeave ¶
type ChannelAdminLogEventActionParticipantLeave struct{}
A user left the channel/supergroup (in the case of big groups, info of the user that has joined isn't shown)
func (*ChannelAdminLogEventActionParticipantLeave) CRC ¶
func (*ChannelAdminLogEventActionParticipantLeave) CRC() uint32
func (*ChannelAdminLogEventActionParticipantLeave) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionParticipantLeave) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionParticipantMute ¶
type ChannelAdminLogEventActionParticipantMute struct {
Participant *GroupCallParticipant // The participant that was muted
}
A group call participant was muted
func (*ChannelAdminLogEventActionParticipantMute) CRC ¶
func (*ChannelAdminLogEventActionParticipantMute) CRC() uint32
func (*ChannelAdminLogEventActionParticipantMute) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionParticipantMute) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionParticipantSubExtend ¶
type ChannelAdminLogEventActionParticipantSubExtend struct {
PrevParticipant ChannelParticipant // Same as `new_participant`.
NewParticipant ChannelParticipant // The subscriber that extended the subscription.
}
A paid subscriber has extended their Telegram Star subscription.
func (*ChannelAdminLogEventActionParticipantSubExtend) CRC ¶
func (*ChannelAdminLogEventActionParticipantSubExtend) CRC() uint32
func (*ChannelAdminLogEventActionParticipantSubExtend) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionParticipantSubExtend) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionParticipantToggleAdmin ¶
type ChannelAdminLogEventActionParticipantToggleAdmin struct {
PrevParticipant ChannelParticipant // Previous admin rights
NewParticipant ChannelParticipant // New admin rights
}
The admin rights of a user were changed
func (*ChannelAdminLogEventActionParticipantToggleAdmin) CRC ¶
func (*ChannelAdminLogEventActionParticipantToggleAdmin) CRC() uint32
func (*ChannelAdminLogEventActionParticipantToggleAdmin) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionParticipantToggleAdmin) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionParticipantToggleBan ¶
type ChannelAdminLogEventActionParticipantToggleBan struct {
PrevParticipant ChannelParticipant // Old banned rights of user
NewParticipant ChannelParticipant // New banned rights of user
}
The banned rights of a user were changed
func (*ChannelAdminLogEventActionParticipantToggleBan) CRC ¶
func (*ChannelAdminLogEventActionParticipantToggleBan) CRC() uint32
func (*ChannelAdminLogEventActionParticipantToggleBan) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionParticipantToggleBan) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionParticipantUnmute ¶
type ChannelAdminLogEventActionParticipantUnmute struct {
Participant *GroupCallParticipant // The participant that was unmuted
}
A group call participant was unmuted
func (*ChannelAdminLogEventActionParticipantUnmute) CRC ¶
func (*ChannelAdminLogEventActionParticipantUnmute) CRC() uint32
func (*ChannelAdminLogEventActionParticipantUnmute) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionParticipantUnmute) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionParticipantVolume ¶
type ChannelAdminLogEventActionParticipantVolume struct {
Participant *GroupCallParticipant // The participant whose volume was changed
}
channelAdminLogEvent.user_id has set the volume of participant.peer to participant.volume
func (*ChannelAdminLogEventActionParticipantVolume) CRC ¶
func (*ChannelAdminLogEventActionParticipantVolume) CRC() uint32
func (*ChannelAdminLogEventActionParticipantVolume) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionParticipantVolume) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionPinTopic ¶
type ChannelAdminLogEventActionPinTopic struct {
PrevTopic ForumTopic `tl:"flag:0"` // Previous topic information
NewTopic ForumTopic `tl:"flag:1"` // New topic information
}
A forum topic was pinned or unpinned
func (*ChannelAdminLogEventActionPinTopic) CRC ¶
func (*ChannelAdminLogEventActionPinTopic) CRC() uint32
func (*ChannelAdminLogEventActionPinTopic) FlagIndex ¶
func (*ChannelAdminLogEventActionPinTopic) FlagIndex() int
func (*ChannelAdminLogEventActionPinTopic) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionPinTopic) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionSendMessage ¶
type ChannelAdminLogEventActionSendMessage struct {
Message Message // The message that was sent
}
A message was posted in a channel
func (*ChannelAdminLogEventActionSendMessage) CRC ¶
func (*ChannelAdminLogEventActionSendMessage) CRC() uint32
func (*ChannelAdminLogEventActionSendMessage) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionSendMessage) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionStartGroupCall ¶
type ChannelAdminLogEventActionStartGroupCall struct {
Call InputGroupCall // Group call
}
A group call was started
func (*ChannelAdminLogEventActionStartGroupCall) CRC ¶
func (*ChannelAdminLogEventActionStartGroupCall) CRC() uint32
func (*ChannelAdminLogEventActionStartGroupCall) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionStartGroupCall) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionStopPoll ¶
type ChannelAdminLogEventActionStopPoll struct {
Message Message // The poll that was stopped
}
A poll was stopped
func (*ChannelAdminLogEventActionStopPoll) CRC ¶
func (*ChannelAdminLogEventActionStopPoll) CRC() uint32
func (*ChannelAdminLogEventActionStopPoll) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionStopPoll) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionToggleAntiSpam ¶
type ChannelAdminLogEventActionToggleAntiSpam struct {
NewValue bool // Whether antispam functionality was enabled or disabled.
}
Native antispam functionality was enabled or disabled.
func (*ChannelAdminLogEventActionToggleAntiSpam) CRC ¶
func (*ChannelAdminLogEventActionToggleAntiSpam) CRC() uint32
func (*ChannelAdminLogEventActionToggleAntiSpam) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionToggleAntiSpam) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionToggleAutotranslation ¶ added in v1.6.0
type ChannelAdminLogEventActionToggleAutotranslation struct {
NewValue bool // New value of the toggle
}
Channel autotranslation was toggled.
func (*ChannelAdminLogEventActionToggleAutotranslation) CRC ¶ added in v1.6.0
func (*ChannelAdminLogEventActionToggleAutotranslation) CRC() uint32
func (*ChannelAdminLogEventActionToggleAutotranslation) ImplementsChannelAdminLogEventAction ¶ added in v1.6.0
func (*ChannelAdminLogEventActionToggleAutotranslation) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionToggleForum ¶
type ChannelAdminLogEventActionToggleForum struct {
NewValue bool // Whether forum functionality was enabled or disabled.
}
Forum functionality was enabled or disabled.
func (*ChannelAdminLogEventActionToggleForum) CRC ¶
func (*ChannelAdminLogEventActionToggleForum) CRC() uint32
func (*ChannelAdminLogEventActionToggleForum) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionToggleForum) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionToggleGroupCallSetting ¶
type ChannelAdminLogEventActionToggleGroupCallSetting struct {
JoinMuted bool // Whether all users are muted by default upon joining
}
Group call settings were changed
func (*ChannelAdminLogEventActionToggleGroupCallSetting) CRC ¶
func (*ChannelAdminLogEventActionToggleGroupCallSetting) CRC() uint32
func (*ChannelAdminLogEventActionToggleGroupCallSetting) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionToggleGroupCallSetting) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionToggleInvites ¶
type ChannelAdminLogEventActionToggleInvites struct {
NewValue bool // New value
}
Invites were enabled/disabled
func (*ChannelAdminLogEventActionToggleInvites) CRC ¶
func (*ChannelAdminLogEventActionToggleInvites) CRC() uint32
func (*ChannelAdminLogEventActionToggleInvites) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionToggleInvites) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionToggleNoForwards ¶
type ChannelAdminLogEventActionToggleNoForwards struct {
NewValue bool // Old value
}
Forwards were enabled or disabled
func (*ChannelAdminLogEventActionToggleNoForwards) CRC ¶
func (*ChannelAdminLogEventActionToggleNoForwards) CRC() uint32
func (*ChannelAdminLogEventActionToggleNoForwards) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionToggleNoForwards) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionTogglePreHistoryHidden ¶
type ChannelAdminLogEventActionTogglePreHistoryHidden struct {
NewValue bool // New value
}
The hidden prehistory setting was changed
func (*ChannelAdminLogEventActionTogglePreHistoryHidden) CRC ¶
func (*ChannelAdminLogEventActionTogglePreHistoryHidden) CRC() uint32
func (*ChannelAdminLogEventActionTogglePreHistoryHidden) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionTogglePreHistoryHidden) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionToggleSignatureProfiles ¶
type ChannelAdminLogEventActionToggleSignatureProfiles struct {
NewValue bool // New value
}
Channel signature profiles were enabled/disabled.
func (*ChannelAdminLogEventActionToggleSignatureProfiles) CRC ¶
func (*ChannelAdminLogEventActionToggleSignatureProfiles) CRC() uint32
func (*ChannelAdminLogEventActionToggleSignatureProfiles) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionToggleSignatureProfiles) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionToggleSignatures ¶
type ChannelAdminLogEventActionToggleSignatures struct {
NewValue bool // New value
}
Channel signatures were enabled/disabled
func (*ChannelAdminLogEventActionToggleSignatures) CRC ¶
func (*ChannelAdminLogEventActionToggleSignatures) CRC() uint32
func (*ChannelAdminLogEventActionToggleSignatures) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionToggleSignatures) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionToggleSlowMode ¶
type ChannelAdminLogEventActionToggleSlowMode struct {
PrevValue int32 // Previous slow mode value
NewValue int32 // New slow mode value
}
Slow mode setting for supergroups was changed
func (*ChannelAdminLogEventActionToggleSlowMode) CRC ¶
func (*ChannelAdminLogEventActionToggleSlowMode) CRC() uint32
func (*ChannelAdminLogEventActionToggleSlowMode) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionToggleSlowMode) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventActionUpdatePinned ¶
type ChannelAdminLogEventActionUpdatePinned struct {
Message Message // The message that was pinned
}
A message was pinned
func (*ChannelAdminLogEventActionUpdatePinned) CRC ¶
func (*ChannelAdminLogEventActionUpdatePinned) CRC() uint32
func (*ChannelAdminLogEventActionUpdatePinned) ImplementsChannelAdminLogEventAction ¶
func (*ChannelAdminLogEventActionUpdatePinned) ImplementsChannelAdminLogEventAction()
type ChannelAdminLogEventsFilter ¶
type ChannelAdminLogEventsFilter struct {
Join bool `tl:"flag:0,encoded_in_bitflags"`
Leave bool `tl:"flag:1,encoded_in_bitflags"`
Invite bool `tl:"flag:2,encoded_in_bitflags"`
Ban bool `tl:"flag:3,encoded_in_bitflags"`
Unban bool `tl:"flag:4,encoded_in_bitflags"`
Kick bool `tl:"flag:5,encoded_in_bitflags"`
Unkick bool `tl:"flag:6,encoded_in_bitflags"`
Promote bool `tl:"flag:7,encoded_in_bitflags"`
Demote bool `tl:"flag:8,encoded_in_bitflags"`
Info bool `tl:"flag:9,encoded_in_bitflags"`
Settings bool `tl:"flag:10,encoded_in_bitflags"`
Pinned bool `tl:"flag:11,encoded_in_bitflags"`
Edit bool `tl:"flag:12,encoded_in_bitflags"`
Delete bool `tl:"flag:13,encoded_in_bitflags"`
GroupCall bool `tl:"flag:14,encoded_in_bitflags"`
Invites bool `tl:"flag:15,encoded_in_bitflags"`
Send bool `tl:"flag:16,encoded_in_bitflags"`
Forums bool `tl:"flag:17,encoded_in_bitflags"`
SubExtend bool `tl:"flag:18,encoded_in_bitflags"`
}
Filter only certain admin log events
func (*ChannelAdminLogEventsFilter) CRC ¶
func (*ChannelAdminLogEventsFilter) CRC() uint32
func (*ChannelAdminLogEventsFilter) FlagIndex ¶
func (*ChannelAdminLogEventsFilter) FlagIndex() int
type ChannelForbidden ¶
type ChannelForbidden struct {
Broadcast bool `tl:"flag:5,encoded_in_bitflags"` // Is this a channel
Megagroup bool `tl:"flag:8,encoded_in_bitflags"` // Is this a supergroup
ID int64 // Channel ID
AccessHash int64 // Access hash
Title string // Title
UntilDate int32 `tl:"flag:16"` // The ban is valid until the specified date
}
Indicates a channel/supergroup we can't access because we were banned, or for some other reason.
func (*ChannelForbidden) CRC ¶
func (*ChannelForbidden) CRC() uint32
func (*ChannelForbidden) FlagIndex ¶
func (*ChannelForbidden) FlagIndex() int
func (*ChannelForbidden) ImplementsChat ¶
func (*ChannelForbidden) ImplementsChat()
type ChannelFull ¶
type ChannelFull struct {
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.
StargiftsAvailable bool `tl:"flag2:19,encoded_in_bitflags"` // If set, users may send Gifts to this channel.
PaidMessagesAvailable bool `tl:"flag2:20,encoded_in_bitflags"` // If set, admins may enable enable paid messages in this supergroup.
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 <em>supergroup</em>.
BoostsUnrestrict int32 `tl:"flag2:9"` // The number of boosts this <em>supergroup</em> requires to bypass slowmode and other restrictions
Emojiset *StickerSet `tl:"flag2:10"` // Custom emoji stickerset associated to the current <em>supergroup</em>, set using channels.setEmojiStickers after reaching the appropriate boost level
BotVerification *BotVerification `tl:"flag2:17"` // Bot verification icon
StargiftsCount int32 `tl:"flag2:18"` // Admins with chatAdminRights.`post_messages` rights will see the total number of received gifts, everyone else will see the number of gifts added to the channel's profile.
SendPaidMessagesStars int64 `tl:"flag2:21"` // If set and bigger than 0, this supergroup, monoforum or the monoforum associated to this channel has enabled paid messages and we <em>must</em> pay the specified amount of Stars to send messages to it This flag will be set both for the monoforum and for channelFull of the associated channel). If set and equal to 0, the monoforum requires payment in general but we were exempted from paying.
MainTab ProfileTab `tl:"flag2:22"` // The main tab for the channel's profile
}
Full info about a channel, supergroup or gigagroup.
func (*ChannelFull) CRC ¶
func (*ChannelFull) CRC() uint32
func (*ChannelFull) FlagIndex ¶
func (*ChannelFull) FlagIndex() int
func (*ChannelFull) ImplementsChatFull ¶
func (*ChannelFull) ImplementsChatFull()
type ChannelLocation ¶
type ChannelLocationEmpty ¶
type ChannelLocationEmpty struct{}
No location (normal supergroup)
func (*ChannelLocationEmpty) CRC ¶
func (*ChannelLocationEmpty) CRC() uint32
func (*ChannelLocationEmpty) ImplementsChannelLocation ¶
func (*ChannelLocationEmpty) ImplementsChannelLocation()
type ChannelLocationObj ¶
type ChannelLocationObj struct {
GeoPoint GeoPoint // Geographical location of supergroup
Address string // Textual description of the address
}
Geographical location of supergroup (geogroups)
func (*ChannelLocationObj) CRC ¶
func (*ChannelLocationObj) CRC() uint32
func (*ChannelLocationObj) ImplementsChannelLocation ¶
func (*ChannelLocationObj) ImplementsChannelLocation()
type ChannelMessagesFilter ¶
type ChannelMessagesFilterEmpty ¶
type ChannelMessagesFilterEmpty struct{}
No filter
func (*ChannelMessagesFilterEmpty) CRC ¶
func (*ChannelMessagesFilterEmpty) CRC() uint32
func (*ChannelMessagesFilterEmpty) ImplementsChannelMessagesFilter ¶
func (*ChannelMessagesFilterEmpty) ImplementsChannelMessagesFilter()
type ChannelMessagesFilterObj ¶
type ChannelMessagesFilterObj struct {
ExcludeNewMessages bool `tl:"flag:1,encoded_in_bitflags"` // Whether to exclude new messages from the search
Ranges []*MessageRange // A range of messages to fetch
}
Filter for getting only certain types of channel messages
func (*ChannelMessagesFilterObj) CRC ¶
func (*ChannelMessagesFilterObj) CRC() uint32
func (*ChannelMessagesFilterObj) FlagIndex ¶
func (*ChannelMessagesFilterObj) FlagIndex() int
func (*ChannelMessagesFilterObj) ImplementsChannelMessagesFilter ¶
func (*ChannelMessagesFilterObj) ImplementsChannelMessagesFilter()
type ChannelOptions ¶
type ChannelParticipant ¶
type ChannelParticipantAdmin ¶
type ChannelParticipantAdmin struct {
CanEdit bool `tl:"flag:0,encoded_in_bitflags"` // Can this admin promote other admins with the same permissions?
Self bool `tl:"flag:1,encoded_in_bitflags"` // Is this the current user
UserID int64 // Admin user ID
InviterID int64 `tl:"flag:1"` // User that invited the admin to the channel/group
PromotedBy int64 // User that promoted the user to admin
Date int32 // When did the user join
AdminRights *ChatAdminRights // Admin rights
Rank string `tl:"flag:2"` // The role (rank) of the admin in the group: just an arbitrary string, `admin` by default
}
Admin
func (*ChannelParticipantAdmin) CRC ¶
func (*ChannelParticipantAdmin) CRC() uint32
func (*ChannelParticipantAdmin) FlagIndex ¶
func (*ChannelParticipantAdmin) FlagIndex() int
func (*ChannelParticipantAdmin) ImplementsChannelParticipant ¶
func (*ChannelParticipantAdmin) ImplementsChannelParticipant()
type ChannelParticipantBanned ¶
type ChannelParticipantBanned struct {
Left bool `tl:"flag:0,encoded_in_bitflags"` // Whether the user has left the group
Peer Peer // The banned peer
KickedBy int64 // User was kicked by the specified admin
Date int32 // When did the user join the group
BannedRights *ChatBannedRights // Banned rights
}
Banned/kicked user
func (*ChannelParticipantBanned) CRC ¶
func (*ChannelParticipantBanned) CRC() uint32
func (*ChannelParticipantBanned) FlagIndex ¶
func (*ChannelParticipantBanned) FlagIndex() int
func (*ChannelParticipantBanned) ImplementsChannelParticipant ¶
func (*ChannelParticipantBanned) ImplementsChannelParticipant()
type ChannelParticipantCreator ¶
type ChannelParticipantCreator struct {
UserID int64 // User ID
AdminRights *ChatAdminRights // Creator admin rights
Rank string `tl:"flag:0"` // The role (rank) of the group creator in the group: just an arbitrary string, `admin` by default
}
Channel/supergroup creator
func (*ChannelParticipantCreator) CRC ¶
func (*ChannelParticipantCreator) CRC() uint32
func (*ChannelParticipantCreator) FlagIndex ¶
func (*ChannelParticipantCreator) FlagIndex() int
func (*ChannelParticipantCreator) ImplementsChannelParticipant ¶
func (*ChannelParticipantCreator) ImplementsChannelParticipant()
type ChannelParticipantLeft ¶
type ChannelParticipantLeft struct {
Peer Peer // The peer that left
}
A participant that left the channel/supergroup
func (*ChannelParticipantLeft) CRC ¶
func (*ChannelParticipantLeft) CRC() uint32
func (*ChannelParticipantLeft) ImplementsChannelParticipant ¶
func (*ChannelParticipantLeft) ImplementsChannelParticipant()
type ChannelParticipantObj ¶
type ChannelParticipantObj struct {
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.
}
Channel/supergroup participant
func (*ChannelParticipantObj) CRC ¶
func (*ChannelParticipantObj) CRC() uint32
func (*ChannelParticipantObj) FlagIndex ¶
func (*ChannelParticipantObj) FlagIndex() int
func (*ChannelParticipantObj) ImplementsChannelParticipant ¶
func (*ChannelParticipantObj) ImplementsChannelParticipant()
type ChannelParticipantSelf ¶
type ChannelParticipantSelf struct {
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.
}
Myself
func (*ChannelParticipantSelf) CRC ¶
func (*ChannelParticipantSelf) CRC() uint32
func (*ChannelParticipantSelf) FlagIndex ¶
func (*ChannelParticipantSelf) FlagIndex() int
func (*ChannelParticipantSelf) ImplementsChannelParticipant ¶
func (*ChannelParticipantSelf) ImplementsChannelParticipant()
type ChannelParticipantsAdmins ¶
type ChannelParticipantsAdmins struct{}
Fetch only admin participants
func (*ChannelParticipantsAdmins) CRC ¶
func (*ChannelParticipantsAdmins) CRC() uint32
func (*ChannelParticipantsAdmins) ImplementsChannelParticipantsFilter ¶
func (*ChannelParticipantsAdmins) ImplementsChannelParticipantsFilter()
type ChannelParticipantsBanned ¶
type ChannelParticipantsBanned struct {
Q string // Optional filter for searching banned participants by name (otherwise empty)
}
Fetch only banned participants
func (*ChannelParticipantsBanned) CRC ¶
func (*ChannelParticipantsBanned) CRC() uint32
func (*ChannelParticipantsBanned) ImplementsChannelParticipantsFilter ¶
func (*ChannelParticipantsBanned) ImplementsChannelParticipantsFilter()
type ChannelParticipantsBots ¶
type ChannelParticipantsBots struct{}
Fetch only bot participants
func (*ChannelParticipantsBots) CRC ¶
func (*ChannelParticipantsBots) CRC() uint32
func (*ChannelParticipantsBots) ImplementsChannelParticipantsFilter ¶
func (*ChannelParticipantsBots) ImplementsChannelParticipantsFilter()
type ChannelParticipantsContacts ¶
type ChannelParticipantsContacts struct {
Q string // Optional search query for searching contact participants by name
}
Fetch only participants that are also contacts
func (*ChannelParticipantsContacts) CRC ¶
func (*ChannelParticipantsContacts) CRC() uint32
func (*ChannelParticipantsContacts) ImplementsChannelParticipantsFilter ¶
func (*ChannelParticipantsContacts) ImplementsChannelParticipantsFilter()
type ChannelParticipantsKicked ¶
type ChannelParticipantsKicked struct {
Q string // Optional filter for searching kicked participants by name (otherwise empty)
}
Fetch only kicked participants
func (*ChannelParticipantsKicked) CRC ¶
func (*ChannelParticipantsKicked) CRC() uint32
func (*ChannelParticipantsKicked) ImplementsChannelParticipantsFilter ¶
func (*ChannelParticipantsKicked) ImplementsChannelParticipantsFilter()
type ChannelParticipantsMentions ¶
type ChannelParticipantsMentions struct {
Q string `tl:"flag:0"` // Filter by user name or username
TopMsgID int32 `tl:"flag:1"` // Look only for users that posted in this thread
}
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 through the comment section of a channel.
func (*ChannelParticipantsMentions) CRC ¶
func (*ChannelParticipantsMentions) CRC() uint32
func (*ChannelParticipantsMentions) FlagIndex ¶
func (*ChannelParticipantsMentions) FlagIndex() int
func (*ChannelParticipantsMentions) ImplementsChannelParticipantsFilter ¶
func (*ChannelParticipantsMentions) ImplementsChannelParticipantsFilter()
type ChannelParticipantsRecent ¶
type ChannelParticipantsRecent struct{}
Fetch only recent participants
func (*ChannelParticipantsRecent) CRC ¶
func (*ChannelParticipantsRecent) CRC() uint32
func (*ChannelParticipantsRecent) ImplementsChannelParticipantsFilter ¶
func (*ChannelParticipantsRecent) ImplementsChannelParticipantsFilter()
type ChannelParticipantsSearch ¶
type ChannelParticipantsSearch struct {
Q string // Search query
}
Query participants by name
func (*ChannelParticipantsSearch) CRC ¶
func (*ChannelParticipantsSearch) CRC() uint32
func (*ChannelParticipantsSearch) ImplementsChannelParticipantsFilter ¶
func (*ChannelParticipantsSearch) ImplementsChannelParticipantsFilter()
type ChannelsAdminLogResults ¶
type ChannelsAdminLogResults struct {
Events []*ChannelAdminLogEvent
Chats []Chat
Users []User
}
Admin log events
func (*ChannelsAdminLogResults) CRC ¶
func (*ChannelsAdminLogResults) CRC() uint32
type ChannelsChannelParticipant ¶
type ChannelsChannelParticipant struct {
Participant ChannelParticipant
Chats []Chat
Users []User
}
Represents a channel participant
func (*ChannelsChannelParticipant) CRC ¶
func (*ChannelsChannelParticipant) CRC() uint32
type ChannelsChannelParticipantsNotModified ¶
type ChannelsChannelParticipantsNotModified struct{}
No new participant info could be found
func (*ChannelsChannelParticipantsNotModified) CRC ¶
func (*ChannelsChannelParticipantsNotModified) CRC() uint32
func (*ChannelsChannelParticipantsNotModified) ImplementsChannelsChannelParticipants ¶
func (*ChannelsChannelParticipantsNotModified) ImplementsChannelsChannelParticipants()
type ChannelsChannelParticipantsObj ¶
type ChannelsChannelParticipantsObj struct {
Count int32 // Total number of participants that correspond to the given query
Participants []ChannelParticipant // Participants
Chats []Chat // Mentioned chats
Users []User // Users mentioned in participant info
}
Represents multiple channel participants
func (*ChannelsChannelParticipantsObj) CRC ¶
func (*ChannelsChannelParticipantsObj) CRC() uint32
func (*ChannelsChannelParticipantsObj) ImplementsChannelsChannelParticipants ¶
func (*ChannelsChannelParticipantsObj) ImplementsChannelsChannelParticipants()
type ChannelsCheckSearchPostsFloodParams ¶ added in v1.6.3
type ChannelsCheckSearchPostsFloodParams struct {
Query string `tl:"flag:0"`
}
func (*ChannelsCheckSearchPostsFloodParams) CRC ¶ added in v1.6.3
func (*ChannelsCheckSearchPostsFloodParams) CRC() uint32
func (*ChannelsCheckSearchPostsFloodParams) FlagIndex ¶ added in v1.6.3
func (*ChannelsCheckSearchPostsFloodParams) FlagIndex() int
type ChannelsCheckUsernameParams ¶
type ChannelsCheckUsernameParams struct {
Channel InputChannel
Username string
}
func (*ChannelsCheckUsernameParams) CRC ¶
func (*ChannelsCheckUsernameParams) CRC() uint32
type ChannelsConvertToGigagroupParams ¶
type ChannelsConvertToGigagroupParams struct {
Channel InputChannel
}
func (*ChannelsConvertToGigagroupParams) CRC ¶
func (*ChannelsConvertToGigagroupParams) CRC() uint32
type ChannelsCreateChannelParams ¶
type ChannelsCreateChannelParams struct {
Broadcast bool `tl:"flag:0,encoded_in_bitflags"`
Megagroup bool `tl:"flag:1,encoded_in_bitflags"`
ForImport bool `tl:"flag:3,encoded_in_bitflags"`
Forum bool `tl:"flag:5,encoded_in_bitflags"`
Title string
About string
GeoPoint InputGeoPoint `tl:"flag:2"`
Address string `tl:"flag:2"`
TtlPeriod int32 `tl:"flag:4"`
}
func (*ChannelsCreateChannelParams) CRC ¶
func (*ChannelsCreateChannelParams) CRC() uint32
func (*ChannelsCreateChannelParams) FlagIndex ¶
func (*ChannelsCreateChannelParams) FlagIndex() int
type ChannelsDeactivateAllUsernamesParams ¶
type ChannelsDeactivateAllUsernamesParams struct {
Channel InputChannel
}
func (*ChannelsDeactivateAllUsernamesParams) CRC ¶
func (*ChannelsDeactivateAllUsernamesParams) CRC() uint32
type ChannelsDeleteChannelParams ¶
type ChannelsDeleteChannelParams struct {
Channel InputChannel
}
func (*ChannelsDeleteChannelParams) CRC ¶
func (*ChannelsDeleteChannelParams) CRC() uint32
type ChannelsDeleteHistoryParams ¶
type ChannelsDeleteHistoryParams struct {
ForEveryone bool `tl:"flag:0,encoded_in_bitflags"`
Channel InputChannel
MaxID int32
}
func (*ChannelsDeleteHistoryParams) CRC ¶
func (*ChannelsDeleteHistoryParams) CRC() uint32
func (*ChannelsDeleteHistoryParams) FlagIndex ¶
func (*ChannelsDeleteHistoryParams) FlagIndex() int
type ChannelsDeleteMessagesParams ¶
type ChannelsDeleteMessagesParams struct {
Channel InputChannel
ID []int32
}
func (*ChannelsDeleteMessagesParams) CRC ¶
func (*ChannelsDeleteMessagesParams) CRC() uint32
type ChannelsDeleteParticipantHistoryParams ¶
type ChannelsDeleteParticipantHistoryParams struct {
Channel InputChannel
Participant InputPeer
}
func (*ChannelsDeleteParticipantHistoryParams) CRC ¶
func (*ChannelsDeleteParticipantHistoryParams) CRC() uint32
type ChannelsEditAdminParams ¶
type ChannelsEditAdminParams struct {
Channel InputChannel
UserID InputUser
AdminRights *ChatAdminRights
Rank string
}
func (*ChannelsEditAdminParams) CRC ¶
func (*ChannelsEditAdminParams) CRC() uint32
type ChannelsEditBannedParams ¶
type ChannelsEditBannedParams struct {
Channel InputChannel
Participant InputPeer
BannedRights *ChatBannedRights
}
func (*ChannelsEditBannedParams) CRC ¶
func (*ChannelsEditBannedParams) CRC() uint32
type ChannelsEditCreatorParams ¶
type ChannelsEditCreatorParams struct {
Channel InputChannel
UserID InputUser
Password InputCheckPasswordSRP
}
func (*ChannelsEditCreatorParams) CRC ¶
func (*ChannelsEditCreatorParams) CRC() uint32
type ChannelsEditLocationParams ¶
type ChannelsEditLocationParams struct {
Channel InputChannel
GeoPoint InputGeoPoint
Address string
}
func (*ChannelsEditLocationParams) CRC ¶
func (*ChannelsEditLocationParams) CRC() uint32
type ChannelsEditPhotoParams ¶
type ChannelsEditPhotoParams struct {
Channel InputChannel
Photo InputChatPhoto
}
func (*ChannelsEditPhotoParams) CRC ¶
func (*ChannelsEditPhotoParams) CRC() uint32
type ChannelsEditTitleParams ¶
type ChannelsEditTitleParams struct {
Channel InputChannel
Title string
}
func (*ChannelsEditTitleParams) CRC ¶
func (*ChannelsEditTitleParams) CRC() uint32
type ChannelsExportMessageLinkParams ¶
type ChannelsExportMessageLinkParams struct {
Grouped bool `tl:"flag:0,encoded_in_bitflags"`
Thread bool `tl:"flag:1,encoded_in_bitflags"`
Channel InputChannel
ID int32
}
func (*ChannelsExportMessageLinkParams) CRC ¶
func (*ChannelsExportMessageLinkParams) CRC() uint32
func (*ChannelsExportMessageLinkParams) FlagIndex ¶
func (*ChannelsExportMessageLinkParams) FlagIndex() int
type ChannelsGetAdminLogParams ¶
type ChannelsGetAdminLogParams struct {
Channel InputChannel
Q string
EventsFilter *ChannelAdminLogEventsFilter `tl:"flag:0"`
Admins []InputUser `tl:"flag:1"`
MaxID int64
MinID int64
Limit int32
}
func (*ChannelsGetAdminLogParams) CRC ¶
func (*ChannelsGetAdminLogParams) CRC() uint32
func (*ChannelsGetAdminLogParams) FlagIndex ¶
func (*ChannelsGetAdminLogParams) FlagIndex() int
type ChannelsGetAdminedPublicChannelsParams ¶
type ChannelsGetAdminedPublicChannelsParams struct {
ByLocation bool `tl:"flag:0,encoded_in_bitflags"`
CheckLimit bool `tl:"flag:1,encoded_in_bitflags"`
ForPersonal bool `tl:"flag:2,encoded_in_bitflags"`
}
func (*ChannelsGetAdminedPublicChannelsParams) CRC ¶
func (*ChannelsGetAdminedPublicChannelsParams) CRC() uint32
func (*ChannelsGetAdminedPublicChannelsParams) FlagIndex ¶
func (*ChannelsGetAdminedPublicChannelsParams) FlagIndex() int
type ChannelsGetChannelRecommendationsParams ¶
type ChannelsGetChannelRecommendationsParams struct {
Channel InputChannel `tl:"flag:0"`
}
func (*ChannelsGetChannelRecommendationsParams) CRC ¶
func (*ChannelsGetChannelRecommendationsParams) CRC() uint32
func (*ChannelsGetChannelRecommendationsParams) FlagIndex ¶
func (*ChannelsGetChannelRecommendationsParams) FlagIndex() int
type ChannelsGetChannelsParams ¶
type ChannelsGetChannelsParams struct {
ID []InputChannel
}
func (*ChannelsGetChannelsParams) CRC ¶
func (*ChannelsGetChannelsParams) CRC() uint32
type ChannelsGetFullChannelParams ¶
type ChannelsGetFullChannelParams struct {
Channel InputChannel
}
func (*ChannelsGetFullChannelParams) CRC ¶
func (*ChannelsGetFullChannelParams) CRC() uint32
type ChannelsGetGroupsForDiscussionParams ¶
type ChannelsGetGroupsForDiscussionParams struct{}
func (*ChannelsGetGroupsForDiscussionParams) CRC ¶
func (*ChannelsGetGroupsForDiscussionParams) CRC() uint32
type ChannelsGetInactiveChannelsParams ¶
type ChannelsGetInactiveChannelsParams struct{}
func (*ChannelsGetInactiveChannelsParams) CRC ¶
func (*ChannelsGetInactiveChannelsParams) CRC() uint32
type ChannelsGetLeftChannelsParams ¶
type ChannelsGetLeftChannelsParams struct {
Offset int32
}
func (*ChannelsGetLeftChannelsParams) CRC ¶
func (*ChannelsGetLeftChannelsParams) CRC() uint32
type ChannelsGetMessageAuthorParams ¶ added in v1.6.0
type ChannelsGetMessageAuthorParams struct {
Channel InputChannel
ID int32
}
func (*ChannelsGetMessageAuthorParams) CRC ¶ added in v1.6.0
func (*ChannelsGetMessageAuthorParams) CRC() uint32
type ChannelsGetMessagesParams ¶
type ChannelsGetMessagesParams struct {
Channel InputChannel
ID []InputMessage
}
func (*ChannelsGetMessagesParams) CRC ¶
func (*ChannelsGetMessagesParams) CRC() uint32
type ChannelsGetParticipantParams ¶
type ChannelsGetParticipantParams struct {
Channel InputChannel
Participant InputPeer
}
func (*ChannelsGetParticipantParams) CRC ¶
func (*ChannelsGetParticipantParams) CRC() uint32
type ChannelsGetParticipantsParams ¶
type ChannelsGetParticipantsParams struct {
Channel InputChannel
Filter ChannelParticipantsFilter
Offset int32
Limit int32
Hash int64
}
func (*ChannelsGetParticipantsParams) CRC ¶
func (*ChannelsGetParticipantsParams) CRC() uint32
type ChannelsGetSendAsParams ¶
type ChannelsGetSendAsParams struct {
ForPaidReactions bool `tl:"flag:0,encoded_in_bitflags"`
ForLiveStories bool `tl:"flag:1,encoded_in_bitflags"`
Peer InputPeer
}
func (*ChannelsGetSendAsParams) CRC ¶
func (*ChannelsGetSendAsParams) CRC() uint32
func (*ChannelsGetSendAsParams) FlagIndex ¶ added in v1.6.0
func (*ChannelsGetSendAsParams) FlagIndex() int
type ChannelsInviteToChannelParams ¶
type ChannelsInviteToChannelParams struct {
Channel InputChannel
Users []InputUser
}
func (*ChannelsInviteToChannelParams) CRC ¶
func (*ChannelsInviteToChannelParams) CRC() uint32
type ChannelsJoinChannelParams ¶
type ChannelsJoinChannelParams struct {
Channel InputChannel
}
func (*ChannelsJoinChannelParams) CRC ¶
func (*ChannelsJoinChannelParams) CRC() uint32
type ChannelsLeaveChannelParams ¶
type ChannelsLeaveChannelParams struct {
Channel InputChannel
}
func (*ChannelsLeaveChannelParams) CRC ¶
func (*ChannelsLeaveChannelParams) CRC() uint32
type ChannelsReadHistoryParams ¶
type ChannelsReadHistoryParams struct {
Channel InputChannel
MaxID int32
}
func (*ChannelsReadHistoryParams) CRC ¶
func (*ChannelsReadHistoryParams) CRC() uint32
type ChannelsReadMessageContentsParams ¶
type ChannelsReadMessageContentsParams struct {
Channel InputChannel
ID []int32
}
func (*ChannelsReadMessageContentsParams) CRC ¶
func (*ChannelsReadMessageContentsParams) CRC() uint32
type ChannelsReorderUsernamesParams ¶
type ChannelsReorderUsernamesParams struct {
Channel InputChannel
Order []string
}
func (*ChannelsReorderUsernamesParams) CRC ¶
func (*ChannelsReorderUsernamesParams) CRC() uint32
type ChannelsReportAntiSpamFalsePositiveParams ¶
type ChannelsReportAntiSpamFalsePositiveParams struct {
Channel InputChannel
MsgID int32
}
func (*ChannelsReportAntiSpamFalsePositiveParams) CRC ¶
func (*ChannelsReportAntiSpamFalsePositiveParams) CRC() uint32
type ChannelsReportSpamParams ¶
type ChannelsReportSpamParams struct {
Channel InputChannel
Participant InputPeer
ID []int32
}
func (*ChannelsReportSpamParams) CRC ¶
func (*ChannelsReportSpamParams) CRC() uint32
type ChannelsRestrictSponsoredMessagesParams ¶
type ChannelsRestrictSponsoredMessagesParams struct {
Channel InputChannel
Restricted bool
}
func (*ChannelsRestrictSponsoredMessagesParams) CRC ¶
func (*ChannelsRestrictSponsoredMessagesParams) CRC() uint32
type ChannelsSearchPostsParams ¶
type ChannelsSearchPostsParams struct {
Hashtag string `tl:"flag:0"`
Query string `tl:"flag:1"`
OffsetRate int32
OffsetPeer InputPeer
OffsetID int32
Limit int32
AllowPaidStars int64 `tl:"flag:2"`
}
func (*ChannelsSearchPostsParams) CRC ¶
func (*ChannelsSearchPostsParams) CRC() uint32
func (*ChannelsSearchPostsParams) FlagIndex ¶ added in v1.6.3
func (*ChannelsSearchPostsParams) FlagIndex() int
type ChannelsSendAsPeers ¶
type ChannelsSendAsPeers struct {
Peers []*SendAsPeer
Chats []Chat
Users []User
}
A list of peers that can be used to send messages in a specific group
func (*ChannelsSendAsPeers) CRC ¶
func (*ChannelsSendAsPeers) CRC() uint32
type ChannelsSetBoostsToUnblockRestrictionsParams ¶
type ChannelsSetBoostsToUnblockRestrictionsParams struct {
Channel InputChannel
Boosts int32
}
func (*ChannelsSetBoostsToUnblockRestrictionsParams) CRC ¶
func (*ChannelsSetBoostsToUnblockRestrictionsParams) CRC() uint32
type ChannelsSetDiscussionGroupParams ¶
type ChannelsSetDiscussionGroupParams struct {
Broadcast InputChannel
Group InputChannel
}
func (*ChannelsSetDiscussionGroupParams) CRC ¶
func (*ChannelsSetDiscussionGroupParams) CRC() uint32
type ChannelsSetEmojiStickersParams ¶
type ChannelsSetEmojiStickersParams struct {
Channel InputChannel
Stickerset InputStickerSet
}
func (*ChannelsSetEmojiStickersParams) CRC ¶
func (*ChannelsSetEmojiStickersParams) CRC() uint32
type ChannelsSetMainProfileTabParams ¶ added in v1.6.3
type ChannelsSetMainProfileTabParams struct {
Channel InputChannel
Tab ProfileTab
}
func (*ChannelsSetMainProfileTabParams) CRC ¶ added in v1.6.3
func (*ChannelsSetMainProfileTabParams) CRC() uint32
type ChannelsSetStickersParams ¶
type ChannelsSetStickersParams struct {
Channel InputChannel
Stickerset InputStickerSet
}
func (*ChannelsSetStickersParams) CRC ¶
func (*ChannelsSetStickersParams) CRC() uint32
type ChannelsSponsoredMessageReportResultAdsHidden ¶
type ChannelsSponsoredMessageReportResultAdsHidden struct{}
Sponsored messages were hidden for the user in all chats.
func (*ChannelsSponsoredMessageReportResultAdsHidden) CRC ¶
func (*ChannelsSponsoredMessageReportResultAdsHidden) CRC() uint32
func (*ChannelsSponsoredMessageReportResultAdsHidden) ImplementsChannelsSponsoredMessageReportResult ¶
func (*ChannelsSponsoredMessageReportResultAdsHidden) ImplementsChannelsSponsoredMessageReportResult()
type ChannelsSponsoredMessageReportResultChooseOption ¶
type ChannelsSponsoredMessageReportResultChooseOption struct {
Title string // Title of the option selection popup.
Options []*SponsoredMessageReportOption // Localized list of options.
}
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.
func (*ChannelsSponsoredMessageReportResultChooseOption) CRC ¶
func (*ChannelsSponsoredMessageReportResultChooseOption) CRC() uint32
func (*ChannelsSponsoredMessageReportResultChooseOption) ImplementsChannelsSponsoredMessageReportResult ¶
func (*ChannelsSponsoredMessageReportResultChooseOption) ImplementsChannelsSponsoredMessageReportResult()
type ChannelsSponsoredMessageReportResultReported ¶
type ChannelsSponsoredMessageReportResultReported struct{}
The sponsored message was reported successfully.
func (*ChannelsSponsoredMessageReportResultReported) CRC ¶
func (*ChannelsSponsoredMessageReportResultReported) CRC() uint32
func (*ChannelsSponsoredMessageReportResultReported) ImplementsChannelsSponsoredMessageReportResult ¶
func (*ChannelsSponsoredMessageReportResultReported) ImplementsChannelsSponsoredMessageReportResult()
type ChannelsToggleAntiSpamParams ¶
type ChannelsToggleAntiSpamParams struct {
Channel InputChannel
Enabled bool
}
func (*ChannelsToggleAntiSpamParams) CRC ¶
func (*ChannelsToggleAntiSpamParams) CRC() uint32
type ChannelsToggleAutotranslationParams ¶ added in v1.6.0
type ChannelsToggleAutotranslationParams struct {
Channel InputChannel
Enabled bool
}
func (*ChannelsToggleAutotranslationParams) CRC ¶ added in v1.6.0
func (*ChannelsToggleAutotranslationParams) CRC() uint32
type ChannelsToggleForumParams ¶
type ChannelsToggleForumParams struct {
Channel InputChannel
Enabled bool
Tabs bool
}
func (*ChannelsToggleForumParams) CRC ¶
func (*ChannelsToggleForumParams) CRC() uint32
type ChannelsToggleJoinRequestParams ¶
type ChannelsToggleJoinRequestParams struct {
Channel InputChannel
Enabled bool
}
func (*ChannelsToggleJoinRequestParams) CRC ¶
func (*ChannelsToggleJoinRequestParams) CRC() uint32
type ChannelsToggleJoinToSendParams ¶
type ChannelsToggleJoinToSendParams struct {
Channel InputChannel
Enabled bool
}
func (*ChannelsToggleJoinToSendParams) CRC ¶
func (*ChannelsToggleJoinToSendParams) CRC() uint32
type ChannelsToggleParticipantsHiddenParams ¶
type ChannelsToggleParticipantsHiddenParams struct {
Channel InputChannel
Enabled bool
}
func (*ChannelsToggleParticipantsHiddenParams) CRC ¶
func (*ChannelsToggleParticipantsHiddenParams) CRC() uint32
type ChannelsTogglePreHistoryHiddenParams ¶
type ChannelsTogglePreHistoryHiddenParams struct {
Channel InputChannel
Enabled bool
}
func (*ChannelsTogglePreHistoryHiddenParams) CRC ¶
func (*ChannelsTogglePreHistoryHiddenParams) CRC() uint32
type ChannelsToggleSignaturesParams ¶
type ChannelsToggleSignaturesParams struct {
SignaturesEnabled bool `tl:"flag:0,encoded_in_bitflags"`
ProfilesEnabled bool `tl:"flag:1,encoded_in_bitflags"`
Channel InputChannel
}
func (*ChannelsToggleSignaturesParams) CRC ¶
func (*ChannelsToggleSignaturesParams) CRC() uint32
func (*ChannelsToggleSignaturesParams) FlagIndex ¶
func (*ChannelsToggleSignaturesParams) FlagIndex() int
type ChannelsToggleSlowModeParams ¶
type ChannelsToggleSlowModeParams struct {
Channel InputChannel
Seconds int32
}
func (*ChannelsToggleSlowModeParams) CRC ¶
func (*ChannelsToggleSlowModeParams) CRC() uint32
type ChannelsToggleUsernameParams ¶
type ChannelsToggleUsernameParams struct {
Channel InputChannel
Username string
Active bool
}
func (*ChannelsToggleUsernameParams) CRC ¶
func (*ChannelsToggleUsernameParams) CRC() uint32
type ChannelsToggleViewForumAsMessagesParams ¶
type ChannelsToggleViewForumAsMessagesParams struct {
Channel InputChannel
Enabled bool
}
func (*ChannelsToggleViewForumAsMessagesParams) CRC ¶
func (*ChannelsToggleViewForumAsMessagesParams) CRC() uint32
type ChannelsUpdateColorParams ¶
type ChannelsUpdateColorParams struct {
ForProfile bool `tl:"flag:1,encoded_in_bitflags"`
Channel InputChannel
Color int32 `tl:"flag:2"`
BackgroundEmojiID int64 `tl:"flag:0"`
}
func (*ChannelsUpdateColorParams) CRC ¶
func (*ChannelsUpdateColorParams) CRC() uint32
func (*ChannelsUpdateColorParams) FlagIndex ¶
func (*ChannelsUpdateColorParams) FlagIndex() int
type ChannelsUpdateEmojiStatusParams ¶
type ChannelsUpdateEmojiStatusParams struct {
Channel InputChannel
EmojiStatus EmojiStatus
}
func (*ChannelsUpdateEmojiStatusParams) CRC ¶
func (*ChannelsUpdateEmojiStatusParams) CRC() uint32
type ChannelsUpdatePaidMessagesPriceParams ¶ added in v1.6.0
type ChannelsUpdatePaidMessagesPriceParams struct {
BroadcastMessagesAllowed bool `tl:"flag:0,encoded_in_bitflags"`
Channel InputChannel
SendPaidMessagesStars int64
}
func (*ChannelsUpdatePaidMessagesPriceParams) CRC ¶ added in v1.6.0
func (*ChannelsUpdatePaidMessagesPriceParams) CRC() uint32
func (*ChannelsUpdatePaidMessagesPriceParams) FlagIndex ¶ added in v1.6.1
func (*ChannelsUpdatePaidMessagesPriceParams) FlagIndex() int
type ChannelsUpdateUsernameParams ¶
type ChannelsUpdateUsernameParams struct {
Channel InputChannel
Username string
}
func (*ChannelsUpdateUsernameParams) CRC ¶
func (*ChannelsUpdateUsernameParams) CRC() uint32
type ChatAdminRights ¶
type ChatAdminRights struct {
ChangeInfo bool `tl:"flag:0,encoded_in_bitflags"`
PostMessages bool `tl:"flag:1,encoded_in_bitflags"`
EditMessages bool `tl:"flag:2,encoded_in_bitflags"`
DeleteMessages bool `tl:"flag:3,encoded_in_bitflags"`
BanUsers bool `tl:"flag:4,encoded_in_bitflags"`
InviteUsers bool `tl:"flag:5,encoded_in_bitflags"`
PinMessages bool `tl:"flag:7,encoded_in_bitflags"`
AddAdmins bool `tl:"flag:9,encoded_in_bitflags"`
Anonymous bool `tl:"flag:10,encoded_in_bitflags"`
ManageCall bool `tl:"flag:11,encoded_in_bitflags"`
Other bool `tl:"flag:12,encoded_in_bitflags"`
ManageTopics bool `tl:"flag:13,encoded_in_bitflags"`
PostStories bool `tl:"flag:14,encoded_in_bitflags"`
EditStories bool `tl:"flag:15,encoded_in_bitflags"`
DeleteStories bool `tl:"flag:16,encoded_in_bitflags"`
ManageDirectMessages bool `tl:"flag:17,encoded_in_bitflags"`
}
Represents the rights of an admin in a channel/supergroup.
func (*ChatAdminRights) CRC ¶
func (*ChatAdminRights) CRC() uint32
func (*ChatAdminRights) FlagIndex ¶
func (*ChatAdminRights) FlagIndex() int
type ChatAdminWithInvites ¶
Info about chat invites generated by admins.
func (*ChatAdminWithInvites) CRC ¶
func (*ChatAdminWithInvites) CRC() uint32
type ChatBannedRights ¶
type ChatBannedRights struct {
ViewMessages bool `tl:"flag:0,encoded_in_bitflags"`
SendMessages bool `tl:"flag:1,encoded_in_bitflags"`
SendMedia bool `tl:"flag:2,encoded_in_bitflags"`
SendStickers bool `tl:"flag:3,encoded_in_bitflags"`
SendGifs bool `tl:"flag:4,encoded_in_bitflags"`
SendGames bool `tl:"flag:5,encoded_in_bitflags"`
SendInline bool `tl:"flag:6,encoded_in_bitflags"`
EmbedLinks bool `tl:"flag:7,encoded_in_bitflags"`
SendPolls bool `tl:"flag:8,encoded_in_bitflags"`
ChangeInfo bool `tl:"flag:10,encoded_in_bitflags"`
InviteUsers bool `tl:"flag:15,encoded_in_bitflags"`
PinMessages bool `tl:"flag:17,encoded_in_bitflags"`
ManageTopics bool `tl:"flag:18,encoded_in_bitflags"`
SendPhotos bool `tl:"flag:19,encoded_in_bitflags"`
SendVideos bool `tl:"flag:20,encoded_in_bitflags"`
SendRoundvideos bool `tl:"flag:21,encoded_in_bitflags"`
SendAudios bool `tl:"flag:22,encoded_in_bitflags"`
SendVoices bool `tl:"flag:23,encoded_in_bitflags"`
SendDocs bool `tl:"flag:24,encoded_in_bitflags"`
SendPlain bool `tl:"flag:25,encoded_in_bitflags"`
UntilDate int32
}
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.
func (*ChatBannedRights) CRC ¶
func (*ChatBannedRights) CRC() uint32
func (*ChatBannedRights) FlagIndex ¶
func (*ChatBannedRights) FlagIndex() int
type ChatEmpty ¶
type ChatEmpty struct {
ID int64 // Group identifier
}
Empty constructor, group doesn't exist
func (*ChatEmpty) ImplementsChat ¶
func (*ChatEmpty) ImplementsChat()
type ChatForbidden ¶
A group to which the user has no access. E.g., because the user was kicked from the group.
func (*ChatForbidden) CRC ¶
func (*ChatForbidden) CRC() uint32
func (*ChatForbidden) ImplementsChat ¶
func (*ChatForbidden) ImplementsChat()
type ChatFullObj ¶
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
TranslationsDisabled bool `tl:"flag:19,encoded_in_bitflags"` // Whether the real-time chat translation popup should be hidden.
ID int64 // ID of the chat
About string // About string for this chat
Participants ChatParticipants // Participant list
ChatPhoto Photo `tl:"flag:2"` // Chat photo
NotifySettings *PeerNotifySettings // Notification settings
ExportedInvite ExportedChatInvite `tl:"flag:13"` // Chat invite
BotInfo []*BotInfo `tl:"flag:3"` // Info about bots that are in this chat
PinnedMsgID int32 `tl:"flag:6"` // Message ID of the last pinned message
FolderID int32 `tl:"flag:11"` // Peer folder ID, for more info click here
Call InputGroupCall `tl:"flag:12"` // Group call information
TtlPeriod int32 `tl:"flag:14"` // Time-To-Live of messages sent by the current user to this chat
GroupcallDefaultJoinAs Peer `tl:"flag:15"` // 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:16"` // Emoji representing a specific chat theme
RequestsPending int32 `tl:"flag:17"` // Pending join requests
RecentRequesters []int64 `tl:"flag:17"` // IDs of users who requested to join recently
AvailableReactions ChatReactions `tl:"flag:18"` // Allowed message reactions
ReactionsLimit int32 `tl:"flag:20"` // This flag may be used to impose a custom limit of unique reactions (i.e. a customizable version of appConfig.reactions_uniq_max).
}
Full info about a basic group.
func (*ChatFullObj) CRC ¶
func (*ChatFullObj) CRC() uint32
func (*ChatFullObj) FlagIndex ¶
func (*ChatFullObj) FlagIndex() int
func (*ChatFullObj) ImplementsChatFull ¶
func (*ChatFullObj) ImplementsChatFull()
type ChatInvite ¶
type ChatInviteAlready ¶
type ChatInviteAlready struct {
Chat Chat // The chat connected to the invite
}
The user has already joined this chat
func (*ChatInviteAlready) CRC ¶
func (*ChatInviteAlready) CRC() uint32
func (*ChatInviteAlready) ImplementsChatInvite ¶
func (*ChatInviteAlready) ImplementsChatInvite()
type ChatInviteExported ¶
type ChatInviteExported struct {
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.
}
Exported chat invite
func (*ChatInviteExported) CRC ¶
func (*ChatInviteExported) CRC() uint32
func (*ChatInviteExported) FlagIndex ¶
func (*ChatInviteExported) FlagIndex() int
func (*ChatInviteExported) ImplementsExportedChatInvite ¶
func (*ChatInviteExported) ImplementsExportedChatInvite()
type ChatInviteImporter ¶
type ChatInviteImporter struct {
Requested bool `tl:"flag:0,encoded_in_bitflags"`
ViaChatlist bool `tl:"flag:3,encoded_in_bitflags"`
UserID int64
Date int32
About string `tl:"flag:2"`
ApprovedBy int64 `tl:"flag:1"`
}
When and which user joined the chat using a chat invite
func (*ChatInviteImporter) CRC ¶
func (*ChatInviteImporter) CRC() uint32
func (*ChatInviteImporter) FlagIndex ¶
func (*ChatInviteImporter) FlagIndex() int
type ChatInviteObj ¶
type ChatInviteObj struct {
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.
BotVerification *BotVerification `tl:"flag:13"` // Describes a bot verification icon.
}
Chat invite info
func (*ChatInviteObj) CRC ¶
func (*ChatInviteObj) CRC() uint32
func (*ChatInviteObj) FlagIndex ¶
func (*ChatInviteObj) FlagIndex() int
func (*ChatInviteObj) ImplementsChatInvite ¶
func (*ChatInviteObj) ImplementsChatInvite()
type ChatInvitePeek ¶
type ChatInvitePeek struct {
Chat Chat // Chat information
Expires int32 // Read-only anonymous access to this group will be revoked at this date
}
A chat invitation that also allows peeking into the group to read messages without joining it.
func (*ChatInvitePeek) CRC ¶
func (*ChatInvitePeek) CRC() uint32
func (*ChatInvitePeek) ImplementsChatInvite ¶
func (*ChatInvitePeek) ImplementsChatInvite()
type ChatInvitePublicJoinRequests ¶
type ChatInvitePublicJoinRequests struct{}
Used in updates and in the channel log to indicate when a user is requesting to join or has joined a discussion group
func (*ChatInvitePublicJoinRequests) CRC ¶
func (*ChatInvitePublicJoinRequests) CRC() uint32
func (*ChatInvitePublicJoinRequests) ImplementsExportedChatInvite ¶
func (*ChatInvitePublicJoinRequests) ImplementsExportedChatInvite()
type ChatObj ¶
type ChatObj struct {
Creator bool `tl:"flag:0,encoded_in_bitflags"` // Whether the current user is the creator of the group
Left bool `tl:"flag:2,encoded_in_bitflags"` // Whether the current user has left the group
Deactivated bool `tl:"flag:5,encoded_in_bitflags"` // Whether the group was migrated
CallActive bool `tl:"flag:23,encoded_in_bitflags"` // Whether a group call is currently active
CallNotEmpty bool `tl:"flag:24,encoded_in_bitflags"` // Whether there's anyone in the group call
Noforwards bool `tl:"flag:25,encoded_in_bitflags"` // Whether this group is protected, thus does not allow forwarding messages from it
ID int64 // ID of the group
Title string // Title
Photo ChatPhoto // Chat photo
ParticipantsCount int32 // Participant count
Date int32 // Date of creation of the group
Version int32 // Used in basic groups to reorder updates and make sure that all of them were received.
MigratedTo InputChannel `tl:"flag:6"` // Means this chat was upgraded to a supergroup
AdminRights *ChatAdminRights `tl:"flag:14"` // Admin rights of the user in the group
DefaultBannedRights *ChatBannedRights `tl:"flag:18"` // Default banned rights of all users in the group
}
Info about a group.
func (*ChatObj) ImplementsChat ¶
func (*ChatObj) ImplementsChat()
type ChatOnlines ¶
type ChatOnlines struct {
Onlines int32
}
Number of online users in a chat
func (*ChatOnlines) CRC ¶
func (*ChatOnlines) CRC() uint32
type ChatParticipant ¶
type ChatParticipantAdmin ¶
type ChatParticipantAdmin struct {
UserID int64 // ID of a group member that is admin
InviterID int64 // ID of the user that added the member to the group
Date int32 // Date when the user was added
}
Chat admin
func (*ChatParticipantAdmin) CRC ¶
func (*ChatParticipantAdmin) CRC() uint32
func (*ChatParticipantAdmin) ImplementsChatParticipant ¶
func (*ChatParticipantAdmin) ImplementsChatParticipant()
type ChatParticipantCreator ¶
type ChatParticipantCreator struct {
UserID int64 // ID of the user that created the group
}
Represents the creator of the group
func (*ChatParticipantCreator) CRC ¶
func (*ChatParticipantCreator) CRC() uint32
func (*ChatParticipantCreator) ImplementsChatParticipant ¶
func (*ChatParticipantCreator) ImplementsChatParticipant()
type ChatParticipantObj ¶
type ChatParticipantObj struct {
UserID int64 // Member user ID
InviterID int64 // ID of the user that added the member to the group
Date int32 // Date added to the group
}
Group member.
func (*ChatParticipantObj) CRC ¶
func (*ChatParticipantObj) CRC() uint32
func (*ChatParticipantObj) ImplementsChatParticipant ¶
func (*ChatParticipantObj) ImplementsChatParticipant()
type ChatParticipants ¶
type ChatParticipantsForbidden ¶
type ChatParticipantsForbidden struct {
ChatID int64 // Group ID
SelfParticipant ChatParticipant `tl:"flag:0"` // Info about the group membership of the current user
}
Info on members is unavailable
func (*ChatParticipantsForbidden) CRC ¶
func (*ChatParticipantsForbidden) CRC() uint32
func (*ChatParticipantsForbidden) FlagIndex ¶
func (*ChatParticipantsForbidden) FlagIndex() int
func (*ChatParticipantsForbidden) ImplementsChatParticipants ¶
func (*ChatParticipantsForbidden) ImplementsChatParticipants()
type ChatParticipantsObj ¶
type ChatParticipantsObj struct {
ChatID int64 // Group identifier
Participants []ChatParticipant // List of group members
Version int32 // Group version number
}
Group members.
func (*ChatParticipantsObj) CRC ¶
func (*ChatParticipantsObj) CRC() uint32
func (*ChatParticipantsObj) ImplementsChatParticipants ¶
func (*ChatParticipantsObj) ImplementsChatParticipants()
type ChatPhotoEmpty ¶
type ChatPhotoEmpty struct{}
Group photo is not set.
func (*ChatPhotoEmpty) CRC ¶
func (*ChatPhotoEmpty) CRC() uint32
func (*ChatPhotoEmpty) ImplementsChatPhoto ¶
func (*ChatPhotoEmpty) ImplementsChatPhoto()
type ChatPhotoObj ¶
type ChatPhotoObj struct {
HasVideo bool `tl:"flag:0,encoded_in_bitflags"` // Whether the user has an animated profile picture
PhotoID int64 // Photo ID
StrippedThumb []byte `tl:"flag:1"` // Stripped thumbnail
DcID int32 // DC where this photo is stored
}
Group profile photo.
func (*ChatPhotoObj) CRC ¶
func (*ChatPhotoObj) CRC() uint32
func (*ChatPhotoObj) FlagIndex ¶
func (*ChatPhotoObj) FlagIndex() int
func (*ChatPhotoObj) ImplementsChatPhoto ¶
func (*ChatPhotoObj) ImplementsChatPhoto()
type ChatReactions ¶
type ChatReactionsAll ¶
type ChatReactionsAll struct {
AllowCustom bool `tl:"flag:0,encoded_in_bitflags"` // Whether to allow custom reactions
}
All reactions or all non-custom reactions are allowed
func (*ChatReactionsAll) CRC ¶
func (*ChatReactionsAll) CRC() uint32
func (*ChatReactionsAll) FlagIndex ¶
func (*ChatReactionsAll) FlagIndex() int
func (*ChatReactionsAll) ImplementsChatReactions ¶
func (*ChatReactionsAll) ImplementsChatReactions()
type ChatReactionsNone ¶
type ChatReactionsNone struct{}
No reactions are allowed
func (*ChatReactionsNone) CRC ¶
func (*ChatReactionsNone) CRC() uint32
func (*ChatReactionsNone) ImplementsChatReactions ¶
func (*ChatReactionsNone) ImplementsChatReactions()
type ChatReactionsSome ¶
type ChatReactionsSome struct {
Reactions []Reaction // Allowed set of reactions: the reactions_in_chat_max configuration field indicates the maximum number of reactions that can be specified in this field.
}
Some reactions are allowed
func (*ChatReactionsSome) CRC ¶
func (*ChatReactionsSome) CRC() uint32
func (*ChatReactionsSome) ImplementsChatReactions ¶
func (*ChatReactionsSome) ImplementsChatReactions()
type ChatThemeObj ¶ added in v1.6.3
type ChatThemeObj struct {
Emoticon string // The emoji identifying the chat theme.
}
A chat theme
func (*ChatThemeObj) CRC ¶ added in v1.6.3
func (*ChatThemeObj) CRC() uint32
func (*ChatThemeObj) ImplementsChatTheme ¶ added in v1.6.3
func (*ChatThemeObj) ImplementsChatTheme()
type ChatThemeUniqueGift ¶ added in v1.6.3
type ChatThemeUniqueGift struct {
Gift StarGift // The owned collectible gift on which this theme is based, as a starGiftUnique constructor.
ThemeSettings []*ThemeSettings // Theme settings.
}
A chat theme based on a collectible gift.
func (*ChatThemeUniqueGift) CRC ¶ added in v1.6.3
func (*ChatThemeUniqueGift) CRC() uint32
func (*ChatThemeUniqueGift) ImplementsChatTheme ¶ added in v1.6.3
func (*ChatThemeUniqueGift) ImplementsChatTheme()
type ChatlistsChatlistInvite ¶
type ChatlistsChatlistInviteAlready ¶
type ChatlistsChatlistInviteAlready struct {
FilterID int32 // ID of the imported folder
MissingPeers []Peer // New peers to be imported
AlreadyPeers []Peer // Peers that were already imported
Chats []Chat // Related chat information
Users []User // Related user information
}
Updated info about a chat folder deep link we already imported.
func (*ChatlistsChatlistInviteAlready) CRC ¶
func (*ChatlistsChatlistInviteAlready) CRC() uint32
func (*ChatlistsChatlistInviteAlready) ImplementsChatlistsChatlistInvite ¶
func (*ChatlistsChatlistInviteAlready) ImplementsChatlistsChatlistInvite()
type ChatlistsChatlistInviteObj ¶
type ChatlistsChatlistInviteObj struct {
TitleNoanimate bool `tl:"flag:1,encoded_in_bitflags"` // If set, any animated emojis present in `title` should not be animated and should be instead frozen on the first frame.
Title *TextWithEntities // Name of the link
Emoticon string `tl:"flag:0"` // Emoji to use as icon for the folder.
Peers []Peer // Supergroups and channels to join
Chats []Chat // Related chat information
Users []User // Related user information
}
Info about a chat folder deep link.
func (*ChatlistsChatlistInviteObj) CRC ¶
func (*ChatlistsChatlistInviteObj) CRC() uint32
func (*ChatlistsChatlistInviteObj) FlagIndex ¶
func (*ChatlistsChatlistInviteObj) FlagIndex() int
func (*ChatlistsChatlistInviteObj) ImplementsChatlistsChatlistInvite ¶
func (*ChatlistsChatlistInviteObj) ImplementsChatlistsChatlistInvite()
type ChatlistsChatlistUpdates ¶
Updated information about a chat folder deep link.
func (*ChatlistsChatlistUpdates) CRC ¶
func (*ChatlistsChatlistUpdates) CRC() uint32
type ChatlistsCheckChatlistInviteParams ¶
type ChatlistsCheckChatlistInviteParams struct {
Slug string
}
func (*ChatlistsCheckChatlistInviteParams) CRC ¶
func (*ChatlistsCheckChatlistInviteParams) CRC() uint32
type ChatlistsDeleteExportedInviteParams ¶
type ChatlistsDeleteExportedInviteParams struct {
Chatlist *InputChatlistDialogFilter
Slug string
}
func (*ChatlistsDeleteExportedInviteParams) CRC ¶
func (*ChatlistsDeleteExportedInviteParams) CRC() uint32
type ChatlistsEditExportedInviteParams ¶
type ChatlistsEditExportedInviteParams struct {
Chatlist *InputChatlistDialogFilter
Slug string
Title string `tl:"flag:1"`
Peers []InputPeer `tl:"flag:2"`
}
func (*ChatlistsEditExportedInviteParams) CRC ¶
func (*ChatlistsEditExportedInviteParams) CRC() uint32
func (*ChatlistsEditExportedInviteParams) FlagIndex ¶
func (*ChatlistsEditExportedInviteParams) FlagIndex() int
type ChatlistsExportChatlistInviteParams ¶
type ChatlistsExportChatlistInviteParams struct {
Chatlist *InputChatlistDialogFilter
Title string
Peers []InputPeer
}
func (*ChatlistsExportChatlistInviteParams) CRC ¶
func (*ChatlistsExportChatlistInviteParams) CRC() uint32
type ChatlistsExportedChatlistInvite ¶
type ChatlistsExportedChatlistInvite struct {
Filter DialogFilter
Invite *ExportedChatlistInvite
}
Info about an exported chat folder deep link.
func (*ChatlistsExportedChatlistInvite) CRC ¶
func (*ChatlistsExportedChatlistInvite) CRC() uint32
type ChatlistsExportedInvites ¶
type ChatlistsExportedInvites struct {
Invites []*ExportedChatlistInvite
Chats []Chat
Users []User
}
Info about multiple chat folder deep links.
func (*ChatlistsExportedInvites) CRC ¶
func (*ChatlistsExportedInvites) CRC() uint32
type ChatlistsGetChatlistUpdatesParams ¶
type ChatlistsGetChatlistUpdatesParams struct {
Chatlist *InputChatlistDialogFilter
}
func (*ChatlistsGetChatlistUpdatesParams) CRC ¶
func (*ChatlistsGetChatlistUpdatesParams) CRC() uint32
type ChatlistsGetExportedInvitesParams ¶
type ChatlistsGetExportedInvitesParams struct {
Chatlist *InputChatlistDialogFilter
}
func (*ChatlistsGetExportedInvitesParams) CRC ¶
func (*ChatlistsGetExportedInvitesParams) CRC() uint32
type ChatlistsGetLeaveChatlistSuggestionsParams ¶
type ChatlistsGetLeaveChatlistSuggestionsParams struct {
Chatlist *InputChatlistDialogFilter
}
func (*ChatlistsGetLeaveChatlistSuggestionsParams) CRC ¶
func (*ChatlistsGetLeaveChatlistSuggestionsParams) CRC() uint32
type ChatlistsHideChatlistUpdatesParams ¶
type ChatlistsHideChatlistUpdatesParams struct {
Chatlist *InputChatlistDialogFilter
}
func (*ChatlistsHideChatlistUpdatesParams) CRC ¶
func (*ChatlistsHideChatlistUpdatesParams) CRC() uint32
type ChatlistsJoinChatlistInviteParams ¶
func (*ChatlistsJoinChatlistInviteParams) CRC ¶
func (*ChatlistsJoinChatlistInviteParams) CRC() uint32
type ChatlistsJoinChatlistUpdatesParams ¶
type ChatlistsJoinChatlistUpdatesParams struct {
Chatlist *InputChatlistDialogFilter
Peers []InputPeer
}
func (*ChatlistsJoinChatlistUpdatesParams) CRC ¶
func (*ChatlistsJoinChatlistUpdatesParams) CRC() uint32
type ChatlistsLeaveChatlistParams ¶
type ChatlistsLeaveChatlistParams struct {
Chatlist *InputChatlistDialogFilter
Peers []InputPeer
}
func (*ChatlistsLeaveChatlistParams) CRC ¶
func (*ChatlistsLeaveChatlistParams) CRC() uint32
type ClickOptions ¶
type Client ¶
type Client struct {
*mtproto.MTProto
Cache *CACHE
Log Logger
// contains filtered or unexported fields
}
Client is the main struct of the library
func NewClient ¶
func NewClient(config ClientConfig) (*Client, error)
func QuickBot ¶ added in v1.6.10
QuickBot creates a new client and logs in as a bot in one call. This is a convenience method for quick bot setup.
Example:
client, err := telegram.QuickBot(12345, "your_app_hash", "bot_token")
if err != nil {
log.Fatal(err)
}
func QuickPhone ¶ added in v1.6.10
func QuickPhone(appID int32, appHash, phoneNumber string, options ...*LoginOptions) (*Client, error)
QuickPhone creates a new client and logs in with a phone number in one call. This is a convenience method for quick user setup with interactive code input.
Example:
client, err := telegram.QuickPhone(12345, "your_app_hash", "+1234567890")
if err != nil {
log.Fatal(err)
}
func (*Client) AcceptSecretChat ¶ added in v1.7.0
func (c *Client) AcceptSecretChat(chat InputEncryptedChat, gA []byte) error
AcceptSecretChat accepts a secret chat request
func (*Client) AccountAcceptAuthorization ¶
func (c *Client) AccountAcceptAuthorization(botID int64, scope, publicKey string, valueHashes []*SecureValueHash, credentials *SecureCredentialsEncrypted) (bool, error)
Sends a Telegram Passport authorization form, effectively sharing data with the service
func (*Client) AccountCancelPasswordEmail ¶
Cancel the code that was sent to verify an email to use as 2FA recovery method.
func (*Client) AccountChangeAuthorizationSettings ¶
func (c *Client) AccountChangeAuthorizationSettings(confirmed bool, hash int64, encryptedRequestsDisabled, callRequestsDisabled bool) (bool, error)
Change settings related to a session.
func (*Client) AccountChangePhone ¶
Change the phone number of the current account
func (*Client) AccountCheckUsername ¶
Validates a username and checks availability.
func (*Client) AccountClearRecentEmojiStatuses ¶
Clears list of recently used emoji statuses
func (*Client) AccountConfirmPasswordEmail ¶
Verify an email to use as 2FA recovery method.
func (*Client) AccountConfirmPhone ¶
Confirm a phone number to cancel account deletion, for more info click here
func (*Client) AccountCreateBusinessChatLink ¶
func (c *Client) AccountCreateBusinessChatLink(link *InputBusinessChatLink) (*BusinessChatLink, error)
Create a business chat deep link.
func (*Client) AccountCreateTheme ¶
func (c *Client) AccountCreateTheme(slug, title string, document InputDocument, settings []*InputThemeSettings) (*Theme, error)
Create a theme
func (*Client) AccountDeclinePasswordReset ¶
Abort a pending 2FA password reset
func (*Client) AccountDeleteAccount ¶
func (c *Client) AccountDeleteAccount(reason string, password InputCheckPasswordSRP) (bool, error)
Delete the user's account from the telegram servers.
func (*Client) AccountDeleteAutoSaveExceptions ¶
Clear all peer-specific autosave settings.
func (*Client) AccountDeleteBusinessChatLink ¶
Delete a business chat deep link.
func (*Client) AccountDeletePasskey ¶ added in v1.6.10
func (*Client) AccountDeleteSecureValue ¶
func (c *Client) AccountDeleteSecureValue(types []SecureValueType) (bool, error)
Delete stored Telegram Passport documents, for more info see the passport docs
func (*Client) AccountDisablePeerConnectedBot ¶
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 (*Client) AccountEditBusinessChatLink ¶
func (c *Client) AccountEditBusinessChatLink(slug string, link *InputBusinessChatLink) (*BusinessChatLink, error)
Edit a created business chat deep link.
func (*Client) AccountFinishTakeoutSession ¶
Terminate a takeout session
func (*Client) AccountGetAccountTtl ¶
func (c *Client) AccountGetAccountTtl() (*AccountDaysTtl, error)
Get days to live of account
func (*Client) AccountGetAllSecureValues ¶
func (c *Client) AccountGetAllSecureValues() ([]*SecureValue, error)
Get all saved Telegram Passport documents, for more info see the passport docs
func (*Client) AccountGetAuthorizationForm ¶
func (c *Client) AccountGetAuthorizationForm(botID int64, scope, publicKey string) (*AccountAuthorizationForm, error)
Returns a Telegram Passport authorization form for sharing data with a service
func (*Client) AccountGetAuthorizations ¶
func (c *Client) AccountGetAuthorizations() (*AccountAuthorizations, error)
Get logged-in sessions
func (*Client) AccountGetAutoDownloadSettings ¶
func (c *Client) AccountGetAutoDownloadSettings() (*AccountAutoDownloadSettings, error)
Get media autodownload settings
func (*Client) AccountGetAutoSaveSettings ¶
func (c *Client) AccountGetAutoSaveSettings() (*AccountAutoSaveSettings, error)
Get autosave settings
func (*Client) AccountGetBotBusinessConnection ¶
Bots may invoke this method to re-fetch the updateBotBusinessConnect constructor associated with a specific business `connection_id` 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 (*Client) AccountGetBusinessChatLinks ¶
func (c *Client) AccountGetBusinessChatLinks() (*AccountBusinessChatLinks, error)
List all created business chat deep links.
func (*Client) AccountGetChannelDefaultEmojiStatuses ¶
func (c *Client) AccountGetChannelDefaultEmojiStatuses(hash int64) (AccountEmojiStatuses, error)
Get a list of default suggested channel emoji statuses.
func (*Client) AccountGetChannelRestrictedStatusEmojis ¶
Returns fetch the full list of custom emoji IDs that cannot be used in channel emoji statuses.
func (*Client) AccountGetChatThemes ¶
func (c *Client) AccountGetChatThemes(hash int64) (AccountThemes, error)
Get all available chat themes.
func (*Client) AccountGetCollectibleEmojiStatuses ¶ added in v1.5.6
func (c *Client) AccountGetCollectibleEmojiStatuses(hash int64) (AccountEmojiStatuses, error)
Obtain a list of emoji statuses for owned collectible gifts.
func (*Client) AccountGetConnectedBots ¶
func (c *Client) AccountGetConnectedBots() (*AccountConnectedBots, error)
List all currently connected business bots
func (*Client) AccountGetContactSignUpNotification ¶
Whether the user will receive notifications when contacts sign up
func (*Client) AccountGetContentSettings ¶
func (c *Client) AccountGetContentSettings() (*AccountContentSettings, error)
Get sensitive content settings
func (*Client) AccountGetDefaultBackgroundEmojis ¶
Get a set of suggested custom emoji stickers that can be used in an accent color pattern.
func (*Client) AccountGetDefaultEmojiStatuses ¶
func (c *Client) AccountGetDefaultEmojiStatuses(hash int64) (AccountEmojiStatuses, error)
Get a list of default suggested emoji statuses
func (*Client) AccountGetDefaultGroupPhotoEmojis ¶
Get a set of suggested custom emoji stickers that can be used as group picture
func (*Client) AccountGetDefaultProfilePhotoEmojis ¶
Get a set of suggested custom emoji stickers that can be used as profile picture
func (*Client) AccountGetGlobalPrivacySettings ¶
func (c *Client) AccountGetGlobalPrivacySettings() (*GlobalPrivacySettings, error)
Get global privacy settings
func (*Client) AccountGetMultiWallPapers ¶
func (c *Client) AccountGetMultiWallPapers(wallpapers []InputWallPaper) ([]WallPaper, error)
Get info about multiple wallpapers
func (*Client) AccountGetNotifyExceptions ¶
func (c *Client) AccountGetNotifyExceptions(compareSound, compareStories bool, peer InputNotifyPeer) (Updates, error)
Returns list of chats with non-default notification settings
func (*Client) AccountGetNotifySettings ¶
func (c *Client) AccountGetNotifySettings(peer InputNotifyPeer) (*PeerNotifySettings, error)
Gets current notification settings for a given user/group, from all users/all groups.
func (*Client) AccountGetPaidMessagesRevenue ¶ added in v1.6.0
func (c *Client) AccountGetPaidMessagesRevenue(parentPeer InputPeer, userID InputUser) (*AccountPaidMessagesRevenue, error)
Get the number of stars we have received from the specified user thanks to paid messages ; the received amount will be equal to the sent amount multiplied by stars_paid_message_commission_permille divided by 1000.
func (*Client) AccountGetPasskeys ¶ added in v1.6.10
func (c *Client) AccountGetPasskeys() (*AccountPasskeys, error)
func (*Client) AccountGetPassword ¶
func (c *Client) AccountGetPassword() (*AccountPassword, error)
Obtain configuration for two-factor authorization with password
func (*Client) AccountGetPasswordSettings ¶
func (c *Client) AccountGetPasswordSettings(password InputCheckPasswordSRP) (*AccountPasswordSettings, error)
Get private info associated to the password info (recovery email, telegram passport info & so on)
func (*Client) AccountGetPrivacy ¶
func (c *Client) AccountGetPrivacy(key InputPrivacyKey) (*AccountPrivacyRules, error)
Get privacy settings of current account
func (*Client) AccountGetReactionsNotifySettings ¶
func (c *Client) AccountGetReactionsNotifySettings() (*ReactionsNotifySettings, error)
Get the current reaction notification settings.
func (*Client) AccountGetRecentEmojiStatuses ¶
func (c *Client) AccountGetRecentEmojiStatuses(hash int64) (AccountEmojiStatuses, error)
Get recently used emoji statuses
func (*Client) AccountGetSavedMusicIds ¶ added in v1.6.3
func (c *Client) AccountGetSavedMusicIds(hash int64) (AccountSavedMusicIds, error)
Fetch the full list of only the IDs of songs currently added to the profile
func (*Client) AccountGetSavedRingtones ¶
func (c *Client) AccountGetSavedRingtones(hash int64) (AccountSavedRingtones, error)
Fetch saved notification sounds
func (*Client) AccountGetSecureValue ¶
func (c *Client) AccountGetSecureValue(types []SecureValueType) ([]*SecureValue, error)
Get saved Telegram Passport document, for more info see the passport docs
func (*Client) AccountGetTheme ¶
func (c *Client) AccountGetTheme(format string, theme InputTheme) (*Theme, error)
Get theme information
func (*Client) AccountGetThemes ¶
func (c *Client) AccountGetThemes(format string, hash int64) (AccountThemes, error)
Get installed themes
func (*Client) AccountGetTmpPassword ¶
func (c *Client) AccountGetTmpPassword(password InputCheckPasswordSRP, period int32) (*AccountTmpPassword, error)
Get temporary payment password
func (*Client) AccountGetUniqueGiftChatThemes ¶ added in v1.6.3
func (c *Client) AccountGetUniqueGiftChatThemes(offset string, limit int32, hash int64) (AccountChatThemes, error)
Obtain all chat themes associated to owned collectible gifts.
func (*Client) AccountGetWallPaper ¶
func (c *Client) AccountGetWallPaper(wallpaper InputWallPaper) (WallPaper, error)
Get info about a certain wallpaper
func (*Client) AccountGetWallPapers ¶
func (c *Client) AccountGetWallPapers(hash int64) (AccountWallPapers, error)
Returns a list of available wallpapers.
func (*Client) AccountGetWebAuthorizations ¶
func (c *Client) AccountGetWebAuthorizations() (*AccountWebAuthorizations, error)
Get web login widget authorizations
func (*Client) AccountInitPasskeyRegistration ¶ added in v1.6.10
func (c *Client) AccountInitPasskeyRegistration() (*AccountPasskeyRegistrationOptions, error)
func (*Client) AccountInitTakeoutSession ¶
func (c *Client) AccountInitTakeoutSession(params *AccountInitTakeoutSessionParams) (*AccountTakeout, error)
Initialize a takeout session
func (*Client) AccountInstallTheme ¶
func (c *Client) AccountInstallTheme(dark bool, theme InputTheme, format string, baseTheme BaseTheme) (bool, error)
Install a theme
func (*Client) AccountInstallWallPaper ¶
func (c *Client) AccountInstallWallPaper(wallpaper InputWallPaper, settings *WallPaperSettings) (bool, error)
Install wallpaper
func (*Client) AccountInvalidateSignInCodes ¶
Invalidate the specified login codes
func (*Client) AccountRegisterDevice ¶
func (c *Client) AccountRegisterDevice(params *AccountRegisterDeviceParams) (bool, error)
Register device to receive PUSH notifications
func (*Client) AccountRegisterPasskey ¶ added in v1.6.10
func (c *Client) AccountRegisterPasskey(credential *InputPasskeyCredentialPublicKey) (*Passkey, error)
func (*Client) AccountReorderUsernames ¶
Reorder usernames associated with the currently logged-in user.
func (*Client) AccountReportPeer ¶
func (c *Client) AccountReportPeer(peer InputPeer, reason ReportReason, message string) (bool, error)
Report a peer for violation of telegram's Terms of Service
func (*Client) AccountReportProfilePhoto ¶
func (c *Client) AccountReportProfilePhoto(peer InputPeer, photoID InputPhoto, reason ReportReason, message string) (bool, error)
Report a profile photo of a dialog
func (*Client) AccountResendPasswordEmail ¶
Resend the code to verify an email to use as 2FA recovery method.
func (*Client) AccountResetAuthorization ¶
Log out an active authorized session by its hash
func (*Client) AccountResetNotifySettings ¶
Resets all notification settings from users and groups.
func (*Client) AccountResetPassword ¶
func (c *Client) AccountResetPassword() (AccountResetPasswordResult, error)
Initiate a 2FA password reset: can only be used if the user is already logged-in
func (*Client) AccountResetWallPapers ¶
Delete all installed wallpapers, reverting to the default wallpaper set.
func (*Client) AccountResetWebAuthorization ¶
Log out an active web telegram login session
func (*Client) AccountResetWebAuthorizations ¶
Reset all active web telegram login sessions
func (*Client) AccountResolveBusinessChatLink ¶
func (c *Client) AccountResolveBusinessChatLink(slug string) (*AccountResolvedBusinessChatLinks, error)
Resolve a business chat deep link.
func (*Client) AccountSaveAutoDownloadSettings ¶
func (c *Client) AccountSaveAutoDownloadSettings(low, high bool, settings *AutoDownloadSettings) (bool, error)
Change media autodownload settings
func (*Client) AccountSaveAutoSaveSettings ¶
func (c *Client) AccountSaveAutoSaveSettings(params *AccountSaveAutoSaveSettingsParams) (bool, error)
Modify autosave settings
func (*Client) AccountSaveMusic ¶ added in v1.6.3
func (c *Client) AccountSaveMusic(unsave bool, id, afterID InputDocument) (bool, error)
Adds or removes a song from the current user's profile
func (*Client) AccountSaveRingtone ¶
func (c *Client) AccountSaveRingtone(id InputDocument, unsave bool) (AccountSavedRingtone, error)
Save or remove saved notification sound.
func (*Client) AccountSaveSecureValue ¶
func (c *Client) AccountSaveSecureValue(value *InputSecureValue, secureSecretID int64) (*SecureValue, error)
Securely save Telegram Passport document, for more info see the passport docs
func (*Client) AccountSaveTheme ¶
func (c *Client) AccountSaveTheme(theme InputTheme, unsave bool) (bool, error)
Save a theme
func (*Client) AccountSaveWallPaper ¶
func (c *Client) AccountSaveWallPaper(wallpaper InputWallPaper, unsave bool, settings *WallPaperSettings) (bool, error)
Install/uninstall wallpaper
func (*Client) AccountSendChangePhoneCode ¶
func (c *Client) AccountSendChangePhoneCode(phoneNumber string, settings *CodeSettings) (AuthSentCode, error)
Verify a new phone number to associate to the current account
func (*Client) AccountSendConfirmPhoneCode ¶
func (c *Client) AccountSendConfirmPhoneCode(hash string, settings *CodeSettings) (AuthSentCode, error)
Send confirmation code to cancel account deletion, for more info click here
func (*Client) AccountSendVerifyEmailCode ¶
func (c *Client) AccountSendVerifyEmailCode(purpose EmailVerifyPurpose, email string) (*AccountSentEmailCode, error)
Send an email verification code.
func (*Client) AccountSendVerifyPhoneCode ¶
func (c *Client) AccountSendVerifyPhoneCode(phoneNumber string, settings *CodeSettings) (AuthSentCode, error)
Send the verification phone code for telegram passport.
func (*Client) AccountSetAccountTtl ¶
func (c *Client) AccountSetAccountTtl(ttl *AccountDaysTtl) (bool, error)
Set account self-destruction period
func (*Client) AccountSetAuthorizationTtl ¶
Set time-to-live of current session
func (*Client) AccountSetContactSignUpNotification ¶
Toggle contact sign up notifications
func (*Client) AccountSetContentSettings ¶
Set sensitive content settings (for viewing or hiding NSFW content)
func (*Client) AccountSetGlobalPrivacySettings ¶
func (c *Client) AccountSetGlobalPrivacySettings(settings *GlobalPrivacySettings) (*GlobalPrivacySettings, error)
Set global privacy settings
func (*Client) AccountSetMainProfileTab ¶ added in v1.6.3
func (c *Client) AccountSetMainProfileTab(tab ProfileTab) (bool, error)
Changes the main profile tab of the current user
func (*Client) AccountSetPrivacy ¶
func (c *Client) AccountSetPrivacy(key InputPrivacyKey, rules []InputPrivacyRule) (*AccountPrivacyRules, error)
Change privacy settings of current account
func (*Client) AccountSetReactionsNotifySettings ¶
func (c *Client) AccountSetReactionsNotifySettings(settings *ReactionsNotifySettings) (*ReactionsNotifySettings, error)
Change the reaction notification settings.
func (*Client) AccountToggleConnectedBotPaused ¶
Pause or unpause a specific chat, temporarily disconnecting it from all business bots.
func (*Client) AccountToggleNoPaidMessagesException ¶ added in v1.6.1
func (c *Client) AccountToggleNoPaidMessagesException(refundCharged, requirePayment bool, parentPeer InputPeer, userID InputUser) (bool, error)
Allow a user to send us messages without paying if paid messages are enabled.
func (*Client) AccountToggleSponsoredMessages ¶
Disable or re-enable Telegram ads for the current Premium account.
func (*Client) AccountToggleUsername ¶
Activate or deactivate a purchased fragment.com username associated to the currently logged-in user.
func (*Client) AccountUnregisterDevice ¶
func (c *Client) AccountUnregisterDevice(tokenType int32, token string, otherUids []int64) (bool, error)
Deletes a device by its token, stops sending PUSH-notifications to it.
func (*Client) AccountUpdateBirthday ¶
Update our birthday
func (*Client) AccountUpdateBusinessAwayMessage ¶
func (c *Client) AccountUpdateBusinessAwayMessage(message *InputBusinessAwayMessage) (bool, error)
Set a list of Telegram Business away messages.
func (*Client) AccountUpdateBusinessGreetingMessage ¶
func (c *Client) AccountUpdateBusinessGreetingMessage(message *InputBusinessGreetingMessage) (bool, error)
Set a list of Telegram Business greeting messages.
func (*Client) AccountUpdateBusinessIntro ¶
func (c *Client) AccountUpdateBusinessIntro(intro *InputBusinessIntro) (bool, error)
Set or remove the Telegram Business introduction.
func (*Client) AccountUpdateBusinessLocation ¶
func (c *Client) AccountUpdateBusinessLocation(geoPoint InputGeoPoint, address string) (bool, error)
Businesses may advertise their location using this method
func (*Client) AccountUpdateBusinessWorkHours ¶
func (c *Client) AccountUpdateBusinessWorkHours(businessWorkHours *BusinessWorkHours) (bool, error)
Specify a set of Telegram Business opening hours. This info will be contained in userFull.`business_work_hours`.
func (*Client) AccountUpdateColor ¶
Update the accent color and background custom emoji of the current account.
func (*Client) AccountUpdateConnectedBot ¶
func (c *Client) AccountUpdateConnectedBot(deleted bool, rights *BusinessBotRights, bot InputUser, recipients *InputBusinessBotRecipients) (Updates, error)
Connect a business bot to the current account, or to change the current connection settings.
func (*Client) AccountUpdateDeviceLocked ¶
When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications.
func (*Client) AccountUpdateEmojiStatus ¶
func (c *Client) AccountUpdateEmojiStatus(emojiStatus EmojiStatus) (bool, error)
Set an emoji status
func (*Client) AccountUpdateNotifySettings ¶
func (c *Client) AccountUpdateNotifySettings(peer InputNotifyPeer, settings *InputPeerNotifySettings) (bool, error)
Edits notification settings from a given user/group, from all users/all groups.
func (*Client) AccountUpdatePasswordSettings ¶
func (c *Client) AccountUpdatePasswordSettings(password InputCheckPasswordSRP, newSettings *AccountPasswordInputSettings) (bool, error)
Set a new 2FA password
func (*Client) AccountUpdatePersonalChannel ¶
func (c *Client) AccountUpdatePersonalChannel(channel InputChannel) (bool, error)
Associate (or remove) a personal channel, that will be listed on our personal profile page.
func (*Client) AccountUpdateProfile ¶
Updates user profile.
func (*Client) AccountUpdateStatus ¶
Updates online user status.
func (*Client) AccountUpdateTheme ¶
func (c *Client) AccountUpdateTheme(params *AccountUpdateThemeParams) (*Theme, error)
Update theme
func (*Client) AccountUpdateUsername ¶
Changes username for the current user.
func (*Client) AccountUploadRingtone ¶
Upload notification sound, use account.saveRingtone to convert it and add it to the list of saved notification sounds.
func (*Client) AccountUploadTheme ¶
func (c *Client) AccountUploadTheme(file, thumb InputFile, fileName, mimeType string) (Document, error)
Upload theme
func (*Client) AccountUploadWallPaper ¶
func (c *Client) AccountUploadWallPaper(forChat bool, file InputFile, mimeType string, settings *WallPaperSettings) (WallPaper, error)
Create and upload a new wallpaper
func (*Client) AccountVerifyEmail ¶
func (c *Client) AccountVerifyEmail(purpose EmailVerifyPurpose, verification EmailVerification) (AccountEmailVerified, error)
Verify an email address.
func (*Client) AccountVerifyPhone ¶
Verify a phone number for telegram passport.
func (*Client) AddActionHandler ¶
func (c *Client) AddActionHandler(handler MessageHandler) Handle
func (*Client) AddAlbumHandler ¶
func (*Client) AddCallbackHandler ¶
func (c *Client) AddCallbackHandler(pattern any, handler CallbackHandler, filters ...Filter) Handle
func (*Client) AddCommandHandler ¶ added in v1.4.2
func (c *Client) AddCommandHandler(pattern string, handler MessageHandler, filters ...Filter) Handle
func (*Client) AddDeleteHandler ¶
func (c *Client) AddDeleteHandler(pattern any, handler func(d *DeleteMessage) error) Handle
func (*Client) AddE2EHandler ¶ added in v1.7.0
func (*Client) AddEditHandler ¶
func (c *Client) AddEditHandler(pattern any, handler MessageHandler, filters ...Filter) Handle
func (*Client) AddInlineCallbackHandler ¶
func (c *Client) AddInlineCallbackHandler(pattern any, handler InlineCallbackHandler) Handle
func (*Client) AddInlineHandler ¶
func (c *Client) AddInlineHandler(pattern any, handler InlineHandler) Handle
func (*Client) AddInlineSendHandler ¶ added in v1.5.3
func (c *Client) AddInlineSendHandler(handler InlineSendHandler) Handle
func (*Client) AddJoinRequestHandler ¶ added in v1.6.3
func (c *Client) AddJoinRequestHandler(handler PendingJoinHandler) Handle
func (*Client) AddMessageHandler ¶
func (c *Client) AddMessageHandler(pattern any, handler MessageHandler, filters ...Filter) Handle
func (*Client) AddParticipantHandler ¶
func (c *Client) AddParticipantHandler(handler ParticipantHandler) Handle
func (*Client) AddRawHandler ¶
func (c *Client) AddRawHandler(updateType Update, handler RawHandler) Handle
func (*Client) AnswerCallbackQuery ¶
func (*Client) AnswerInlineQuery ¶
func (c *Client) AnswerInlineQuery(QueryID int64, Results []InputBotInlineResult, Options ...*InlineSendOptions) (bool, error)
func (*Client) ApproveAllJoinRequests ¶ added in v1.4.2
ApproveJoinRequest approves all pending join requests in a chat
func (*Client) AuthAcceptLoginToken ¶
func (c *Client) AuthAcceptLoginToken(token []byte) (*Authorization, error)
Accept QR code login token, logging in the app that generated it.
func (*Client) AuthBindTempAuthKey ¶
func (c *Client) AuthBindTempAuthKey(permAuthKeyID, nonce int64, expiresAt int32, encryptedMessage []byte) (bool, error)
Binds a temporary authorization key `temp_auth_key_id` to the permanent authorization key `perm_auth_key_id`. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one.
func (*Client) AuthCancelCode ¶
Cancel the login verification code
func (*Client) AuthCheckPaidAuth ¶ added in v1.6.8
func (c *Client) AuthCheckPaidAuth(phoneNumber, phoneCodeHash string, formID int64) (AuthSentCode, error)
func (*Client) AuthCheckPassword ¶
func (c *Client) AuthCheckPassword(password InputCheckPasswordSRP) (AuthAuthorization, error)
Try logging to an account protected by a 2FA password.
func (*Client) AuthCheckRecoveryPassword ¶
Check if the 2FA recovery code sent using auth.requestPasswordRecovery is valid, before passing it to auth.recoverPassword.
func (*Client) AuthDropTempAuthKeys ¶
Delete all temporary authorization keys except for the ones specified
func (*Client) AuthExportAuthorization ¶
func (c *Client) AuthExportAuthorization(dcID int32) (*AuthExportedAuthorization, error)
Returns data for copying authorization to another data-center.
func (*Client) AuthExportLoginToken ¶
func (c *Client) AuthExportLoginToken(apiID int32, apiHash string, exceptIds []int64) (AuthLoginToken, error)
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 (*Client) AuthFinishPasskeyLogin ¶ added in v1.6.10
func (c *Client) AuthFinishPasskeyLogin(credential *InputPasskeyCredentialPublicKey, fromDcID int32, fromAuthKeyID int64) (AuthAuthorization, error)
func (*Client) AuthImportAuthorization ¶
func (c *Client) AuthImportAuthorization(id int64, bytes []byte) (AuthAuthorization, error)
Logs in a user using a key transmitted from his native data-center.
func (*Client) AuthImportBotAuthorization ¶
func (c *Client) AuthImportBotAuthorization(flags, apiID int32, apiHash, botAuthToken string) (AuthAuthorization, error)
Login as a bot
func (*Client) AuthImportLoginToken ¶
func (c *Client) AuthImportLoginToken(token []byte) (AuthLoginToken, error)
Login using a redirected login token, generated in case of DC mismatch during QR code login.
func (*Client) AuthImportWebTokenAuthorization ¶
func (c *Client) AuthImportWebTokenAuthorization(apiID int32, apiHash, webAuthToken string) (AuthAuthorization, error)
Login by importing an authorization token
func (*Client) AuthInitPasskeyLogin ¶ added in v1.6.10
func (c *Client) AuthInitPasskeyLogin(apiID int32, apiHash string) (*AuthPasskeyLoginOptions, error)
func (*Client) AuthLogOut ¶
func (c *Client) AuthLogOut() (*AuthLoggedOut, error)
Logs out the user.
func (*Client) AuthPrompt ¶
AuthPrompt prompts the user to enter a phone number or bot token to authorize the client.
func (*Client) AuthRecoverPassword ¶
func (c *Client) AuthRecoverPassword(code string, newSettings *AccountPasswordInputSettings) (AuthAuthorization, error)
Reset the 2FA password using the recovery code sent using auth.requestPasswordRecovery.
func (*Client) AuthReportMissingCode ¶
Official apps only, reports that the SMS authentication code wasn't delivered.
func (*Client) AuthRequestFirebaseSms ¶
func (c *Client) AuthRequestFirebaseSms(params *AuthRequestFirebaseSmsParams) (bool, error)
Request an SMS code via Firebase.
func (*Client) AuthRequestPasswordRecovery ¶
func (c *Client) AuthRequestPasswordRecovery() (*AuthPasswordRecovery, error)
Request recovery code of a 2FA password, only for accounts with a recovery email configured.
func (*Client) AuthResendCode ¶
func (c *Client) AuthResendCode(phoneNumber, phoneCodeHash, reason string) (AuthSentCode, error)
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 (*Client) AuthResetAuthorizations ¶
Terminates all user's authorized sessions except for the current one.
func (*Client) AuthResetLoginEmail ¶
func (c *Client) AuthResetLoginEmail(phoneNumber, phoneCodeHash string) (AuthSentCode, error)
Reset the login email.
func (*Client) AuthSendCode ¶
func (c *Client) AuthSendCode(phoneNumber string, apiID int32, apiHash string, settings *CodeSettings) (AuthSentCode, error)
Send the verification code for login
func (*Client) AuthSignIn ¶
func (c *Client) AuthSignIn(phoneNumber, phoneCodeHash, phoneCode string, emailVerification EmailVerification) (AuthAuthorization, error)
Signs in a user with a validated phone number.
func (*Client) AuthSignUp ¶
func (c *Client) AuthSignUp(params *AuthSignUpParams) (AuthAuthorization, error)
Registers a validated phone number in the system.
func (*Client) BotsAddPreviewMedia ¶
func (c *Client) BotsAddPreviewMedia(bot InputUser, langCode string, media InputMedia) (*BotPreviewMedia, error)
Add a main mini app preview
func (*Client) BotsAllowSendMessage ¶
Allow the specified bot to send us messages
func (*Client) BotsAnswerWebhookJsonQuery ¶
Answers a custom query; for bots only
func (*Client) BotsCanSendMessage ¶
Check whether the specified bot can send us messages
func (*Client) BotsCheckDownloadFileParams ¶ added in v1.4.2
Check if a mini app can request the download of a specific file: called when handling web_app_request_file_download events
func (*Client) BotsDeletePreviewMedia ¶
func (c *Client) BotsDeletePreviewMedia(bot InputUser, langCode string, media []InputMedia) (bool, error)
Delete a main mini app preview
func (*Client) BotsEditPreviewMedia ¶
func (c *Client) BotsEditPreviewMedia(bot InputUser, langCode string, media, newMedia InputMedia) (*BotPreviewMedia, error)
Edit a main mini app preview
func (*Client) BotsGetAdminedBots ¶ added in v1.4.8
Get a list of bots owned by the current user
func (*Client) BotsGetBotCommands ¶
func (c *Client) BotsGetBotCommands(scope BotCommandScope, langCode string) ([]*BotCommand, error)
Obtain a list of bot commands for the specified bot scope and language code
func (*Client) BotsGetBotInfo ¶
func (c *Client) BotsGetBotInfo(bot InputUser, langCode string) (*BotsBotInfo, error)
Get localized name, about text and description of a bot (or of the current account, if called by a bot).
func (*Client) BotsGetBotMenuButton ¶
func (c *Client) BotsGetBotMenuButton(userID InputUser) (BotMenuButton, error)
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 (*Client) BotsGetBotRecommendations ¶ added in v1.5.3
func (c *Client) BotsGetBotRecommendations(bot InputUser) (UsersUsers, error)
Obtain a list of similarly themed bots, selected based on similarities in their subscriber bases
func (*Client) BotsGetPopularAppBots ¶
func (c *Client) BotsGetPopularAppBots(offset string, limit int32) (*BotsPopularAppBots, error)
Fetch popular Main Mini Apps, to be used in the apps tab of global search.
func (*Client) BotsGetPreviewInfo ¶
func (c *Client) BotsGetPreviewInfo(bot InputUser, langCode string) (*BotsPreviewInfo, error)
Bot owners only, fetch main mini app preview information
func (*Client) BotsGetPreviewMedias ¶
func (c *Client) BotsGetPreviewMedias(bot InputUser) ([]*BotPreviewMedia, error)
Fetch main mini app previews
func (*Client) BotsInvokeWebViewCustomMethod ¶
func (c *Client) BotsInvokeWebViewCustomMethod(bot InputUser, customMethod string, params *DataJson) (*DataJson, error)
Send a custom request from a mini bot app, triggered by a web_app_invoke_custom_method event.
func (*Client) BotsReorderPreviewMedias ¶
func (c *Client) BotsReorderPreviewMedias(bot InputUser, langCode string, order []InputMedia) (bool, error)
Reorder a main mini app previews
func (*Client) BotsReorderUsernames ¶
Reorder usernames associated to a bot we own.
func (*Client) BotsResetBotCommands ¶
func (c *Client) BotsResetBotCommands(scope BotCommandScope, langCode string) (bool, error)
Clear bot commands for the specified bot scope and language code
func (*Client) BotsSendCustomRequest ¶
Sends a custom request; for bots only
func (*Client) BotsSetBotBroadcastDefaultAdminRights ¶
func (c *Client) BotsSetBotBroadcastDefaultAdminRights(adminRights *ChatAdminRights) (bool, error)
Set the default suggested admin rights for bots being added as admins to channels
func (*Client) BotsSetBotCommands ¶
func (c *Client) BotsSetBotCommands(scope BotCommandScope, langCode string, commands []*BotCommand) (bool, error)
Set bot command list
func (*Client) BotsSetBotGroupDefaultAdminRights ¶
func (c *Client) BotsSetBotGroupDefaultAdminRights(adminRights *ChatAdminRights) (bool, error)
Set the default suggested admin rights for bots being added as admins to groups
func (*Client) BotsSetBotInfo ¶
func (c *Client) BotsSetBotInfo(params *BotsSetBotInfoParams) (bool, error)
Set localized name, about text and description of a bot (or of the current account, if called by a bot).
func (*Client) BotsSetBotMenuButton ¶
func (c *Client) BotsSetBotMenuButton(userID InputUser, button BotMenuButton) (bool, error)
Sets the menu button action for a given user or for all users
func (*Client) BotsSetCustomVerification ¶ added in v1.5.3
func (c *Client) BotsSetCustomVerification(enabled bool, bot InputUser, peer InputPeer, customDescription string) (bool, error)
Verify a user or chat on behalf of an organization.
func (*Client) BotsToggleUserEmojiStatusPermission ¶ added in v1.4.2
Allow or prevent a bot from changing our emoji status
func (*Client) BotsToggleUsername ¶
Activate or deactivate a purchased fragment.com username associated to a bot we own.
func (*Client) BotsUpdateStarRefProgram ¶ added in v1.4.8
func (c *Client) BotsUpdateStarRefProgram(bot InputUser, commissionPermille, durationMonths int32) (*StarRefProgram, error)
Create, edit or delete the affiliate program of a bot we own
func (*Client) BotsUpdateUserEmojiStatus ¶ added in v1.4.2
func (c *Client) BotsUpdateUserEmojiStatus(userID InputUser, emojiStatus EmojiStatus) (bool, error)
Change the emoji status of a user (invoked by bots
func (*Client) Broadcast ¶ added in v1.5.6
func (c *Client) Broadcast(ctx context.Context, userCallback func(User) error, chatCallback func(Chat) error, sleepThreshold ...time.Duration) error
Broadcast walks through the update history and invokes callbacks for each unique user/chat. It is intended for bots that need a lightweight way to collect peers for messaging. An optional sleep threshold may be provided to slow down polling between difference requests.
func (*Client) ChannelsCheckSearchPostsFlood ¶ added in v1.6.3
func (c *Client) ChannelsCheckSearchPostsFlood(query string) (*SearchPostsFlood, error)
Check if the specified global post search requires payment.
func (*Client) ChannelsCheckUsername ¶
func (c *Client) ChannelsCheckUsername(channel InputChannel, username string) (bool, error)
Check if a username is free and can be assigned to a channel/supergroup
func (*Client) ChannelsConvertToGigagroup ¶
func (c *Client) ChannelsConvertToGigagroup(channel InputChannel) (Updates, error)
Convert a supergroup to a gigagroup, when requested by channel suggestions.
func (*Client) ChannelsCreateChannel ¶
func (c *Client) ChannelsCreateChannel(params *ChannelsCreateChannelParams) (Updates, error)
Create a supergroup/channel.
func (*Client) ChannelsDeactivateAllUsernames ¶
func (c *Client) ChannelsDeactivateAllUsernames(channel InputChannel) (bool, error)
Disable all purchased usernames of a supergroup or channel
func (*Client) ChannelsDeleteChannel ¶
func (c *Client) ChannelsDeleteChannel(channel InputChannel) (Updates, error)
Delete a channel/supergroup
func (*Client) ChannelsDeleteHistory ¶
func (c *Client) ChannelsDeleteHistory(forEveryone bool, channel InputChannel, maxID int32) (Updates, error)
Delete the history of a supergroup
func (*Client) ChannelsDeleteMessages ¶
func (c *Client) ChannelsDeleteMessages(channel InputChannel, id []int32) (*MessagesAffectedMessages, error)
Delete messages in a channel/supergroup
func (*Client) ChannelsDeleteParticipantHistory ¶
func (c *Client) ChannelsDeleteParticipantHistory(channel InputChannel, participant InputPeer) (*MessagesAffectedHistory, error)
Delete all messages sent by a specific participant of a given supergroup
func (*Client) ChannelsEditAdmin ¶
func (c *Client) ChannelsEditAdmin(channel InputChannel, userID InputUser, adminRights *ChatAdminRights, rank string) (Updates, error)
Modify the admin rights of a user in a supergroup/channel.
func (*Client) ChannelsEditBanned ¶
func (c *Client) ChannelsEditBanned(channel InputChannel, participant InputPeer, bannedRights *ChatBannedRights) (Updates, error)
Ban/unban/kick a user in a supergroup/channel.
func (*Client) ChannelsEditCreator ¶
func (c *Client) ChannelsEditCreator(channel InputChannel, userID InputUser, password InputCheckPasswordSRP) (Updates, error)
Transfer channel ownership
func (*Client) ChannelsEditLocation ¶
func (c *Client) ChannelsEditLocation(channel InputChannel, geoPoint InputGeoPoint, address string) (bool, error)
Edit location of geogroup
func (*Client) ChannelsEditPhoto ¶
func (c *Client) ChannelsEditPhoto(channel InputChannel, photo InputChatPhoto) (Updates, error)
Change the photo of a channel/supergroup
func (*Client) ChannelsEditTitle ¶
func (c *Client) ChannelsEditTitle(channel InputChannel, title string) (Updates, error)
Edit the name of a channel/supergroup
func (*Client) ChannelsExportMessageLink ¶
func (c *Client) ChannelsExportMessageLink(grouped, thread bool, channel InputChannel, id int32) (*ExportedMessageLink, error)
Get link and embed info of a message in a channel/supergroup
func (*Client) ChannelsGetAdminLog ¶
func (c *Client) ChannelsGetAdminLog(params *ChannelsGetAdminLogParams) (*ChannelsAdminLogResults, error)
Get the admin log of a channel/supergroup
func (*Client) ChannelsGetAdminedPublicChannels ¶
func (c *Client) ChannelsGetAdminedPublicChannels(byLocation, checkLimit, forPersonal bool) (MessagesChats, error)
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 (*Client) ChannelsGetChannelRecommendations ¶
func (c *Client) ChannelsGetChannelRecommendations(channel InputChannel) (MessagesChats, error)
Obtain a list of similarly themed public channels, selected based on similarities in their subscriber bases.
func (*Client) ChannelsGetChannels ¶
func (c *Client) ChannelsGetChannels(id []InputChannel) (MessagesChats, error)
Get info about channels/supergroups
func (*Client) ChannelsGetFullChannel ¶
func (c *Client) ChannelsGetFullChannel(channel InputChannel) (*MessagesChatFull, error)
Get full info about a supergroup, gigagroup or channel
func (*Client) ChannelsGetGroupsForDiscussion ¶
func (c *Client) ChannelsGetGroupsForDiscussion() (MessagesChats, error)
Get all groups that can be used as discussion groups.
func (*Client) ChannelsGetInactiveChannels ¶
func (c *Client) ChannelsGetInactiveChannels() (*MessagesInactiveChats, error)
Get inactive channels and supergroups
func (*Client) ChannelsGetLeftChannels ¶
func (c *Client) ChannelsGetLeftChannels(offset int32) (MessagesChats, error)
Get a list of channels/supergroups we left, requires a takeout session
func (*Client) ChannelsGetMessageAuthor ¶ added in v1.6.0
func (c *Client) ChannelsGetMessageAuthor(channel InputChannel, id int32) (User, error)
Can only be invoked by non-bot admins of a monoforum, obtains the original sender of a message sent by other monoforum admins to the monoforum, on behalf of the channel associated to the monoforum.
func (*Client) ChannelsGetMessages ¶
func (c *Client) ChannelsGetMessages(channel InputChannel, id []InputMessage) (MessagesMessages, error)
Get channel/supergroup messages
func (*Client) ChannelsGetParticipant ¶
func (c *Client) ChannelsGetParticipant(channel InputChannel, participant InputPeer) (*ChannelsChannelParticipant, error)
Get info about a channel/supergroup participant
func (*Client) ChannelsGetParticipants ¶
func (c *Client) ChannelsGetParticipants(channel InputChannel, filter ChannelParticipantsFilter, offset, limit int32, hash int64) (ChannelsChannelParticipants, error)
Get the participants of a supergroup/channel
func (*Client) ChannelsGetSendAs ¶
func (c *Client) ChannelsGetSendAs(forPaidReactions, forLiveStories bool, peer InputPeer) (*ChannelsSendAsPeers, error)
Obtains a list of peers that can be used to send messages in a specific group
func (*Client) ChannelsInviteToChannel ¶
func (c *Client) ChannelsInviteToChannel(channel InputChannel, users []InputUser) (*MessagesInvitedUsers, error)
Invite users to a channel/supergroup
func (*Client) ChannelsJoinChannel ¶
func (c *Client) ChannelsJoinChannel(channel InputChannel) (Updates, error)
Join a channel/supergroup
func (*Client) ChannelsLeaveChannel ¶
func (c *Client) ChannelsLeaveChannel(channel InputChannel) (Updates, error)
Leave a channel/supergroup
func (*Client) ChannelsReadHistory ¶
func (c *Client) ChannelsReadHistory(channel InputChannel, maxID int32) (bool, error)
Mark channel/supergroup history as read
func (*Client) ChannelsReadMessageContents ¶
func (c *Client) ChannelsReadMessageContents(channel InputChannel, id []int32) (bool, error)
Mark channel/supergroup message contents as read, emitting an updateChannelReadMessagesContents.
func (*Client) ChannelsReorderUsernames ¶
func (c *Client) ChannelsReorderUsernames(channel InputChannel, order []string) (bool, error)
Reorder active usernames
func (*Client) ChannelsReportAntiSpamFalsePositive ¶
func (c *Client) ChannelsReportAntiSpamFalsePositive(channel InputChannel, msgID int32) (bool, error)
Report a native antispam false positive
func (*Client) ChannelsReportSpam ¶
func (c *Client) ChannelsReportSpam(channel InputChannel, participant InputPeer, id []int32) (bool, error)
Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup
func (*Client) ChannelsRestrictSponsoredMessages ¶
func (c *Client) ChannelsRestrictSponsoredMessages(channel InputChannel, restricted bool) (Updates, error)
Disable ads on the specified channel, for all users.
func (*Client) ChannelsSearchPosts ¶
func (c *Client) ChannelsSearchPosts(params *ChannelsSearchPostsParams) (MessagesMessages, error)
Globally search for posts from public channels (<em>including</em> those we aren't a member of) containing either a specific hashtag, <em>or</em> a full text query.
func (*Client) ChannelsSetBoostsToUnblockRestrictions ¶
func (c *Client) ChannelsSetBoostsToUnblockRestrictions(channel InputChannel, boosts int32) (Updates, error)
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
func (*Client) ChannelsSetDiscussionGroup ¶
func (c *Client) ChannelsSetDiscussionGroup(broadcast, group InputChannel) (bool, error)
Associate a group to a channel as discussion group for that channel
func (*Client) ChannelsSetEmojiStickers ¶
func (c *Client) ChannelsSetEmojiStickers(channel InputChannel, stickerset InputStickerSet) (bool, error)
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 (*Client) ChannelsSetMainProfileTab ¶ added in v1.6.3
func (c *Client) ChannelsSetMainProfileTab(channel InputChannel, tab ProfileTab) (bool, error)
Changes the main profile tab of a channel
func (*Client) ChannelsSetStickers ¶
func (c *Client) ChannelsSetStickers(channel InputChannel, stickerset InputStickerSet) (bool, error)
Associate a stickerset to the supergroup
func (*Client) ChannelsToggleAntiSpam ¶
func (c *Client) ChannelsToggleAntiSpam(channel InputChannel, enabled bool) (Updates, error)
Enable or disable the native antispam system.
func (*Client) ChannelsToggleAutotranslation ¶ added in v1.6.0
func (c *Client) ChannelsToggleAutotranslation(channel InputChannel, enabled bool) (Updates, error)
Toggle autotranslation in a channel, for all users:
func (*Client) ChannelsToggleForum ¶
func (c *Client) ChannelsToggleForum(channel InputChannel, enabled, tabs bool) (Updates, error)
Enable or disable forum functionality in a supergroup.
func (*Client) ChannelsToggleJoinRequest ¶
func (c *Client) ChannelsToggleJoinRequest(channel InputChannel, enabled bool) (Updates, error)
Set whether all users should request admin approval to join the group.
func (*Client) ChannelsToggleJoinToSend ¶
func (c *Client) ChannelsToggleJoinToSend(channel InputChannel, enabled bool) (Updates, error)
Set whether all users should join a discussion group in order to comment on a post
func (*Client) ChannelsToggleParticipantsHidden ¶
func (c *Client) ChannelsToggleParticipantsHidden(channel InputChannel, enabled bool) (Updates, error)
Hide or display the participants list in a supergroup.
func (*Client) ChannelsTogglePreHistoryHidden ¶
func (c *Client) ChannelsTogglePreHistoryHidden(channel InputChannel, enabled bool) (Updates, error)
Hide/unhide message history for new channel/supergroup users
func (*Client) ChannelsToggleSignatures ¶
func (c *Client) ChannelsToggleSignatures(signaturesEnabled, profilesEnabled bool, channel InputChannel) (Updates, error)
Enable/disable message signatures in channels
func (*Client) ChannelsToggleSlowMode ¶
func (c *Client) ChannelsToggleSlowMode(channel InputChannel, seconds int32) (Updates, error)
Toggle supergroup slow mode: if enabled, users will only be able to send one message every `seconds` seconds
func (*Client) ChannelsToggleUsername ¶
func (c *Client) ChannelsToggleUsername(channel InputChannel, username string, active bool) (bool, error)
Activate or deactivate a purchased fragment.com username associated to a supergroup or channel we own.
func (*Client) ChannelsToggleViewForumAsMessages ¶
func (c *Client) ChannelsToggleViewForumAsMessages(channel InputChannel, enabled bool) (Updates, error)
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 (*Client) ChannelsUpdateColor ¶
func (c *Client) ChannelsUpdateColor(forProfile bool, channel InputChannel, color int32, backgroundEmojiID int64) (Updates, error)
Update the accent color and background custom emoji of a channel.
func (*Client) ChannelsUpdateEmojiStatus ¶
func (c *Client) ChannelsUpdateEmojiStatus(channel InputChannel, emojiStatus EmojiStatus) (Updates, error)
Set an emoji status for a channel or supergroup.
func (*Client) ChannelsUpdatePaidMessagesPrice ¶ added in v1.6.0
func (c *Client) ChannelsUpdatePaidMessagesPrice(broadcastMessagesAllowed bool, channel InputChannel, sendPaidMessagesStars int64) (Updates, error)
Enable or disable paid messages in this supergroup or monoforum.
func (*Client) ChannelsUpdateUsername ¶
func (c *Client) ChannelsUpdateUsername(channel InputChannel, username string) (bool, error)
Change or remove the username of a supergroup/channel
func (*Client) ChatlistsCheckChatlistInvite ¶
func (c *Client) ChatlistsCheckChatlistInvite(slug string) (ChatlistsChatlistInvite, error)
Obtain information about a chat folder deep link.
func (*Client) ChatlistsDeleteExportedInvite ¶
func (c *Client) ChatlistsDeleteExportedInvite(chatlist *InputChatlistDialogFilter, slug string) (bool, error)
Delete a previously created chat folder deep link.
func (*Client) ChatlistsEditExportedInvite ¶
func (c *Client) ChatlistsEditExportedInvite(chatlist *InputChatlistDialogFilter, slug, title string, peers []InputPeer) (*ExportedChatlistInvite, error)
Edit a chat folder deep link.
func (*Client) ChatlistsExportChatlistInvite ¶
func (c *Client) ChatlistsExportChatlistInvite(chatlist *InputChatlistDialogFilter, title string, peers []InputPeer) (*ChatlistsExportedChatlistInvite, error)
Export a folder, creating a chat folder deep link.
func (*Client) ChatlistsGetChatlistUpdates ¶
func (c *Client) ChatlistsGetChatlistUpdates(chatlist *InputChatlistDialogFilter) (*ChatlistsChatlistUpdates, error)
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 (*Client) ChatlistsGetExportedInvites ¶
func (c *Client) ChatlistsGetExportedInvites(chatlist *InputChatlistDialogFilter) (*ChatlistsExportedInvites, error)
List all chat folder deep links associated to a folder
func (*Client) ChatlistsGetLeaveChatlistSuggestions ¶
func (c *Client) ChatlistsGetLeaveChatlistSuggestions(chatlist *InputChatlistDialogFilter) ([]Peer, error)
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 (*Client) ChatlistsHideChatlistUpdates ¶
func (c *Client) ChatlistsHideChatlistUpdates(chatlist *InputChatlistDialogFilter) (bool, error)
Dismiss new pending peers recently added to a chat folder deep link.
func (*Client) ChatlistsJoinChatlistInvite ¶
Import a chat folder deep link, joining some or all the chats in the folder.
func (*Client) ChatlistsJoinChatlistUpdates ¶
func (c *Client) ChatlistsJoinChatlistUpdates(chatlist *InputChatlistDialogFilter, peers []InputPeer) (Updates, error)
Join channels and supergroups recently added to a chat folder deep link.
func (*Client) ChatlistsLeaveChatlist ¶
func (c *Client) ChatlistsLeaveChatlist(chatlist *InputChatlistDialogFilter, peers []InputPeer) (Updates, error)
Delete a folder imported using a chat folder deep link
func (*Client) CheckErr ¶ added in v1.6.9
CheckErr returns only the error, discarding the object. Useful for checking if an operation succeeded without caring about the result.
func (*Client) CloseChat ¶ added in v1.5.3
func (c *Client) CloseChat(channel *InputChannelObj)
CloseChat stops active polling for a channel when user leaves it.
func (*Client) CommandPrefixes ¶ added in v1.6.7
CommandPrefixes returns the command prefixes configured for the client
func (*Client) ConnectBot ¶
ConnectBot connects to telegram using bot token
func (*Client) ContactsAcceptContact ¶
If the add contact action bar is active, add that user as contact
func (*Client) ContactsAddContact ¶
func (c *Client) ContactsAddContact(params *ContactsAddContactParams) (Updates, error)
Add an existing telegram user as contact.
func (*Client) ContactsBlock ¶
Adds a peer to a blocklist
func (*Client) ContactsBlockFromReplies ¶
func (c *Client) ContactsBlockFromReplies(deleteMessage, deleteHistory, reportSpam bool, msgID int32) (Updates, error)
Stop getting notifications about discussion replies of a certain user in `@replies`
func (*Client) ContactsDeleteByPhones ¶
Delete contacts by phone number
func (*Client) ContactsDeleteContacts ¶
Deletes several contacts from the list.
func (*Client) ContactsEditCloseFriends ¶
Edit the close friends list
func (*Client) ContactsExportContactToken ¶
func (c *Client) ContactsExportContactToken() (*ExportedContactToken, error)
Generates a temporary profile link for the currently logged-in user.
func (*Client) ContactsGetBirthdays ¶
func (c *Client) ContactsGetBirthdays() (*ContactsContactBirthdays, error)
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 (*Client) ContactsGetBlocked ¶
func (c *Client) ContactsGetBlocked(myStoriesFrom bool, offset, limit int32) (ContactsBlocked, error)
Returns the list of blocked users.
func (*Client) ContactsGetContactIDs ¶
Get the telegram IDs of all contacts. Returns an array of Telegram user IDs for all contacts (0 if a contact does not have an associated Telegram account or have hidden their account using privacy settings).
func (*Client) ContactsGetContacts ¶
func (c *Client) ContactsGetContacts(hash int64) (ContactsContacts, error)
Returns the current user's contact list.
func (*Client) ContactsGetLocated ¶
func (c *Client) ContactsGetLocated(background bool, geoPoint InputGeoPoint, selfExpires int32) (Updates, error)
Get users and geochats near you
func (*Client) ContactsGetSaved ¶
func (c *Client) ContactsGetSaved() ([]*SavedPhoneContact, error)
Get all contacts, requires a takeout session
func (*Client) ContactsGetSponsoredPeers ¶ added in v1.6.0
func (c *Client) ContactsGetSponsoredPeers(q string) (ContactsSponsoredPeers, error)
Obtain a list of sponsored peer search results for a given query
func (*Client) ContactsGetStatuses ¶
func (c *Client) ContactsGetStatuses() ([]*ContactStatus, error)
Use this method to obtain the online statuses of all contacts with an accessible Telegram account.
func (*Client) ContactsGetTopPeers ¶
func (c *Client) ContactsGetTopPeers(params *ContactsGetTopPeersParams) (ContactsTopPeers, error)
Get most used peers
func (*Client) ContactsImportContactToken ¶
Obtain user info from a temporary profile link.
func (*Client) ContactsImportContacts ¶
func (c *Client) ContactsImportContacts(contacts []*InputPhoneContact) (*ContactsImportedContacts, error)
Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info.
func (*Client) ContactsResetSaved ¶
Removes all contacts without an associated Telegram account.
func (*Client) ContactsResetTopPeerRating ¶
func (c *Client) ContactsResetTopPeerRating(category TopPeerCategory, peer InputPeer) (bool, error)
Reset rating of top peer
func (*Client) ContactsResolvePhone ¶
func (c *Client) ContactsResolvePhone(phone string) (*ContactsResolvedPeer, error)
Resolve a phone number to get user info, if their privacy settings allow it.
func (*Client) ContactsResolveUsername ¶
func (c *Client) ContactsResolveUsername(username, referer string) (*ContactsResolvedPeer, error)
Resolve a @username to get peer info
func (*Client) ContactsSearch ¶
func (c *Client) ContactsSearch(q string, limit int32) (*ContactsFound, error)
Returns users found by username substring.
func (*Client) ContactsSetBlocked ¶
Replace the contents of an entire blocklist
func (*Client) ContactsToggleTopPeers ¶
Enable/disable top peers
func (*Client) ContactsUnblock ¶
Deletes a peer from a blocklist
func (*Client) ContactsUpdateContactNote ¶ added in v1.6.8
func (c *Client) ContactsUpdateContactNote(id InputUser, note *TextWithEntities) (bool, error)
func (*Client) CreateChannel ¶
func (c *Client) CreateChannel(title string, opts ...*ChannelOptions) (*Channel, error)
func (*Client) CreateExportedSender ¶
func (c *Client) CreateExportedSender(dcID int, cdn bool, authParams ...*AuthExportedAuthorization) (*mtproto.MTProto, error)
CreateExportedSender creates a new exported sender for the given DC
func (*Client) DecryptSecretFile ¶ added in v1.7.0
func (c *Client) DecryptSecretFile(inputFile InputEncryptedFile, key, iv []byte, originalSize int, dcId int) ([]byte, error)
DecryptSecretFile decrypts an encrypted file received in a secret chat
func (*Client) DecryptSecretMessage ¶ added in v1.7.0
func (c *Client) DecryptSecretMessage(chatID int32, encryptedData []byte) (*e2e.DecryptedMessageLayer, error)
DecryptSecretMessage decrypts an incoming secret chat message
func (*Client) DeleteMessages ¶
func (c *Client) DeleteMessages(peerID any, msgIDs []int32, noRevoke ...bool) (*MessagesAffectedMessages, error)
DeleteMessages deletes messages. This method is a wrapper for messages.deleteMessages.
func (*Client) DiscardSecretChat ¶ added in v1.7.0
DiscardSecretChat discards/deletes a secret chat
func (*Client) DownloadChunk ¶
func (c *Client) DownloadChunk(media any, start int, end int, chunkSize int) ([]byte, string, error)
DownloadChunk downloads a file in chunks, useful for downloading specific parts of a file.
start and end are the byte offsets to download. chunkSize is the size of each chunk to download.
Note: chunkSize must be a multiple of 1048576 (1MB)
func (*Client) DownloadMedia ¶
func (c *Client) DownloadMedia(file any, Opts ...*DownloadOptions) (string, error)
func (*Client) Edit2FA ¶
func (c *Client) Edit2FA(currPwd, newPwd string, opts ...*PasswordOptions) (bool, error)
Edit2FA changes the 2FA password of the current user, if 2fa is already enabled, should provide the current password.
func (*Client) EditAdmin ¶
func (c *Client) EditAdmin(PeerID, UserID any, Opts ...*AdminOptions) (bool, error)
EditAdmin edits the admin rights of a user in a chat.
This function modifies the admin permissions of a user within a chat.
Args:
- PeerID: The ID of the chat.
- UserID: The ID of the user whose admin rights are to be modified.
- Opts: Optional arguments for setting the user's admin rights.
Returns:
- bool: True if the operation was successful, False otherwise.
- error: An error if the operation fails.
func (*Client) EditAdminBuilder ¶ added in v1.6.10
func (c *Client) EditAdminBuilder(chatID, userID any) *AdminBuilder
func (*Client) EditBanned ¶
func (c *Client) EditBanned(PeerID, UserID any, opts ...*BannedOptions) (bool, error)
EditBanned modifies the ban status of a user in a chat or channel.
This function can ban, unban, mute, or unmute a user in a chat or channel.
Args:
- PeerID: The ID of the chat or channel.
- UserID: The ID of the user to be banned.
- opts: Optional arguments for banning the user.
Returns:
- bool: True if the operation was successful, False otherwise.
- error: An error if the operation fails.
func (*Client) EditBannedBuilder ¶ added in v1.6.10
func (c *Client) EditBannedBuilder(chatID, userID any) *BannedBuilder
func (*Client) EditMessage ¶
func (c *Client) EditMessage(peerID any, id int32, message any, opts ...*SendOptions) (*NewMessage, error)
EditMessage edits a message. This method is a wrapper for messages.editMessage.
Parameters:
- peerID: ID of the peer the message was sent to.
- id: ID of the message to be edited.
- message: New text of the message.
- opts: Optional parameters.
Returns:
- NewMessage: Returns a NewMessage object containing the edited message on success.
- error: Returns an error on failure.
func (*Client) ExportPts ¶ added in v1.6.10
ExportPts exports the current pts value from the dispatcher.
func (*Client) ExportRawSession ¶
ExportRawSession exports the current session to raw fields
func (*Client) ExportSession ¶
ExportSession exports the current session to a string, This string can be used to import the session later
func (*Client) ExportStringSession ¶ added in v1.6.9
ExportStringSession exports the current session to a string,
func (*Client) FetchChannelDifference ¶ added in v1.6.7
FetchChannelDifference fetches updates difference for a specific channel Use limit 10-100 as recommended for channels
func (*Client) FetchDifference ¶ added in v1.6.7
func (*Client) FetchDifferenceOnStartup ¶ added in v1.6.7
FetchDifferenceOnStartup fetches any missed updates since last disconnect. Should be called on startup after logging in to catch up on missed events.
func (*Client) FoldersEditPeerFolders ¶
func (c *Client) FoldersEditPeerFolders(folderPeers []*InputFolderPeer) (Updates, error)
Edit peers in peer folder
func (*Client) FormatMessage ¶
func (c *Client) FormatMessage(message, mode string) ([]MessageEntity, string)
func (*Client) Forward ¶
func (c *Client) Forward(peerID, fromPeerID any, msgIDs []int32, opts ...*ForwardOptions) ([]NewMessage, error)
Forward forwards a message. This method is a wrapper for messages.forwardMessages.
func (*Client) FragmentGetCollectibleInfo ¶
func (c *Client) FragmentGetCollectibleInfo(collectible InputCollectible) (*FragmentCollectibleInfo, error)
Fetch information about a fragment collectible
func (*Client) GetChatInviteLink ¶
func (c *Client) GetChatInviteLink(peerID any, LinkOpts ...*InviteLinkOptions) (ExportedChatInvite, error)
GetChatInviteLink returns the invite link of a chat
Params: - peerID : The ID of the chat - LegacyRevoke : If true, the link will be revoked - Expire: The time in seconds after which the link will expire - Limit: The maximum number of users that can join the chat using the link - Title: The title of the link - RequestNeeded: If true, join requests will be needed to join the chat
func (*Client) GetChatJoinRequests ¶
func (*Client) GetChatMember ¶
func (c *Client) GetChatMember(chatID, userID any) (*Participant, error)
GetChatMember returns the members of a chat
Params: - chatID: The ID of the chat - userID: The ID of the user
func (*Client) GetChatMembers ¶
func (c *Client) GetChatMembers(chatID any, Opts ...*ParticipantOptions) ([]*Participant, int32, error)
GetChatMembers returns the members of a chat
Params: - chatID: The ID of the chat - filter: The filter to use - offset: The offset to use - limit: The limit to use
func (*Client) GetChatPhotos ¶
GetChatPhotos returns the profile photos of a chat
Params: - chatID: The ID of the chat - limit: The maximum number of photos to be returned
func (*Client) GetCommonChats ¶
GetCommonChats returns the common chats of a user
Params: - userID: The user Identifier
func (*Client) GetCurrentIP ¶ added in v1.6.9
func (*Client) GetCustomEmoji ¶
GetCustomEmoji gets the document of a custom emoji
Params: - docIDs: the document id of the emoji
func (*Client) GetDialogs ¶
func (c *Client) GetDialogs(Opts ...*DialogOptions) ([]TLDialog, error)
func (*Client) GetExportedSendersStatus ¶ added in v1.6.10
func (*Client) GetGroupCall ¶
func (c *Client) GetGroupCall(chatId any) (*InputGroupCall, error)
func (*Client) GetGroupCallStream ¶ added in v1.6.0
func (c *Client) GetGroupCallStream(chatId any) (*GroupCallStream, error)
func (*Client) GetHandlerMetrics ¶ added in v1.7.0
func (c *Client) GetHandlerMetrics(handle Handle) *HandlerMetrics
GetHandlerMetrics returns metrics for a specific handler
func (*Client) GetHistory ¶
func (c *Client) GetHistory(PeerID any, opts ...*HistoryOption) ([]NewMessage, error)
func (*Client) GetInputPeer ¶ added in v1.5.6
func (*Client) GetLinkedChannel ¶ added in v1.6.10
func (*Client) GetMediaGroup ¶
func (c *Client) GetMediaGroup(PeerID any, MsgID int32) ([]NewMessage, error)
GetMediaGroup gets all the messages in a media group.
Params: - PeerID: The ID of the chat or channel. - MsgID: The ID of the message.
func (*Client) GetMessageByID ¶
func (c *Client) GetMessageByID(PeerID any, MsgID int32) (*NewMessage, error)
func (*Client) GetMessages ¶
func (c *Client) GetMessages(PeerID any, Opts ...*SearchOption) ([]NewMessage, error)
func (*Client) GetMyGifts ¶ added in v1.5.6
func (*Client) GetPeerChannel ¶
func (c *Client) GetPeerChannel(channelID int64) (*InputPeerChannel, error)
func (*Client) GetPeerUser ¶
func (c *Client) GetPeerUser(userID int64) (*InputPeerUser, error)
func (*Client) GetPinnedMessage ¶
func (c *Client) GetPinnedMessage(PeerID any) (*NewMessage, error)
Gets the current pinned message in a chat
func (*Client) GetProfilePhotos ¶
func (c *Client) GetProfilePhotos(userID any, Opts ...*PhotosOptions) ([]UserPhoto, error)
GetProfilePhotos returns the profile photos of a user
Params: - userID: The user ID - Offset: The offset to start from - Limit: The number of photos to return - MaxID: The maximum ID of the photo to return
func (*Client) GetSendableChannel ¶
func (c *Client) GetSendableChannel(PeerID any) (InputChannel, error)
func (*Client) GetSendableMedia ¶
func (c *Client) GetSendableMedia(mediaFile any, attr *MediaMetadata) (InputMedia, error)
func (*Client) GetStats ¶
func (c *Client) GetStats(channel any, messageID ...any) (*StatsBroadcastStats, *StatsMessageStats, error)
GetStats returns the stats of the channel or message
Params: - channelID: the channel ID - messageID: the message ID
func (*Client) HandleSecretChatUpdate ¶ added in v1.7.0
HandleSecretChatUpdate handles incoming secret chat updates
func (*Client) HelpAcceptTermsOfService ¶
Accept the new terms of service
func (*Client) HelpDismissSuggestion ¶
Dismiss a suggestion
func (*Client) HelpEditUserInfo ¶
func (c *Client) HelpEditUserInfo(userID InputUser, message string, entities []MessageEntity) (HelpUserInfo, error)
Internal use
func (*Client) HelpGetAppConfig ¶
func (c *Client) HelpGetAppConfig(hash int32) (HelpAppConfig, error)
Get app-specific configuration, see client configuration for more info on the result.
func (*Client) HelpGetAppUpdate ¶
func (c *Client) HelpGetAppUpdate(source string) (HelpAppUpdate, error)
Returns information on update availability for the current application.
func (*Client) HelpGetCdnConfig ¶
Get configuration for CDN file downloads.
func (*Client) HelpGetConfig ¶
Returns current configuration, including data center configuration.
func (*Client) HelpGetCountriesList ¶
func (c *Client) HelpGetCountriesList(langCode string, hash int32) (HelpCountriesList, error)
Get name, ISO code, localized name and phone codes/patterns of all available countries
func (*Client) HelpGetDeepLinkInfo ¶
func (c *Client) HelpGetDeepLinkInfo(path string) (HelpDeepLinkInfo, error)
Get info about an unsupported deep link
func (*Client) HelpGetInviteText ¶
func (c *Client) HelpGetInviteText() (*HelpInviteText, error)
Returns localized text of a text message with an invitation.
func (*Client) HelpGetNearestDc ¶
Returns info on data center nearest to the user.
func (*Client) HelpGetPassportConfig ¶
func (c *Client) HelpGetPassportConfig(hash int32) (HelpPassportConfig, error)
Get passport configuration
func (*Client) HelpGetPeerColors ¶
func (c *Client) HelpGetPeerColors(hash int32) (HelpPeerColors, error)
Get the set of accent color palettes that can be used for message accents.
func (*Client) HelpGetPeerProfileColors ¶
func (c *Client) HelpGetPeerProfileColors(hash int32) (HelpPeerColors, error)
Get the set of accent color palettes that can be used in profile page backgrounds.
func (*Client) HelpGetPremiumPromo ¶
func (c *Client) HelpGetPremiumPromo() (*HelpPremiumPromo, error)
Get Telegram Premium promotion information
func (*Client) HelpGetPromoData ¶
func (c *Client) HelpGetPromoData() (HelpPromoData, error)
Returns a set of useful suggestions and PSA/MTProxy sponsored peers
func (*Client) HelpGetRecentMeUrls ¶
func (c *Client) HelpGetRecentMeUrls(referer string) (*HelpRecentMeUrls, error)
Get recently used `t.me` links.
func (*Client) HelpGetSupport ¶
func (c *Client) HelpGetSupport() (*HelpSupport, error)
Returns the support user for the "ask a question" feature.
func (*Client) HelpGetSupportName ¶
func (c *Client) HelpGetSupportName() (*HelpSupportName, error)
Get localized name of the telegram support user
func (*Client) HelpGetTermsOfServiceUpdate ¶
func (c *Client) HelpGetTermsOfServiceUpdate() (HelpTermsOfServiceUpdate, error)
Look for updates of telegram's terms of service
func (*Client) HelpGetTimezonesList ¶
func (c *Client) HelpGetTimezonesList(hash int32) (HelpTimezonesList, error)
Returns timezone information that may be used elsewhere in the API, such as to set Telegram Business opening hours.
func (*Client) HelpGetUserInfo ¶
func (c *Client) HelpGetUserInfo(userID InputUser) (HelpUserInfo, error)
Can only be used by TSF members to obtain internal information.
func (*Client) HelpHidePromoData ¶
Hide MTProxy/Public Service Announcement information
func (*Client) HelpSaveAppLog ¶
func (c *Client) HelpSaveAppLog(events []*InputAppEvent) (bool, error)
Saves logs of application on the server.
func (*Client) HelpSetBotUpdatesStatus ¶
Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only
func (*Client) Idle ¶
func (c *Client) Idle()
Idle blocks the current goroutine until the client is stopped/terminated
func (*Client) ImportRawSession ¶
ImportRawSession imports a session from raw fields
func (*Client) ImportSession ¶
ImportSession imports a session from a string
Params: sessionString: The sessionString to authenticate with
func (*Client) ImportStringSession ¶ added in v1.6.9
ImportStringSession imports a session from a string
func (*Client) InitConnection ¶
func (c *Client) InitConnection(params *InitConnectionParams) (tl.Object, error)
func (*Client) InitialRequest ¶
InitialRequest sends the initial initConnection request
func (*Client) InlineQuery ¶
func (c *Client) InlineQuery(peerID any, Options ...*InlineOptions) (*MessagesBotResults, error)
InlineQuery performs an inline query and returns the results.
Params: - peerID: The ID of the Inline Bot. - Query: The query to send. - Offset: The offset to send. - Dialog: The chat or channel to send the query to. - GeoPoint: The location to send.
func (*Client) InvokeWithLayer ¶
func (*Client) InvokeWithMessagesRange ¶ added in v1.7.0
func (*Client) InvokeWithTakeout ¶
func (*Client) InvokeWithoutUpdates ¶ added in v1.7.0
func (*Client) IsAuthorized ¶
Returns true if the client is authorized as a user or a bot
func (*Client) IsConnected ¶
Returns true if the client is connected to telegram servers
func (*Client) IterChatMembers ¶ added in v1.5.0
func (c *Client) IterChatMembers(chatID any, Opts ...*ParticipantOptions) (<-chan *Participant, <-chan error)
func (*Client) IterDialogs ¶ added in v1.4.8
func (c *Client) IterDialogs(callback func(*TLDialog) error, Opts ...*DialogOptions) error
func (*Client) IterHistory ¶ added in v1.4.8
func (c *Client) IterHistory(PeerID any, callback func(*NewMessage) error, opts ...*HistoryOption) error
func (*Client) IterMessages ¶ added in v1.4.8
func (c *Client) IterMessages(PeerID any, callback func(*NewMessage) error, Opts ...*SearchOption) error
func (*Client) JoinChannel ¶
JoinChannel joins a channel or chat by its username or id
Params: - Channel: the username or id of the channel or chat
func (*Client) LangpackGetDifference ¶
func (c *Client) LangpackGetDifference(langPack, langCode string, fromVersion int32) (*LangPackDifference, error)
Get new strings in language pack
func (*Client) LangpackGetLangPack ¶
func (c *Client) LangpackGetLangPack(langPack, langCode string) (*LangPackDifference, error)
Get localization pack strings
func (*Client) LangpackGetLanguage ¶
func (c *Client) LangpackGetLanguage(langPack, langCode string) (*LangPackLanguage, error)
Get information about a language in a localization pack
func (*Client) LangpackGetLanguages ¶
func (c *Client) LangpackGetLanguages(langPack string) ([]*LangPackLanguage, error)
Get information about all languages in a localization pack
func (*Client) LangpackGetStrings ¶
func (c *Client) LangpackGetStrings(langPack, langCode string, keys []string) ([]LangPackString, error)
Get strings from a language pack
func (*Client) LeaveChannel ¶
LeaveChannel leaves a channel or chat
Params: - Channel: Channel or chat to leave - Revoke: If true, the channel will be deleted
func (*Client) Login ¶
func (c *Client) Login(phoneNumber string, options ...*LoginOptions) (bool, error)
Login authenticates the client using a phone number. If code is not provided in options, it will be requested via callback.
func (*Client) MatchRPCError ¶ added in v1.6.0
func (*Client) MessagesAcceptEncryption ¶
func (c *Client) MessagesAcceptEncryption(peer *InputEncryptedChat, gB []byte, keyFingerprint int64) (EncryptedChat, error)
Confirms creation of a secret chat
func (*Client) MessagesAcceptURLAuth ¶
func (c *Client) MessagesAcceptURLAuth(params *MessagesAcceptURLAuthParams) (URLAuthResult, error)
Use this to accept a Seamless Telegram Login authorization request, for more info click here
func (*Client) MessagesAddChatUser ¶
func (c *Client) MessagesAddChatUser(chatID int64, userID InputUser, fwdLimit int32) (*MessagesInvitedUsers, error)
Adds a user to a chat and sends a service message on it.
func (*Client) MessagesAppendTodoList ¶ added in v1.6.1
func (c *Client) MessagesAppendTodoList(peer InputPeer, msgID int32, list []*TodoItem) (Updates, error)
Appends one or more items to a todo list.
func (*Client) MessagesCheckChatInvite ¶
func (c *Client) MessagesCheckChatInvite(hash string) (ChatInvite, error)
Check the validity of a chat invite link and get basic info about it
func (*Client) MessagesCheckHistoryImport ¶
func (c *Client) MessagesCheckHistoryImport(importHead string) (*MessagesHistoryImportParsed, error)
Obtains information about a chat export file, generated by a foreign chat app, click here for more info about imported chats.
func (*Client) MessagesCheckHistoryImportPeer ¶
func (c *Client) MessagesCheckHistoryImportPeer(peer InputPeer) (*MessagesCheckedHistoryImportPeer, error)
Check whether chat history exported from another chat app can be imported into a specific Telegram chat, click here for more info.
func (*Client) MessagesCheckQuickReplyShortcut ¶
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 (*Client) MessagesClearAllDrafts ¶
Clear all drafts.
func (*Client) MessagesClearRecentReactions ¶
Clear recently used message reactions
func (*Client) MessagesClearRecentStickers ¶
Clear recent stickers
func (*Client) MessagesClickSponsoredMessage ¶ added in v1.3.21
func (c *Client) MessagesClickSponsoredMessage(media, fullscreen bool, randomID []byte) (bool, error)
Informs the server that the user has interacted with a sponsored message in one of the ways listed here.
func (*Client) MessagesCreateChat ¶
func (c *Client) MessagesCreateChat(users []InputUser, title string, ttlPeriod int32) (*MessagesInvitedUsers, error)
Creates a new chat.
func (*Client) MessagesCreateForumTopic ¶ added in v1.6.3
func (c *Client) MessagesCreateForumTopic(params *MessagesCreateForumTopicParams) (Updates, error)
func (*Client) MessagesDeleteChat ¶
Delete a chat
func (*Client) MessagesDeleteChatUser ¶
func (c *Client) MessagesDeleteChatUser(revokeHistory bool, chatID int64, userID InputUser) (Updates, error)
Deletes a user from a chat and sends a service message on it.
func (*Client) MessagesDeleteExportedChatInvite ¶
Delete a chat invite
func (*Client) MessagesDeleteFactCheck ¶
Delete a fact-check from a message.
func (*Client) MessagesDeleteHistory ¶
func (c *Client) MessagesDeleteHistory(params *MessagesDeleteHistoryParams) (*MessagesAffectedHistory, error)
Deletes communication history.
func (*Client) MessagesDeleteMessages ¶
func (c *Client) MessagesDeleteMessages(revoke bool, id []int32) (*MessagesAffectedMessages, error)
Deletes messages by their identifiers.
func (*Client) MessagesDeletePhoneCallHistory ¶
func (c *Client) MessagesDeletePhoneCallHistory(revoke bool) (*MessagesAffectedFoundMessages, error)
Delete the entire phone call history.
func (*Client) MessagesDeleteQuickReplyMessages ¶
Delete one or more messages from a quick reply shortcut. This will also emit an updateDeleteQuickReplyMessages update.
func (*Client) MessagesDeleteQuickReplyShortcut ¶
Completely delete a quick reply shortcut. This will also emit an updateDeleteQuickReply update to other logged-in sessions (and <em>no</em> updateDeleteQuickReplyMessages updates, even if all the messages in the shortcuts are also deleted by this method).
func (*Client) MessagesDeleteRevokedExportedChatInvites ¶
func (c *Client) MessagesDeleteRevokedExportedChatInvites(peer InputPeer, adminID InputUser) (bool, error)
Delete all revoked chat invites
func (*Client) MessagesDeleteSavedHistory ¶
func (c *Client) MessagesDeleteSavedHistory(params *MessagesDeleteSavedHistoryParams) (*MessagesAffectedHistory, error)
Deletes messages from a monoforum topic, or deletes messages forwarded from a specific peer to saved messages.
func (*Client) MessagesDeleteScheduledMessages ¶
Delete scheduled messages
func (*Client) MessagesDeleteTopicHistory ¶ added in v1.6.3
func (c *Client) MessagesDeleteTopicHistory(peer InputPeer, topMsgID int32) (*MessagesAffectedHistory, error)
func (*Client) MessagesDiscardEncryption ¶
Cancels a request for creation and/or delete info on secret chat.
func (*Client) MessagesEditChatAbout ¶
Edit the description of a group/supergroup/channel.
func (*Client) MessagesEditChatAdmin ¶
Make a user admin in a basic group.
func (*Client) MessagesEditChatDefaultBannedRights ¶
func (c *Client) MessagesEditChatDefaultBannedRights(peer InputPeer, bannedRights *ChatBannedRights) (Updates, error)
Edit the default banned rights of a channel/supergroup/group.
func (*Client) MessagesEditChatPhoto ¶
func (c *Client) MessagesEditChatPhoto(chatID int64, photo InputChatPhoto) (Updates, error)
Changes chat photo and sends a service message on it
func (*Client) MessagesEditChatTitle ¶
Changes chat name and sends a service message on it.
func (*Client) MessagesEditExportedChatInvite ¶
func (c *Client) MessagesEditExportedChatInvite(params *MessagesEditExportedChatInviteParams) (MessagesExportedChatInvite, error)
Edit an exported chat invite
func (*Client) MessagesEditFactCheck ¶
func (c *Client) MessagesEditFactCheck(peer InputPeer, msgID int32, text *TextWithEntities) (Updates, error)
Edit/create a fact-check on a message.
func (*Client) MessagesEditForumTopic ¶ added in v1.6.3
func (c *Client) MessagesEditForumTopic(params *MessagesEditForumTopicParams) (Updates, error)
func (*Client) MessagesEditInlineBotMessage ¶
func (c *Client) MessagesEditInlineBotMessage(params *MessagesEditInlineBotMessageParams) (bool, error)
Edit an inline bot message
func (*Client) MessagesEditMessage ¶
func (c *Client) MessagesEditMessage(params *MessagesEditMessageParams) (Updates, error)
Edit message
func (*Client) MessagesEditQuickReplyShortcut ¶
Rename a quick reply shortcut. This will emit an updateQuickReplies update to other logged-in sessions.
func (*Client) MessagesExportChatInvite ¶
func (c *Client) MessagesExportChatInvite(params *MessagesExportChatInviteParams) (ExportedChatInvite, error)
Export an invite link for a chat
func (*Client) MessagesFaveSticker ¶
func (c *Client) MessagesFaveSticker(id InputDocument, unfave bool) (bool, error)
Mark or unmark a sticker as favorite
func (*Client) MessagesForwardMessages ¶
func (c *Client) MessagesForwardMessages(params *MessagesForwardMessagesParams) (Updates, error)
Forwards messages by their IDs.
func (*Client) MessagesGetAdminsWithInvites ¶
func (c *Client) MessagesGetAdminsWithInvites(peer InputPeer) (*MessagesChatAdminsWithInvites, error)
Get info about chat invites generated by admins.
func (*Client) MessagesGetAllDrafts ¶
Return all message drafts. Returns all the latest updateDraftMessage updates related to all chats with drafts.
func (*Client) MessagesGetAllStickers ¶
func (c *Client) MessagesGetAllStickers(hash int64) (MessagesAllStickers, error)
Get all installed stickers
func (*Client) MessagesGetArchivedStickers ¶
func (c *Client) MessagesGetArchivedStickers(masks, emojis bool, offsetID int64, limit int32) (*MessagesArchivedStickers, error)
Get all archived stickers
func (*Client) MessagesGetAttachMenuBot ¶
func (c *Client) MessagesGetAttachMenuBot(bot InputUser) (*AttachMenuBotsBot, error)
Returns attachment menu entry for a bot mini app that can be launched from the attachment menu
func (*Client) MessagesGetAttachMenuBots ¶
func (c *Client) MessagesGetAttachMenuBots(hash int64) (AttachMenuBots, error)
Returns installed attachment menu bot mini apps
func (*Client) MessagesGetAttachedStickers ¶
func (c *Client) MessagesGetAttachedStickers(media InputStickeredMedia) ([]StickerSetCovered, error)
Get stickers attached to a photo or video
func (*Client) MessagesGetAvailableEffects ¶
func (c *Client) MessagesGetAvailableEffects(hash int32) (MessagesAvailableEffects, error)
Fetch the full list of usable animated message effects.
func (*Client) MessagesGetAvailableReactions ¶
func (c *Client) MessagesGetAvailableReactions(hash int32) (MessagesAvailableReactions, error)
Obtain available message reactions
func (*Client) MessagesGetBotApp ¶
func (c *Client) MessagesGetBotApp(app InputBotApp, hash int64) (*MessagesBotApp, error)
Obtain information about a direct link Mini App
func (*Client) MessagesGetBotCallbackAnswer ¶
func (c *Client) MessagesGetBotCallbackAnswer(params *MessagesGetBotCallbackAnswerParams) (*MessagesBotCallbackAnswer, error)
Press an inline callback button and get a callback answer from the bot
func (*Client) MessagesGetChatInviteImporters ¶
func (c *Client) MessagesGetChatInviteImporters(params *MessagesGetChatInviteImportersParams) (*MessagesChatInviteImporters, error)
Get info about the users that joined the chat using a specific chat invite
func (*Client) MessagesGetChats ¶
func (c *Client) MessagesGetChats(id []int64) (MessagesChats, error)
Returns chat basic info on their IDs.
func (*Client) MessagesGetCommonChats ¶
func (c *Client) MessagesGetCommonChats(userID InputUser, maxID int64, limit int32) (MessagesChats, error)
Get chats in common with a user
func (*Client) MessagesGetCustomEmojiDocuments ¶
Fetch custom emoji stickers.
func (*Client) MessagesGetDefaultHistoryTtl ¶
func (c *Client) MessagesGetDefaultHistoryTtl() (*DefaultHistoryTtl, error)
Gets the default value of the Time-To-Live setting, applied to all new chats.
func (*Client) MessagesGetDefaultTagReactions ¶
func (c *Client) MessagesGetDefaultTagReactions(hash int64) (MessagesReactions, error)
Fetch a default recommended list of saved message tag reactions.
func (*Client) MessagesGetDhConfig ¶
func (c *Client) MessagesGetDhConfig(version, randomLength int32) (MessagesDhConfig, error)
Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.
func (*Client) MessagesGetDialogFilters ¶
func (c *Client) MessagesGetDialogFilters() (*MessagesDialogFilters, error)
Get folders
func (*Client) MessagesGetDialogUnreadMarks ¶
func (c *Client) MessagesGetDialogUnreadMarks(parentPeer InputPeer) ([]DialogPeer, error)
Get dialogs manually marked as unread
func (*Client) MessagesGetDialogs ¶
func (c *Client) MessagesGetDialogs(params *MessagesGetDialogsParams) (MessagesDialogs, error)
Returns the current user dialog list.
func (*Client) MessagesGetDiscussionMessage ¶
func (c *Client) MessagesGetDiscussionMessage(peer InputPeer, msgID int32) (*MessagesDiscussionMessage, error)
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 (*Client) MessagesGetDocumentByHash ¶
func (c *Client) MessagesGetDocumentByHash(sha256 []byte, size int64, mimeType string) (Document, error)
Get a document by its SHA256 hash, mainly used for gifs
func (*Client) MessagesGetEmojiGroups ¶
func (c *Client) MessagesGetEmojiGroups(hash int32) (MessagesEmojiGroups, error)
Represents a list of emoji categories.
func (*Client) MessagesGetEmojiKeywords ¶
func (c *Client) MessagesGetEmojiKeywords(langCode string) (*EmojiKeywordsDifference, error)
Get localized emoji keywords.
func (*Client) MessagesGetEmojiKeywordsDifference ¶
func (c *Client) MessagesGetEmojiKeywordsDifference(langCode string, fromVersion int32) (*EmojiKeywordsDifference, error)
Get changed emoji keywords.
func (*Client) MessagesGetEmojiKeywordsLanguages ¶
func (c *Client) MessagesGetEmojiKeywordsLanguages(langCodes []string) ([]*EmojiLanguage, error)
Obtain a list of related languages that must be used when fetching emoji keyword lists.
func (*Client) MessagesGetEmojiProfilePhotoGroups ¶
func (c *Client) MessagesGetEmojiProfilePhotoGroups(hash int32) (MessagesEmojiGroups, error)
Represents a list of emoji categories, to be used when selecting custom emojis to set as profile picture.
func (*Client) MessagesGetEmojiStatusGroups ¶
func (c *Client) MessagesGetEmojiStatusGroups(hash int32) (MessagesEmojiGroups, error)
Represents a list of emoji categories, to be used when selecting custom emojis to set as custom emoji status.
func (*Client) MessagesGetEmojiStickerGroups ¶
func (c *Client) MessagesGetEmojiStickerGroups(hash int32) (MessagesEmojiGroups, error)
Represents a list of emoji categories, to be used when choosing a sticker.
func (*Client) MessagesGetEmojiStickers ¶
func (c *Client) MessagesGetEmojiStickers(hash int64) (MessagesAllStickers, error)
Gets the list of currently installed custom emoji stickersets.
func (*Client) MessagesGetEmojiURL ¶
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 (*Client) MessagesGetExportedChatInvite ¶
func (c *Client) MessagesGetExportedChatInvite(peer InputPeer, link string) (MessagesExportedChatInvite, error)
Get info about a chat invite
func (*Client) MessagesGetExportedChatInvites ¶
func (c *Client) MessagesGetExportedChatInvites(params *MessagesGetExportedChatInvitesParams) (*MessagesExportedChatInvites, error)
Get info about the chat invites of a specific chat
func (*Client) MessagesGetExtendedMedia ¶
Fetch updated information about paid media
func (*Client) MessagesGetFactCheck ¶
Fetch one or more factchecks
func (*Client) MessagesGetFavedStickers ¶
func (c *Client) MessagesGetFavedStickers(hash int64) (MessagesFavedStickers, error)
Get faved stickers
func (*Client) MessagesGetFeaturedEmojiStickers ¶
func (c *Client) MessagesGetFeaturedEmojiStickers(hash int64) (MessagesFeaturedStickers, error)
Gets featured custom emoji stickersets.
func (*Client) MessagesGetFeaturedStickers ¶
func (c *Client) MessagesGetFeaturedStickers(hash int64) (MessagesFeaturedStickers, error)
Get featured stickers
func (*Client) MessagesGetForumTopics ¶ added in v1.6.3
func (c *Client) MessagesGetForumTopics(params *MessagesGetForumTopicsParams) (*MessagesForumTopics, error)
func (*Client) MessagesGetForumTopicsByID ¶ added in v1.6.3
func (c *Client) MessagesGetForumTopicsByID(peer InputPeer, topics []int32) (*MessagesForumTopics, error)
func (*Client) MessagesGetFullChat ¶
func (c *Client) MessagesGetFullChat(chatID int64) (*MessagesChatFull, error)
Get full info about a basic group.
func (*Client) MessagesGetGameHighScores ¶
func (c *Client) MessagesGetGameHighScores(peer InputPeer, id int32, userID InputUser) (*MessagesHighScores, error)
Get highscores of a game
func (*Client) MessagesGetHistory ¶
func (c *Client) MessagesGetHistory(params *MessagesGetHistoryParams) (MessagesMessages, error)
Returns the conversation history with one interlocutor / within a chat
func (*Client) MessagesGetInlineBotResults ¶
func (c *Client) MessagesGetInlineBotResults(params *MessagesGetInlineBotResultsParams) (*MessagesBotResults, error)
Query an inline bot
func (*Client) MessagesGetInlineGameHighScores ¶
func (c *Client) MessagesGetInlineGameHighScores(id InputBotInlineMessageID, userID InputUser) (*MessagesHighScores, error)
Get highscores of a game sent using an inline bot
func (*Client) MessagesGetMaskStickers ¶
func (c *Client) MessagesGetMaskStickers(hash int64) (MessagesAllStickers, error)
Get installed mask stickers
func (*Client) MessagesGetMessageEditData ¶
func (c *Client) MessagesGetMessageEditData(peer InputPeer, id int32) (*MessagesMessageEditData, error)
Find out if a media message's caption can be edited
func (*Client) MessagesGetMessageReactionsList ¶
func (c *Client) MessagesGetMessageReactionsList(params *MessagesGetMessageReactionsListParams) (*MessagesMessageReactionsList, error)
Get message reaction list, along with the sender of each reaction.
func (*Client) MessagesGetMessageReadParticipants ¶
func (c *Client) MessagesGetMessageReadParticipants(peer InputPeer, msgID int32) ([]*ReadParticipantDate, error)
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 (*Client) MessagesGetMessages ¶
func (c *Client) MessagesGetMessages(id []InputMessage) (MessagesMessages, error)
Returns the list of messages by their IDs.
func (*Client) MessagesGetMessagesReactions ¶
Get message reactions
func (*Client) MessagesGetMessagesViews ¶
func (c *Client) MessagesGetMessagesViews(peer InputPeer, id []int32, increment bool) (*MessagesMessageViews, error)
Get and increase the view counter of a message sent or forwarded from a channel
func (*Client) MessagesGetMyStickers ¶
func (c *Client) MessagesGetMyStickers(offsetID int64, limit int32) (*MessagesMyStickers, error)
Fetch all stickersets owned by the current user.
func (*Client) MessagesGetOldFeaturedStickers ¶
func (c *Client) MessagesGetOldFeaturedStickers(offset, limit int32, hash int64) (MessagesFeaturedStickers, error)
Method for fetching previously featured stickers
func (*Client) MessagesGetOnlines ¶
func (c *Client) MessagesGetOnlines(peer InputPeer) (*ChatOnlines, error)
Get count of online users in a chat
func (*Client) MessagesGetOutboxReadDate ¶
func (c *Client) MessagesGetOutboxReadDate(peer InputPeer, msgID int32) (*OutboxReadDate, error)
Get the exact read date of one of our messages, sent to a private chat with another user.
func (*Client) MessagesGetPaidReactionPrivacy ¶
Fetches an updatePaidReactionPrivacy update with the current default paid reaction privacy
func (*Client) MessagesGetPeerDialogs ¶
func (c *Client) MessagesGetPeerDialogs(peers []InputDialogPeer) (*MessagesPeerDialogs, error)
Get dialog info of specified peers
func (*Client) MessagesGetPeerSettings ¶
func (c *Client) MessagesGetPeerSettings(peer InputPeer) (*MessagesPeerSettings, error)
Get peer settings
func (*Client) MessagesGetPinnedDialogs ¶
func (c *Client) MessagesGetPinnedDialogs(folderID int32) (*MessagesPeerDialogs, error)
Get pinned dialogs
func (*Client) MessagesGetPinnedSavedDialogs ¶
func (c *Client) MessagesGetPinnedSavedDialogs() (MessagesSavedDialogs, error)
Get pinned saved dialogs
func (*Client) MessagesGetPollResults ¶
Get poll results
func (*Client) MessagesGetPollVotes ¶
func (c *Client) MessagesGetPollVotes(params *MessagesGetPollVotesParams) (*MessagesVotesList, error)
Get poll results for non-anonymous polls
func (*Client) MessagesGetPreparedInlineMessage ¶ added in v1.3.21
func (c *Client) MessagesGetPreparedInlineMessage(bot InputUser, id string) (*MessagesPreparedInlineMessage, error)
Obtain a prepared inline message generated by a mini app: invoked when handling web_app_send_prepared_message events
func (*Client) MessagesGetQuickReplies ¶
func (c *Client) MessagesGetQuickReplies(hash int64) (MessagesQuickReplies, error)
Fetch basic info about all existing quick reply shortcuts.
func (*Client) MessagesGetQuickReplyMessages ¶
func (c *Client) MessagesGetQuickReplyMessages(shortcutID int32, id []int32, hash int64) (MessagesMessages, error)
Fetch (a subset or all) messages in a quick reply shortcut.
func (*Client) MessagesGetRecentLocations ¶
func (c *Client) MessagesGetRecentLocations(peer InputPeer, limit int32, hash int64) (MessagesMessages, error)
Get live location history of a certain user
func (*Client) MessagesGetRecentReactions ¶
func (c *Client) MessagesGetRecentReactions(limit int32, hash int64) (MessagesReactions, error)
Get recently used message reactions
func (*Client) MessagesGetRecentStickers ¶
func (c *Client) MessagesGetRecentStickers(attached bool, hash int64) (MessagesRecentStickers, error)
Get recent stickers
func (*Client) MessagesGetReplies ¶
func (c *Client) MessagesGetReplies(params *MessagesGetRepliesParams) (MessagesMessages, error)
Get messages in a reply thread
func (*Client) MessagesGetSavedDialogs ¶
func (c *Client) MessagesGetSavedDialogs(params *MessagesGetSavedDialogsParams) (MessagesSavedDialogs, error)
Returns the current saved dialog list or monoforum topic list.
func (*Client) MessagesGetSavedDialogsByID ¶ added in v1.6.0
func (c *Client) MessagesGetSavedDialogsByID(parentPeer InputPeer, ids []InputPeer) (MessagesSavedDialogs, error)
Obtain information about specific saved message dialogs or monoforum topics.
func (*Client) MessagesGetSavedGifs ¶
func (c *Client) MessagesGetSavedGifs(hash int64) (MessagesSavedGifs, error)
Get saved GIFs.
func (*Client) MessagesGetSavedHistory ¶
func (c *Client) MessagesGetSavedHistory(params *MessagesGetSavedHistoryParams) (MessagesMessages, error)
Fetch saved messages forwarded from a specific peer, or fetch messages from a monoforum topic.
func (*Client) MessagesGetSavedReactionTags ¶
func (c *Client) MessagesGetSavedReactionTags(peer InputPeer, hash int64) (MessagesSavedReactionTags, error)
Fetch the full list of saved message tags created by the user.
func (*Client) MessagesGetScheduledHistory ¶
func (c *Client) MessagesGetScheduledHistory(peer InputPeer, hash int64) (MessagesMessages, error)
Get scheduled messages
func (*Client) MessagesGetScheduledMessages ¶
func (c *Client) MessagesGetScheduledMessages(peer InputPeer, id []int32) (MessagesMessages, error)
Get scheduled messages
func (*Client) MessagesGetSearchCounters ¶
func (c *Client) MessagesGetSearchCounters(peer, savedPeerID InputPeer, topMsgID int32, filters []MessagesFilter) ([]*MessagesSearchCounter, error)
Get the number of results that would be found by a messages.search call with the same parameters
func (*Client) MessagesGetSearchResultsCalendar ¶
func (c *Client) MessagesGetSearchResultsCalendar(params *MessagesGetSearchResultsCalendarParams) (*MessagesSearchResultsCalendar, error)
Returns information about the next messages of the specified type in the chat split by days.
func (*Client) MessagesGetSearchResultsPositions ¶
func (c *Client) MessagesGetSearchResultsPositions(params *MessagesGetSearchResultsPositionsParams) (*MessagesSearchResultsPositions, error)
Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation.
func (*Client) MessagesGetSplitRanges ¶
func (c *Client) MessagesGetSplitRanges() ([]*MessageRange, error)
Get message ranges for saving the user's chat history
func (*Client) MessagesGetSponsoredMessages ¶ added in v1.3.21
func (c *Client) MessagesGetSponsoredMessages(peer InputPeer, msgID int32) (MessagesSponsoredMessages, error)
Get a list of sponsored messages for a peer
func (*Client) MessagesGetStickerSet ¶
func (c *Client) MessagesGetStickerSet(stickerset InputStickerSet, hash int32) (MessagesStickerSet, error)
Get info about a stickerset
func (*Client) MessagesGetStickers ¶
func (c *Client) MessagesGetStickers(emoticon string, hash int64) (MessagesStickers, error)
Get stickers by emoji
func (*Client) MessagesGetSuggestedDialogFilters ¶
func (c *Client) MessagesGetSuggestedDialogFilters() ([]*DialogFilterSuggested, error)
Get suggested folders
func (*Client) MessagesGetTopReactions ¶
func (c *Client) MessagesGetTopReactions(limit int32, hash int64) (MessagesReactions, error)
Got popular message reactions
func (*Client) MessagesGetUnreadMentions ¶
func (c *Client) MessagesGetUnreadMentions(params *MessagesGetUnreadMentionsParams) (MessagesMessages, error)
Get unread messages where we were mentioned
func (*Client) MessagesGetUnreadReactions ¶
func (c *Client) MessagesGetUnreadReactions(params *MessagesGetUnreadReactionsParams) (MessagesMessages, error)
Get unread reactions to messages you sent
func (*Client) MessagesGetWebPage ¶
func (c *Client) MessagesGetWebPage(url string, hash int32) (*MessagesWebPage, error)
Get instant view page
func (*Client) MessagesGetWebPagePreview ¶
func (c *Client) MessagesGetWebPagePreview(message string, entities []MessageEntity) (*MessagesWebPagePreview, error)
Get preview of webpage
func (*Client) MessagesHideAllChatJoinRequests ¶
func (c *Client) MessagesHideAllChatJoinRequests(approved bool, peer InputPeer, link string) (Updates, error)
Dismiss or approve all join requests related to a specific chat or channel.
func (*Client) MessagesHideChatJoinRequest ¶
func (c *Client) MessagesHideChatJoinRequest(approved bool, peer InputPeer, userID InputUser) (Updates, error)
Dismiss or approve a chat join request related to a specific chat or channel.
func (*Client) MessagesHidePeerSettingsBar ¶
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 (*Client) MessagesImportChatInvite ¶
Import a chat invite and join a private chat/supergroup/channel
func (*Client) MessagesInitHistoryImport ¶
func (c *Client) MessagesInitHistoryImport(peer InputPeer, file InputFile, mediaCount int32) (*MessagesHistoryImport, error)
Import chat history from a foreign chat app into a specific Telegram chat, click here for more info about imported chats.
func (*Client) MessagesInstallStickerSet ¶
func (c *Client) MessagesInstallStickerSet(stickerset InputStickerSet, archived bool) (MessagesStickerSetInstallResult, error)
Install a stickerset
func (*Client) MessagesMarkDialogUnread ¶
func (c *Client) MessagesMarkDialogUnread(unread bool, parentPeer InputPeer, peer InputDialogPeer) (bool, error)
Manually mark dialog as unread
func (*Client) MessagesMigrateChat ¶
Turn a basic group into a supergroup
func (*Client) MessagesProlongWebView ¶
func (c *Client) MessagesProlongWebView(params *MessagesProlongWebViewParams) (bool, error)
Indicate to the server (from the user side) that the user is still using a web app.
func (*Client) MessagesRateTranscribedAudio ¶
func (c *Client) MessagesRateTranscribedAudio(peer InputPeer, msgID int32, transcriptionID int64, good bool) (bool, error)
Rate transcribed voice message
func (*Client) MessagesReadDiscussion ¶
Mark a thread as read
func (*Client) MessagesReadEncryptedHistory ¶
func (c *Client) MessagesReadEncryptedHistory(peer *InputEncryptedChat, maxDate int32) (bool, error)
Marks message history within a secret chat as read.
func (*Client) MessagesReadFeaturedStickers ¶
Mark new featured stickers as read
func (*Client) MessagesReadHistory ¶
func (c *Client) MessagesReadHistory(peer InputPeer, maxID int32) (*MessagesAffectedMessages, error)
Marks message history as read.
func (*Client) MessagesReadMentions ¶
func (c *Client) MessagesReadMentions(peer InputPeer, topMsgID int32) (*MessagesAffectedHistory, error)
Mark mentions as read
func (*Client) MessagesReadMessageContents ¶
func (c *Client) MessagesReadMessageContents(id []int32) (*MessagesAffectedMessages, error)
Notifies the sender about the recipient having listened a voice message or watched a video, emitting an updateReadMessagesContents.
func (*Client) MessagesReadReactions ¶
func (c *Client) MessagesReadReactions(peer InputPeer, topMsgID int32, savedPeerID InputPeer) (*MessagesAffectedHistory, error)
Mark message reactions as read
func (*Client) MessagesReadSavedHistory ¶ added in v1.6.0
Mark messages as read in a monoforum topic.
func (*Client) MessagesReceivedMessages ¶
func (c *Client) MessagesReceivedMessages(maxID int32) ([]*ReceivedNotifyMessage, error)
Confirms receipt of messages by a client, cancels PUSH-notification sending.
func (*Client) MessagesReceivedQueue ¶
Confirms receipt of messages in a secret chat by client, cancels push notifications. The method returns a list of random_ids of messages for which push notifications were cancelled.
func (*Client) MessagesReorderPinnedDialogs ¶
func (c *Client) MessagesReorderPinnedDialogs(force bool, folderID int32, order []InputDialogPeer) (bool, error)
Reorder pinned dialogs
func (*Client) MessagesReorderPinnedForumTopics ¶ added in v1.6.3
func (*Client) MessagesReorderPinnedSavedDialogs ¶
func (c *Client) MessagesReorderPinnedSavedDialogs(force bool, order []InputDialogPeer) (bool, error)
Reorder pinned saved message dialogs.
func (*Client) MessagesReorderQuickReplies ¶
Reorder quick reply shortcuts.
func (*Client) MessagesReorderStickerSets ¶
Reorder installed stickersets
func (*Client) MessagesReport ¶
func (c *Client) MessagesReport(peer InputPeer, id []int32, option []byte, message string) (ReportResult, error)
Report a message in a chat for violation of telegram's Terms of Service
func (*Client) MessagesReportEncryptedSpam ¶
func (c *Client) MessagesReportEncryptedSpam(peer *InputEncryptedChat) (bool, error)
Report a secret chat for spam
func (*Client) MessagesReportMessagesDelivery ¶ added in v1.5.3
func (c *Client) MessagesReportMessagesDelivery(push bool, peer InputPeer, id []int32) (bool, error)
Used for Telegram Gateway verification messages : indicate to the server that one or more messages were received by the client, if requested by the message.report_delivery_until_date flag or the equivalent flag in push notifications.
func (*Client) MessagesReportReaction ¶
func (c *Client) MessagesReportReaction(peer InputPeer, id int32, reactionPeer InputPeer) (bool, error)
Report a message reaction
func (*Client) MessagesReportSpam ¶
Report a new incoming chat for spam, if the peer settings of the chat allow us to do that
func (*Client) MessagesReportSponsoredMessage ¶ added in v1.3.21
func (c *Client) MessagesReportSponsoredMessage(randomID, option []byte) (ChannelsSponsoredMessageReportResult, error)
Report a sponsored message
func (*Client) MessagesRequestAppWebView ¶
func (c *Client) MessagesRequestAppWebView(params *MessagesRequestAppWebViewParams) (*WebViewResultURL, error)
Open a bot mini app from a direct Mini App deep link, sending over user information after user confirmation.
func (*Client) MessagesRequestEncryption ¶
func (c *Client) MessagesRequestEncryption(userID InputUser, randomID int32, gA []byte) (EncryptedChat, error)
Sends a request to start a secret chat to the user.
func (*Client) MessagesRequestMainWebView ¶
func (c *Client) MessagesRequestMainWebView(params *MessagesRequestMainWebViewParams) (*WebViewResultURL, error)
Open a Main Mini App.
func (*Client) MessagesRequestSimpleWebView ¶
func (c *Client) MessagesRequestSimpleWebView(params *MessagesRequestSimpleWebViewParams) (*WebViewResultURL, error)
Open a bot mini app.
func (*Client) MessagesRequestURLAuth ¶
func (c *Client) MessagesRequestURLAuth(peer InputPeer, msgID, buttonID int32, url string) (URLAuthResult, error)
Get more info about a Seamless Telegram Login authorization request, for more info click here
func (*Client) MessagesRequestWebView ¶
func (c *Client) MessagesRequestWebView(params *MessagesRequestWebViewParams) (*WebViewResultURL, error)
Open a bot mini app, sending over user information after user confirmation.
func (*Client) MessagesSaveDefaultSendAs ¶
Change the default peer that should be used when sending messages, reactions, poll votes to a specific group
func (*Client) MessagesSaveDraft ¶
func (c *Client) MessagesSaveDraft(params *MessagesSaveDraftParams) (bool, error)
Save a message draft associated to a chat.
func (*Client) MessagesSaveGif ¶
func (c *Client) MessagesSaveGif(id InputDocument, unsave bool) (bool, error)
Add GIF to saved gifs list
func (*Client) MessagesSavePreparedInlineMessage ¶ added in v1.4.2
func (c *Client) MessagesSavePreparedInlineMessage(result InputBotInlineResult, userID InputUser, peerTypes []InlineQueryPeerType) (*MessagesBotPreparedInlineMessage, error)
Save a prepared inline message, to be shared by the user of the mini app using a web_app_send_prepared_message event
func (*Client) MessagesSaveRecentSticker ¶
func (c *Client) MessagesSaveRecentSticker(attached bool, id InputDocument, unsave bool) (bool, error)
Add/remove sticker from recent stickers list
func (*Client) MessagesSearch ¶
func (c *Client) MessagesSearch(params *MessagesSearchParams) (MessagesMessages, error)
Search for messages.
func (*Client) MessagesSearchCustomEmoji ¶
Look for custom emojis associated to a UTF8 emoji
func (*Client) MessagesSearchEmojiStickerSets ¶
func (c *Client) MessagesSearchEmojiStickerSets(excludeFeatured bool, q string, hash int64) (MessagesFoundStickerSets, error)
Search for custom emoji stickersets
func (*Client) MessagesSearchGlobal ¶
func (c *Client) MessagesSearchGlobal(params *MessagesSearchGlobalParams) (MessagesMessages, error)
Search for messages and peers globally
func (*Client) MessagesSearchSentMedia ¶
func (c *Client) MessagesSearchSentMedia(q string, filter MessagesFilter, limit int32) (MessagesMessages, error)
View and search recently sent media. This method does not support pagination.
func (*Client) MessagesSearchStickerSets ¶
func (c *Client) MessagesSearchStickerSets(excludeFeatured bool, q string, hash int64) (MessagesFoundStickerSets, error)
Search for stickersets
func (*Client) MessagesSearchStickers ¶ added in v1.4.4
func (c *Client) MessagesSearchStickers(params *MessagesSearchStickersParams) (MessagesFoundStickers, error)
Search for stickers using AI-powered keyword search
func (*Client) MessagesSendBotRequestedPeer ¶
func (c *Client) MessagesSendBotRequestedPeer(peer InputPeer, msgID, buttonID int32, requestedPeers []InputPeer) (Updates, error)
Send one or more chosen peers, as requested by a keyboardButtonRequestPeer button.
func (*Client) MessagesSendEncrypted ¶
func (c *Client) MessagesSendEncrypted(silent bool, peer *InputEncryptedChat, randomID int64, data []byte) (MessagesSentEncryptedMessage, error)
Sends a text message to a secret chat.
func (*Client) MessagesSendEncryptedFile ¶
func (c *Client) MessagesSendEncryptedFile(params *MessagesSendEncryptedFileParams) (MessagesSentEncryptedMessage, error)
Sends a message with a file attachment to a secret chat
func (*Client) MessagesSendEncryptedService ¶
func (c *Client) MessagesSendEncryptedService(peer *InputEncryptedChat, randomID int64, data []byte) (MessagesSentEncryptedMessage, error)
Sends a service message to a secret chat.
func (*Client) MessagesSendInlineBotResult ¶
func (c *Client) MessagesSendInlineBotResult(params *MessagesSendInlineBotResultParams) (Updates, error)
Send a result obtained using messages.getInlineBotResults.
func (*Client) MessagesSendMedia ¶
func (c *Client) MessagesSendMedia(params *MessagesSendMediaParams) (Updates, error)
Send a media
func (*Client) MessagesSendMessage ¶
func (c *Client) MessagesSendMessage(params *MessagesSendMessageParams) (Updates, error)
Sends a message to a chat
func (*Client) MessagesSendMultiMedia ¶
func (c *Client) MessagesSendMultiMedia(params *MessagesSendMultiMediaParams) (Updates, error)
Send an album or grouped media
func (*Client) MessagesSendPaidReaction ¶
func (c *Client) MessagesSendPaidReaction(params *MessagesSendPaidReactionParams) (Updates, error)
Sends one or more paid Telegram Star reactions, transferring Telegram Stars to a channel's balance.
func (*Client) MessagesSendQuickReplyMessages ¶
func (c *Client) MessagesSendQuickReplyMessages(peer InputPeer, shortcutID int32, id []int32, randomID []int64) (Updates, error)
Send a quick reply shortcut.
func (*Client) MessagesSendReaction ¶
func (c *Client) MessagesSendReaction(params *MessagesSendReactionParams) (Updates, error)
React to message.
func (*Client) MessagesSendScheduledMessages ¶
Send scheduled messages right away
func (*Client) MessagesSendScreenshotNotification ¶
func (c *Client) MessagesSendScreenshotNotification(peer InputPeer, replyTo InputReplyTo, randomID int64) (Updates, error)
Notify the other user in a private chat that a screenshot of the chat was taken
func (*Client) MessagesSendVote ¶
Vote in a poll
func (*Client) MessagesSendWebViewData ¶
func (c *Client) MessagesSendWebViewData(bot InputUser, randomID int64, buttonText, data string) (Updates, error)
Used by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it.
func (*Client) MessagesSendWebViewResultMessage ¶
func (c *Client) MessagesSendWebViewResultMessage(botQueryID string, result InputBotInlineResult) (*WebViewMessageSent, error)
Terminate webview interaction started with messages.requestWebView, sending the specified message to the chat on behalf of the user.
func (*Client) MessagesSetBotCallbackAnswer ¶
func (c *Client) MessagesSetBotCallbackAnswer(params *MessagesSetBotCallbackAnswerParams) (bool, error)
Set the callback answer to a user button press (bots only)
func (*Client) MessagesSetBotPrecheckoutResults ¶
func (c *Client) MessagesSetBotPrecheckoutResults(success bool, queryID int64, error string) (bool, error)
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.
func (*Client) MessagesSetBotShippingResults ¶
func (c *Client) MessagesSetBotShippingResults(queryID int64, error string, shippingOptions []*ShippingOption) (bool, error)
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 (*Client) MessagesSetChatAvailableReactions ¶
func (c *Client) MessagesSetChatAvailableReactions(peer InputPeer, availableReactions ChatReactions, reactionsLimit int32, paidEnabled bool) (Updates, error)
Change the set of message reactions that can be used in a certain group, supergroup or channel
func (*Client) MessagesSetChatTheme ¶
func (c *Client) MessagesSetChatTheme(peer InputPeer, theme InputChatTheme) (Updates, error)
Change the chat theme of a certain chat
func (*Client) MessagesSetChatWallPaper ¶
func (c *Client) MessagesSetChatWallPaper(params *MessagesSetChatWallPaperParams) (Updates, error)
Set a custom wallpaper in a specific private chat with another user.
func (*Client) MessagesSetDefaultHistoryTtl ¶
Changes the default value of the Time-To-Live setting, applied to all new chats.
func (*Client) MessagesSetDefaultReaction ¶
Change default emoji reaction to use in the quick reaction menu: the value is synced across devices and can be fetched using help.getConfig, `reactions_default` field.
func (*Client) MessagesSetEncryptedTyping ¶
func (c *Client) MessagesSetEncryptedTyping(peer *InputEncryptedChat, typing bool) (bool, error)
Send typing event by the current user to a secret chat.
func (*Client) MessagesSetGameScore ¶
func (c *Client) MessagesSetGameScore(params *MessagesSetGameScoreParams) (Updates, error)
Use this method to set the score of the specified user in a game sent as a normal message (bots only).
func (*Client) MessagesSetHistoryTtl ¶
Set maximum Time-To-Live of all messages in the specified chat
func (*Client) MessagesSetInlineBotResults ¶
func (c *Client) MessagesSetInlineBotResults(params *MessagesSetInlineBotResultsParams) (bool, error)
Answer an inline query, for bots only
func (*Client) MessagesSetInlineGameScore ¶
func (c *Client) MessagesSetInlineGameScore(params *MessagesSetInlineGameScoreParams) (bool, error)
Use this method to set the score of the specified user in a game sent as an inline message (bots only).
func (*Client) MessagesSetTyping ¶
func (c *Client) MessagesSetTyping(peer InputPeer, topMsgID int32, action SendMessageAction) (bool, error)
Sends a current user typing event (see SendMessageAction for all event types) to a conversation partner or group.
func (*Client) MessagesStartBot ¶
func (c *Client) MessagesStartBot(bot InputUser, peer InputPeer, randomID int64, startParam string) (Updates, error)
Start a conversation with a bot using a deep linking parameter
func (*Client) MessagesStartHistoryImport ¶
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 (*Client) MessagesToggleBotInAttachMenu ¶
func (c *Client) MessagesToggleBotInAttachMenu(writeAllowed bool, bot InputUser, enabled bool) (bool, error)
Enable or disable web bot attachment menu
func (*Client) MessagesToggleDialogFilterTags ¶
Enable or disable folder tags.
func (*Client) MessagesToggleDialogPin ¶
func (c *Client) MessagesToggleDialogPin(pinned bool, peer InputDialogPeer) (bool, error)
Pin/unpin a dialog
func (*Client) MessagesToggleNoForwards ¶
Enable or disable content protection on a channel or chat
func (*Client) MessagesTogglePaidReactionPrivacy ¶
func (c *Client) MessagesTogglePaidReactionPrivacy(peer InputPeer, msgID int32, private PaidReactionPrivacy) (bool, error)
Changes the privacy of already sent paid reactions on a specific message.
func (*Client) MessagesTogglePeerTranslations ¶
Show or hide the real-time chat translation popup for a certain chat
func (*Client) MessagesToggleSavedDialogPin ¶
func (c *Client) MessagesToggleSavedDialogPin(pinned bool, peer InputDialogPeer) (bool, error)
Pin or unpin a saved message dialog.
func (*Client) MessagesToggleStickerSets ¶
func (c *Client) MessagesToggleStickerSets(uninstall, archive, unarchive bool, stickersets []InputStickerSet) (bool, error)
Apply changes to multiple stickersets
func (*Client) MessagesToggleSuggestedPostApproval ¶ added in v1.6.1
func (c *Client) MessagesToggleSuggestedPostApproval(params *MessagesToggleSuggestedPostApprovalParams) (Updates, error)
Approve or reject a suggested post.
func (*Client) MessagesToggleTodoCompleted ¶ added in v1.6.1
func (c *Client) MessagesToggleTodoCompleted(peer InputPeer, msgID int32, completed, incompleted []int32) (Updates, error)
Mark one or more items of a todo list as completed or not completed.
func (*Client) MessagesTranscribeAudio ¶
func (c *Client) MessagesTranscribeAudio(peer InputPeer, msgID int32) (*MessagesTranscribedAudio, error)
Transcribe voice message
func (*Client) MessagesTranslateText ¶
func (c *Client) MessagesTranslateText(peer InputPeer, id []int32, text []*TextWithEntities, toLang string) (*MessagesTranslateResult, error)
Translate a given text.
func (*Client) MessagesUninstallStickerSet ¶
func (c *Client) MessagesUninstallStickerSet(stickerset InputStickerSet) (bool, error)
Uninstall a stickerset
func (*Client) MessagesUnpinAllMessages ¶
func (c *Client) MessagesUnpinAllMessages(peer InputPeer, topMsgID int32, savedPeerID InputPeer) (*MessagesAffectedHistory, error)
Unpin all pinned messages
func (*Client) MessagesUpdateDialogFilter ¶
func (c *Client) MessagesUpdateDialogFilter(id int32, filter DialogFilter) (bool, error)
Update folder
func (*Client) MessagesUpdateDialogFiltersOrder ¶
Reorder folders
func (*Client) MessagesUpdatePinnedForumTopic ¶ added in v1.6.3
func (*Client) MessagesUpdatePinnedMessage ¶
func (c *Client) MessagesUpdatePinnedMessage(params *MessagesUpdatePinnedMessageParams) (Updates, error)
Pin a message
func (*Client) MessagesUpdateSavedReactionTag ¶
Update the description of a saved message tag.
func (*Client) MessagesUploadEncryptedFile ¶
func (c *Client) MessagesUploadEncryptedFile(peer *InputEncryptedChat, file InputEncryptedFile) (EncryptedFile, error)
Upload encrypted file and associate it to a secret chat (without actually sending it to the chat).
func (*Client) MessagesUploadImportedMedia ¶
func (c *Client) MessagesUploadImportedMedia(peer InputPeer, importID int64, fileName string, media InputMedia) (MessageMedia, error)
Upload a media file associated with an imported chat, click here for more info.
func (*Client) MessagesUploadMedia ¶
func (c *Client) MessagesUploadMedia(businessConnectionID string, peer InputPeer, media InputMedia) (MessageMedia, error)
Upload a file and associate it to a chat (without actually sending it to the chat)
func (*Client) MessagesViewSponsoredMessage ¶ added in v1.3.21
Mark a specific sponsored message as read
func (*Client) Must ¶ added in v1.6.9
Must panics if err is not nil, otherwise returns obj. Useful for operations that should never fail in production.
func (*Client) NewConversation ¶
func (c *Client) NewConversation(peer any, options ...*ConversationOptions) (*Conversation, error)
func (*Client) NewRTMPStream ¶ added in v1.6.10
func (c *Client) NewRTMPStream(chatID int64, config ...*RTMPConfig) (*RTMPStream, error)
func (*Client) NewRecovery ¶
func (c *Client) NewRecovery() func()
NewRecovery makes a new recovery object
func (*Client) NewUpdateDispatcher ¶
func (*Client) On ¶
On registers an event handler with flexible pattern matching.
Usage patterns:
// Message handlers
client.On("message", handler) // All messages
client.On("message:hello", handler) // Messages matching "hello"
client.On(OnMessage, handler) // Using constant
// Command handlers (multiple formats)
client.On("/start", handler) // Shortcut for cmd:start
client.On("!help", handler) // Shortcut for cmd:help
client.On("cmd:start", handler) // Explicit command
client.On("command:start", handler) // Full form
// Other events
client.On("callback:data", handler) // Callback with data pattern
client.On("inline:query", handler) // Inline query pattern
client.On("edit", handler) // Message edits
client.On("delete", handler) // Message deletions
client.On("album", handler) // Media albums
client.On("participant", handler) // Member updates
client.On("joinrequest", handler) // Join requests
// Raw updates
client.On("raw", handler) // All raw updates
client.On("*", handler) // Alias for raw
client.On(&UpdateNewMessage{}, handler) // Specific update type
// Auto-detect from handler signature
client.On(func(m *NewMessage) error {...}) // Detects as message handler
func (*Client) OnCallback ¶ added in v1.6.10
func (c *Client) OnCallback(pattern string, handler func(m *CallbackQuery) error) Handle
func (*Client) OnDelete ¶ added in v1.6.10
func (c *Client) OnDelete(handler func(m *DeleteMessage) error) Handle
func (*Client) OnE2EMessage ¶ added in v1.7.0
func (*Client) OnEdit ¶ added in v1.6.10
func (c *Client) OnEdit(pattern string, handler func(m *NewMessage) error) Handle
func (*Client) OnInlineQuery ¶ added in v1.6.10
func (c *Client) OnInlineQuery(pattern string, handler func(m *InlineQuery) error) Handle
func (*Client) OnJoinRequest ¶ added in v1.6.10
func (c *Client) OnJoinRequest(handler func(m *JoinRequestUpdate) error) Handle
func (*Client) OnParticipant ¶ added in v1.6.10
func (c *Client) OnParticipant(handler func(m *ParticipantUpdate) error) Handle
func (*Client) OpenChat ¶ added in v1.5.3
func (c *Client) OpenChat(channel *InputChannelObj, timeoutSeconds int32)
OpenChat starts active polling for a channel to receive updates faster. timeoutSeconds specifies the polling interval in seconds.
func (*Client) PaymentsApplyGiftCode ¶
Apply a Telegram Premium giftcode
func (*Client) PaymentsAssignAppStoreTransaction ¶
func (c *Client) PaymentsAssignAppStoreTransaction(receipt []byte, purpose InputStorePaymentPurpose) (Updates, error)
Informs server about a purchase made through the App Store: for official applications only.
func (*Client) PaymentsAssignPlayMarketTransaction ¶
func (c *Client) PaymentsAssignPlayMarketTransaction(receipt *DataJson, purpose InputStorePaymentPurpose) (Updates, error)
Informs server about a purchase made through the Play Store: for official applications only.
func (*Client) PaymentsBotCancelStarsSubscription ¶ added in v1.4.2
func (c *Client) PaymentsBotCancelStarsSubscription(restore bool, userID InputUser, chargeID string) (bool, error)
Cancel a bot subscription
func (*Client) PaymentsCanPurchaseStore ¶ added in v1.6.0
func (c *Client) PaymentsCanPurchaseStore(purpose InputStorePaymentPurpose) (bool, error)
Checks whether a purchase is possible. Must be called before in-store purchase, official apps only.
func (*Client) PaymentsChangeStarsSubscription ¶
func (c *Client) PaymentsChangeStarsSubscription(peer InputPeer, subscriptionID string, canceled bool) (bool, error)
Activate or deactivate a Telegram Star subscription.
func (*Client) PaymentsCheckCanSendGift ¶ added in v1.6.3
func (c *Client) PaymentsCheckCanSendGift(giftID int64) (PaymentsCheckCanSendGiftResult, error)
Check if the specified gift can be sent.
func (*Client) PaymentsCheckGiftCode ¶
func (c *Client) PaymentsCheckGiftCode(slug string) (*PaymentsCheckedGiftCode, error)
Obtain information about a Telegram Premium giftcode
func (*Client) PaymentsClearSavedInfo ¶
Clear saved payment information
func (*Client) PaymentsConnectStarRefBot ¶ added in v1.4.8
func (c *Client) PaymentsConnectStarRefBot(peer InputPeer, bot InputUser) (*PaymentsConnectedStarRefBots, error)
Join a bot's affiliate program, becoming an affiliate
func (*Client) PaymentsConvertStarGift ¶
func (c *Client) PaymentsConvertStarGift(stargift InputSavedStarGift) (bool, error)
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 (*Client) PaymentsCreateStarGiftCollection ¶ added in v1.6.3
func (c *Client) PaymentsCreateStarGiftCollection(peer InputPeer, title string, stargift []InputSavedStarGift) (*StarGiftCollection, error)
Create a star gift collection.
func (*Client) PaymentsDeleteStarGiftCollection ¶ added in v1.6.3
Delete a star gift collection.
func (*Client) PaymentsEditConnectedStarRefBot ¶ added in v1.4.8
func (c *Client) PaymentsEditConnectedStarRefBot(revoked bool, peer InputPeer, link string) (*PaymentsConnectedStarRefBots, error)
Leave a bot's affiliate program
func (*Client) PaymentsExportInvoice ¶
func (c *Client) PaymentsExportInvoice(invoiceMedia InputMedia) (*PaymentsExportedInvoice, error)
Generate an invoice deep link
func (*Client) PaymentsFulfillStarsSubscription ¶
func (c *Client) PaymentsFulfillStarsSubscription(peer InputPeer, subscriptionID string) (bool, error)
Re-join a private channel associated to an active Telegram Star subscription.
func (*Client) PaymentsGetBankCardData ¶
func (c *Client) PaymentsGetBankCardData(number string) (*PaymentsBankCardData, error)
Get info about a credit card
func (*Client) PaymentsGetConnectedStarRefBot ¶ added in v1.4.8
func (c *Client) PaymentsGetConnectedStarRefBot(peer InputPeer, bot InputUser) (*PaymentsConnectedStarRefBots, error)
Fetch info about a specific bot affiliation
func (*Client) PaymentsGetConnectedStarRefBots ¶ added in v1.4.8
func (c *Client) PaymentsGetConnectedStarRefBots(peer InputPeer, offsetDate int32, offsetLink string, limit int32) (*PaymentsConnectedStarRefBots, error)
Fetch all affiliations we have created for a certain peer
func (*Client) PaymentsGetGiveawayInfo ¶
func (c *Client) PaymentsGetGiveawayInfo(peer InputPeer, msgID int32) (PaymentsGiveawayInfo, error)
Obtain information about a Telegram Premium giveaway.
func (*Client) PaymentsGetPaymentForm ¶
func (c *Client) PaymentsGetPaymentForm(invoice InputInvoice, themeParams *DataJson) (PaymentsPaymentForm, error)
Get a payment form
func (*Client) PaymentsGetPaymentReceipt ¶
func (c *Client) PaymentsGetPaymentReceipt(peer InputPeer, msgID int32) (PaymentsPaymentReceipt, error)
Get payment receipt
func (*Client) PaymentsGetPremiumGiftCodeOptions ¶
func (c *Client) PaymentsGetPremiumGiftCodeOptions(boostPeer InputPeer) ([]*PremiumGiftCodeOption, error)
Obtain a list of Telegram Premium giveaway/gift code options.
func (*Client) PaymentsGetResaleStarGifts ¶ added in v1.6.0
func (c *Client) PaymentsGetResaleStarGifts(params *PaymentsGetResaleStarGiftsParams) (*PaymentsResaleStarGifts, error)
Get collectible gifts of a specific type currently on resale
func (*Client) PaymentsGetSavedInfo ¶
func (c *Client) PaymentsGetSavedInfo() (*PaymentsSavedInfo, error)
Get saved payment information
func (*Client) PaymentsGetSavedStarGift ¶ added in v1.5.6
func (c *Client) PaymentsGetSavedStarGift(stargift []InputSavedStarGift) (*PaymentsSavedStarGifts, error)
Fetch info about specific gifts owned by a peer we control.
func (*Client) PaymentsGetSavedStarGifts ¶ added in v1.5.6
func (c *Client) PaymentsGetSavedStarGifts(params *PaymentsGetSavedStarGiftsParams) (*PaymentsSavedStarGifts, error)
Fetch the full list of gifts owned by a peer.
func (*Client) PaymentsGetStarGiftActiveAuctions ¶ added in v1.6.9
func (c *Client) PaymentsGetStarGiftActiveAuctions(hash int64) (PaymentsStarGiftActiveAuctions, error)
func (*Client) PaymentsGetStarGiftAuctionAcquiredGifts ¶ added in v1.6.9
func (c *Client) PaymentsGetStarGiftAuctionAcquiredGifts(giftID int64) (*PaymentsStarGiftAuctionAcquiredGifts, error)
func (*Client) PaymentsGetStarGiftAuctionState ¶ added in v1.6.9
func (c *Client) PaymentsGetStarGiftAuctionState(auction InputStarGiftAuction, version int32) (*PaymentsStarGiftAuctionState, error)
func (*Client) PaymentsGetStarGiftCollections ¶ added in v1.6.3
func (c *Client) PaymentsGetStarGiftCollections(peer InputPeer, hash int64) (PaymentsStarGiftCollections, error)
Fetches all star gift collections of a peer.
func (*Client) PaymentsGetStarGiftUpgradeAttributes ¶ added in v1.6.10
func (c *Client) PaymentsGetStarGiftUpgradeAttributes(giftID int64) (*PaymentsStarGiftUpgradeAttributes, error)
func (*Client) PaymentsGetStarGiftUpgradePreview ¶ added in v1.5.3
func (c *Client) PaymentsGetStarGiftUpgradePreview(giftID int64) (*PaymentsStarGiftUpgradePreview, error)
Obtain a preview of the possible attributes (chosen randomly) a gift can receive after upgrading it to a collectible gift
func (*Client) PaymentsGetStarGiftWithdrawalURL ¶ added in v1.5.6
func (c *Client) PaymentsGetStarGiftWithdrawalURL(stargift InputSavedStarGift, password InputCheckPasswordSRP) (*PaymentsStarGiftWithdrawalURL, error)
Convert a collectible gift to an NFT on the TON blockchain.
func (*Client) PaymentsGetStarGifts ¶
func (c *Client) PaymentsGetStarGifts(hash int32) (PaymentsStarGifts, error)
Get a list of available gifts
func (*Client) PaymentsGetStarsGiftOptions ¶
func (c *Client) PaymentsGetStarsGiftOptions(userID InputUser) ([]*StarsGiftOption, error)
Obtain a list of Telegram Stars gift options as starsGiftOption constructors.
func (*Client) PaymentsGetStarsGiveawayOptions ¶
func (c *Client) PaymentsGetStarsGiveawayOptions() ([]*StarsGiveawayOption, error)
Fetch a list of star giveaway options.
func (*Client) PaymentsGetStarsRevenueAdsAccountURL ¶
func (c *Client) PaymentsGetStarsRevenueAdsAccountURL(peer InputPeer) (*PaymentsStarsRevenueAdsAccountURL, error)
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`
func (*Client) PaymentsGetStarsRevenueStats ¶
func (c *Client) PaymentsGetStarsRevenueStats(dark, ton bool, peer InputPeer) (*PaymentsStarsRevenueStats, error)
Get Telegram Star revenue statistics.
func (*Client) PaymentsGetStarsRevenueWithdrawalURL ¶
func (c *Client) PaymentsGetStarsRevenueWithdrawalURL(ton bool, peer InputPeer, amount int64, password InputCheckPasswordSRP) (*PaymentsStarsRevenueWithdrawalURL, error)
Withdraw funds from a channel or bot's star balance.
func (*Client) PaymentsGetStarsStatus ¶
func (c *Client) PaymentsGetStarsStatus(ton bool, peer InputPeer) (*PaymentsStarsStatus, error)
Get the current Telegram Stars balance of the current account (with peer=inputPeerSelf), or the stars balance of the bot specified in `peer`.
func (*Client) PaymentsGetStarsSubscriptions ¶
func (c *Client) PaymentsGetStarsSubscriptions(missingBalance bool, peer InputPeer, offset string) (*PaymentsStarsStatus, error)
Obtain a list of active, expired or cancelled Telegram Star subscriptions.
func (*Client) PaymentsGetStarsTopupOptions ¶
func (c *Client) PaymentsGetStarsTopupOptions() ([]*StarsTopupOption, error)
Obtain a list of Telegram Stars topup options as starsTopupOption constructors.
func (*Client) PaymentsGetStarsTransactions ¶
func (c *Client) PaymentsGetStarsTransactions(params *PaymentsGetStarsTransactionsParams) (*PaymentsStarsStatus, error)
Fetch Telegram Stars transactions.
func (*Client) PaymentsGetStarsTransactionsByID ¶
func (c *Client) PaymentsGetStarsTransactionsByID(ton bool, peer InputPeer, id []*InputStarsTransaction) (*PaymentsStarsStatus, error)
Obtain info about Telegram Star transactions using specific transaction IDs.
func (*Client) PaymentsGetSuggestedStarRefBots ¶ added in v1.4.8
func (c *Client) PaymentsGetSuggestedStarRefBots(params *PaymentsGetSuggestedStarRefBotsParams) (*PaymentsSuggestedStarRefBots, error)
Obtain a list of suggested mini apps with available affiliate programs
func (*Client) PaymentsGetUniqueStarGift ¶ added in v1.5.6
func (c *Client) PaymentsGetUniqueStarGift(slug string) (*PaymentsUniqueStarGift, error)
Obtain info about a collectible gift using a slug obtained from a collectible gift link.
func (*Client) PaymentsGetUniqueStarGiftValueInfo ¶ added in v1.6.3
func (c *Client) PaymentsGetUniqueStarGiftValueInfo(slug string) (*PaymentsUniqueStarGiftValueInfo, error)
Get information about the value of a collectible gift.
func (*Client) PaymentsLaunchPrepaidGiveaway ¶
func (c *Client) PaymentsLaunchPrepaidGiveaway(peer InputPeer, giveawayID int64, purpose InputStorePaymentPurpose) (Updates, error)
Launch a prepaid giveaway.
func (*Client) PaymentsRefundStarsCharge ¶
Refund a Telegram Stars transaction
func (*Client) PaymentsReorderStarGiftCollections ¶ added in v1.6.3
Reorder the star gift collections on an owned peer's profile.
func (*Client) PaymentsResolveStarGiftOffer ¶ added in v1.6.10
func (*Client) PaymentsSaveStarGift ¶
func (c *Client) PaymentsSaveStarGift(unsave bool, stargift InputSavedStarGift) (bool, error)
Display or remove a received gift from our profile.
func (*Client) PaymentsSendPaymentForm ¶
func (c *Client) PaymentsSendPaymentForm(params *PaymentsSendPaymentFormParams) (PaymentsPaymentResult, error)
Send compiled payment form
func (*Client) PaymentsSendStarGiftOffer ¶ added in v1.6.10
func (c *Client) PaymentsSendStarGiftOffer(params *PaymentsSendStarGiftOfferParams) (Updates, error)
func (*Client) PaymentsSendStarsForm ¶
func (c *Client) PaymentsSendStarsForm(formID int64, invoice InputInvoice) (PaymentsPaymentResult, error)
Make a payment using Telegram Stars
func (*Client) PaymentsToggleChatStarGiftNotifications ¶ added in v1.5.6
func (c *Client) PaymentsToggleChatStarGiftNotifications(enabled bool, peer InputPeer) (bool, error)
Enables or disables the reception of notifications every time a gift is received by the specified channel, can only be invoked by admins with `post_messages` admin rights.
func (*Client) PaymentsToggleStarGiftsPinnedToTop ¶ added in v1.6.0
func (c *Client) PaymentsToggleStarGiftsPinnedToTop(peer InputPeer, stargift []InputSavedStarGift) (bool, error)
Pins a received gift on top of the profile of the user or owned channels by using payments.toggleStarGiftsPinnedToTop.
func (*Client) PaymentsTransferStarGift ¶ added in v1.5.3
func (c *Client) PaymentsTransferStarGift(stargift InputSavedStarGift, toID InputPeer) (Updates, error)
Transfer a collectible gift to another user or channel: can only be used if transfer is free (i.e. messageActionStarGiftUnique.`transfer_stars` is not set)
func (*Client) PaymentsUpdateStarGiftCollection ¶ added in v1.6.3
func (c *Client) PaymentsUpdateStarGiftCollection(params *PaymentsUpdateStarGiftCollectionParams) (*StarGiftCollection, error)
Add or remove gifts from a star gift collection, or rename the collection.
func (*Client) PaymentsUpdateStarGiftPrice ¶ added in v1.6.0
func (c *Client) PaymentsUpdateStarGiftPrice(stargift InputSavedStarGift, resellAmount StarsAmount) (Updates, error)
A collectible gift we own can be put up for sale on the gift marketplace with this method
func (*Client) PaymentsUpgradeStarGift ¶ added in v1.5.3
func (c *Client) PaymentsUpgradeStarGift(keepOriginalDetails bool, stargift InputSavedStarGift) (Updates, error)
Upgrade a gift to a collectible gift: can only be used if the upgrade was already paid by the gift sender
func (*Client) PaymentsValidateRequestedInfo ¶
func (c *Client) PaymentsValidateRequestedInfo(save bool, invoice InputInvoice, info *PaymentRequestedInfo) (*PaymentsValidatedRequestedInfo, error)
Submit requested order information for validation
func (*Client) PeerEquals ¶ added in v1.6.7
func (*Client) PhoneAcceptCall ¶
func (c *Client) PhoneAcceptCall(peer *InputPhoneCall, gB []byte, protocol *PhoneCallProtocol) (*PhonePhoneCall, error)
Accept incoming call
func (*Client) PhoneCheckGroupCall ¶
func (c *Client) PhoneCheckGroupCall(call InputGroupCall, sources []int32) ([]int32, error)
Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs. Returns an intersection of the source IDs specified in `sources`, and the source IDs currently being forwarded by the SFU.
func (*Client) PhoneConfirmCall ¶
func (c *Client) PhoneConfirmCall(peer *InputPhoneCall, gA []byte, keyFingerprint int64, protocol *PhoneCallProtocol) (*PhonePhoneCall, error)
Complete phone call E2E encryption key exchange
func (*Client) PhoneCreateConferenceCall ¶ added in v1.5.3
func (c *Client) PhoneCreateConferenceCall(params *PhoneCreateConferenceCallParams) (Updates, error)
Create and optionally join a new conference call.
func (*Client) PhoneCreateGroupCall ¶
func (c *Client) PhoneCreateGroupCall(params *PhoneCreateGroupCallParams) (Updates, error)
Create a group call or livestream
func (*Client) PhoneDeclineConferenceCallInvite ¶ added in v1.6.0
Declines a conference call invite.
func (*Client) PhoneDeleteConferenceCallParticipants ¶ added in v1.6.0
func (c *Client) PhoneDeleteConferenceCallParticipants(params *PhoneDeleteConferenceCallParticipantsParams) (Updates, error)
Remove participants from a conference call.
func (*Client) PhoneDeleteGroupCallMessages ¶ added in v1.6.9
func (*Client) PhoneDeleteGroupCallParticipantMessages ¶ added in v1.6.9
func (*Client) PhoneDiscardCall ¶
func (c *Client) PhoneDiscardCall(params *PhoneDiscardCallParams) (Updates, error)
Refuse or end running call
func (*Client) PhoneDiscardGroupCall ¶
func (c *Client) PhoneDiscardGroupCall(call InputGroupCall) (Updates, error)
Terminate a group call
func (*Client) PhoneEditGroupCallParticipant ¶
func (c *Client) PhoneEditGroupCallParticipant(params *PhoneEditGroupCallParticipantParams) (Updates, error)
Edit information about a given group call participant
func (*Client) PhoneEditGroupCallTitle ¶
func (c *Client) PhoneEditGroupCallTitle(call InputGroupCall, title string) (Updates, error)
Edit the title of a group call or livestream
func (*Client) PhoneExportGroupCallInvite ¶
func (c *Client) PhoneExportGroupCallInvite(canSelfUnmute bool, call InputGroupCall) (*PhoneExportedGroupCallInvite, error)
Get an invite link for a group call or livestream
func (*Client) PhoneGetCallConfig ¶
Get phone call configuration to be passed to libtgvoip's shared config
func (*Client) PhoneGetGroupCall ¶
func (c *Client) PhoneGetGroupCall(call InputGroupCall, limit int32) (*PhoneGroupCall, error)
Get info about a group call
func (*Client) PhoneGetGroupCallChainBlocks ¶ added in v1.6.0
func (c *Client) PhoneGetGroupCallChainBlocks(call InputGroupCall, subChainID, offset, limit int32) (Updates, error)
Fetch the blocks of a conference blockchain.
func (*Client) PhoneGetGroupCallJoinAs ¶
func (c *Client) PhoneGetGroupCallJoinAs(peer InputPeer) (*PhoneJoinAsPeers, error)
Get a list of peers that can be used to join a group call, presenting yourself as a specific user/channel.
func (*Client) PhoneGetGroupCallStars ¶ added in v1.6.9
func (c *Client) PhoneGetGroupCallStars(call InputGroupCall) (*PhoneGroupCallStars, error)
func (*Client) PhoneGetGroupCallStreamChannels ¶
func (c *Client) PhoneGetGroupCallStreamChannels(call InputGroupCall) (*PhoneGroupCallStreamChannels, error)
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. As usual, the media DC is preferred, if available.
func (*Client) PhoneGetGroupCallStreamRtmpURL ¶
func (c *Client) PhoneGetGroupCallStreamRtmpURL(liveStory bool, peer InputPeer, revoke bool) (*PhoneGroupCallStreamRtmpURL, error)
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 (*Client) PhoneGetGroupParticipants ¶
func (c *Client) PhoneGetGroupParticipants(call InputGroupCall, ids []InputPeer, sources []int32, offset string, limit int32) (*PhoneGroupParticipants, error)
Get group call participants
func (*Client) PhoneInviteConferenceCallParticipant ¶ added in v1.6.0
func (c *Client) PhoneInviteConferenceCallParticipant(video bool, call InputGroupCall, userID InputUser) (Updates, error)
Invite a user to a conference call.
func (*Client) PhoneInviteToGroupCall ¶
func (c *Client) PhoneInviteToGroupCall(call InputGroupCall, users []InputUser) (Updates, error)
Invite a set of users to a group call.
func (*Client) PhoneJoinGroupCall ¶
func (c *Client) PhoneJoinGroupCall(params *PhoneJoinGroupCallParams) (Updates, error)
Join a group call
func (*Client) PhoneJoinGroupCallPresentation ¶
func (c *Client) PhoneJoinGroupCallPresentation(call InputGroupCall, params *DataJson) (Updates, error)
Start screen sharing in a call
func (*Client) PhoneLeaveGroupCall ¶
func (c *Client) PhoneLeaveGroupCall(call InputGroupCall, source int32) (Updates, error)
Leave a group call
func (*Client) PhoneLeaveGroupCallPresentation ¶
func (c *Client) PhoneLeaveGroupCallPresentation(call InputGroupCall) (Updates, error)
Stop screen sharing in a group call
func (*Client) PhoneReceivedCall ¶
func (c *Client) PhoneReceivedCall(peer *InputPhoneCall) (bool, error)
Optional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended.
func (*Client) PhoneRequestCall ¶
func (c *Client) PhoneRequestCall(params *PhoneRequestCallParams) (*PhonePhoneCall, error)
Start a telegram phone call
func (*Client) PhoneSaveCallDebug ¶
func (c *Client) PhoneSaveCallDebug(peer *InputPhoneCall, debug *DataJson) (bool, error)
Send phone call debug data to server
func (*Client) PhoneSaveCallLog ¶
func (c *Client) PhoneSaveCallLog(peer *InputPhoneCall, file InputFile) (bool, error)
Save phone call debug information
func (*Client) PhoneSaveDefaultGroupCallJoinAs ¶
Set the default peer that will be used to join a group call in a specific dialog.
func (*Client) PhoneSaveDefaultSendAs ¶ added in v1.6.9
func (c *Client) PhoneSaveDefaultSendAs(call InputGroupCall, sendAs InputPeer) (bool, error)
func (*Client) PhoneSendConferenceCallBroadcast ¶ added in v1.6.0
func (c *Client) PhoneSendConferenceCallBroadcast(call InputGroupCall, block []byte) (Updates, error)
Broadcast a blockchain block to all members of a conference call
func (*Client) PhoneSendGroupCallEncryptedMessage ¶ added in v1.6.8
func (c *Client) PhoneSendGroupCallEncryptedMessage(call InputGroupCall, encryptedMessage []byte) (bool, error)
func (*Client) PhoneSendGroupCallMessage ¶ added in v1.6.8
func (c *Client) PhoneSendGroupCallMessage(params *PhoneSendGroupCallMessageParams) (Updates, error)
func (*Client) PhoneSendSignalingData ¶
func (c *Client) PhoneSendSignalingData(peer *InputPhoneCall, data []byte) (bool, error)
Send VoIP signaling data
func (*Client) PhoneSetCallRating ¶
func (c *Client) PhoneSetCallRating(userInitiative bool, peer *InputPhoneCall, rating int32, comment string) (Updates, error)
Rate a call, returns info about the rating message sent to the official VoIP bot.
func (*Client) PhoneStartScheduledGroupCall ¶
func (c *Client) PhoneStartScheduledGroupCall(call InputGroupCall) (Updates, error)
Start a scheduled group call.
func (*Client) PhoneToggleGroupCallRecord ¶
func (c *Client) PhoneToggleGroupCallRecord(params *PhoneToggleGroupCallRecordParams) (Updates, error)
Start or stop recording a group call: the recorded audio and video streams will be automatically sent to `Saved messages` (the chat with ourselves).
func (*Client) PhoneToggleGroupCallSettings ¶
func (c *Client) PhoneToggleGroupCallSettings(params *PhoneToggleGroupCallSettingsParams) (Updates, error)
Change group call settings
func (*Client) PhoneToggleGroupCallStartSubscription ¶
func (c *Client) PhoneToggleGroupCallStartSubscription(call InputGroupCall, subscribed bool) (Updates, error)
Subscribe or unsubscribe to a scheduled group call
func (*Client) PhotosDeletePhotos ¶
func (c *Client) PhotosDeletePhotos(id []InputPhoto) ([]int64, error)
Deletes profile photos. The method returns a list of successfully deleted photo IDs.
func (*Client) PhotosGetUserPhotos ¶
func (c *Client) PhotosGetUserPhotos(userID InputUser, offset int32, maxID int64, limit int32) (PhotosPhotos, error)
Returns the list of user photos.
func (*Client) PhotosUpdateProfilePhoto ¶
func (c *Client) PhotosUpdateProfilePhoto(fallback bool, bot InputUser, id InputPhoto) (*PhotosPhoto, error)
Installs a previously uploaded photo as a profile photo.
func (*Client) PhotosUploadContactProfilePhoto ¶
func (c *Client) PhotosUploadContactProfilePhoto(params *PhotosUploadContactProfilePhotoParams) (*PhotosPhoto, error)
Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.
func (*Client) PhotosUploadProfilePhoto ¶
func (c *Client) PhotosUploadProfilePhoto(params *PhotosUploadProfilePhotoParams) (*PhotosPhoto, error)
Updates current user profile photo.
func (*Client) PinMessage ¶
Pin pins a message. This method is a wrapper for messages.pinMessage.
func (*Client) PremiumApplyBoost ¶
func (c *Client) PremiumApplyBoost(slots []int32, peer InputPeer) (*PremiumMyBoosts, error)
Apply one or more boosts to a peer.
func (*Client) PremiumGetBoostsList ¶
func (c *Client) PremiumGetBoostsList(gifts bool, peer InputPeer, offset string, limit int32) (*PremiumBoostsList, error)
Obtains info about the boosts that were applied to a certain channel or supergroup (admins only)
func (*Client) PremiumGetBoostsStatus ¶
func (c *Client) PremiumGetBoostsStatus(peer InputPeer) (*PremiumBoostsStatus, error)
Gets the current number of boosts of a channel/supergroup.
func (*Client) PremiumGetMyBoosts ¶
func (c *Client) PremiumGetMyBoosts() (*PremiumMyBoosts, error)
Obtain which peers are we currently boosting, and how many boost slots we have left.
func (*Client) PremiumGetUserBoosts ¶
func (c *Client) PremiumGetUserBoosts(peer InputPeer, userID InputUser) (*PremiumBoostsList, error)
Returns the lists of boost that were applied to a channel/supergroup by a specific user (admins only)
func (*Client) QRLogin ¶
QRLogin initiates a QR code login and returns the QrToken containing the QR code and related information.
func (*Client) RemoveHandle ¶
func (*Client) RequestSecretChat ¶ added in v1.7.0
func (c *Client) RequestSecretChat(userID any) (*EncryptedChatObj, error)
RequestSecretChat requests a new secret chat with a user
func (*Client) ResolveMedia ¶ added in v1.6.10
func (c *Client) ResolveMedia(mediaFile any, attr *MediaMetadata) (InputMedia, error)
func (*Client) ResolveMultiMedia ¶ added in v1.6.10
func (c *Client) ResolveMultiMedia(m any, attrs *MediaMetadata) ([]*InputSingleMedia, error)
func (*Client) ResolvePeer ¶
ResolvePeer resolves a peer to a sendable peer, searches the cache if the peer is already resolved
func (*Client) ResolveUsername ¶
ResolveUsername resolves a username to a user or chat Peer
func (*Client) ScrapeAppConfig ¶
func (*Client) SecretChatManager ¶ added in v1.7.0
func (c *Client) SecretChatManager() *e2e.SecretChatManager
func (*Client) SendAction ¶
func (c *Client) SendAction(PeerID, Action any, topMsgID ...int32) (*ActionResult, error)
SendAction sends a chat action. This method is a wrapper for messages.setTyping.
func (*Client) SendAlbum ¶
func (c *Client) SendAlbum(peerID, Album any, opts ...*MediaOptions) ([]*NewMessage, error)
SendAlbum sends a media album. This method is a wrapper for messages.sendMultiMedia.
Params:
- peerID: ID of the peer to send the message to.
- Album: List of media to send.
- opts: Optional parameters.
Returns:
- A slice of pointers to NewMessage objects and an error if the message sending fails.
- If the messages are sent successfully, the returned NewMessage objects will contain information about the sent messages.
Note:
- If the caption in opts is a string, it will be parsed for entities based on the parse_mode in opts.
- If the caption in opts is a pointer to a NewMessage, its entities will be used instead.
- If the entities field in opts is not nil, it will override any entities parsed from the caption.
- If send_as in opts is not nil, the messages will be sent from the specified peer, otherwise they will be sent from the sender peer.
func (*Client) SendCode ¶
SendCode sends an authentication code to the specified phone number and returns the phone code hash.
func (*Client) SendDice ¶
func (c *Client) SendDice(peerID any, emoji string) (*NewMessage, error)
SendDice sends a special dice message. This method calls messages.sendMedia with a dice media.
func (*Client) SendGift ¶ added in v1.5.6
func (c *Client) SendGift(toPeer any, giftId int64, message ...string) (PaymentsPaymentResult, error)
Transfer a saved gift to another user (must be a unique gift)
func (*Client) SendMedia ¶
func (c *Client) SendMedia(peerID, Media any, opts ...*MediaOptions) (*NewMessage, error)
SendMedia sends a media message. This method is a wrapper for messages.sendMedia.
Params:
- peerID: ID of the peer to send the message to.
- Media: Media to send.
- opts: Optional parameters.
Returns:
- A pointer to a NewMessage object and an error if the message sending fails.
- If the message is sent successfully, the returned NewMessage object will contain information about the sent message.
Note:
- If the caption in opts is a string, it will be parsed for entities based on the parse_mode in opts.
- If the caption in opts is a pointer to a NewMessage, its entities will be used instead.
- If the entities field in opts is not nil, it will override any entities parsed from the caption.
- If send_as in opts is not nil, the message will be sent from the specified peer, otherwise it will be sent from the sender peer.
func (*Client) SendMessage ¶
func (c *Client) SendMessage(peerID, message any, opts ...*SendOptions) (*NewMessage, error)
SendMessage sends a message to a specified peer using the Telegram API method messages.sendMessage.
Parameters:
- peerID: ID of the peer to send the message to.
- message: The message to be sent. It can be a string, a media object, or a NewMessage.
- opts: Optional parameters that can be used to customize the message sending process.
Returns:
- A pointer to a NewMessage object containing information about the sent message.
- An error if the message sending fails.
Note: If the message parameter is a NewMessage or a pointer to a NewMessage, the function will extract the message text and entities from it. If the message parameter is a media object, the function will send the media as a separate message and return a pointer to a NewMessage object containing information about the sent media. If the message parameter is a string, the function will parse it for entities and send it as a text message.
func (*Client) SendNewGift ¶ added in v1.5.6
func (c *Client) SendNewGift(toPeer any, giftId int64, message ...string) (PaymentsPaymentResult, error)
Buy a gift for a user
func (*Client) SendPoll ¶
func (c *Client) SendPoll(peerID any, question string, options []string, opts ...*PollOptions) (*NewMessage, error)
func (*Client) SendReaction ¶
SendReaction sends a reaction to a message, which can be an emoji or a custom emoji.
func (*Client) SendReadAck ¶
func (c *Client) SendReadAck(PeerID any, MaxID ...int32) (*MessagesAffectedMessages, error)
SendReadAck sends a read acknowledgement. This method is a wrapper for messages.readHistory.
func (*Client) SendSecretChatLayerNotification ¶ added in v1.7.0
func (c *Client) SendSecretChatLayerNotification(chatID int32) (MessagesSentEncryptedMessage, error)
SendSecretChatLayerNotification sends a layer notification to the secret chat
func (*Client) SendSecretFile ¶ added in v1.7.0
func (c *Client) SendSecretFile(chatID int32, filePath string, opts *SecretFileOptions) error
SendSecretFile sends an encrypted file to a secret chat The file is encrypted with a one-time key that is sent in the message body
func (*Client) SendSecretMessage ¶ added in v1.7.0
func (c *Client) SendSecretMessage(chatID int32, message string, ttl int32) (MessagesSentEncryptedMessage, error)
SendSecretMessage sends an encrypted message in a secret chat
func (*Client) SetAppHash ¶
func (*Client) SetBotCommands ¶
func (c *Client) SetBotCommands(commands []*BotCommand, scope *BotCommandScope, languageCode ...string) (bool, error)
func (*Client) SetBotDefaultPrivileges ¶
func (c *Client) SetBotDefaultPrivileges(privileges *ChatAdminRights, ForChannels ...bool) (resp bool, err error)
func (*Client) SetChatMenuButton ¶
func (c *Client) SetChatMenuButton(userID int64, button *BotMenuButton) (bool, error)
func (*Client) SetCommandPrefixes ¶ added in v1.6.7
SetCommandPrefixes sets the command prefixes for the client
func (*Client) SetEmojiStatus ¶
SetEmojiStatus sets the emoji status of the user
Params: - emoji: The emoji status to set
func (*Client) SetLifecycleHooks ¶ added in v1.7.0
func (c *Client) SetLifecycleHooks(hooks *LifecycleHooks)
SetLifecycleHooks sets the lifecycle hooks for all handlers
func (*Client) SetLogLevel ¶
setLogLevel sets the log level for all loggers
func (*Client) SetParseMode ¶ added in v1.4.4
SetParseMode sets the parse mode for the client
func (*Client) SmsjobsFinishJob ¶
Finish an SMS job (official clients only).
func (*Client) SmsjobsGetSmsJob ¶
Get info about an SMS job (official clients only).
func (*Client) SmsjobsGetStatus ¶
func (c *Client) SmsjobsGetStatus() (*SmsjobsStatus, error)
Get SMS jobs status (official clients only).
func (*Client) SmsjobsIsEligibleToJoin ¶
func (c *Client) SmsjobsIsEligibleToJoin() (*SmsjobsEligibleToJoin, error)
Check if we can process SMS jobs (official clients only).
func (*Client) SmsjobsJoin ¶
Enable SMS jobs (official clients only).
func (*Client) SmsjobsLeave ¶
Disable SMS jobs (official clients only).
func (*Client) SmsjobsUpdateSettings ¶
Update SMS job settings (official clients only).
func (*Client) StartGroupCallMedia ¶
func (*Client) StatsGetBroadcastStats ¶
func (c *Client) StatsGetBroadcastStats(dark bool, channel InputChannel) (*StatsBroadcastStats, error)
Get channel statistics
func (*Client) StatsGetMegagroupStats ¶
func (c *Client) StatsGetMegagroupStats(dark bool, channel InputChannel) (*StatsMegagroupStats, error)
Get supergroup statistics
func (*Client) StatsGetMessagePublicForwards ¶
func (c *Client) StatsGetMessagePublicForwards(channel InputChannel, msgID int32, offset string, limit int32) (*StatsPublicForwards, error)
Obtains a list of messages, indicating to which other public channels was a channel message forwarded. Will return a list of messages with `peer_id` equal to the public channel to which this message was forwarded.
func (*Client) StatsGetMessageStats ¶
func (c *Client) StatsGetMessageStats(dark bool, channel InputChannel, msgID int32) (*StatsMessageStats, error)
Get message statistics
func (*Client) StatsGetStoryPublicForwards ¶
func (c *Client) StatsGetStoryPublicForwards(peer InputPeer, id int32, offset string, limit int32) (*StatsPublicForwards, error)
Obtain forwards of a story as a message to public chats and reposts by public channels.
func (*Client) StatsGetStoryStats ¶
Get statistics for a certain story.
func (*Client) StatsLoadAsyncGraph ¶
func (c *Client) StatsLoadAsyncGraph(token string, x int64) (StatsGraph, error)
Load channel statistics graph asynchronously
func (*Client) StickersAddStickerToSet ¶
func (c *Client) StickersAddStickerToSet(stickerset InputStickerSet, sticker *InputStickerSetItem) (MessagesStickerSet, error)
Add a sticker to a stickerset. The sticker set must have been created by the current user/bot.
func (*Client) StickersChangeSticker ¶
func (c *Client) StickersChangeSticker(sticker InputDocument, emoji string, maskCoords *MaskCoords, keywords string) (MessagesStickerSet, error)
Update the keywords, emojis or mask coordinates of a sticker.
func (*Client) StickersChangeStickerPosition ¶
func (c *Client) StickersChangeStickerPosition(sticker InputDocument, position int32) (MessagesStickerSet, error)
Changes the absolute position of a sticker in the set to which it belongs. The sticker set must have been created by the current user/bot.
func (*Client) StickersCheckShortName ¶
Check whether the given short name is available
func (*Client) StickersCreateStickerSet ¶
func (c *Client) StickersCreateStickerSet(params *StickersCreateStickerSetParams) (MessagesStickerSet, error)
Create a stickerset.
func (*Client) StickersDeleteStickerSet ¶
func (c *Client) StickersDeleteStickerSet(stickerset InputStickerSet) (bool, error)
Deletes a stickerset we created.
func (*Client) StickersRemoveStickerFromSet ¶
func (c *Client) StickersRemoveStickerFromSet(sticker InputDocument) (MessagesStickerSet, error)
Remove a sticker from the set where it belongs. The sticker set must have been created by the current user/bot.
func (*Client) StickersRenameStickerSet ¶
func (c *Client) StickersRenameStickerSet(stickerset InputStickerSet, title string) (MessagesStickerSet, error)
Renames a stickerset.
func (*Client) StickersReplaceSticker ¶
func (c *Client) StickersReplaceSticker(sticker InputDocument, newSticker *InputStickerSetItem) (MessagesStickerSet, error)
Replace a sticker in a stickerset.
func (*Client) StickersSetStickerSetThumb ¶
func (c *Client) StickersSetStickerSetThumb(stickerset InputStickerSet, thumb InputDocument, thumbDocumentID int64) (MessagesStickerSet, error)
Set stickerset thumbnail
func (*Client) StickersSuggestShortName ¶
func (c *Client) StickersSuggestShortName(title string) (*StickersSuggestedShortName, error)
Suggests a short name for a given stickerpack name
func (*Client) StoriesActivateStealthMode ¶
Activates stories stealth mode
func (*Client) StoriesCanSendStory ¶
func (c *Client) StoriesCanSendStory(peer InputPeer) (*StoriesCanSendStoryCount, error)
Check whether we can post stories as the specified peer.
func (*Client) StoriesCreateAlbum ¶ added in v1.6.3
func (c *Client) StoriesCreateAlbum(peer InputPeer, title string, stories []int32) (*StoryAlbum, error)
Creates a story album.
func (*Client) StoriesDeleteAlbum ¶ added in v1.6.3
Delete a story album.
func (*Client) StoriesDeleteStories ¶
Deletes some posted stories.
func (*Client) StoriesEditStory ¶
func (c *Client) StoriesEditStory(params *StoriesEditStoryParams) (Updates, error)
Edit an uploaded story
func (*Client) StoriesExportStoryLink ¶
func (c *Client) StoriesExportStoryLink(peer InputPeer, id int32) (*ExportedStoryLink, error)
Generate a story deep link for a specific story
func (*Client) StoriesGetAlbumStories ¶ added in v1.6.3
func (c *Client) StoriesGetAlbumStories(peer InputPeer, albumID, offset, limit int32) (*StoriesStories, error)
Get stories in a story album.
func (*Client) StoriesGetAlbums ¶ added in v1.6.3
func (c *Client) StoriesGetAlbums(peer InputPeer, hash int64) (StoriesAlbums, error)
Get story albums created by a peer.
func (*Client) StoriesGetAllReadPeerStories ¶
Obtain the latest read story ID for all peers when first logging in, returned as a list of updateReadStories updates
func (*Client) StoriesGetAllStories ¶
func (c *Client) StoriesGetAllStories(next, hidden bool, state string) (StoriesAllStories, error)
Fetch the List of active (or active and hidden) stories
func (*Client) StoriesGetChatsToSend ¶
func (c *Client) StoriesGetChatsToSend() (MessagesChats, error)
Obtain a list of channels where the user can post stories
func (*Client) StoriesGetPeerMaxIDs ¶
func (c *Client) StoriesGetPeerMaxIDs(id []InputPeer) ([]*RecentStory, error)
Get the IDs of the maximum read stories for a set of peers.
func (*Client) StoriesGetPeerStories ¶
func (c *Client) StoriesGetPeerStories(peer InputPeer) (*StoriesPeerStories, error)
Fetch the full active story list of a specific peer.
func (*Client) StoriesGetPinnedStories ¶
func (c *Client) StoriesGetPinnedStories(peer InputPeer, offsetID, limit int32) (*StoriesStories, error)
Fetch the stories pinned on a peer's profile.
func (*Client) StoriesGetStoriesArchive ¶
func (c *Client) StoriesGetStoriesArchive(peer InputPeer, offsetID, limit int32) (*StoriesStories, error)
Fetch the story archive of a peer we control.
func (*Client) StoriesGetStoriesByID ¶
func (c *Client) StoriesGetStoriesByID(peer InputPeer, id []int32) (*StoriesStories, error)
Obtain full info about a set of stories by their IDs.
func (*Client) StoriesGetStoriesViews ¶
func (c *Client) StoriesGetStoriesViews(peer InputPeer, id []int32) (*StoriesStoryViews, error)
Obtain info about the view count, forward count, reactions and recent viewers of one or more stories.
func (*Client) StoriesGetStoryReactionsList ¶
func (c *Client) StoriesGetStoryReactionsList(params *StoriesGetStoryReactionsListParams) (*StoriesStoryReactionsList, error)
Get the reaction and interaction list of a story posted to a channel, along with the sender of each reaction.
func (*Client) StoriesGetStoryViewsList ¶
func (c *Client) StoriesGetStoryViewsList(params *StoriesGetStoryViewsListParams) (*StoriesStoryViewsList, error)
Obtain the list of users that have viewed a specific story we posted
func (*Client) StoriesIncrementStoryViews ¶
Increment the view counter of one or more stories.
func (*Client) StoriesReadStories ¶
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 (*Client) StoriesReorderAlbums ¶ added in v1.6.3
Reorder story albums on a profile.
func (*Client) StoriesReport ¶
func (c *Client) StoriesReport(peer InputPeer, id []int32, option []byte, message string) (ReportResult, error)
Report a story.
func (*Client) StoriesSearchPosts ¶
func (c *Client) StoriesSearchPosts(params *StoriesSearchPostsParams) (*StoriesFoundStories, error)
Globally search for stories using a hashtag or a location media area
func (*Client) StoriesSendReaction ¶
func (c *Client) StoriesSendReaction(addToRecent bool, peer InputPeer, storyID int32, reaction Reaction) (Updates, error)
React to a story.
func (*Client) StoriesSendStory ¶
func (c *Client) StoriesSendStory(params *StoriesSendStoryParams) (Updates, error)
Uploads a Telegram Story.
func (*Client) StoriesStartLive ¶ added in v1.6.9
func (c *Client) StoriesStartLive(params *StoriesStartLiveParams) (Updates, error)
func (*Client) StoriesToggleAllStoriesHidden ¶
Hide the active stories of a specific peer, preventing them from being displayed on the action bar on the homescreen.
func (*Client) StoriesTogglePeerStoriesHidden ¶
Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen
func (*Client) StoriesTogglePinned ¶
Pin or unpin one or more stories
func (*Client) StoriesTogglePinnedToTop ¶
Pin some stories to the top of the profile
func (*Client) StoriesUpdateAlbum ¶ added in v1.6.3
func (c *Client) StoriesUpdateAlbum(params *StoriesUpdateAlbumParams) (*StoryAlbum, error)
Rename a story albums, or add, delete or reorder stories in it.
func (*Client) ToRpcError ¶ added in v1.5.7
func (*Client) TransferChatOwnership ¶
TransferChatOwnership transfers the ownership of a chat to another user
func (*Client) Try ¶ added in v1.6.9
Try returns the object and ignores the error. Use when you want to safely ignore errors.
func (*Client) UnpinMessage ¶
UnpinMessage unpins a message.
func (*Client) UpdatesGetChannelDifference ¶
func (c *Client) UpdatesGetChannelDifference(params *UpdatesGetChannelDifferenceParams) (UpdatesChannelDifference, error)
Returns the difference between the current state of updates of a certain channel and transmitted.
func (*Client) UpdatesGetDifference ¶
func (c *Client) UpdatesGetDifference(params *UpdatesGetDifferenceParams) (UpdatesDifference, error)
Get new updates.
func (*Client) UpdatesGetState ¶
func (c *Client) UpdatesGetState() (*UpdatesState, error)
Returns a current state of updates.
func (*Client) UploadFile ¶
func (c *Client) UploadFile(src any, Opts ...*UploadOptions) (InputFile, error)
func (*Client) UploadGetCdnFile ¶
func (c *Client) UploadGetCdnFile(fileToken []byte, offset int64, limit int32) (UploadCdnFile, error)
Download a CDN file.
func (*Client) UploadGetCdnFileHashes ¶
Get SHA256 hashes for verifying downloaded CDN files
func (*Client) UploadGetFile ¶
func (c *Client) UploadGetFile(params *UploadGetFileParams) (UploadFile, error)
Returns content of a whole file or its part.
func (*Client) UploadGetFileHashes ¶
func (c *Client) UploadGetFileHashes(location InputFileLocation, offset int64) ([]*FileHash, error)
Get SHA256 hashes for verifying downloaded files
func (*Client) UploadGetWebFile ¶
func (c *Client) UploadGetWebFile(location InputWebFileLocation, offset, limit int32) (*UploadWebFile, error)
Returns content of a web file, by proxying the request through telegram, see the webfile docs for more info.
func (*Client) UploadReuploadCdnFile ¶
Request a reupload of a certain file to a CDN DC.
func (*Client) UploadSaveBigFilePart ¶
func (c *Client) UploadSaveBigFilePart(fileID int64, filePart, fileTotalParts int32, bytes []byte) (bool, error)
Saves a part of a large file (over 10 MB in size) to be later passed to one of the methods.
func (*Client) UploadSaveFilePart ¶
Saves a part of file for further sending to one of the methods.
func (*Client) UsersGetFullUser ¶
func (c *Client) UsersGetFullUser(id InputUser) (*UsersUserFull, error)
Returns extended user info by ID.
func (*Client) UsersGetRequirementsToContact ¶ added in v1.6.0
func (c *Client) UsersGetRequirementsToContact(id []InputUser) ([]RequirementToContact, error)
Check whether we can write to the specified users, used to implement bulk checks for Premium-only messages and paid messages.
func (*Client) UsersGetSavedMusic ¶ added in v1.6.3
func (c *Client) UsersGetSavedMusic(id InputUser, offset, limit int32, hash int64) (UsersSavedMusic, error)
Get songs pinned to the user's profile
func (*Client) UsersGetSavedMusicByID ¶ added in v1.6.3
func (c *Client) UsersGetSavedMusicByID(id InputUser, documents []InputDocument) (UsersSavedMusic, error)
Check if the passed songs are still pinned to the user's profile, or refresh the file references of songs pinned on a user's profile
func (*Client) UsersGetUsers ¶
Returns basic user info according to their identifiers.
func (*Client) UsersSetSecureValueErrors ¶
func (c *Client) UsersSetSecureValueErrors(id InputUser, errorsw []SecureValueError) (bool, error)
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 (*Client) UsersSuggestBirthday ¶ added in v1.6.3
type ClientConfig ¶
type ClientConfig struct {
AppID int32 // Telegram API ID from my.telegram.org
AppHash string // Telegram API Hash from my.telegram.org
DeviceConfig DeviceConfig // Device and app identification settings
Session string // Path to session file for persistent auth
StringSession string // Base64 encoded session string (alternative to file)
SessionName string // Identifier for this session (used in log prefixes)
SessionAESKey string // AES-256 key for encrypting session file
ParseMode string // Default message parse mode: "HTML" or "Markdown"
MemorySession bool // Keep session in memory only, don't persist to disk
DataCenter int // Initial DC to connect to (1-5, default: 4)
IpAddr string // Custom DC IP address (overrides DataCenter)
PublicKeys []*rsa.PublicKey // RSA public keys for server verification
NoUpdates bool // Disable update handling (bot-only mode)
DisableCache bool // Disable peer/chat caching
TestMode bool // Connect to Telegram test servers
LogLevel LogLevel // Logging verbosity (Trace, Debug, Info, Warn, Error)
Logger Logger // Custom logger implementation
Proxy Proxy // Proxy configuration (SOCKS5, HTTP, MTProxy)
LocalAddr string // Local network interface to bind (IP:port)
ForceIPv6 bool // Prefer IPv6 connections to Telegram
NoPreconnect bool // Delay connection until Connect() is called
Cache *CACHE // Custom cache instance
CacheSenders bool // Cache exported senders for file operations
TransportMode string // Wire protocol: "Abridged", "Intermediate", "Full", "PaddedIntermediate"
SleepThresholdMs int // Auto-sleep threshold for flood wait (ms)
AlbumWaitTime int64 // Time to wait for grouped album messages (ms)
CommandPrefixes string // Bot command prefixes (default: "/!")
FloodHandler func(err error) bool // Called on FLOOD_WAIT; return true to retry after wait
ErrorHandler func(err error) bool // Called on request errors; return true to retry
Timeout int // TCP connection timeout in seconds (default: 60)
ReqTimeout int // RPC request timeout in seconds (default: 60)
UseWebSocket bool // Use WebSocket transport instead of TCP
UseWebSocketTLS bool // Use secure WebSocket (wss://)
EnablePFS bool // Enable Perfect Forward Secrecy with temp auth keys
}
type ClientConfigBuilder ¶ added in v1.6.0
type ClientConfigBuilder struct {
// contains filtered or unexported fields
}
ClientConfigBuilder
func NewClientConfigBuilder ¶ added in v1.6.0
func NewClientConfigBuilder(appID int32, appHash string) *ClientConfigBuilder
func (*ClientConfigBuilder) Build ¶ added in v1.6.0
func (b *ClientConfigBuilder) Build() ClientConfig
func (*ClientConfigBuilder) WithCache ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithCache(cache *CACHE) *ClientConfigBuilder
func (*ClientConfigBuilder) WithCacheSenders ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithCacheSenders() *ClientConfigBuilder
func (*ClientConfigBuilder) WithDataCenter ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithDataCenter(dc int) *ClientConfigBuilder
func (*ClientConfigBuilder) WithDeviceConfig ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithDeviceConfig(deviceModel, systemVersion, appVersion, langCode, sysLangCode, langPack string) *ClientConfigBuilder
func (*ClientConfigBuilder) WithDisableCache ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithDisableCache() *ClientConfigBuilder
func (*ClientConfigBuilder) WithErrorHandler ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithErrorHandler(handler func(err error) bool) *ClientConfigBuilder
func (*ClientConfigBuilder) WithFloodHandler ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithFloodHandler(handler func(err error) bool) *ClientConfigBuilder
func (*ClientConfigBuilder) WithIpAddr ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithIpAddr(ipAddr string) *ClientConfigBuilder
func (*ClientConfigBuilder) WithLocalAddr ¶ added in v1.6.3
func (b *ClientConfigBuilder) WithLocalAddr(localAddr string) *ClientConfigBuilder
func (*ClientConfigBuilder) WithLogLevel ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithLogLevel(level LogLevel) *ClientConfigBuilder
func (*ClientConfigBuilder) WithLogger ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithLogger(logger Logger) *ClientConfigBuilder
func (*ClientConfigBuilder) WithMemorySession ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithMemorySession() *ClientConfigBuilder
func (*ClientConfigBuilder) WithNoUpdates ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithNoUpdates() *ClientConfigBuilder
func (*ClientConfigBuilder) WithParseMode ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithParseMode(parseMode string) *ClientConfigBuilder
func (*ClientConfigBuilder) WithProxy ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithProxy(proxy Proxy) *ClientConfigBuilder
func (*ClientConfigBuilder) WithPublicKeys ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithPublicKeys(publicKeys []*rsa.PublicKey) *ClientConfigBuilder
func (*ClientConfigBuilder) WithReqTimeout ¶ added in v1.6.3
func (b *ClientConfigBuilder) WithReqTimeout(reqTimeout int) *ClientConfigBuilder
func (*ClientConfigBuilder) WithSession ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithSession(session string, sessionAESKey ...string) *ClientConfigBuilder
func (*ClientConfigBuilder) WithSessionName ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithSessionName(name string) *ClientConfigBuilder
func (*ClientConfigBuilder) WithSleepThresholdMs ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithSleepThresholdMs(threshold int) *ClientConfigBuilder
func (*ClientConfigBuilder) WithStringSession ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithStringSession(stringSession string) *ClientConfigBuilder
func (*ClientConfigBuilder) WithTestMode ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithTestMode() *ClientConfigBuilder
func (*ClientConfigBuilder) WithTimeout ¶ added in v1.6.3
func (b *ClientConfigBuilder) WithTimeout(timeout int) *ClientConfigBuilder
func (*ClientConfigBuilder) WithTransportMode ¶ added in v1.6.0
func (b *ClientConfigBuilder) WithTransportMode(mode string) *ClientConfigBuilder
type CodeSettings ¶
type CodeSettings struct {
AllowFlashcall bool `tl:"flag:0,encoded_in_bitflags"`
CurrentNumber bool `tl:"flag:1,encoded_in_bitflags"`
AllowAppHash bool `tl:"flag:4,encoded_in_bitflags"`
AllowMissedCall bool `tl:"flag:5,encoded_in_bitflags"`
AllowFirebase bool `tl:"flag:7,encoded_in_bitflags"`
UnknownNumber bool `tl:"flag:9,encoded_in_bitflags"`
LogoutTokens [][]byte `tl:"flag:6"`
Token string `tl:"flag:8"`
AppSandbox bool `tl:"flag:8"`
}
Settings used by telegram servers for sending the confirm code.
func (*CodeSettings) CRC ¶
func (*CodeSettings) CRC() uint32
func (*CodeSettings) FlagIndex ¶
func (*CodeSettings) FlagIndex() int
type Config ¶
type Config struct {
DefaultP2PContacts bool `tl:"flag:3,encoded_in_bitflags"`
PreloadFeaturedStickers bool `tl:"flag:4,encoded_in_bitflags"`
RevokePmInbox bool `tl:"flag:6,encoded_in_bitflags"`
BlockedMode bool `tl:"flag:8,encoded_in_bitflags"`
ForceTryIpv6 bool `tl:"flag:14,encoded_in_bitflags"`
Date int32
Expires int32
TestMode bool
ThisDc int32
DcOptions []*DcOption
DcTxtDomainName string
ChatSizeMax int32
MegagroupSizeMax int32
ForwardedCountMax int32
OnlineUpdatePeriodMs int32
OfflineBlurTimeoutMs int32
OfflineIdleTimeoutMs int32
OnlineCloudTimeoutMs int32
NotifyCloudDelayMs int32
NotifyDefaultDelayMs int32
PushChatPeriodMs int32
PushChatLimit int32
EditTimeLimit int32
RevokeTimeLimit int32
RevokePmTimeLimit int32
RatingEDecay int32
StickersRecentLimit int32
ChannelsReadMediaPeriod int32
TmpSessions int32 `tl:"flag:0"`
CallReceiveTimeoutMs int32
CallRingTimeoutMs int32
CallConnectTimeoutMs int32
CallPacketTimeoutMs int32
MeURLPrefix string
AutoupdateURLPrefix string `tl:"flag:7"`
GifSearchUsername string `tl:"flag:9"`
VenueSearchUsername string `tl:"flag:10"`
ImgSearchUsername string `tl:"flag:11"`
StaticMapsProvider string `tl:"flag:12"`
CaptionLengthMax int32
MessageLengthMax int32
WebfileDcID int32
SuggestedLangCode string `tl:"flag:2"`
LangPackVersion int32 `tl:"flag:2"`
BaseLangPackVersion int32 `tl:"flag:2"`
ReactionsDefault Reaction `tl:"flag:15"`
AutologinToken string `tl:"flag:16"`
}
Current configuration
type ConnectedBot ¶
type ConnectedBot struct {
BotID int64
Recipients *BusinessBotRecipients
Rights *BusinessBotRights
}
Contains info about a connected business bot.
func (*ConnectedBot) CRC ¶
func (*ConnectedBot) CRC() uint32
type ConnectedBotStarRef ¶ added in v1.4.4
type ConnectedBotStarRef struct {
Revoked bool `tl:"flag:1,encoded_in_bitflags"`
URL string
Date int32
BotID int64
CommissionPermille int32
DurationMonths int32 `tl:"flag:0"`
Participants int64
Revenue int64
}
Info about an active affiliate program we have with a Mini App
func (*ConnectedBotStarRef) CRC ¶ added in v1.4.4
func (*ConnectedBotStarRef) CRC() uint32
func (*ConnectedBotStarRef) FlagIndex ¶ added in v1.4.4
func (*ConnectedBotStarRef) FlagIndex() int
type ContactBirthday ¶
Birthday information of a contact.
func (*ContactBirthday) CRC ¶
func (*ContactBirthday) CRC() uint32
type ContactStatus ¶
type ContactStatus struct {
UserID int64
Status UserStatus
}
Contact status: online / offline.
func (*ContactStatus) CRC ¶
func (*ContactStatus) CRC() uint32
type ContactsAcceptContactParams ¶
type ContactsAcceptContactParams struct {
ID InputUser
}
func (*ContactsAcceptContactParams) CRC ¶
func (*ContactsAcceptContactParams) CRC() uint32
type ContactsAddContactParams ¶
type ContactsAddContactParams struct {
AddPhonePrivacyException bool `tl:"flag:0,encoded_in_bitflags"`
ID InputUser
FirstName string
LastName string
Phone string
Note *TextWithEntities `tl:"flag:1"`
}
func (*ContactsAddContactParams) CRC ¶
func (*ContactsAddContactParams) CRC() uint32
func (*ContactsAddContactParams) FlagIndex ¶
func (*ContactsAddContactParams) FlagIndex() int
type ContactsBlockFromRepliesParams ¶
type ContactsBlockFromRepliesParams struct {
DeleteMessage bool `tl:"flag:0,encoded_in_bitflags"`
DeleteHistory bool `tl:"flag:1,encoded_in_bitflags"`
ReportSpam bool `tl:"flag:2,encoded_in_bitflags"`
MsgID int32
}
func (*ContactsBlockFromRepliesParams) CRC ¶
func (*ContactsBlockFromRepliesParams) CRC() uint32
func (*ContactsBlockFromRepliesParams) FlagIndex ¶
func (*ContactsBlockFromRepliesParams) FlagIndex() int
type ContactsBlockParams ¶
type ContactsBlockParams struct {
MyStoriesFrom bool `tl:"flag:0,encoded_in_bitflags"`
ID InputPeer
}
func (*ContactsBlockParams) CRC ¶
func (*ContactsBlockParams) CRC() uint32
func (*ContactsBlockParams) FlagIndex ¶
func (*ContactsBlockParams) FlagIndex() int
type ContactsBlocked ¶
type ContactsBlockedObj ¶
type ContactsBlockedObj struct {
Blocked []*PeerBlocked // List of blocked users
Chats []Chat // Blocked chats
Users []User // List of users
}
Full list of blocked users.
func (*ContactsBlockedObj) CRC ¶
func (*ContactsBlockedObj) CRC() uint32
func (*ContactsBlockedObj) ImplementsContactsBlocked ¶
func (*ContactsBlockedObj) ImplementsContactsBlocked()
type ContactsBlockedSlice ¶
type ContactsBlockedSlice struct {
Count int32 // Total number of elements in the list
Blocked []*PeerBlocked // List of blocked users
Chats []Chat // Blocked chats
Users []User // List of users
}
Incomplete list of blocked users.
func (*ContactsBlockedSlice) CRC ¶
func (*ContactsBlockedSlice) CRC() uint32
func (*ContactsBlockedSlice) ImplementsContactsBlocked ¶
func (*ContactsBlockedSlice) ImplementsContactsBlocked()
type ContactsContactBirthdays ¶
type ContactsContactBirthdays struct {
Contacts []*ContactBirthday
Users []User
}
Birthday information of our contacts.
func (*ContactsContactBirthdays) CRC ¶
func (*ContactsContactBirthdays) CRC() uint32
type ContactsContacts ¶
type ContactsContactsNotModified ¶
type ContactsContactsNotModified struct{}
Contact list on the server is the same as the list on the client.
func (*ContactsContactsNotModified) CRC ¶
func (*ContactsContactsNotModified) CRC() uint32
func (*ContactsContactsNotModified) ImplementsContactsContacts ¶
func (*ContactsContactsNotModified) ImplementsContactsContacts()
type ContactsContactsObj ¶
type ContactsContactsObj struct {
Contacts []*Contact // Contact list
SavedCount int32 // Number of contacts that were saved successfully
Users []User // User list
}
The current user's contact list and info on users.
func (*ContactsContactsObj) CRC ¶
func (*ContactsContactsObj) CRC() uint32
func (*ContactsContactsObj) ImplementsContactsContacts ¶
func (*ContactsContactsObj) ImplementsContactsContacts()
type ContactsDeleteByPhonesParams ¶
type ContactsDeleteByPhonesParams struct {
Phones []string
}
func (*ContactsDeleteByPhonesParams) CRC ¶
func (*ContactsDeleteByPhonesParams) CRC() uint32
type ContactsDeleteContactsParams ¶
type ContactsDeleteContactsParams struct {
ID []InputUser
}
func (*ContactsDeleteContactsParams) CRC ¶
func (*ContactsDeleteContactsParams) CRC() uint32
type ContactsEditCloseFriendsParams ¶
type ContactsEditCloseFriendsParams struct {
ID []int64
}
func (*ContactsEditCloseFriendsParams) CRC ¶
func (*ContactsEditCloseFriendsParams) CRC() uint32
type ContactsExportContactTokenParams ¶
type ContactsExportContactTokenParams struct{}
func (*ContactsExportContactTokenParams) CRC ¶
func (*ContactsExportContactTokenParams) CRC() uint32
type ContactsFound ¶
Users found by name substring and auxiliary data.
func (*ContactsFound) CRC ¶
func (*ContactsFound) CRC() uint32
type ContactsGetBirthdaysParams ¶
type ContactsGetBirthdaysParams struct{}
func (*ContactsGetBirthdaysParams) CRC ¶
func (*ContactsGetBirthdaysParams) CRC() uint32
type ContactsGetBlockedParams ¶
type ContactsGetBlockedParams struct {
MyStoriesFrom bool `tl:"flag:0,encoded_in_bitflags"`
Offset int32
Limit int32
}
func (*ContactsGetBlockedParams) CRC ¶
func (*ContactsGetBlockedParams) CRC() uint32
func (*ContactsGetBlockedParams) FlagIndex ¶
func (*ContactsGetBlockedParams) FlagIndex() int
type ContactsGetContactIDsParams ¶
type ContactsGetContactIDsParams struct {
Hash int64
}
func (*ContactsGetContactIDsParams) CRC ¶
func (*ContactsGetContactIDsParams) CRC() uint32
type ContactsGetContactsParams ¶
type ContactsGetContactsParams struct {
Hash int64
}
func (*ContactsGetContactsParams) CRC ¶
func (*ContactsGetContactsParams) CRC() uint32
type ContactsGetLocatedParams ¶
type ContactsGetLocatedParams struct {
Background bool `tl:"flag:1,encoded_in_bitflags"`
GeoPoint InputGeoPoint
SelfExpires int32 `tl:"flag:0"`
}
func (*ContactsGetLocatedParams) CRC ¶
func (*ContactsGetLocatedParams) CRC() uint32
func (*ContactsGetLocatedParams) FlagIndex ¶
func (*ContactsGetLocatedParams) FlagIndex() int
type ContactsGetSavedParams ¶
type ContactsGetSavedParams struct{}
func (*ContactsGetSavedParams) CRC ¶
func (*ContactsGetSavedParams) CRC() uint32
type ContactsGetSponsoredPeersParams ¶ added in v1.6.0
type ContactsGetSponsoredPeersParams struct {
Q string
}
func (*ContactsGetSponsoredPeersParams) CRC ¶ added in v1.6.0
func (*ContactsGetSponsoredPeersParams) CRC() uint32
type ContactsGetStatusesParams ¶
type ContactsGetStatusesParams struct{}
func (*ContactsGetStatusesParams) CRC ¶
func (*ContactsGetStatusesParams) CRC() uint32
type ContactsGetTopPeersParams ¶
type ContactsGetTopPeersParams struct {
Correspondents bool `tl:"flag:0,encoded_in_bitflags"`
BotsPm bool `tl:"flag:1,encoded_in_bitflags"`
BotsInline bool `tl:"flag:2,encoded_in_bitflags"`
PhoneCalls bool `tl:"flag:3,encoded_in_bitflags"`
ForwardUsers bool `tl:"flag:4,encoded_in_bitflags"`
ForwardChats bool `tl:"flag:5,encoded_in_bitflags"`
Groups bool `tl:"flag:10,encoded_in_bitflags"`
Channels bool `tl:"flag:15,encoded_in_bitflags"`
BotsApp bool `tl:"flag:16,encoded_in_bitflags"`
Offset int32
Limit int32
Hash int64
}
func (*ContactsGetTopPeersParams) CRC ¶
func (*ContactsGetTopPeersParams) CRC() uint32
func (*ContactsGetTopPeersParams) FlagIndex ¶
func (*ContactsGetTopPeersParams) FlagIndex() int
type ContactsImportContactTokenParams ¶
type ContactsImportContactTokenParams struct {
Token string
}
func (*ContactsImportContactTokenParams) CRC ¶
func (*ContactsImportContactTokenParams) CRC() uint32
type ContactsImportContactsParams ¶
type ContactsImportContactsParams struct {
Contacts []*InputPhoneContact
}
func (*ContactsImportContactsParams) CRC ¶
func (*ContactsImportContactsParams) CRC() uint32
type ContactsImportedContacts ¶
type ContactsImportedContacts struct {
Imported []*ImportedContact
PopularInvites []*PopularContact
RetryContacts []int64
Users []User
}
Info on successfully imported contacts.
func (*ContactsImportedContacts) CRC ¶
func (*ContactsImportedContacts) CRC() uint32
type ContactsResetSavedParams ¶
type ContactsResetSavedParams struct{}
func (*ContactsResetSavedParams) CRC ¶
func (*ContactsResetSavedParams) CRC() uint32
type ContactsResetTopPeerRatingParams ¶
type ContactsResetTopPeerRatingParams struct {
Category TopPeerCategory
Peer InputPeer
}
func (*ContactsResetTopPeerRatingParams) CRC ¶
func (*ContactsResetTopPeerRatingParams) CRC() uint32
type ContactsResolvePhoneParams ¶
type ContactsResolvePhoneParams struct {
Phone string
}
func (*ContactsResolvePhoneParams) CRC ¶
func (*ContactsResolvePhoneParams) CRC() uint32
type ContactsResolveUsernameParams ¶
func (*ContactsResolveUsernameParams) CRC ¶
func (*ContactsResolveUsernameParams) CRC() uint32
func (*ContactsResolveUsernameParams) FlagIndex ¶ added in v1.4.4
func (*ContactsResolveUsernameParams) FlagIndex() int
type ContactsResolvedPeer ¶
Resolved peer
func (*ContactsResolvedPeer) CRC ¶
func (*ContactsResolvedPeer) CRC() uint32
type ContactsSearchParams ¶
func (*ContactsSearchParams) CRC ¶
func (*ContactsSearchParams) CRC() uint32
type ContactsSetBlockedParams ¶
type ContactsSetBlockedParams struct {
MyStoriesFrom bool `tl:"flag:0,encoded_in_bitflags"`
ID []InputPeer
Limit int32
}
func (*ContactsSetBlockedParams) CRC ¶
func (*ContactsSetBlockedParams) CRC() uint32
func (*ContactsSetBlockedParams) FlagIndex ¶
func (*ContactsSetBlockedParams) FlagIndex() int
type ContactsSponsoredPeers ¶ added in v1.6.0
type ContactsSponsoredPeersEmpty ¶ added in v1.6.0
type ContactsSponsoredPeersEmpty struct{}
There are no sponsored peers for this query.
func (*ContactsSponsoredPeersEmpty) CRC ¶ added in v1.6.0
func (*ContactsSponsoredPeersEmpty) CRC() uint32
func (*ContactsSponsoredPeersEmpty) ImplementsContactsSponsoredPeers ¶ added in v1.6.0
func (*ContactsSponsoredPeersEmpty) ImplementsContactsSponsoredPeers()
type ContactsSponsoredPeersObj ¶ added in v1.6.0
type ContactsSponsoredPeersObj struct {
Peers []*SponsoredPeer // Sponsored peers.
Chats []Chat // Info about sponsored chats and channels
Users []User // Info about sponsored users
}
Sponsored peers.
func (*ContactsSponsoredPeersObj) CRC ¶ added in v1.6.0
func (*ContactsSponsoredPeersObj) CRC() uint32
func (*ContactsSponsoredPeersObj) ImplementsContactsSponsoredPeers ¶ added in v1.6.0
func (*ContactsSponsoredPeersObj) ImplementsContactsSponsoredPeers()
type ContactsToggleTopPeersParams ¶
type ContactsToggleTopPeersParams struct {
Enabled bool
}
func (*ContactsToggleTopPeersParams) CRC ¶
func (*ContactsToggleTopPeersParams) CRC() uint32
type ContactsTopPeers ¶
type ContactsTopPeersDisabled ¶
type ContactsTopPeersDisabled struct{}
Top peers disabled
func (*ContactsTopPeersDisabled) CRC ¶
func (*ContactsTopPeersDisabled) CRC() uint32
func (*ContactsTopPeersDisabled) ImplementsContactsTopPeers ¶
func (*ContactsTopPeersDisabled) ImplementsContactsTopPeers()
type ContactsTopPeersNotModified ¶
type ContactsTopPeersNotModified struct{}
Top peer info hasn't changed
func (*ContactsTopPeersNotModified) CRC ¶
func (*ContactsTopPeersNotModified) CRC() uint32
func (*ContactsTopPeersNotModified) ImplementsContactsTopPeers ¶
func (*ContactsTopPeersNotModified) ImplementsContactsTopPeers()
type ContactsTopPeersObj ¶
type ContactsTopPeersObj struct {
Categories []*TopPeerCategoryPeers // Top peers by top peer category
Chats []Chat // Chats
Users []User // Users
}
Top peers
func (*ContactsTopPeersObj) CRC ¶
func (*ContactsTopPeersObj) CRC() uint32
func (*ContactsTopPeersObj) ImplementsContactsTopPeers ¶
func (*ContactsTopPeersObj) ImplementsContactsTopPeers()
type ContactsUnblockParams ¶
type ContactsUnblockParams struct {
MyStoriesFrom bool `tl:"flag:0,encoded_in_bitflags"`
ID InputPeer
}
func (*ContactsUnblockParams) CRC ¶
func (*ContactsUnblockParams) CRC() uint32
func (*ContactsUnblockParams) FlagIndex ¶
func (*ContactsUnblockParams) FlagIndex() int
type ContactsUpdateContactNoteParams ¶ added in v1.6.8
type ContactsUpdateContactNoteParams struct {
ID InputUser
Note *TextWithEntities
}
func (*ContactsUpdateContactNoteParams) CRC ¶ added in v1.6.8
func (*ContactsUpdateContactNoteParams) CRC() uint32
type Conversation ¶
type Conversation struct {
Client *Client
Peer InputPeer
// contains filtered or unexported fields
}
State Machine for conversation with users and in groups
func NewConversation ¶
func NewConversation(client *Client, peer InputPeer, options ...*ConversationOptions) *Conversation
NewConversation creates a new conversation with user (standalone function)
func (*Conversation) Ask ¶ added in v1.6.9
func (c *Conversation) Ask(text any, opts ...*SendOptions) (*NewMessage, error)
func (*Conversation) AskDocument ¶ added in v1.6.9
func (c *Conversation) AskDocument(text any, opts ...*SendOptions) (*NewMessage, error)
func (*Conversation) AskMedia ¶ added in v1.6.9
func (c *Conversation) AskMedia(text any, opts ...*SendOptions) (*NewMessage, error)
func (*Conversation) AskNumber ¶ added in v1.6.9
func (c *Conversation) AskNumber(question string, maxRetries ...int) (int64, error)
AskNumber asks for a numeric response
func (*Conversation) AskPhoto ¶ added in v1.6.9
func (c *Conversation) AskPhoto(text any, opts ...*SendOptions) (*NewMessage, error)
func (*Conversation) AskUntil ¶ added in v1.6.9
func (c *Conversation) AskUntil(question string, validator func(*NewMessage) bool, maxRetries int, retryMessage ...string) (*NewMessage, error)
AskUntil keeps asking until the validator returns true or maxRetries is reached. On each failed validation, it sends the retryMessage if provided.
func (*Conversation) AskVideo ¶ added in v1.6.9
func (c *Conversation) AskVideo(text any, opts ...*SendOptions) (*NewMessage, error)
func (*Conversation) AskVoice ¶ added in v1.6.9
func (c *Conversation) AskVoice(text any, opts ...*SendOptions) (*NewMessage, error)
func (*Conversation) AskYesNo ¶ added in v1.6.9
func (c *Conversation) AskYesNo(question string) (bool, error)
AskYesNo asks a yes/no question and returns the boolean response
func (*Conversation) Choice ¶ added in v1.6.9
func (c *Conversation) Choice(text string, choices []string) (*CallbackQuery, error)
Choice sends a message with inline buttons and waits for a button click. eg. choices := []string{"Option 1", "Option 2", "Option 3"}
func (*Conversation) ChoiceRow ¶ added in v1.6.9
func (c *Conversation) ChoiceRow(text string, rows ...[]string) (*CallbackQuery, error)
func (*Conversation) Close ¶
func (c *Conversation) Close()
Close closes the conversation, removing all open event handlers
func (*Conversation) GetEdit ¶
func (c *Conversation) GetEdit() (*NewMessage, error)
func (*Conversation) GetReply ¶
func (c *Conversation) GetReply() (*NewMessage, error)
func (*Conversation) GetResponse ¶
func (c *Conversation) GetResponse() (*NewMessage, error)
func (*Conversation) GetResponseContaining ¶ added in v1.6.9
func (c *Conversation) GetResponseContaining(words ...string) (*NewMessage, error)
func (*Conversation) GetResponseExact ¶ added in v1.6.9
func (c *Conversation) GetResponseExact(options ...string) (*NewMessage, error)
GetResponseExact waits for a message with exact text match (case-insensitive)
func (*Conversation) GetResponseMatching ¶ added in v1.6.9
func (c *Conversation) GetResponseMatching(pattern *regexp.Regexp) (*NewMessage, error)
func (*Conversation) IsClosed ¶ added in v1.6.9
func (c *Conversation) IsClosed() bool
func (*Conversation) LastMessage ¶ added in v1.6.9
func (c *Conversation) LastMessage() *NewMessage
func (*Conversation) MarkRead ¶
func (c *Conversation) MarkRead() (*MessagesAffectedMessages, error)
func (*Conversation) Reply ¶
func (c *Conversation) Reply(text any, opts ...*SendOptions) (*NewMessage, error)
func (*Conversation) ReplyMedia ¶
func (c *Conversation) ReplyMedia(media InputMedia, opts ...*MediaOptions) (*NewMessage, error)
func (*Conversation) Respond ¶
func (c *Conversation) Respond(text any, opts ...*SendOptions) (*NewMessage, error)
func (*Conversation) RespondMedia ¶
func (c *Conversation) RespondMedia(media InputMedia, opts ...*MediaOptions) (*NewMessage, error)
func (*Conversation) SetAbortKeywords ¶ added in v1.6.10
func (c *Conversation) SetAbortKeywords(keywords ...string) *Conversation
SetAbortKeywords sets keywords that will abort the conversation
func (*Conversation) SetFromUser ¶ added in v1.6.10
func (c *Conversation) SetFromUser(userID int64) *Conversation
func (*Conversation) SetStopPropagation ¶ added in v1.6.0
func (c *Conversation) SetStopPropagation(stop bool) *Conversation
when stopPropagation is set to true, the event handler blocks all other handlers
func (*Conversation) SetTimeout ¶ added in v1.6.0
func (c *Conversation) SetTimeout(timeout int32) *Conversation
func (*Conversation) WaitClick ¶ added in v1.6.7
func (c *Conversation) WaitClick() (*CallbackQuery, error)
func (*Conversation) WaitForDocument ¶ added in v1.6.9
func (c *Conversation) WaitForDocument() (*NewMessage, error)
func (*Conversation) WaitForMedia ¶ added in v1.6.9
func (c *Conversation) WaitForMedia() (*NewMessage, error)
func (*Conversation) WaitForPhoto ¶ added in v1.6.9
func (c *Conversation) WaitForPhoto() (*NewMessage, error)
func (*Conversation) WaitForSticker ¶ added in v1.6.9
func (c *Conversation) WaitForSticker() (*NewMessage, error)
func (*Conversation) WaitForVideo ¶ added in v1.6.9
func (c *Conversation) WaitForVideo() (*NewMessage, error)
func (*Conversation) WaitForVoice ¶ added in v1.6.9
func (c *Conversation) WaitForVoice() (*NewMessage, error)
func (*Conversation) WaitRead ¶
func (c *Conversation) WaitRead() (*UpdateReadChannelInbox, error)
func (*Conversation) WithContext ¶ added in v1.6.9
func (c *Conversation) WithContext(ctx context.Context) *Conversation
func (*Conversation) WithFromUser ¶ added in v1.6.10
func (c *Conversation) WithFromUser(userID int64) *Conversation
func (*Conversation) WithPrivate ¶ added in v1.6.9
func (c *Conversation) WithPrivate(private bool) *Conversation
func (*Conversation) WithStopPropagation ¶ added in v1.6.9
func (c *Conversation) WithStopPropagation(stop bool) *Conversation
func (*Conversation) WithTimeout ¶ added in v1.6.9
func (c *Conversation) WithTimeout(timeout int32) *Conversation
func (*Conversation) Wizard ¶ added in v1.6.9
func (c *Conversation) Wizard() *ConversationWizard
type ConversationOptions ¶ added in v1.6.9
type ConversationOptions struct {
Private bool // Restrict conversation to private chats
Timeout int32 // Response timeout in seconds (default: 60)
StopPropagation bool // Stop update propagation to other handlers
Context context.Context // Parent context for cancellation
AbortKeywords []string // Words that abort the conversation (e.g., "cancel")
FromUser int64 // Only accept messages from this user ID, useful in groups
}
ConversationOptions for configuring a conversation
type ConversationStep ¶ added in v1.6.9
type ConversationStep struct {
Name string
Question string
Validator func(*NewMessage) bool
RetryMsg string
MaxRetries int
MediaType string // "photo", "video", "document", "voice", "sticker", "media"
AskFunc func(*Conversation, string, ...*SendOptions) (*NewMessage, error) // Custom ask function
Skippable bool // Allow skipping this step
SkipWords []string // Words that skip this step (e.g., "skip", "pass")
Condition func(map[string]*NewMessage) bool // Only ask if condition is true
Transform func(*NewMessage) any // Transform the answer before storing
}
ConversationStep represents a single step in a multi-step conversation
type ConversationWizard ¶ added in v1.6.9
type ConversationWizard struct {
// contains filtered or unexported fields
}
ConversationWizard manages multi-step conversations
func (*ConversationWizard) AllowBack ¶ added in v1.6.10
func (w *ConversationWizard) AllowBack() *ConversationWizard
AllowBack enables going back to previous steps
func (*ConversationWizard) GetAllTransformed ¶ added in v1.6.10
func (w *ConversationWizard) GetAllTransformed() map[string]any
GetAllTransformed returns all transformed answers
func (*ConversationWizard) GetAnswer ¶ added in v1.6.9
func (w *ConversationWizard) GetAnswer(name string) *NewMessage
func (*ConversationWizard) GetAnswerText ¶ added in v1.6.9
func (w *ConversationWizard) GetAnswerText(name string) string
func (*ConversationWizard) GetTransformed ¶ added in v1.6.10
func (w *ConversationWizard) GetTransformed(name string) any
GetTransformed returns the transformed answer for a step
func (*ConversationWizard) HasAnswer ¶ added in v1.6.10
func (w *ConversationWizard) HasAnswer(name string) bool
HasAnswer checks if a step has been answered
func (*ConversationWizard) OnStepComplete ¶ added in v1.6.10
func (w *ConversationWizard) OnStepComplete(fn func(string, int)) *ConversationWizard
OnStepComplete sets a callback for step completion
func (*ConversationWizard) Run ¶ added in v1.6.9
func (w *ConversationWizard) Run() (map[string]*NewMessage, error)
func (*ConversationWizard) Step ¶ added in v1.6.9
func (w *ConversationWizard) Step(name, question string, opts ...func(*ConversationStep)) *ConversationWizard
func (*ConversationWizard) WithProgress ¶ added in v1.6.10
func (w *ConversationWizard) WithProgress(format string) *ConversationWizard
WithProgress sets a progress message format
type CustomFile ¶
type DcOption ¶
type DcOption struct {
Ipv6 bool `tl:"flag:0,encoded_in_bitflags"`
MediaOnly bool `tl:"flag:1,encoded_in_bitflags"`
TcpoOnly bool `tl:"flag:2,encoded_in_bitflags"`
Cdn bool `tl:"flag:3,encoded_in_bitflags"`
Static bool `tl:"flag:4,encoded_in_bitflags"`
ThisPortOnly bool `tl:"flag:5,encoded_in_bitflags"`
ID int32
IpAddress string
Port int32
Secret []byte `tl:"flag:10"`
}
Data center
type DefaultHistoryTtl ¶
type DefaultHistoryTtl struct {
Period int32
}
Contains info about the default value of the Time-To-Live setting, applied to all new chats.
func (*DefaultHistoryTtl) CRC ¶
func (*DefaultHistoryTtl) CRC() uint32
type DeleteHandler ¶
type DeleteHandler func(m *DeleteMessage) error
type DeleteMessage ¶
type Destination ¶
type Destination struct {
// contains filtered or unexported fields
}
func (*Destination) Close ¶
func (mb *Destination) Close() error
type DeviceConfig ¶
type DeviceConfig struct {
DeviceModel string // Device model name shown to Telegram (e.g., "iPhone 17 Pro")
SystemVersion string // Operating system version (e.g., "iOS 26.0")
AppVersion string // Application version string
LangCode string // ISO 639-1 language code (e.g., "en")
SystemLangCode string // System language code, defaults to LangCode if not set
LangPack string // Language pack identifier (e.g., "ios", "android")
Params JsonValue // Additional JSON parameters for init connection
}
type DialogFilter ¶
type DialogFilterChatlist ¶
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.
TitleNoanimate bool `tl:"flag:28,encoded_in_bitflags"` // If set, any animated emojis present in `title` should not be animated and should be instead frozen on the first frame.
ID int32 // ID of the folder
Title *TextWithEntities // Name of the folder (max 12 UTF-8 chars)
Emoticon string `tl:"flag:25"` // Emoji to use as icon for the folder.
Color int32 `tl:"flag:27"` // A color ID for the folder tag associated to this folder
PinnedPeers []InputPeer // Pinned chats, folders can have unlimited pinned chats
IncludePeers []InputPeer // Chats to include in the folder
}
A folder imported using a chat folder deep link.
func (*DialogFilterChatlist) CRC ¶
func (*DialogFilterChatlist) CRC() uint32
func (*DialogFilterChatlist) FlagIndex ¶
func (*DialogFilterChatlist) FlagIndex() int
func (*DialogFilterChatlist) ImplementsDialogFilter ¶
func (*DialogFilterChatlist) ImplementsDialogFilter()
type DialogFilterDefault ¶
type DialogFilterDefault struct{}
Used only when reordering folders to indicate the default (all chats) folder.
func (*DialogFilterDefault) CRC ¶
func (*DialogFilterDefault) CRC() uint32
func (*DialogFilterDefault) ImplementsDialogFilter ¶
func (*DialogFilterDefault) ImplementsDialogFilter()
type DialogFilterObj ¶
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
Groups bool `tl:"flag:2,encoded_in_bitflags"` // Whether to include all groups in this folder
Broadcasts bool `tl:"flag:3,encoded_in_bitflags"` // Whether to include all channels in this folder
Bots bool `tl:"flag:4,encoded_in_bitflags"` // Whether to include all bots in this folder
ExcludeMuted bool `tl:"flag:11,encoded_in_bitflags"` // Whether to exclude muted chats from this folder
ExcludeRead bool `tl:"flag:12,encoded_in_bitflags"` // Whether to exclude read chats from this folder
ExcludeArchived bool `tl:"flag:13,encoded_in_bitflags"` // Whether to exclude archived chats from this folder
TitleNoanimate bool `tl:"flag:28,encoded_in_bitflags"` // If set, any animated emojis present in `title` should not be animated and should be instead frozen on the first frame.
ID int32 // Folder ID
Title *TextWithEntities // Folder name (max 12 UTF-8 chars)
Emoticon string `tl:"flag:25"` // Emoji to use as icon for the folder.
Color int32 `tl:"flag:27"` // A color ID for the folder tag associated to this folder
PinnedPeers []InputPeer // Pinned chats, folders can have unlimited pinned chats
IncludePeers []InputPeer // Include the following chats in this folder
ExcludePeers []InputPeer // Exclude the following chats from this folder
}
Dialog filter AKA folder
func (*DialogFilterObj) CRC ¶
func (*DialogFilterObj) CRC() uint32
func (*DialogFilterObj) FlagIndex ¶
func (*DialogFilterObj) FlagIndex() int
func (*DialogFilterObj) ImplementsDialogFilter ¶
func (*DialogFilterObj) ImplementsDialogFilter()
type DialogFilterSuggested ¶
type DialogFilterSuggested struct {
Filter DialogFilter
Description string
}
Suggested folders
func (*DialogFilterSuggested) CRC ¶
func (*DialogFilterSuggested) CRC() uint32
type DialogFolder ¶
type DialogFolder struct {
Pinned bool `tl:"flag:2,encoded_in_bitflags"` // Is this folder pinned
Folder *Folder // The folder
Peer Peer // Peer in folder
TopMessage int32 // Latest message ID of dialog
UnreadMutedPeersCount int32 // Number of unread muted peers in folder
UnreadUnmutedPeersCount int32 // Number of unread unmuted peers in folder
UnreadMutedMessagesCount int32 // Number of unread messages from muted peers in folder
UnreadUnmutedMessagesCount int32 // Number of unread messages from unmuted peers in folder
}
Dialog in folder
func (*DialogFolder) CRC ¶
func (*DialogFolder) CRC() uint32
func (*DialogFolder) FlagIndex ¶
func (*DialogFolder) FlagIndex() int
func (*DialogFolder) ImplementsDialog ¶
func (*DialogFolder) ImplementsDialog()
type DialogObj ¶
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.
Peer Peer // The chat
TopMessage int32 // The latest message ID
ReadInboxMaxID int32 // Position up to which all incoming messages are read.
ReadOutboxMaxID int32 // Position up to which all outgoing messages are read.
UnreadCount int32 // Number of unread messages
UnreadMentionsCount int32 // Number of unread mentions
UnreadReactionsCount int32 // Number of unread reactions to messages you sent
NotifySettings *PeerNotifySettings // Notification settings
Pts int32 `tl:"flag:0"` // PTS
Draft DraftMessage `tl:"flag:1"` // Message draft
FolderID int32 `tl:"flag:4"` // Peer folder ID, for more info click here
TtlPeriod int32 `tl:"flag:5"` // Time-to-live of all messages sent in this dialog
}
Chat
func (*DialogObj) ImplementsDialog ¶
func (*DialogObj) ImplementsDialog()
type DialogOptions ¶
type DialogOptions struct {
OffsetID int32 // Message ID to start from
OffsetDate int32 // Unix timestamp to start from
OffsetPeer InputPeer // Peer to start from
Limit int32 // Maximum number of dialogs to return
ExcludePinned bool // Exclude pinned dialogs from results
FolderID int32 // Folder ID to get dialogs from (0 for main list)
Hash int64 // Hash for caching
SleepThresholdMs int32 // Delay between requests in milliseconds
Context context.Context // Context for cancellation
}
type DialogPeer ¶
type DialogPeerFolder ¶
type DialogPeerFolder struct {
FolderID int32 // Peer folder ID, for more info click here
}
Peer folder
func (*DialogPeerFolder) CRC ¶
func (*DialogPeerFolder) CRC() uint32
func (*DialogPeerFolder) ImplementsDialogPeer ¶
func (*DialogPeerFolder) ImplementsDialogPeer()
type DialogPeerObj ¶
type DialogPeerObj struct {
Peer Peer // Peer
}
Peer
func (*DialogPeerObj) CRC ¶
func (*DialogPeerObj) CRC() uint32
func (*DialogPeerObj) ImplementsDialogPeer ¶
func (*DialogPeerObj) ImplementsDialogPeer()
type DisallowedGiftsSettings ¶ added in v1.6.0
type DisallowedGiftsSettings struct {
DisallowUnlimitedStargifts bool `tl:"flag:0,encoded_in_bitflags"`
DisallowLimitedStargifts bool `tl:"flag:1,encoded_in_bitflags"`
DisallowUniqueStargifts bool `tl:"flag:2,encoded_in_bitflags"`
DisallowPremiumGifts bool `tl:"flag:3,encoded_in_bitflags"`
DisallowStargiftsFromChannels bool `tl:"flag:4,encoded_in_bitflags"`
}
Disallow the reception of specific gift types.
func (*DisallowedGiftsSettings) CRC ¶ added in v1.6.0
func (*DisallowedGiftsSettings) CRC() uint32
func (*DisallowedGiftsSettings) FlagIndex ¶ added in v1.6.0
func (*DisallowedGiftsSettings) FlagIndex() int
type DocumentAttribute ¶
func GatherMediaMetadata ¶ added in v1.6.3
func GatherMediaMetadata(path string, attrs []DocumentAttribute) ([]DocumentAttribute, int64, error)
type DocumentAttributeAnimated ¶
type DocumentAttributeAnimated struct{}
Defines an animated GIF
func (*DocumentAttributeAnimated) CRC ¶
func (*DocumentAttributeAnimated) CRC() uint32
func (*DocumentAttributeAnimated) ImplementsDocumentAttribute ¶
func (*DocumentAttributeAnimated) ImplementsDocumentAttribute()
type DocumentAttributeAudio ¶
type DocumentAttributeAudio struct {
Voice bool `tl:"flag:10,encoded_in_bitflags"` // Whether this is a voice message
Duration int32 // Duration in seconds
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.
}
Represents an audio file
func (*DocumentAttributeAudio) CRC ¶
func (*DocumentAttributeAudio) CRC() uint32
func (*DocumentAttributeAudio) FlagIndex ¶
func (*DocumentAttributeAudio) FlagIndex() int
func (*DocumentAttributeAudio) ImplementsDocumentAttribute ¶
func (*DocumentAttributeAudio) ImplementsDocumentAttribute()
type DocumentAttributeCustomEmoji ¶
type DocumentAttributeCustomEmoji struct {
Free bool `tl:"flag:0,encoded_in_bitflags"` // Whether this custom emoji can be sent by non-Premium users
TextColor bool `tl:"flag:1,encoded_in_bitflags"` // Whether the color of this TGS custom emoji 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.
Alt string // The actual emoji
Stickerset InputStickerSet // The emoji stickerset to which this emoji belongs.
}
Info about a custom emoji
func (*DocumentAttributeCustomEmoji) CRC ¶
func (*DocumentAttributeCustomEmoji) CRC() uint32
func (*DocumentAttributeCustomEmoji) FlagIndex ¶
func (*DocumentAttributeCustomEmoji) FlagIndex() int
func (*DocumentAttributeCustomEmoji) ImplementsDocumentAttribute ¶
func (*DocumentAttributeCustomEmoji) ImplementsDocumentAttribute()
type DocumentAttributeFilename ¶
type DocumentAttributeFilename struct {
FileName string // The file name
}
A simple document with a file name
func (*DocumentAttributeFilename) CRC ¶
func (*DocumentAttributeFilename) CRC() uint32
func (*DocumentAttributeFilename) ImplementsDocumentAttribute ¶
func (*DocumentAttributeFilename) ImplementsDocumentAttribute()
type DocumentAttributeHasStickers ¶
type DocumentAttributeHasStickers struct{}
Whether the current document has stickers attached
func (*DocumentAttributeHasStickers) CRC ¶
func (*DocumentAttributeHasStickers) CRC() uint32
func (*DocumentAttributeHasStickers) ImplementsDocumentAttribute ¶
func (*DocumentAttributeHasStickers) ImplementsDocumentAttribute()
type DocumentAttributeImageSize ¶
Defines the width and height of an image uploaded as document
func (*DocumentAttributeImageSize) CRC ¶
func (*DocumentAttributeImageSize) CRC() uint32
func (*DocumentAttributeImageSize) ImplementsDocumentAttribute ¶
func (*DocumentAttributeImageSize) ImplementsDocumentAttribute()
type DocumentAttributeSticker ¶
type DocumentAttributeSticker struct {
Mask bool `tl:"flag:1,encoded_in_bitflags"` // Whether this is a mask sticker
Alt string // Alternative emoji representation of sticker
Stickerset InputStickerSet // Associated stickerset
MaskCoords *MaskCoords `tl:"flag:0"` // Mask coordinates (if this is a mask sticker, attached to a photo)
}
Defines a sticker
func (*DocumentAttributeSticker) CRC ¶
func (*DocumentAttributeSticker) CRC() uint32
func (*DocumentAttributeSticker) FlagIndex ¶
func (*DocumentAttributeSticker) FlagIndex() int
func (*DocumentAttributeSticker) ImplementsDocumentAttribute ¶
func (*DocumentAttributeSticker) ImplementsDocumentAttribute()
type DocumentAttributeVideo ¶
type DocumentAttributeVideo struct {
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
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"
}
Defines a video
func (*DocumentAttributeVideo) CRC ¶
func (*DocumentAttributeVideo) CRC() uint32
func (*DocumentAttributeVideo) FlagIndex ¶
func (*DocumentAttributeVideo) FlagIndex() int
func (*DocumentAttributeVideo) ImplementsDocumentAttribute ¶
func (*DocumentAttributeVideo) ImplementsDocumentAttribute()
type DocumentEmpty ¶
type DocumentEmpty struct {
ID int64 // Document ID or `0`
}
Empty constructor, document doesn't exist.
func (*DocumentEmpty) CRC ¶
func (*DocumentEmpty) CRC() uint32
func (*DocumentEmpty) ImplementsDocument ¶
func (*DocumentEmpty) ImplementsDocument()
type DocumentObj ¶
type DocumentObj struct {
ID int64 // Document ID
AccessHash int64 // Check sum, dependent on document ID
FileReference []byte // File reference
Date int32 // Creation date
MimeType string // MIME type
Size int64 // Size
Thumbs []PhotoSize `tl:"flag:0"` // Thumbnails
VideoThumbs []VideoSize `tl:"flag:1"` // Video thumbnails
DcID int32 // DC ID
Attributes []DocumentAttribute // Attributes
}
Document
func (*DocumentObj) CRC ¶
func (*DocumentObj) CRC() uint32
func (*DocumentObj) FlagIndex ¶
func (*DocumentObj) FlagIndex() int
func (*DocumentObj) ImplementsDocument ¶
func (*DocumentObj) ImplementsDocument()
type DownloadOptions ¶
type DownloadOptions struct {
FileName string // Path to save the downloaded file
Threads int // Number of concurrent download workers
ChunkSize int32 // Size of each download chunk in bytes
ProgressCallback func(*ProgressInfo) // Callback for download progress updates
ProgressManager *ProgressManager // Progress manager (legacy support)
ProgressInterval int // Progress callback interval in seconds (default: 5)
Delay int // Delay between chunks in milliseconds
DCId int32 // Datacenter ID where file is stored
Buffer io.Writer // Custom writer for download output
ThumbOnly bool // Download thumbnail only
ThumbSize PhotoSize // Specific thumbnail size to download
IsVideo bool // Download video version (for animated profiles)
Ctx context.Context // Context for cancellation
}
type DraftMessage ¶
type DraftMessageEmpty ¶
type DraftMessageEmpty struct {
Date int32 `tl:"flag:0"` // When was the draft last updated
}
Empty draft
func (*DraftMessageEmpty) CRC ¶
func (*DraftMessageEmpty) CRC() uint32
func (*DraftMessageEmpty) FlagIndex ¶
func (*DraftMessageEmpty) FlagIndex() int
func (*DraftMessageEmpty) ImplementsDraftMessage ¶
func (*DraftMessageEmpty) ImplementsDraftMessage()
type DraftMessageObj ¶
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.
ReplyTo InputReplyTo `tl:"flag:4"` // If set, indicates that the message should be sent in reply to the specified message or story.
Message string // The draft
Entities []MessageEntity `tl:"flag:3"` // Message entities for styled text.
Media InputMedia `tl:"flag:5"` // Media.
Date int32 // Date of last update of the draft.
Effect int64 `tl:"flag:7"` // A message effect that should be played as specified here.
SuggestedPost *SuggestedPost `tl:"flag:8"` // Used to suggest a post to a channel
}
Represents a message draft.
func (*DraftMessageObj) CRC ¶
func (*DraftMessageObj) CRC() uint32
func (*DraftMessageObj) FlagIndex ¶
func (*DraftMessageObj) FlagIndex() int
func (*DraftMessageObj) ImplementsDraftMessage ¶
func (*DraftMessageObj) ImplementsDraftMessage()
type E2EHandler ¶ added in v1.7.0
type EditHandler ¶
type EditHandler func(m *NewMessage) error
type EmailVerification ¶
type EmailVerificationApple ¶
type EmailVerificationApple struct {
Token string // Token
}
Apple ID email verification token
func (*EmailVerificationApple) CRC ¶
func (*EmailVerificationApple) CRC() uint32
func (*EmailVerificationApple) ImplementsEmailVerification ¶
func (*EmailVerificationApple) ImplementsEmailVerification()
type EmailVerificationCode ¶
type EmailVerificationCode struct {
Code string // Received verification code
}
Email verification code
func (*EmailVerificationCode) CRC ¶
func (*EmailVerificationCode) CRC() uint32
func (*EmailVerificationCode) ImplementsEmailVerification ¶
func (*EmailVerificationCode) ImplementsEmailVerification()
type EmailVerificationGoogle ¶
type EmailVerificationGoogle struct {
Token string // Token
}
Google ID email verification token
func (*EmailVerificationGoogle) CRC ¶
func (*EmailVerificationGoogle) CRC() uint32
func (*EmailVerificationGoogle) ImplementsEmailVerification ¶
func (*EmailVerificationGoogle) ImplementsEmailVerification()
type EmailVerifyPurpose ¶
type EmailVerifyPurposeLoginChange ¶
type EmailVerifyPurposeLoginChange struct{}
Email verification purpose: change login email
func (*EmailVerifyPurposeLoginChange) CRC ¶
func (*EmailVerifyPurposeLoginChange) CRC() uint32
func (*EmailVerifyPurposeLoginChange) ImplementsEmailVerifyPurpose ¶
func (*EmailVerifyPurposeLoginChange) ImplementsEmailVerifyPurpose()
type EmailVerifyPurposeLoginSetup ¶
type EmailVerifyPurposeLoginSetup struct {
PhoneNumber string // Phone number
PhoneCodeHash string // Phone code hash as specified by the documentation
}
Email verification purpose: setup login email
func (*EmailVerifyPurposeLoginSetup) CRC ¶
func (*EmailVerifyPurposeLoginSetup) CRC() uint32
func (*EmailVerifyPurposeLoginSetup) ImplementsEmailVerifyPurpose ¶
func (*EmailVerifyPurposeLoginSetup) ImplementsEmailVerifyPurpose()
type EmailVerifyPurposePassport ¶
type EmailVerifyPurposePassport struct{}
Verify an email for use in telegram passport
func (*EmailVerifyPurposePassport) CRC ¶
func (*EmailVerifyPurposePassport) CRC() uint32
func (*EmailVerifyPurposePassport) ImplementsEmailVerifyPurpose ¶
func (*EmailVerifyPurposePassport) ImplementsEmailVerifyPurpose()
type EmojiGroup ¶
type EmojiGroupGreeting ¶
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.
Emoticons []string // A list of UTF-8 emojis, matching the category.
}
Represents an emoji category, that should be moved to the top of the list when choosing a sticker for a business introduction
func (*EmojiGroupGreeting) CRC ¶
func (*EmojiGroupGreeting) CRC() uint32
func (*EmojiGroupGreeting) ImplementsEmojiGroup ¶
func (*EmojiGroupGreeting) ImplementsEmojiGroup()
type EmojiGroupObj ¶
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.
Emoticons []string // A list of UTF-8 emojis, matching the category.
}
Represents an emoji category.
func (*EmojiGroupObj) CRC ¶
func (*EmojiGroupObj) CRC() uint32
func (*EmojiGroupObj) ImplementsEmojiGroup ¶
func (*EmojiGroupObj) ImplementsEmojiGroup()
type EmojiGroupPremium ¶
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.
}
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)
func (*EmojiGroupPremium) CRC ¶
func (*EmojiGroupPremium) CRC() uint32
func (*EmojiGroupPremium) ImplementsEmojiGroup ¶
func (*EmojiGroupPremium) ImplementsEmojiGroup()
type EmojiKeyword ¶
type EmojiKeywordDeleted ¶
type EmojiKeywordDeleted struct {
Keyword string // Keyword
Emoticons []string // Emojis that were associated to keyword
}
Deleted emoji keyword
func (*EmojiKeywordDeleted) CRC ¶
func (*EmojiKeywordDeleted) CRC() uint32
func (*EmojiKeywordDeleted) ImplementsEmojiKeyword ¶
func (*EmojiKeywordDeleted) ImplementsEmojiKeyword()
type EmojiKeywordObj ¶
type EmojiKeywordObj struct {
Keyword string // Keyword
Emoticons []string // Emojis associated to keyword
}
Emoji keyword
func (*EmojiKeywordObj) CRC ¶
func (*EmojiKeywordObj) CRC() uint32
func (*EmojiKeywordObj) ImplementsEmojiKeyword ¶
func (*EmojiKeywordObj) ImplementsEmojiKeyword()
type EmojiKeywordsDifference ¶
type EmojiKeywordsDifference struct {
LangCode string
FromVersion int32
Version int32
Keywords []EmojiKeyword
}
Changes to emoji keywords
func (*EmojiKeywordsDifference) CRC ¶
func (*EmojiKeywordsDifference) CRC() uint32
type EmojiLanguage ¶
type EmojiLanguage struct {
LangCode string
}
Emoji language
func (*EmojiLanguage) CRC ¶
func (*EmojiLanguage) CRC() uint32
type EmojiListNotModified ¶
type EmojiListNotModified struct{}
The list of custom emojis hasn't changed.
func (*EmojiListNotModified) CRC ¶
func (*EmojiListNotModified) CRC() uint32
func (*EmojiListNotModified) ImplementsEmojiList ¶
func (*EmojiListNotModified) ImplementsEmojiList()
type EmojiListObj ¶
type EmojiListObj struct {
Hash int64 // Hash used for caching, for more info click here
DocumentID []int64 // Custom emoji IDs
}
Represents a list of custom emojis.
func (*EmojiListObj) CRC ¶
func (*EmojiListObj) CRC() uint32
func (*EmojiListObj) ImplementsEmojiList ¶
func (*EmojiListObj) ImplementsEmojiList()
type EmojiStatus ¶
type EmojiStatusCollectible ¶ added in v1.5.6
type EmojiStatusCollectible struct {
CollectibleID int64 // ID of the collectible (from starGiftUnique.`id`).
DocumentID int64 // ID of the custom emoji representing the status.
Title string // Name of the collectible.
Slug string // Unique identifier of the collectible that may be used to create a collectible gift link for the current collectible, or to fetch further info about the collectible using payments.getUniqueStarGift.
PatternDocumentID int64 // The ID of a pattern to apply on the profile's backdrop, correlated to the starGiftAttributePattern from the gift in `slug`.
CenterColor int32 // Color of the center of the profile backdrop in RGB24 format, from the gift's starGiftAttributeBackdrop.
EdgeColor int32 // Color of the edges of the profile backdrop in RGB24 format, from the gift's starGiftAttributeBackdrop.
PatternColor int32 // Color of the `pattern_document_id` applied on the profile backdrop in RGB24 format, from the gift's starGiftAttributeBackdrop.
TextColor int32 // Color of text on the profile backdrop in RGB24 format, from the gift's starGiftAttributeBackdrop.
Until int32 `tl:"flag:0"` // If set, the emoji status will be active until the specified unixtime.
}
An owned collectible gift as emoji status.
func (*EmojiStatusCollectible) CRC ¶ added in v1.5.6
func (*EmojiStatusCollectible) CRC() uint32
func (*EmojiStatusCollectible) FlagIndex ¶ added in v1.5.6
func (*EmojiStatusCollectible) FlagIndex() int
func (*EmojiStatusCollectible) ImplementsEmojiStatus ¶ added in v1.5.6
func (*EmojiStatusCollectible) ImplementsEmojiStatus()
type EmojiStatusEmpty ¶
type EmojiStatusEmpty struct{}
No emoji status is set
func (*EmojiStatusEmpty) CRC ¶
func (*EmojiStatusEmpty) CRC() uint32
func (*EmojiStatusEmpty) ImplementsEmojiStatus ¶
func (*EmojiStatusEmpty) ImplementsEmojiStatus()
type EmojiStatusObj ¶
type EmojiStatusObj struct {
DocumentID int64 // Custom emoji document ID
Until int32 `tl:"flag:0"` // If set, the emoji status will be active until the specified unixtime.
}
An emoji status
func (*EmojiStatusObj) CRC ¶
func (*EmojiStatusObj) CRC() uint32
func (*EmojiStatusObj) FlagIndex ¶ added in v1.5.6
func (*EmojiStatusObj) FlagIndex() int
func (*EmojiStatusObj) ImplementsEmojiStatus ¶
func (*EmojiStatusObj) ImplementsEmojiStatus()
type EmojiURL ¶
type EmojiURL struct {
URL string
}
An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation
type EncryptedChat ¶
type EncryptedChatDiscarded ¶
type EncryptedChatDiscarded struct {
HistoryDeleted bool `tl:"flag:0,encoded_in_bitflags"` // Whether both users of this secret chat should also remove all of its messages
ID int32 // Chat ID
}
Discarded or deleted chat.
func (*EncryptedChatDiscarded) CRC ¶
func (*EncryptedChatDiscarded) CRC() uint32
func (*EncryptedChatDiscarded) FlagIndex ¶
func (*EncryptedChatDiscarded) FlagIndex() int
func (*EncryptedChatDiscarded) ImplementsEncryptedChat ¶
func (*EncryptedChatDiscarded) ImplementsEncryptedChat()
type EncryptedChatEmpty ¶
type EncryptedChatEmpty struct {
ID int32 // Chat ID
}
Empty constructor.
func (*EncryptedChatEmpty) CRC ¶
func (*EncryptedChatEmpty) CRC() uint32
func (*EncryptedChatEmpty) ImplementsEncryptedChat ¶
func (*EncryptedChatEmpty) ImplementsEncryptedChat()
type EncryptedChatObj ¶
type EncryptedChatObj struct {
ID int32 // Chat ID
AccessHash int64 // Check sum dependent on the user ID
Date int32 // Date chat was created
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
KeyFingerprint int64 // 64-bit fingerprint of received key
}
Encrypted chat
func (*EncryptedChatObj) CRC ¶
func (*EncryptedChatObj) CRC() uint32
func (*EncryptedChatObj) ImplementsEncryptedChat ¶
func (*EncryptedChatObj) ImplementsEncryptedChat()
type EncryptedChatRequested ¶
type EncryptedChatRequested struct {
FolderID int32 `tl:"flag:0"` // Peer folder ID, for more info click here
ID int32 // Chat ID
AccessHash int64 // Check sum depending on user ID
Date int32 // Chat creation date
AdminID int64 // Chat creator ID
ParticipantID int64 // ID of second chat participant
GA []byte // `A = g ^ a mod p`, see Wikipedia
}
Request to create an encrypted chat.
func (*EncryptedChatRequested) CRC ¶
func (*EncryptedChatRequested) CRC() uint32
func (*EncryptedChatRequested) FlagIndex ¶
func (*EncryptedChatRequested) FlagIndex() int
func (*EncryptedChatRequested) ImplementsEncryptedChat ¶
func (*EncryptedChatRequested) ImplementsEncryptedChat()
type EncryptedChatWaiting ¶
type EncryptedChatWaiting struct {
ID int32 // Chat ID
AccessHash int64 // Checking sum depending on user ID
Date int32 // Date of chat creation
AdminID int64 // Chat creator ID
ParticipantID int64 // ID of second chat participant
}
Chat waiting for approval of second participant.
func (*EncryptedChatWaiting) CRC ¶
func (*EncryptedChatWaiting) CRC() uint32
func (*EncryptedChatWaiting) ImplementsEncryptedChat ¶
func (*EncryptedChatWaiting) ImplementsEncryptedChat()
type EncryptedFile ¶
type EncryptedFileEmpty ¶
type EncryptedFileEmpty struct{}
Empty constructor, non-existing file.
func (*EncryptedFileEmpty) CRC ¶
func (*EncryptedFileEmpty) CRC() uint32
func (*EncryptedFileEmpty) ImplementsEncryptedFile ¶
func (*EncryptedFileEmpty) ImplementsEncryptedFile()
type EncryptedFileObj ¶
type EncryptedFileObj struct {
ID int64 // File ID
AccessHash int64 // Checking sum depending on user ID
Size int64 // File size in bytes
DcID int32 // Number of data center
KeyFingerprint int32 // 32-bit fingerprint of key used for file encryption
}
Encrypted file.
func (*EncryptedFileObj) CRC ¶
func (*EncryptedFileObj) CRC() uint32
func (*EncryptedFileObj) ImplementsEncryptedFile ¶
func (*EncryptedFileObj) ImplementsEncryptedFile()
type EncryptedMessage ¶
type EncryptedMessageObj ¶
type EncryptedMessageObj struct {
RandomID int64 // Random message ID, assigned by the author of message
ChatID int32 // ID of encrypted chat
Date int32 // Date of sending
Bytes []byte // TL-serialization of DecryptedMessage type, encrypted with the key created at chat initialization
File EncryptedFile // Attached encrypted file
}
Encrypted message.
func (*EncryptedMessageObj) CRC ¶
func (*EncryptedMessageObj) CRC() uint32
func (*EncryptedMessageObj) ImplementsEncryptedMessage ¶
func (*EncryptedMessageObj) ImplementsEncryptedMessage()
type EncryptedMessageService ¶
type EncryptedMessageService struct {
RandomID int64 // Random message ID, assigned by the author of message
ChatID int32 // ID of encrypted chat
Date int32 // Date of sending
Bytes []byte // TL-serialization of the DecryptedMessage type, encrypted with the key created at chat initialization
}
Encrypted service message
func (*EncryptedMessageService) CRC ¶
func (*EncryptedMessageService) CRC() uint32
func (*EncryptedMessageService) ImplementsEncryptedMessage ¶
func (*EncryptedMessageService) ImplementsEncryptedMessage()
type EventType ¶ added in v1.7.0
type EventType string
const ( EventMessage EventType = "message" EventNewMessage EventType = "newmessage" EventCommand EventType = "command" EventEdit EventType = "edit" EventEditMessage EventType = "editmessage" EventDelete EventType = "delete" EventDeleteMessage EventType = "deletemessage" EventAlbum EventType = "album" EventInline EventType = "inline" EventInlineQuery EventType = "inlinequery" EventCallback EventType = "callback" EventCallbackQuery EventType = "callbackquery" EventInlineCallback EventType = "inlinecallback" EventChosenInline EventType = "choseninline" EventParticipant EventType = "participant" EventJoinRequest EventType = "joinrequest" EventAction EventType = "action" EventRaw EventType = "raw" )
type ExSender ¶ added in v1.5.9
func NewExSender ¶ added in v1.6.3
func (*ExSender) GetLastUsedTime ¶ added in v1.6.3
type ExSenders ¶ added in v1.5.9
func NewExSenders ¶ added in v1.5.9
func NewExSenders() *ExSenders
func (*ExSenders) GetSenders ¶ added in v1.6.10
GetSenders returns a copy of the senders for the given DC
type ExportedChatInvite ¶
type ExportedChatlistInvite ¶
Exported chat folder deep link.
func (*ExportedChatlistInvite) CRC ¶
func (*ExportedChatlistInvite) CRC() uint32
type ExportedContactToken ¶
Describes a temporary profile link.
func (*ExportedContactToken) CRC ¶
func (*ExportedContactToken) CRC() uint32
type ExportedMessageLink ¶
Link to a message in a supergroup/channel
func (*ExportedMessageLink) CRC ¶
func (*ExportedMessageLink) CRC() uint32
type ExportedStoryLink ¶
type ExportedStoryLink struct {
Link string
}
Represents a story deep link.
func (*ExportedStoryLink) CRC ¶
func (*ExportedStoryLink) CRC() uint32
type FactCheck ¶
type FactCheck struct {
NeedCheck bool `tl:"flag:0,encoded_in_bitflags"`
Country string `tl:"flag:1"`
Text *TextWithEntities `tl:"flag:1"`
Hash int64
}
Represents a fact-check created by an independent fact-checker.
type FileCacheStorage ¶ added in v1.6.9
type FileCacheStorage struct {
// contains filtered or unexported fields
}
FileCacheStorage implements CacheStorage for file-based persistence
func NewFileCacheStorage ¶ added in v1.6.9
func NewFileCacheStorage(path string) *FileCacheStorage
func (*FileCacheStorage) Close ¶ added in v1.6.9
func (f *FileCacheStorage) Close() error
func (*FileCacheStorage) Read ¶ added in v1.6.9
func (f *FileCacheStorage) Read() (*InputPeerCache, error)
func (*FileCacheStorage) SetPath ¶ added in v1.7.0
func (f *FileCacheStorage) SetPath(path string)
SetPath updates the storage path (useful for user-specific cache files)
func (*FileCacheStorage) Write ¶ added in v1.6.9
func (f *FileCacheStorage) Write(peers *InputPeerCache) error
type FileLocationOptions ¶ added in v1.5.4
type Filter ¶
type Filter struct {
Users []int64
Chats []int64
Channels []int64
MinLength int
MaxLength int
MediaTypes []string
Func func(m *NewMessage) bool
FuncCallback func(c *CallbackQuery) bool
// contains filtered or unexported fields
}
func AnyFilter ¶ added in v1.7.0
AnyFilter creates a filter that matches if any of the provided filters match
func Custom ¶ added in v1.6.10
func Custom(fn func(*NewMessage) bool) Filter
Custom allows any func(m *NewMessage) bool as a filter
func CustomCallback ¶ added in v1.6.10
func CustomCallback(fn func(*CallbackQuery) bool) Filter
CustomCallback allows any func(c *CallbackQuery) bool as a filter
func F ¶ added in v1.6.10
func F(flags FilterFlag) Filter
func TextMaxLen ¶ added in v1.6.10
func TextMinLen ¶ added in v1.6.10
func (Filter) CustomCB ¶ added in v1.6.10
func (f Filter) CustomCB(fn func(*CallbackQuery) bool) Filter
func (Filter) Flag ¶ added in v1.6.10
func (f Filter) Flag(flag FilterFlag) Filter
func (Filter) FromChannels ¶ added in v1.6.7
func (Filter) WithFunc ¶ added in v1.6.10
func (f Filter) WithFunc(fn func(*NewMessage) bool) Filter
func (Filter) WithMediaTypes ¶ added in v1.6.7
type FilterFlag ¶ added in v1.6.10
type FilterFlag uint32
const ( FPrivate FilterFlag = 1 << iota FGroup FChannel FMedia FCommand FReply FForward FFromBot FBlacklist FMention FOutgoing FIncoming FEdited FPhoto FVideo FDocument FAudio FSticker FAnimation FVoice FVideoNote FContact FLocation FVenue FPoll FText )
func (FilterFlag) Has ¶ added in v1.6.10
func (f FilterFlag) Has(flag FilterFlag) bool
type Folder ¶
type Folder struct {
AutofillNewBroadcasts bool `tl:"flag:0,encoded_in_bitflags"`
AutofillPublicGroups bool `tl:"flag:1,encoded_in_bitflags"`
AutofillNewCorrespondents bool `tl:"flag:2,encoded_in_bitflags"`
ID int32
Title string
Photo ChatPhoto `tl:"flag:3"`
}
Folder
type FoldersEditPeerFoldersParams ¶
type FoldersEditPeerFoldersParams struct {
FolderPeers []*InputFolderPeer
}
func (*FoldersEditPeerFoldersParams) CRC ¶
func (*FoldersEditPeerFoldersParams) CRC() uint32
type ForumTopic ¶
type ForumTopicDeleted ¶
type ForumTopicDeleted struct {
ID int32 // The ID of the deleted forum topic.
}
Represents a deleted forum topic.
func (*ForumTopicDeleted) CRC ¶
func (*ForumTopicDeleted) CRC() uint32
func (*ForumTopicDeleted) ImplementsForumTopic ¶
func (*ForumTopicDeleted) ImplementsForumTopic()
type ForumTopicObj ¶
type ForumTopicObj struct {
My bool `tl:"flag:1,encoded_in_bitflags"`
Closed bool `tl:"flag:2,encoded_in_bitflags"`
Pinned bool `tl:"flag:3,encoded_in_bitflags"`
Short bool `tl:"flag:5,encoded_in_bitflags"`
Hidden bool `tl:"flag:6,encoded_in_bitflags"`
TitleMissing bool `tl:"flag:7,encoded_in_bitflags"`
ID int32
Date int32
Peer Peer
Title string
IconColor int32
IconEmojiID int64 `tl:"flag:0"`
TopMessage int32
ReadInboxMaxID int32
ReadOutboxMaxID int32
UnreadCount int32
UnreadMentionsCount int32
UnreadReactionsCount int32
FromID Peer
NotifySettings *PeerNotifySettings
Draft DraftMessage `tl:"flag:4"`
}
Represents a forum topic.
func (*ForumTopicObj) CRC ¶
func (*ForumTopicObj) CRC() uint32
func (*ForumTopicObj) FlagIndex ¶
func (*ForumTopicObj) FlagIndex() int
func (*ForumTopicObj) ImplementsForumTopic ¶
func (*ForumTopicObj) ImplementsForumTopic()
type ForwardOptions ¶
type ForwardOptions struct {
HideCaption bool // Remove original caption from forwarded message
HideAuthor bool // Hide original sender (forward as copy)
Silent bool // Send without notification sound
Noforwards bool // Restrict further forwarding of this message
AllowPaidFloodSkip bool // Skip flood wait using paid priority
Background bool // Send in background without waiting for response
WithMyScore bool // Include your game score when forwarding games
SendAs any // Send as channel or linked chat (peer ID or username)
ScheduleDate int32 // Unix timestamp to schedule forward delivery
ScheduleRepeatPeriod int32 // Repeat interval in seconds for scheduled forward
ReplyTo *InputReplyToMessage // Full reply configuration with quote support
ReplyID int32 // Simple reply to message by ID
TopicID int32 // Forum topic ID to forward message to
AllowPaidStars int64 // Stars amount for paid content access
VideoTimestamp int32 // Start timestamp in seconds for video messages
SuggestedPost *SuggestedPost // Channel post suggestion configuration
}
type FoundStory ¶
A story found using global story search.
func (*FoundStory) CRC ¶
func (*FoundStory) CRC() uint32
type FragmentCollectibleInfo ¶
type FragmentCollectibleInfo struct {
PurchaseDate int32
Currency string
Amount int64
CryptoCurrency string
CryptoAmount int64
URL string
}
Info about a fragment collectible.
func (*FragmentCollectibleInfo) CRC ¶
func (*FragmentCollectibleInfo) CRC() uint32
type FragmentGetCollectibleInfoParams ¶
type FragmentGetCollectibleInfoParams struct {
Collectible InputCollectible
}
func (*FragmentGetCollectibleInfoParams) CRC ¶
func (*FragmentGetCollectibleInfoParams) CRC() uint32
type Game ¶
type Game struct {
ID int64
AccessHash int64
ShortName string
Title string
Description string
Photo Photo
Document Document `tl:"flag:0"`
}
Indicates an already sent game
type GeoPointAddress ¶
type GeoPointAddress struct {
CountryIso2 string
State string `tl:"flag:0"`
City string `tl:"flag:1"`
Street string `tl:"flag:2"`
}
Address optionally associated to a geoPoint.
func (*GeoPointAddress) CRC ¶
func (*GeoPointAddress) CRC() uint32
func (*GeoPointAddress) FlagIndex ¶
func (*GeoPointAddress) FlagIndex() int
type GeoPointEmpty ¶
type GeoPointEmpty struct{}
Empty constructor.
func (*GeoPointEmpty) CRC ¶
func (*GeoPointEmpty) CRC() uint32
func (*GeoPointEmpty) ImplementsGeoPoint ¶
func (*GeoPointEmpty) ImplementsGeoPoint()
type GeoPointObj ¶
type GeoPointObj struct {
Long float64 // Longitude
Lat float64 // Latitude
AccessHash int64 // Access hash
AccuracyRadius int32 `tl:"flag:0"` // The estimated horizontal accuracy of the location, in meters; as defined by the sender.
}
GeoPoint.
func (*GeoPointObj) CRC ¶
func (*GeoPointObj) CRC() uint32
func (*GeoPointObj) FlagIndex ¶
func (*GeoPointObj) FlagIndex() int
func (*GeoPointObj) ImplementsGeoPoint ¶
func (*GeoPointObj) ImplementsGeoPoint()
type GlobalPrivacySettings ¶
type GlobalPrivacySettings struct {
ArchiveAndMuteNewNoncontactPeers bool `tl:"flag:0,encoded_in_bitflags"`
KeepArchivedUnmuted bool `tl:"flag:1,encoded_in_bitflags"`
KeepArchivedFolders bool `tl:"flag:2,encoded_in_bitflags"`
HideReadMarks bool `tl:"flag:3,encoded_in_bitflags"`
NewNoncontactPeersRequirePremium bool `tl:"flag:4,encoded_in_bitflags"`
DisplayGiftsButton bool `tl:"flag:7,encoded_in_bitflags"`
NoncontactPeersPaidStars int64 `tl:"flag:5"`
DisallowedGifts *DisallowedGiftsSettings `tl:"flag:6"`
}
Global privacy settings
func (*GlobalPrivacySettings) CRC ¶
func (*GlobalPrivacySettings) CRC() uint32
func (*GlobalPrivacySettings) FlagIndex ¶
func (*GlobalPrivacySettings) FlagIndex() int
type GroupCallDiscarded ¶
type GroupCallDiscarded struct {
ID int64 // Group call ID
AccessHash int64 // Group call access hash
Duration int32 // Group call duration
}
An ended group call
func (*GroupCallDiscarded) CRC ¶
func (*GroupCallDiscarded) CRC() uint32
func (*GroupCallDiscarded) ImplementsGroupCall ¶
func (*GroupCallDiscarded) ImplementsGroupCall()
type GroupCallDonor ¶ added in v1.6.7
type GroupCallDonor struct {
Top bool `tl:"flag:0,encoded_in_bitflags"`
My bool `tl:"flag:1,encoded_in_bitflags"`
PeerID Peer `tl:"flag:3"`
Stars int64
}
func (*GroupCallDonor) CRC ¶ added in v1.6.7
func (*GroupCallDonor) CRC() uint32
func (*GroupCallDonor) FlagIndex ¶ added in v1.6.7
func (*GroupCallDonor) FlagIndex() int
type GroupCallMessage ¶ added in v1.6.7
type GroupCallMessage struct {
FromAdmin bool `tl:"flag:1,encoded_in_bitflags"`
ID int32
FromID Peer
Date int32
Message *TextWithEntities
PaidMessageStars int64 `tl:"flag:0"`
}
func (*GroupCallMessage) CRC ¶ added in v1.6.7
func (*GroupCallMessage) CRC() uint32
func (*GroupCallMessage) FlagIndex ¶ added in v1.6.7
func (*GroupCallMessage) FlagIndex() int
type GroupCallObj ¶
type GroupCallObj struct {
JoinMuted bool `tl:"flag:1,encoded_in_bitflags"`
CanChangeJoinMuted bool `tl:"flag:2,encoded_in_bitflags"`
JoinDateAsc bool `tl:"flag:6,encoded_in_bitflags"`
ScheduleStartSubscribed bool `tl:"flag:8,encoded_in_bitflags"`
CanStartVideo bool `tl:"flag:9,encoded_in_bitflags"`
RecordVideoActive bool `tl:"flag:11,encoded_in_bitflags"`
RtmpStream bool `tl:"flag:12,encoded_in_bitflags"`
ListenersHidden bool `tl:"flag:13,encoded_in_bitflags"`
Conference bool `tl:"flag:14,encoded_in_bitflags"`
Creator bool `tl:"flag:15,encoded_in_bitflags"`
MessagesEnabled bool `tl:"flag:17,encoded_in_bitflags"`
CanChangeMessagesEnabled bool `tl:"flag:18,encoded_in_bitflags"`
Min bool `tl:"flag:19,encoded_in_bitflags"`
ID int64
AccessHash int64
ParticipantsCount int32
Title string `tl:"flag:3"`
StreamDcID int32 `tl:"flag:4"`
RecordStartDate int32 `tl:"flag:5"`
ScheduleDate int32 `tl:"flag:7"`
UnmutedVideoCount int32 `tl:"flag:10"`
UnmutedVideoLimit int32
Version int32
InviteLink string `tl:"flag:16"`
SendPaidMessagesStars int64 `tl:"flag:20"`
DefaultSendAs Peer `tl:"flag:21"`
}
Info about a group call or livestream
func (*GroupCallObj) CRC ¶
func (*GroupCallObj) CRC() uint32
func (*GroupCallObj) FlagIndex ¶
func (*GroupCallObj) FlagIndex() int
func (*GroupCallObj) ImplementsGroupCall ¶
func (*GroupCallObj) ImplementsGroupCall()
type GroupCallParticipant ¶
type GroupCallParticipant struct {
Muted bool `tl:"flag:0,encoded_in_bitflags"`
Left bool `tl:"flag:1,encoded_in_bitflags"`
CanSelfUnmute bool `tl:"flag:2,encoded_in_bitflags"`
JustJoined bool `tl:"flag:4,encoded_in_bitflags"`
Versioned bool `tl:"flag:5,encoded_in_bitflags"`
Min bool `tl:"flag:8,encoded_in_bitflags"`
MutedByYou bool `tl:"flag:9,encoded_in_bitflags"`
VolumeByAdmin bool `tl:"flag:10,encoded_in_bitflags"`
Self bool `tl:"flag:12,encoded_in_bitflags"`
VideoJoined bool `tl:"flag:15,encoded_in_bitflags"`
Peer Peer
Date int32
ActiveDate int32 `tl:"flag:3"`
Source int32
Volume int32 `tl:"flag:7,explicit"`
About string `tl:"flag:11"`
RaiseHandRating int64 `tl:"flag:13"`
Video *GroupCallParticipantVideo `tl:"flag:6"`
Presentation *GroupCallParticipantVideo `tl:"flag:14"`
PaidStarsTotal int64 `tl:"flag:16"`
}
Info about a group call participant
func (*GroupCallParticipant) CRC ¶
func (*GroupCallParticipant) CRC() uint32
func (*GroupCallParticipant) FlagIndex ¶
func (*GroupCallParticipant) FlagIndex() int
type GroupCallParticipantVideo ¶
type GroupCallParticipantVideo struct {
Paused bool `tl:"flag:0,encoded_in_bitflags"`
Endpoint string
SourceGroups []*GroupCallParticipantVideoSourceGroup
AudioSource int32 `tl:"flag:1"`
}
Info about a video stream
func (*GroupCallParticipantVideo) CRC ¶
func (*GroupCallParticipantVideo) CRC() uint32
func (*GroupCallParticipantVideo) FlagIndex ¶
func (*GroupCallParticipantVideo) FlagIndex() int
type GroupCallParticipantVideoSourceGroup ¶
Describes a group of video synchronization source identifiers
func (*GroupCallParticipantVideoSourceGroup) CRC ¶
func (*GroupCallParticipantVideoSourceGroup) CRC() uint32
type GroupCallStream ¶ added in v1.6.0
type GroupCallStream struct {
Channels []*GroupCallStreamChannel
// contains filtered or unexported fields
}
func (*GroupCallStream) GetChannel ¶ added in v1.6.0
func (s *GroupCallStream) GetChannel() *GroupCallStreamChannel
func (*GroupCallStream) GetScale ¶ added in v1.6.0
func (s *GroupCallStream) GetScale() int32
func (*GroupCallStream) GetTS ¶ added in v1.6.0
func (s *GroupCallStream) GetTS() int64
func (*GroupCallStream) NextChunk ¶ added in v1.6.0
func (s *GroupCallStream) NextChunk() ([]byte, error)
func (*GroupCallStream) SetChannel ¶ added in v1.6.0
func (s *GroupCallStream) SetChannel(channel int32)
func (*GroupCallStream) SetScale ¶ added in v1.6.0
func (s *GroupCallStream) SetScale(scale int32)
func (*GroupCallStream) SetTS ¶ added in v1.6.0
func (s *GroupCallStream) SetTS(ts int64)
type GroupCallStreamChannel ¶
Info about an RTMP stream in a group call or livestream
func (*GroupCallStreamChannel) CRC ¶
func (*GroupCallStreamChannel) CRC() uint32
type HandlerMetrics ¶ added in v1.7.0
func (*HandlerMetrics) AvgDuration ¶ added in v1.7.0
func (m *HandlerMetrics) AvgDuration() time.Duration
func (*HandlerMetrics) ErrorRate ¶ added in v1.7.0
func (m *HandlerMetrics) ErrorRate() float64
func (*HandlerMetrics) RecordCall ¶ added in v1.7.0
func (m *HandlerMetrics) RecordCall(duration time.Duration, err error)
type HelpAcceptTermsOfServiceParams ¶
type HelpAcceptTermsOfServiceParams struct {
ID *DataJson
}
func (*HelpAcceptTermsOfServiceParams) CRC ¶
func (*HelpAcceptTermsOfServiceParams) CRC() uint32
type HelpAppConfig ¶
type HelpAppConfigNotModified ¶
type HelpAppConfigNotModified struct{}
The client configuration parameters haven't changed
func (*HelpAppConfigNotModified) CRC ¶
func (*HelpAppConfigNotModified) CRC() uint32
func (*HelpAppConfigNotModified) ImplementsHelpAppConfig ¶
func (*HelpAppConfigNotModified) ImplementsHelpAppConfig()
type HelpAppConfigObj ¶
type HelpAppConfigObj struct {
Hash int32 // Hash used for caching, for more info click here
Config JsonValue // Client configuration parameters
}
Contains various client configuration parameters
func (*HelpAppConfigObj) CRC ¶
func (*HelpAppConfigObj) CRC() uint32
func (*HelpAppConfigObj) ImplementsHelpAppConfig ¶
func (*HelpAppConfigObj) ImplementsHelpAppConfig()
type HelpAppUpdate ¶
type HelpAppUpdateObj ¶
type HelpAppUpdateObj struct {
CanNotSkip bool `tl:"flag:0,encoded_in_bitflags"` // Unskippable, the new info must be shown to the user (with a popup or something else)
ID int32 // Update ID
Version string // New version name
Text string // Text description of the update
Entities []MessageEntity // Message entities for styled text
Document Document `tl:"flag:1"` // Application binary
URL string `tl:"flag:2"` // Application download URL
Sticker Document `tl:"flag:3"` // Associated sticker
}
An update is available for the application.
func (*HelpAppUpdateObj) CRC ¶
func (*HelpAppUpdateObj) CRC() uint32
func (*HelpAppUpdateObj) FlagIndex ¶
func (*HelpAppUpdateObj) FlagIndex() int
func (*HelpAppUpdateObj) ImplementsHelpAppUpdate ¶
func (*HelpAppUpdateObj) ImplementsHelpAppUpdate()
type HelpCountriesList ¶
type HelpCountriesListNotModified ¶
type HelpCountriesListNotModified struct{}
The country list has not changed
func (*HelpCountriesListNotModified) CRC ¶
func (*HelpCountriesListNotModified) CRC() uint32
func (*HelpCountriesListNotModified) ImplementsHelpCountriesList ¶
func (*HelpCountriesListNotModified) ImplementsHelpCountriesList()
type HelpCountriesListObj ¶
type HelpCountriesListObj struct {
Countries []*HelpCountry // Name, ISO code, localized name and phone codes/patterns of all available countries
Hash int32 // Hash used for caching, for more info click here
}
Name, ISO code, localized name and phone codes/patterns of all available countries
func (*HelpCountriesListObj) CRC ¶
func (*HelpCountriesListObj) CRC() uint32
func (*HelpCountriesListObj) ImplementsHelpCountriesList ¶
func (*HelpCountriesListObj) ImplementsHelpCountriesList()
type HelpCountry ¶
type HelpCountry struct {
Hidden bool `tl:"flag:0,encoded_in_bitflags"`
Iso2 string
DefaultName string
Name string `tl:"flag:1"`
CountryCodes []*HelpCountryCode
}
Name, ISO code, localized name and phone codes/patterns of a specific country
func (*HelpCountry) CRC ¶
func (*HelpCountry) CRC() uint32
func (*HelpCountry) FlagIndex ¶
func (*HelpCountry) FlagIndex() int
type HelpCountryCode ¶
type HelpCountryCode struct {
CountryCode string
Prefixes []string `tl:"flag:0"`
Patterns []string `tl:"flag:1"`
}
Country code and phone number pattern of a specific country
func (*HelpCountryCode) CRC ¶
func (*HelpCountryCode) CRC() uint32
func (*HelpCountryCode) FlagIndex ¶
func (*HelpCountryCode) FlagIndex() int
type HelpDeepLinkInfo ¶
type HelpDeepLinkInfoEmpty ¶
type HelpDeepLinkInfoEmpty struct{}
Deep link info empty
func (*HelpDeepLinkInfoEmpty) CRC ¶
func (*HelpDeepLinkInfoEmpty) CRC() uint32
func (*HelpDeepLinkInfoEmpty) ImplementsHelpDeepLinkInfo ¶
func (*HelpDeepLinkInfoEmpty) ImplementsHelpDeepLinkInfo()
type HelpDeepLinkInfoObj ¶
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
Entities []MessageEntity `tl:"flag:1"` // Message entities for styled text
}
Deep link info, see the here for more details
func (*HelpDeepLinkInfoObj) CRC ¶
func (*HelpDeepLinkInfoObj) CRC() uint32
func (*HelpDeepLinkInfoObj) FlagIndex ¶
func (*HelpDeepLinkInfoObj) FlagIndex() int
func (*HelpDeepLinkInfoObj) ImplementsHelpDeepLinkInfo ¶
func (*HelpDeepLinkInfoObj) ImplementsHelpDeepLinkInfo()
type HelpDismissSuggestionParams ¶
func (*HelpDismissSuggestionParams) CRC ¶
func (*HelpDismissSuggestionParams) CRC() uint32
type HelpEditUserInfoParams ¶
type HelpEditUserInfoParams struct {
UserID InputUser
Message string
Entities []MessageEntity
}
func (*HelpEditUserInfoParams) CRC ¶
func (*HelpEditUserInfoParams) CRC() uint32
type HelpGetAppConfigParams ¶
type HelpGetAppConfigParams struct {
Hash int32
}
func (*HelpGetAppConfigParams) CRC ¶
func (*HelpGetAppConfigParams) CRC() uint32
type HelpGetAppUpdateParams ¶
type HelpGetAppUpdateParams struct {
Source string
}
func (*HelpGetAppUpdateParams) CRC ¶
func (*HelpGetAppUpdateParams) CRC() uint32
type HelpGetCdnConfigParams ¶
type HelpGetCdnConfigParams struct{}
func (*HelpGetCdnConfigParams) CRC ¶
func (*HelpGetCdnConfigParams) CRC() uint32
type HelpGetConfigParams ¶
type HelpGetConfigParams struct{}
func (*HelpGetConfigParams) CRC ¶
func (*HelpGetConfigParams) CRC() uint32
type HelpGetCountriesListParams ¶
func (*HelpGetCountriesListParams) CRC ¶
func (*HelpGetCountriesListParams) CRC() uint32
type HelpGetDeepLinkInfoParams ¶
type HelpGetDeepLinkInfoParams struct {
Path string
}
func (*HelpGetDeepLinkInfoParams) CRC ¶
func (*HelpGetDeepLinkInfoParams) CRC() uint32
type HelpGetInviteTextParams ¶
type HelpGetInviteTextParams struct{}
func (*HelpGetInviteTextParams) CRC ¶
func (*HelpGetInviteTextParams) CRC() uint32
type HelpGetNearestDcParams ¶
type HelpGetNearestDcParams struct{}
func (*HelpGetNearestDcParams) CRC ¶
func (*HelpGetNearestDcParams) CRC() uint32
type HelpGetPassportConfigParams ¶
type HelpGetPassportConfigParams struct {
Hash int32
}
func (*HelpGetPassportConfigParams) CRC ¶
func (*HelpGetPassportConfigParams) CRC() uint32
type HelpGetPeerColorsParams ¶
type HelpGetPeerColorsParams struct {
Hash int32
}
func (*HelpGetPeerColorsParams) CRC ¶
func (*HelpGetPeerColorsParams) CRC() uint32
type HelpGetPeerProfileColorsParams ¶
type HelpGetPeerProfileColorsParams struct {
Hash int32
}
func (*HelpGetPeerProfileColorsParams) CRC ¶
func (*HelpGetPeerProfileColorsParams) CRC() uint32
type HelpGetPremiumPromoParams ¶
type HelpGetPremiumPromoParams struct{}
func (*HelpGetPremiumPromoParams) CRC ¶
func (*HelpGetPremiumPromoParams) CRC() uint32
type HelpGetPromoDataParams ¶
type HelpGetPromoDataParams struct{}
func (*HelpGetPromoDataParams) CRC ¶
func (*HelpGetPromoDataParams) CRC() uint32
type HelpGetRecentMeUrlsParams ¶
type HelpGetRecentMeUrlsParams struct {
Referer string
}
func (*HelpGetRecentMeUrlsParams) CRC ¶
func (*HelpGetRecentMeUrlsParams) CRC() uint32
type HelpGetSupportNameParams ¶
type HelpGetSupportNameParams struct{}
func (*HelpGetSupportNameParams) CRC ¶
func (*HelpGetSupportNameParams) CRC() uint32
type HelpGetSupportParams ¶
type HelpGetSupportParams struct{}
func (*HelpGetSupportParams) CRC ¶
func (*HelpGetSupportParams) CRC() uint32
type HelpGetTermsOfServiceUpdateParams ¶
type HelpGetTermsOfServiceUpdateParams struct{}
func (*HelpGetTermsOfServiceUpdateParams) CRC ¶
func (*HelpGetTermsOfServiceUpdateParams) CRC() uint32
type HelpGetTimezonesListParams ¶
type HelpGetTimezonesListParams struct {
Hash int32
}
func (*HelpGetTimezonesListParams) CRC ¶
func (*HelpGetTimezonesListParams) CRC() uint32
type HelpGetUserInfoParams ¶
type HelpGetUserInfoParams struct {
UserID InputUser
}
func (*HelpGetUserInfoParams) CRC ¶
func (*HelpGetUserInfoParams) CRC() uint32
type HelpHidePromoDataParams ¶
type HelpHidePromoDataParams struct {
Peer InputPeer
}
func (*HelpHidePromoDataParams) CRC ¶
func (*HelpHidePromoDataParams) CRC() uint32
type HelpInviteText ¶
type HelpInviteText struct {
Message string
}
Text of a text message with an invitation to install Telegram.
func (*HelpInviteText) CRC ¶
func (*HelpInviteText) CRC() uint32
type HelpNoAppUpdate ¶
type HelpNoAppUpdate struct{}
No updates are available for the application.
func (*HelpNoAppUpdate) CRC ¶
func (*HelpNoAppUpdate) CRC() uint32
func (*HelpNoAppUpdate) ImplementsHelpAppUpdate ¶
func (*HelpNoAppUpdate) ImplementsHelpAppUpdate()
type HelpPassportConfig ¶
type HelpPassportConfigNotModified ¶
type HelpPassportConfigNotModified struct{}
Password configuration not modified
func (*HelpPassportConfigNotModified) CRC ¶
func (*HelpPassportConfigNotModified) CRC() uint32
func (*HelpPassportConfigNotModified) ImplementsHelpPassportConfig ¶
func (*HelpPassportConfigNotModified) ImplementsHelpPassportConfig()
type HelpPassportConfigObj ¶
type HelpPassportConfigObj struct {
Hash int32 // Hash used for caching, for more info click here
CountriesLangs *DataJson // Localization
}
Telegram passport configuration
func (*HelpPassportConfigObj) CRC ¶
func (*HelpPassportConfigObj) CRC() uint32
func (*HelpPassportConfigObj) ImplementsHelpPassportConfig ¶
func (*HelpPassportConfigObj) ImplementsHelpPassportConfig()
type HelpPeerColorOption ¶
type HelpPeerColorOption struct {
Hidden bool `tl:"flag:0,encoded_in_bitflags"`
ColorID int32
Colors HelpPeerColorSet `tl:"flag:1"`
DarkColors HelpPeerColorSet `tl:"flag:2"`
ChannelMinLevel int32 `tl:"flag:3"`
GroupMinLevel int32 `tl:"flag:4"`
}
Contains info about a color palette.
func (*HelpPeerColorOption) CRC ¶
func (*HelpPeerColorOption) CRC() uint32
func (*HelpPeerColorOption) FlagIndex ¶
func (*HelpPeerColorOption) FlagIndex() int
type HelpPeerColorProfileSet ¶
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.
StoryColors []int32 // A list of 2 colors in RGB format describing the colors of the gradient used for the unread active story indicator around the profile photo.
}
Represents a color palette that can be used in profile pages.
func (*HelpPeerColorProfileSet) CRC ¶
func (*HelpPeerColorProfileSet) CRC() uint32
func (*HelpPeerColorProfileSet) ImplementsHelpPeerColorSet ¶
func (*HelpPeerColorProfileSet) ImplementsHelpPeerColorSet()
type HelpPeerColorSet ¶
type HelpPeerColorSetObj ¶
type HelpPeerColorSetObj struct {
Colors []int32 // A list of 1-3 colors in RGB format, describing the accent color.
}
Represents a color palette that can be used in message accents.
func (*HelpPeerColorSetObj) CRC ¶
func (*HelpPeerColorSetObj) CRC() uint32
func (*HelpPeerColorSetObj) ImplementsHelpPeerColorSet ¶
func (*HelpPeerColorSetObj) ImplementsHelpPeerColorSet()
type HelpPeerColors ¶
type HelpPeerColorsNotModified ¶
type HelpPeerColorsNotModified struct{}
The list of color palettes has not changed.
func (*HelpPeerColorsNotModified) CRC ¶
func (*HelpPeerColorsNotModified) CRC() uint32
func (*HelpPeerColorsNotModified) ImplementsHelpPeerColors ¶
func (*HelpPeerColorsNotModified) ImplementsHelpPeerColors()
type HelpPeerColorsObj ¶
type HelpPeerColorsObj struct {
Hash int32 // Hash used for caching, for more info click here
Colors []*HelpPeerColorOption // Usable color palettes.
}
Contains info about multiple color palettes.
func (*HelpPeerColorsObj) CRC ¶
func (*HelpPeerColorsObj) CRC() uint32
func (*HelpPeerColorsObj) ImplementsHelpPeerColors ¶
func (*HelpPeerColorsObj) ImplementsHelpPeerColors()
type HelpPremiumPromo ¶
type HelpPremiumPromo struct {
StatusText string
StatusEntities []MessageEntity
VideoSections []string
Videos []Document
PeriodOptions []*PremiumSubscriptionOption
Users []User
}
Telegram Premium promotion information
func (*HelpPremiumPromo) CRC ¶
func (*HelpPremiumPromo) CRC() uint32
type HelpPromoData ¶
type HelpPromoDataEmpty ¶
type HelpPromoDataEmpty struct {
Expires int32 // Re-fetch PSA/MTProxy info after the specified number of seconds
}
No PSA/MTProxy info is available
func (*HelpPromoDataEmpty) CRC ¶
func (*HelpPromoDataEmpty) CRC() uint32
func (*HelpPromoDataEmpty) ImplementsHelpPromoData ¶
func (*HelpPromoDataEmpty) ImplementsHelpPromoData()
type HelpPromoDataObj ¶
type HelpPromoDataObj struct {
Proxy bool `tl:"flag:0,encoded_in_bitflags"` // Set when connecting using an MTProxy that has configured an associated peer (that will be passed in `peer`, i.e. the channel that sponsored the MTProxy) that should be pinned on top of the chat list.
Expires int32 // Unixtime when to re-invoke help.getPromoData.
Peer Peer `tl:"flag:3"` // MTProxy/PSA peer
PsaType string `tl:"flag:1"` // For Public Service Announcement `peer`s, indicates the type of the PSA.
PsaMessage string `tl:"flag:2"` // For Public Service Announcement `peer`s, contains the PSA itself.
PendingSuggestions []string // Contains a list of pending suggestions.
DismissedSuggestions []string // Contains a list of inverted suggestions.
CustomPendingSuggestion *PendingSuggestion `tl:"flag:4"` // Contains a list of custom pending suggestions.
Chats []Chat // Chat info
Users []User // User info
}
A set of useful suggestions and a PSA/MTProxy sponsored peer
func (*HelpPromoDataObj) CRC ¶
func (*HelpPromoDataObj) CRC() uint32
func (*HelpPromoDataObj) FlagIndex ¶
func (*HelpPromoDataObj) FlagIndex() int
func (*HelpPromoDataObj) ImplementsHelpPromoData ¶
func (*HelpPromoDataObj) ImplementsHelpPromoData()
type HelpRecentMeUrls ¶
type HelpRecentMeUrls struct {
Urls []RecentMeURL
Chats []Chat
Users []User
}
Recent t.me URLs
func (*HelpRecentMeUrls) CRC ¶
func (*HelpRecentMeUrls) CRC() uint32
type HelpSaveAppLogParams ¶
type HelpSaveAppLogParams struct {
Events []*InputAppEvent
}
func (*HelpSaveAppLogParams) CRC ¶
func (*HelpSaveAppLogParams) CRC() uint32
type HelpSetBotUpdatesStatusParams ¶
func (*HelpSetBotUpdatesStatusParams) CRC ¶
func (*HelpSetBotUpdatesStatusParams) CRC() uint32
type HelpSupportName ¶
type HelpSupportName struct {
Name string
}
Localized name for telegram support
func (*HelpSupportName) CRC ¶
func (*HelpSupportName) CRC() uint32
type HelpTermsOfService ¶
type HelpTermsOfService struct {
Popup bool `tl:"flag:0,encoded_in_bitflags"`
ID *DataJson
Text string
Entities []MessageEntity
MinAgeConfirm int32 `tl:"flag:1"`
}
Info about the latest telegram Terms Of Service
func (*HelpTermsOfService) CRC ¶
func (*HelpTermsOfService) CRC() uint32
func (*HelpTermsOfService) FlagIndex ¶
func (*HelpTermsOfService) FlagIndex() int
type HelpTermsOfServiceUpdateEmpty ¶
type HelpTermsOfServiceUpdateEmpty struct {
Expires int32 // New TOS updates will have to be queried using help.getTermsOfServiceUpdate in `expires` seconds
}
No changes were made to telegram's terms of service
func (*HelpTermsOfServiceUpdateEmpty) CRC ¶
func (*HelpTermsOfServiceUpdateEmpty) CRC() uint32
func (*HelpTermsOfServiceUpdateEmpty) ImplementsHelpTermsOfServiceUpdate ¶
func (*HelpTermsOfServiceUpdateEmpty) ImplementsHelpTermsOfServiceUpdate()
type HelpTermsOfServiceUpdateObj ¶
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
}
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"
func (*HelpTermsOfServiceUpdateObj) CRC ¶
func (*HelpTermsOfServiceUpdateObj) CRC() uint32
func (*HelpTermsOfServiceUpdateObj) ImplementsHelpTermsOfServiceUpdate ¶
func (*HelpTermsOfServiceUpdateObj) ImplementsHelpTermsOfServiceUpdate()
type HelpTimezonesList ¶
type HelpTimezonesListNotModified ¶
type HelpTimezonesListNotModified struct{}
The timezone list has not changed.
func (*HelpTimezonesListNotModified) CRC ¶
func (*HelpTimezonesListNotModified) CRC() uint32
func (*HelpTimezonesListNotModified) ImplementsHelpTimezonesList ¶
func (*HelpTimezonesListNotModified) ImplementsHelpTimezonesList()
type HelpTimezonesListObj ¶
type HelpTimezonesListObj struct {
Timezones []*Timezone // Timezones
Hash int32 // Hash used for caching, for more info click here
}
Timezone information that may be used elsewhere in the API, such as to set Telegram Business opening hours.
func (*HelpTimezonesListObj) CRC ¶
func (*HelpTimezonesListObj) CRC() uint32
func (*HelpTimezonesListObj) ImplementsHelpTimezonesList ¶
func (*HelpTimezonesListObj) ImplementsHelpTimezonesList()
type HelpUserInfo ¶
type HelpUserInfoEmpty ¶
type HelpUserInfoEmpty struct{}
Internal use
func (*HelpUserInfoEmpty) CRC ¶
func (*HelpUserInfoEmpty) CRC() uint32
func (*HelpUserInfoEmpty) ImplementsHelpUserInfo ¶
func (*HelpUserInfoEmpty) ImplementsHelpUserInfo()
type HelpUserInfoObj ¶
type HelpUserInfoObj struct {
Message string // Info
Entities []MessageEntity // Message entities for styled text
Author string // Author
Date int32 // Date
}
Internal use
func (*HelpUserInfoObj) CRC ¶
func (*HelpUserInfoObj) CRC() uint32
func (*HelpUserInfoObj) ImplementsHelpUserInfo ¶
func (*HelpUserInfoObj) ImplementsHelpUserInfo()
type HistoryOption ¶
type HistoryOption struct {
Limit int32 // limit of the messages to get
Offset int32 // offset of the message to search from
OffsetDate int32 // offset date of the message to search from
MaxID int32 // maximum ID of the message
MinID int32 // minimum ID of the message
SleepThresholdMs int32 // sleep threshold in milliseconds (in-between chunked operations)
}
type HttpProxy ¶ added in v1.6.7
func (*HttpProxy) GetPassword ¶ added in v1.6.7
func (*HttpProxy) GetUsername ¶ added in v1.6.7
type ImportedContact ¶
Successfully imported contact.
func (*ImportedContact) CRC ¶
func (*ImportedContact) CRC() uint32
type InitConnectionParams ¶
type InitConnectionParams struct {
ApiID int32 // Application identifier (see. App configuration)
DeviceModel string // Device model
SystemVersion string // Operation system version
AppVersion string // Application version
SystemLangCode string // Code for the language used on the device's OS, ISO 639-1 standard
LangPack string // Language pack to use
LangCode string // Code for the language used on the client, ISO 639-1 standard
Proxy *InputClientProxy `tl:"flag:0"` // Info about an MTProto proxy
Params JsonValue `tl:"flag:1"` // Additional initConnection parameters. For now, only the tz_offset field is supported, for specifying timezone offset in seconds.
Query tl.Object // The query itself
}
func (*InitConnectionParams) CRC ¶
func (*InitConnectionParams) CRC() uint32
func (*InitConnectionParams) FlagIndex ¶
func (*InitConnectionParams) FlagIndex() int
type InlineBotSwitchPm ¶
The bot requested the user to message them in private
func (*InlineBotSwitchPm) CRC ¶
func (*InlineBotSwitchPm) CRC() uint32
type InlineBotWebView ¶
Specifies an inline mode mini app button, shown on top of the inline query results list.
func (*InlineBotWebView) CRC ¶
func (*InlineBotWebView) CRC() uint32
type InlineBuilder ¶
type InlineBuilder struct {
Client *Client
QueryID int64
InlineResults []InputBotInlineResult
// contains filtered or unexported fields
}
func (*InlineBuilder) Answer ¶ added in v1.7.0
func (i *InlineBuilder) Answer(options ...*InlineSendOptions) (bool, error)
Answer sends the inline query results to Telegram
func (*InlineBuilder) Article ¶
func (i *InlineBuilder) Article(title, description, text string, options ...*ArticleOptions) *InlineBuilder
func (*InlineBuilder) CacheTime ¶ added in v1.7.0
func (i *InlineBuilder) CacheTime(seconds int32) *InlineBuilder
CacheTime sets how long Telegram should cache the results (in seconds)
func (*InlineBuilder) Document ¶
func (i *InlineBuilder) Document(document any, options ...*ArticleOptions) *InlineBuilder
func (*InlineBuilder) Error ¶ added in v1.7.0
func (i *InlineBuilder) Error() error
Error returns the first error encountered during result building
func (*InlineBuilder) Game ¶
func (i *InlineBuilder) Game(ID, ShortName string, options ...*ArticleOptions) *InlineBuilder
func (*InlineBuilder) IsPersonal ¶ added in v1.7.0
func (i *InlineBuilder) IsPersonal(personal bool) *InlineBuilder
IsPersonal marks results as personal (not cached for all users)
func (*InlineBuilder) MaxResults ¶ added in v1.7.0
func (i *InlineBuilder) MaxResults(max int32) *InlineBuilder
MaxResults limits the number of results (Note: Telegram has a 50 result limit)
func (*InlineBuilder) NextOffset ¶ added in v1.7.0
func (i *InlineBuilder) NextOffset(offset string) *InlineBuilder
NextOffset sets the offset for pagination
func (*InlineBuilder) Photo ¶
func (i *InlineBuilder) Photo(photo any, options ...*ArticleOptions) *InlineBuilder
func (*InlineBuilder) Results ¶
func (i *InlineBuilder) Results() []InputBotInlineResult
func (*InlineBuilder) SwitchPM ¶ added in v1.7.0
func (i *InlineBuilder) SwitchPM(text, startParam string) *InlineBuilder
SwitchPM adds a "Switch to PM" button
func (*InlineBuilder) WithContent ¶ added in v1.7.0
func (i *InlineBuilder) WithContent(content InputWebDocument) *InlineBuilder
WithContent sets content for the result
func (*InlineBuilder) WithContentURL ¶ added in v1.7.0
func (i *InlineBuilder) WithContentURL(url string) *InlineBuilder
WithContentURL sets content URL for the result
func (*InlineBuilder) WithDescription ¶ added in v1.7.0
func (i *InlineBuilder) WithDescription(desc string) *InlineBuilder
WithDescription sets description for the result
func (*InlineBuilder) WithID ¶ added in v1.7.0
func (i *InlineBuilder) WithID(id string) *InlineBuilder
WithID sets a custom ID for the result
func (*InlineBuilder) WithInvertMedia ¶ added in v1.7.0
func (i *InlineBuilder) WithInvertMedia(invert bool) *InlineBuilder
WithInvertMedia inverts media position for the result
func (*InlineBuilder) WithLinkPreview ¶ added in v1.7.0
func (i *InlineBuilder) WithLinkPreview(enable bool) *InlineBuilder
WithLinkPreview enables/disables link preview for the result
func (*InlineBuilder) WithReplyMarkup ¶ added in v1.7.0
func (i *InlineBuilder) WithReplyMarkup(markup ReplyMarkup) *InlineBuilder
WithReplyMarkup sets reply markup for the result
func (*InlineBuilder) WithThumb ¶ added in v1.7.0
func (i *InlineBuilder) WithThumb(thumb InputWebDocument) *InlineBuilder
WithThumb sets a thumbnail for the result
func (*InlineBuilder) WithThumbURL ¶ added in v1.7.0
func (i *InlineBuilder) WithThumbURL(url string) *InlineBuilder
WithThumbURL sets a thumbnail URL for the result
type InlineCallbackHandler ¶
type InlineCallbackHandler func(m *InlineCallbackQuery) error
type InlineCallbackQuery ¶
type InlineCallbackQuery struct {
QueryID int64
Data []byte
OriginalUpdate *UpdateInlineBotCallbackQuery
Sender *UserObj
MsgID InputBotInlineMessageID
SenderID int64
ChatInstance int64
Client *Client
GameShortName string
}
func (*InlineCallbackQuery) Answer ¶
func (b *InlineCallbackQuery) Answer(Text string, options ...*CallbackOptions) (bool, error)
func (*InlineCallbackQuery) ChatType ¶
func (b *InlineCallbackQuery) ChatType() string
func (*InlineCallbackQuery) DataString ¶
func (b *InlineCallbackQuery) DataString() string
func (*InlineCallbackQuery) Edit ¶
func (b *InlineCallbackQuery) Edit(Text any, options ...*SendOptions) (*NewMessage, error)
func (*InlineCallbackQuery) GetSender ¶
func (b *InlineCallbackQuery) GetSender() (*UserObj, error)
func (*InlineCallbackQuery) GetSenderID ¶
func (b *InlineCallbackQuery) GetSenderID() int64
func (*InlineCallbackQuery) IsChannel ¶
func (b *InlineCallbackQuery) IsChannel() bool
func (*InlineCallbackQuery) IsGroup ¶
func (b *InlineCallbackQuery) IsGroup() bool
func (*InlineCallbackQuery) IsPrivate ¶
func (b *InlineCallbackQuery) IsPrivate() bool
func (*InlineCallbackQuery) Marshal ¶
func (b *InlineCallbackQuery) Marshal(noindent ...bool) string
func (*InlineCallbackQuery) ShortName ¶
func (b *InlineCallbackQuery) ShortName() string
type InlineHandler ¶
type InlineHandler func(m *InlineQuery) error
type InlineOptions ¶
type InlineOptions struct {
Dialog any // Chat context for personalized results (peer ID or username)
Offset string // Pagination offset from previous results
Query string // Search query text sent to the bot
GeoPoint InputGeoPoint // User location for location-based results
}
type InlineQuery ¶
type InlineQuery struct {
QueryID int64
Query string
OriginalUpdate *UpdateBotInlineQuery
Sender *UserObj
SenderID int64
Offset string
PeerType InlineQueryPeerType
Client *Client
}
func (*InlineQuery) Answer ¶
func (i *InlineQuery) Answer(results []InputBotInlineResult, options ...*InlineSendOptions) (bool, error)
func (*InlineQuery) Args ¶
func (m *InlineQuery) Args() string
func (*InlineQuery) ArgsList ¶ added in v1.6.10
func (m *InlineQuery) ArgsList() []string
func (*InlineQuery) Builder ¶
func (i *InlineQuery) Builder() *InlineBuilder
func (*InlineQuery) IsChannel ¶
func (i *InlineQuery) IsChannel() bool
func (*InlineQuery) IsGroup ¶
func (i *InlineQuery) IsGroup() bool
func (*InlineQuery) IsPrivate ¶
func (i *InlineQuery) IsPrivate() bool
func (*InlineQuery) Marshal ¶
func (i *InlineQuery) Marshal(noindent ...bool) string
type InlineQueryPeerType ¶
type InlineQueryPeerType uint32
const ( InlineQueryPeerTypeBotPm InlineQueryPeerType = 0xe3b2d0c InlineQueryPeerTypeBroadcast InlineQueryPeerType = 0x6334ee9a InlineQueryPeerTypeChat InlineQueryPeerType = 0xd766c50a InlineQueryPeerTypeMegagroup InlineQueryPeerType = 0x5ec4be43 InlineQueryPeerTypePm InlineQueryPeerType = 0x833c0fac InlineQueryPeerTypeSameBotPm InlineQueryPeerType = 0x3081ed9d )
func (InlineQueryPeerType) CRC ¶
func (e InlineQueryPeerType) CRC() uint32
func (InlineQueryPeerType) String ¶
func (e InlineQueryPeerType) String() string
type InlineSend ¶
type InlineSend struct {
OriginalUpdate *UpdateBotInlineSend
Sender *UserObj
SenderID int64
ID string
MsgID InputBotInlineMessageID
Client *Client
}
func (*InlineSend) AccessHash ¶ added in v1.6.0
func (i *InlineSend) AccessHash() int64
func (*InlineSend) ChannelID ¶ added in v1.6.7
func (i *InlineSend) ChannelID() int64
func (*InlineSend) ChatID ¶ added in v1.6.0
func (i *InlineSend) ChatID() int64
func (*InlineSend) Edit ¶
func (i *InlineSend) Edit(message any, options ...*SendOptions) (*NewMessage, error)
func (*InlineSend) GetMessage ¶ added in v1.6.0
func (i *InlineSend) GetMessage() (*NewMessage, error)
func (*InlineSend) GetPeer ¶ added in v1.6.0
func (i *InlineSend) GetPeer() (InputPeer, error)
func (*InlineSend) GetReplyMessage ¶ added in v1.6.0
func (i *InlineSend) GetReplyMessage() (*NewMessage, error)
func (*InlineSend) Marshal ¶ added in v1.6.0
func (i *InlineSend) Marshal(noindent ...bool) string
func (*InlineSend) MessageID ¶ added in v1.6.0
func (i *InlineSend) MessageID() int32
type InlineSendHandler ¶ added in v1.5.3
type InlineSendHandler func(m *InlineSend) error
type InlineSendOptions ¶
type InlineSendOptions struct {
Gallery bool // Display results as a gallery grid
NextOffset string // Offset for pagination in inline results
CacheTime int32 // Cache duration in seconds (default: 60)
Private bool // Results visible only to the requesting user
SwitchPm string // Text for the "Switch to PM" above inline results
SwitchPmText string // Deep link parameter for start= in Switch to PM
}
type InputAppEvent ¶
Event that occurred in the application.
func (*InputAppEvent) CRC ¶
func (*InputAppEvent) CRC() uint32
type InputBotApp ¶
type InputBotAppID ¶
type InputBotAppID struct {
ID int64 // direct link Mini App ID.
AccessHash int64 // Access hash, obtained from the botApp constructor.
}
Used to fetch information about a direct link Mini App by its ID
func (*InputBotAppID) CRC ¶
func (*InputBotAppID) CRC() uint32
func (*InputBotAppID) ImplementsInputBotApp ¶
func (*InputBotAppID) ImplementsInputBotApp()
type InputBotAppShortName ¶
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
}
Used to fetch information about a direct link Mini App by its short name
func (*InputBotAppShortName) CRC ¶
func (*InputBotAppShortName) CRC() uint32
func (*InputBotAppShortName) ImplementsInputBotApp ¶
func (*InputBotAppShortName) ImplementsInputBotApp()
type InputBotInlineMessage ¶
type InputBotInlineMessageGame ¶
type InputBotInlineMessageGame struct {
ReplyMarkup ReplyMarkup `tl:"flag:2"` // Inline keyboard
}
A game
func (*InputBotInlineMessageGame) CRC ¶
func (*InputBotInlineMessageGame) CRC() uint32
func (*InputBotInlineMessageGame) FlagIndex ¶
func (*InputBotInlineMessageGame) FlagIndex() int
func (*InputBotInlineMessageGame) ImplementsInputBotInlineMessage ¶
func (*InputBotInlineMessageGame) ImplementsInputBotInlineMessage()
type InputBotInlineMessageID ¶
type InputBotInlineMessageID64 ¶
type InputBotInlineMessageID64 struct {
DcID int32 // DC ID to use when working with this inline message
OwnerID int64 // ID of the owner of this message
ID int32 // ID of message
AccessHash int64 // Access hash of message
}
Represents a sent inline message from the perspective of a bot
func (*InputBotInlineMessageID64) CRC ¶
func (*InputBotInlineMessageID64) CRC() uint32
func (*InputBotInlineMessageID64) ImplementsInputBotInlineMessageID ¶
func (*InputBotInlineMessageID64) ImplementsInputBotInlineMessageID()
type InputBotInlineMessageIDObj ¶
type InputBotInlineMessageIDObj struct {
DcID int32 // DC ID to use when working with this inline message
ID int64 // ID of message, contains both the (32-bit, legacy) owner ID and the message ID, used only for Bot API backwards compatibility with 32-bit user ID.
AccessHash int64 // Access hash of message
}
Represents a sent inline message from the perspective of a bot (legacy constructor)
func (*InputBotInlineMessageIDObj) CRC ¶
func (*InputBotInlineMessageIDObj) CRC() uint32
func (*InputBotInlineMessageIDObj) ImplementsInputBotInlineMessageID ¶
func (*InputBotInlineMessageIDObj) ImplementsInputBotInlineMessageID()
type InputBotInlineMessageMediaAuto ¶
type InputBotInlineMessageMediaAuto 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
Entities []MessageEntity `tl:"flag:1"` // Message entities for styled text
ReplyMarkup ReplyMarkup `tl:"flag:2"` // Inline keyboard
}
A media
func (*InputBotInlineMessageMediaAuto) CRC ¶
func (*InputBotInlineMessageMediaAuto) CRC() uint32
func (*InputBotInlineMessageMediaAuto) FlagIndex ¶
func (*InputBotInlineMessageMediaAuto) FlagIndex() int
func (*InputBotInlineMessageMediaAuto) ImplementsInputBotInlineMessage ¶
func (*InputBotInlineMessageMediaAuto) ImplementsInputBotInlineMessage()
type InputBotInlineMessageMediaContact ¶
type InputBotInlineMessageMediaContact struct {
PhoneNumber string // Phone number
FirstName string // First name
LastName string // Last name
Vcard string // VCard info
ReplyMarkup ReplyMarkup `tl:"flag:2"` // Inline keyboard
}
A contact
func (*InputBotInlineMessageMediaContact) CRC ¶
func (*InputBotInlineMessageMediaContact) CRC() uint32
func (*InputBotInlineMessageMediaContact) FlagIndex ¶
func (*InputBotInlineMessageMediaContact) FlagIndex() int
func (*InputBotInlineMessageMediaContact) ImplementsInputBotInlineMessage ¶
func (*InputBotInlineMessageMediaContact) ImplementsInputBotInlineMessage()
type InputBotInlineMessageMediaGeo ¶
type InputBotInlineMessageMediaGeo struct {
GeoPoint InputGeoPoint // Geolocation
Heading int32 `tl:"flag:0"` // For live locations, a direction in which the location moves, in degrees; 1-360
Period int32 `tl:"flag:1"` // Validity period
ProximityNotificationRadius int32 `tl:"flag:3"` // For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)
ReplyMarkup ReplyMarkup `tl:"flag:2"` // Reply markup for bot/inline keyboards
}
Geolocation
func (*InputBotInlineMessageMediaGeo) CRC ¶
func (*InputBotInlineMessageMediaGeo) CRC() uint32
func (*InputBotInlineMessageMediaGeo) FlagIndex ¶
func (*InputBotInlineMessageMediaGeo) FlagIndex() int
func (*InputBotInlineMessageMediaGeo) ImplementsInputBotInlineMessage ¶
func (*InputBotInlineMessageMediaGeo) ImplementsInputBotInlineMessage()
type InputBotInlineMessageMediaInvoice ¶
type InputBotInlineMessageMediaInvoice struct {
Title string // Product name, 1-32 characters
Description string // Product description, 1-255 characters
Photo *InputWebDocument `tl:"flag:0"` // Invoice photo
Invoice *Invoice // The invoice
Payload []byte // Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
Provider string // Payments provider token, obtained via Botfather
ProviderData *DataJson // A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider.
ReplyMarkup ReplyMarkup `tl:"flag:2"` // Inline keyboard
}
An invoice
func (*InputBotInlineMessageMediaInvoice) CRC ¶
func (*InputBotInlineMessageMediaInvoice) CRC() uint32
func (*InputBotInlineMessageMediaInvoice) FlagIndex ¶
func (*InputBotInlineMessageMediaInvoice) FlagIndex() int
func (*InputBotInlineMessageMediaInvoice) ImplementsInputBotInlineMessage ¶
func (*InputBotInlineMessageMediaInvoice) ImplementsInputBotInlineMessage()
type InputBotInlineMessageMediaVenue ¶
type InputBotInlineMessageMediaVenue struct {
GeoPoint InputGeoPoint // Geolocation
Title string // Venue name
Address string // Address
Provider string // Venue provider: currently only "foursquare" and "gplaces" (Google Places) need to be supported
VenueID string // Venue ID in the provider's database
VenueType string // Venue type in the provider's database
ReplyMarkup ReplyMarkup `tl:"flag:2"` // Inline keyboard
}
Venue
func (*InputBotInlineMessageMediaVenue) CRC ¶
func (*InputBotInlineMessageMediaVenue) CRC() uint32
func (*InputBotInlineMessageMediaVenue) FlagIndex ¶
func (*InputBotInlineMessageMediaVenue) FlagIndex() int
func (*InputBotInlineMessageMediaVenue) ImplementsInputBotInlineMessage ¶
func (*InputBotInlineMessageMediaVenue) ImplementsInputBotInlineMessage()
type InputBotInlineMessageMediaWebPage ¶
type InputBotInlineMessageMediaWebPage 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.
ForceLargeMedia bool `tl:"flag:4,encoded_in_bitflags"` // If set, specifies that a large media preview should be used.
ForceSmallMedia bool `tl:"flag:5,encoded_in_bitflags"` // If set, specifies that a small media preview should be used.
Optional bool `tl:"flag:6,encoded_in_bitflags"` // If not set, a `WEBPAGE_NOT_FOUND` RPC error will be emitted if a webpage preview cannot be generated for the specified `url`; otherwise, no error will be emitted (unless the provided message is also empty, in which case a `MESSAGE_EMPTY` will be emitted, instead).
Message string // The message, can be empty.
Entities []MessageEntity `tl:"flag:1"` // Message entities for styled text
URL string // The URL to use for the link preview.
ReplyMarkup ReplyMarkup `tl:"flag:2"` // Inline keyboard
}
Specifies options that will be used to generate the link preview for the message, or even a standalone link preview without an attached message.
func (*InputBotInlineMessageMediaWebPage) CRC ¶
func (*InputBotInlineMessageMediaWebPage) CRC() uint32
func (*InputBotInlineMessageMediaWebPage) FlagIndex ¶
func (*InputBotInlineMessageMediaWebPage) FlagIndex() int
func (*InputBotInlineMessageMediaWebPage) ImplementsInputBotInlineMessage ¶
func (*InputBotInlineMessageMediaWebPage) ImplementsInputBotInlineMessage()
type InputBotInlineMessageText ¶
type InputBotInlineMessageText struct {
NoWebpage bool `tl:"flag:0,encoded_in_bitflags"` // Disable webpage preview
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 // Message
Entities []MessageEntity `tl:"flag:1"` // Message entities for styled text
ReplyMarkup ReplyMarkup `tl:"flag:2"` // Inline keyboard
}
Simple text message
func (*InputBotInlineMessageText) CRC ¶
func (*InputBotInlineMessageText) CRC() uint32
func (*InputBotInlineMessageText) FlagIndex ¶
func (*InputBotInlineMessageText) FlagIndex() int
func (*InputBotInlineMessageText) ImplementsInputBotInlineMessage ¶
func (*InputBotInlineMessageText) ImplementsInputBotInlineMessage()
type InputBotInlineResult ¶
type InputBotInlineResultDocument ¶
type InputBotInlineResultDocument struct {
ID string // Result ID
Type string // Result type (see bot API docs)
Title string `tl:"flag:1"` // Result title
Description string `tl:"flag:2"` // Result description
Document InputDocument // Document to send
SendMessage InputBotInlineMessage // Message to send when the result is selected
}
Document (media of any type except for photos)
func (*InputBotInlineResultDocument) CRC ¶
func (*InputBotInlineResultDocument) CRC() uint32
func (*InputBotInlineResultDocument) FlagIndex ¶
func (*InputBotInlineResultDocument) FlagIndex() int
func (*InputBotInlineResultDocument) ImplementsInputBotInlineResult ¶
func (*InputBotInlineResultDocument) ImplementsInputBotInlineResult()
type InputBotInlineResultGame ¶
type InputBotInlineResultGame struct {
ID string // Result ID
ShortName string // Game short name
SendMessage InputBotInlineMessage // Message to send when the result is selected
}
Game
func (*InputBotInlineResultGame) CRC ¶
func (*InputBotInlineResultGame) CRC() uint32
func (*InputBotInlineResultGame) ImplementsInputBotInlineResult ¶
func (*InputBotInlineResultGame) ImplementsInputBotInlineResult()
type InputBotInlineResultObj ¶
type InputBotInlineResultObj struct {
ID string // ID of result
Type string // Result type (see bot API docs)
Title string `tl:"flag:1"` // Result title
Description string `tl:"flag:2"` // Result description
URL string `tl:"flag:3"` // URL of result
Thumb *InputWebDocument `tl:"flag:4"` // Thumbnail for result
Content *InputWebDocument `tl:"flag:5"` // Result contents
SendMessage InputBotInlineMessage // Message to send when the result is selected
}
An inline bot result
func (*InputBotInlineResultObj) CRC ¶
func (*InputBotInlineResultObj) CRC() uint32
func (*InputBotInlineResultObj) FlagIndex ¶
func (*InputBotInlineResultObj) FlagIndex() int
func (*InputBotInlineResultObj) ImplementsInputBotInlineResult ¶
func (*InputBotInlineResultObj) ImplementsInputBotInlineResult()
type InputBotInlineResultPhoto ¶
type InputBotInlineResultPhoto struct {
ID string // Result ID
Type string // Result type (see bot API docs)
Photo InputPhoto // Photo to send
SendMessage InputBotInlineMessage // Message to send when the result is selected
}
Photo
func (*InputBotInlineResultPhoto) CRC ¶
func (*InputBotInlineResultPhoto) CRC() uint32
func (*InputBotInlineResultPhoto) ImplementsInputBotInlineResult ¶
func (*InputBotInlineResultPhoto) ImplementsInputBotInlineResult()
type InputBusinessAwayMessage ¶
type InputBusinessAwayMessage struct {
OfflineOnly bool `tl:"flag:0,encoded_in_bitflags"`
ShortcutID int32
Schedule BusinessAwayMessageSchedule
Recipients *InputBusinessRecipients
}
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.
func (*InputBusinessAwayMessage) CRC ¶
func (*InputBusinessAwayMessage) CRC() uint32
func (*InputBusinessAwayMessage) FlagIndex ¶
func (*InputBusinessAwayMessage) FlagIndex() int
type InputBusinessBotRecipients ¶
type InputBusinessBotRecipients struct {
ExistingChats bool `tl:"flag:0,encoded_in_bitflags"`
NewChats bool `tl:"flag:1,encoded_in_bitflags"`
Contacts bool `tl:"flag:2,encoded_in_bitflags"`
NonContacts bool `tl:"flag:3,encoded_in_bitflags"`
ExcludeSelected bool `tl:"flag:5,encoded_in_bitflags"`
Users []InputUser `tl:"flag:4"`
ExcludeUsers []InputUser `tl:"flag:6"`
}
Specifies the private chats that a connected business bot may interact with.
func (*InputBusinessBotRecipients) CRC ¶
func (*InputBusinessBotRecipients) CRC() uint32
func (*InputBusinessBotRecipients) FlagIndex ¶
func (*InputBusinessBotRecipients) FlagIndex() int
type InputBusinessChatLink ¶
type InputBusinessChatLink struct {
Message string
Entities []MessageEntity `tl:"flag:0"`
Title string `tl:"flag:1"`
}
Contains info about a business chat deep link to be created by the current account.
func (*InputBusinessChatLink) CRC ¶
func (*InputBusinessChatLink) CRC() uint32
func (*InputBusinessChatLink) FlagIndex ¶
func (*InputBusinessChatLink) FlagIndex() int
type InputBusinessGreetingMessage ¶
type InputBusinessGreetingMessage struct {
ShortcutID int32
Recipients *InputBusinessRecipients
NoActivityDays int32
}
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.
func (*InputBusinessGreetingMessage) CRC ¶
func (*InputBusinessGreetingMessage) CRC() uint32
type InputBusinessIntro ¶
type InputBusinessIntro struct {
Title string
Description string
Sticker InputDocument `tl:"flag:0"`
}
Telegram Business introduction.
func (*InputBusinessIntro) CRC ¶
func (*InputBusinessIntro) CRC() uint32
func (*InputBusinessIntro) FlagIndex ¶
func (*InputBusinessIntro) FlagIndex() int
type InputBusinessRecipients ¶
type InputBusinessRecipients struct {
ExistingChats bool `tl:"flag:0,encoded_in_bitflags"`
NewChats bool `tl:"flag:1,encoded_in_bitflags"`
Contacts bool `tl:"flag:2,encoded_in_bitflags"`
NonContacts bool `tl:"flag:3,encoded_in_bitflags"`
ExcludeSelected bool `tl:"flag:5,encoded_in_bitflags"`
Users []InputUser `tl:"flag:4"`
}
Specifies the chats that can receive Telegram Business away and greeting messages.
func (*InputBusinessRecipients) CRC ¶
func (*InputBusinessRecipients) CRC() uint32
func (*InputBusinessRecipients) FlagIndex ¶
func (*InputBusinessRecipients) FlagIndex() int
type InputChannel ¶
type InputChannelEmpty ¶
type InputChannelEmpty struct{}
Represents the absence of a channel
func (*InputChannelEmpty) CRC ¶
func (*InputChannelEmpty) CRC() uint32
func (*InputChannelEmpty) ImplementsInputChannel ¶
func (*InputChannelEmpty) ImplementsInputChannel()
type InputChannelFromMessage ¶
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
ChannelID int64 // The channel ID
}
Defines a min channel that was seen in a certain message of a certain chat.
func (*InputChannelFromMessage) CRC ¶
func (*InputChannelFromMessage) CRC() uint32
func (*InputChannelFromMessage) ImplementsInputChannel ¶
func (*InputChannelFromMessage) ImplementsInputChannel()
type InputChannelObj ¶
type InputChannelObj struct {
ChannelID int64 // Channel ID
AccessHash int64 // Access hash taken from the channel constructor
}
Represents a channel
func (*InputChannelObj) CRC ¶
func (*InputChannelObj) CRC() uint32
func (*InputChannelObj) ImplementsInputChannel ¶
func (*InputChannelObj) ImplementsInputChannel()
type InputChatPhoto ¶
type InputChatPhotoEmpty ¶
type InputChatPhotoEmpty struct{}
Empty constructor, remove group photo.
func (*InputChatPhotoEmpty) CRC ¶
func (*InputChatPhotoEmpty) CRC() uint32
func (*InputChatPhotoEmpty) ImplementsInputChatPhoto ¶
func (*InputChatPhotoEmpty) ImplementsInputChatPhoto()
type InputChatPhotoObj ¶
type InputChatPhotoObj struct {
ID InputPhoto // Existing photo
}
Existing photo to be set as a chat profile photo.
func (*InputChatPhotoObj) CRC ¶
func (*InputChatPhotoObj) CRC() uint32
func (*InputChatPhotoObj) ImplementsInputChatPhoto ¶
func (*InputChatPhotoObj) ImplementsInputChatPhoto()
type InputChatTheme ¶ added in v1.6.3
type InputChatThemeEmpty ¶ added in v1.6.3
type InputChatThemeEmpty struct{}
Remove any currently configured theme.
func (*InputChatThemeEmpty) CRC ¶ added in v1.6.3
func (*InputChatThemeEmpty) CRC() uint32
func (*InputChatThemeEmpty) ImplementsInputChatTheme ¶ added in v1.6.3
func (*InputChatThemeEmpty) ImplementsInputChatTheme()
type InputChatThemeObj ¶ added in v1.6.3
type InputChatThemeObj struct {
Emoticon string // The emoji.
}
Set an emoji-based chat theme, returned by account.getChatThemes.
func (*InputChatThemeObj) CRC ¶ added in v1.6.3
func (*InputChatThemeObj) CRC() uint32
func (*InputChatThemeObj) ImplementsInputChatTheme ¶ added in v1.6.3
func (*InputChatThemeObj) ImplementsInputChatTheme()
type InputChatThemeUniqueGift ¶ added in v1.6.3
type InputChatThemeUniqueGift struct {
Slug string // The slug from starGiftUnique.`slug`.
}
Set a theme based on an owned collectible gift, returned by account.getUniqueGiftChatThemes.
func (*InputChatThemeUniqueGift) CRC ¶ added in v1.6.3
func (*InputChatThemeUniqueGift) CRC() uint32
func (*InputChatThemeUniqueGift) ImplementsInputChatTheme ¶ added in v1.6.3
func (*InputChatThemeUniqueGift) ImplementsInputChatTheme()
type InputChatUploadedPhoto ¶
type InputChatUploadedPhoto struct {
File InputFile `tl:"flag:0"` // File saved in parts using the method upload.saveFilePart
Video InputFile `tl:"flag:1"` // Square video for animated profile picture
VideoStartTs float64 `tl:"flag:2"` // Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if `video` or `video_emoji_markup` is set.
VideoEmojiMarkup VideoSize `tl:"flag:3"` // Animated sticker profile picture, must contain either a videoSizeEmojiMarkup or a videoSizeStickerMarkup constructor.
}
New photo to be set as group profile photo.
func (*InputChatUploadedPhoto) CRC ¶
func (*InputChatUploadedPhoto) CRC() uint32
func (*InputChatUploadedPhoto) FlagIndex ¶
func (*InputChatUploadedPhoto) FlagIndex() int
func (*InputChatUploadedPhoto) ImplementsInputChatPhoto ¶
func (*InputChatUploadedPhoto) ImplementsInputChatPhoto()
type InputChatlistDialogFilter ¶
type InputChatlistDialogFilter struct {
FilterID int32
}
Folder ID
func (*InputChatlistDialogFilter) CRC ¶
func (*InputChatlistDialogFilter) CRC() uint32
type InputCheckPasswordEmpty ¶
type InputCheckPasswordEmpty struct{}
There is no password
func (*InputCheckPasswordEmpty) CRC ¶
func (*InputCheckPasswordEmpty) CRC() uint32
func (*InputCheckPasswordEmpty) ImplementsInputCheckPasswordSRP ¶
func (*InputCheckPasswordEmpty) ImplementsInputCheckPasswordSRP()
type InputCheckPasswordSRP ¶
func GetInputCheckPassword ¶
func GetInputCheckPassword(password string, accountPassword *AccountPassword) (InputCheckPasswordSRP, error)
type InputCheckPasswordSRPObj ¶
type InputCheckPasswordSRPObj struct {
SRPID int64 // SRP ID
A []byte // `A` parameter (see SRP)
M1 []byte // `M1` parameter (see SRP)
}
Constructor for checking the validity of a 2FA SRP password (see SRP)
func (*InputCheckPasswordSRPObj) CRC ¶
func (*InputCheckPasswordSRPObj) CRC() uint32
func (*InputCheckPasswordSRPObj) ImplementsInputCheckPasswordSRP ¶
func (*InputCheckPasswordSRPObj) ImplementsInputCheckPasswordSRP()
type InputClientProxy ¶
Info about an MTProxy used to connect.
func (*InputClientProxy) CRC ¶
func (*InputClientProxy) CRC() uint32
type InputCollectible ¶
type InputCollectiblePhone ¶
type InputCollectiblePhone struct {
Phone string // Phone number
}
Represents a phone number fragment collectible
func (*InputCollectiblePhone) CRC ¶
func (*InputCollectiblePhone) CRC() uint32
func (*InputCollectiblePhone) ImplementsInputCollectible ¶
func (*InputCollectiblePhone) ImplementsInputCollectible()
type InputCollectibleUsername ¶
type InputCollectibleUsername struct {
Username string // Username
}
Represents a username fragment collectible
func (*InputCollectibleUsername) CRC ¶
func (*InputCollectibleUsername) CRC() uint32
func (*InputCollectibleUsername) ImplementsInputCollectible ¶
func (*InputCollectibleUsername) ImplementsInputCollectible()
type InputDialogPeer ¶
type InputDialogPeerFolder ¶
type InputDialogPeerFolder struct {
FolderID int32 // Peer folder ID, for more info click here
}
All peers in a peer folder
func (*InputDialogPeerFolder) CRC ¶
func (*InputDialogPeerFolder) CRC() uint32
func (*InputDialogPeerFolder) ImplementsInputDialogPeer ¶
func (*InputDialogPeerFolder) ImplementsInputDialogPeer()
type InputDialogPeerObj ¶
type InputDialogPeerObj struct {
Peer InputPeer // Peer
}
A peer
func (*InputDialogPeerObj) CRC ¶
func (*InputDialogPeerObj) CRC() uint32
func (*InputDialogPeerObj) ImplementsInputDialogPeer ¶
func (*InputDialogPeerObj) ImplementsInputDialogPeer()
type InputDocument ¶
type InputDocumentEmpty ¶
type InputDocumentEmpty struct{}
Empty constructor.
func (*InputDocumentEmpty) CRC ¶
func (*InputDocumentEmpty) CRC() uint32
func (*InputDocumentEmpty) ImplementsInputDocument ¶
func (*InputDocumentEmpty) ImplementsInputDocument()
type InputDocumentFileLocation ¶
type InputDocumentFileLocation struct {
ID int64 // Document ID
AccessHash int64 // access_hash parameter from the document constructor
FileReference []byte // File reference
ThumbSize string // Thumbnail size to download the thumbnail
}
Document location (video, voice, audio, basically every type except photo)
func (*InputDocumentFileLocation) CRC ¶
func (*InputDocumentFileLocation) CRC() uint32
func (*InputDocumentFileLocation) ImplementsInputFileLocation ¶
func (*InputDocumentFileLocation) ImplementsInputFileLocation()
type InputDocumentObj ¶
type InputDocumentObj struct {
ID int64 // Document ID
AccessHash int64 // access_hash parameter from the document constructor
FileReference []byte // File reference
}
Defines a document for subsequent interaction.
func (*InputDocumentObj) CRC ¶
func (*InputDocumentObj) CRC() uint32
func (*InputDocumentObj) ImplementsInputDocument ¶
func (*InputDocumentObj) ImplementsInputDocument()
type InputEmojiStatusCollectible ¶ added in v1.5.6
type InputEmojiStatusCollectible struct {
CollectibleID int64 // ID of the collectible (from starGiftUnique.`id`).
Until int32 `tl:"flag:0"` // If set, the emoji status will be active until the specified unixtime.
}
An owned collectible gift as emoji status: can only be used in account.updateEmojiStatus, is never returned by the API.
func (*InputEmojiStatusCollectible) CRC ¶ added in v1.5.6
func (*InputEmojiStatusCollectible) CRC() uint32
func (*InputEmojiStatusCollectible) FlagIndex ¶ added in v1.5.6
func (*InputEmojiStatusCollectible) FlagIndex() int
func (*InputEmojiStatusCollectible) ImplementsEmojiStatus ¶ added in v1.5.6
func (*InputEmojiStatusCollectible) ImplementsEmojiStatus()
type InputEncryptedChat ¶
Creates an encrypted chat.
func (*InputEncryptedChat) CRC ¶
func (*InputEncryptedChat) CRC() uint32
type InputEncryptedFile ¶
type InputEncryptedFileBigUploaded ¶
type InputEncryptedFileBigUploaded struct {
ID int64 // Random file id, created by the client
Parts int32 // Number of saved parts
KeyFingerprint int32 // 32-bit imprint of the key used to encrypt the file
}
Assigns a new big encrypted file (over 10 MB in size), saved in parts using the method upload.saveBigFilePart.
func (*InputEncryptedFileBigUploaded) CRC ¶
func (*InputEncryptedFileBigUploaded) CRC() uint32
func (*InputEncryptedFileBigUploaded) ImplementsInputEncryptedFile ¶
func (*InputEncryptedFileBigUploaded) ImplementsInputEncryptedFile()
type InputEncryptedFileEmpty ¶
type InputEncryptedFileEmpty struct{}
Empty constructor.
func (*InputEncryptedFileEmpty) CRC ¶
func (*InputEncryptedFileEmpty) CRC() uint32
func (*InputEncryptedFileEmpty) ImplementsInputEncryptedFile ¶
func (*InputEncryptedFileEmpty) ImplementsInputEncryptedFile()
type InputEncryptedFileLocation ¶
type InputEncryptedFileLocation struct {
ID int64 // File ID, id parameter value from encryptedFile
AccessHash int64 // Checksum, access_hash parameter value from encryptedFile
}
Location of encrypted secret chat file.
func (*InputEncryptedFileLocation) CRC ¶
func (*InputEncryptedFileLocation) CRC() uint32
func (*InputEncryptedFileLocation) ImplementsInputFileLocation ¶
func (*InputEncryptedFileLocation) ImplementsInputFileLocation()
type InputEncryptedFileObj ¶
type InputEncryptedFileObj struct {
ID int64 // File ID, value of id parameter from encryptedFile
AccessHash int64 // Checking sum, value of access_hash parameter from encryptedFile
}
Sets forwarded encrypted file for attachment.
func (*InputEncryptedFileObj) CRC ¶
func (*InputEncryptedFileObj) CRC() uint32
func (*InputEncryptedFileObj) ImplementsInputEncryptedFile ¶
func (*InputEncryptedFileObj) ImplementsInputEncryptedFile()
type InputEncryptedFileUploaded ¶
type InputEncryptedFileUploaded struct {
ID int64 // Random file ID created by client
Parts int32 // Number of saved parts
Md5Checksum string // In case md5-HASH of the (already encrypted) file was transmitted, file content will be checked prior to use
KeyFingerprint int32 // 32-bit fingerprint of the key used to encrypt a file
}
Sets new encrypted file saved by parts using upload.saveFilePart method.
func (*InputEncryptedFileUploaded) CRC ¶
func (*InputEncryptedFileUploaded) CRC() uint32
func (*InputEncryptedFileUploaded) ImplementsInputEncryptedFile ¶
func (*InputEncryptedFileUploaded) ImplementsInputEncryptedFile()
type InputFileBig ¶
type InputFileBig struct {
ID int64 // Random file id, created by the client
Parts int32 // Number of parts saved
Name string // Full file name
}
Assigns a big file (over 10 MB in size), saved in part using the method upload.saveBigFilePart.
func (*InputFileBig) CRC ¶
func (*InputFileBig) CRC() uint32
func (*InputFileBig) ImplementsInputFile ¶
func (*InputFileBig) ImplementsInputFile()
type InputFileLocation ¶
func GetFileLocation ¶
func GetFileLocation(file any, opts ...FileLocationOptions) (InputFileLocation, int32, int64, string, error)
GetFileLocation returns file location, datacenter, file size and file name
type InputFileLocationObj ¶
type InputFileLocationObj struct {
VolumeID int64 // Server volume
LocalID int32 // File identifier
Secret int64 // Check sum to access the file
FileReference []byte // File reference
}
DEPRECATED location of a photo
func (*InputFileLocationObj) CRC ¶
func (*InputFileLocationObj) CRC() uint32
func (*InputFileLocationObj) ImplementsInputFileLocation ¶
func (*InputFileLocationObj) ImplementsInputFileLocation()
type InputFileObj ¶
type InputFileObj struct {
ID int64 // Random file identifier created by the client
Parts int32 // Number of parts saved
Name string // Full name of the file
Md5Checksum string // In case the file's md5-hash was passed, contents of the file will be checked prior to use
}
Defines a file saved in parts using the method upload.saveFilePart.
func (*InputFileObj) CRC ¶
func (*InputFileObj) CRC() uint32
func (*InputFileObj) ImplementsInputFile ¶
func (*InputFileObj) ImplementsInputFile()
type InputFileStoryDocument ¶
type InputFileStoryDocument struct {
ID InputDocument // The old story video.
}
Used to edit the thumbnail/static preview of a story
func (*InputFileStoryDocument) CRC ¶
func (*InputFileStoryDocument) CRC() uint32
func (*InputFileStoryDocument) ImplementsInputFile ¶
func (*InputFileStoryDocument) ImplementsInputFile()
type InputFolderPeer ¶
Peer in a folder
func (*InputFolderPeer) CRC ¶
func (*InputFolderPeer) CRC() uint32
type InputGameID ¶
type InputGameID struct {
ID int64 // game ID from Game constructor
AccessHash int64 // access hash from Game constructor
}
Indicates an already sent game
func (*InputGameID) CRC ¶
func (*InputGameID) CRC() uint32
func (*InputGameID) ImplementsInputGame ¶
func (*InputGameID) ImplementsInputGame()
type InputGameShortName ¶
type InputGameShortName struct {
BotID InputUser // The bot that provides the game
ShortName string // The game's short name, usually obtained from a game link
}
Game by short name
func (*InputGameShortName) CRC ¶
func (*InputGameShortName) CRC() uint32
func (*InputGameShortName) ImplementsInputGame ¶
func (*InputGameShortName) ImplementsInputGame()
type InputGeoPoint ¶
type InputGeoPointEmpty ¶
type InputGeoPointEmpty struct{}
Empty GeoPoint constructor.
func (*InputGeoPointEmpty) CRC ¶
func (*InputGeoPointEmpty) CRC() uint32
func (*InputGeoPointEmpty) ImplementsInputGeoPoint ¶
func (*InputGeoPointEmpty) ImplementsInputGeoPoint()
type InputGeoPointObj ¶
type InputGeoPointObj struct {
Lat float64 // Latitude
Long float64 // Longitude
AccuracyRadius int32 `tl:"flag:0"` // The estimated horizontal accuracy of the location, in meters; as defined by the sender.
}
Defines a GeoPoint by its coordinates.
func (*InputGeoPointObj) CRC ¶
func (*InputGeoPointObj) CRC() uint32
func (*InputGeoPointObj) FlagIndex ¶
func (*InputGeoPointObj) FlagIndex() int
func (*InputGeoPointObj) ImplementsInputGeoPoint ¶
func (*InputGeoPointObj) ImplementsInputGeoPoint()
type InputGroupCall ¶
type InputGroupCallInviteMessage ¶ added in v1.6.0
type InputGroupCallInviteMessage struct {
MsgID int32 // ID of the messageActionConferenceCall.
}
Join a group call through a messageActionConferenceCall invitation message.
func (*InputGroupCallInviteMessage) CRC ¶ added in v1.6.0
func (*InputGroupCallInviteMessage) CRC() uint32
func (*InputGroupCallInviteMessage) ImplementsInputGroupCall ¶ added in v1.6.0
func (*InputGroupCallInviteMessage) ImplementsInputGroupCall()
type InputGroupCallObj ¶ added in v1.6.0
type InputGroupCallObj struct {
ID int64 // Group call ID
AccessHash int64 // Group call access hash
}
Points to a specific group call
func (*InputGroupCallObj) CRC ¶ added in v1.6.0
func (*InputGroupCallObj) CRC() uint32
func (*InputGroupCallObj) ImplementsInputGroupCall ¶ added in v1.6.0
func (*InputGroupCallObj) ImplementsInputGroupCall()
type InputGroupCallSlug ¶ added in v1.6.0
type InputGroupCallSlug struct {
Slug string // Slug from the conference link.
}
Join a conference call through an invitation link.
func (*InputGroupCallSlug) CRC ¶ added in v1.6.0
func (*InputGroupCallSlug) CRC() uint32
func (*InputGroupCallSlug) ImplementsInputGroupCall ¶ added in v1.6.0
func (*InputGroupCallSlug) ImplementsInputGroupCall()
type InputGroupCallStream ¶
type InputGroupCallStream struct {
Call InputGroupCall // Livestream info
TimeMs int64 // Timestamp in milliseconds
Scale int32 // Specifies the duration of the video segment to fetch in milliseconds, by bitshifting `1000` to the right `scale` times: `duration_ms := 1000 >> scale`
VideoChannel int32 `tl:"flag:0"` // Selected video channel
VideoQuality int32 `tl:"flag:0"` // Selected video quality (0 = lowest, 1 = medium, 2 = best)
}
Chunk of a livestream
func (*InputGroupCallStream) CRC ¶
func (*InputGroupCallStream) CRC() uint32
func (*InputGroupCallStream) FlagIndex ¶
func (*InputGroupCallStream) FlagIndex() int
func (*InputGroupCallStream) ImplementsInputFileLocation ¶
func (*InputGroupCallStream) ImplementsInputFileLocation()
type InputInvoice ¶
type InputInvoiceBusinessBotTransferStars ¶ added in v1.6.0
type InputInvoiceBusinessBotTransferStars struct {
Bot InputUser // Always inputUserSelf.
Stars int64 // The number of stars to transfer.
}
Transfer stars from the balance of a user account connected to a business bot, to the balance of the business bot
func (*InputInvoiceBusinessBotTransferStars) CRC ¶ added in v1.6.0
func (*InputInvoiceBusinessBotTransferStars) CRC() uint32
func (*InputInvoiceBusinessBotTransferStars) ImplementsInputInvoice ¶ added in v1.6.0
func (*InputInvoiceBusinessBotTransferStars) ImplementsInputInvoice()
type InputInvoiceChatInviteSubscription ¶
type InputInvoiceChatInviteSubscription struct {
Hash string // The invitation link of the Telegram Star subscription
}
Used to pay for a Telegram Star subscription.
func (*InputInvoiceChatInviteSubscription) CRC ¶
func (*InputInvoiceChatInviteSubscription) CRC() uint32
func (*InputInvoiceChatInviteSubscription) ImplementsInputInvoice ¶
func (*InputInvoiceChatInviteSubscription) ImplementsInputInvoice()
type InputInvoiceMessage ¶
type InputInvoiceMessage struct {
Peer InputPeer // Chat where the invoice/paid media was sent
MsgID int32 // Message ID
}
An invoice contained in a messageMediaInvoice message or paid media.
func (*InputInvoiceMessage) CRC ¶
func (*InputInvoiceMessage) CRC() uint32
func (*InputInvoiceMessage) ImplementsInputInvoice ¶
func (*InputInvoiceMessage) ImplementsInputInvoice()
type InputInvoicePremiumAuthCode ¶ added in v1.6.3
type InputInvoicePremiumAuthCode struct {
Purpose InputStorePaymentPurpose
}
func (*InputInvoicePremiumAuthCode) CRC ¶ added in v1.6.3
func (*InputInvoicePremiumAuthCode) CRC() uint32
func (*InputInvoicePremiumAuthCode) ImplementsInputInvoice ¶ added in v1.6.3
func (*InputInvoicePremiumAuthCode) ImplementsInputInvoice()
type InputInvoicePremiumGiftCode ¶
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.
}
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.
func (*InputInvoicePremiumGiftCode) CRC ¶
func (*InputInvoicePremiumGiftCode) CRC() uint32
func (*InputInvoicePremiumGiftCode) ImplementsInputInvoice ¶
func (*InputInvoicePremiumGiftCode) ImplementsInputInvoice()
type InputInvoicePremiumGiftStars ¶ added in v1.5.9
type InputInvoicePremiumGiftStars struct {
UserID InputUser // Who will receive the gifted subscription.
Months int32 // Duration of the subscription in months, must be one of the options with `currency == "XTR"` returned by payments.getPremiumGiftCodeOptions.
Message *TextWithEntities `tl:"flag:0"` // Message attached with the gift.
}
Used to gift a Telegram Premium subscription to another user, paying with Telegram Stars.
func (*InputInvoicePremiumGiftStars) CRC ¶ added in v1.5.9
func (*InputInvoicePremiumGiftStars) CRC() uint32
func (*InputInvoicePremiumGiftStars) FlagIndex ¶ added in v1.5.9
func (*InputInvoicePremiumGiftStars) FlagIndex() int
func (*InputInvoicePremiumGiftStars) ImplementsInputInvoice ¶ added in v1.5.9
func (*InputInvoicePremiumGiftStars) ImplementsInputInvoice()
type InputInvoiceSlug ¶
type InputInvoiceSlug struct {
Slug string // The invoice slug
}
An invoice slug taken from an invoice deep link or from the `premium_invoice_slug` app config parameter
func (*InputInvoiceSlug) CRC ¶
func (*InputInvoiceSlug) CRC() uint32
func (*InputInvoiceSlug) ImplementsInputInvoice ¶
func (*InputInvoiceSlug) ImplementsInputInvoice()
type InputInvoiceStarGift ¶
type InputInvoiceStarGift struct {
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)
IncludeUpgrade bool `tl:"flag:2,encoded_in_bitflags"` // Also pay for an eventual upgrade of the gift to a collectible gift.
Peer InputPeer // Receiver of 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.
}
Used to buy a Telegram Star Gift
func (*InputInvoiceStarGift) CRC ¶
func (*InputInvoiceStarGift) CRC() uint32
func (*InputInvoiceStarGift) FlagIndex ¶
func (*InputInvoiceStarGift) FlagIndex() int
func (*InputInvoiceStarGift) ImplementsInputInvoice ¶
func (*InputInvoiceStarGift) ImplementsInputInvoice()
type InputInvoiceStarGiftAuctionBid ¶ added in v1.6.7
type InputInvoiceStarGiftAuctionBid struct {
HideName bool `tl:"flag:0,encoded_in_bitflags"`
UpdateBid bool `tl:"flag:2,encoded_in_bitflags"`
Peer InputPeer `tl:"flag:3"`
GiftID int64
BidAmount int64
Message *TextWithEntities `tl:"flag:1"`
}
func (*InputInvoiceStarGiftAuctionBid) CRC ¶ added in v1.6.7
func (*InputInvoiceStarGiftAuctionBid) CRC() uint32
func (*InputInvoiceStarGiftAuctionBid) FlagIndex ¶ added in v1.6.7
func (*InputInvoiceStarGiftAuctionBid) FlagIndex() int
func (*InputInvoiceStarGiftAuctionBid) ImplementsInputInvoice ¶ added in v1.6.7
func (*InputInvoiceStarGiftAuctionBid) ImplementsInputInvoice()
type InputInvoiceStarGiftDropOriginalDetails ¶ added in v1.6.3
type InputInvoiceStarGiftDropOriginalDetails struct {
Stargift InputSavedStarGift
}
func (*InputInvoiceStarGiftDropOriginalDetails) CRC ¶ added in v1.6.3
func (*InputInvoiceStarGiftDropOriginalDetails) CRC() uint32
func (*InputInvoiceStarGiftDropOriginalDetails) ImplementsInputInvoice ¶ added in v1.6.3
func (*InputInvoiceStarGiftDropOriginalDetails) ImplementsInputInvoice()
type InputInvoiceStarGiftPrepaidUpgrade ¶ added in v1.6.3
type InputInvoiceStarGiftPrepaidUpgrade struct {
Peer InputPeer // The peer that owns the gift.
Hash string // The upgrade hash from messageActionStarGift.`prepaid_upgrade_hash` or savedStarGift.`prepaid_upgrade_hash`.
}
Separately prepay for the upgrade of a gift.
func (*InputInvoiceStarGiftPrepaidUpgrade) CRC ¶ added in v1.6.3
func (*InputInvoiceStarGiftPrepaidUpgrade) CRC() uint32
func (*InputInvoiceStarGiftPrepaidUpgrade) ImplementsInputInvoice ¶ added in v1.6.3
func (*InputInvoiceStarGiftPrepaidUpgrade) ImplementsInputInvoice()
type InputInvoiceStarGiftResale ¶ added in v1.6.0
type InputInvoiceStarGiftResale struct {
Ton bool `tl:"flag:0,encoded_in_bitflags"` // Buy the gift using TON.
Slug string // Slug of the gift to buy.
ToID InputPeer // The receiver of the gift.
}
Used to buy a collectible gift currently up on resale
func (*InputInvoiceStarGiftResale) CRC ¶ added in v1.6.0
func (*InputInvoiceStarGiftResale) CRC() uint32
func (*InputInvoiceStarGiftResale) FlagIndex ¶ added in v1.6.3
func (*InputInvoiceStarGiftResale) FlagIndex() int
func (*InputInvoiceStarGiftResale) ImplementsInputInvoice ¶ added in v1.6.0
func (*InputInvoiceStarGiftResale) ImplementsInputInvoice()
type InputInvoiceStarGiftTransfer ¶ added in v1.5.3
type InputInvoiceStarGiftTransfer struct {
Stargift InputSavedStarGift // The identifier of the received gift
ToID InputPeer // The destination peer
}
Used to pay to transfer a collectible gift to another peer, see the gifts documentation for more info.
func (*InputInvoiceStarGiftTransfer) CRC ¶ added in v1.5.3
func (*InputInvoiceStarGiftTransfer) CRC() uint32
func (*InputInvoiceStarGiftTransfer) ImplementsInputInvoice ¶ added in v1.5.3
func (*InputInvoiceStarGiftTransfer) ImplementsInputInvoice()
type InputInvoiceStarGiftUpgrade ¶ added in v1.5.3
type InputInvoiceStarGiftUpgrade struct {
KeepOriginalDetails bool `tl:"flag:0,encoded_in_bitflags"` // Set this flag to keep the original gift text, sender and receiver in the upgraded gift as a starGiftAttributeOriginalDetails attribute.
Stargift InputSavedStarGift // The identifier of the received gift to upgrade.
}
Used to pay to upgrade a Gift to a collectible gift, see the collectible gifts documentation for more info on the full flow.
func (*InputInvoiceStarGiftUpgrade) CRC ¶ added in v1.5.3
func (*InputInvoiceStarGiftUpgrade) CRC() uint32
func (*InputInvoiceStarGiftUpgrade) FlagIndex ¶ added in v1.5.3
func (*InputInvoiceStarGiftUpgrade) FlagIndex() int
func (*InputInvoiceStarGiftUpgrade) ImplementsInputInvoice ¶ added in v1.5.3
func (*InputInvoiceStarGiftUpgrade) ImplementsInputInvoice()
type InputInvoiceStars ¶
type InputInvoiceStars struct {
Purpose InputStorePaymentPurpose // An inputStorePaymentStarsGiveaway, inputStorePaymentStarsTopup or inputStorePaymentStarsGift.
}
Used to top up the Telegram Stars balance of the current account or someone else's account, or to start a Telegram Star giveaway.
func (*InputInvoiceStars) CRC ¶
func (*InputInvoiceStars) CRC() uint32
func (*InputInvoiceStars) ImplementsInputInvoice ¶
func (*InputInvoiceStars) ImplementsInputInvoice()
type InputKeyboardButtonRequestPeer ¶
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).
PhotoRequested bool `tl:"flag:2,encoded_in_bitflags"` // Set this flag to request the peer's photo (if any).
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.
MaxQuantity int32 // Maximum number of peers that can be chosen.
}
Prompts the user to select and share one or more peers with the bot using messages.sendBotRequestedPeer.
func (*InputKeyboardButtonRequestPeer) CRC ¶
func (*InputKeyboardButtonRequestPeer) CRC() uint32
func (*InputKeyboardButtonRequestPeer) FlagIndex ¶
func (*InputKeyboardButtonRequestPeer) FlagIndex() int
func (*InputKeyboardButtonRequestPeer) ImplementsKeyboardButton ¶
func (*InputKeyboardButtonRequestPeer) ImplementsKeyboardButton()
type InputKeyboardButtonURLAuth ¶
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.
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.
}
Button to request a user to authorize via URL using Seamless Telegram Login.
func (*InputKeyboardButtonURLAuth) CRC ¶
func (*InputKeyboardButtonURLAuth) CRC() uint32
func (*InputKeyboardButtonURLAuth) FlagIndex ¶
func (*InputKeyboardButtonURLAuth) FlagIndex() int
func (*InputKeyboardButtonURLAuth) ImplementsKeyboardButton ¶
func (*InputKeyboardButtonURLAuth) ImplementsKeyboardButton()
type InputKeyboardButtonUserProfile ¶
type InputKeyboardButtonUserProfile struct {
Text string // Button text
UserID InputUser // User ID
}
Button that links directly to a user profile
func (*InputKeyboardButtonUserProfile) CRC ¶
func (*InputKeyboardButtonUserProfile) CRC() uint32
func (*InputKeyboardButtonUserProfile) ImplementsKeyboardButton ¶
func (*InputKeyboardButtonUserProfile) ImplementsKeyboardButton()
type InputMedia ¶
type InputMediaAreaChannelPost ¶
type InputMediaAreaChannelPost struct {
Coordinates *MediaAreaCoordinates // The size and location of the media area corresponding to the location sticker on top of the story media.
Channel InputChannel // The channel that posted the message
MsgID int32 // ID of the channel message
}
Represents a channel post
func (*InputMediaAreaChannelPost) CRC ¶
func (*InputMediaAreaChannelPost) CRC() uint32
func (*InputMediaAreaChannelPost) ImplementsMediaArea ¶
func (*InputMediaAreaChannelPost) ImplementsMediaArea()
type InputMediaAreaVenue ¶
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
ResultID string // The `id` of the chosen result
}
Represents a location tag attached to a story, with additional venue information.
func (*InputMediaAreaVenue) CRC ¶
func (*InputMediaAreaVenue) CRC() uint32
func (*InputMediaAreaVenue) ImplementsMediaArea ¶
func (*InputMediaAreaVenue) ImplementsMediaArea()
type InputMediaContact ¶
type InputMediaContact struct {
PhoneNumber string // Phone number
FirstName string // Contact's first name
LastName string // Contact's last name
Vcard string // Contact vcard
}
Phone book contact
func (*InputMediaContact) CRC ¶
func (*InputMediaContact) CRC() uint32
func (*InputMediaContact) ImplementsInputMedia ¶
func (*InputMediaContact) ImplementsInputMedia()
type InputMediaDice ¶
type InputMediaDice struct {
Emoticon string // The emoji, for now <img class="emoji" src="//telegram.org/img/emoji/40/F09F8F80.png" width="20" height="20" alt="🏀" />, <img class="emoji" src="//telegram.org/img/emoji/40/F09F8EB2.png" width="20" height="20" alt="🎲" /> and <img class="emoji" src="//telegram.org/img/emoji/40/F09F8EAF.png" width="20" height="20" alt="🎯" /> are supported
}
Send a dice-based animated sticker
func (*InputMediaDice) CRC ¶
func (*InputMediaDice) CRC() uint32
func (*InputMediaDice) ImplementsInputMedia ¶
func (*InputMediaDice) ImplementsInputMedia()
type InputMediaDocument ¶
type InputMediaDocument struct {
Spoiler bool `tl:"flag:2,encoded_in_bitflags"` // Whether this media should be hidden behind a spoiler warning
ID InputDocument // The document to be forwarded.
VideoCover InputPhoto `tl:"flag:3"` // Custom video cover.
VideoTimestamp int32 `tl:"flag:4"` // Start playing the video at the specified timestamp (seconds).
TtlSeconds int32 `tl:"flag:0"` // Time to live of self-destructing document
Query string `tl:"flag:1"` // Text query or emoji that was used by the user to find this sticker or GIF: used to improve search result relevance.
}
Forwarded document
func (*InputMediaDocument) CRC ¶
func (*InputMediaDocument) CRC() uint32
func (*InputMediaDocument) FlagIndex ¶
func (*InputMediaDocument) FlagIndex() int
func (*InputMediaDocument) ImplementsInputMedia ¶
func (*InputMediaDocument) ImplementsInputMedia()
type InputMediaDocumentExternal ¶
type InputMediaDocumentExternal struct {
Spoiler bool `tl:"flag:1,encoded_in_bitflags"` // Whether this media should be hidden behind a spoiler warning
URL string // URL of the document
TtlSeconds int32 `tl:"flag:0"` // Self-destruct time to live of document
VideoCover InputPhoto `tl:"flag:2"` // Custom video cover.
VideoTimestamp int32 `tl:"flag:3"` // Start playing the video at the specified timestamp (seconds).
}
Document that will be downloaded by the telegram servers
func (*InputMediaDocumentExternal) CRC ¶
func (*InputMediaDocumentExternal) CRC() uint32
func (*InputMediaDocumentExternal) FlagIndex ¶
func (*InputMediaDocumentExternal) FlagIndex() int
func (*InputMediaDocumentExternal) ImplementsInputMedia ¶
func (*InputMediaDocumentExternal) ImplementsInputMedia()
type InputMediaEmpty ¶
type InputMediaEmpty struct{}
Empty media content of a message.
func (*InputMediaEmpty) CRC ¶
func (*InputMediaEmpty) CRC() uint32
func (*InputMediaEmpty) ImplementsInputMedia ¶
func (*InputMediaEmpty) ImplementsInputMedia()
type InputMediaGame ¶
type InputMediaGame struct {
ID InputGame // The game to forward
}
A game
func (*InputMediaGame) CRC ¶
func (*InputMediaGame) CRC() uint32
func (*InputMediaGame) ImplementsInputMedia ¶
func (*InputMediaGame) ImplementsInputMedia()
type InputMediaGeoLive ¶
type InputMediaGeoLive struct {
Stopped bool `tl:"flag:0,encoded_in_bitflags"` // Whether sending of the geolocation was stopped
GeoPoint InputGeoPoint // Current geolocation
Heading int32 `tl:"flag:2"` // For live locations, a direction in which the location moves, in degrees; 1-360.
Period int32 `tl:"flag:1"` // Validity period of the current location
ProximityNotificationRadius int32 `tl:"flag:3"` // For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)
}
Live geolocation
func (*InputMediaGeoLive) CRC ¶
func (*InputMediaGeoLive) CRC() uint32
func (*InputMediaGeoLive) FlagIndex ¶
func (*InputMediaGeoLive) FlagIndex() int
func (*InputMediaGeoLive) ImplementsInputMedia ¶
func (*InputMediaGeoLive) ImplementsInputMedia()
type InputMediaGeoPoint ¶
type InputMediaGeoPoint struct {
GeoPoint InputGeoPoint // GeoPoint
}
Map.
func (*InputMediaGeoPoint) CRC ¶
func (*InputMediaGeoPoint) CRC() uint32
func (*InputMediaGeoPoint) ImplementsInputMedia ¶
func (*InputMediaGeoPoint) ImplementsInputMedia()
type InputMediaInvoice ¶
type InputMediaInvoice struct {
Title string // Product name, 1-32 characters
Description string // Product description, 1-255 characters
Photo *InputWebDocument `tl:"flag:0"` // URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.
Invoice *Invoice // The actual invoice
Payload []byte // Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
Provider string `tl:"flag:3"` // Payments provider token, obtained via Botfather
ProviderData *DataJson // JSON-encoded data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.
StartParam string `tl:"flag:1"` // Unique bot deep links start parameter. If present, forwarded copies of the sent message will have a URL button with a deep link to the bot (instead of a Pay button), with the value used as the start parameter. If absent, forwarded copies of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice.
ExtendedMedia InputMedia `tl:"flag:2"` // Deprecated
}
Generated invoice of a bot payment
func (*InputMediaInvoice) CRC ¶
func (*InputMediaInvoice) CRC() uint32
func (*InputMediaInvoice) FlagIndex ¶
func (*InputMediaInvoice) FlagIndex() int
func (*InputMediaInvoice) ImplementsInputMedia ¶
func (*InputMediaInvoice) ImplementsInputMedia()
type InputMediaPaidMedia ¶
type InputMediaPaidMedia struct {
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)
}
Paid media
func (*InputMediaPaidMedia) CRC ¶
func (*InputMediaPaidMedia) CRC() uint32
func (*InputMediaPaidMedia) FlagIndex ¶
func (*InputMediaPaidMedia) FlagIndex() int
func (*InputMediaPaidMedia) ImplementsInputMedia ¶
func (*InputMediaPaidMedia) ImplementsInputMedia()
type InputMediaPhoto ¶
type InputMediaPhoto struct {
Spoiler bool `tl:"flag:1,encoded_in_bitflags"` // Whether this media should be hidden behind a spoiler warning
ID InputPhoto // Photo to be forwarded
TtlSeconds int32 `tl:"flag:0"` // Time to live in seconds of self-destructing photo
}
Forwarded photo
func (*InputMediaPhoto) CRC ¶
func (*InputMediaPhoto) CRC() uint32
func (*InputMediaPhoto) FlagIndex ¶
func (*InputMediaPhoto) FlagIndex() int
func (*InputMediaPhoto) ImplementsInputMedia ¶
func (*InputMediaPhoto) ImplementsInputMedia()
type InputMediaPhotoExternal ¶
type InputMediaPhotoExternal struct {
Spoiler bool `tl:"flag:1,encoded_in_bitflags"` // Whether this media should be hidden behind a spoiler warning
URL string // URL of the photo
TtlSeconds int32 `tl:"flag:0"` // Self-destruct time to live of photo
}
New photo that will be uploaded by the server using the specified URL
func (*InputMediaPhotoExternal) CRC ¶
func (*InputMediaPhotoExternal) CRC() uint32
func (*InputMediaPhotoExternal) FlagIndex ¶
func (*InputMediaPhotoExternal) FlagIndex() int
func (*InputMediaPhotoExternal) ImplementsInputMedia ¶
func (*InputMediaPhotoExternal) ImplementsInputMedia()
type InputMediaPoll ¶
type InputMediaPoll struct {
Poll *Poll // The poll to send
CorrectAnswers [][]byte `tl:"flag:0"` // Correct answer IDs (for quiz polls)
Solution string `tl:"flag:1"` // Explanation of quiz solution
SolutionEntities []MessageEntity `tl:"flag:1"` // Message entities for styled text
}
A poll
func (*InputMediaPoll) CRC ¶
func (*InputMediaPoll) CRC() uint32
func (*InputMediaPoll) FlagIndex ¶
func (*InputMediaPoll) FlagIndex() int
func (*InputMediaPoll) ImplementsInputMedia ¶
func (*InputMediaPoll) ImplementsInputMedia()
type InputMediaStory ¶
type InputMediaStory struct {
Peer InputPeer // Peer where the story was posted
ID int32 // Story ID
}
Forwarded story
func (*InputMediaStory) CRC ¶
func (*InputMediaStory) CRC() uint32
func (*InputMediaStory) ImplementsInputMedia ¶
func (*InputMediaStory) ImplementsInputMedia()
type InputMediaTodo ¶ added in v1.6.1
type InputMediaTodo struct {
Todo *TodoList // The todo list.
}
Creates a todo list.
func (*InputMediaTodo) CRC ¶ added in v1.6.1
func (*InputMediaTodo) CRC() uint32
func (*InputMediaTodo) ImplementsInputMedia ¶ added in v1.6.1
func (*InputMediaTodo) ImplementsInputMedia()
type InputMediaUploadedDocument ¶
type InputMediaUploadedDocument struct {
NosoundVideo bool `tl:"flag:3,encoded_in_bitflags"` // Whether to send the file as a video even if it doesn't have an audio track (i.e. if set, the documentAttributeAnimated attribute will not be set even for videos without audio)
ForceFile bool `tl:"flag:4,encoded_in_bitflags"` // Force the media file to be uploaded as document
Spoiler bool `tl:"flag:5,encoded_in_bitflags"` // Whether this media should be hidden behind a spoiler warning
File InputFile // The uploaded file
Thumb InputFile `tl:"flag:2"` // Thumbnail of the document, uploaded as for the file
MimeType string // MIME type of document
Attributes []DocumentAttribute // Attributes that specify the type of the document (video, audio, voice, sticker, etc.)
Stickers []InputDocument `tl:"flag:0"` // Attached stickers
VideoCover InputPhoto `tl:"flag:6"` // Start playing the video at the specified timestamp (seconds).
VideoTimestamp int32 `tl:"flag:7"` // Start playing the video at the specified timestamp (seconds).
TtlSeconds int32 `tl:"flag:1"` // Time to live in seconds of self-destructing document
}
New document
func (*InputMediaUploadedDocument) CRC ¶
func (*InputMediaUploadedDocument) CRC() uint32
func (*InputMediaUploadedDocument) FlagIndex ¶
func (*InputMediaUploadedDocument) FlagIndex() int
func (*InputMediaUploadedDocument) ImplementsInputMedia ¶
func (*InputMediaUploadedDocument) ImplementsInputMedia()
type InputMediaUploadedPhoto ¶
type InputMediaUploadedPhoto struct {
Spoiler bool `tl:"flag:2,encoded_in_bitflags"` // Whether this media should be hidden behind a spoiler warning
File InputFile // The uploaded file
Stickers []InputDocument `tl:"flag:0"` // Attached mask stickers
TtlSeconds int32 `tl:"flag:1"` // Time to live in seconds of self-destructing photo
}
Photo
func (*InputMediaUploadedPhoto) CRC ¶
func (*InputMediaUploadedPhoto) CRC() uint32
func (*InputMediaUploadedPhoto) FlagIndex ¶
func (*InputMediaUploadedPhoto) FlagIndex() int
func (*InputMediaUploadedPhoto) ImplementsInputMedia ¶
func (*InputMediaUploadedPhoto) ImplementsInputMedia()
type InputMediaVenue ¶
type InputMediaVenue struct {
GeoPoint InputGeoPoint // Geolocation
Title string // Venue name
Address string // Physical address of the venue
Provider string // Venue provider: currently only "foursquare" and "gplaces" (Google Places) need to be supported
VenueID string // Venue ID in the provider's database
VenueType string // Venue type in the provider's database
}
Can be used to send a venue geolocation.
func (*InputMediaVenue) CRC ¶
func (*InputMediaVenue) CRC() uint32
func (*InputMediaVenue) ImplementsInputMedia ¶
func (*InputMediaVenue) ImplementsInputMedia()
type InputMediaWebPage ¶
type InputMediaWebPage struct {
ForceLargeMedia bool `tl:"flag:0,encoded_in_bitflags"` // If set, specifies that a large media preview should be used.
ForceSmallMedia bool `tl:"flag:1,encoded_in_bitflags"` // If set, specifies that a small media preview should be used.
Optional bool `tl:"flag:2,encoded_in_bitflags"` // If not set, a `WEBPAGE_NOT_FOUND` RPC error will be emitted if a webpage preview cannot be generated for the specified `url`; otherwise, no error will be emitted (unless the provided message is also empty, in which case a `MESSAGE_EMPTY` will be emitted, instead).
URL string // The URL to use for the link preview.
}
Specifies options that will be used to generate the link preview for the caption, or even a standalone link preview without an attached message.
func (*InputMediaWebPage) CRC ¶
func (*InputMediaWebPage) CRC() uint32
func (*InputMediaWebPage) FlagIndex ¶
func (*InputMediaWebPage) FlagIndex() int
func (*InputMediaWebPage) ImplementsInputMedia ¶
func (*InputMediaWebPage) ImplementsInputMedia()
type InputMessage ¶
type InputMessageCallbackQuery ¶
Used by bots for fetching information about the message that originated a callback query
func (*InputMessageCallbackQuery) CRC ¶
func (*InputMessageCallbackQuery) CRC() uint32
func (*InputMessageCallbackQuery) ImplementsInputMessage ¶
func (*InputMessageCallbackQuery) ImplementsInputMessage()
type InputMessageEntityMentionName ¶
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)
UserID InputUser // Identifier of the user that was mentioned
}
Message entity that can be used to create a user user mention: received mentions use the messageEntityMentionName constructor, instead.
func (*InputMessageEntityMentionName) CRC ¶
func (*InputMessageEntityMentionName) CRC() uint32
func (*InputMessageEntityMentionName) ImplementsMessageEntity ¶
func (*InputMessageEntityMentionName) ImplementsMessageEntity()
type InputMessageID ¶
type InputMessageID struct {
ID int32 // Message ID
}
Message by ID
func (*InputMessageID) CRC ¶
func (*InputMessageID) CRC() uint32
func (*InputMessageID) ImplementsInputMessage ¶
func (*InputMessageID) ImplementsInputMessage()
type InputMessagePinned ¶
type InputMessagePinned struct{}
Pinned message
func (*InputMessagePinned) CRC ¶
func (*InputMessagePinned) CRC() uint32
func (*InputMessagePinned) ImplementsInputMessage ¶
func (*InputMessagePinned) ImplementsInputMessage()
type InputMessageReplyTo ¶
type InputMessageReplyTo struct {
ID int32 // ID of the message that replies to the message we need
}
Message to which the specified message replies to
func (*InputMessageReplyTo) CRC ¶
func (*InputMessageReplyTo) CRC() uint32
func (*InputMessageReplyTo) ImplementsInputMessage ¶
func (*InputMessageReplyTo) ImplementsInputMessage()
type InputMessagesFilterChatPhotos ¶
type InputMessagesFilterChatPhotos struct{}
Return only chat photo changes
func (*InputMessagesFilterChatPhotos) CRC ¶
func (*InputMessagesFilterChatPhotos) CRC() uint32
func (*InputMessagesFilterChatPhotos) ImplementsMessagesFilter ¶
func (*InputMessagesFilterChatPhotos) ImplementsMessagesFilter()
type InputMessagesFilterContacts ¶
type InputMessagesFilterContacts struct{}
Return only messages containing contacts
func (*InputMessagesFilterContacts) CRC ¶
func (*InputMessagesFilterContacts) CRC() uint32
func (*InputMessagesFilterContacts) ImplementsMessagesFilter ¶
func (*InputMessagesFilterContacts) ImplementsMessagesFilter()
type InputMessagesFilterDocument ¶
type InputMessagesFilterDocument struct{}
Filter for messages containing documents.
func (*InputMessagesFilterDocument) CRC ¶
func (*InputMessagesFilterDocument) CRC() uint32
func (*InputMessagesFilterDocument) ImplementsMessagesFilter ¶
func (*InputMessagesFilterDocument) ImplementsMessagesFilter()
type InputMessagesFilterEmpty ¶
type InputMessagesFilterEmpty struct{}
Filter is absent.
func (*InputMessagesFilterEmpty) CRC ¶
func (*InputMessagesFilterEmpty) CRC() uint32
func (*InputMessagesFilterEmpty) ImplementsMessagesFilter ¶
func (*InputMessagesFilterEmpty) ImplementsMessagesFilter()
type InputMessagesFilterGeo ¶
type InputMessagesFilterGeo struct{}
Return only messages containing geolocations
func (*InputMessagesFilterGeo) CRC ¶
func (*InputMessagesFilterGeo) CRC() uint32
func (*InputMessagesFilterGeo) ImplementsMessagesFilter ¶
func (*InputMessagesFilterGeo) ImplementsMessagesFilter()
type InputMessagesFilterGif ¶
type InputMessagesFilterGif struct{}
Return only messages containing gifs
func (*InputMessagesFilterGif) CRC ¶
func (*InputMessagesFilterGif) CRC() uint32
func (*InputMessagesFilterGif) ImplementsMessagesFilter ¶
func (*InputMessagesFilterGif) ImplementsMessagesFilter()
type InputMessagesFilterMusic ¶
type InputMessagesFilterMusic struct{}
Return only messages containing audio files
func (*InputMessagesFilterMusic) CRC ¶
func (*InputMessagesFilterMusic) CRC() uint32
func (*InputMessagesFilterMusic) ImplementsMessagesFilter ¶
func (*InputMessagesFilterMusic) ImplementsMessagesFilter()
type InputMessagesFilterMyMentions ¶
type InputMessagesFilterMyMentions struct{}
Return only messages where the current user was mentioned.
func (*InputMessagesFilterMyMentions) CRC ¶
func (*InputMessagesFilterMyMentions) CRC() uint32
func (*InputMessagesFilterMyMentions) ImplementsMessagesFilter ¶
func (*InputMessagesFilterMyMentions) ImplementsMessagesFilter()
type InputMessagesFilterPhoneCalls ¶
type InputMessagesFilterPhoneCalls struct {
Missed bool `tl:"flag:0,encoded_in_bitflags"` // Return only missed phone calls
}
Return only phone calls
func (*InputMessagesFilterPhoneCalls) CRC ¶
func (*InputMessagesFilterPhoneCalls) CRC() uint32
func (*InputMessagesFilterPhoneCalls) FlagIndex ¶
func (*InputMessagesFilterPhoneCalls) FlagIndex() int
func (*InputMessagesFilterPhoneCalls) ImplementsMessagesFilter ¶
func (*InputMessagesFilterPhoneCalls) ImplementsMessagesFilter()
type InputMessagesFilterPhotoVideo ¶
type InputMessagesFilterPhotoVideo struct{}
Filter for messages containing photos or videos.
func (*InputMessagesFilterPhotoVideo) CRC ¶
func (*InputMessagesFilterPhotoVideo) CRC() uint32
func (*InputMessagesFilterPhotoVideo) ImplementsMessagesFilter ¶
func (*InputMessagesFilterPhotoVideo) ImplementsMessagesFilter()
type InputMessagesFilterPhotos ¶
type InputMessagesFilterPhotos struct{}
Filter for messages containing photos.
func (*InputMessagesFilterPhotos) CRC ¶
func (*InputMessagesFilterPhotos) CRC() uint32
func (*InputMessagesFilterPhotos) ImplementsMessagesFilter ¶
func (*InputMessagesFilterPhotos) ImplementsMessagesFilter()
type InputMessagesFilterPinned ¶
type InputMessagesFilterPinned struct{}
Fetch only pinned messages
func (*InputMessagesFilterPinned) CRC ¶
func (*InputMessagesFilterPinned) CRC() uint32
func (*InputMessagesFilterPinned) ImplementsMessagesFilter ¶
func (*InputMessagesFilterPinned) ImplementsMessagesFilter()
type InputMessagesFilterRoundVideo ¶
type InputMessagesFilterRoundVideo struct{}
Return only round videos
func (*InputMessagesFilterRoundVideo) CRC ¶
func (*InputMessagesFilterRoundVideo) CRC() uint32
func (*InputMessagesFilterRoundVideo) ImplementsMessagesFilter ¶
func (*InputMessagesFilterRoundVideo) ImplementsMessagesFilter()
type InputMessagesFilterRoundVoice ¶
type InputMessagesFilterRoundVoice struct{}
Return only round videos and voice notes
func (*InputMessagesFilterRoundVoice) CRC ¶
func (*InputMessagesFilterRoundVoice) CRC() uint32
func (*InputMessagesFilterRoundVoice) ImplementsMessagesFilter ¶
func (*InputMessagesFilterRoundVoice) ImplementsMessagesFilter()
type InputMessagesFilterURL ¶
type InputMessagesFilterURL struct{}
Return only messages containing URLs
func (*InputMessagesFilterURL) CRC ¶
func (*InputMessagesFilterURL) CRC() uint32
func (*InputMessagesFilterURL) ImplementsMessagesFilter ¶
func (*InputMessagesFilterURL) ImplementsMessagesFilter()
type InputMessagesFilterVideo ¶
type InputMessagesFilterVideo struct{}
Filter for messages containing videos.
func (*InputMessagesFilterVideo) CRC ¶
func (*InputMessagesFilterVideo) CRC() uint32
func (*InputMessagesFilterVideo) ImplementsMessagesFilter ¶
func (*InputMessagesFilterVideo) ImplementsMessagesFilter()
type InputMessagesFilterVoice ¶
type InputMessagesFilterVoice struct{}
Return only messages containing voice notes
func (*InputMessagesFilterVoice) CRC ¶
func (*InputMessagesFilterVoice) CRC() uint32
func (*InputMessagesFilterVoice) ImplementsMessagesFilter ¶
func (*InputMessagesFilterVoice) ImplementsMessagesFilter()
type InputNotifyBroadcasts ¶
type InputNotifyBroadcasts struct{}
All channels
func (*InputNotifyBroadcasts) CRC ¶
func (*InputNotifyBroadcasts) CRC() uint32
func (*InputNotifyBroadcasts) ImplementsInputNotifyPeer ¶
func (*InputNotifyBroadcasts) ImplementsInputNotifyPeer()
type InputNotifyChats ¶
type InputNotifyChats struct{}
Notifications generated by all groups.
func (*InputNotifyChats) CRC ¶
func (*InputNotifyChats) CRC() uint32
func (*InputNotifyChats) ImplementsInputNotifyPeer ¶
func (*InputNotifyChats) ImplementsInputNotifyPeer()
type InputNotifyForumTopic ¶
Notifications generated by a topic in a forum.
func (*InputNotifyForumTopic) CRC ¶
func (*InputNotifyForumTopic) CRC() uint32
func (*InputNotifyForumTopic) ImplementsInputNotifyPeer ¶
func (*InputNotifyForumTopic) ImplementsInputNotifyPeer()
type InputNotifyPeer ¶
type InputNotifyPeerObj ¶
type InputNotifyPeerObj struct {
Peer InputPeer // User or group
}
Notifications generated by a certain user or group.
func (*InputNotifyPeerObj) CRC ¶
func (*InputNotifyPeerObj) CRC() uint32
func (*InputNotifyPeerObj) ImplementsInputNotifyPeer ¶
func (*InputNotifyPeerObj) ImplementsInputNotifyPeer()
type InputNotifyUsers ¶
type InputNotifyUsers struct{}
Notifications generated by all users.
func (*InputNotifyUsers) CRC ¶
func (*InputNotifyUsers) CRC() uint32
func (*InputNotifyUsers) ImplementsInputNotifyPeer ¶
func (*InputNotifyUsers) ImplementsInputNotifyPeer()
type InputPasskeyCredentialPublicKey ¶ added in v1.6.10
type InputPasskeyCredentialPublicKey struct {
ID string
RawID string
Response InputPasskeyResponse
}
func (*InputPasskeyCredentialPublicKey) CRC ¶ added in v1.6.10
func (*InputPasskeyCredentialPublicKey) CRC() uint32
type InputPasskeyResponse ¶ added in v1.6.10
type InputPasskeyResponseLogin ¶ added in v1.6.10
type InputPasskeyResponseLogin struct {
ClientData *DataJson
AuthenticatorData []byte
Signature []byte
UserHandle string
}
func (*InputPasskeyResponseLogin) CRC ¶ added in v1.6.10
func (*InputPasskeyResponseLogin) CRC() uint32
func (*InputPasskeyResponseLogin) ImplementsInputPasskeyResponse ¶ added in v1.6.10
func (*InputPasskeyResponseLogin) ImplementsInputPasskeyResponse()
type InputPasskeyResponseRegister ¶ added in v1.6.10
func (*InputPasskeyResponseRegister) CRC ¶ added in v1.6.10
func (*InputPasskeyResponseRegister) CRC() uint32
func (*InputPasskeyResponseRegister) ImplementsInputPasskeyResponse ¶ added in v1.6.10
func (*InputPasskeyResponseRegister) ImplementsInputPasskeyResponse()
type InputPaymentCredentials ¶
type InputPaymentCredentialsApplePay ¶
type InputPaymentCredentialsApplePay struct {
PaymentData *DataJson // Payment data
}
Apple pay payment credentials
func (*InputPaymentCredentialsApplePay) CRC ¶
func (*InputPaymentCredentialsApplePay) CRC() uint32
func (*InputPaymentCredentialsApplePay) ImplementsInputPaymentCredentials ¶
func (*InputPaymentCredentialsApplePay) ImplementsInputPaymentCredentials()
type InputPaymentCredentialsGooglePay ¶
type InputPaymentCredentialsGooglePay struct {
PaymentToken *DataJson // Payment token
}
Google Pay payment credentials
func (*InputPaymentCredentialsGooglePay) CRC ¶
func (*InputPaymentCredentialsGooglePay) CRC() uint32
func (*InputPaymentCredentialsGooglePay) ImplementsInputPaymentCredentials ¶
func (*InputPaymentCredentialsGooglePay) ImplementsInputPaymentCredentials()
type InputPaymentCredentialsObj ¶
type InputPaymentCredentialsObj struct {
Save bool `tl:"flag:0,encoded_in_bitflags"` // Save payment credential for future use
Data *DataJson // Payment credentials
}
Payment credentials
func (*InputPaymentCredentialsObj) CRC ¶
func (*InputPaymentCredentialsObj) CRC() uint32
func (*InputPaymentCredentialsObj) FlagIndex ¶
func (*InputPaymentCredentialsObj) FlagIndex() int
func (*InputPaymentCredentialsObj) ImplementsInputPaymentCredentials ¶
func (*InputPaymentCredentialsObj) ImplementsInputPaymentCredentials()
type InputPaymentCredentialsSaved ¶
type InputPaymentCredentialsSaved struct {
ID string // Credential ID
TmpPassword []byte // Temporary password
}
Saved payment credentials
func (*InputPaymentCredentialsSaved) CRC ¶
func (*InputPaymentCredentialsSaved) CRC() uint32
func (*InputPaymentCredentialsSaved) ImplementsInputPaymentCredentials ¶
func (*InputPaymentCredentialsSaved) ImplementsInputPaymentCredentials()
type InputPeerCache ¶
type InputPeerChannel ¶
type InputPeerChannel struct {
ChannelID int64 // Channel identifier
AccessHash int64 // access_hash value from the channel constructor
}
Defines a channel for further interaction.
func (*InputPeerChannel) CRC ¶
func (*InputPeerChannel) CRC() uint32
func (*InputPeerChannel) ImplementsInputPeer ¶
func (*InputPeerChannel) ImplementsInputPeer()
type InputPeerChannelFromMessage ¶
type InputPeerChannelFromMessage struct {
Peer InputPeer // The chat where the channel's message was seen
MsgID int32 // The message ID
ChannelID int64 // The identifier of the channel that was seen
}
Defines a min channel that was seen in a certain message of a certain chat.
func (*InputPeerChannelFromMessage) CRC ¶
func (*InputPeerChannelFromMessage) CRC() uint32
func (*InputPeerChannelFromMessage) ImplementsInputPeer ¶
func (*InputPeerChannelFromMessage) ImplementsInputPeer()
type InputPeerChat ¶
type InputPeerChat struct {
ChatID int64 // Chat identifier
}
Defines a chat for further interaction.
func (*InputPeerChat) CRC ¶
func (*InputPeerChat) CRC() uint32
func (*InputPeerChat) ImplementsInputPeer ¶
func (*InputPeerChat) ImplementsInputPeer()
type InputPeerColorCollectible ¶ added in v1.6.3
type InputPeerColorCollectible struct {
CollectibleID int64
}
func (*InputPeerColorCollectible) CRC ¶ added in v1.6.3
func (*InputPeerColorCollectible) CRC() uint32
func (*InputPeerColorCollectible) ImplementsPeerColor ¶ added in v1.6.3
func (*InputPeerColorCollectible) ImplementsPeerColor()
type InputPeerEmpty ¶
type InputPeerEmpty struct{}
An empty constructor, no user or chat is defined.
func (*InputPeerEmpty) CRC ¶
func (*InputPeerEmpty) CRC() uint32
func (*InputPeerEmpty) ImplementsInputPeer ¶
func (*InputPeerEmpty) ImplementsInputPeer()
type InputPeerNotifySettings ¶
type InputPeerNotifySettings struct {
ShowPreviews bool `tl:"flag:0"`
Silent bool `tl:"flag:1"`
MuteUntil int32 `tl:"flag:2"`
Sound NotificationSound `tl:"flag:3"`
StoriesMuted bool `tl:"flag:6"`
StoriesHideSender bool `tl:"flag:7"`
StoriesSound NotificationSound `tl:"flag:8"`
}
Notification settings.
func (*InputPeerNotifySettings) CRC ¶
func (*InputPeerNotifySettings) CRC() uint32
func (*InputPeerNotifySettings) FlagIndex ¶
func (*InputPeerNotifySettings) FlagIndex() int
type InputPeerPhotoFileLocation ¶
type InputPeerPhotoFileLocation struct {
Big bool `tl:"flag:0,encoded_in_bitflags"` // Whether to download the high-quality version of the picture
Peer InputPeer // The peer whose profile picture should be downloaded
PhotoID int64 // Photo ID
}
Location of profile photo of channel/group/supergroup/user
func (*InputPeerPhotoFileLocation) CRC ¶
func (*InputPeerPhotoFileLocation) CRC() uint32
func (*InputPeerPhotoFileLocation) FlagIndex ¶
func (*InputPeerPhotoFileLocation) FlagIndex() int
func (*InputPeerPhotoFileLocation) ImplementsInputFileLocation ¶
func (*InputPeerPhotoFileLocation) ImplementsInputFileLocation()
type InputPeerSelf ¶
type InputPeerSelf struct{}
Defines the current user.
func (*InputPeerSelf) CRC ¶
func (*InputPeerSelf) CRC() uint32
func (*InputPeerSelf) ImplementsInputPeer ¶
func (*InputPeerSelf) ImplementsInputPeer()
type InputPeerUser ¶
type InputPeerUser struct {
UserID int64 // User identifier
AccessHash int64 // access_hash value from the user constructor
}
Defines a user for further interaction.
func (*InputPeerUser) CRC ¶
func (*InputPeerUser) CRC() uint32
func (*InputPeerUser) ImplementsInputPeer ¶
func (*InputPeerUser) ImplementsInputPeer()
type InputPeerUserFromMessage ¶
type InputPeerUserFromMessage struct {
Peer InputPeer // The chat where the user was seen
MsgID int32 // The message ID
UserID int64 // The identifier of the user that was seen
}
Defines a min user that was seen in a certain message of a certain chat.
func (*InputPeerUserFromMessage) CRC ¶
func (*InputPeerUserFromMessage) CRC() uint32
func (*InputPeerUserFromMessage) ImplementsInputPeer ¶
func (*InputPeerUserFromMessage) ImplementsInputPeer()
type InputPhoneContact ¶
type InputPhoneContact struct {
ClientID int64
Phone string
FirstName string
LastName string
Note *TextWithEntities `tl:"flag:0"`
}
Phone contact.
func (*InputPhoneContact) CRC ¶
func (*InputPhoneContact) CRC() uint32
func (*InputPhoneContact) FlagIndex ¶ added in v1.6.7
func (*InputPhoneContact) FlagIndex() int
type InputPhoto ¶
type InputPhotoEmpty ¶
type InputPhotoEmpty struct{}
Empty constructor.
func (*InputPhotoEmpty) CRC ¶
func (*InputPhotoEmpty) CRC() uint32
func (*InputPhotoEmpty) ImplementsInputPhoto ¶
func (*InputPhotoEmpty) ImplementsInputPhoto()
type InputPhotoFileLocation ¶
type InputPhotoFileLocation struct {
ID int64 // Photo ID, obtained from the photo object
AccessHash int64 // Photo's access hash, obtained from the photo object
FileReference []byte // File reference
ThumbSize string // The PhotoSize to download: must be set to the `type` field of the desired PhotoSize object of the photo
}
Use this object to download a photo with upload.getFile method
func (*InputPhotoFileLocation) CRC ¶
func (*InputPhotoFileLocation) CRC() uint32
func (*InputPhotoFileLocation) ImplementsInputFileLocation ¶
func (*InputPhotoFileLocation) ImplementsInputFileLocation()
type InputPhotoLegacyFileLocation ¶
type InputPhotoLegacyFileLocation struct {
ID int64 // Photo ID
AccessHash int64 // Access hash
FileReference []byte // File reference
VolumeID int64 // Volume ID
LocalID int32 // Local ID
Secret int64 // Secret
}
DEPRECATED legacy photo file location
func (*InputPhotoLegacyFileLocation) CRC ¶
func (*InputPhotoLegacyFileLocation) CRC() uint32
func (*InputPhotoLegacyFileLocation) ImplementsInputFileLocation ¶
func (*InputPhotoLegacyFileLocation) ImplementsInputFileLocation()
type InputPhotoObj ¶
type InputPhotoObj struct {
ID int64 // Photo identifier
AccessHash int64 // access_hash value from the photo constructor
FileReference []byte // File reference
}
Defines a photo for further interaction.
func (*InputPhotoObj) CRC ¶
func (*InputPhotoObj) CRC() uint32
func (*InputPhotoObj) ImplementsInputPhoto ¶
func (*InputPhotoObj) ImplementsInputPhoto()
type InputPrivacyKey ¶
type InputPrivacyKey uint32
const ( InputPrivacyKeyAbout InputPrivacyKey = 0x3823cc40 InputPrivacyKeyAddedByPhone InputPrivacyKey = 0xd1219bdd InputPrivacyKeyBirthday InputPrivacyKey = 0xd65a11cc InputPrivacyKeyChatInvite InputPrivacyKey = 0xbdfb0426 InputPrivacyKeyForwards InputPrivacyKey = 0xa4dd4c08 InputPrivacyKeyNoPaidMessages InputPrivacyKey = 0xbdc597b4 InputPrivacyKeyPhoneCall InputPrivacyKey = 0xfabadc5f InputPrivacyKeyPhoneNumber InputPrivacyKey = 0x352dafa InputPrivacyKeyPhoneP2P InputPrivacyKey = 0xdb9e70d2 InputPrivacyKeyProfilePhoto InputPrivacyKey = 0x5719bacc InputPrivacyKeySavedMusic InputPrivacyKey = 0x4dbe9226 InputPrivacyKeyStarGiftsAutoSave InputPrivacyKey = 0xe1732341 InputPrivacyKeyStatusTimestamp InputPrivacyKey = 0x4f96cb18 InputPrivacyKeyVoiceMessages InputPrivacyKey = 0xaee69d68 )
func (InputPrivacyKey) CRC ¶
func (e InputPrivacyKey) CRC() uint32
func (InputPrivacyKey) String ¶
func (e InputPrivacyKey) String() string
type InputPrivacyRule ¶
type InputPrivacyValueAllowAll ¶
type InputPrivacyValueAllowAll struct{}
Allow all users
func (*InputPrivacyValueAllowAll) CRC ¶
func (*InputPrivacyValueAllowAll) CRC() uint32
func (*InputPrivacyValueAllowAll) ImplementsInputPrivacyRule ¶
func (*InputPrivacyValueAllowAll) ImplementsInputPrivacyRule()
type InputPrivacyValueAllowBots ¶ added in v1.3.21
type InputPrivacyValueAllowBots struct{}
Allow bots and mini apps
func (*InputPrivacyValueAllowBots) CRC ¶ added in v1.3.21
func (*InputPrivacyValueAllowBots) CRC() uint32
func (*InputPrivacyValueAllowBots) ImplementsInputPrivacyRule ¶ added in v1.3.21
func (*InputPrivacyValueAllowBots) ImplementsInputPrivacyRule()
type InputPrivacyValueAllowChatParticipants ¶
type InputPrivacyValueAllowChatParticipants struct {
Chats []int64 // Allowed chat IDs (either a chat or a supergroup ID, verbatim the way it is received in the constructor (i.e. unlike with bot API IDs, here group and supergroup IDs should be treated in the same way)).
}
Allow only participants of certain chats
func (*InputPrivacyValueAllowChatParticipants) CRC ¶
func (*InputPrivacyValueAllowChatParticipants) CRC() uint32
func (*InputPrivacyValueAllowChatParticipants) ImplementsInputPrivacyRule ¶
func (*InputPrivacyValueAllowChatParticipants) ImplementsInputPrivacyRule()
type InputPrivacyValueAllowCloseFriends ¶
type InputPrivacyValueAllowCloseFriends struct{}
Allow only close friends
func (*InputPrivacyValueAllowCloseFriends) CRC ¶
func (*InputPrivacyValueAllowCloseFriends) CRC() uint32
func (*InputPrivacyValueAllowCloseFriends) ImplementsInputPrivacyRule ¶
func (*InputPrivacyValueAllowCloseFriends) ImplementsInputPrivacyRule()
type InputPrivacyValueAllowContacts ¶
type InputPrivacyValueAllowContacts struct{}
Allow only contacts
func (*InputPrivacyValueAllowContacts) CRC ¶
func (*InputPrivacyValueAllowContacts) CRC() uint32
func (*InputPrivacyValueAllowContacts) ImplementsInputPrivacyRule ¶
func (*InputPrivacyValueAllowContacts) ImplementsInputPrivacyRule()
type InputPrivacyValueAllowPremium ¶
type InputPrivacyValueAllowPremium struct{}
Allow only users with a Premium subscription, currently only usable for inputPrivacyKeyChatInvite.
func (*InputPrivacyValueAllowPremium) CRC ¶
func (*InputPrivacyValueAllowPremium) CRC() uint32
func (*InputPrivacyValueAllowPremium) ImplementsInputPrivacyRule ¶
func (*InputPrivacyValueAllowPremium) ImplementsInputPrivacyRule()
type InputPrivacyValueAllowUsers ¶
type InputPrivacyValueAllowUsers struct {
Users []InputUser // Allowed users
}
Allow only certain users
func (*InputPrivacyValueAllowUsers) CRC ¶
func (*InputPrivacyValueAllowUsers) CRC() uint32
func (*InputPrivacyValueAllowUsers) ImplementsInputPrivacyRule ¶
func (*InputPrivacyValueAllowUsers) ImplementsInputPrivacyRule()
type InputPrivacyValueDisallowAll ¶
type InputPrivacyValueDisallowAll struct{}
Disallow all
func (*InputPrivacyValueDisallowAll) CRC ¶
func (*InputPrivacyValueDisallowAll) CRC() uint32
func (*InputPrivacyValueDisallowAll) ImplementsInputPrivacyRule ¶
func (*InputPrivacyValueDisallowAll) ImplementsInputPrivacyRule()
type InputPrivacyValueDisallowBots ¶ added in v1.3.21
type InputPrivacyValueDisallowBots struct{}
Disallow bots and mini apps
func (*InputPrivacyValueDisallowBots) CRC ¶ added in v1.3.21
func (*InputPrivacyValueDisallowBots) CRC() uint32
func (*InputPrivacyValueDisallowBots) ImplementsInputPrivacyRule ¶ added in v1.3.21
func (*InputPrivacyValueDisallowBots) ImplementsInputPrivacyRule()
type InputPrivacyValueDisallowChatParticipants ¶
type InputPrivacyValueDisallowChatParticipants struct {
Chats []int64 // Disallowed chat IDs (either a chat or a supergroup ID, verbatim the way it is received in the constructor (i.e. unlike with bot API IDs, here group and supergroup IDs should be treated in the same way)).
}
Disallow only participants of certain chats
func (*InputPrivacyValueDisallowChatParticipants) CRC ¶
func (*InputPrivacyValueDisallowChatParticipants) CRC() uint32
func (*InputPrivacyValueDisallowChatParticipants) ImplementsInputPrivacyRule ¶
func (*InputPrivacyValueDisallowChatParticipants) ImplementsInputPrivacyRule()
type InputPrivacyValueDisallowContacts ¶
type InputPrivacyValueDisallowContacts struct{}
Disallow only contacts
func (*InputPrivacyValueDisallowContacts) CRC ¶
func (*InputPrivacyValueDisallowContacts) CRC() uint32
func (*InputPrivacyValueDisallowContacts) ImplementsInputPrivacyRule ¶
func (*InputPrivacyValueDisallowContacts) ImplementsInputPrivacyRule()
type InputPrivacyValueDisallowUsers ¶
type InputPrivacyValueDisallowUsers struct {
Users []InputUser // Users to disallow
}
Disallow only certain users
func (*InputPrivacyValueDisallowUsers) CRC ¶
func (*InputPrivacyValueDisallowUsers) CRC() uint32
func (*InputPrivacyValueDisallowUsers) ImplementsInputPrivacyRule ¶
func (*InputPrivacyValueDisallowUsers) ImplementsInputPrivacyRule()
type InputQuickReplyShortcut ¶
type InputQuickReplyShortcutID ¶
type InputQuickReplyShortcutID struct {
ShortcutID int32 // Shortcut ID.
}
Selects a quick reply shortcut by its numeric ID.
func (*InputQuickReplyShortcutID) CRC ¶
func (*InputQuickReplyShortcutID) CRC() uint32
func (*InputQuickReplyShortcutID) ImplementsInputQuickReplyShortcut ¶
func (*InputQuickReplyShortcutID) ImplementsInputQuickReplyShortcut()
type InputQuickReplyShortcutObj ¶
type InputQuickReplyShortcutObj struct {
Shortcut string // Shortcut name.
}
Selects a quick reply shortcut by name.
func (*InputQuickReplyShortcutObj) CRC ¶
func (*InputQuickReplyShortcutObj) CRC() uint32
func (*InputQuickReplyShortcutObj) ImplementsInputQuickReplyShortcut ¶
func (*InputQuickReplyShortcutObj) ImplementsInputQuickReplyShortcut()
type InputReplyTo ¶
type InputReplyToMessage ¶
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.
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.
QuoteEntities []MessageEntity `tl:"flag:3"` // Message entities for styled text from the `quote_text` field.
QuoteOffset int32 `tl:"flag:4"` // Offset of the message `quote_text` within the original message (in UTF-16 code units).
MonoforumPeerID InputPeer `tl:"flag:5"` // Must be set to the ID of the topic when replying to a message within a monoforum topic.
TodoItemID int32 `tl:"flag:6"` // Can be set to reply to the specified item of a todo list.
}
Reply to a message.
func (*InputReplyToMessage) CRC ¶
func (*InputReplyToMessage) CRC() uint32
func (*InputReplyToMessage) FlagIndex ¶
func (*InputReplyToMessage) FlagIndex() int
func (*InputReplyToMessage) ImplementsInputReplyTo ¶
func (*InputReplyToMessage) ImplementsInputReplyTo()
type InputReplyToMonoForum ¶ added in v1.6.0
type InputReplyToMonoForum struct {
MonoforumPeerID InputPeer // The topic ID.
}
Used to send messages to a monoforum topic.
func (*InputReplyToMonoForum) CRC ¶ added in v1.6.0
func (*InputReplyToMonoForum) CRC() uint32
func (*InputReplyToMonoForum) ImplementsInputReplyTo ¶ added in v1.6.0
func (*InputReplyToMonoForum) ImplementsInputReplyTo()
type InputReplyToStory ¶
type InputReplyToStory struct {
Peer InputPeer // Sender of the story
StoryID int32 // ID of the story to reply to.
}
Reply to a story.
func (*InputReplyToStory) CRC ¶
func (*InputReplyToStory) CRC() uint32
func (*InputReplyToStory) ImplementsInputReplyTo ¶
func (*InputReplyToStory) ImplementsInputReplyTo()
type InputSavedStarGift ¶ added in v1.5.6
type InputSavedStarGiftChat ¶ added in v1.5.6
type InputSavedStarGiftChat struct {
Peer InputPeer // The channel.
SavedID int64 // ID of the gift, must be the `saved_id` of a messageActionStarGift/messageActionStarGiftUnique constructor.
}
A gift received by a channel we own.
func (*InputSavedStarGiftChat) CRC ¶ added in v1.5.6
func (*InputSavedStarGiftChat) CRC() uint32
func (*InputSavedStarGiftChat) ImplementsInputSavedStarGift ¶ added in v1.5.6
func (*InputSavedStarGiftChat) ImplementsInputSavedStarGift()
type InputSavedStarGiftSlug ¶ added in v1.6.0
type InputSavedStarGiftSlug struct {
Slug string // Slug from the link.
}
Points to a collectible gift obtained from a collectible gift link.
func (*InputSavedStarGiftSlug) CRC ¶ added in v1.6.0
func (*InputSavedStarGiftSlug) CRC() uint32
func (*InputSavedStarGiftSlug) ImplementsInputSavedStarGift ¶ added in v1.6.0
func (*InputSavedStarGiftSlug) ImplementsInputSavedStarGift()
type InputSavedStarGiftUser ¶ added in v1.5.6
type InputSavedStarGiftUser struct {
MsgID int32 // ID of the messageService with the messageActionStarGift with the gift.
}
A gift received in a private chat with another user.
func (*InputSavedStarGiftUser) CRC ¶ added in v1.5.6
func (*InputSavedStarGiftUser) CRC() uint32
func (*InputSavedStarGiftUser) ImplementsInputSavedStarGift ¶ added in v1.5.6
func (*InputSavedStarGiftUser) ImplementsInputSavedStarGift()
type InputSecureFile ¶
type InputSecureFileLocation ¶
type InputSecureFileLocation struct {
ID int64 // File ID, id parameter value from secureFile
AccessHash int64 // Checksum, access_hash parameter value from secureFile
}
Location of encrypted telegram passport file.
func (*InputSecureFileLocation) CRC ¶
func (*InputSecureFileLocation) CRC() uint32
func (*InputSecureFileLocation) ImplementsInputFileLocation ¶
func (*InputSecureFileLocation) ImplementsInputFileLocation()
type InputSecureFileObj ¶
type InputSecureFileObj struct {
ID int64 // Secure file ID
AccessHash int64 // Secure file access hash
}
Pre-uploaded passport file, for more info see the passport docs
func (*InputSecureFileObj) CRC ¶
func (*InputSecureFileObj) CRC() uint32
func (*InputSecureFileObj) ImplementsInputSecureFile ¶
func (*InputSecureFileObj) ImplementsInputSecureFile()
type InputSecureFileUploaded ¶
type InputSecureFileUploaded struct {
ID int64 // Secure file ID
Parts int32 // Secure file part count
Md5Checksum string // MD5 hash of encrypted uploaded file, to be checked server-side
FileHash []byte // File hash
Secret []byte // Secret
}
Uploaded secure file, for more info see the passport docs
func (*InputSecureFileUploaded) CRC ¶
func (*InputSecureFileUploaded) CRC() uint32
func (*InputSecureFileUploaded) ImplementsInputSecureFile ¶
func (*InputSecureFileUploaded) ImplementsInputSecureFile()
type InputSecureValue ¶
type InputSecureValue struct {
Type SecureValueType
Data *SecureData `tl:"flag:0"`
FrontSide InputSecureFile `tl:"flag:1"`
ReverseSide InputSecureFile `tl:"flag:2"`
Selfie InputSecureFile `tl:"flag:3"`
Translation []InputSecureFile `tl:"flag:6"`
Files []InputSecureFile `tl:"flag:4"`
PlainData SecurePlainData `tl:"flag:5"`
}
Secure value, for more info see the passport docs
func (*InputSecureValue) CRC ¶
func (*InputSecureValue) CRC() uint32
func (*InputSecureValue) FlagIndex ¶
func (*InputSecureValue) FlagIndex() int
type InputSingleMedia ¶
type InputSingleMedia struct {
Media InputMedia
RandomID int64
Message string
Entities []MessageEntity `tl:"flag:0"`
}
A single media in an album or grouped media sent with messages.sendMultiMedia.
func (*InputSingleMedia) CRC ¶
func (*InputSingleMedia) CRC() uint32
func (*InputSingleMedia) FlagIndex ¶
func (*InputSingleMedia) FlagIndex() int
type InputStarGiftAuction ¶ added in v1.6.7
type InputStarGiftAuctionObj ¶ added in v1.6.7
type InputStarGiftAuctionObj struct {
GiftID int64
}
func (*InputStarGiftAuctionObj) CRC ¶ added in v1.6.7
func (*InputStarGiftAuctionObj) CRC() uint32
func (*InputStarGiftAuctionObj) ImplementsInputStarGiftAuction ¶ added in v1.6.7
func (*InputStarGiftAuctionObj) ImplementsInputStarGiftAuction()
type InputStarGiftAuctionSlug ¶ added in v1.6.7
type InputStarGiftAuctionSlug struct {
Slug string
}
func (*InputStarGiftAuctionSlug) CRC ¶ added in v1.6.7
func (*InputStarGiftAuctionSlug) CRC() uint32
func (*InputStarGiftAuctionSlug) ImplementsInputStarGiftAuction ¶ added in v1.6.7
func (*InputStarGiftAuctionSlug) ImplementsInputStarGiftAuction()
type InputStarsTransaction ¶
Used to fetch info about a Telegram Star transaction.
func (*InputStarsTransaction) CRC ¶
func (*InputStarsTransaction) CRC() uint32
func (*InputStarsTransaction) FlagIndex ¶
func (*InputStarsTransaction) FlagIndex() int
type InputStickerSet ¶
type InputStickerSetAnimatedEmoji ¶
type InputStickerSetAnimatedEmoji struct{}
Animated emojis stickerset
func (*InputStickerSetAnimatedEmoji) CRC ¶
func (*InputStickerSetAnimatedEmoji) CRC() uint32
func (*InputStickerSetAnimatedEmoji) ImplementsInputStickerSet ¶
func (*InputStickerSetAnimatedEmoji) ImplementsInputStickerSet()
type InputStickerSetAnimatedEmojiAnimations ¶
type InputStickerSetAnimatedEmojiAnimations struct{}
Animated emoji reaction stickerset (contains animations to play when a user clicks on a given animated emoji)
func (*InputStickerSetAnimatedEmojiAnimations) CRC ¶
func (*InputStickerSetAnimatedEmojiAnimations) CRC() uint32
func (*InputStickerSetAnimatedEmojiAnimations) ImplementsInputStickerSet ¶
func (*InputStickerSetAnimatedEmojiAnimations) ImplementsInputStickerSet()
type InputStickerSetDice ¶
type InputStickerSetDice struct {
Emoticon string // The emoji, for now <img class="emoji" src="//telegram.org/img/emoji/40/F09F8F80.png" width="20" height="20" alt="🏀" />, <img class="emoji" src="//telegram.org/img/emoji/40/F09F8EB2.png" width="20" height="20" alt="🎲" /> and <img class="emoji" src="//telegram.org/img/emoji/40/F09F8EAF.png" width="20" height="20" alt="🎯" /> are supported
}
Used for fetching animated dice stickers
func (*InputStickerSetDice) CRC ¶
func (*InputStickerSetDice) CRC() uint32
func (*InputStickerSetDice) ImplementsInputStickerSet ¶
func (*InputStickerSetDice) ImplementsInputStickerSet()
type InputStickerSetEmojiChannelDefaultStatuses ¶
type InputStickerSetEmojiChannelDefaultStatuses struct{}
Default custom emoji status stickerset for channel statuses
func (*InputStickerSetEmojiChannelDefaultStatuses) CRC ¶
func (*InputStickerSetEmojiChannelDefaultStatuses) CRC() uint32
func (*InputStickerSetEmojiChannelDefaultStatuses) ImplementsInputStickerSet ¶
func (*InputStickerSetEmojiChannelDefaultStatuses) ImplementsInputStickerSet()
type InputStickerSetEmojiDefaultStatuses ¶
type InputStickerSetEmojiDefaultStatuses struct{}
Default custom emoji status stickerset
func (*InputStickerSetEmojiDefaultStatuses) CRC ¶
func (*InputStickerSetEmojiDefaultStatuses) CRC() uint32
func (*InputStickerSetEmojiDefaultStatuses) ImplementsInputStickerSet ¶
func (*InputStickerSetEmojiDefaultStatuses) ImplementsInputStickerSet()
type InputStickerSetEmojiDefaultTopicIcons ¶
type InputStickerSetEmojiDefaultTopicIcons struct{}
Default custom emoji stickerset for forum topic icons
func (*InputStickerSetEmojiDefaultTopicIcons) CRC ¶
func (*InputStickerSetEmojiDefaultTopicIcons) CRC() uint32
func (*InputStickerSetEmojiDefaultTopicIcons) ImplementsInputStickerSet ¶
func (*InputStickerSetEmojiDefaultTopicIcons) ImplementsInputStickerSet()
type InputStickerSetEmojiGenericAnimations ¶
type InputStickerSetEmojiGenericAnimations struct{}
Generic animation stickerset containing animations to play when reacting to messages using a normal emoji without a custom animation
func (*InputStickerSetEmojiGenericAnimations) CRC ¶
func (*InputStickerSetEmojiGenericAnimations) CRC() uint32
func (*InputStickerSetEmojiGenericAnimations) ImplementsInputStickerSet ¶
func (*InputStickerSetEmojiGenericAnimations) ImplementsInputStickerSet()
type InputStickerSetEmpty ¶
type InputStickerSetEmpty struct{}
Empty constructor
func (*InputStickerSetEmpty) CRC ¶
func (*InputStickerSetEmpty) CRC() uint32
func (*InputStickerSetEmpty) ImplementsInputStickerSet ¶
func (*InputStickerSetEmpty) ImplementsInputStickerSet()
type InputStickerSetID ¶
Stickerset by ID
func (*InputStickerSetID) CRC ¶
func (*InputStickerSetID) CRC() uint32
func (*InputStickerSetID) ImplementsInputStickerSet ¶
func (*InputStickerSetID) ImplementsInputStickerSet()
type InputStickerSetItem ¶
type InputStickerSetItem struct {
Document InputDocument
Emoji string
MaskCoords *MaskCoords `tl:"flag:0"`
Keywords string `tl:"flag:1"`
}
Sticker in a stickerset
func (*InputStickerSetItem) CRC ¶
func (*InputStickerSetItem) CRC() uint32
func (*InputStickerSetItem) FlagIndex ¶
func (*InputStickerSetItem) FlagIndex() int
type InputStickerSetPremiumGifts ¶
type InputStickerSetPremiumGifts struct{}
Stickers to show when receiving a gifted Telegram Premium subscription
func (*InputStickerSetPremiumGifts) CRC ¶
func (*InputStickerSetPremiumGifts) CRC() uint32
func (*InputStickerSetPremiumGifts) ImplementsInputStickerSet ¶
func (*InputStickerSetPremiumGifts) ImplementsInputStickerSet()
type InputStickerSetShortName ¶
type InputStickerSetShortName struct {
ShortName string // Short name from a stickerset deep link
}
Stickerset by short name, from a stickerset deep link
func (*InputStickerSetShortName) CRC ¶
func (*InputStickerSetShortName) CRC() uint32
func (*InputStickerSetShortName) ImplementsInputStickerSet ¶
func (*InputStickerSetShortName) ImplementsInputStickerSet()
type InputStickerSetThumb ¶
type InputStickerSetThumb struct {
Stickerset InputStickerSet // Sticker set
ThumbVersion int32 // Thumbnail version
}
Location of stickerset thumbnail (see files)
func (*InputStickerSetThumb) CRC ¶
func (*InputStickerSetThumb) CRC() uint32
func (*InputStickerSetThumb) ImplementsInputFileLocation ¶
func (*InputStickerSetThumb) ImplementsInputFileLocation()
type InputStickerSetTonGifts ¶ added in v1.6.1
type InputStickerSetTonGifts struct{}
TON gifts stickerset.
func (*InputStickerSetTonGifts) CRC ¶ added in v1.6.1
func (*InputStickerSetTonGifts) CRC() uint32
func (*InputStickerSetTonGifts) ImplementsInputStickerSet ¶ added in v1.6.1
func (*InputStickerSetTonGifts) ImplementsInputStickerSet()
type InputStickeredMedia ¶
type InputStickeredMediaDocument ¶
type InputStickeredMediaDocument struct {
ID InputDocument // The document
}
A document with stickers attached
func (*InputStickeredMediaDocument) CRC ¶
func (*InputStickeredMediaDocument) CRC() uint32
func (*InputStickeredMediaDocument) ImplementsInputStickeredMedia ¶
func (*InputStickeredMediaDocument) ImplementsInputStickeredMedia()
type InputStickeredMediaPhoto ¶
type InputStickeredMediaPhoto struct {
ID InputPhoto // The photo
}
A photo with stickers attached
func (*InputStickeredMediaPhoto) CRC ¶
func (*InputStickeredMediaPhoto) CRC() uint32
func (*InputStickeredMediaPhoto) ImplementsInputStickeredMedia ¶
func (*InputStickeredMediaPhoto) ImplementsInputStickeredMedia()
type InputStorePaymentAuthCode ¶ added in v1.6.0
type InputStorePaymentAuthCode struct {
Restore bool `tl:"flag:0,encoded_in_bitflags"` // Set this flag to restore a previously made purchase.
PhoneNumber string // Phone number.
PhoneCodeHash string // `phone_code_hash` returned by auth.sendCode.
Currency string // Three-letter ISO 4217 currency code
Amount 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).
}
Indicates payment for a login code.
func (*InputStorePaymentAuthCode) CRC ¶ added in v1.6.0
func (*InputStorePaymentAuthCode) CRC() uint32
func (*InputStorePaymentAuthCode) FlagIndex ¶ added in v1.6.0
func (*InputStorePaymentAuthCode) FlagIndex() int
func (*InputStorePaymentAuthCode) ImplementsInputStorePaymentPurpose ¶ added in v1.6.0
func (*InputStorePaymentAuthCode) ImplementsInputStorePaymentPurpose()
type InputStorePaymentGiftPremium ¶
type InputStorePaymentGiftPremium struct {
UserID InputUser // The user to which the Telegram Premium subscription was gifted
Currency string // Three-letter ISO 4217 currency code
Amount 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).
}
Info about a gifted Telegram Premium purchase
func (*InputStorePaymentGiftPremium) CRC ¶
func (*InputStorePaymentGiftPremium) CRC() uint32
func (*InputStorePaymentGiftPremium) ImplementsInputStorePaymentPurpose ¶
func (*InputStorePaymentGiftPremium) ImplementsInputStorePaymentPurpose()
type InputStorePaymentPremiumGiftCode ¶
type InputStorePaymentPremiumGiftCode struct {
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
}
Used to gift Telegram Premium subscriptions only to some specific subscribers of a channel/supergroup or to some of our contacts
func (*InputStorePaymentPremiumGiftCode) CRC ¶
func (*InputStorePaymentPremiumGiftCode) CRC() uint32
func (*InputStorePaymentPremiumGiftCode) FlagIndex ¶
func (*InputStorePaymentPremiumGiftCode) FlagIndex() int
func (*InputStorePaymentPremiumGiftCode) ImplementsInputStorePaymentPurpose ¶
func (*InputStorePaymentPremiumGiftCode) ImplementsInputStorePaymentPurpose()
type InputStorePaymentPremiumGiveaway ¶
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.
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).
}
Used to pay for a giveaway
func (*InputStorePaymentPremiumGiveaway) CRC ¶
func (*InputStorePaymentPremiumGiveaway) CRC() uint32
func (*InputStorePaymentPremiumGiveaway) FlagIndex ¶
func (*InputStorePaymentPremiumGiveaway) FlagIndex() int
func (*InputStorePaymentPremiumGiveaway) ImplementsInputStorePaymentPurpose ¶
func (*InputStorePaymentPremiumGiveaway) ImplementsInputStorePaymentPurpose()
type InputStorePaymentPremiumSubscription ¶
type InputStorePaymentPremiumSubscription struct {
Restore bool `tl:"flag:0,encoded_in_bitflags"` // Pass true if this is a restore of a Telegram Premium purchase; only for the App Store
Upgrade bool `tl:"flag:1,encoded_in_bitflags"` // Pass true if this is an upgrade from a monthly subscription to a yearly subscription; only for App Store
}
Info about a Telegram Premium purchase
func (*InputStorePaymentPremiumSubscription) CRC ¶
func (*InputStorePaymentPremiumSubscription) CRC() uint32
func (*InputStorePaymentPremiumSubscription) FlagIndex ¶
func (*InputStorePaymentPremiumSubscription) FlagIndex() int
func (*InputStorePaymentPremiumSubscription) ImplementsInputStorePaymentPurpose ¶
func (*InputStorePaymentPremiumSubscription) ImplementsInputStorePaymentPurpose()
type InputStorePaymentStarsGift ¶
type InputStorePaymentStarsGift struct {
UserID InputUser // The user to which the stars should be gifted.
Stars int64 // Amount of stars to gift
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).
}
Used to gift Telegram Stars to a friend.
func (*InputStorePaymentStarsGift) CRC ¶
func (*InputStorePaymentStarsGift) CRC() uint32
func (*InputStorePaymentStarsGift) ImplementsInputStorePaymentPurpose ¶
func (*InputStorePaymentStarsGift) ImplementsInputStorePaymentPurpose()
type InputStorePaymentStarsGiveaway ¶
type InputStorePaymentStarsGiveaway 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.
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.
}
Used to pay for a star giveaway
func (*InputStorePaymentStarsGiveaway) CRC ¶
func (*InputStorePaymentStarsGiveaway) CRC() uint32
func (*InputStorePaymentStarsGiveaway) FlagIndex ¶
func (*InputStorePaymentStarsGiveaway) FlagIndex() int
func (*InputStorePaymentStarsGiveaway) ImplementsInputStorePaymentPurpose ¶
func (*InputStorePaymentStarsGiveaway) ImplementsInputStorePaymentPurpose()
type InputStorePaymentStarsTopup ¶
type InputStorePaymentStarsTopup struct {
Stars int64 // Amount of stars to topup
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).
SpendPurposePeer InputPeer `tl:"flag:0"` // Should be populated with the peer where the topup process was initiated due to low funds (i.e. a bot for bot payments, a channel for paid media/reactions, etc); leave this flag unpopulated if the topup flow was not initated when attempting to spend more Stars than currently available on the account's balance.
}
Used to top up the Telegram Stars balance of the current account.
func (*InputStorePaymentStarsTopup) CRC ¶
func (*InputStorePaymentStarsTopup) CRC() uint32
func (*InputStorePaymentStarsTopup) FlagIndex ¶ added in v1.6.3
func (*InputStorePaymentStarsTopup) FlagIndex() int
func (*InputStorePaymentStarsTopup) ImplementsInputStorePaymentPurpose ¶
func (*InputStorePaymentStarsTopup) ImplementsInputStorePaymentPurpose()
type InputTakeoutFileLocation ¶
type InputTakeoutFileLocation struct{}
Used to download a JSON file that will contain all personal data related to features that do not have a specialized takeout method yet
func (*InputTakeoutFileLocation) CRC ¶
func (*InputTakeoutFileLocation) CRC() uint32
func (*InputTakeoutFileLocation) ImplementsInputFileLocation ¶
func (*InputTakeoutFileLocation) ImplementsInputFileLocation()
type InputTheme ¶
type InputThemeObj ¶
Theme
func (*InputThemeObj) CRC ¶
func (*InputThemeObj) CRC() uint32
func (*InputThemeObj) ImplementsInputTheme ¶
func (*InputThemeObj) ImplementsInputTheme()
type InputThemeSettings ¶
type InputThemeSettings struct {
MessageColorsAnimated bool `tl:"flag:2,encoded_in_bitflags"`
BaseTheme BaseTheme
AccentColor int32
OutboxAccentColor int32 `tl:"flag:3"`
MessageColors []int32 `tl:"flag:0"`
Wallpaper InputWallPaper `tl:"flag:1"`
WallpaperSettings *WallPaperSettings `tl:"flag:1"`
}
Theme settings
func (*InputThemeSettings) CRC ¶
func (*InputThemeSettings) CRC() uint32
func (*InputThemeSettings) FlagIndex ¶
func (*InputThemeSettings) FlagIndex() int
type InputThemeSlug ¶
type InputThemeSlug struct {
Slug string // Unique theme ID obtained from a theme deep link
}
Theme by theme ID
func (*InputThemeSlug) CRC ¶
func (*InputThemeSlug) CRC() uint32
func (*InputThemeSlug) ImplementsInputTheme ¶
func (*InputThemeSlug) ImplementsInputTheme()
type InputUserEmpty ¶
type InputUserEmpty struct{}
Empty constructor, does not define a user.
func (*InputUserEmpty) CRC ¶
func (*InputUserEmpty) CRC() uint32
func (*InputUserEmpty) ImplementsInputUser ¶
func (*InputUserEmpty) ImplementsInputUser()
type InputUserFromMessage ¶
type InputUserFromMessage struct {
Peer InputPeer // The chat where the user was seen
MsgID int32 // The message ID
UserID int64 // The identifier of the user that was seen
}
Defines a min user that was seen in a certain message of a certain chat.
func (*InputUserFromMessage) CRC ¶
func (*InputUserFromMessage) CRC() uint32
func (*InputUserFromMessage) ImplementsInputUser ¶
func (*InputUserFromMessage) ImplementsInputUser()
type InputUserObj ¶
type InputUserObj struct {
UserID int64 // User identifier
AccessHash int64 // access_hash value from the user constructor
}
Defines a user for further interaction.
func (*InputUserObj) CRC ¶
func (*InputUserObj) CRC() uint32
func (*InputUserObj) ImplementsInputUser ¶
func (*InputUserObj) ImplementsInputUser()
type InputUserSelf ¶
type InputUserSelf struct{}
Defines the current user.
func (*InputUserSelf) CRC ¶
func (*InputUserSelf) CRC() uint32
func (*InputUserSelf) ImplementsInputUser ¶
func (*InputUserSelf) ImplementsInputUser()
type InputWallPaper ¶
type InputWallPaperNoFile ¶
type InputWallPaperNoFile struct {
ID int64 // Wallpaper ID
}
Wallpaper with no file access hash, used for example when deleting (`unsave=true`) wallpapers using account.saveWallPaper, specifying just the wallpaper ID.
func (*InputWallPaperNoFile) CRC ¶
func (*InputWallPaperNoFile) CRC() uint32
func (*InputWallPaperNoFile) ImplementsInputWallPaper ¶
func (*InputWallPaperNoFile) ImplementsInputWallPaper()
type InputWallPaperObj ¶
Wallpaper
func (*InputWallPaperObj) CRC ¶
func (*InputWallPaperObj) CRC() uint32
func (*InputWallPaperObj) ImplementsInputWallPaper ¶
func (*InputWallPaperObj) ImplementsInputWallPaper()
type InputWallPaperSlug ¶
type InputWallPaperSlug struct {
Slug string // Unique wallpaper ID
}
Wallpaper by slug (a unique ID, obtained from a wallpaper link )
func (*InputWallPaperSlug) CRC ¶
func (*InputWallPaperSlug) CRC() uint32
func (*InputWallPaperSlug) ImplementsInputWallPaper ¶
func (*InputWallPaperSlug) ImplementsInputWallPaper()
type InputWebDocument ¶
type InputWebDocument struct {
URL string
Size int32
MimeType string
Attributes []DocumentAttribute
}
The document
func (*InputWebDocument) CRC ¶
func (*InputWebDocument) CRC() uint32
type InputWebFileAudioAlbumThumbLocation ¶
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.
Title string `tl:"flag:1"` // Song title: should only be used in secret chats, in normal chats provide `document` instead, as it has more lax rate limits.
Performer string `tl:"flag:1"` // Song performer: should only be used in secret chats, in normal chats provide `document` instead, as it has more lax rate limits.
}
Used to download an album cover for any music file using upload.getWebFile, see the webfile docs for more info.
func (*InputWebFileAudioAlbumThumbLocation) CRC ¶
func (*InputWebFileAudioAlbumThumbLocation) CRC() uint32
func (*InputWebFileAudioAlbumThumbLocation) FlagIndex ¶
func (*InputWebFileAudioAlbumThumbLocation) FlagIndex() int
func (*InputWebFileAudioAlbumThumbLocation) ImplementsInputWebFileLocation ¶
func (*InputWebFileAudioAlbumThumbLocation) ImplementsInputWebFileLocation()
type InputWebFileGeoPointLocation ¶
type InputWebFileGeoPointLocation struct {
GeoPoint InputGeoPoint // Generated from the `lat`, `long` and `accuracy_radius` parameters of the geoPoint
AccessHash int64 // Access hash of the geoPoint
W int32 // Map width in pixels before applying scale; 16-1024
H int32 // Map height in pixels before applying scale; 16-1024
Zoom int32 // Map zoom level; 13-20
Scale int32 // Map scale; 1-3
}
Used to download a server-generated image with the map preview from a geoPoint, see the webfile docs for more info.
func (*InputWebFileGeoPointLocation) CRC ¶
func (*InputWebFileGeoPointLocation) CRC() uint32
func (*InputWebFileGeoPointLocation) ImplementsInputWebFileLocation ¶
func (*InputWebFileGeoPointLocation) ImplementsInputWebFileLocation()
type InputWebFileLocation ¶
type InputWebFileLocationObj ¶
type InputWebFileLocationObj struct {
URL string // HTTP URL of file
AccessHash int64 // Access hash
}
Location of a remote HTTP(s) file
func (*InputWebFileLocationObj) CRC ¶
func (*InputWebFileLocationObj) CRC() uint32
func (*InputWebFileLocationObj) ImplementsInputWebFileLocation ¶
func (*InputWebFileLocationObj) ImplementsInputWebFileLocation()
type InviteLinkOptions ¶
type Invoice ¶
type Invoice struct {
Test bool `tl:"flag:0,encoded_in_bitflags"`
NameRequested bool `tl:"flag:1,encoded_in_bitflags"`
PhoneRequested bool `tl:"flag:2,encoded_in_bitflags"`
EmailRequested bool `tl:"flag:3,encoded_in_bitflags"`
ShippingAddressRequested bool `tl:"flag:4,encoded_in_bitflags"`
Flexible bool `tl:"flag:5,encoded_in_bitflags"`
PhoneToProvider bool `tl:"flag:6,encoded_in_bitflags"`
EmailToProvider bool `tl:"flag:7,encoded_in_bitflags"`
Recurring bool `tl:"flag:9,encoded_in_bitflags"`
Currency string
Prices []*LabeledPrice
MaxTipAmount int64 `tl:"flag:8"`
SuggestedTipAmounts []int64 `tl:"flag:8"`
TermsURL string `tl:"flag:10"`
SubscriptionPeriod int32 `tl:"flag:11"`
}
Invoice
type InvokeWithLayerParams ¶
func (*InvokeWithLayerParams) CRC ¶
func (*InvokeWithLayerParams) CRC() uint32
type InvokeWithMessagesRangeParams ¶ added in v1.7.0
type InvokeWithMessagesRangeParams struct {
Range MessageRange
Query tl.Object
}
func (*InvokeWithMessagesRangeParams) CRC ¶ added in v1.7.0
func (*InvokeWithMessagesRangeParams) CRC() uint32
type InvokeWithTakeoutParams ¶
func (*InvokeWithTakeoutParams) CRC ¶
func (*InvokeWithTakeoutParams) CRC() uint32
type InvokeWithoutUpdatesParams ¶ added in v1.7.0
func (*InvokeWithoutUpdatesParams) CRC ¶ added in v1.7.0
func (*InvokeWithoutUpdatesParams) CRC() uint32
type JoinRequest ¶ added in v1.4.2
type JoinRequestUpdate ¶ added in v1.6.3
type JoinRequestUpdate struct {
Client *Client
OriginalUpdate *UpdatePendingJoinRequests
BotOriginalUpdate *UpdateBotChatInviteRequester
Channel *Channel
Chat *ChatObj
Users []*UserObj
PendingCount int32
}
func (*JoinRequestUpdate) Approve ¶ added in v1.6.9
func (jru *JoinRequestUpdate) Approve(userID int64) (bool, error)
func (*JoinRequestUpdate) ChannelID ¶ added in v1.6.9
func (jru *JoinRequestUpdate) ChannelID() int64
func (*JoinRequestUpdate) ChatID ¶ added in v1.6.9
func (jru *JoinRequestUpdate) ChatID() int64
func (*JoinRequestUpdate) Decline ¶ added in v1.6.9
func (jru *JoinRequestUpdate) Decline(userID int64) (bool, error)
func (*JoinRequestUpdate) GetInputPeer ¶ added in v1.6.9
func (jru *JoinRequestUpdate) GetInputPeer() (InputPeer, error)
func (*JoinRequestUpdate) GetPeer ¶ added in v1.6.9
func (jru *JoinRequestUpdate) GetPeer() (Peer, error)
func (*JoinRequestUpdate) HasUser ¶ added in v1.6.9
func (jru *JoinRequestUpdate) HasUser(userID int64) bool
func (*JoinRequestUpdate) IsEmpty ¶ added in v1.6.9
func (jru *JoinRequestUpdate) IsEmpty() bool
func (*JoinRequestUpdate) Marshal ¶ added in v1.6.9
func (jru *JoinRequestUpdate) Marshal(noindent ...bool) string
func (*JoinRequestUpdate) UserIDs ¶ added in v1.6.9
func (jru *JoinRequestUpdate) UserIDs() []int64
type JsonArray ¶
type JsonArray struct {
Value []JsonValue // JSON values
}
JSON array
func (*JsonArray) ImplementsJsonValue ¶
func (*JsonArray) ImplementsJsonValue()
type JsonBool ¶
type JsonBool struct {
Value bool // Value
}
JSON boolean value
func (*JsonBool) ImplementsJsonValue ¶
func (*JsonBool) ImplementsJsonValue()
type JsonNull ¶
type JsonNull struct{}
null JSON value
func (*JsonNull) ImplementsJsonValue ¶
func (*JsonNull) ImplementsJsonValue()
type JsonNumber ¶
type JsonNumber struct {
Value float64 // Value
}
JSON numeric value
func (*JsonNumber) CRC ¶
func (*JsonNumber) CRC() uint32
func (*JsonNumber) ImplementsJsonValue ¶
func (*JsonNumber) ImplementsJsonValue()
type JsonObject ¶
type JsonObject struct {
Value []*JsonObjectValue // Values
}
JSON object value
func (*JsonObject) CRC ¶
func (*JsonObject) CRC() uint32
func (*JsonObject) ImplementsJsonValue ¶
func (*JsonObject) ImplementsJsonValue()
type JsonObjectValue ¶
JSON key: value pair
func (*JsonObjectValue) CRC ¶
func (*JsonObjectValue) CRC() uint32
type JsonString ¶
type JsonString struct {
Value string // Value
}
JSON string
func (*JsonString) CRC ¶
func (*JsonString) CRC() uint32
func (*JsonString) ImplementsJsonValue ¶
func (*JsonString) ImplementsJsonValue()
type KeyboardBuilder ¶
type KeyboardBuilder struct {
// contains filtered or unexported fields
}
func NewKeyboard ¶
func NewKeyboard() *KeyboardBuilder
NewKeyboard initializes a new keyboard builder.
func (*KeyboardBuilder) AddRow ¶
func (kb *KeyboardBuilder) AddRow(buttons ...KeyboardButton) *KeyboardBuilder
AddRow adds a new row of buttons to the keyboard.
func (*KeyboardBuilder) Build ¶
func (kb *KeyboardBuilder) Build() *ReplyInlineMarkup
Build finalizes the keyboard and returns the inline markup.
func (*KeyboardBuilder) BuildReply ¶ added in v1.5.4
func (kb *KeyboardBuilder) BuildReply(opts ...BuildReplyOptions) *ReplyKeyboardMarkup
BuildReply finalizes the keyboard and returns the reply keyboard markup.
func (*KeyboardBuilder) NewColumn ¶
func (kb *KeyboardBuilder) NewColumn(x int, buttons ...KeyboardButton) *KeyboardBuilder
NewColumn arranges buttons into a grid based on specified number of buttons (x) per column.
func (*KeyboardBuilder) NewGrid ¶
func (kb *KeyboardBuilder) NewGrid(x, y int, buttons ...KeyboardButton) *KeyboardBuilder
NewGrid arranges buttons into a grid based on specified rows (x) and columns (y). If there are fewer buttons than x*y, the last row may contain fewer buttons.
func (*KeyboardBuilder) NewRow ¶
func (kb *KeyboardBuilder) NewRow(y int, buttons ...KeyboardButton) *KeyboardBuilder
NewRow arranges buttons into a grid based on specified number of buttons (y) per row.
type KeyboardButton ¶
type KeyboardButtonBuy ¶
type KeyboardButtonBuy struct {
Text string // Button text
}
Button to buy a product
func (*KeyboardButtonBuy) CRC ¶
func (*KeyboardButtonBuy) CRC() uint32
func (*KeyboardButtonBuy) ImplementsKeyboardButton ¶
func (*KeyboardButtonBuy) ImplementsKeyboardButton()
type KeyboardButtonCallback ¶
type KeyboardButtonCallback struct {
RequiresPassword bool `tl:"flag:0,encoded_in_bitflags"` // Whether the user should verify his identity by entering his 2FA SRP parameters to the messages.getBotCallbackAnswer method. NOTE: telegram and the bot WILL NOT have access to the plaintext password, thanks to SRP. This button is mainly used by the official @botfather bot, for verifying the user's identity before transferring ownership of a bot to another user.
Text string // Button text
Data []byte // Callback data
}
Callback button
func (*KeyboardButtonCallback) CRC ¶
func (*KeyboardButtonCallback) CRC() uint32
func (*KeyboardButtonCallback) FlagIndex ¶
func (*KeyboardButtonCallback) FlagIndex() int
func (*KeyboardButtonCallback) ImplementsKeyboardButton ¶
func (*KeyboardButtonCallback) ImplementsKeyboardButton()
type KeyboardButtonCopy ¶
type KeyboardButtonCopy struct {
Text string // Title of the button
CopyText string // The text that will be copied to the clipboard
}
Clipboard button: when clicked, the attached text must be copied to the clipboard.
func (*KeyboardButtonCopy) CRC ¶
func (*KeyboardButtonCopy) CRC() uint32
func (*KeyboardButtonCopy) ImplementsKeyboardButton ¶
func (*KeyboardButtonCopy) ImplementsKeyboardButton()
type KeyboardButtonGame ¶
type KeyboardButtonGame struct {
Text string // Button text
}
Button to start a game
func (*KeyboardButtonGame) CRC ¶
func (*KeyboardButtonGame) CRC() uint32
func (*KeyboardButtonGame) ImplementsKeyboardButton ¶
func (*KeyboardButtonGame) ImplementsKeyboardButton()
type KeyboardButtonObj ¶
type KeyboardButtonObj struct {
Text string // Button text
}
Bot keyboard button
func (*KeyboardButtonObj) CRC ¶
func (*KeyboardButtonObj) CRC() uint32
func (*KeyboardButtonObj) ImplementsKeyboardButton ¶
func (*KeyboardButtonObj) ImplementsKeyboardButton()
type KeyboardButtonRequestGeoLocation ¶
type KeyboardButtonRequestGeoLocation struct {
Text string // Button text
}
Button to request a user's geolocation
func (*KeyboardButtonRequestGeoLocation) CRC ¶
func (*KeyboardButtonRequestGeoLocation) CRC() uint32
func (*KeyboardButtonRequestGeoLocation) ImplementsKeyboardButton ¶
func (*KeyboardButtonRequestGeoLocation) ImplementsKeyboardButton()
type KeyboardButtonRequestPeer ¶
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.
MaxQuantity int32 // Maximum number of peers that can be chosen.
}
Prompts the user to select and share one or more peers with the bot using messages.sendBotRequestedPeer
func (*KeyboardButtonRequestPeer) CRC ¶
func (*KeyboardButtonRequestPeer) CRC() uint32
func (*KeyboardButtonRequestPeer) ImplementsKeyboardButton ¶
func (*KeyboardButtonRequestPeer) ImplementsKeyboardButton()
type KeyboardButtonRequestPhone ¶
type KeyboardButtonRequestPhone struct {
Text string // Button text
}
Button to request a user's phone number
func (*KeyboardButtonRequestPhone) CRC ¶
func (*KeyboardButtonRequestPhone) CRC() uint32
func (*KeyboardButtonRequestPhone) ImplementsKeyboardButton ¶
func (*KeyboardButtonRequestPhone) ImplementsKeyboardButton()
type KeyboardButtonRequestPoll ¶
type KeyboardButtonRequestPoll struct {
Quiz bool `tl:"flag:0"` // If set, only quiz polls can be sent
Text string // Button text
}
A button that allows the user to create and send a poll when pressed; available only in private
func (*KeyboardButtonRequestPoll) CRC ¶
func (*KeyboardButtonRequestPoll) CRC() uint32
func (*KeyboardButtonRequestPoll) FlagIndex ¶
func (*KeyboardButtonRequestPoll) FlagIndex() int
func (*KeyboardButtonRequestPoll) ImplementsKeyboardButton ¶
func (*KeyboardButtonRequestPoll) ImplementsKeyboardButton()
type KeyboardButtonRow ¶
type KeyboardButtonRow struct {
Buttons []KeyboardButton
}
Inline keyboard row
func (*KeyboardButtonRow) CRC ¶
func (*KeyboardButtonRow) CRC() uint32
type KeyboardButtonSimpleWebView ¶
Button to open a bot mini app using messages.requestSimpleWebView, without sending user information to the web app.
func (*KeyboardButtonSimpleWebView) CRC ¶
func (*KeyboardButtonSimpleWebView) CRC() uint32
func (*KeyboardButtonSimpleWebView) ImplementsKeyboardButton ¶
func (*KeyboardButtonSimpleWebView) ImplementsKeyboardButton()
type KeyboardButtonSwitchInline ¶
type KeyboardButtonSwitchInline struct {
SamePeer bool `tl:"flag:0,encoded_in_bitflags"` // If set, pressing the button will insert the bot's username and the specified inline `query` in the current chat's input field.
Text string // Button label
Query string // The inline query to use
PeerTypes []InlineQueryPeerType `tl:"flag:1"` // Filter to use when selecting chats.
}
Button to force a user to switch to inline mode: pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field.
func (*KeyboardButtonSwitchInline) CRC ¶
func (*KeyboardButtonSwitchInline) CRC() uint32
func (*KeyboardButtonSwitchInline) FlagIndex ¶
func (*KeyboardButtonSwitchInline) FlagIndex() int
func (*KeyboardButtonSwitchInline) ImplementsKeyboardButton ¶
func (*KeyboardButtonSwitchInline) ImplementsKeyboardButton()
type KeyboardButtonURL ¶
URL button
func (*KeyboardButtonURL) CRC ¶
func (*KeyboardButtonURL) CRC() uint32
func (*KeyboardButtonURL) ImplementsKeyboardButton ¶
func (*KeyboardButtonURL) ImplementsKeyboardButton()
type KeyboardButtonURLAuth ¶
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. 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
}
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.
func (*KeyboardButtonURLAuth) CRC ¶
func (*KeyboardButtonURLAuth) CRC() uint32
func (*KeyboardButtonURLAuth) FlagIndex ¶
func (*KeyboardButtonURLAuth) FlagIndex() int
func (*KeyboardButtonURLAuth) ImplementsKeyboardButton ¶
func (*KeyboardButtonURLAuth) ImplementsKeyboardButton()
type KeyboardButtonUserProfile ¶
Button that links directly to a user profile
func (*KeyboardButtonUserProfile) CRC ¶
func (*KeyboardButtonUserProfile) CRC() uint32
func (*KeyboardButtonUserProfile) ImplementsKeyboardButton ¶
func (*KeyboardButtonUserProfile) ImplementsKeyboardButton()
type KeyboardButtonWebView ¶
Button to open a bot mini app using messages.requestWebView, sending over user information after user confirmation.
func (*KeyboardButtonWebView) CRC ¶
func (*KeyboardButtonWebView) CRC() uint32
func (*KeyboardButtonWebView) ImplementsKeyboardButton ¶
func (*KeyboardButtonWebView) ImplementsKeyboardButton()
type LabeledPrice ¶
This object represents a portion of the price for goods or services.
func (*LabeledPrice) CRC ¶
func (*LabeledPrice) CRC() uint32
type LangPackDifference ¶
type LangPackDifference struct {
LangCode string
FromVersion int32
Version int32
Strings []LangPackString
}
Changes to the app's localization pack
func (*LangPackDifference) CRC ¶
func (*LangPackDifference) CRC() uint32
type LangPackLanguage ¶
type LangPackLanguage struct {
Official bool `tl:"flag:0,encoded_in_bitflags"`
Rtl bool `tl:"flag:2,encoded_in_bitflags"`
Beta bool `tl:"flag:3,encoded_in_bitflags"`
Name string
NativeName string
LangCode string
BaseLangCode string `tl:"flag:1"`
PluralCode string
StringsCount int32
TranslatedCount int32
TranslationsURL string
}
Identifies a localization pack
func (*LangPackLanguage) CRC ¶
func (*LangPackLanguage) CRC() uint32
func (*LangPackLanguage) FlagIndex ¶
func (*LangPackLanguage) FlagIndex() int
type LangPackString ¶
type LangPackStringDeleted ¶
type LangPackStringDeleted struct {
Key string // Localization key
}
Deleted localization string
func (*LangPackStringDeleted) CRC ¶
func (*LangPackStringDeleted) CRC() uint32
func (*LangPackStringDeleted) ImplementsLangPackString ¶
func (*LangPackStringDeleted) ImplementsLangPackString()
type LangPackStringObj ¶
Translated localization string
func (*LangPackStringObj) CRC ¶
func (*LangPackStringObj) CRC() uint32
func (*LangPackStringObj) ImplementsLangPackString ¶
func (*LangPackStringObj) ImplementsLangPackString()
type LangPackStringPluralized ¶
type LangPackStringPluralized struct {
Key string // Localization key
ZeroValue string `tl:"flag:0"` // Value for zero objects
OneValue string `tl:"flag:1"` // Value for one object
TwoValue string `tl:"flag:2"` // Value for two objects
FewValue string `tl:"flag:3"` // Value for a few objects
ManyValue string `tl:"flag:4"` // Value for many objects
OtherValue string // Default value
}
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
func (*LangPackStringPluralized) CRC ¶
func (*LangPackStringPluralized) CRC() uint32
func (*LangPackStringPluralized) FlagIndex ¶
func (*LangPackStringPluralized) FlagIndex() int
func (*LangPackStringPluralized) ImplementsLangPackString ¶
func (*LangPackStringPluralized) ImplementsLangPackString()
type LangpackGetDifferenceParams ¶
func (*LangpackGetDifferenceParams) CRC ¶
func (*LangpackGetDifferenceParams) CRC() uint32
type LangpackGetLangPackParams ¶
func (*LangpackGetLangPackParams) CRC ¶
func (*LangpackGetLangPackParams) CRC() uint32
type LangpackGetLanguageParams ¶
func (*LangpackGetLanguageParams) CRC ¶
func (*LangpackGetLanguageParams) CRC() uint32
type LangpackGetLanguagesParams ¶
type LangpackGetLanguagesParams struct {
LangPack string
}
func (*LangpackGetLanguagesParams) CRC ¶
func (*LangpackGetLanguagesParams) CRC() uint32
type LangpackGetStringsParams ¶
func (*LangpackGetStringsParams) CRC ¶
func (*LangpackGetStringsParams) CRC() uint32
type LifecycleHooks ¶ added in v1.7.0
type LifecycleHooks struct {
BeforeHandler func(*NewMessage)
AfterHandler func(*NewMessage, error)
OnError func(error, *NewMessage)
}
type LogEntry ¶ added in v1.6.7
type LogEntry struct {
Time any `json:"time"`
Level LogLevel `json:"level"`
Message string `json:"message"`
Prefix string `json:"prefix,omitempty"`
File string `json:"file,omitempty"`
Line int `json:"line,omitempty"`
Function string `json:"function,omitempty"`
Fields map[string]any `json:"fields,omitempty"`
Error error `json:"error,omitempty"`
StackTrace string `json:"stack_trace,omitempty"`
}
type LogFormatter ¶ added in v1.6.7
LogFormatter defines the interface for custom log formatters
type LogOutputMode ¶ added in v1.6.7
type LogOutputMode int
LogOutputMode defines the output format
const ( TextOutput LogOutputMode = iota JSONOutput )
type Logger ¶ added in v1.6.7
type Logger interface {
// Level control
SetLevel(level LogLevel) Logger
GetLevel() LogLevel
// Output control
SetOutput(w any) Logger
SetFormatter(formatter LogFormatter) Logger
// Context methods
WithField(key string, value any) Logger
WithFields(fields map[string]any) Logger
WithError(err error) Logger
WithPrefix(prefix string) Logger
// Configuration
SetColor(enabled bool) Logger
Color() bool
ShowCaller(enabled bool) Logger
ShowFunction(enabled bool) Logger
FullStackTrace(enabled bool) Logger
SetPrefix(prefix string) Logger
SetTimestampFormat(format string) Logger
Lev() LogLevel
SetJSONMode(enabled bool) Logger
// Logging methods
Trace(msg any, args ...any)
Debug(msg any, args ...any)
Info(msg any, args ...any)
Warn(msg any, args ...any)
Warning(msg any, args ...any)
Error(msg any, args ...any)
Fatal(msg any, args ...any)
Panic(msg any, args ...any)
// Formatted logging
Tracef(format string, args ...any)
Debugf(format string, args ...any)
Infof(format string, args ...any)
Warnf(format string, args ...any)
Warningf(format string, args ...any)
Errorf(format string, args ...any)
Fatalf(format string, args ...any)
Panicf(format string, args ...any)
// Utility methods
Flush() error
Close() error
Clone() Logger
CloneInternal() *utils.Logger
}
Logger interface allows users to provide custom logging implementations
func NewDefaultLogger ¶ added in v1.6.7
func NewLogger ¶ added in v1.4.5
func NewLogger(level LogLevel, config ...LoggerConfig) Logger
func NewLoggerWithConfig ¶ added in v1.6.7
func NewLoggerWithConfig(config *LoggerConfig) Logger
func WrapSimpleLogger ¶ added in v1.6.7
func WrapSimpleLogger(simple SimpleLogger) Logger
WrapSimpleLogger wraps a SimpleLogger to work with gogram This allows users to implement only 8 basic methods
type LoggerConfig ¶ added in v1.6.7
type LoggerConfig struct {
Level LogLevel // Minimum log level to output
Prefix string // Log message prefix
Output any // Output destination (io.Writer)
Formatter LogFormatter // Custom log formatter
Color bool // Enable colored output
ShowCaller bool // Include caller file:line in logs
ShowFunction bool // Include function name in logs
FullStackTrace bool // Show full stack trace on errors
TimestampFormat string // Custom timestamp format
BufferSize int // Write buffer size
AsyncMode bool // Enable asynchronous logging
AsyncQueueSize int // Size of async log queue
ErrorHandler func(error) // Handler for logging errors
JSONOutput bool // Output logs in JSON format
}
type LoginOptions ¶
type LoginOptions struct {
Password string `json:"password,omitempty"`
Code string `json:"code,omitempty"`
CodeHash string `json:"code_hash,omitempty"`
MaxRetries int `json:"max_retries,omitempty"`
CodeCallback AuthCallback
PasswordCallback AuthCallback
OnWrongPassword WrongPasswordCallback
OnWrongCode func(attempt, maxRetries int) bool
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
}
type MTProxy ¶ added in v1.6.7
func (*MTProxy) GetPassword ¶ added in v1.6.7
func (*MTProxy) GetUsername ¶ added in v1.6.7
type MaskCoords ¶
Position on a photo where a mask should be placed when attaching stickers to media
func (*MaskCoords) CRC ¶
func (*MaskCoords) CRC() uint32
type MediaAreaChannelPost ¶
type MediaAreaChannelPost struct {
Coordinates *MediaAreaCoordinates // The size and location of the media area corresponding to the location sticker on top of the story media.
ChannelID int64 // The channel that posted the message
MsgID int32 // ID of the channel message
}
Represents a channel post.
func (*MediaAreaChannelPost) CRC ¶
func (*MediaAreaChannelPost) CRC() uint32
func (*MediaAreaChannelPost) ImplementsMediaArea ¶
func (*MediaAreaChannelPost) ImplementsMediaArea()
type MediaAreaCoordinates ¶
type MediaAreaCoordinates struct {
X float64
Y float64
W float64
H float64
Rotation float64
Radius float64 `tl:"flag:0"`
}
Coordinates and size of a clickable rectangular area on top of a story.
func (*MediaAreaCoordinates) CRC ¶
func (*MediaAreaCoordinates) CRC() uint32
func (*MediaAreaCoordinates) FlagIndex ¶
func (*MediaAreaCoordinates) FlagIndex() int
type MediaAreaGeoPoint ¶
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.
Address *GeoPointAddress `tl:"flag:0"` // Optional textual representation of the address.
}
Represents a geolocation tag attached to a story.
func (*MediaAreaGeoPoint) CRC ¶
func (*MediaAreaGeoPoint) CRC() uint32
func (*MediaAreaGeoPoint) FlagIndex ¶
func (*MediaAreaGeoPoint) FlagIndex() int
func (*MediaAreaGeoPoint) ImplementsMediaArea ¶
func (*MediaAreaGeoPoint) ImplementsMediaArea()
type MediaAreaStarGift ¶ added in v1.5.3
type MediaAreaStarGift struct {
Coordinates *MediaAreaCoordinates // Coordinates of the media area.
Slug string // `slug` from starGiftUnique.`slug`, that can be resolved as specified here.
}
Represents a collectible gift.
func (*MediaAreaStarGift) CRC ¶ added in v1.5.3
func (*MediaAreaStarGift) CRC() uint32
func (*MediaAreaStarGift) ImplementsMediaArea ¶ added in v1.5.3
func (*MediaAreaStarGift) ImplementsMediaArea()
type MediaAreaSuggestedReaction ¶
type MediaAreaSuggestedReaction struct {
Dark bool `tl:"flag:0,encoded_in_bitflags"` // Whether the reaction bubble has a dark background.
Flipped bool `tl:"flag:1,encoded_in_bitflags"` // Whether the reaction bubble is mirrored (
Coordinates *MediaAreaCoordinates // The coordinates of the media area corresponding to the reaction button.
Reaction Reaction // The reaction that should be sent when this area is clicked.
}
Represents a reaction bubble.
func (*MediaAreaSuggestedReaction) CRC ¶
func (*MediaAreaSuggestedReaction) CRC() uint32
func (*MediaAreaSuggestedReaction) FlagIndex ¶
func (*MediaAreaSuggestedReaction) FlagIndex() int
func (*MediaAreaSuggestedReaction) ImplementsMediaArea ¶
func (*MediaAreaSuggestedReaction) ImplementsMediaArea()
type MediaAreaURL ¶
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.
}
Represents a URL media area.
func (*MediaAreaURL) CRC ¶
func (*MediaAreaURL) CRC() uint32
func (*MediaAreaURL) ImplementsMediaArea ¶
func (*MediaAreaURL) ImplementsMediaArea()
type MediaAreaVenue ¶
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
Title string // Venue name
Address string // Address
Provider string // Venue provider: currently only "foursquare" needs to be supported.
VenueID string // Venue ID in the provider's database
VenueType string // Venue type in the provider's database
}
Represents a location tag attached to a story, with additional venue information.
func (*MediaAreaVenue) CRC ¶
func (*MediaAreaVenue) CRC() uint32
func (*MediaAreaVenue) ImplementsMediaArea ¶
func (*MediaAreaVenue) ImplementsMediaArea()
type MediaAreaWeather ¶
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.
TemperatureC float64 // Temperature in degrees Celsius.
Color int32 // ARGB background color.
}
Represents a weather widget.
func (*MediaAreaWeather) CRC ¶
func (*MediaAreaWeather) CRC() uint32
func (*MediaAreaWeather) ImplementsMediaArea ¶
func (*MediaAreaWeather) ImplementsMediaArea()
type MediaMetadata ¶
type MediaMetadata struct {
FileName string // Custom filename for the uploaded file
BusinessConnectionId string // Business bot connection identifier
Thumb any // Custom thumbnail: file path, bytes, or InputFile
Attributes []DocumentAttribute // Document attributes like dimensions, duration, performer
ForceDocument bool // Send as generic document instead of media type
TTL int32 // Self-destruct timer in seconds
Spoiler bool // Hide media behind spoiler overlay
DisableThumb bool // Skip automatic thumbnail generation
MimeType string // MIME type override (e.g., "application/pdf")
Upload *UploadOptions // Upload configuration (threads, progress, chunk size)
FileAbsPath string // Source file absolute path (set automatically)
Inline bool // Force uploadMedia call (required for inline/albums)
SkipHash bool // Disable file deduplication by hash lookup
}
type MediaOptions ¶
type MediaOptions struct {
Attributes []DocumentAttribute // Document attributes like filename, dimensions, duration
MimeType string // MIME type override (e.g., "video/mp4", "audio/mpeg")
Caption any // Media caption: string, []string for albums, or *NewMessage
ClearDraft bool // Clear saved draft in this chat after sending
Entities []MessageEntity // Pre-parsed formatting entities (overrides ParseMode)
FileName string // Custom filename for the uploaded file
ForceDocument bool // Send media as document instead of embedded preview
InvertMedia bool // Display media below caption instead of above
LinkPreview bool // Generate link preview for URLs in caption
NoForwards bool // Restrict forwarding and saving of this message
NoSoundVideo bool // Strip audio track from video file
ParseMode string // Text parsing mode: "markdown", "html", or empty for plain
ReplyTo *InputReplyToMessage // Full reply configuration with quote support
ReplyID int32 // Simple reply to message by ID
TopicID int32 // Forum topic ID to send message in
UpdateStickerOrder bool // Move used sticker to top of recent stickers
ReplyMarkup ReplyMarkup // Inline keyboard or reply keyboard markup
ScheduleDate int32 // Unix timestamp to schedule message delivery
ScheduleRepeatPeriod int32 // Repeat interval in seconds for scheduled message
SendAs any // Send as channel or linked chat (peer ID or username)
Silent bool // Send without notification sound
Thumb any // Custom thumbnail: file path, bytes, or InputFile
TTL int32 // Self-destruct timer in seconds (for secret media)
Spoiler bool // Hide media behind spoiler overlay
Upload *UploadOptions // Upload configuration (threads, progress, chunk size)
SkipHash bool // Disable file deduplication by hash lookup
SleepThresholdMs int32 // Delay between chunk operations in milliseconds
AllowPaidStars int64 // Stars amount for paid content access
PaidFloodSkip bool // Skip flood wait using paid priority
SuggestedPost *SuggestedPost // Channel post suggestion configuration
QuickReplyShortcut *InputQuickReplyShortcut // Quick reply shortcut binding
}
type MemoryCacheStorage ¶ added in v1.6.9
type MemoryCacheStorage struct {
// contains filtered or unexported fields
}
MemoryCacheStorage implements CacheStorage for in-memory only (no persistence)
func NewMemoryCacheStorage ¶ added in v1.6.9
func NewMemoryCacheStorage() *MemoryCacheStorage
func (*MemoryCacheStorage) Close ¶ added in v1.6.9
func (m *MemoryCacheStorage) Close() error
func (*MemoryCacheStorage) Read ¶ added in v1.6.9
func (m *MemoryCacheStorage) Read() (*InputPeerCache, error)
func (*MemoryCacheStorage) Write ¶ added in v1.6.9
func (m *MemoryCacheStorage) Write(peers *InputPeerCache) error
type MessageAction ¶
type MessageActionBoostApply ¶
type MessageActionBoostApply struct {
Boosts int32 // Number of applied boosts.
}
Some boosts were applied to the channel or supergroup.
func (*MessageActionBoostApply) CRC ¶
func (*MessageActionBoostApply) CRC() uint32
func (*MessageActionBoostApply) ImplementsMessageAction ¶
func (*MessageActionBoostApply) ImplementsMessageAction()
type MessageActionBotAllowed ¶
type MessageActionBotAllowed struct {
AttachMenu bool `tl:"flag:1,encoded_in_bitflags"` // We have authorized the bot to send us messages by installing the bot's attachment menu.
FromRequest bool `tl:"flag:3,encoded_in_bitflags"` // We have allowed the bot to send us messages using bots.allowSendMessage.
Domain string `tl:"flag:0"` // We have authorized the bot to send us messages by logging into a website via Telegram Login ; this field contains the domain name of the website on which the user has logged in.
App BotApp `tl:"flag:2"` // We have authorized the bot to send us messages by opening the specified bot mini app.
}
We have given the bot permission to send us direct messages.
func (*MessageActionBotAllowed) CRC ¶
func (*MessageActionBotAllowed) CRC() uint32
func (*MessageActionBotAllowed) FlagIndex ¶
func (*MessageActionBotAllowed) FlagIndex() int
func (*MessageActionBotAllowed) ImplementsMessageAction ¶
func (*MessageActionBotAllowed) ImplementsMessageAction()
type MessageActionChannelCreate ¶
type MessageActionChannelCreate struct {
Title string // Original channel/supergroup title
}
The channel was created
func (*MessageActionChannelCreate) CRC ¶
func (*MessageActionChannelCreate) CRC() uint32
func (*MessageActionChannelCreate) ImplementsMessageAction ¶
func (*MessageActionChannelCreate) ImplementsMessageAction()
type MessageActionChannelMigrateFrom ¶
type MessageActionChannelMigrateFrom struct {
Title string // The old chat title
ChatID int64 // The old chat ID
}
Indicates the channel was migrated from the specified chat
func (*MessageActionChannelMigrateFrom) CRC ¶
func (*MessageActionChannelMigrateFrom) CRC() uint32
func (*MessageActionChannelMigrateFrom) ImplementsMessageAction ¶
func (*MessageActionChannelMigrateFrom) ImplementsMessageAction()
type MessageActionChatAddUser ¶
type MessageActionChatAddUser struct {
Users []int64 // Users that were invited to the chat
}
New member in the group
func (*MessageActionChatAddUser) CRC ¶
func (*MessageActionChatAddUser) CRC() uint32
func (*MessageActionChatAddUser) ImplementsMessageAction ¶
func (*MessageActionChatAddUser) ImplementsMessageAction()
type MessageActionChatCreate ¶
type MessageActionChatCreate struct {
Title string // Group name
Users []int64 // List of group members
}
Group created
func (*MessageActionChatCreate) CRC ¶
func (*MessageActionChatCreate) CRC() uint32
func (*MessageActionChatCreate) ImplementsMessageAction ¶
func (*MessageActionChatCreate) ImplementsMessageAction()
type MessageActionChatDeletePhoto ¶
type MessageActionChatDeletePhoto struct{}
Group profile photo removed.
func (*MessageActionChatDeletePhoto) CRC ¶
func (*MessageActionChatDeletePhoto) CRC() uint32
func (*MessageActionChatDeletePhoto) ImplementsMessageAction ¶
func (*MessageActionChatDeletePhoto) ImplementsMessageAction()
type MessageActionChatDeleteUser ¶
type MessageActionChatDeleteUser struct {
UserID int64 // Leaving user ID
}
User left the group.
func (*MessageActionChatDeleteUser) CRC ¶
func (*MessageActionChatDeleteUser) CRC() uint32
func (*MessageActionChatDeleteUser) ImplementsMessageAction ¶
func (*MessageActionChatDeleteUser) ImplementsMessageAction()
type MessageActionChatEditPhoto ¶
type MessageActionChatEditPhoto struct {
Photo Photo // New group profile photo
}
Group profile changed
func (*MessageActionChatEditPhoto) CRC ¶
func (*MessageActionChatEditPhoto) CRC() uint32
func (*MessageActionChatEditPhoto) ImplementsMessageAction ¶
func (*MessageActionChatEditPhoto) ImplementsMessageAction()
type MessageActionChatEditTitle ¶
type MessageActionChatEditTitle struct {
Title string // New group name
}
Group name changed.
func (*MessageActionChatEditTitle) CRC ¶
func (*MessageActionChatEditTitle) CRC() uint32
func (*MessageActionChatEditTitle) ImplementsMessageAction ¶
func (*MessageActionChatEditTitle) ImplementsMessageAction()
type MessageActionChatJoinedByLink ¶
type MessageActionChatJoinedByLink struct {
InviterID int64 // ID of the user that created the invite link
}
A user joined the chat via an invite link
func (*MessageActionChatJoinedByLink) CRC ¶
func (*MessageActionChatJoinedByLink) CRC() uint32
func (*MessageActionChatJoinedByLink) ImplementsMessageAction ¶
func (*MessageActionChatJoinedByLink) ImplementsMessageAction()
type MessageActionChatJoinedByRequest ¶
type MessageActionChatJoinedByRequest struct{}
A user was accepted into the group by an admin
func (*MessageActionChatJoinedByRequest) CRC ¶
func (*MessageActionChatJoinedByRequest) CRC() uint32
func (*MessageActionChatJoinedByRequest) ImplementsMessageAction ¶
func (*MessageActionChatJoinedByRequest) ImplementsMessageAction()
type MessageActionChatMigrateTo ¶
type MessageActionChatMigrateTo struct {
ChannelID int64 // The supergroup it was migrated to
}
Indicates the chat was migrated to the specified supergroup
func (*MessageActionChatMigrateTo) CRC ¶
func (*MessageActionChatMigrateTo) CRC() uint32
func (*MessageActionChatMigrateTo) ImplementsMessageAction ¶
func (*MessageActionChatMigrateTo) ImplementsMessageAction()
type MessageActionConferenceCall ¶ added in v1.6.0
type MessageActionConferenceCall struct {
Missed bool `tl:"flag:0,encoded_in_bitflags"` // Whether the conference call has ended and the user hasn't joined.
Active bool `tl:"flag:1,encoded_in_bitflags"` // Whether the user is currently in the conference call.
Video bool `tl:"flag:4,encoded_in_bitflags"` // Whether this is a video conference call.
CallID int64 // Call ID.
Duration int32 `tl:"flag:2"` // Call duration, for left calls only.
OtherParticipants []Peer `tl:"flag:3"` // Identifiers of some other call participants.
}
Represents a conference call (or an invitation to a conference call, if neither the `missed` nor `active` flags are set).
func (*MessageActionConferenceCall) CRC ¶ added in v1.6.0
func (*MessageActionConferenceCall) CRC() uint32
func (*MessageActionConferenceCall) FlagIndex ¶ added in v1.6.0
func (*MessageActionConferenceCall) FlagIndex() int
func (*MessageActionConferenceCall) ImplementsMessageAction ¶ added in v1.6.0
func (*MessageActionConferenceCall) ImplementsMessageAction()
type MessageActionContactSignUp ¶
type MessageActionContactSignUp struct{}
A contact just signed up to telegram
func (*MessageActionContactSignUp) CRC ¶
func (*MessageActionContactSignUp) CRC() uint32
func (*MessageActionContactSignUp) ImplementsMessageAction ¶
func (*MessageActionContactSignUp) ImplementsMessageAction()
type MessageActionCustomAction ¶
type MessageActionCustomAction struct {
Message string // Action message
}
Custom action (most likely not supported by the current layer, an upgrade might be needed)
func (*MessageActionCustomAction) CRC ¶
func (*MessageActionCustomAction) CRC() uint32
func (*MessageActionCustomAction) ImplementsMessageAction ¶
func (*MessageActionCustomAction) ImplementsMessageAction()
type MessageActionEmpty ¶
type MessageActionEmpty struct{}
Empty constructor.
func (*MessageActionEmpty) CRC ¶
func (*MessageActionEmpty) CRC() uint32
func (*MessageActionEmpty) ImplementsMessageAction ¶
func (*MessageActionEmpty) ImplementsMessageAction()
type MessageActionGameScore ¶
Someone scored in a game
func (*MessageActionGameScore) CRC ¶
func (*MessageActionGameScore) CRC() uint32
func (*MessageActionGameScore) ImplementsMessageAction ¶
func (*MessageActionGameScore) ImplementsMessageAction()
type MessageActionGeoProximityReached ¶
type MessageActionGeoProximityReached struct {
FromID Peer // The user or chat that is now in proximity of `to_id`
ToID Peer // The user or chat that subscribed to live geolocation proximity alerts
Distance int32 // Distance, in meters (0-100000)
}
A user of the chat is now in proximity of another user
func (*MessageActionGeoProximityReached) CRC ¶
func (*MessageActionGeoProximityReached) CRC() uint32
func (*MessageActionGeoProximityReached) ImplementsMessageAction ¶
func (*MessageActionGeoProximityReached) ImplementsMessageAction()
type MessageActionGiftCode ¶
type MessageActionGiftCode struct {
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:5,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.
Days 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
}
Contains a Telegram Premium giftcode link.
func (*MessageActionGiftCode) CRC ¶
func (*MessageActionGiftCode) CRC() uint32
func (*MessageActionGiftCode) FlagIndex ¶
func (*MessageActionGiftCode) FlagIndex() int
func (*MessageActionGiftCode) ImplementsMessageAction ¶
func (*MessageActionGiftCode) ImplementsMessageAction()
type MessageActionGiftPremium ¶
type MessageActionGiftPremium 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).
Days 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
}
Info about a gifted Telegram Premium subscription
func (*MessageActionGiftPremium) CRC ¶
func (*MessageActionGiftPremium) CRC() uint32
func (*MessageActionGiftPremium) FlagIndex ¶
func (*MessageActionGiftPremium) FlagIndex() int
func (*MessageActionGiftPremium) ImplementsMessageAction ¶
func (*MessageActionGiftPremium) ImplementsMessageAction()
type MessageActionGiftStars ¶
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).
Stars int64 // Amount of gifted stars
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.
TransactionID string `tl:"flag:1"` // Identifier of the transaction, only visible to the receiver of the gift.
}
You gifted or were gifted some Telegram Stars.
func (*MessageActionGiftStars) CRC ¶
func (*MessageActionGiftStars) CRC() uint32
func (*MessageActionGiftStars) FlagIndex ¶
func (*MessageActionGiftStars) FlagIndex() int
func (*MessageActionGiftStars) ImplementsMessageAction ¶
func (*MessageActionGiftStars) ImplementsMessageAction()
type MessageActionGiftTon ¶ added in v1.6.1
type MessageActionGiftTon struct {
Currency string // Name of a localized FIAT currency.
Amount int64 // FIAT currency equivalent (in the currency specified in `currency`) of the amount specified in `crypto_amount`.
CryptoCurrency string // Name of the cryptocurrency.
CryptoAmount int64 // Amount in the smallest unit of the cryptocurrency (for TONs, one billionth of a ton, AKA a nanoton).
TransactionID string `tl:"flag:0"` // Transaction ID.
}
You were gifted some toncoins.
func (*MessageActionGiftTon) CRC ¶ added in v1.6.1
func (*MessageActionGiftTon) CRC() uint32
func (*MessageActionGiftTon) FlagIndex ¶ added in v1.6.1
func (*MessageActionGiftTon) FlagIndex() int
func (*MessageActionGiftTon) ImplementsMessageAction ¶ added in v1.6.1
func (*MessageActionGiftTon) ImplementsMessageAction()
type MessageActionGiveawayLaunch ¶
type MessageActionGiveawayLaunch struct {
Stars int64 `tl:"flag:0"` // For Telegram Star giveaways, the total number of Telegram Stars being given away.
}
A giveaway was started.
func (*MessageActionGiveawayLaunch) CRC ¶
func (*MessageActionGiveawayLaunch) CRC() uint32
func (*MessageActionGiveawayLaunch) FlagIndex ¶
func (*MessageActionGiveawayLaunch) FlagIndex() int
func (*MessageActionGiveawayLaunch) ImplementsMessageAction ¶
func (*MessageActionGiveawayLaunch) ImplementsMessageAction()
type MessageActionGiveawayResults ¶
type MessageActionGiveawayResults struct {
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
}
A giveaway has ended.
func (*MessageActionGiveawayResults) CRC ¶
func (*MessageActionGiveawayResults) CRC() uint32
func (*MessageActionGiveawayResults) FlagIndex ¶
func (*MessageActionGiveawayResults) FlagIndex() int
func (*MessageActionGiveawayResults) ImplementsMessageAction ¶
func (*MessageActionGiveawayResults) ImplementsMessageAction()
type MessageActionGroupCall ¶
type MessageActionGroupCall struct {
Call InputGroupCall // Group call
Duration int32 `tl:"flag:0"` // Group call duration
}
The group call has ended
func (*MessageActionGroupCall) CRC ¶
func (*MessageActionGroupCall) CRC() uint32
func (*MessageActionGroupCall) FlagIndex ¶
func (*MessageActionGroupCall) FlagIndex() int
func (*MessageActionGroupCall) ImplementsMessageAction ¶
func (*MessageActionGroupCall) ImplementsMessageAction()
type MessageActionGroupCallScheduled ¶
type MessageActionGroupCallScheduled struct {
Call InputGroupCall // The group call
ScheduleDate int32 // When is this group call scheduled to start
}
A group call was scheduled
func (*MessageActionGroupCallScheduled) CRC ¶
func (*MessageActionGroupCallScheduled) CRC() uint32
func (*MessageActionGroupCallScheduled) ImplementsMessageAction ¶
func (*MessageActionGroupCallScheduled) ImplementsMessageAction()
type MessageActionHistoryClear ¶
type MessageActionHistoryClear struct{}
Chat history was cleared
func (*MessageActionHistoryClear) CRC ¶
func (*MessageActionHistoryClear) CRC() uint32
func (*MessageActionHistoryClear) ImplementsMessageAction ¶
func (*MessageActionHistoryClear) ImplementsMessageAction()
type MessageActionInviteToGroupCall ¶
type MessageActionInviteToGroupCall struct {
Call InputGroupCall // The group call
Users []int64 // The invited users
}
A set of users was invited to the group call
func (*MessageActionInviteToGroupCall) CRC ¶
func (*MessageActionInviteToGroupCall) CRC() uint32
func (*MessageActionInviteToGroupCall) ImplementsMessageAction ¶
func (*MessageActionInviteToGroupCall) ImplementsMessageAction()
type MessageActionPaidMessagesPrice ¶ added in v1.6.0
type MessageActionPaidMessagesPrice struct {
BroadcastMessagesAllowed bool `tl:"flag:0,encoded_in_bitflags"` // Can only be set for channels, if set indicates that direct messages were enabled, otherwise indicates that direct messages were disabled; the price of paid messages is related to the price of direct messages (aka those sent to the associated monoforum).
Stars int64 // The new price in Telegram Stars, can be `0` if messages are now free.
}
The price of paid messages in this chat was changed.
func (*MessageActionPaidMessagesPrice) CRC ¶ added in v1.6.0
func (*MessageActionPaidMessagesPrice) CRC() uint32
func (*MessageActionPaidMessagesPrice) FlagIndex ¶ added in v1.6.1
func (*MessageActionPaidMessagesPrice) FlagIndex() int
func (*MessageActionPaidMessagesPrice) ImplementsMessageAction ¶ added in v1.6.0
func (*MessageActionPaidMessagesPrice) ImplementsMessageAction()
type MessageActionPaidMessagesRefunded ¶ added in v1.6.0
type MessageActionPaidMessagesRefunded struct {
Count int32 // Number of paid messages affected by the refund.
Stars int64 // Number of refunded stars.
}
Sent from peer A to B, indicates that A refunded all stars B previously paid to send messages to A
func (*MessageActionPaidMessagesRefunded) CRC ¶ added in v1.6.0
func (*MessageActionPaidMessagesRefunded) CRC() uint32
func (*MessageActionPaidMessagesRefunded) ImplementsMessageAction ¶ added in v1.6.0
func (*MessageActionPaidMessagesRefunded) ImplementsMessageAction()
type MessageActionPaymentRefunded ¶
type MessageActionPaymentRefunded struct {
Peer Peer // Identifier of the peer that returned the funds.
Currency string // Currency, `XTR` for Telegram Stars.
TotalAmount 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).
Payload []byte `tl:"flag:0"` // Bot specified invoice payload (only received by bots).
Charge *PaymentCharge // Provider payment identifier
}
Describes a payment refund (service message received by both users and bots).
func (*MessageActionPaymentRefunded) CRC ¶
func (*MessageActionPaymentRefunded) CRC() uint32
func (*MessageActionPaymentRefunded) FlagIndex ¶
func (*MessageActionPaymentRefunded) FlagIndex() int
func (*MessageActionPaymentRefunded) ImplementsMessageAction ¶
func (*MessageActionPaymentRefunded) ImplementsMessageAction()
type MessageActionPaymentSent ¶
type MessageActionPaymentSent struct {
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"` // Expiration date of the Telegram Star subscription.
}
A payment was sent
func (*MessageActionPaymentSent) CRC ¶
func (*MessageActionPaymentSent) CRC() uint32
func (*MessageActionPaymentSent) FlagIndex ¶
func (*MessageActionPaymentSent) FlagIndex() int
func (*MessageActionPaymentSent) ImplementsMessageAction ¶
func (*MessageActionPaymentSent) ImplementsMessageAction()
type MessageActionPaymentSentMe ¶
type MessageActionPaymentSentMe struct {
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"` // Expiration date of the Telegram Star subscription.
}
A user just sent a payment to me (a bot)
func (*MessageActionPaymentSentMe) CRC ¶
func (*MessageActionPaymentSentMe) CRC() uint32
func (*MessageActionPaymentSentMe) FlagIndex ¶
func (*MessageActionPaymentSentMe) FlagIndex() int
func (*MessageActionPaymentSentMe) ImplementsMessageAction ¶
func (*MessageActionPaymentSentMe) ImplementsMessageAction()
type MessageActionPhoneCall ¶
type MessageActionPhoneCall struct {
Video bool `tl:"flag:2,encoded_in_bitflags"` // Is this a video call?
CallID int64 // Call ID
Reason PhoneCallDiscardReason `tl:"flag:0"` // If the call has ended, the reason why it ended
Duration int32 `tl:"flag:1"` // Duration of the call in seconds
}
A phone call
func (*MessageActionPhoneCall) CRC ¶
func (*MessageActionPhoneCall) CRC() uint32
func (*MessageActionPhoneCall) FlagIndex ¶
func (*MessageActionPhoneCall) FlagIndex() int
func (*MessageActionPhoneCall) ImplementsMessageAction ¶
func (*MessageActionPhoneCall) ImplementsMessageAction()
type MessageActionPinMessage ¶
type MessageActionPinMessage struct{}
A message was pinned
func (*MessageActionPinMessage) CRC ¶
func (*MessageActionPinMessage) CRC() uint32
func (*MessageActionPinMessage) ImplementsMessageAction ¶
func (*MessageActionPinMessage) ImplementsMessageAction()
type MessageActionPrizeStars ¶
type MessageActionPrizeStars struct {
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
}
You won some Telegram Stars in a Telegram Star giveaway.
func (*MessageActionPrizeStars) CRC ¶
func (*MessageActionPrizeStars) CRC() uint32
func (*MessageActionPrizeStars) FlagIndex ¶
func (*MessageActionPrizeStars) FlagIndex() int
func (*MessageActionPrizeStars) ImplementsMessageAction ¶
func (*MessageActionPrizeStars) ImplementsMessageAction()
type MessageActionRequestedPeer ¶
type MessageActionRequestedPeer struct {
ButtonID int32 // `button_id` contained in the keyboardButtonRequestPeer
Peers []Peer // The shared peers
}
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).
func (*MessageActionRequestedPeer) CRC ¶
func (*MessageActionRequestedPeer) CRC() uint32
func (*MessageActionRequestedPeer) ImplementsMessageAction ¶
func (*MessageActionRequestedPeer) ImplementsMessageAction()
type MessageActionRequestedPeerSentMe ¶
type MessageActionRequestedPeerSentMe struct {
ButtonID int32 // `button_id` contained in the keyboardButtonRequestPeer
Peers []RequestedPeer // Info about the shared peers.
}
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).
func (*MessageActionRequestedPeerSentMe) CRC ¶
func (*MessageActionRequestedPeerSentMe) CRC() uint32
func (*MessageActionRequestedPeerSentMe) ImplementsMessageAction ¶
func (*MessageActionRequestedPeerSentMe) ImplementsMessageAction()
type MessageActionScreenshotTaken ¶
type MessageActionScreenshotTaken struct{}
A screenshot of the chat was taken
func (*MessageActionScreenshotTaken) CRC ¶
func (*MessageActionScreenshotTaken) CRC() uint32
func (*MessageActionScreenshotTaken) ImplementsMessageAction ¶
func (*MessageActionScreenshotTaken) ImplementsMessageAction()
type MessageActionSecureValuesSent ¶
type MessageActionSecureValuesSent struct {
Types []SecureValueType // Secure value types
}
Request for secure telegram passport values was sent
func (*MessageActionSecureValuesSent) CRC ¶
func (*MessageActionSecureValuesSent) CRC() uint32
func (*MessageActionSecureValuesSent) ImplementsMessageAction ¶
func (*MessageActionSecureValuesSent) ImplementsMessageAction()
type MessageActionSecureValuesSentMe ¶
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
}
Secure telegram passport values were received
func (*MessageActionSecureValuesSentMe) CRC ¶
func (*MessageActionSecureValuesSentMe) CRC() uint32
func (*MessageActionSecureValuesSentMe) ImplementsMessageAction ¶
func (*MessageActionSecureValuesSentMe) ImplementsMessageAction()
type MessageActionSetChatTheme ¶
type MessageActionSetChatTheme struct {
Theme ChatTheme // The new chat theme.
}
The chat theme was changed
func (*MessageActionSetChatTheme) CRC ¶
func (*MessageActionSetChatTheme) CRC() uint32
func (*MessageActionSetChatTheme) ImplementsMessageAction ¶
func (*MessageActionSetChatTheme) ImplementsMessageAction()
type MessageActionSetChatWallPaper ¶
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).
Wallpaper WallPaper // New wallpaper
}
The wallpaper of the current chat was changed.
func (*MessageActionSetChatWallPaper) CRC ¶
func (*MessageActionSetChatWallPaper) CRC() uint32
func (*MessageActionSetChatWallPaper) FlagIndex ¶
func (*MessageActionSetChatWallPaper) FlagIndex() int
func (*MessageActionSetChatWallPaper) ImplementsMessageAction ¶
func (*MessageActionSetChatWallPaper) ImplementsMessageAction()
type MessageActionSetMessagesTtl ¶
type MessageActionSetMessagesTtl struct {
Period int32 // New Time-To-Live of all messages sent in this chat; if 0, autodeletion was disabled.
AutoSettingFrom int64 `tl:"flag:0"` // If set, the chat TTL setting was set not due to a manual change by one of participants, but automatically because one of the participants has the default TTL settings enabled. For example, when a user writes to us for the first time and we have set a default messages TTL of 1 week, this service message (with `auto_setting_from=our_userid`) will be emitted before our first message.
}
The Time-To-Live of messages in this chat was changed.
func (*MessageActionSetMessagesTtl) CRC ¶
func (*MessageActionSetMessagesTtl) CRC() uint32
func (*MessageActionSetMessagesTtl) FlagIndex ¶
func (*MessageActionSetMessagesTtl) FlagIndex() int
func (*MessageActionSetMessagesTtl) ImplementsMessageAction ¶
func (*MessageActionSetMessagesTtl) ImplementsMessageAction()
type MessageActionStarGift ¶
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"`
Upgraded bool `tl:"flag:5,encoded_in_bitflags"`
Refunded bool `tl:"flag:9,encoded_in_bitflags"`
CanUpgrade bool `tl:"flag:10,encoded_in_bitflags"`
PrepaidUpgrade bool `tl:"flag:13,encoded_in_bitflags"`
UpgradeSeparate bool `tl:"flag:16,encoded_in_bitflags"`
AuctionAcquired bool `tl:"flag:17,encoded_in_bitflags"`
Gift StarGift
Message *TextWithEntities `tl:"flag:1"`
ConvertStars int64 `tl:"flag:4"`
UpgradeMsgID int32 `tl:"flag:5"`
UpgradeStars int64 `tl:"flag:8"`
FromID Peer `tl:"flag:11"`
Peer Peer `tl:"flag:12"`
SavedID int64 `tl:"flag:12"`
PrepaidUpgradeHash string `tl:"flag:14"`
GiftMsgID int32 `tl:"flag:15"`
ToID Peer `tl:"flag:18"`
GiftNum int32 `tl:"flag:19"`
}
You received a gift
func (*MessageActionStarGift) CRC ¶
func (*MessageActionStarGift) CRC() uint32
func (*MessageActionStarGift) FlagIndex ¶
func (*MessageActionStarGift) FlagIndex() int
func (*MessageActionStarGift) ImplementsMessageAction ¶
func (*MessageActionStarGift) ImplementsMessageAction()
type MessageActionStarGiftPurchaseOffer ¶ added in v1.6.10
type MessageActionStarGiftPurchaseOffer struct {
Accepted bool `tl:"flag:0,encoded_in_bitflags"`
Declined bool `tl:"flag:1,encoded_in_bitflags"`
Gift StarGift
Price StarsAmount
ExpiresAt int32
}
func (*MessageActionStarGiftPurchaseOffer) CRC ¶ added in v1.6.10
func (*MessageActionStarGiftPurchaseOffer) CRC() uint32
func (*MessageActionStarGiftPurchaseOffer) FlagIndex ¶ added in v1.6.10
func (*MessageActionStarGiftPurchaseOffer) FlagIndex() int
func (*MessageActionStarGiftPurchaseOffer) ImplementsMessageAction ¶ added in v1.6.10
func (*MessageActionStarGiftPurchaseOffer) ImplementsMessageAction()
type MessageActionStarGiftPurchaseOfferDeclined ¶ added in v1.6.10
type MessageActionStarGiftPurchaseOfferDeclined struct {
Expired bool `tl:"flag:0,encoded_in_bitflags"`
Gift StarGift
Price StarsAmount
}
func (*MessageActionStarGiftPurchaseOfferDeclined) CRC ¶ added in v1.6.10
func (*MessageActionStarGiftPurchaseOfferDeclined) CRC() uint32
func (*MessageActionStarGiftPurchaseOfferDeclined) FlagIndex ¶ added in v1.6.10
func (*MessageActionStarGiftPurchaseOfferDeclined) FlagIndex() int
func (*MessageActionStarGiftPurchaseOfferDeclined) ImplementsMessageAction ¶ added in v1.6.10
func (*MessageActionStarGiftPurchaseOfferDeclined) ImplementsMessageAction()
type MessageActionStarGiftUnique ¶ added in v1.5.3
type MessageActionStarGiftUnique struct {
Upgrade bool `tl:"flag:0,encoded_in_bitflags"`
Transferred bool `tl:"flag:1,encoded_in_bitflags"`
Saved bool `tl:"flag:2,encoded_in_bitflags"`
Refunded bool `tl:"flag:5,encoded_in_bitflags"`
PrepaidUpgrade bool `tl:"flag:11,encoded_in_bitflags"`
Assigned bool `tl:"flag:13,encoded_in_bitflags"`
FromOffer bool `tl:"flag:14,encoded_in_bitflags"`
Gift StarGift
CanExportAt int32 `tl:"flag:3"`
TransferStars int64 `tl:"flag:4"`
FromID Peer `tl:"flag:6"`
Peer Peer `tl:"flag:7"`
SavedID int64 `tl:"flag:7"`
ResaleAmount StarsAmount `tl:"flag:8"`
CanTransferAt int32 `tl:"flag:9"`
CanResellAt int32 `tl:"flag:10"`
DropOriginalDetailsStars int64 `tl:"flag:12"`
}
A gift was upgraded to a collectible gift.
func (*MessageActionStarGiftUnique) CRC ¶ added in v1.5.3
func (*MessageActionStarGiftUnique) CRC() uint32
func (*MessageActionStarGiftUnique) FlagIndex ¶ added in v1.5.3
func (*MessageActionStarGiftUnique) FlagIndex() int
func (*MessageActionStarGiftUnique) ImplementsMessageAction ¶ added in v1.5.3
func (*MessageActionStarGiftUnique) ImplementsMessageAction()
type MessageActionSuggestBirthday ¶ added in v1.6.3
type MessageActionSuggestBirthday struct {
Birthday *Birthday
}
func (*MessageActionSuggestBirthday) CRC ¶ added in v1.6.3
func (*MessageActionSuggestBirthday) CRC() uint32
func (*MessageActionSuggestBirthday) ImplementsMessageAction ¶ added in v1.6.3
func (*MessageActionSuggestBirthday) ImplementsMessageAction()
type MessageActionSuggestProfilePhoto ¶
type MessageActionSuggestProfilePhoto struct {
Photo Photo // The photo that the user suggested we set as profile picture.
}
A new profile picture was suggested using photos.uploadContactProfilePhoto.
func (*MessageActionSuggestProfilePhoto) CRC ¶
func (*MessageActionSuggestProfilePhoto) CRC() uint32
func (*MessageActionSuggestProfilePhoto) ImplementsMessageAction ¶
func (*MessageActionSuggestProfilePhoto) ImplementsMessageAction()
type MessageActionSuggestedPostApproval ¶ added in v1.6.1
type MessageActionSuggestedPostApproval struct {
Rejected bool `tl:"flag:0,encoded_in_bitflags"` // Whether the suggested post was rejected.
BalanceTooLow bool `tl:"flag:1,encoded_in_bitflags"` // If set, the post was approved but the user's balance is too low to pay for the suggested post.
RejectComment string `tl:"flag:2"` // If the suggested post was rejected, can optionally contain a rejection comment.
ScheduleDate int32 `tl:"flag:3"` // Scheduling date.
Price StarsAmount `tl:"flag:4"` // Price for the suggested post.
}
A suggested post was approved or rejected.
func (*MessageActionSuggestedPostApproval) CRC ¶ added in v1.6.1
func (*MessageActionSuggestedPostApproval) CRC() uint32
func (*MessageActionSuggestedPostApproval) FlagIndex ¶ added in v1.6.1
func (*MessageActionSuggestedPostApproval) FlagIndex() int
func (*MessageActionSuggestedPostApproval) ImplementsMessageAction ¶ added in v1.6.1
func (*MessageActionSuggestedPostApproval) ImplementsMessageAction()
type MessageActionSuggestedPostRefund ¶ added in v1.6.1
type MessageActionSuggestedPostRefund struct {
PayerInitiated bool `tl:"flag:0,encoded_in_bitflags"` // If set, the user refunded the payment for the stars used to pay for the suggested post.
}
A suggested post was accepted and posted or scheduled, but either the channel deleted the posted/scheduled post before stars_suggested_post_age_min seconds have elapsed, or the user refunded the payment for the stars used to pay for the suggested post.
func (*MessageActionSuggestedPostRefund) CRC ¶ added in v1.6.1
func (*MessageActionSuggestedPostRefund) CRC() uint32
func (*MessageActionSuggestedPostRefund) FlagIndex ¶ added in v1.6.1
func (*MessageActionSuggestedPostRefund) FlagIndex() int
func (*MessageActionSuggestedPostRefund) ImplementsMessageAction ¶ added in v1.6.1
func (*MessageActionSuggestedPostRefund) ImplementsMessageAction()
type MessageActionSuggestedPostSuccess ¶ added in v1.6.1
type MessageActionSuggestedPostSuccess struct {
Price StarsAmount // The price.
}
A suggested post was successfully posted, and payment for it was successfully received.
func (*MessageActionSuggestedPostSuccess) CRC ¶ added in v1.6.1
func (*MessageActionSuggestedPostSuccess) CRC() uint32
func (*MessageActionSuggestedPostSuccess) ImplementsMessageAction ¶ added in v1.6.1
func (*MessageActionSuggestedPostSuccess) ImplementsMessageAction()
type MessageActionTodoAppendTasks ¶ added in v1.6.1
type MessageActionTodoAppendTasks struct {
List []*TodoItem // Appended items.
}
Items were appended to the todo list.
func (*MessageActionTodoAppendTasks) CRC ¶ added in v1.6.1
func (*MessageActionTodoAppendTasks) CRC() uint32
func (*MessageActionTodoAppendTasks) ImplementsMessageAction ¶ added in v1.6.1
func (*MessageActionTodoAppendTasks) ImplementsMessageAction()
type MessageActionTodoCompletions ¶ added in v1.6.1
type MessageActionTodoCompletions struct {
Completed []int32 // Items marked as completed.
Incompleted []int32 // Items marked as not completed.
}
Items were marked as completed or not completed in a todo list.
func (*MessageActionTodoCompletions) CRC ¶ added in v1.6.1
func (*MessageActionTodoCompletions) CRC() uint32
func (*MessageActionTodoCompletions) ImplementsMessageAction ¶ added in v1.6.1
func (*MessageActionTodoCompletions) ImplementsMessageAction()
type MessageActionTopicCreate ¶
type MessageActionTopicCreate struct {
TitleMissing bool `tl:"flag:1,encoded_in_bitflags"`
Title string
IconColor int32
IconEmojiID int64 `tl:"flag:0"`
}
A forum topic was created.
func (*MessageActionTopicCreate) CRC ¶
func (*MessageActionTopicCreate) CRC() uint32
func (*MessageActionTopicCreate) FlagIndex ¶
func (*MessageActionTopicCreate) FlagIndex() int
func (*MessageActionTopicCreate) ImplementsMessageAction ¶
func (*MessageActionTopicCreate) ImplementsMessageAction()
type MessageActionTopicEdit ¶
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.
Closed bool `tl:"flag:2"` // Whether the topic was opened or closed.
Hidden bool `tl:"flag:3"` // Whether the topic was hidden or unhidden (only valid for the "General" topic, `id=1`).
}
Forum topic information was edited.
func (*MessageActionTopicEdit) CRC ¶
func (*MessageActionTopicEdit) CRC() uint32
func (*MessageActionTopicEdit) FlagIndex ¶
func (*MessageActionTopicEdit) FlagIndex() int
func (*MessageActionTopicEdit) ImplementsMessageAction ¶
func (*MessageActionTopicEdit) ImplementsMessageAction()
type MessageActionWebViewDataSent ¶
type MessageActionWebViewDataSent struct {
Text string // Text of the keyboardButtonSimpleWebView that was pressed to open the web app.
}
Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (user side service message).
func (*MessageActionWebViewDataSent) CRC ¶
func (*MessageActionWebViewDataSent) CRC() uint32
func (*MessageActionWebViewDataSent) ImplementsMessageAction ¶
func (*MessageActionWebViewDataSent) ImplementsMessageAction()
type MessageActionWebViewDataSentMe ¶
type MessageActionWebViewDataSentMe struct {
Text string // Text of the keyboardButtonSimpleWebView that was pressed to open the web app.
Data string // Relayed data.
}
Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (bot side service message).
func (*MessageActionWebViewDataSentMe) CRC ¶
func (*MessageActionWebViewDataSentMe) CRC() uint32
func (*MessageActionWebViewDataSentMe) ImplementsMessageAction ¶
func (*MessageActionWebViewDataSentMe) ImplementsMessageAction()
type MessageEmpty ¶
type MessageEmpty struct {
ID int32 // Message identifier
PeerID Peer `tl:"flag:0"` // Peer ID, the chat where this message was sent
}
Empty constructor, non-existent message.
func (*MessageEmpty) CRC ¶
func (*MessageEmpty) CRC() uint32
func (*MessageEmpty) FlagIndex ¶
func (*MessageEmpty) FlagIndex() int
func (*MessageEmpty) ImplementsMessage ¶
func (*MessageEmpty) ImplementsMessage()
type MessageEntity ¶
type MessageEntityBankCard ¶
type MessageEntityBankCard 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)
}
Indicates a credit card number
func (*MessageEntityBankCard) CRC ¶
func (*MessageEntityBankCard) CRC() uint32
func (*MessageEntityBankCard) ImplementsMessageEntity ¶
func (*MessageEntityBankCard) ImplementsMessageEntity()
type MessageEntityBlockquote ¶
type MessageEntityBlockquote struct {
Collapsed bool `tl:"flag:0,encoded_in_bitflags"` // Whether the quote is collapsed by default.
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)
}
Message entity representing a block quote.
func (*MessageEntityBlockquote) CRC ¶
func (*MessageEntityBlockquote) CRC() uint32
func (*MessageEntityBlockquote) FlagIndex ¶
func (*MessageEntityBlockquote) FlagIndex() int
func (*MessageEntityBlockquote) ImplementsMessageEntity ¶
func (*MessageEntityBlockquote) ImplementsMessageEntity()
type MessageEntityBold ¶
type MessageEntityBold 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)
}
Message entity representing bold text.
func (*MessageEntityBold) CRC ¶
func (*MessageEntityBold) CRC() uint32
func (*MessageEntityBold) ImplementsMessageEntity ¶
func (*MessageEntityBold) ImplementsMessageEntity()
type MessageEntityBotCommand ¶
type MessageEntityBotCommand 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)
}
Message entity representing a bot /command
func (*MessageEntityBotCommand) CRC ¶
func (*MessageEntityBotCommand) CRC() uint32
func (*MessageEntityBotCommand) ImplementsMessageEntity ¶
func (*MessageEntityBotCommand) ImplementsMessageEntity()
type MessageEntityCashtag ¶
type MessageEntityCashtag 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)
}
Message entity representing a $cashtag.
func (*MessageEntityCashtag) CRC ¶
func (*MessageEntityCashtag) CRC() uint32
func (*MessageEntityCashtag) ImplementsMessageEntity ¶
func (*MessageEntityCashtag) ImplementsMessageEntity()
type MessageEntityCode ¶
type MessageEntityCode 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)
}
Message entity representing a `codeblock`.
func (*MessageEntityCode) CRC ¶
func (*MessageEntityCode) CRC() uint32
func (*MessageEntityCode) ImplementsMessageEntity ¶
func (*MessageEntityCode) ImplementsMessageEntity()
type MessageEntityCustomEmoji ¶
type MessageEntityCustomEmoji 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)
DocumentID int64 // Document ID of the custom emoji, use messages.getCustomEmojiDocuments to fetch the emoji animation and the actual emoji it represents.
}
Represents a custom emoji. 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.
func (*MessageEntityCustomEmoji) CRC ¶
func (*MessageEntityCustomEmoji) CRC() uint32
func (*MessageEntityCustomEmoji) ImplementsMessageEntity ¶
func (*MessageEntityCustomEmoji) ImplementsMessageEntity()
type MessageEntityEmail ¶
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)
}
Message entity representing an email@example.com.
func (*MessageEntityEmail) CRC ¶
func (*MessageEntityEmail) CRC() uint32
func (*MessageEntityEmail) ImplementsMessageEntity ¶
func (*MessageEntityEmail) ImplementsMessageEntity()
type MessageEntityHashtag ¶
type MessageEntityHashtag 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)
}
#hashtag message entity
func (*MessageEntityHashtag) CRC ¶
func (*MessageEntityHashtag) CRC() uint32
func (*MessageEntityHashtag) ImplementsMessageEntity ¶
func (*MessageEntityHashtag) ImplementsMessageEntity()
type MessageEntityItalic ¶
type MessageEntityItalic 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)
}
Message entity representing <em>italic text</em>.
func (*MessageEntityItalic) CRC ¶
func (*MessageEntityItalic) CRC() uint32
func (*MessageEntityItalic) ImplementsMessageEntity ¶
func (*MessageEntityItalic) ImplementsMessageEntity()
type MessageEntityMention ¶
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)
}
Message entity mentioning a user by `@username`; messageEntityMentionName can also be used to mention users by their ID.
func (*MessageEntityMention) CRC ¶
func (*MessageEntityMention) CRC() uint32
func (*MessageEntityMention) ImplementsMessageEntity ¶
func (*MessageEntityMention) ImplementsMessageEntity()
type MessageEntityMentionName ¶
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)
UserID int64 // Identifier of the user that was mentioned
}
Message entity representing a user mention: for <em>creating</em> a mention use inputMessageEntityMentionName.
func (*MessageEntityMentionName) CRC ¶
func (*MessageEntityMentionName) CRC() uint32
func (*MessageEntityMentionName) ImplementsMessageEntity ¶
func (*MessageEntityMentionName) ImplementsMessageEntity()
type MessageEntityPhone ¶
type MessageEntityPhone 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)
}
Message entity representing a phone number.
func (*MessageEntityPhone) CRC ¶
func (*MessageEntityPhone) CRC() uint32
func (*MessageEntityPhone) ImplementsMessageEntity ¶
func (*MessageEntityPhone) ImplementsMessageEntity()
type MessageEntityPre ¶
type MessageEntityPre 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)
Language string // Programming language of the code
}
Message entity representing a preformatted `codeblock`, allowing the user to specify a programming language for the codeblock.
func (*MessageEntityPre) CRC ¶
func (*MessageEntityPre) CRC() uint32
func (*MessageEntityPre) ImplementsMessageEntity ¶
func (*MessageEntityPre) ImplementsMessageEntity()
type MessageEntitySpoiler ¶
type MessageEntitySpoiler 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)
}
Message entity representing a spoiler
func (*MessageEntitySpoiler) CRC ¶
func (*MessageEntitySpoiler) CRC() uint32
func (*MessageEntitySpoiler) ImplementsMessageEntity ¶
func (*MessageEntitySpoiler) ImplementsMessageEntity()
type MessageEntityStrike ¶
type MessageEntityStrike 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)
}
Message entity representing <del>strikethrough</del> text.
func (*MessageEntityStrike) CRC ¶
func (*MessageEntityStrike) CRC() uint32
func (*MessageEntityStrike) ImplementsMessageEntity ¶
func (*MessageEntityStrike) ImplementsMessageEntity()
type MessageEntityTextURL ¶
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)
URL string // The actual URL
}
Message entity representing a text url: for in-text urls like https://google.com use messageEntityUrl.
func (*MessageEntityTextURL) CRC ¶
func (*MessageEntityTextURL) CRC() uint32
func (*MessageEntityTextURL) ImplementsMessageEntity ¶
func (*MessageEntityTextURL) ImplementsMessageEntity()
type MessageEntityURL ¶
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)
}
Message entity representing an in-text url: https://google.com; for text urls, use messageEntityTextUrl.
func (*MessageEntityURL) CRC ¶
func (*MessageEntityURL) CRC() uint32
func (*MessageEntityURL) ImplementsMessageEntity ¶
func (*MessageEntityURL) ImplementsMessageEntity()
type MessageEntityUnderline ¶
type MessageEntityUnderline 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)
}
Message entity representing underlined text.
func (*MessageEntityUnderline) CRC ¶
func (*MessageEntityUnderline) CRC() uint32
func (*MessageEntityUnderline) ImplementsMessageEntity ¶
func (*MessageEntityUnderline) ImplementsMessageEntity()
type MessageEntityUnknown ¶
type MessageEntityUnknown 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)
}
Unknown message entity
func (*MessageEntityUnknown) CRC ¶
func (*MessageEntityUnknown) CRC() uint32
func (*MessageEntityUnknown) ImplementsMessageEntity ¶
func (*MessageEntityUnknown) ImplementsMessageEntity()
type MessageExtendedMedia ¶
type MessageExtendedMediaObj ¶
type MessageExtendedMediaObj struct {
Media MessageMedia // The media we purchased.
}
Already purchased paid media
func (*MessageExtendedMediaObj) CRC ¶
func (*MessageExtendedMediaObj) CRC() uint32
func (*MessageExtendedMediaObj) ImplementsMessageExtendedMedia ¶
func (*MessageExtendedMediaObj) ImplementsMessageExtendedMedia()
type MessageExtendedMediaPreview ¶
type MessageExtendedMediaPreview struct {
W int32 `tl:"flag:0"` // Width
H int32 `tl:"flag:0"` // Height
Thumb PhotoSize `tl:"flag:1"` // Extremely low resolution thumbnail.
VideoDuration int32 `tl:"flag:2"` // Video duration for videos.
}
Paid media preview for not yet purchased paid media
func (*MessageExtendedMediaPreview) CRC ¶
func (*MessageExtendedMediaPreview) CRC() uint32
func (*MessageExtendedMediaPreview) FlagIndex ¶
func (*MessageExtendedMediaPreview) FlagIndex() int
func (*MessageExtendedMediaPreview) ImplementsMessageExtendedMedia ¶
func (*MessageExtendedMediaPreview) ImplementsMessageExtendedMedia()
type MessageFwdHeader ¶
type MessageFwdHeader struct {
Imported bool `tl:"flag:7,encoded_in_bitflags"`
SavedOut bool `tl:"flag:11,encoded_in_bitflags"`
FromID Peer `tl:"flag:0"`
FromName string `tl:"flag:5"`
Date int32
ChannelPost int32 `tl:"flag:2"`
PostAuthor string `tl:"flag:3"`
SavedFromPeer Peer `tl:"flag:4"`
SavedFromMsgID int32 `tl:"flag:4"`
SavedFromID Peer `tl:"flag:8"`
SavedFromName string `tl:"flag:9"`
SavedDate int32 `tl:"flag:10"`
PsaType string `tl:"flag:6"`
}
Info about a forwarded message
func (*MessageFwdHeader) CRC ¶
func (*MessageFwdHeader) CRC() uint32
func (*MessageFwdHeader) FlagIndex ¶
func (*MessageFwdHeader) FlagIndex() int
type MessageHandler ¶
type MessageHandler func(m *NewMessage) error
func WithMiddleware ¶ added in v1.7.0
func WithMiddleware(handler MessageHandler, middlewares ...Middleware) MessageHandler
WithMiddleware wraps a handler with the provided middlewares
type MessageMedia ¶
func ResolveBotFileID ¶
func ResolveBotFileID(fileId string) (MessageMedia, error)
ResolveBotFileID resolves a file id to a MessageMedia object
type MessageMediaContact ¶
type MessageMediaContact struct {
PhoneNumber string // Phone number
FirstName string // Contact's first name
LastName string // Contact's last name
Vcard string // VCARD of contact
UserID int64 // User identifier or `0`, if the user with the given phone number is not registered
}
Attached contact.
func (*MessageMediaContact) CRC ¶
func (*MessageMediaContact) CRC() uint32
func (*MessageMediaContact) ImplementsMessageMedia ¶
func (*MessageMediaContact) ImplementsMessageMedia()
type MessageMediaDice ¶
type MessageMediaDice struct {
Value int32 // Dice value
Emoticon string // The emoji, for now <img class="emoji" src="//telegram.org/img/emoji/40/F09F8F80.png" width="20" height="20" alt="🏀" />, <img class="emoji" src="//telegram.org/img/emoji/40/F09F8EB2.png" width="20" height="20" alt="🎲" /> and <img class="emoji" src="//telegram.org/img/emoji/40/F09F8EAF.png" width="20" height="20" alt="🎯" /> are supported
}
Dice-based animated sticker
func (*MessageMediaDice) CRC ¶
func (*MessageMediaDice) CRC() uint32
func (*MessageMediaDice) ImplementsMessageMedia ¶
func (*MessageMediaDice) ImplementsMessageMedia()
type MessageMediaDocument ¶
type MessageMediaDocument struct {
Spoiler bool `tl:"flag:4,encoded_in_bitflags"` // Whether this media should be hidden behind a spoiler warning
Video bool `tl:"flag:6,encoded_in_bitflags"` // Whether this is a video.
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"` // Videos only, contains alternative qualities of the video.
VideoCover Photo `tl:"flag:9"` // Custom video cover.
VideoTimestamp int32 `tl:"flag:10"` // Start playing the video at the specified timestamp (seconds).
TtlSeconds int32 `tl:"flag:2"` // Time to live of self-destructing document
}
Document (video, audio, voice, sticker, any media type except photo)
func (*MessageMediaDocument) CRC ¶
func (*MessageMediaDocument) CRC() uint32
func (*MessageMediaDocument) FlagIndex ¶
func (*MessageMediaDocument) FlagIndex() int
func (*MessageMediaDocument) ImplementsMessageMedia ¶
func (*MessageMediaDocument) ImplementsMessageMedia()
type MessageMediaEmpty ¶
type MessageMediaEmpty struct{}
Empty constructor.
func (*MessageMediaEmpty) CRC ¶
func (*MessageMediaEmpty) CRC() uint32
func (*MessageMediaEmpty) ImplementsMessageMedia ¶
func (*MessageMediaEmpty) ImplementsMessageMedia()
type MessageMediaGame ¶
type MessageMediaGame struct {
Game *Game // Game
}
Telegram game
func (*MessageMediaGame) CRC ¶
func (*MessageMediaGame) CRC() uint32
func (*MessageMediaGame) ImplementsMessageMedia ¶
func (*MessageMediaGame) ImplementsMessageMedia()
type MessageMediaGeo ¶
type MessageMediaGeo struct {
Geo GeoPoint // GeoPoint
}
Attached map.
func (*MessageMediaGeo) CRC ¶
func (*MessageMediaGeo) CRC() uint32
func (*MessageMediaGeo) ImplementsMessageMedia ¶
func (*MessageMediaGeo) ImplementsMessageMedia()
type MessageMediaGeoLive ¶
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
Period int32 // Validity period of provided geolocation
ProximityNotificationRadius int32 `tl:"flag:1"` // For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000).
}
Indicates a live geolocation
func (*MessageMediaGeoLive) CRC ¶
func (*MessageMediaGeoLive) CRC() uint32
func (*MessageMediaGeoLive) FlagIndex ¶
func (*MessageMediaGeoLive) FlagIndex() int
func (*MessageMediaGeoLive) ImplementsMessageMedia ¶
func (*MessageMediaGeoLive) ImplementsMessageMedia()
type MessageMediaGiveaway ¶
type MessageMediaGiveaway 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: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.
}
Contains info about a giveaway
func (*MessageMediaGiveaway) CRC ¶
func (*MessageMediaGiveaway) CRC() uint32
func (*MessageMediaGiveaway) FlagIndex ¶
func (*MessageMediaGiveaway) FlagIndex() int
func (*MessageMediaGiveaway) ImplementsMessageMedia ¶
func (*MessageMediaGiveaway) ImplementsMessageMedia()
type MessageMediaGiveawayResults ¶
type MessageMediaGiveawayResults struct {
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.
}
A giveaway with public winners has finished, this constructor contains info about the winners.
func (*MessageMediaGiveawayResults) CRC ¶
func (*MessageMediaGiveawayResults) CRC() uint32
func (*MessageMediaGiveawayResults) FlagIndex ¶
func (*MessageMediaGiveawayResults) FlagIndex() int
func (*MessageMediaGiveawayResults) ImplementsMessageMedia ¶
func (*MessageMediaGiveawayResults) ImplementsMessageMedia()
type MessageMediaInvoice ¶
type MessageMediaInvoice struct {
ShippingAddressRequested bool `tl:"flag:1,encoded_in_bitflags"` // Whether the shipping address was requested
Test bool `tl:"flag:3,encoded_in_bitflags"` // Whether this is an example invoice
Title string // Product name, 1-32 characters
Description string // Product description, 1-255 characters
Photo WebDocument `tl:"flag:0"` // URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.
ReceiptMsgID int32 `tl:"flag:2"` // Message ID of receipt: if set, clients should change the text of the first keyboardButtonBuy button always attached to the message to a localized version of the word `Receipt`
Currency string // Three-letter ISO 4217 currency code, or `XTR` for Telegram Stars.
TotalAmount 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).
StartParam string // Unique bot deep-linking parameter that can be used to generate this invoice
ExtendedMedia MessageExtendedMedia `tl:"flag:4"` // Deprecated
}
Invoice
func (*MessageMediaInvoice) CRC ¶
func (*MessageMediaInvoice) CRC() uint32
func (*MessageMediaInvoice) FlagIndex ¶
func (*MessageMediaInvoice) FlagIndex() int
func (*MessageMediaInvoice) ImplementsMessageMedia ¶
func (*MessageMediaInvoice) ImplementsMessageMedia()
type MessageMediaPaidMedia ¶
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
}
Paid media
func (*MessageMediaPaidMedia) CRC ¶
func (*MessageMediaPaidMedia) CRC() uint32
func (*MessageMediaPaidMedia) ImplementsMessageMedia ¶
func (*MessageMediaPaidMedia) ImplementsMessageMedia()
type MessageMediaPhoto ¶
type MessageMediaPhoto struct {
Spoiler bool `tl:"flag:3,encoded_in_bitflags"` // Whether this media should be hidden behind a spoiler warning
Photo Photo `tl:"flag:0"` // Photo
TtlSeconds int32 `tl:"flag:2"` // Time to live in seconds of self-destructing photo
}
Attached photo.
func (*MessageMediaPhoto) CRC ¶
func (*MessageMediaPhoto) CRC() uint32
func (*MessageMediaPhoto) FlagIndex ¶
func (*MessageMediaPhoto) FlagIndex() int
func (*MessageMediaPhoto) ImplementsMessageMedia ¶
func (*MessageMediaPhoto) ImplementsMessageMedia()
type MessageMediaPoll ¶
type MessageMediaPoll struct {
Poll *Poll // The poll
Results *PollResults // The results of the poll
}
Poll
func (*MessageMediaPoll) CRC ¶
func (*MessageMediaPoll) CRC() uint32
func (*MessageMediaPoll) ImplementsMessageMedia ¶
func (*MessageMediaPoll) ImplementsMessageMedia()
type MessageMediaStory ¶
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.
ID int32 // Story ID
Story StoryItem `tl:"flag:0"` // The story itself, if absent fetch it using stories.getStoriesByID and the `peer`/`id` parameters specified above.
}
Represents a forwarded story or a story mention.
func (*MessageMediaStory) CRC ¶
func (*MessageMediaStory) CRC() uint32
func (*MessageMediaStory) FlagIndex ¶
func (*MessageMediaStory) FlagIndex() int
func (*MessageMediaStory) ImplementsMessageMedia ¶
func (*MessageMediaStory) ImplementsMessageMedia()
type MessageMediaToDo ¶ added in v1.6.1
type MessageMediaToDo struct {
Todo *TodoList // The todo list.
Completions []*TodoCompletion `tl:"flag:0"` // Completed items.
}
Represents a todo list.
func (*MessageMediaToDo) CRC ¶ added in v1.6.1
func (*MessageMediaToDo) CRC() uint32
func (*MessageMediaToDo) FlagIndex ¶ added in v1.6.1
func (*MessageMediaToDo) FlagIndex() int
func (*MessageMediaToDo) ImplementsMessageMedia ¶ added in v1.6.1
func (*MessageMediaToDo) ImplementsMessageMedia()
type MessageMediaUnsupported ¶
type MessageMediaUnsupported struct{}
Current version of the client does not support this media type.
func (*MessageMediaUnsupported) CRC ¶
func (*MessageMediaUnsupported) CRC() uint32
func (*MessageMediaUnsupported) ImplementsMessageMedia ¶
func (*MessageMediaUnsupported) ImplementsMessageMedia()
type MessageMediaVenue ¶
type MessageMediaVenue struct {
Geo GeoPoint // Geolocation of venue
Title string // Venue name
Address string // Address
Provider string // Venue provider: currently only "foursquare" and "gplaces" (Google Places) need to be supported
VenueID string // Venue ID in the provider's database
VenueType string // Venue type in the provider's database
}
Venue
func (*MessageMediaVenue) CRC ¶
func (*MessageMediaVenue) CRC() uint32
func (*MessageMediaVenue) ImplementsMessageMedia ¶
func (*MessageMediaVenue) ImplementsMessageMedia()
type MessageMediaVideoStream ¶ added in v1.6.7
type MessageMediaVideoStream struct {
RtmpStream bool `tl:"flag:0,encoded_in_bitflags"`
Call InputGroupCall
}
func (*MessageMediaVideoStream) CRC ¶ added in v1.6.7
func (*MessageMediaVideoStream) CRC() uint32
func (*MessageMediaVideoStream) FlagIndex ¶ added in v1.6.7
func (*MessageMediaVideoStream) FlagIndex() int
func (*MessageMediaVideoStream) ImplementsMessageMedia ¶ added in v1.6.7
func (*MessageMediaVideoStream) ImplementsMessageMedia()
type MessageMediaWebPage ¶
type MessageMediaWebPage struct {
ForceLargeMedia bool `tl:"flag:0,encoded_in_bitflags"` // If set, specifies that a large media preview should be used.
ForceSmallMedia bool `tl:"flag:1,encoded_in_bitflags"` // If set, specifies that a small media preview should be used.
Manual bool `tl:"flag:3,encoded_in_bitflags"` // If set, indicates that the URL used for the webpage preview was specified manually using inputMediaWebPage, and may not be related to any of the URLs specified in the message.
Safe bool `tl:"flag:4,encoded_in_bitflags"` // If set, the webpage can be opened directly without user confirmation; otherwise, user confirmation is required, showing the exact URL that will be opened.
Webpage WebPage // Webpage preview
}
Preview of webpage
func (*MessageMediaWebPage) CRC ¶
func (*MessageMediaWebPage) CRC() uint32
func (*MessageMediaWebPage) FlagIndex ¶
func (*MessageMediaWebPage) FlagIndex() int
func (*MessageMediaWebPage) ImplementsMessageMedia ¶
func (*MessageMediaWebPage) ImplementsMessageMedia()
type MessageObj ¶
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"`
PaidSuggestedPostStars bool `tl:"flag2:8,encoded_in_bitflags"`
PaidSuggestedPostTon bool `tl:"flag2:9,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"`
ReportDeliveryUntilDate int32 `tl:"flag2:5"`
PaidMessageStars int64 `tl:"flag2:6"`
SuggestedPost *SuggestedPost `tl:"flag2:7"`
ScheduleRepeatPeriod int32 `tl:"flag2:10"`
}
A message
func (*MessageObj) CRC ¶
func (*MessageObj) CRC() uint32
func (*MessageObj) FlagIndex ¶
func (*MessageObj) FlagIndex() int
func (*MessageObj) ImplementsMessage ¶
func (*MessageObj) ImplementsMessage()
type MessagePeerReaction ¶
type MessagePeerReaction struct {
Big bool `tl:"flag:0,encoded_in_bitflags"`
Unread bool `tl:"flag:1,encoded_in_bitflags"`
My bool `tl:"flag:2,encoded_in_bitflags"`
PeerID Peer
Date int32
Reaction Reaction
}
How a certain peer reacted to the message
func (*MessagePeerReaction) CRC ¶
func (*MessagePeerReaction) CRC() uint32
func (*MessagePeerReaction) FlagIndex ¶
func (*MessagePeerReaction) FlagIndex() int
type MessagePeerVote ¶
type MessagePeerVoteInputOption ¶
type MessagePeerVoteInputOption struct {
Peer Peer // The peer that voted for the queried `option`
Date int32 // When did the peer cast the vote
}
How a peer voted in a poll (reduced constructor, returned if an `option` was provided to messages.getPollVotes)
func (*MessagePeerVoteInputOption) CRC ¶
func (*MessagePeerVoteInputOption) CRC() uint32
func (*MessagePeerVoteInputOption) ImplementsMessagePeerVote ¶
func (*MessagePeerVoteInputOption) ImplementsMessagePeerVote()
type MessagePeerVoteMultiple ¶
type MessagePeerVoteMultiple struct {
Peer Peer // Peer ID
Options [][]byte // Options chosen by the peer
Date int32 // When did the peer cast their votes
}
How a peer voted in a multiple-choice poll
func (*MessagePeerVoteMultiple) CRC ¶
func (*MessagePeerVoteMultiple) CRC() uint32
func (*MessagePeerVoteMultiple) ImplementsMessagePeerVote ¶
func (*MessagePeerVoteMultiple) ImplementsMessagePeerVote()
type MessagePeerVoteObj ¶
type MessagePeerVoteObj struct {
Peer Peer // Peer ID
Option []byte // The option chosen by the peer
Date int32 // When did the peer cast the vote
}
How a peer voted in a poll
func (*MessagePeerVoteObj) CRC ¶
func (*MessagePeerVoteObj) CRC() uint32
func (*MessagePeerVoteObj) ImplementsMessagePeerVote ¶
func (*MessagePeerVoteObj) ImplementsMessagePeerVote()
type MessageRange ¶
Indicates a range of chat messages
func (*MessageRange) CRC ¶
func (*MessageRange) CRC() uint32
type MessageReactions ¶
type MessageReactions struct {
Min bool `tl:"flag:0,encoded_in_bitflags"`
CanSeeList bool `tl:"flag:2,encoded_in_bitflags"`
ReactionsAsTags bool `tl:"flag:3,encoded_in_bitflags"`
Results []*ReactionCount
RecentReactions []*MessagePeerReaction `tl:"flag:1"`
TopReactors []*MessageReactor `tl:"flag:4"`
}
Message reactions
func (*MessageReactions) CRC ¶
func (*MessageReactions) CRC() uint32
func (*MessageReactions) FlagIndex ¶
func (*MessageReactions) FlagIndex() int
type MessageReactor ¶
type MessageReactor struct {
Top bool `tl:"flag:0,encoded_in_bitflags"`
My bool `tl:"flag:1,encoded_in_bitflags"`
Anonymous bool `tl:"flag:2,encoded_in_bitflags"`
PeerID Peer `tl:"flag:3"`
Count int32
}
Info about a user in the paid Star reactions leaderboard for a message.
func (*MessageReactor) CRC ¶
func (*MessageReactor) CRC() uint32
func (*MessageReactor) FlagIndex ¶
func (*MessageReactor) FlagIndex() int
type MessageReplies ¶
type MessageReplies struct {
Comments bool `tl:"flag:0,encoded_in_bitflags"`
Replies int32
RepliesPts int32
RecentRepliers []Peer `tl:"flag:1"`
ChannelID int64 `tl:"flag:0"`
MaxID int32 `tl:"flag:2"`
ReadMaxID int32 `tl:"flag:3"`
}
Info about the comment section of a channel post, a simple message thread, a forum topic, or a direct messages topic (all features ultimately based on message threads).
func (*MessageReplies) CRC ¶
func (*MessageReplies) CRC() uint32
func (*MessageReplies) FlagIndex ¶
func (*MessageReplies) FlagIndex() int
type MessageReplyHeader ¶
type MessageReplyHeaderObj ¶
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).
Quote bool `tl:"flag:9,encoded_in_bitflags"` // Whether this message is quoting a part of another message.
ReplyToMsgID int32 `tl:"flag:4"` // ID of message to which this message is replying
ReplyToPeerID Peer `tl:"flag:0"` // For replies sent in channel discussion threads of which the current user is not a member, the discussion group ID
ReplyFrom *MessageFwdHeader `tl:"flag:5"` // When replying to a message sent by a certain peer to another chat, contains info about the peer that originally sent the message to that other chat.
ReplyMedia MessageMedia `tl:"flag:8"` // When replying to a media sent by a certain peer to another chat, contains the media of the replied-to message.
ReplyToTopID int32 `tl:"flag:1"` // ID of the message that started this message thread
QuoteText string `tl:"flag:6"` // Used to quote-reply to only a certain section (specified here) of the original message.
QuoteEntities []MessageEntity `tl:"flag:7"` // Message entities for styled text from the `quote_text` field.
QuoteOffset int32 `tl:"flag:10"` // Offset of the message `quote_text` within the original message (in UTF-16 code units).
TodoItemID int32 `tl:"flag:11"` // Can be set to reply to the specified item of a todo list.
}
Message replies and thread information
func (*MessageReplyHeaderObj) CRC ¶
func (*MessageReplyHeaderObj) CRC() uint32
func (*MessageReplyHeaderObj) FlagIndex ¶
func (*MessageReplyHeaderObj) FlagIndex() int
func (*MessageReplyHeaderObj) ImplementsMessageReplyHeader ¶
func (*MessageReplyHeaderObj) ImplementsMessageReplyHeader()
type MessageReplyStoryHeader ¶
Represents a reply to a story
func (*MessageReplyStoryHeader) CRC ¶
func (*MessageReplyStoryHeader) CRC() uint32
func (*MessageReplyStoryHeader) ImplementsMessageReplyHeader ¶
func (*MessageReplyStoryHeader) ImplementsMessageReplyHeader()
type MessageReportOption ¶
Report menu option
func (*MessageReportOption) CRC ¶
func (*MessageReportOption) CRC() uint32
type MessageService ¶
type MessageService struct {
Out bool `tl:"flag:1,encoded_in_bitflags"` // Whether the message is outgoing
Mentioned bool `tl:"flag:4,encoded_in_bitflags"` // Whether we were mentioned in the message
MediaUnread bool `tl:"flag:5,encoded_in_bitflags"` // Whether the message contains unread media
ReactionsArePossible bool `tl:"flag:9,encoded_in_bitflags"` // Whether you can react to this message.
Silent bool `tl:"flag:13,encoded_in_bitflags"` // Whether the message is silent
Post bool `tl:"flag:14,encoded_in_bitflags"` // Whether it's a channel post
Legacy bool `tl:"flag:19,encoded_in_bitflags"` // This is a legacy message: it has to be refetched with the new layer
ID int32 // Message ID
FromID Peer `tl:"flag:8"` // ID of the sender of this message
PeerID Peer // Sender of service message
SavedPeerID Peer `tl:"flag:28"` // Will only be set for service messages within a monoforum topic : `peer` will be equal to the ID of the monoforum and the `saved_peer_id` flag will be set to the ID of a topic.
ReplyTo MessageReplyHeader `tl:"flag:3"` // Reply (thread) information
Date int32 // Message date
Action MessageAction // Event connected with the service message
Reactions *MessageReactions `tl:"flag:20"` // Reactions.
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.
}
Indicates a service message
func (*MessageService) CRC ¶
func (*MessageService) CRC() uint32
func (*MessageService) FlagIndex ¶
func (*MessageService) FlagIndex() int
func (*MessageService) ImplementsMessage ¶
func (*MessageService) ImplementsMessage()
type MessageViews ¶
type MessageViews struct {
Views int32 `tl:"flag:0"`
Forwards int32 `tl:"flag:1"`
Replies *MessageReplies `tl:"flag:2"`
}
View, forward counter + info about replies of a specific message
func (*MessageViews) CRC ¶
func (*MessageViews) CRC() uint32
func (*MessageViews) FlagIndex ¶
func (*MessageViews) FlagIndex() int
type MessagesAcceptEncryptionParams ¶
type MessagesAcceptEncryptionParams struct {
Peer *InputEncryptedChat
GB []byte
KeyFingerprint int64
}
func (*MessagesAcceptEncryptionParams) CRC ¶
func (*MessagesAcceptEncryptionParams) CRC() uint32
type MessagesAcceptURLAuthParams ¶
type MessagesAcceptURLAuthParams struct {
WriteAllowed bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputPeer `tl:"flag:1"`
MsgID int32 `tl:"flag:1"`
ButtonID int32 `tl:"flag:1"`
URL string `tl:"flag:2"`
}
func (*MessagesAcceptURLAuthParams) CRC ¶
func (*MessagesAcceptURLAuthParams) CRC() uint32
func (*MessagesAcceptURLAuthParams) FlagIndex ¶
func (*MessagesAcceptURLAuthParams) FlagIndex() int
type MessagesAddChatUserParams ¶
func (*MessagesAddChatUserParams) CRC ¶
func (*MessagesAddChatUserParams) CRC() uint32
type MessagesAffectedFoundMessages ¶
type MessagesAffectedFoundMessages struct {
Pts int32
PtsCount int32
Offset int32
Messages []int32
}
Messages found and affected by changes
func (*MessagesAffectedFoundMessages) CRC ¶
func (*MessagesAffectedFoundMessages) CRC() uint32
type MessagesAffectedHistory ¶
Affected part of communication history with the user or in a chat.
func (*MessagesAffectedHistory) CRC ¶
func (*MessagesAffectedHistory) CRC() uint32
type MessagesAffectedMessages ¶
Events affected by operation
func (*MessagesAffectedMessages) CRC ¶
func (*MessagesAffectedMessages) CRC() uint32
type MessagesAllStickers ¶
type MessagesAllStickersNotModified ¶
type MessagesAllStickersNotModified struct{}
Info about all installed stickers hasn't changed
func (*MessagesAllStickersNotModified) CRC ¶
func (*MessagesAllStickersNotModified) CRC() uint32
func (*MessagesAllStickersNotModified) ImplementsMessagesAllStickers ¶
func (*MessagesAllStickersNotModified) ImplementsMessagesAllStickers()
type MessagesAllStickersObj ¶
type MessagesAllStickersObj struct {
Hash int64 // Hash used for caching, for more info click here
Sets []*StickerSet // All stickersets
}
Info about all installed stickers
func (*MessagesAllStickersObj) CRC ¶
func (*MessagesAllStickersObj) CRC() uint32
func (*MessagesAllStickersObj) ImplementsMessagesAllStickers ¶
func (*MessagesAllStickersObj) ImplementsMessagesAllStickers()
type MessagesAppendTodoListParams ¶ added in v1.6.1
func (*MessagesAppendTodoListParams) CRC ¶ added in v1.6.1
func (*MessagesAppendTodoListParams) CRC() uint32
type MessagesArchivedStickers ¶
type MessagesArchivedStickers struct {
Count int32
Sets []StickerSetCovered
}
Archived stickersets
func (*MessagesArchivedStickers) CRC ¶
func (*MessagesArchivedStickers) CRC() uint32
type MessagesAvailableEffectsNotModified ¶
type MessagesAvailableEffectsNotModified struct{}
The full list of usable animated message effects hasn't changed.
func (*MessagesAvailableEffectsNotModified) CRC ¶
func (*MessagesAvailableEffectsNotModified) CRC() uint32
func (*MessagesAvailableEffectsNotModified) ImplementsMessagesAvailableEffects ¶
func (*MessagesAvailableEffectsNotModified) ImplementsMessagesAvailableEffects()
type MessagesAvailableEffectsObj ¶
type MessagesAvailableEffectsObj struct {
Hash int32 // Hash used for caching, for more info click here
Effects []*AvailableEffect // Message effects
Documents []Document // Documents specified in the `effects` constructors.
}
The full list of usable animated message effects.
func (*MessagesAvailableEffectsObj) CRC ¶
func (*MessagesAvailableEffectsObj) CRC() uint32
func (*MessagesAvailableEffectsObj) ImplementsMessagesAvailableEffects ¶
func (*MessagesAvailableEffectsObj) ImplementsMessagesAvailableEffects()
type MessagesAvailableReactionsNotModified ¶
type MessagesAvailableReactionsNotModified struct{}
No new reactions are available
func (*MessagesAvailableReactionsNotModified) CRC ¶
func (*MessagesAvailableReactionsNotModified) CRC() uint32
func (*MessagesAvailableReactionsNotModified) ImplementsMessagesAvailableReactions ¶
func (*MessagesAvailableReactionsNotModified) ImplementsMessagesAvailableReactions()
type MessagesAvailableReactionsObj ¶
type MessagesAvailableReactionsObj struct {
Hash int32 // Hash used for caching, for more info click here
Reactions []*AvailableReaction // Animations and metadata associated with message reactions
}
Animations and metadata associated with message reactions
func (*MessagesAvailableReactionsObj) CRC ¶
func (*MessagesAvailableReactionsObj) CRC() uint32
func (*MessagesAvailableReactionsObj) ImplementsMessagesAvailableReactions ¶
func (*MessagesAvailableReactionsObj) ImplementsMessagesAvailableReactions()
type MessagesBotApp ¶
type MessagesBotApp struct {
Inactive bool `tl:"flag:0,encoded_in_bitflags"`
RequestWriteAccess bool `tl:"flag:1,encoded_in_bitflags"`
HasSettings bool `tl:"flag:2,encoded_in_bitflags"`
App BotApp
}
Contains information about a direct link Mini App
func (*MessagesBotApp) CRC ¶
func (*MessagesBotApp) CRC() uint32
func (*MessagesBotApp) FlagIndex ¶
func (*MessagesBotApp) FlagIndex() int
type MessagesBotCallbackAnswer ¶
type MessagesBotCallbackAnswer struct {
Alert bool `tl:"flag:1,encoded_in_bitflags"`
HasURL bool `tl:"flag:3,encoded_in_bitflags"`
NativeUi bool `tl:"flag:4,encoded_in_bitflags"`
Message string `tl:"flag:0"`
URL string `tl:"flag:2"`
CacheTime int32
}
Callback answer sent by the bot in response to a button press
func (*MessagesBotCallbackAnswer) CRC ¶
func (*MessagesBotCallbackAnswer) CRC() uint32
func (*MessagesBotCallbackAnswer) FlagIndex ¶
func (*MessagesBotCallbackAnswer) FlagIndex() int
type MessagesBotPreparedInlineMessage ¶ added in v1.4.2
Represents a prepared inline message saved by a bot, to be sent to the user via a web app
func (*MessagesBotPreparedInlineMessage) CRC ¶ added in v1.4.2
func (*MessagesBotPreparedInlineMessage) CRC() uint32
type MessagesBotResults ¶
type MessagesBotResults struct {
Gallery bool `tl:"flag:0,encoded_in_bitflags"`
QueryID int64
NextOffset string `tl:"flag:1"`
SwitchPm *InlineBotSwitchPm `tl:"flag:2"`
SwitchWebview *InlineBotWebView `tl:"flag:3"`
Results []BotInlineResult
CacheTime int32
Users []User
}
Result of a query to an inline bot
func (*MessagesBotResults) CRC ¶
func (*MessagesBotResults) CRC() uint32
func (*MessagesBotResults) FlagIndex ¶
func (*MessagesBotResults) FlagIndex() int
type MessagesChannelMessages ¶
type MessagesChannelMessages struct {
Inexact bool `tl:"flag:1,encoded_in_bitflags"` // If set, returned results may be inexact
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}`.
Messages []Message // Found messages
Topics []ForumTopic // Forum topic information
Chats []Chat // Chats
Users []User // Users
}
Channel messages
func (*MessagesChannelMessages) CRC ¶
func (*MessagesChannelMessages) CRC() uint32
func (*MessagesChannelMessages) FlagIndex ¶
func (*MessagesChannelMessages) FlagIndex() int
func (*MessagesChannelMessages) ImplementsMessagesMessages ¶
func (*MessagesChannelMessages) ImplementsMessagesMessages()
type MessagesChatAdminsWithInvites ¶
type MessagesChatAdminsWithInvites struct {
Admins []*ChatAdminWithInvites
Users []User
}
Info about chat invites generated by admins.
func (*MessagesChatAdminsWithInvites) CRC ¶
func (*MessagesChatAdminsWithInvites) CRC() uint32
type MessagesChatFull ¶
Full info about a channel, supergroup, gigagroup or basic group.
func (*MessagesChatFull) CRC ¶
func (*MessagesChatFull) CRC() uint32
type MessagesChatInviteImporters ¶
type MessagesChatInviteImporters struct {
Count int32
Importers []*ChatInviteImporter
Users []User
}
Info about the users that joined the chat using a specific chat invite
func (*MessagesChatInviteImporters) CRC ¶
func (*MessagesChatInviteImporters) CRC() uint32
type MessagesChats ¶
type MessagesChatsObj ¶
type MessagesChatsObj struct {
Chats []Chat // List of chats
}
List of chats with auxiliary data.
func (*MessagesChatsObj) CRC ¶
func (*MessagesChatsObj) CRC() uint32
func (*MessagesChatsObj) ImplementsMessagesChats ¶
func (*MessagesChatsObj) ImplementsMessagesChats()
type MessagesChatsSlice ¶
type MessagesChatsSlice struct {
Count int32 // Total number of results that were found server-side (not all are included in `chats`)
Chats []Chat // Chats
}
Partial list of chats, more would have to be fetched with pagination
func (*MessagesChatsSlice) CRC ¶
func (*MessagesChatsSlice) CRC() uint32
func (*MessagesChatsSlice) ImplementsMessagesChats ¶
func (*MessagesChatsSlice) ImplementsMessagesChats()
type MessagesCheckChatInviteParams ¶
type MessagesCheckChatInviteParams struct {
Hash string
}
func (*MessagesCheckChatInviteParams) CRC ¶
func (*MessagesCheckChatInviteParams) CRC() uint32
type MessagesCheckHistoryImportParams ¶
type MessagesCheckHistoryImportParams struct {
ImportHead string
}
func (*MessagesCheckHistoryImportParams) CRC ¶
func (*MessagesCheckHistoryImportParams) CRC() uint32
type MessagesCheckHistoryImportPeerParams ¶
type MessagesCheckHistoryImportPeerParams struct {
Peer InputPeer
}
func (*MessagesCheckHistoryImportPeerParams) CRC ¶
func (*MessagesCheckHistoryImportPeerParams) CRC() uint32
type MessagesCheckQuickReplyShortcutParams ¶
type MessagesCheckQuickReplyShortcutParams struct {
Shortcut string
}
func (*MessagesCheckQuickReplyShortcutParams) CRC ¶
func (*MessagesCheckQuickReplyShortcutParams) CRC() uint32
type MessagesCheckedHistoryImportPeer ¶
type MessagesCheckedHistoryImportPeer struct {
ConfirmText string
}
Contains a confirmation text to be shown to the user, upon importing chat history, click here for more info.
func (*MessagesCheckedHistoryImportPeer) CRC ¶
func (*MessagesCheckedHistoryImportPeer) CRC() uint32
type MessagesClearAllDraftsParams ¶
type MessagesClearAllDraftsParams struct{}
func (*MessagesClearAllDraftsParams) CRC ¶
func (*MessagesClearAllDraftsParams) CRC() uint32
type MessagesClearRecentReactionsParams ¶
type MessagesClearRecentReactionsParams struct{}
func (*MessagesClearRecentReactionsParams) CRC ¶
func (*MessagesClearRecentReactionsParams) CRC() uint32
type MessagesClearRecentStickersParams ¶
type MessagesClearRecentStickersParams struct {
Attached bool `tl:"flag:0,encoded_in_bitflags"`
}
func (*MessagesClearRecentStickersParams) CRC ¶
func (*MessagesClearRecentStickersParams) CRC() uint32
func (*MessagesClearRecentStickersParams) FlagIndex ¶
func (*MessagesClearRecentStickersParams) FlagIndex() int
type MessagesClickSponsoredMessageParams ¶ added in v1.3.21
type MessagesClickSponsoredMessageParams struct {
Media bool `tl:"flag:0,encoded_in_bitflags"`
Fullscreen bool `tl:"flag:1,encoded_in_bitflags"`
RandomID []byte
}
func (*MessagesClickSponsoredMessageParams) CRC ¶ added in v1.3.21
func (*MessagesClickSponsoredMessageParams) CRC() uint32
func (*MessagesClickSponsoredMessageParams) FlagIndex ¶ added in v1.3.21
func (*MessagesClickSponsoredMessageParams) FlagIndex() int
type MessagesCreateChatParams ¶
type MessagesCreateChatParams struct {
Users []InputUser
Title string
TtlPeriod int32 `tl:"flag:0"`
}
func (*MessagesCreateChatParams) CRC ¶
func (*MessagesCreateChatParams) CRC() uint32
func (*MessagesCreateChatParams) FlagIndex ¶
func (*MessagesCreateChatParams) FlagIndex() int
type MessagesCreateForumTopicParams ¶ added in v1.6.3
type MessagesCreateForumTopicParams struct {
TitleMissing bool `tl:"flag:4,encoded_in_bitflags"`
Peer InputPeer
Title string
IconColor int32 `tl:"flag:0"`
IconEmojiID int64 `tl:"flag:3"`
RandomID int64
SendAs InputPeer `tl:"flag:2"`
}
func (*MessagesCreateForumTopicParams) CRC ¶ added in v1.6.3
func (*MessagesCreateForumTopicParams) CRC() uint32
func (*MessagesCreateForumTopicParams) FlagIndex ¶ added in v1.6.3
func (*MessagesCreateForumTopicParams) FlagIndex() int
type MessagesDeleteChatParams ¶
type MessagesDeleteChatParams struct {
ChatID int64
}
func (*MessagesDeleteChatParams) CRC ¶
func (*MessagesDeleteChatParams) CRC() uint32
type MessagesDeleteChatUserParams ¶
type MessagesDeleteChatUserParams struct {
RevokeHistory bool `tl:"flag:0,encoded_in_bitflags"`
ChatID int64
UserID InputUser
}
func (*MessagesDeleteChatUserParams) CRC ¶
func (*MessagesDeleteChatUserParams) CRC() uint32
func (*MessagesDeleteChatUserParams) FlagIndex ¶
func (*MessagesDeleteChatUserParams) FlagIndex() int
type MessagesDeleteExportedChatInviteParams ¶
func (*MessagesDeleteExportedChatInviteParams) CRC ¶
func (*MessagesDeleteExportedChatInviteParams) CRC() uint32
type MessagesDeleteFactCheckParams ¶
func (*MessagesDeleteFactCheckParams) CRC ¶
func (*MessagesDeleteFactCheckParams) CRC() uint32
type MessagesDeleteHistoryParams ¶
type MessagesDeleteHistoryParams struct {
JustClear bool `tl:"flag:0,encoded_in_bitflags"`
Revoke bool `tl:"flag:1,encoded_in_bitflags"`
Peer InputPeer
MaxID int32
MinDate int32 `tl:"flag:2"`
MaxDate int32 `tl:"flag:3"`
}
func (*MessagesDeleteHistoryParams) CRC ¶
func (*MessagesDeleteHistoryParams) CRC() uint32
func (*MessagesDeleteHistoryParams) FlagIndex ¶
func (*MessagesDeleteHistoryParams) FlagIndex() int
type MessagesDeleteMessagesParams ¶
type MessagesDeleteMessagesParams struct {
Revoke bool `tl:"flag:0,encoded_in_bitflags"`
ID []int32
}
func (*MessagesDeleteMessagesParams) CRC ¶
func (*MessagesDeleteMessagesParams) CRC() uint32
func (*MessagesDeleteMessagesParams) FlagIndex ¶
func (*MessagesDeleteMessagesParams) FlagIndex() int
type MessagesDeletePhoneCallHistoryParams ¶
type MessagesDeletePhoneCallHistoryParams struct {
Revoke bool `tl:"flag:0,encoded_in_bitflags"`
}
func (*MessagesDeletePhoneCallHistoryParams) CRC ¶
func (*MessagesDeletePhoneCallHistoryParams) CRC() uint32
func (*MessagesDeletePhoneCallHistoryParams) FlagIndex ¶
func (*MessagesDeletePhoneCallHistoryParams) FlagIndex() int
type MessagesDeleteQuickReplyMessagesParams ¶
func (*MessagesDeleteQuickReplyMessagesParams) CRC ¶
func (*MessagesDeleteQuickReplyMessagesParams) CRC() uint32
type MessagesDeleteQuickReplyShortcutParams ¶
type MessagesDeleteQuickReplyShortcutParams struct {
ShortcutID int32
}
func (*MessagesDeleteQuickReplyShortcutParams) CRC ¶
func (*MessagesDeleteQuickReplyShortcutParams) CRC() uint32
type MessagesDeleteRevokedExportedChatInvitesParams ¶
func (*MessagesDeleteRevokedExportedChatInvitesParams) CRC ¶
func (*MessagesDeleteRevokedExportedChatInvitesParams) CRC() uint32
type MessagesDeleteSavedHistoryParams ¶
type MessagesDeleteSavedHistoryParams struct {
ParentPeer InputPeer `tl:"flag:0"`
Peer InputPeer
MaxID int32
MinDate int32 `tl:"flag:2"`
MaxDate int32 `tl:"flag:3"`
}
func (*MessagesDeleteSavedHistoryParams) CRC ¶
func (*MessagesDeleteSavedHistoryParams) CRC() uint32
func (*MessagesDeleteSavedHistoryParams) FlagIndex ¶
func (*MessagesDeleteSavedHistoryParams) FlagIndex() int
type MessagesDeleteScheduledMessagesParams ¶
func (*MessagesDeleteScheduledMessagesParams) CRC ¶
func (*MessagesDeleteScheduledMessagesParams) CRC() uint32
type MessagesDeleteTopicHistoryParams ¶ added in v1.6.3
func (*MessagesDeleteTopicHistoryParams) CRC ¶ added in v1.6.3
func (*MessagesDeleteTopicHistoryParams) CRC() uint32
type MessagesDhConfig ¶
type MessagesDhConfigNotModified ¶
type MessagesDhConfigNotModified struct {
Random []byte // Random sequence of bytes of assigned length
}
Configuring parameters did not change.
func (*MessagesDhConfigNotModified) CRC ¶
func (*MessagesDhConfigNotModified) CRC() uint32
func (*MessagesDhConfigNotModified) ImplementsMessagesDhConfig ¶
func (*MessagesDhConfigNotModified) ImplementsMessagesDhConfig()
type MessagesDhConfigObj ¶
type MessagesDhConfigObj struct {
G int32 // New value prime, see Wikipedia
P []byte // New value primitive root, see Wikipedia
Version int32 // Version of set of parameters
Random []byte // Random sequence of bytes of assigned length
}
New set of configuring parameters.
func (*MessagesDhConfigObj) CRC ¶
func (*MessagesDhConfigObj) CRC() uint32
func (*MessagesDhConfigObj) ImplementsMessagesDhConfig ¶
func (*MessagesDhConfigObj) ImplementsMessagesDhConfig()
type MessagesDialogFilters ¶
type MessagesDialogFilters struct {
TagsEnabled bool `tl:"flag:0,encoded_in_bitflags"`
Filters []DialogFilter
}
Folder and folder tags information
func (*MessagesDialogFilters) CRC ¶
func (*MessagesDialogFilters) CRC() uint32
func (*MessagesDialogFilters) FlagIndex ¶
func (*MessagesDialogFilters) FlagIndex() int
type MessagesDialogs ¶
type MessagesDialogsNotModified ¶
type MessagesDialogsNotModified struct {
Count int32 // Number of dialogs found server-side by the query
}
Dialogs haven't changed
func (*MessagesDialogsNotModified) CRC ¶
func (*MessagesDialogsNotModified) CRC() uint32
func (*MessagesDialogsNotModified) ImplementsMessagesDialogs ¶
func (*MessagesDialogsNotModified) ImplementsMessagesDialogs()
type MessagesDialogsObj ¶
type MessagesDialogsObj struct {
Dialogs []Dialog // List of chats
Messages []Message // List of last messages from each chat
Chats []Chat // List of groups mentioned in the chats
Users []User // List of users mentioned in messages and groups
}
Full list of chats with messages and auxiliary data.
func (*MessagesDialogsObj) CRC ¶
func (*MessagesDialogsObj) CRC() uint32
func (*MessagesDialogsObj) ImplementsMessagesDialogs ¶
func (*MessagesDialogsObj) ImplementsMessagesDialogs()
type MessagesDialogsSlice ¶
type MessagesDialogsSlice struct {
Count int32 // Total number of dialogs
Dialogs []Dialog // List of dialogs
Messages []Message // List of last messages from dialogs
Chats []Chat // List of chats mentioned in dialogs
Users []User // List of users mentioned in messages and chats
}
Incomplete list of dialogs with messages and auxiliary data.
func (*MessagesDialogsSlice) CRC ¶
func (*MessagesDialogsSlice) CRC() uint32
func (*MessagesDialogsSlice) ImplementsMessagesDialogs ¶
func (*MessagesDialogsSlice) ImplementsMessagesDialogs()
type MessagesDiscardEncryptionParams ¶
type MessagesDiscardEncryptionParams struct {
DeleteHistory bool `tl:"flag:0,encoded_in_bitflags"`
ChatID int32
}
func (*MessagesDiscardEncryptionParams) CRC ¶
func (*MessagesDiscardEncryptionParams) CRC() uint32
func (*MessagesDiscardEncryptionParams) FlagIndex ¶
func (*MessagesDiscardEncryptionParams) FlagIndex() int
type MessagesDiscussionMessage ¶
type MessagesDiscussionMessage struct {
Messages []Message
MaxID int32 `tl:"flag:0"`
ReadInboxMaxID int32 `tl:"flag:1"`
ReadOutboxMaxID int32 `tl:"flag:2"`
UnreadCount int32
Chats []Chat
Users []User
}
Information about a message thread
func (*MessagesDiscussionMessage) CRC ¶
func (*MessagesDiscussionMessage) CRC() uint32
func (*MessagesDiscussionMessage) FlagIndex ¶
func (*MessagesDiscussionMessage) FlagIndex() int
type MessagesEditChatAboutParams ¶
func (*MessagesEditChatAboutParams) CRC ¶
func (*MessagesEditChatAboutParams) CRC() uint32
type MessagesEditChatAdminParams ¶
func (*MessagesEditChatAdminParams) CRC ¶
func (*MessagesEditChatAdminParams) CRC() uint32
type MessagesEditChatDefaultBannedRightsParams ¶
type MessagesEditChatDefaultBannedRightsParams struct {
Peer InputPeer
BannedRights *ChatBannedRights
}
func (*MessagesEditChatDefaultBannedRightsParams) CRC ¶
func (*MessagesEditChatDefaultBannedRightsParams) CRC() uint32
type MessagesEditChatPhotoParams ¶
type MessagesEditChatPhotoParams struct {
ChatID int64
Photo InputChatPhoto
}
func (*MessagesEditChatPhotoParams) CRC ¶
func (*MessagesEditChatPhotoParams) CRC() uint32
type MessagesEditChatTitleParams ¶
func (*MessagesEditChatTitleParams) CRC ¶
func (*MessagesEditChatTitleParams) CRC() uint32
type MessagesEditExportedChatInviteParams ¶
type MessagesEditExportedChatInviteParams struct {
Revoked bool `tl:"flag:2,encoded_in_bitflags"`
Peer InputPeer
Link string
ExpireDate int32 `tl:"flag:0"`
UsageLimit int32 `tl:"flag:1"`
RequestNeeded bool `tl:"flag:3"`
Title string `tl:"flag:4"`
}
func (*MessagesEditExportedChatInviteParams) CRC ¶
func (*MessagesEditExportedChatInviteParams) CRC() uint32
func (*MessagesEditExportedChatInviteParams) FlagIndex ¶
func (*MessagesEditExportedChatInviteParams) FlagIndex() int
type MessagesEditFactCheckParams ¶
type MessagesEditFactCheckParams struct {
Peer InputPeer
MsgID int32
Text *TextWithEntities
}
func (*MessagesEditFactCheckParams) CRC ¶
func (*MessagesEditFactCheckParams) CRC() uint32
type MessagesEditForumTopicParams ¶ added in v1.6.3
type MessagesEditForumTopicParams struct {
Peer InputPeer
TopicID int32
Title string `tl:"flag:0"`
IconEmojiID int64 `tl:"flag:1"`
Closed bool `tl:"flag:2"`
Hidden bool `tl:"flag:3"`
}
func (*MessagesEditForumTopicParams) CRC ¶ added in v1.6.3
func (*MessagesEditForumTopicParams) CRC() uint32
func (*MessagesEditForumTopicParams) FlagIndex ¶ added in v1.6.3
func (*MessagesEditForumTopicParams) FlagIndex() int
type MessagesEditInlineBotMessageParams ¶
type MessagesEditInlineBotMessageParams struct {
NoWebpage bool `tl:"flag:1,encoded_in_bitflags"`
InvertMedia bool `tl:"flag:16,encoded_in_bitflags"`
ID InputBotInlineMessageID
Message string `tl:"flag:11"`
Media InputMedia `tl:"flag:14"`
ReplyMarkup ReplyMarkup `tl:"flag:2"`
Entities []MessageEntity `tl:"flag:3"`
}
func (*MessagesEditInlineBotMessageParams) CRC ¶
func (*MessagesEditInlineBotMessageParams) CRC() uint32
func (*MessagesEditInlineBotMessageParams) FlagIndex ¶
func (*MessagesEditInlineBotMessageParams) FlagIndex() int
type MessagesEditMessageParams ¶
type MessagesEditMessageParams struct {
NoWebpage bool `tl:"flag:1,encoded_in_bitflags"`
InvertMedia bool `tl:"flag:16,encoded_in_bitflags"`
Peer InputPeer
ID int32
Message string `tl:"flag:11"`
Media InputMedia `tl:"flag:14"`
ReplyMarkup ReplyMarkup `tl:"flag:2"`
Entities []MessageEntity `tl:"flag:3"`
ScheduleDate int32 `tl:"flag:15"`
ScheduleRepeatPeriod int32 `tl:"flag:18"`
QuickReplyShortcutID int32 `tl:"flag:17"`
}
func (*MessagesEditMessageParams) CRC ¶
func (*MessagesEditMessageParams) CRC() uint32
func (*MessagesEditMessageParams) FlagIndex ¶
func (*MessagesEditMessageParams) FlagIndex() int
type MessagesEditQuickReplyShortcutParams ¶
func (*MessagesEditQuickReplyShortcutParams) CRC ¶
func (*MessagesEditQuickReplyShortcutParams) CRC() uint32
type MessagesEmojiGroups ¶
type MessagesEmojiGroupsNotModified ¶
type MessagesEmojiGroupsNotModified struct{}
The list of emoji categories hasn't changed.
func (*MessagesEmojiGroupsNotModified) CRC ¶
func (*MessagesEmojiGroupsNotModified) CRC() uint32
func (*MessagesEmojiGroupsNotModified) ImplementsMessagesEmojiGroups ¶
func (*MessagesEmojiGroupsNotModified) ImplementsMessagesEmojiGroups()
type MessagesEmojiGroupsObj ¶
type MessagesEmojiGroupsObj struct {
Hash int32 // Hash used for caching, for more info click here
Groups []EmojiGroup // A list of emoji categories.
}
Represents a list of emoji categories.
func (*MessagesEmojiGroupsObj) CRC ¶
func (*MessagesEmojiGroupsObj) CRC() uint32
func (*MessagesEmojiGroupsObj) ImplementsMessagesEmojiGroups ¶
func (*MessagesEmojiGroupsObj) ImplementsMessagesEmojiGroups()
type MessagesExportChatInviteParams ¶
type MessagesExportChatInviteParams struct {
LegacyRevokePermanent bool `tl:"flag:2,encoded_in_bitflags"`
RequestNeeded bool `tl:"flag:3,encoded_in_bitflags"`
Peer InputPeer
ExpireDate int32 `tl:"flag:0"`
UsageLimit int32 `tl:"flag:1"`
Title string `tl:"flag:4"`
SubscriptionPricing *StarsSubscriptionPricing `tl:"flag:5"`
}
func (*MessagesExportChatInviteParams) CRC ¶
func (*MessagesExportChatInviteParams) CRC() uint32
func (*MessagesExportChatInviteParams) FlagIndex ¶
func (*MessagesExportChatInviteParams) FlagIndex() int
type MessagesExportedChatInviteObj ¶
type MessagesExportedChatInviteObj struct {
Invite ExportedChatInvite // Info about the chat invite
Users []User // Mentioned users
}
Info about a chat invite
func (*MessagesExportedChatInviteObj) CRC ¶
func (*MessagesExportedChatInviteObj) CRC() uint32
func (*MessagesExportedChatInviteObj) ImplementsMessagesExportedChatInvite ¶
func (*MessagesExportedChatInviteObj) ImplementsMessagesExportedChatInvite()
type MessagesExportedChatInviteReplaced ¶
type MessagesExportedChatInviteReplaced struct {
Invite ExportedChatInvite // The replaced chat invite
NewInvite ExportedChatInvite // The invite that replaces the previous invite
Users []User // Mentioned users
}
The specified chat invite was replaced with another one
func (*MessagesExportedChatInviteReplaced) CRC ¶
func (*MessagesExportedChatInviteReplaced) CRC() uint32
func (*MessagesExportedChatInviteReplaced) ImplementsMessagesExportedChatInvite ¶
func (*MessagesExportedChatInviteReplaced) ImplementsMessagesExportedChatInvite()
type MessagesExportedChatInvites ¶
type MessagesExportedChatInvites struct {
Count int32
Invites []ExportedChatInvite
Users []User
}
Info about chat invites exported by a certain admin.
func (*MessagesExportedChatInvites) CRC ¶
func (*MessagesExportedChatInvites) CRC() uint32
type MessagesFaveStickerParams ¶
type MessagesFaveStickerParams struct {
ID InputDocument
Unfave bool
}
func (*MessagesFaveStickerParams) CRC ¶
func (*MessagesFaveStickerParams) CRC() uint32
type MessagesFavedStickers ¶
type MessagesFavedStickersNotModified ¶
type MessagesFavedStickersNotModified struct{}
No new favorited stickers were found
func (*MessagesFavedStickersNotModified) CRC ¶
func (*MessagesFavedStickersNotModified) CRC() uint32
func (*MessagesFavedStickersNotModified) ImplementsMessagesFavedStickers ¶
func (*MessagesFavedStickersNotModified) ImplementsMessagesFavedStickers()
type MessagesFavedStickersObj ¶
type MessagesFavedStickersObj struct {
Hash int64 // Hash used for caching, for more info click here
Packs []*StickerPack // Emojis associated to stickers
Stickers []Document // Favorited stickers
}
Favorited stickers
func (*MessagesFavedStickersObj) CRC ¶
func (*MessagesFavedStickersObj) CRC() uint32
func (*MessagesFavedStickersObj) ImplementsMessagesFavedStickers ¶
func (*MessagesFavedStickersObj) ImplementsMessagesFavedStickers()
type MessagesFeaturedStickersNotModified ¶
type MessagesFeaturedStickersNotModified struct {
Count int32 // Total number of featured stickers
}
Featured stickers haven't changed
func (*MessagesFeaturedStickersNotModified) CRC ¶
func (*MessagesFeaturedStickersNotModified) CRC() uint32
func (*MessagesFeaturedStickersNotModified) ImplementsMessagesFeaturedStickers ¶
func (*MessagesFeaturedStickersNotModified) ImplementsMessagesFeaturedStickers()
type MessagesFeaturedStickersObj ¶
type MessagesFeaturedStickersObj struct {
Premium bool `tl:"flag:0,encoded_in_bitflags"` // Whether this is a premium stickerset
Hash int64 // Hash used for caching, for more info click here
Count int32 // Total number of featured stickers
Sets []StickerSetCovered // Featured stickersets
Unread []int64 // IDs of new featured stickersets
}
Featured stickersets
func (*MessagesFeaturedStickersObj) CRC ¶
func (*MessagesFeaturedStickersObj) CRC() uint32
func (*MessagesFeaturedStickersObj) FlagIndex ¶
func (*MessagesFeaturedStickersObj) FlagIndex() int
func (*MessagesFeaturedStickersObj) ImplementsMessagesFeaturedStickers ¶
func (*MessagesFeaturedStickersObj) ImplementsMessagesFeaturedStickers()
type MessagesFilter ¶
type MessagesForumTopics ¶
type MessagesForumTopics struct {
OrderByCreateDate bool `tl:"flag:0,encoded_in_bitflags"`
Count int32
Topics []ForumTopic
Messages []Message
Chats []Chat
Users []User
Pts int32
}
Contains information about multiple forum topics
func (*MessagesForumTopics) CRC ¶
func (*MessagesForumTopics) CRC() uint32
func (*MessagesForumTopics) FlagIndex ¶
func (*MessagesForumTopics) FlagIndex() int
type MessagesForwardMessagesParams ¶
type MessagesForwardMessagesParams struct {
Silent bool `tl:"flag:5,encoded_in_bitflags"`
Background bool `tl:"flag:6,encoded_in_bitflags"`
WithMyScore bool `tl:"flag:8,encoded_in_bitflags"`
DropAuthor bool `tl:"flag:11,encoded_in_bitflags"`
DropMediaCaptions bool `tl:"flag:12,encoded_in_bitflags"`
Noforwards bool `tl:"flag:14,encoded_in_bitflags"`
AllowPaidFloodskip bool `tl:"flag:19,encoded_in_bitflags"`
FromPeer InputPeer
ID []int32
RandomID []int64
ToPeer InputPeer
TopMsgID int32 `tl:"flag:9"`
ReplyTo InputReplyTo `tl:"flag:22"`
ScheduleDate int32 `tl:"flag:10"`
ScheduleRepeatPeriod int32 `tl:"flag:24"`
SendAs InputPeer `tl:"flag:13"`
QuickReplyShortcut InputQuickReplyShortcut `tl:"flag:17"`
Effect int64 `tl:"flag:18"`
VideoTimestamp int32 `tl:"flag:20"`
AllowPaidStars int64 `tl:"flag:21"`
SuggestedPost *SuggestedPost `tl:"flag:23"`
}
func (*MessagesForwardMessagesParams) CRC ¶
func (*MessagesForwardMessagesParams) CRC() uint32
func (*MessagesForwardMessagesParams) FlagIndex ¶
func (*MessagesForwardMessagesParams) FlagIndex() int
type MessagesFoundStickerSetsNotModified ¶
type MessagesFoundStickerSetsNotModified struct{}
No further results were found
func (*MessagesFoundStickerSetsNotModified) CRC ¶
func (*MessagesFoundStickerSetsNotModified) CRC() uint32
func (*MessagesFoundStickerSetsNotModified) ImplementsMessagesFoundStickerSets ¶
func (*MessagesFoundStickerSetsNotModified) ImplementsMessagesFoundStickerSets()
type MessagesFoundStickerSetsObj ¶
type MessagesFoundStickerSetsObj struct {
Hash int64 // Hash used for caching, for more info click here
Sets []StickerSetCovered // Found stickersets
}
Found stickersets
func (*MessagesFoundStickerSetsObj) CRC ¶
func (*MessagesFoundStickerSetsObj) CRC() uint32
func (*MessagesFoundStickerSetsObj) ImplementsMessagesFoundStickerSets ¶
func (*MessagesFoundStickerSetsObj) ImplementsMessagesFoundStickerSets()
type MessagesFoundStickers ¶ added in v1.4.4
type MessagesFoundStickersNotModified ¶ added in v1.4.4
type MessagesFoundStickersNotModified struct {
NextOffset int32 `tl:"flag:0"` // Offset for pagination
}
No new stickers were found for the specified query
func (*MessagesFoundStickersNotModified) CRC ¶ added in v1.4.4
func (*MessagesFoundStickersNotModified) CRC() uint32
func (*MessagesFoundStickersNotModified) FlagIndex ¶ added in v1.4.4
func (*MessagesFoundStickersNotModified) FlagIndex() int
func (*MessagesFoundStickersNotModified) ImplementsMessagesFoundStickers ¶ added in v1.4.4
func (*MessagesFoundStickersNotModified) ImplementsMessagesFoundStickers()
type MessagesFoundStickersObj ¶ added in v1.4.4
type MessagesFoundStickersObj struct {
NextOffset int32 `tl:"flag:0"` // Offset for pagination
Hash int64 // Hash used for caching, for more info click here
Stickers []Document // Found stickers
}
Found stickers
func (*MessagesFoundStickersObj) CRC ¶ added in v1.4.4
func (*MessagesFoundStickersObj) CRC() uint32
func (*MessagesFoundStickersObj) FlagIndex ¶ added in v1.4.4
func (*MessagesFoundStickersObj) FlagIndex() int
func (*MessagesFoundStickersObj) ImplementsMessagesFoundStickers ¶ added in v1.4.4
func (*MessagesFoundStickersObj) ImplementsMessagesFoundStickers()
type MessagesGetAdminsWithInvitesParams ¶
type MessagesGetAdminsWithInvitesParams struct {
Peer InputPeer
}
func (*MessagesGetAdminsWithInvitesParams) CRC ¶
func (*MessagesGetAdminsWithInvitesParams) CRC() uint32
type MessagesGetAllDraftsParams ¶
type MessagesGetAllDraftsParams struct{}
func (*MessagesGetAllDraftsParams) CRC ¶
func (*MessagesGetAllDraftsParams) CRC() uint32
type MessagesGetAllStickersParams ¶
type MessagesGetAllStickersParams struct {
Hash int64
}
func (*MessagesGetAllStickersParams) CRC ¶
func (*MessagesGetAllStickersParams) CRC() uint32
type MessagesGetArchivedStickersParams ¶
type MessagesGetArchivedStickersParams struct {
Masks bool `tl:"flag:0,encoded_in_bitflags"`
Emojis bool `tl:"flag:1,encoded_in_bitflags"`
OffsetID int64
Limit int32
}
func (*MessagesGetArchivedStickersParams) CRC ¶
func (*MessagesGetArchivedStickersParams) CRC() uint32
func (*MessagesGetArchivedStickersParams) FlagIndex ¶
func (*MessagesGetArchivedStickersParams) FlagIndex() int
type MessagesGetAttachMenuBotParams ¶
type MessagesGetAttachMenuBotParams struct {
Bot InputUser
}
func (*MessagesGetAttachMenuBotParams) CRC ¶
func (*MessagesGetAttachMenuBotParams) CRC() uint32
type MessagesGetAttachMenuBotsParams ¶
type MessagesGetAttachMenuBotsParams struct {
Hash int64
}
func (*MessagesGetAttachMenuBotsParams) CRC ¶
func (*MessagesGetAttachMenuBotsParams) CRC() uint32
type MessagesGetAttachedStickersParams ¶
type MessagesGetAttachedStickersParams struct {
Media InputStickeredMedia
}
func (*MessagesGetAttachedStickersParams) CRC ¶
func (*MessagesGetAttachedStickersParams) CRC() uint32
type MessagesGetAvailableEffectsParams ¶
type MessagesGetAvailableEffectsParams struct {
Hash int32
}
func (*MessagesGetAvailableEffectsParams) CRC ¶
func (*MessagesGetAvailableEffectsParams) CRC() uint32
type MessagesGetAvailableReactionsParams ¶
type MessagesGetAvailableReactionsParams struct {
Hash int32
}
func (*MessagesGetAvailableReactionsParams) CRC ¶
func (*MessagesGetAvailableReactionsParams) CRC() uint32
type MessagesGetBotAppParams ¶
type MessagesGetBotAppParams struct {
App InputBotApp
Hash int64
}
func (*MessagesGetBotAppParams) CRC ¶
func (*MessagesGetBotAppParams) CRC() uint32
type MessagesGetBotCallbackAnswerParams ¶
type MessagesGetBotCallbackAnswerParams struct {
Game bool `tl:"flag:1,encoded_in_bitflags"`
Peer InputPeer
MsgID int32
Data []byte `tl:"flag:0"`
Password InputCheckPasswordSRP `tl:"flag:2"`
}
func (*MessagesGetBotCallbackAnswerParams) CRC ¶
func (*MessagesGetBotCallbackAnswerParams) CRC() uint32
func (*MessagesGetBotCallbackAnswerParams) FlagIndex ¶
func (*MessagesGetBotCallbackAnswerParams) FlagIndex() int
type MessagesGetChatInviteImportersParams ¶
type MessagesGetChatInviteImportersParams struct {
Requested bool `tl:"flag:0,encoded_in_bitflags"`
SubscriptionExpired bool `tl:"flag:3,encoded_in_bitflags"`
Peer InputPeer
Link string `tl:"flag:1"`
Q string `tl:"flag:2"`
OffsetDate int32
OffsetUser InputUser
Limit int32
}
func (*MessagesGetChatInviteImportersParams) CRC ¶
func (*MessagesGetChatInviteImportersParams) CRC() uint32
func (*MessagesGetChatInviteImportersParams) FlagIndex ¶
func (*MessagesGetChatInviteImportersParams) FlagIndex() int
type MessagesGetChatsParams ¶
type MessagesGetChatsParams struct {
ID []int64
}
func (*MessagesGetChatsParams) CRC ¶
func (*MessagesGetChatsParams) CRC() uint32
type MessagesGetCommonChatsParams ¶
func (*MessagesGetCommonChatsParams) CRC ¶
func (*MessagesGetCommonChatsParams) CRC() uint32
type MessagesGetCustomEmojiDocumentsParams ¶
type MessagesGetCustomEmojiDocumentsParams struct {
DocumentID []int64
}
func (*MessagesGetCustomEmojiDocumentsParams) CRC ¶
func (*MessagesGetCustomEmojiDocumentsParams) CRC() uint32
type MessagesGetDefaultHistoryTtlParams ¶
type MessagesGetDefaultHistoryTtlParams struct{}
func (*MessagesGetDefaultHistoryTtlParams) CRC ¶
func (*MessagesGetDefaultHistoryTtlParams) CRC() uint32
type MessagesGetDefaultTagReactionsParams ¶
type MessagesGetDefaultTagReactionsParams struct {
Hash int64
}
func (*MessagesGetDefaultTagReactionsParams) CRC ¶
func (*MessagesGetDefaultTagReactionsParams) CRC() uint32
type MessagesGetDhConfigParams ¶
func (*MessagesGetDhConfigParams) CRC ¶
func (*MessagesGetDhConfigParams) CRC() uint32
type MessagesGetDialogFiltersParams ¶
type MessagesGetDialogFiltersParams struct{}
func (*MessagesGetDialogFiltersParams) CRC ¶
func (*MessagesGetDialogFiltersParams) CRC() uint32
type MessagesGetDialogUnreadMarksParams ¶
type MessagesGetDialogUnreadMarksParams struct {
ParentPeer InputPeer `tl:"flag:0"`
}
func (*MessagesGetDialogUnreadMarksParams) CRC ¶
func (*MessagesGetDialogUnreadMarksParams) CRC() uint32
func (*MessagesGetDialogUnreadMarksParams) FlagIndex ¶ added in v1.6.0
func (*MessagesGetDialogUnreadMarksParams) FlagIndex() int
type MessagesGetDialogsParams ¶
type MessagesGetDialogsParams struct {
ExcludePinned bool `tl:"flag:0,encoded_in_bitflags"`
FolderID int32 `tl:"flag:1"`
OffsetDate int32
OffsetID int32
OffsetPeer InputPeer
Limit int32
Hash int64
}
func (*MessagesGetDialogsParams) CRC ¶
func (*MessagesGetDialogsParams) CRC() uint32
func (*MessagesGetDialogsParams) FlagIndex ¶
func (*MessagesGetDialogsParams) FlagIndex() int
type MessagesGetDiscussionMessageParams ¶
func (*MessagesGetDiscussionMessageParams) CRC ¶
func (*MessagesGetDiscussionMessageParams) CRC() uint32
type MessagesGetDocumentByHashParams ¶
func (*MessagesGetDocumentByHashParams) CRC ¶
func (*MessagesGetDocumentByHashParams) CRC() uint32
type MessagesGetEmojiGroupsParams ¶
type MessagesGetEmojiGroupsParams struct {
Hash int32
}
func (*MessagesGetEmojiGroupsParams) CRC ¶
func (*MessagesGetEmojiGroupsParams) CRC() uint32
type MessagesGetEmojiKeywordsDifferenceParams ¶
func (*MessagesGetEmojiKeywordsDifferenceParams) CRC ¶
func (*MessagesGetEmojiKeywordsDifferenceParams) CRC() uint32
type MessagesGetEmojiKeywordsLanguagesParams ¶
type MessagesGetEmojiKeywordsLanguagesParams struct {
LangCodes []string
}
func (*MessagesGetEmojiKeywordsLanguagesParams) CRC ¶
func (*MessagesGetEmojiKeywordsLanguagesParams) CRC() uint32
type MessagesGetEmojiKeywordsParams ¶
type MessagesGetEmojiKeywordsParams struct {
LangCode string
}
func (*MessagesGetEmojiKeywordsParams) CRC ¶
func (*MessagesGetEmojiKeywordsParams) CRC() uint32
type MessagesGetEmojiProfilePhotoGroupsParams ¶
type MessagesGetEmojiProfilePhotoGroupsParams struct {
Hash int32
}
func (*MessagesGetEmojiProfilePhotoGroupsParams) CRC ¶
func (*MessagesGetEmojiProfilePhotoGroupsParams) CRC() uint32
type MessagesGetEmojiStatusGroupsParams ¶
type MessagesGetEmojiStatusGroupsParams struct {
Hash int32
}
func (*MessagesGetEmojiStatusGroupsParams) CRC ¶
func (*MessagesGetEmojiStatusGroupsParams) CRC() uint32
type MessagesGetEmojiStickerGroupsParams ¶
type MessagesGetEmojiStickerGroupsParams struct {
Hash int32
}
func (*MessagesGetEmojiStickerGroupsParams) CRC ¶
func (*MessagesGetEmojiStickerGroupsParams) CRC() uint32
type MessagesGetEmojiStickersParams ¶
type MessagesGetEmojiStickersParams struct {
Hash int64
}
func (*MessagesGetEmojiStickersParams) CRC ¶
func (*MessagesGetEmojiStickersParams) CRC() uint32
type MessagesGetEmojiURLParams ¶
type MessagesGetEmojiURLParams struct {
LangCode string
}
func (*MessagesGetEmojiURLParams) CRC ¶
func (*MessagesGetEmojiURLParams) CRC() uint32
type MessagesGetExportedChatInviteParams ¶
func (*MessagesGetExportedChatInviteParams) CRC ¶
func (*MessagesGetExportedChatInviteParams) CRC() uint32
type MessagesGetExportedChatInvitesParams ¶
type MessagesGetExportedChatInvitesParams struct {
Revoked bool `tl:"flag:3,encoded_in_bitflags"`
Peer InputPeer
AdminID InputUser
OffsetDate int32 `tl:"flag:2"`
OffsetLink string `tl:"flag:2"`
Limit int32
}
func (*MessagesGetExportedChatInvitesParams) CRC ¶
func (*MessagesGetExportedChatInvitesParams) CRC() uint32
func (*MessagesGetExportedChatInvitesParams) FlagIndex ¶
func (*MessagesGetExportedChatInvitesParams) FlagIndex() int
type MessagesGetExtendedMediaParams ¶
func (*MessagesGetExtendedMediaParams) CRC ¶
func (*MessagesGetExtendedMediaParams) CRC() uint32
type MessagesGetFactCheckParams ¶
func (*MessagesGetFactCheckParams) CRC ¶
func (*MessagesGetFactCheckParams) CRC() uint32
type MessagesGetFavedStickersParams ¶
type MessagesGetFavedStickersParams struct {
Hash int64
}
func (*MessagesGetFavedStickersParams) CRC ¶
func (*MessagesGetFavedStickersParams) CRC() uint32
type MessagesGetFeaturedEmojiStickersParams ¶
type MessagesGetFeaturedEmojiStickersParams struct {
Hash int64
}
func (*MessagesGetFeaturedEmojiStickersParams) CRC ¶
func (*MessagesGetFeaturedEmojiStickersParams) CRC() uint32
type MessagesGetFeaturedStickersParams ¶
type MessagesGetFeaturedStickersParams struct {
Hash int64
}
func (*MessagesGetFeaturedStickersParams) CRC ¶
func (*MessagesGetFeaturedStickersParams) CRC() uint32
type MessagesGetForumTopicsByIDParams ¶ added in v1.6.3
func (*MessagesGetForumTopicsByIDParams) CRC ¶ added in v1.6.3
func (*MessagesGetForumTopicsByIDParams) CRC() uint32
type MessagesGetForumTopicsParams ¶ added in v1.6.3
type MessagesGetForumTopicsParams struct {
Peer InputPeer
Q string `tl:"flag:0"`
OffsetDate int32
OffsetID int32
OffsetTopic int32
Limit int32
}
func (*MessagesGetForumTopicsParams) CRC ¶ added in v1.6.3
func (*MessagesGetForumTopicsParams) CRC() uint32
func (*MessagesGetForumTopicsParams) FlagIndex ¶ added in v1.6.3
func (*MessagesGetForumTopicsParams) FlagIndex() int
type MessagesGetFullChatParams ¶
type MessagesGetFullChatParams struct {
ChatID int64
}
func (*MessagesGetFullChatParams) CRC ¶
func (*MessagesGetFullChatParams) CRC() uint32
type MessagesGetGameHighScoresParams ¶
func (*MessagesGetGameHighScoresParams) CRC ¶
func (*MessagesGetGameHighScoresParams) CRC() uint32
type MessagesGetHistoryParams ¶
type MessagesGetHistoryParams struct {
Peer InputPeer
OffsetID int32
OffsetDate int32
AddOffset int32
Limit int32
MaxID int32
MinID int32
Hash int64
}
func (*MessagesGetHistoryParams) CRC ¶
func (*MessagesGetHistoryParams) CRC() uint32
type MessagesGetInlineBotResultsParams ¶
type MessagesGetInlineBotResultsParams struct {
Bot InputUser
Peer InputPeer
GeoPoint InputGeoPoint `tl:"flag:0"`
Query string
Offset string
}
func (*MessagesGetInlineBotResultsParams) CRC ¶
func (*MessagesGetInlineBotResultsParams) CRC() uint32
func (*MessagesGetInlineBotResultsParams) FlagIndex ¶
func (*MessagesGetInlineBotResultsParams) FlagIndex() int
type MessagesGetInlineGameHighScoresParams ¶
type MessagesGetInlineGameHighScoresParams struct {
ID InputBotInlineMessageID
UserID InputUser
}
func (*MessagesGetInlineGameHighScoresParams) CRC ¶
func (*MessagesGetInlineGameHighScoresParams) CRC() uint32
type MessagesGetMaskStickersParams ¶
type MessagesGetMaskStickersParams struct {
Hash int64
}
func (*MessagesGetMaskStickersParams) CRC ¶
func (*MessagesGetMaskStickersParams) CRC() uint32
type MessagesGetMessageEditDataParams ¶
func (*MessagesGetMessageEditDataParams) CRC ¶
func (*MessagesGetMessageEditDataParams) CRC() uint32
type MessagesGetMessageReactionsListParams ¶
type MessagesGetMessageReactionsListParams struct {
Peer InputPeer
ID int32
Reaction Reaction `tl:"flag:0"`
Offset string `tl:"flag:1"`
Limit int32
}
func (*MessagesGetMessageReactionsListParams) CRC ¶
func (*MessagesGetMessageReactionsListParams) CRC() uint32
func (*MessagesGetMessageReactionsListParams) FlagIndex ¶
func (*MessagesGetMessageReactionsListParams) FlagIndex() int
type MessagesGetMessageReadParticipantsParams ¶
func (*MessagesGetMessageReadParticipantsParams) CRC ¶
func (*MessagesGetMessageReadParticipantsParams) CRC() uint32
type MessagesGetMessagesParams ¶
type MessagesGetMessagesParams struct {
ID []InputMessage
}
func (*MessagesGetMessagesParams) CRC ¶
func (*MessagesGetMessagesParams) CRC() uint32
type MessagesGetMessagesReactionsParams ¶
func (*MessagesGetMessagesReactionsParams) CRC ¶
func (*MessagesGetMessagesReactionsParams) CRC() uint32
type MessagesGetMessagesViewsParams ¶
func (*MessagesGetMessagesViewsParams) CRC ¶
func (*MessagesGetMessagesViewsParams) CRC() uint32
type MessagesGetMyStickersParams ¶
func (*MessagesGetMyStickersParams) CRC ¶
func (*MessagesGetMyStickersParams) CRC() uint32
type MessagesGetOldFeaturedStickersParams ¶
func (*MessagesGetOldFeaturedStickersParams) CRC ¶
func (*MessagesGetOldFeaturedStickersParams) CRC() uint32
type MessagesGetOnlinesParams ¶
type MessagesGetOnlinesParams struct {
Peer InputPeer
}
func (*MessagesGetOnlinesParams) CRC ¶
func (*MessagesGetOnlinesParams) CRC() uint32
type MessagesGetOutboxReadDateParams ¶
func (*MessagesGetOutboxReadDateParams) CRC ¶
func (*MessagesGetOutboxReadDateParams) CRC() uint32
type MessagesGetPaidReactionPrivacyParams ¶
type MessagesGetPaidReactionPrivacyParams struct{}
func (*MessagesGetPaidReactionPrivacyParams) CRC ¶
func (*MessagesGetPaidReactionPrivacyParams) CRC() uint32
type MessagesGetPeerDialogsParams ¶
type MessagesGetPeerDialogsParams struct {
Peers []InputDialogPeer
}
func (*MessagesGetPeerDialogsParams) CRC ¶
func (*MessagesGetPeerDialogsParams) CRC() uint32
type MessagesGetPeerSettingsParams ¶
type MessagesGetPeerSettingsParams struct {
Peer InputPeer
}
func (*MessagesGetPeerSettingsParams) CRC ¶
func (*MessagesGetPeerSettingsParams) CRC() uint32
type MessagesGetPinnedDialogsParams ¶
type MessagesGetPinnedDialogsParams struct {
FolderID int32
}
func (*MessagesGetPinnedDialogsParams) CRC ¶
func (*MessagesGetPinnedDialogsParams) CRC() uint32
type MessagesGetPinnedSavedDialogsParams ¶
type MessagesGetPinnedSavedDialogsParams struct{}
func (*MessagesGetPinnedSavedDialogsParams) CRC ¶
func (*MessagesGetPinnedSavedDialogsParams) CRC() uint32
type MessagesGetPollResultsParams ¶
func (*MessagesGetPollResultsParams) CRC ¶
func (*MessagesGetPollResultsParams) CRC() uint32
type MessagesGetPollVotesParams ¶
type MessagesGetPollVotesParams struct {
Peer InputPeer
ID int32
Option []byte `tl:"flag:0"`
Offset string `tl:"flag:1"`
Limit int32
}
func (*MessagesGetPollVotesParams) CRC ¶
func (*MessagesGetPollVotesParams) CRC() uint32
func (*MessagesGetPollVotesParams) FlagIndex ¶
func (*MessagesGetPollVotesParams) FlagIndex() int
type MessagesGetPreparedInlineMessageParams ¶ added in v1.3.21
func (*MessagesGetPreparedInlineMessageParams) CRC ¶ added in v1.3.21
func (*MessagesGetPreparedInlineMessageParams) CRC() uint32
type MessagesGetQuickRepliesParams ¶
type MessagesGetQuickRepliesParams struct {
Hash int64
}
func (*MessagesGetQuickRepliesParams) CRC ¶
func (*MessagesGetQuickRepliesParams) CRC() uint32
type MessagesGetQuickReplyMessagesParams ¶
type MessagesGetQuickReplyMessagesParams struct {
ShortcutID int32
ID []int32 `tl:"flag:0"`
Hash int64
}
func (*MessagesGetQuickReplyMessagesParams) CRC ¶
func (*MessagesGetQuickReplyMessagesParams) CRC() uint32
func (*MessagesGetQuickReplyMessagesParams) FlagIndex ¶
func (*MessagesGetQuickReplyMessagesParams) FlagIndex() int
type MessagesGetRecentLocationsParams ¶
func (*MessagesGetRecentLocationsParams) CRC ¶
func (*MessagesGetRecentLocationsParams) CRC() uint32
type MessagesGetRecentReactionsParams ¶
func (*MessagesGetRecentReactionsParams) CRC ¶
func (*MessagesGetRecentReactionsParams) CRC() uint32
type MessagesGetRecentStickersParams ¶
type MessagesGetRecentStickersParams struct {
Attached bool `tl:"flag:0,encoded_in_bitflags"`
Hash int64
}
func (*MessagesGetRecentStickersParams) CRC ¶
func (*MessagesGetRecentStickersParams) CRC() uint32
func (*MessagesGetRecentStickersParams) FlagIndex ¶
func (*MessagesGetRecentStickersParams) FlagIndex() int
type MessagesGetRepliesParams ¶
type MessagesGetRepliesParams struct {
Peer InputPeer
MsgID int32
OffsetID int32
OffsetDate int32
AddOffset int32
Limit int32
MaxID int32
MinID int32
Hash int64
}
func (*MessagesGetRepliesParams) CRC ¶
func (*MessagesGetRepliesParams) CRC() uint32
type MessagesGetSavedDialogsByIDParams ¶ added in v1.6.0
type MessagesGetSavedDialogsByIDParams struct {
ParentPeer InputPeer `tl:"flag:1"`
Ids []InputPeer
}
func (*MessagesGetSavedDialogsByIDParams) CRC ¶ added in v1.6.0
func (*MessagesGetSavedDialogsByIDParams) CRC() uint32
func (*MessagesGetSavedDialogsByIDParams) FlagIndex ¶ added in v1.6.0
func (*MessagesGetSavedDialogsByIDParams) FlagIndex() int
type MessagesGetSavedDialogsParams ¶
type MessagesGetSavedDialogsParams struct {
ExcludePinned bool `tl:"flag:0,encoded_in_bitflags"`
ParentPeer InputPeer `tl:"flag:1"`
OffsetDate int32
OffsetID int32
OffsetPeer InputPeer
Limit int32
Hash int64
}
func (*MessagesGetSavedDialogsParams) CRC ¶
func (*MessagesGetSavedDialogsParams) CRC() uint32
func (*MessagesGetSavedDialogsParams) FlagIndex ¶
func (*MessagesGetSavedDialogsParams) FlagIndex() int
type MessagesGetSavedGifsParams ¶
type MessagesGetSavedGifsParams struct {
Hash int64
}
func (*MessagesGetSavedGifsParams) CRC ¶
func (*MessagesGetSavedGifsParams) CRC() uint32
type MessagesGetSavedHistoryParams ¶
type MessagesGetSavedHistoryParams struct {
ParentPeer InputPeer `tl:"flag:0"`
Peer InputPeer
OffsetID int32
OffsetDate int32
AddOffset int32
Limit int32
MaxID int32
MinID int32
Hash int64
}
func (*MessagesGetSavedHistoryParams) CRC ¶
func (*MessagesGetSavedHistoryParams) CRC() uint32
func (*MessagesGetSavedHistoryParams) FlagIndex ¶ added in v1.6.0
func (*MessagesGetSavedHistoryParams) FlagIndex() int
type MessagesGetSavedReactionTagsParams ¶
func (*MessagesGetSavedReactionTagsParams) CRC ¶
func (*MessagesGetSavedReactionTagsParams) CRC() uint32
func (*MessagesGetSavedReactionTagsParams) FlagIndex ¶
func (*MessagesGetSavedReactionTagsParams) FlagIndex() int
type MessagesGetScheduledHistoryParams ¶
func (*MessagesGetScheduledHistoryParams) CRC ¶
func (*MessagesGetScheduledHistoryParams) CRC() uint32
type MessagesGetScheduledMessagesParams ¶
func (*MessagesGetScheduledMessagesParams) CRC ¶
func (*MessagesGetScheduledMessagesParams) CRC() uint32
type MessagesGetSearchCountersParams ¶
type MessagesGetSearchCountersParams struct {
Peer InputPeer
SavedPeerID InputPeer `tl:"flag:2"`
TopMsgID int32 `tl:"flag:0"`
Filters []MessagesFilter
}
func (*MessagesGetSearchCountersParams) CRC ¶
func (*MessagesGetSearchCountersParams) CRC() uint32
func (*MessagesGetSearchCountersParams) FlagIndex ¶
func (*MessagesGetSearchCountersParams) FlagIndex() int
type MessagesGetSearchResultsCalendarParams ¶
type MessagesGetSearchResultsCalendarParams struct {
Peer InputPeer
SavedPeerID InputPeer `tl:"flag:2"`
Filter MessagesFilter
OffsetID int32
OffsetDate int32
}
func (*MessagesGetSearchResultsCalendarParams) CRC ¶
func (*MessagesGetSearchResultsCalendarParams) CRC() uint32
func (*MessagesGetSearchResultsCalendarParams) FlagIndex ¶
func (*MessagesGetSearchResultsCalendarParams) FlagIndex() int
type MessagesGetSearchResultsPositionsParams ¶
type MessagesGetSearchResultsPositionsParams struct {
Peer InputPeer
SavedPeerID InputPeer `tl:"flag:2"`
Filter MessagesFilter
OffsetID int32
Limit int32
}
func (*MessagesGetSearchResultsPositionsParams) CRC ¶
func (*MessagesGetSearchResultsPositionsParams) CRC() uint32
func (*MessagesGetSearchResultsPositionsParams) FlagIndex ¶
func (*MessagesGetSearchResultsPositionsParams) FlagIndex() int
type MessagesGetSplitRangesParams ¶
type MessagesGetSplitRangesParams struct{}
func (*MessagesGetSplitRangesParams) CRC ¶
func (*MessagesGetSplitRangesParams) CRC() uint32
type MessagesGetSponsoredMessagesParams ¶ added in v1.3.21
func (*MessagesGetSponsoredMessagesParams) CRC ¶ added in v1.3.21
func (*MessagesGetSponsoredMessagesParams) CRC() uint32
func (*MessagesGetSponsoredMessagesParams) FlagIndex ¶ added in v1.6.1
func (*MessagesGetSponsoredMessagesParams) FlagIndex() int
type MessagesGetStickerSetParams ¶
type MessagesGetStickerSetParams struct {
Stickerset InputStickerSet
Hash int32
}
func (*MessagesGetStickerSetParams) CRC ¶
func (*MessagesGetStickerSetParams) CRC() uint32
type MessagesGetStickersParams ¶
func (*MessagesGetStickersParams) CRC ¶
func (*MessagesGetStickersParams) CRC() uint32
type MessagesGetSuggestedDialogFiltersParams ¶
type MessagesGetSuggestedDialogFiltersParams struct{}
func (*MessagesGetSuggestedDialogFiltersParams) CRC ¶
func (*MessagesGetSuggestedDialogFiltersParams) CRC() uint32
type MessagesGetTopReactionsParams ¶
func (*MessagesGetTopReactionsParams) CRC ¶
func (*MessagesGetTopReactionsParams) CRC() uint32
type MessagesGetUnreadMentionsParams ¶
type MessagesGetUnreadMentionsParams struct {
Peer InputPeer
TopMsgID int32 `tl:"flag:0"`
OffsetID int32
AddOffset int32
Limit int32
MaxID int32
MinID int32
}
func (*MessagesGetUnreadMentionsParams) CRC ¶
func (*MessagesGetUnreadMentionsParams) CRC() uint32
func (*MessagesGetUnreadMentionsParams) FlagIndex ¶
func (*MessagesGetUnreadMentionsParams) FlagIndex() int
type MessagesGetUnreadReactionsParams ¶
type MessagesGetUnreadReactionsParams struct {
Peer InputPeer
TopMsgID int32 `tl:"flag:0"`
SavedPeerID InputPeer `tl:"flag:1"`
OffsetID int32
AddOffset int32
Limit int32
MaxID int32
MinID int32
}
func (*MessagesGetUnreadReactionsParams) CRC ¶
func (*MessagesGetUnreadReactionsParams) CRC() uint32
func (*MessagesGetUnreadReactionsParams) FlagIndex ¶
func (*MessagesGetUnreadReactionsParams) FlagIndex() int
type MessagesGetWebPageParams ¶
func (*MessagesGetWebPageParams) CRC ¶
func (*MessagesGetWebPageParams) CRC() uint32
type MessagesGetWebPagePreviewParams ¶
type MessagesGetWebPagePreviewParams struct {
Message string
Entities []MessageEntity `tl:"flag:3"`
}
func (*MessagesGetWebPagePreviewParams) CRC ¶
func (*MessagesGetWebPagePreviewParams) CRC() uint32
func (*MessagesGetWebPagePreviewParams) FlagIndex ¶
func (*MessagesGetWebPagePreviewParams) FlagIndex() int
type MessagesHideAllChatJoinRequestsParams ¶
type MessagesHideAllChatJoinRequestsParams struct {
Approved bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputPeer
Link string `tl:"flag:1"`
}
func (*MessagesHideAllChatJoinRequestsParams) CRC ¶
func (*MessagesHideAllChatJoinRequestsParams) CRC() uint32
func (*MessagesHideAllChatJoinRequestsParams) FlagIndex ¶
func (*MessagesHideAllChatJoinRequestsParams) FlagIndex() int
type MessagesHideChatJoinRequestParams ¶
type MessagesHideChatJoinRequestParams struct {
Approved bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputPeer
UserID InputUser
}
func (*MessagesHideChatJoinRequestParams) CRC ¶
func (*MessagesHideChatJoinRequestParams) CRC() uint32
func (*MessagesHideChatJoinRequestParams) FlagIndex ¶
func (*MessagesHideChatJoinRequestParams) FlagIndex() int
type MessagesHidePeerSettingsBarParams ¶
type MessagesHidePeerSettingsBarParams struct {
Peer InputPeer
}
func (*MessagesHidePeerSettingsBarParams) CRC ¶
func (*MessagesHidePeerSettingsBarParams) CRC() uint32
type MessagesHighScores ¶
Highscores in a game
func (*MessagesHighScores) CRC ¶
func (*MessagesHighScores) CRC() uint32
type MessagesHistoryImport ¶
type MessagesHistoryImport struct {
ID int64
}
ID of a specific chat import session, click here for more info.
func (*MessagesHistoryImport) CRC ¶
func (*MessagesHistoryImport) CRC() uint32
type MessagesHistoryImportParsed ¶
type MessagesHistoryImportParsed struct {
Pm bool `tl:"flag:0,encoded_in_bitflags"`
Group bool `tl:"flag:1,encoded_in_bitflags"`
Title string `tl:"flag:2"`
}
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.
func (*MessagesHistoryImportParsed) CRC ¶
func (*MessagesHistoryImportParsed) CRC() uint32
func (*MessagesHistoryImportParsed) FlagIndex ¶
func (*MessagesHistoryImportParsed) FlagIndex() int
type MessagesImportChatInviteParams ¶
type MessagesImportChatInviteParams struct {
Hash string
}
func (*MessagesImportChatInviteParams) CRC ¶
func (*MessagesImportChatInviteParams) CRC() uint32
type MessagesInactiveChats ¶
Inactive chat list
func (*MessagesInactiveChats) CRC ¶
func (*MessagesInactiveChats) CRC() uint32
type MessagesInitHistoryImportParams ¶
func (*MessagesInitHistoryImportParams) CRC ¶
func (*MessagesInitHistoryImportParams) CRC() uint32
type MessagesInstallStickerSetParams ¶
type MessagesInstallStickerSetParams struct {
Stickerset InputStickerSet
Archived bool
}
func (*MessagesInstallStickerSetParams) CRC ¶
func (*MessagesInstallStickerSetParams) CRC() uint32
type MessagesInvitedUsers ¶
type MessagesInvitedUsers struct {
Updates Updates
MissingInvitees []*MissingInvitee
}
Contains info about successfully or unsuccessfully invited users.
func (*MessagesInvitedUsers) CRC ¶
func (*MessagesInvitedUsers) CRC() uint32
type MessagesMarkDialogUnreadParams ¶
type MessagesMarkDialogUnreadParams struct {
Unread bool `tl:"flag:0,encoded_in_bitflags"`
ParentPeer InputPeer `tl:"flag:1"`
Peer InputDialogPeer
}
func (*MessagesMarkDialogUnreadParams) CRC ¶
func (*MessagesMarkDialogUnreadParams) CRC() uint32
func (*MessagesMarkDialogUnreadParams) FlagIndex ¶
func (*MessagesMarkDialogUnreadParams) FlagIndex() int
type MessagesMessageEditData ¶
type MessagesMessageEditData struct {
Caption bool `tl:"flag:0,encoded_in_bitflags"`
}
Message edit data for media
func (*MessagesMessageEditData) CRC ¶
func (*MessagesMessageEditData) CRC() uint32
func (*MessagesMessageEditData) FlagIndex ¶
func (*MessagesMessageEditData) FlagIndex() int
type MessagesMessageReactionsList ¶
type MessagesMessageReactionsList struct {
Count int32
Reactions []*MessagePeerReaction
Chats []Chat
Users []User
NextOffset string `tl:"flag:0"`
}
List of peers that reacted to a specific message
func (*MessagesMessageReactionsList) CRC ¶
func (*MessagesMessageReactionsList) CRC() uint32
func (*MessagesMessageReactionsList) FlagIndex ¶
func (*MessagesMessageReactionsList) FlagIndex() int
type MessagesMessageViews ¶
type MessagesMessageViews struct {
Views []*MessageViews
Chats []Chat
Users []User
}
View, forward counter + info about replies
func (*MessagesMessageViews) CRC ¶
func (*MessagesMessageViews) CRC() uint32
type MessagesMessages ¶
type MessagesMessagesNotModified ¶
type MessagesMessagesNotModified struct {
Count int32 // Number of results found server-side by the given query
}
No new messages matching the query were found
func (*MessagesMessagesNotModified) CRC ¶
func (*MessagesMessagesNotModified) CRC() uint32
func (*MessagesMessagesNotModified) ImplementsMessagesMessages ¶
func (*MessagesMessagesNotModified) ImplementsMessagesMessages()
type MessagesMessagesObj ¶
type MessagesMessagesObj struct {
Messages []Message
Topics []ForumTopic
Chats []Chat
Users []User
}
Full list of messages with auxiliary data.
func (*MessagesMessagesObj) CRC ¶
func (*MessagesMessagesObj) CRC() uint32
func (*MessagesMessagesObj) ImplementsMessagesMessages ¶
func (*MessagesMessagesObj) ImplementsMessagesMessages()
type MessagesMessagesSlice ¶
type MessagesMessagesSlice struct {
Inexact bool `tl:"flag:1,encoded_in_bitflags"`
Count int32
NextRate int32 `tl:"flag:0"`
OffsetIDOffset int32 `tl:"flag:2"`
SearchFlood *SearchPostsFlood `tl:"flag:3"`
Messages []Message
Topics []ForumTopic
Chats []Chat
Users []User
}
Incomplete list of messages and auxiliary data.
func (*MessagesMessagesSlice) CRC ¶
func (*MessagesMessagesSlice) CRC() uint32
func (*MessagesMessagesSlice) FlagIndex ¶
func (*MessagesMessagesSlice) FlagIndex() int
func (*MessagesMessagesSlice) ImplementsMessagesMessages ¶
func (*MessagesMessagesSlice) ImplementsMessagesMessages()
type MessagesMigrateChatParams ¶
type MessagesMigrateChatParams struct {
ChatID int64
}
func (*MessagesMigrateChatParams) CRC ¶
func (*MessagesMigrateChatParams) CRC() uint32
type MessagesMyStickers ¶
type MessagesMyStickers struct {
Count int32
Sets []StickerSetCovered
}
The list of stickersets owned by the current account.
func (*MessagesMyStickers) CRC ¶
func (*MessagesMyStickers) CRC() uint32
type MessagesPeerDialogs ¶
type MessagesPeerDialogs struct {
Dialogs []Dialog
Messages []Message
Chats []Chat
Users []User
State *UpdatesState
}
Dialog info of multiple peers
func (*MessagesPeerDialogs) CRC ¶
func (*MessagesPeerDialogs) CRC() uint32
type MessagesPeerSettings ¶
type MessagesPeerSettings struct {
Settings *PeerSettings
Chats []Chat
Users []User
}
Peer settings
func (*MessagesPeerSettings) CRC ¶
func (*MessagesPeerSettings) CRC() uint32
type MessagesPreparedInlineMessage ¶ added in v1.3.21
type MessagesPreparedInlineMessage struct {
QueryID int64
Result BotInlineResult
PeerTypes []InlineQueryPeerType
CacheTime int32
Users []User
}
Represents a prepared inline message received via a bot's mini app, that can be sent to some chats
func (*MessagesPreparedInlineMessage) CRC ¶ added in v1.3.21
func (*MessagesPreparedInlineMessage) CRC() uint32
type MessagesProlongWebViewParams ¶
type MessagesProlongWebViewParams struct {
Silent bool `tl:"flag:5,encoded_in_bitflags"`
Peer InputPeer
Bot InputUser
QueryID int64
ReplyTo InputReplyTo `tl:"flag:0"`
SendAs InputPeer `tl:"flag:13"`
}
func (*MessagesProlongWebViewParams) CRC ¶
func (*MessagesProlongWebViewParams) CRC() uint32
func (*MessagesProlongWebViewParams) FlagIndex ¶
func (*MessagesProlongWebViewParams) FlagIndex() int
type MessagesQuickReplies ¶
type MessagesQuickRepliesNotModified ¶
type MessagesQuickRepliesNotModified struct{}
Info about quick reply shortcuts hasn't changed.
func (*MessagesQuickRepliesNotModified) CRC ¶
func (*MessagesQuickRepliesNotModified) CRC() uint32
func (*MessagesQuickRepliesNotModified) ImplementsMessagesQuickReplies ¶
func (*MessagesQuickRepliesNotModified) ImplementsMessagesQuickReplies()
type MessagesQuickRepliesObj ¶
type MessagesQuickRepliesObj struct {
QuickReplies []*QuickReply // Quick reply shortcuts.
Messages []Message // Messages mentioned in `quick_replies`.
Chats []Chat // Mentioned chats
Users []User // Mentioned users
}
Info about quick reply shortcuts.
func (*MessagesQuickRepliesObj) CRC ¶
func (*MessagesQuickRepliesObj) CRC() uint32
func (*MessagesQuickRepliesObj) ImplementsMessagesQuickReplies ¶
func (*MessagesQuickRepliesObj) ImplementsMessagesQuickReplies()
type MessagesRateTranscribedAudioParams ¶
type MessagesRateTranscribedAudioParams struct {
Peer InputPeer
MsgID int32
TranscriptionID int64
Good bool
}
func (*MessagesRateTranscribedAudioParams) CRC ¶
func (*MessagesRateTranscribedAudioParams) CRC() uint32
type MessagesReactions ¶
type MessagesReactionsNotModified ¶
type MessagesReactionsNotModified struct{}
The server-side list of message reactions hasn't changed
func (*MessagesReactionsNotModified) CRC ¶
func (*MessagesReactionsNotModified) CRC() uint32
func (*MessagesReactionsNotModified) ImplementsMessagesReactions ¶
func (*MessagesReactionsNotModified) ImplementsMessagesReactions()
type MessagesReactionsObj ¶
type MessagesReactionsObj struct {
Hash int64 // Hash used for caching, can also be locally regenerated using the algorithm specified here.
Reactions []Reaction // Reactions
}
List of message reactions
func (*MessagesReactionsObj) CRC ¶
func (*MessagesReactionsObj) CRC() uint32
func (*MessagesReactionsObj) ImplementsMessagesReactions ¶
func (*MessagesReactionsObj) ImplementsMessagesReactions()
type MessagesReadDiscussionParams ¶
func (*MessagesReadDiscussionParams) CRC ¶
func (*MessagesReadDiscussionParams) CRC() uint32
type MessagesReadEncryptedHistoryParams ¶
type MessagesReadEncryptedHistoryParams struct {
Peer *InputEncryptedChat
MaxDate int32
}
func (*MessagesReadEncryptedHistoryParams) CRC ¶
func (*MessagesReadEncryptedHistoryParams) CRC() uint32
type MessagesReadFeaturedStickersParams ¶
type MessagesReadFeaturedStickersParams struct {
ID []int64
}
func (*MessagesReadFeaturedStickersParams) CRC ¶
func (*MessagesReadFeaturedStickersParams) CRC() uint32
type MessagesReadHistoryParams ¶
func (*MessagesReadHistoryParams) CRC ¶
func (*MessagesReadHistoryParams) CRC() uint32
type MessagesReadMentionsParams ¶
func (*MessagesReadMentionsParams) CRC ¶
func (*MessagesReadMentionsParams) CRC() uint32
func (*MessagesReadMentionsParams) FlagIndex ¶
func (*MessagesReadMentionsParams) FlagIndex() int
type MessagesReadMessageContentsParams ¶
type MessagesReadMessageContentsParams struct {
ID []int32
}
func (*MessagesReadMessageContentsParams) CRC ¶
func (*MessagesReadMessageContentsParams) CRC() uint32
type MessagesReadReactionsParams ¶
type MessagesReadReactionsParams struct {
Peer InputPeer
TopMsgID int32 `tl:"flag:0"`
SavedPeerID InputPeer `tl:"flag:1"`
}
func (*MessagesReadReactionsParams) CRC ¶
func (*MessagesReadReactionsParams) CRC() uint32
func (*MessagesReadReactionsParams) FlagIndex ¶
func (*MessagesReadReactionsParams) FlagIndex() int
type MessagesReadSavedHistoryParams ¶ added in v1.6.0
func (*MessagesReadSavedHistoryParams) CRC ¶ added in v1.6.0
func (*MessagesReadSavedHistoryParams) CRC() uint32
type MessagesReceivedMessagesParams ¶
type MessagesReceivedMessagesParams struct {
MaxID int32
}
func (*MessagesReceivedMessagesParams) CRC ¶
func (*MessagesReceivedMessagesParams) CRC() uint32
type MessagesReceivedQueueParams ¶
type MessagesReceivedQueueParams struct {
MaxQts int32
}
func (*MessagesReceivedQueueParams) CRC ¶
func (*MessagesReceivedQueueParams) CRC() uint32
type MessagesRecentStickers ¶
type MessagesRecentStickersNotModified ¶
type MessagesRecentStickersNotModified struct{}
No new recent sticker was found
func (*MessagesRecentStickersNotModified) CRC ¶
func (*MessagesRecentStickersNotModified) CRC() uint32
func (*MessagesRecentStickersNotModified) ImplementsMessagesRecentStickers ¶
func (*MessagesRecentStickersNotModified) ImplementsMessagesRecentStickers()
type MessagesRecentStickersObj ¶
type MessagesRecentStickersObj struct {
Hash int64 // Hash used for caching, for more info click here
Packs []*StickerPack // Emojis associated to stickers
Stickers []Document // Recent stickers
Dates []int32 // When was each sticker last used
}
Recently used stickers
func (*MessagesRecentStickersObj) CRC ¶
func (*MessagesRecentStickersObj) CRC() uint32
func (*MessagesRecentStickersObj) ImplementsMessagesRecentStickers ¶
func (*MessagesRecentStickersObj) ImplementsMessagesRecentStickers()
type MessagesReorderPinnedDialogsParams ¶
type MessagesReorderPinnedDialogsParams struct {
Force bool `tl:"flag:0,encoded_in_bitflags"`
FolderID int32
Order []InputDialogPeer
}
func (*MessagesReorderPinnedDialogsParams) CRC ¶
func (*MessagesReorderPinnedDialogsParams) CRC() uint32
func (*MessagesReorderPinnedDialogsParams) FlagIndex ¶
func (*MessagesReorderPinnedDialogsParams) FlagIndex() int
type MessagesReorderPinnedForumTopicsParams ¶ added in v1.6.3
type MessagesReorderPinnedForumTopicsParams struct {
Force bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputPeer
Order []int32
}
func (*MessagesReorderPinnedForumTopicsParams) CRC ¶ added in v1.6.3
func (*MessagesReorderPinnedForumTopicsParams) CRC() uint32
func (*MessagesReorderPinnedForumTopicsParams) FlagIndex ¶ added in v1.6.3
func (*MessagesReorderPinnedForumTopicsParams) FlagIndex() int
type MessagesReorderPinnedSavedDialogsParams ¶
type MessagesReorderPinnedSavedDialogsParams struct {
Force bool `tl:"flag:0,encoded_in_bitflags"`
Order []InputDialogPeer
}
func (*MessagesReorderPinnedSavedDialogsParams) CRC ¶
func (*MessagesReorderPinnedSavedDialogsParams) CRC() uint32
func (*MessagesReorderPinnedSavedDialogsParams) FlagIndex ¶
func (*MessagesReorderPinnedSavedDialogsParams) FlagIndex() int
type MessagesReorderQuickRepliesParams ¶
type MessagesReorderQuickRepliesParams struct {
Order []int32
}
func (*MessagesReorderQuickRepliesParams) CRC ¶
func (*MessagesReorderQuickRepliesParams) CRC() uint32
type MessagesReorderStickerSetsParams ¶
type MessagesReorderStickerSetsParams struct {
Masks bool `tl:"flag:0,encoded_in_bitflags"`
Emojis bool `tl:"flag:1,encoded_in_bitflags"`
Order []int64
}
func (*MessagesReorderStickerSetsParams) CRC ¶
func (*MessagesReorderStickerSetsParams) CRC() uint32
func (*MessagesReorderStickerSetsParams) FlagIndex ¶
func (*MessagesReorderStickerSetsParams) FlagIndex() int
type MessagesReportEncryptedSpamParams ¶
type MessagesReportEncryptedSpamParams struct {
Peer *InputEncryptedChat
}
func (*MessagesReportEncryptedSpamParams) CRC ¶
func (*MessagesReportEncryptedSpamParams) CRC() uint32
type MessagesReportMessagesDeliveryParams ¶ added in v1.5.3
type MessagesReportMessagesDeliveryParams struct {
Push bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputPeer
ID []int32
}
func (*MessagesReportMessagesDeliveryParams) CRC ¶ added in v1.5.3
func (*MessagesReportMessagesDeliveryParams) CRC() uint32
func (*MessagesReportMessagesDeliveryParams) FlagIndex ¶ added in v1.5.3
func (*MessagesReportMessagesDeliveryParams) FlagIndex() int
type MessagesReportParams ¶
func (*MessagesReportParams) CRC ¶
func (*MessagesReportParams) CRC() uint32
type MessagesReportReactionParams ¶
func (*MessagesReportReactionParams) CRC ¶
func (*MessagesReportReactionParams) CRC() uint32
type MessagesReportSpamParams ¶
type MessagesReportSpamParams struct {
Peer InputPeer
}
func (*MessagesReportSpamParams) CRC ¶
func (*MessagesReportSpamParams) CRC() uint32
type MessagesReportSponsoredMessageParams ¶ added in v1.3.21
func (*MessagesReportSponsoredMessageParams) CRC ¶ added in v1.3.21
func (*MessagesReportSponsoredMessageParams) CRC() uint32
type MessagesRequestAppWebViewParams ¶
type MessagesRequestAppWebViewParams struct {
WriteAllowed bool `tl:"flag:0,encoded_in_bitflags"`
Compact bool `tl:"flag:7,encoded_in_bitflags"`
Fullscreen bool `tl:"flag:8,encoded_in_bitflags"`
Peer InputPeer
App InputBotApp
StartParam string `tl:"flag:1"`
ThemeParams *DataJson `tl:"flag:2"`
Platform string
}
func (*MessagesRequestAppWebViewParams) CRC ¶
func (*MessagesRequestAppWebViewParams) CRC() uint32
func (*MessagesRequestAppWebViewParams) FlagIndex ¶
func (*MessagesRequestAppWebViewParams) FlagIndex() int
type MessagesRequestEncryptionParams ¶
func (*MessagesRequestEncryptionParams) CRC ¶
func (*MessagesRequestEncryptionParams) CRC() uint32
type MessagesRequestMainWebViewParams ¶
type MessagesRequestMainWebViewParams struct {
Compact bool `tl:"flag:7,encoded_in_bitflags"`
Fullscreen bool `tl:"flag:8,encoded_in_bitflags"`
Peer InputPeer
Bot InputUser
StartParam string `tl:"flag:1"`
ThemeParams *DataJson `tl:"flag:0"`
Platform string
}
func (*MessagesRequestMainWebViewParams) CRC ¶
func (*MessagesRequestMainWebViewParams) CRC() uint32
func (*MessagesRequestMainWebViewParams) FlagIndex ¶
func (*MessagesRequestMainWebViewParams) FlagIndex() int
type MessagesRequestSimpleWebViewParams ¶
type MessagesRequestSimpleWebViewParams struct {
FromSwitchWebview bool `tl:"flag:1,encoded_in_bitflags"`
FromSideMenu bool `tl:"flag:2,encoded_in_bitflags"`
Compact bool `tl:"flag:7,encoded_in_bitflags"`
Fullscreen bool `tl:"flag:8,encoded_in_bitflags"`
Bot InputUser
URL string `tl:"flag:3"`
StartParam string `tl:"flag:4"`
ThemeParams *DataJson `tl:"flag:0"`
Platform string
}
func (*MessagesRequestSimpleWebViewParams) CRC ¶
func (*MessagesRequestSimpleWebViewParams) CRC() uint32
func (*MessagesRequestSimpleWebViewParams) FlagIndex ¶
func (*MessagesRequestSimpleWebViewParams) FlagIndex() int
type MessagesRequestURLAuthParams ¶
type MessagesRequestURLAuthParams struct {
Peer InputPeer `tl:"flag:1"`
MsgID int32 `tl:"flag:1"`
ButtonID int32 `tl:"flag:1"`
URL string `tl:"flag:2"`
}
func (*MessagesRequestURLAuthParams) CRC ¶
func (*MessagesRequestURLAuthParams) CRC() uint32
func (*MessagesRequestURLAuthParams) FlagIndex ¶
func (*MessagesRequestURLAuthParams) FlagIndex() int
type MessagesRequestWebViewParams ¶
type MessagesRequestWebViewParams struct {
FromBotMenu bool `tl:"flag:4,encoded_in_bitflags"`
Silent bool `tl:"flag:5,encoded_in_bitflags"`
Compact bool `tl:"flag:7,encoded_in_bitflags"`
Fullscreen bool `tl:"flag:8,encoded_in_bitflags"`
Peer InputPeer
Bot InputUser
URL string `tl:"flag:1"`
StartParam string `tl:"flag:3"`
ThemeParams *DataJson `tl:"flag:2"`
Platform string
ReplyTo InputReplyTo `tl:"flag:0"`
SendAs InputPeer `tl:"flag:13"`
}
func (*MessagesRequestWebViewParams) CRC ¶
func (*MessagesRequestWebViewParams) CRC() uint32
func (*MessagesRequestWebViewParams) FlagIndex ¶
func (*MessagesRequestWebViewParams) FlagIndex() int
type MessagesSaveDefaultSendAsParams ¶
func (*MessagesSaveDefaultSendAsParams) CRC ¶
func (*MessagesSaveDefaultSendAsParams) CRC() uint32
type MessagesSaveDraftParams ¶
type MessagesSaveDraftParams struct {
NoWebpage bool `tl:"flag:1,encoded_in_bitflags"`
InvertMedia bool `tl:"flag:6,encoded_in_bitflags"`
ReplyTo InputReplyTo `tl:"flag:4"`
Peer InputPeer
Message string
Entities []MessageEntity `tl:"flag:3"`
Media InputMedia `tl:"flag:5"`
Effect int64 `tl:"flag:7"`
SuggestedPost *SuggestedPost `tl:"flag:8"`
}
func (*MessagesSaveDraftParams) CRC ¶
func (*MessagesSaveDraftParams) CRC() uint32
func (*MessagesSaveDraftParams) FlagIndex ¶
func (*MessagesSaveDraftParams) FlagIndex() int
type MessagesSaveGifParams ¶
type MessagesSaveGifParams struct {
ID InputDocument
Unsave bool
}
func (*MessagesSaveGifParams) CRC ¶
func (*MessagesSaveGifParams) CRC() uint32
type MessagesSavePreparedInlineMessageParams ¶ added in v1.4.2
type MessagesSavePreparedInlineMessageParams struct {
Result InputBotInlineResult
UserID InputUser
PeerTypes []InlineQueryPeerType `tl:"flag:0"`
}
func (*MessagesSavePreparedInlineMessageParams) CRC ¶ added in v1.4.2
func (*MessagesSavePreparedInlineMessageParams) CRC() uint32
func (*MessagesSavePreparedInlineMessageParams) FlagIndex ¶ added in v1.4.2
func (*MessagesSavePreparedInlineMessageParams) FlagIndex() int
type MessagesSaveRecentStickerParams ¶
type MessagesSaveRecentStickerParams struct {
Attached bool `tl:"flag:0,encoded_in_bitflags"`
ID InputDocument
Unsave bool
}
func (*MessagesSaveRecentStickerParams) CRC ¶
func (*MessagesSaveRecentStickerParams) CRC() uint32
func (*MessagesSaveRecentStickerParams) FlagIndex ¶
func (*MessagesSaveRecentStickerParams) FlagIndex() int
type MessagesSavedDialogs ¶
type MessagesSavedDialogsNotModified ¶
type MessagesSavedDialogsNotModified struct {
Count int32 // Number of saved dialogs found server-side by the query
}
The saved dialogs haven't changed
func (*MessagesSavedDialogsNotModified) CRC ¶
func (*MessagesSavedDialogsNotModified) CRC() uint32
func (*MessagesSavedDialogsNotModified) ImplementsMessagesSavedDialogs ¶
func (*MessagesSavedDialogsNotModified) ImplementsMessagesSavedDialogs()
type MessagesSavedDialogsObj ¶
type MessagesSavedDialogsObj struct {
Dialogs []SavedDialog // Saved message dialogs.
Messages []Message // List of last messages from each saved dialog
Chats []Chat // Mentioned chats
Users []User // Mentioned users
}
Represents some saved message dialogs.
func (*MessagesSavedDialogsObj) CRC ¶
func (*MessagesSavedDialogsObj) CRC() uint32
func (*MessagesSavedDialogsObj) ImplementsMessagesSavedDialogs ¶
func (*MessagesSavedDialogsObj) ImplementsMessagesSavedDialogs()
type MessagesSavedDialogsSlice ¶
type MessagesSavedDialogsSlice struct {
Count int32 // Total number of saved message dialogs
Dialogs []SavedDialog // List of saved message dialogs
Messages []Message // List of last messages from dialogs
Chats []Chat // Mentioned chats
Users []User // Mentioned users
}
Incomplete list of saved message dialogs with messages and auxiliary data.
func (*MessagesSavedDialogsSlice) CRC ¶
func (*MessagesSavedDialogsSlice) CRC() uint32
func (*MessagesSavedDialogsSlice) ImplementsMessagesSavedDialogs ¶
func (*MessagesSavedDialogsSlice) ImplementsMessagesSavedDialogs()
type MessagesSavedGifs ¶
type MessagesSavedGifsNotModified ¶
type MessagesSavedGifsNotModified struct{}
No new saved gifs were found
func (*MessagesSavedGifsNotModified) CRC ¶
func (*MessagesSavedGifsNotModified) CRC() uint32
func (*MessagesSavedGifsNotModified) ImplementsMessagesSavedGifs ¶
func (*MessagesSavedGifsNotModified) ImplementsMessagesSavedGifs()
type MessagesSavedGifsObj ¶
type MessagesSavedGifsObj struct {
Hash int64 // Hash used for caching, for more info click here
Gifs []Document // List of saved gifs
}
Saved gifs
func (*MessagesSavedGifsObj) CRC ¶
func (*MessagesSavedGifsObj) CRC() uint32
func (*MessagesSavedGifsObj) ImplementsMessagesSavedGifs ¶
func (*MessagesSavedGifsObj) ImplementsMessagesSavedGifs()
type MessagesSavedReactionTagsNotModified ¶
type MessagesSavedReactionTagsNotModified struct{}
The list of reaction tag names assigned by the user hasn't changed.
func (*MessagesSavedReactionTagsNotModified) CRC ¶
func (*MessagesSavedReactionTagsNotModified) CRC() uint32
func (*MessagesSavedReactionTagsNotModified) ImplementsMessagesSavedReactionTags ¶
func (*MessagesSavedReactionTagsNotModified) ImplementsMessagesSavedReactionTags()
type MessagesSavedReactionTagsObj ¶
type MessagesSavedReactionTagsObj struct {
Tags []*SavedReactionTag // Saved reaction tags.
Hash int64 // Hash used for caching, for more info click here. Can also be manually regenerated, if needed, using the custom algorithm specified here.
}
List of reaction tag names assigned by the user.
func (*MessagesSavedReactionTagsObj) CRC ¶
func (*MessagesSavedReactionTagsObj) CRC() uint32
func (*MessagesSavedReactionTagsObj) ImplementsMessagesSavedReactionTags ¶
func (*MessagesSavedReactionTagsObj) ImplementsMessagesSavedReactionTags()
type MessagesSearchCounter ¶
type MessagesSearchCounter struct {
Inexact bool `tl:"flag:1,encoded_in_bitflags"`
Filter MessagesFilter
Count int32
}
Indicates how many results would be found by a messages.search call with the same parameters
func (*MessagesSearchCounter) CRC ¶
func (*MessagesSearchCounter) CRC() uint32
func (*MessagesSearchCounter) FlagIndex ¶
func (*MessagesSearchCounter) FlagIndex() int
type MessagesSearchCustomEmojiParams ¶
func (*MessagesSearchCustomEmojiParams) CRC ¶
func (*MessagesSearchCustomEmojiParams) CRC() uint32
type MessagesSearchEmojiStickerSetsParams ¶
type MessagesSearchEmojiStickerSetsParams struct {
ExcludeFeatured bool `tl:"flag:0,encoded_in_bitflags"`
Q string
Hash int64
}
func (*MessagesSearchEmojiStickerSetsParams) CRC ¶
func (*MessagesSearchEmojiStickerSetsParams) CRC() uint32
func (*MessagesSearchEmojiStickerSetsParams) FlagIndex ¶
func (*MessagesSearchEmojiStickerSetsParams) FlagIndex() int
type MessagesSearchGlobalParams ¶
type MessagesSearchGlobalParams struct {
BroadcastsOnly bool `tl:"flag:1,encoded_in_bitflags"`
GroupsOnly bool `tl:"flag:2,encoded_in_bitflags"`
UsersOnly bool `tl:"flag:3,encoded_in_bitflags"`
FolderID int32 `tl:"flag:0"`
Q string
Filter MessagesFilter
MinDate int32
MaxDate int32
OffsetRate int32
OffsetPeer InputPeer
OffsetID int32
Limit int32
}
func (*MessagesSearchGlobalParams) CRC ¶
func (*MessagesSearchGlobalParams) CRC() uint32
func (*MessagesSearchGlobalParams) FlagIndex ¶
func (*MessagesSearchGlobalParams) FlagIndex() int
type MessagesSearchParams ¶
type MessagesSearchParams struct {
Peer InputPeer
Q string
FromID InputPeer `tl:"flag:0"`
SavedPeerID InputPeer `tl:"flag:2"`
SavedReaction []Reaction `tl:"flag:3"`
TopMsgID int32 `tl:"flag:1"`
Filter MessagesFilter
MinDate int32
MaxDate int32
OffsetID int32
AddOffset int32
Limit int32
MaxID int32
MinID int32
Hash int64
}
func (*MessagesSearchParams) CRC ¶
func (*MessagesSearchParams) CRC() uint32
func (*MessagesSearchParams) FlagIndex ¶
func (*MessagesSearchParams) FlagIndex() int
type MessagesSearchResultsCalendar ¶
type MessagesSearchResultsCalendar struct {
Inexact bool `tl:"flag:0,encoded_in_bitflags"`
Count int32
MinDate int32
MinMsgID int32
OffsetIDOffset int32 `tl:"flag:1"`
Periods []*SearchResultsCalendarPeriod
Messages []Message
Chats []Chat
Users []User
}
Information about found messages sent on a specific day
func (*MessagesSearchResultsCalendar) CRC ¶
func (*MessagesSearchResultsCalendar) CRC() uint32
func (*MessagesSearchResultsCalendar) FlagIndex ¶
func (*MessagesSearchResultsCalendar) FlagIndex() int
type MessagesSearchResultsPositions ¶
type MessagesSearchResultsPositions struct {
Count int32
Positions []*SearchResultPosition
}
Information about sparse positions of messages
func (*MessagesSearchResultsPositions) CRC ¶
func (*MessagesSearchResultsPositions) CRC() uint32
type MessagesSearchSentMediaParams ¶
type MessagesSearchSentMediaParams struct {
Q string
Filter MessagesFilter
Limit int32
}
func (*MessagesSearchSentMediaParams) CRC ¶
func (*MessagesSearchSentMediaParams) CRC() uint32
type MessagesSearchStickerSetsParams ¶
type MessagesSearchStickerSetsParams struct {
ExcludeFeatured bool `tl:"flag:0,encoded_in_bitflags"`
Q string
Hash int64
}
func (*MessagesSearchStickerSetsParams) CRC ¶
func (*MessagesSearchStickerSetsParams) CRC() uint32
func (*MessagesSearchStickerSetsParams) FlagIndex ¶
func (*MessagesSearchStickerSetsParams) FlagIndex() int
type MessagesSearchStickersParams ¶ added in v1.4.4
type MessagesSearchStickersParams struct {
Emojis bool `tl:"flag:0,encoded_in_bitflags"`
Q string
Emoticon string
LangCode []string
Offset int32
Limit int32
Hash int64
}
func (*MessagesSearchStickersParams) CRC ¶ added in v1.4.4
func (*MessagesSearchStickersParams) CRC() uint32
func (*MessagesSearchStickersParams) FlagIndex ¶ added in v1.4.4
func (*MessagesSearchStickersParams) FlagIndex() int
type MessagesSendBotRequestedPeerParams ¶
type MessagesSendBotRequestedPeerParams struct {
Peer InputPeer
MsgID int32
ButtonID int32
RequestedPeers []InputPeer
}
func (*MessagesSendBotRequestedPeerParams) CRC ¶
func (*MessagesSendBotRequestedPeerParams) CRC() uint32
type MessagesSendEncryptedFileParams ¶
type MessagesSendEncryptedFileParams struct {
Silent bool `tl:"flag:0,encoded_in_bitflags"`
Peer *InputEncryptedChat
RandomID int64
Data []byte
File InputEncryptedFile
}
func (*MessagesSendEncryptedFileParams) CRC ¶
func (*MessagesSendEncryptedFileParams) CRC() uint32
func (*MessagesSendEncryptedFileParams) FlagIndex ¶
func (*MessagesSendEncryptedFileParams) FlagIndex() int
type MessagesSendEncryptedParams ¶
type MessagesSendEncryptedParams struct {
Silent bool `tl:"flag:0,encoded_in_bitflags"`
Peer *InputEncryptedChat
RandomID int64
Data []byte
}
func (*MessagesSendEncryptedParams) CRC ¶
func (*MessagesSendEncryptedParams) CRC() uint32
func (*MessagesSendEncryptedParams) FlagIndex ¶
func (*MessagesSendEncryptedParams) FlagIndex() int
type MessagesSendEncryptedServiceParams ¶
type MessagesSendEncryptedServiceParams struct {
Peer *InputEncryptedChat
RandomID int64
Data []byte
}
func (*MessagesSendEncryptedServiceParams) CRC ¶
func (*MessagesSendEncryptedServiceParams) CRC() uint32
type MessagesSendInlineBotResultParams ¶
type MessagesSendInlineBotResultParams struct {
Silent bool `tl:"flag:5,encoded_in_bitflags"`
Background bool `tl:"flag:6,encoded_in_bitflags"`
ClearDraft bool `tl:"flag:7,encoded_in_bitflags"`
HideVia bool `tl:"flag:11,encoded_in_bitflags"`
Peer InputPeer
ReplyTo InputReplyTo `tl:"flag:0"`
RandomID int64
QueryID int64
ID string
ScheduleDate int32 `tl:"flag:10"`
SendAs InputPeer `tl:"flag:13"`
QuickReplyShortcut InputQuickReplyShortcut `tl:"flag:17"`
AllowPaidStars int64 `tl:"flag:21"`
}
func (*MessagesSendInlineBotResultParams) CRC ¶
func (*MessagesSendInlineBotResultParams) CRC() uint32
func (*MessagesSendInlineBotResultParams) FlagIndex ¶
func (*MessagesSendInlineBotResultParams) FlagIndex() int
type MessagesSendMediaParams ¶
type MessagesSendMediaParams struct {
Silent bool `tl:"flag:5,encoded_in_bitflags"`
Background bool `tl:"flag:6,encoded_in_bitflags"`
ClearDraft bool `tl:"flag:7,encoded_in_bitflags"`
Noforwards bool `tl:"flag:14,encoded_in_bitflags"`
UpdateStickersetsOrder bool `tl:"flag:15,encoded_in_bitflags"`
InvertMedia bool `tl:"flag:16,encoded_in_bitflags"`
AllowPaidFloodskip bool `tl:"flag:19,encoded_in_bitflags"`
Peer InputPeer
ReplyTo InputReplyTo `tl:"flag:0"`
Media InputMedia
Message string
RandomID int64
ReplyMarkup ReplyMarkup `tl:"flag:2"`
Entities []MessageEntity `tl:"flag:3"`
ScheduleDate int32 `tl:"flag:10"`
ScheduleRepeatPeriod int32 `tl:"flag:24"`
SendAs InputPeer `tl:"flag:13"`
QuickReplyShortcut InputQuickReplyShortcut `tl:"flag:17"`
Effect int64 `tl:"flag:18"`
AllowPaidStars int64 `tl:"flag:21"`
SuggestedPost *SuggestedPost `tl:"flag:22"`
}
func (*MessagesSendMediaParams) CRC ¶
func (*MessagesSendMediaParams) CRC() uint32
func (*MessagesSendMediaParams) FlagIndex ¶
func (*MessagesSendMediaParams) FlagIndex() int
type MessagesSendMessageParams ¶
type MessagesSendMessageParams struct {
NoWebpage bool `tl:"flag:1,encoded_in_bitflags"`
Silent bool `tl:"flag:5,encoded_in_bitflags"`
Background bool `tl:"flag:6,encoded_in_bitflags"`
ClearDraft bool `tl:"flag:7,encoded_in_bitflags"`
Noforwards bool `tl:"flag:14,encoded_in_bitflags"`
UpdateStickersetsOrder bool `tl:"flag:15,encoded_in_bitflags"`
InvertMedia bool `tl:"flag:16,encoded_in_bitflags"`
AllowPaidFloodskip bool `tl:"flag:19,encoded_in_bitflags"`
Peer InputPeer
ReplyTo InputReplyTo `tl:"flag:0"`
Message string
RandomID int64
ReplyMarkup ReplyMarkup `tl:"flag:2"`
Entities []MessageEntity `tl:"flag:3"`
ScheduleDate int32 `tl:"flag:10"`
ScheduleRepeatPeriod int32 `tl:"flag:24"`
SendAs InputPeer `tl:"flag:13"`
QuickReplyShortcut InputQuickReplyShortcut `tl:"flag:17"`
Effect int64 `tl:"flag:18"`
AllowPaidStars int64 `tl:"flag:21"`
SuggestedPost *SuggestedPost `tl:"flag:22"`
}
func (*MessagesSendMessageParams) CRC ¶
func (*MessagesSendMessageParams) CRC() uint32
func (*MessagesSendMessageParams) FlagIndex ¶
func (*MessagesSendMessageParams) FlagIndex() int
type MessagesSendMultiMediaParams ¶
type MessagesSendMultiMediaParams struct {
Silent bool `tl:"flag:5,encoded_in_bitflags"`
Background bool `tl:"flag:6,encoded_in_bitflags"`
ClearDraft bool `tl:"flag:7,encoded_in_bitflags"`
Noforwards bool `tl:"flag:14,encoded_in_bitflags"`
UpdateStickersetsOrder bool `tl:"flag:15,encoded_in_bitflags"`
InvertMedia bool `tl:"flag:16,encoded_in_bitflags"`
AllowPaidFloodskip bool `tl:"flag:19,encoded_in_bitflags"`
Peer InputPeer
ReplyTo InputReplyTo `tl:"flag:0"`
MultiMedia []*InputSingleMedia
ScheduleDate int32 `tl:"flag:10"`
SendAs InputPeer `tl:"flag:13"`
QuickReplyShortcut InputQuickReplyShortcut `tl:"flag:17"`
Effect int64 `tl:"flag:18"`
AllowPaidStars int64 `tl:"flag:21"`
}
func (*MessagesSendMultiMediaParams) CRC ¶
func (*MessagesSendMultiMediaParams) CRC() uint32
func (*MessagesSendMultiMediaParams) FlagIndex ¶
func (*MessagesSendMultiMediaParams) FlagIndex() int
type MessagesSendPaidReactionParams ¶
type MessagesSendPaidReactionParams struct {
Peer InputPeer
MsgID int32
Count int32
RandomID int64
Private PaidReactionPrivacy `tl:"flag:0"`
}
func (*MessagesSendPaidReactionParams) CRC ¶
func (*MessagesSendPaidReactionParams) CRC() uint32
func (*MessagesSendPaidReactionParams) FlagIndex ¶
func (*MessagesSendPaidReactionParams) FlagIndex() int
type MessagesSendQuickReplyMessagesParams ¶
type MessagesSendQuickReplyMessagesParams struct {
Peer InputPeer
ShortcutID int32
ID []int32
RandomID []int64
}
func (*MessagesSendQuickReplyMessagesParams) CRC ¶
func (*MessagesSendQuickReplyMessagesParams) CRC() uint32
type MessagesSendReactionParams ¶
type MessagesSendReactionParams struct {
Big bool `tl:"flag:1,encoded_in_bitflags"`
AddToRecent bool `tl:"flag:2,encoded_in_bitflags"`
Peer InputPeer
MsgID int32
Reaction []Reaction `tl:"flag:0"`
}
func (*MessagesSendReactionParams) CRC ¶
func (*MessagesSendReactionParams) CRC() uint32
func (*MessagesSendReactionParams) FlagIndex ¶
func (*MessagesSendReactionParams) FlagIndex() int
type MessagesSendScheduledMessagesParams ¶
func (*MessagesSendScheduledMessagesParams) CRC ¶
func (*MessagesSendScheduledMessagesParams) CRC() uint32
type MessagesSendScreenshotNotificationParams ¶
type MessagesSendScreenshotNotificationParams struct {
Peer InputPeer
ReplyTo InputReplyTo
RandomID int64
}
func (*MessagesSendScreenshotNotificationParams) CRC ¶
func (*MessagesSendScreenshotNotificationParams) CRC() uint32
type MessagesSendVoteParams ¶
func (*MessagesSendVoteParams) CRC ¶
func (*MessagesSendVoteParams) CRC() uint32
type MessagesSendWebViewDataParams ¶
type MessagesSendWebViewDataParams struct {
Bot InputUser
RandomID int64
ButtonText string
Data string
}
func (*MessagesSendWebViewDataParams) CRC ¶
func (*MessagesSendWebViewDataParams) CRC() uint32
type MessagesSendWebViewResultMessageParams ¶
type MessagesSendWebViewResultMessageParams struct {
BotQueryID string
Result InputBotInlineResult
}
func (*MessagesSendWebViewResultMessageParams) CRC ¶
func (*MessagesSendWebViewResultMessageParams) CRC() uint32
type MessagesSentEncryptedFile ¶
type MessagesSentEncryptedFile struct {
Date int32 // Sending date
File EncryptedFile // Attached file
}
Message with a file enclosure sent to a protected chat
func (*MessagesSentEncryptedFile) CRC ¶
func (*MessagesSentEncryptedFile) CRC() uint32
func (*MessagesSentEncryptedFile) ImplementsMessagesSentEncryptedMessage ¶
func (*MessagesSentEncryptedFile) ImplementsMessagesSentEncryptedMessage()
type MessagesSentEncryptedMessageObj ¶
type MessagesSentEncryptedMessageObj struct {
Date int32 // Date of sending
}
Message without file attachments sent to an encrypted file.
func (*MessagesSentEncryptedMessageObj) CRC ¶
func (*MessagesSentEncryptedMessageObj) CRC() uint32
func (*MessagesSentEncryptedMessageObj) ImplementsMessagesSentEncryptedMessage ¶
func (*MessagesSentEncryptedMessageObj) ImplementsMessagesSentEncryptedMessage()
type MessagesSetBotCallbackAnswerParams ¶
type MessagesSetBotCallbackAnswerParams struct {
Alert bool `tl:"flag:1,encoded_in_bitflags"`
QueryID int64
Message string `tl:"flag:0"`
URL string `tl:"flag:2"`
CacheTime int32
}
func (*MessagesSetBotCallbackAnswerParams) CRC ¶
func (*MessagesSetBotCallbackAnswerParams) CRC() uint32
func (*MessagesSetBotCallbackAnswerParams) FlagIndex ¶
func (*MessagesSetBotCallbackAnswerParams) FlagIndex() int
type MessagesSetBotPrecheckoutResultsParams ¶
type MessagesSetBotPrecheckoutResultsParams struct {
Success bool `tl:"flag:1,encoded_in_bitflags"`
QueryID int64
Error string `tl:"flag:0"`
}
func (*MessagesSetBotPrecheckoutResultsParams) CRC ¶
func (*MessagesSetBotPrecheckoutResultsParams) CRC() uint32
func (*MessagesSetBotPrecheckoutResultsParams) FlagIndex ¶
func (*MessagesSetBotPrecheckoutResultsParams) FlagIndex() int
type MessagesSetBotShippingResultsParams ¶
type MessagesSetBotShippingResultsParams struct {
QueryID int64
Error string `tl:"flag:0"`
ShippingOptions []*ShippingOption `tl:"flag:1"`
}
func (*MessagesSetBotShippingResultsParams) CRC ¶
func (*MessagesSetBotShippingResultsParams) CRC() uint32
func (*MessagesSetBotShippingResultsParams) FlagIndex ¶
func (*MessagesSetBotShippingResultsParams) FlagIndex() int
type MessagesSetChatAvailableReactionsParams ¶
type MessagesSetChatAvailableReactionsParams struct {
Peer InputPeer
AvailableReactions ChatReactions
ReactionsLimit int32 `tl:"flag:0"`
PaidEnabled bool `tl:"flag:1"`
}
func (*MessagesSetChatAvailableReactionsParams) CRC ¶
func (*MessagesSetChatAvailableReactionsParams) CRC() uint32
func (*MessagesSetChatAvailableReactionsParams) FlagIndex ¶
func (*MessagesSetChatAvailableReactionsParams) FlagIndex() int
type MessagesSetChatThemeParams ¶
type MessagesSetChatThemeParams struct {
Peer InputPeer
Theme InputChatTheme
}
func (*MessagesSetChatThemeParams) CRC ¶
func (*MessagesSetChatThemeParams) CRC() uint32
type MessagesSetChatWallPaperParams ¶
type MessagesSetChatWallPaperParams struct {
ForBoth bool `tl:"flag:3,encoded_in_bitflags"`
Revert bool `tl:"flag:4,encoded_in_bitflags"`
Peer InputPeer
Wallpaper InputWallPaper `tl:"flag:0"`
Settings *WallPaperSettings `tl:"flag:2"`
ID int32 `tl:"flag:1"`
}
func (*MessagesSetChatWallPaperParams) CRC ¶
func (*MessagesSetChatWallPaperParams) CRC() uint32
func (*MessagesSetChatWallPaperParams) FlagIndex ¶
func (*MessagesSetChatWallPaperParams) FlagIndex() int
type MessagesSetDefaultHistoryTtlParams ¶
type MessagesSetDefaultHistoryTtlParams struct {
Period int32
}
func (*MessagesSetDefaultHistoryTtlParams) CRC ¶
func (*MessagesSetDefaultHistoryTtlParams) CRC() uint32
type MessagesSetDefaultReactionParams ¶
type MessagesSetDefaultReactionParams struct {
Reaction Reaction
}
func (*MessagesSetDefaultReactionParams) CRC ¶
func (*MessagesSetDefaultReactionParams) CRC() uint32
type MessagesSetEncryptedTypingParams ¶
type MessagesSetEncryptedTypingParams struct {
Peer *InputEncryptedChat
Typing bool
}
func (*MessagesSetEncryptedTypingParams) CRC ¶
func (*MessagesSetEncryptedTypingParams) CRC() uint32
type MessagesSetGameScoreParams ¶
type MessagesSetGameScoreParams struct {
EditMessage bool `tl:"flag:0,encoded_in_bitflags"`
Force bool `tl:"flag:1,encoded_in_bitflags"`
Peer InputPeer
ID int32
UserID InputUser
Score int32
}
func (*MessagesSetGameScoreParams) CRC ¶
func (*MessagesSetGameScoreParams) CRC() uint32
func (*MessagesSetGameScoreParams) FlagIndex ¶
func (*MessagesSetGameScoreParams) FlagIndex() int
type MessagesSetHistoryTtlParams ¶
func (*MessagesSetHistoryTtlParams) CRC ¶
func (*MessagesSetHistoryTtlParams) CRC() uint32
type MessagesSetInlineBotResultsParams ¶
type MessagesSetInlineBotResultsParams struct {
Gallery bool `tl:"flag:0,encoded_in_bitflags"`
Private bool `tl:"flag:1,encoded_in_bitflags"`
QueryID int64
Results []InputBotInlineResult
CacheTime int32
NextOffset string `tl:"flag:2"`
SwitchPm *InlineBotSwitchPm `tl:"flag:3"`
SwitchWebview *InlineBotWebView `tl:"flag:4"`
}
func (*MessagesSetInlineBotResultsParams) CRC ¶
func (*MessagesSetInlineBotResultsParams) CRC() uint32
func (*MessagesSetInlineBotResultsParams) FlagIndex ¶
func (*MessagesSetInlineBotResultsParams) FlagIndex() int
type MessagesSetInlineGameScoreParams ¶
type MessagesSetInlineGameScoreParams struct {
EditMessage bool `tl:"flag:0,encoded_in_bitflags"`
Force bool `tl:"flag:1,encoded_in_bitflags"`
ID InputBotInlineMessageID
UserID InputUser
Score int32
}
func (*MessagesSetInlineGameScoreParams) CRC ¶
func (*MessagesSetInlineGameScoreParams) CRC() uint32
func (*MessagesSetInlineGameScoreParams) FlagIndex ¶
func (*MessagesSetInlineGameScoreParams) FlagIndex() int
type MessagesSetTypingParams ¶
type MessagesSetTypingParams struct {
Peer InputPeer
TopMsgID int32 `tl:"flag:0"`
Action SendMessageAction
}
func (*MessagesSetTypingParams) CRC ¶
func (*MessagesSetTypingParams) CRC() uint32
func (*MessagesSetTypingParams) FlagIndex ¶
func (*MessagesSetTypingParams) FlagIndex() int
type MessagesSponsoredMessagesEmpty ¶
type MessagesSponsoredMessagesEmpty struct{}
No sponsored messages are available.
func (*MessagesSponsoredMessagesEmpty) CRC ¶
func (*MessagesSponsoredMessagesEmpty) CRC() uint32
func (*MessagesSponsoredMessagesEmpty) ImplementsMessagesSponsoredMessages ¶
func (*MessagesSponsoredMessagesEmpty) ImplementsMessagesSponsoredMessages()
type MessagesSponsoredMessagesObj ¶
type MessagesSponsoredMessagesObj struct {
PostsBetween int32 `tl:"flag:0"` // If set, specifies the minimum number of messages between shown sponsored messages; otherwise, only one sponsored message must be shown after all ordinary messages.
StartDelay int32 `tl:"flag:1"` // For sponsored messages to show on channel videos, the number of seconds to wait before showing the first ad.
BetweenDelay int32 `tl:"flag:2"` // For sponsored messages to show on channel videos, the number of seconds to wait after the previous ad is hidden, before showing the next ad.
Messages []*SponsoredMessage // Sponsored messages
Chats []Chat // Chats mentioned in the sponsored messages
Users []User // Users mentioned in the sponsored messages
}
A set of sponsored messages associated to a channel
func (*MessagesSponsoredMessagesObj) CRC ¶
func (*MessagesSponsoredMessagesObj) CRC() uint32
func (*MessagesSponsoredMessagesObj) FlagIndex ¶
func (*MessagesSponsoredMessagesObj) FlagIndex() int
func (*MessagesSponsoredMessagesObj) ImplementsMessagesSponsoredMessages ¶
func (*MessagesSponsoredMessagesObj) ImplementsMessagesSponsoredMessages()
type MessagesStartBotParams ¶
type MessagesStartBotParams struct {
Bot InputUser
Peer InputPeer
RandomID int64
StartParam string
}
func (*MessagesStartBotParams) CRC ¶
func (*MessagesStartBotParams) CRC() uint32
type MessagesStartHistoryImportParams ¶
func (*MessagesStartHistoryImportParams) CRC ¶
func (*MessagesStartHistoryImportParams) CRC() uint32
type MessagesStickerSet ¶
type MessagesStickerSetInstallResultArchive ¶
type MessagesStickerSetInstallResultArchive struct {
Sets []StickerSetCovered // Archived stickersets
}
The stickerset was installed, but since there are too many stickersets some were archived
func (*MessagesStickerSetInstallResultArchive) CRC ¶
func (*MessagesStickerSetInstallResultArchive) CRC() uint32
func (*MessagesStickerSetInstallResultArchive) ImplementsMessagesStickerSetInstallResult ¶
func (*MessagesStickerSetInstallResultArchive) ImplementsMessagesStickerSetInstallResult()
type MessagesStickerSetInstallResultSuccess ¶
type MessagesStickerSetInstallResultSuccess struct{}
The stickerset was installed successfully
func (*MessagesStickerSetInstallResultSuccess) CRC ¶
func (*MessagesStickerSetInstallResultSuccess) CRC() uint32
func (*MessagesStickerSetInstallResultSuccess) ImplementsMessagesStickerSetInstallResult ¶
func (*MessagesStickerSetInstallResultSuccess) ImplementsMessagesStickerSetInstallResult()
type MessagesStickerSetNotModified ¶
type MessagesStickerSetNotModified struct{}
The stickerset hasn't changed
func (*MessagesStickerSetNotModified) CRC ¶
func (*MessagesStickerSetNotModified) CRC() uint32
func (*MessagesStickerSetNotModified) ImplementsMessagesStickerSet ¶
func (*MessagesStickerSetNotModified) ImplementsMessagesStickerSet()
type MessagesStickerSetObj ¶
type MessagesStickerSetObj struct {
Set *StickerSet // The stickerset
Packs []*StickerPack // Emoji info for stickers
Keywords []*StickerKeyword // Keywords for some or every sticker in the stickerset.
Documents []Document // Stickers in stickerset
}
Stickerset and stickers inside it
func (*MessagesStickerSetObj) CRC ¶
func (*MessagesStickerSetObj) CRC() uint32
func (*MessagesStickerSetObj) ImplementsMessagesStickerSet ¶
func (*MessagesStickerSetObj) ImplementsMessagesStickerSet()
type MessagesStickers ¶
type MessagesStickersNotModified ¶
type MessagesStickersNotModified struct{}
No new stickers were found for the given query
func (*MessagesStickersNotModified) CRC ¶
func (*MessagesStickersNotModified) CRC() uint32
func (*MessagesStickersNotModified) ImplementsMessagesStickers ¶
func (*MessagesStickersNotModified) ImplementsMessagesStickers()
type MessagesStickersObj ¶
type MessagesStickersObj struct {
Hash int64 // Hash used for caching, for more info click here
Stickers []Document // Stickers
}
Found stickers
func (*MessagesStickersObj) CRC ¶
func (*MessagesStickersObj) CRC() uint32
func (*MessagesStickersObj) ImplementsMessagesStickers ¶
func (*MessagesStickersObj) ImplementsMessagesStickers()
type MessagesToggleBotInAttachMenuParams ¶
type MessagesToggleBotInAttachMenuParams struct {
WriteAllowed bool `tl:"flag:0,encoded_in_bitflags"`
Bot InputUser
Enabled bool
}
func (*MessagesToggleBotInAttachMenuParams) CRC ¶
func (*MessagesToggleBotInAttachMenuParams) CRC() uint32
func (*MessagesToggleBotInAttachMenuParams) FlagIndex ¶
func (*MessagesToggleBotInAttachMenuParams) FlagIndex() int
type MessagesToggleDialogFilterTagsParams ¶
type MessagesToggleDialogFilterTagsParams struct {
Enabled bool
}
func (*MessagesToggleDialogFilterTagsParams) CRC ¶
func (*MessagesToggleDialogFilterTagsParams) CRC() uint32
type MessagesToggleDialogPinParams ¶
type MessagesToggleDialogPinParams struct {
Pinned bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputDialogPeer
}
func (*MessagesToggleDialogPinParams) CRC ¶
func (*MessagesToggleDialogPinParams) CRC() uint32
func (*MessagesToggleDialogPinParams) FlagIndex ¶
func (*MessagesToggleDialogPinParams) FlagIndex() int
type MessagesToggleNoForwardsParams ¶
func (*MessagesToggleNoForwardsParams) CRC ¶
func (*MessagesToggleNoForwardsParams) CRC() uint32
type MessagesTogglePaidReactionPrivacyParams ¶
type MessagesTogglePaidReactionPrivacyParams struct {
Peer InputPeer
MsgID int32
Private PaidReactionPrivacy
}
func (*MessagesTogglePaidReactionPrivacyParams) CRC ¶
func (*MessagesTogglePaidReactionPrivacyParams) CRC() uint32
type MessagesTogglePeerTranslationsParams ¶
type MessagesTogglePeerTranslationsParams struct {
Disabled bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputPeer
}
func (*MessagesTogglePeerTranslationsParams) CRC ¶
func (*MessagesTogglePeerTranslationsParams) CRC() uint32
func (*MessagesTogglePeerTranslationsParams) FlagIndex ¶
func (*MessagesTogglePeerTranslationsParams) FlagIndex() int
type MessagesToggleSavedDialogPinParams ¶
type MessagesToggleSavedDialogPinParams struct {
Pinned bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputDialogPeer
}
func (*MessagesToggleSavedDialogPinParams) CRC ¶
func (*MessagesToggleSavedDialogPinParams) CRC() uint32
func (*MessagesToggleSavedDialogPinParams) FlagIndex ¶
func (*MessagesToggleSavedDialogPinParams) FlagIndex() int
type MessagesToggleStickerSetsParams ¶
type MessagesToggleStickerSetsParams struct {
Uninstall bool `tl:"flag:0,encoded_in_bitflags"`
Archive bool `tl:"flag:1,encoded_in_bitflags"`
Unarchive bool `tl:"flag:2,encoded_in_bitflags"`
Stickersets []InputStickerSet
}
func (*MessagesToggleStickerSetsParams) CRC ¶
func (*MessagesToggleStickerSetsParams) CRC() uint32
func (*MessagesToggleStickerSetsParams) FlagIndex ¶
func (*MessagesToggleStickerSetsParams) FlagIndex() int
type MessagesToggleSuggestedPostApprovalParams ¶ added in v1.6.1
type MessagesToggleSuggestedPostApprovalParams struct {
Reject bool `tl:"flag:1,encoded_in_bitflags"`
Peer InputPeer
MsgID int32
ScheduleDate int32 `tl:"flag:0"`
RejectComment string `tl:"flag:2"`
}
func (*MessagesToggleSuggestedPostApprovalParams) CRC ¶ added in v1.6.1
func (*MessagesToggleSuggestedPostApprovalParams) CRC() uint32
func (*MessagesToggleSuggestedPostApprovalParams) FlagIndex ¶ added in v1.6.1
func (*MessagesToggleSuggestedPostApprovalParams) FlagIndex() int
type MessagesToggleTodoCompletedParams ¶ added in v1.6.1
type MessagesToggleTodoCompletedParams struct {
Peer InputPeer
MsgID int32
Completed []int32
Incompleted []int32
}
func (*MessagesToggleTodoCompletedParams) CRC ¶ added in v1.6.1
func (*MessagesToggleTodoCompletedParams) CRC() uint32
type MessagesTranscribeAudioParams ¶
func (*MessagesTranscribeAudioParams) CRC ¶
func (*MessagesTranscribeAudioParams) CRC() uint32
type MessagesTranscribedAudio ¶
type MessagesTranscribedAudio struct {
Pending bool `tl:"flag:0,encoded_in_bitflags"`
TranscriptionID int64
Text string
TrialRemainsNum int32 `tl:"flag:1"`
TrialRemainsUntilDate int32 `tl:"flag:1"`
}
Transcribed text from a voice message
func (*MessagesTranscribedAudio) CRC ¶
func (*MessagesTranscribedAudio) CRC() uint32
func (*MessagesTranscribedAudio) FlagIndex ¶
func (*MessagesTranscribedAudio) FlagIndex() int
type MessagesTranslateResult ¶
type MessagesTranslateResult struct {
Result []*TextWithEntities
}
Translated text with entities
func (*MessagesTranslateResult) CRC ¶
func (*MessagesTranslateResult) CRC() uint32
type MessagesTranslateTextParams ¶
type MessagesTranslateTextParams struct {
Peer InputPeer `tl:"flag:0"`
ID []int32 `tl:"flag:0"`
Text []*TextWithEntities `tl:"flag:1"`
ToLang string
}
func (*MessagesTranslateTextParams) CRC ¶
func (*MessagesTranslateTextParams) CRC() uint32
func (*MessagesTranslateTextParams) FlagIndex ¶
func (*MessagesTranslateTextParams) FlagIndex() int
type MessagesUninstallStickerSetParams ¶
type MessagesUninstallStickerSetParams struct {
Stickerset InputStickerSet
}
func (*MessagesUninstallStickerSetParams) CRC ¶
func (*MessagesUninstallStickerSetParams) CRC() uint32
type MessagesUnpinAllMessagesParams ¶
type MessagesUnpinAllMessagesParams struct {
Peer InputPeer
TopMsgID int32 `tl:"flag:0"`
SavedPeerID InputPeer `tl:"flag:1"`
}
func (*MessagesUnpinAllMessagesParams) CRC ¶
func (*MessagesUnpinAllMessagesParams) CRC() uint32
func (*MessagesUnpinAllMessagesParams) FlagIndex ¶
func (*MessagesUnpinAllMessagesParams) FlagIndex() int
type MessagesUpdateDialogFilterParams ¶
type MessagesUpdateDialogFilterParams struct {
ID int32
Filter DialogFilter `tl:"flag:0"`
}
func (*MessagesUpdateDialogFilterParams) CRC ¶
func (*MessagesUpdateDialogFilterParams) CRC() uint32
func (*MessagesUpdateDialogFilterParams) FlagIndex ¶
func (*MessagesUpdateDialogFilterParams) FlagIndex() int
type MessagesUpdateDialogFiltersOrderParams ¶
type MessagesUpdateDialogFiltersOrderParams struct {
Order []int32
}
func (*MessagesUpdateDialogFiltersOrderParams) CRC ¶
func (*MessagesUpdateDialogFiltersOrderParams) CRC() uint32
type MessagesUpdatePinnedForumTopicParams ¶ added in v1.6.3
func (*MessagesUpdatePinnedForumTopicParams) CRC ¶ added in v1.6.3
func (*MessagesUpdatePinnedForumTopicParams) CRC() uint32
type MessagesUpdatePinnedMessageParams ¶
type MessagesUpdatePinnedMessageParams struct {
Silent bool `tl:"flag:0,encoded_in_bitflags"`
Unpin bool `tl:"flag:1,encoded_in_bitflags"`
PmOneside bool `tl:"flag:2,encoded_in_bitflags"`
Peer InputPeer
ID int32
}
func (*MessagesUpdatePinnedMessageParams) CRC ¶
func (*MessagesUpdatePinnedMessageParams) CRC() uint32
func (*MessagesUpdatePinnedMessageParams) FlagIndex ¶
func (*MessagesUpdatePinnedMessageParams) FlagIndex() int
type MessagesUpdateSavedReactionTagParams ¶
func (*MessagesUpdateSavedReactionTagParams) CRC ¶
func (*MessagesUpdateSavedReactionTagParams) CRC() uint32
func (*MessagesUpdateSavedReactionTagParams) FlagIndex ¶
func (*MessagesUpdateSavedReactionTagParams) FlagIndex() int
type MessagesUploadEncryptedFileParams ¶
type MessagesUploadEncryptedFileParams struct {
Peer *InputEncryptedChat
File InputEncryptedFile
}
func (*MessagesUploadEncryptedFileParams) CRC ¶
func (*MessagesUploadEncryptedFileParams) CRC() uint32
type MessagesUploadImportedMediaParams ¶
type MessagesUploadImportedMediaParams struct {
Peer InputPeer
ImportID int64
FileName string
Media InputMedia
}
func (*MessagesUploadImportedMediaParams) CRC ¶
func (*MessagesUploadImportedMediaParams) CRC() uint32
type MessagesUploadMediaParams ¶
type MessagesUploadMediaParams struct {
BusinessConnectionID string `tl:"flag:0"`
Peer InputPeer
Media InputMedia
}
func (*MessagesUploadMediaParams) CRC ¶
func (*MessagesUploadMediaParams) CRC() uint32
func (*MessagesUploadMediaParams) FlagIndex ¶
func (*MessagesUploadMediaParams) FlagIndex() int
type MessagesViewSponsoredMessageParams ¶ added in v1.3.21
type MessagesViewSponsoredMessageParams struct {
RandomID []byte
}
func (*MessagesViewSponsoredMessageParams) CRC ¶ added in v1.3.21
func (*MessagesViewSponsoredMessageParams) CRC() uint32
type MessagesVotesList ¶
type MessagesVotesList struct {
Count int32
Votes []MessagePeerVote
Chats []Chat
Users []User
NextOffset string `tl:"flag:0"`
}
How users voted in a poll
func (*MessagesVotesList) CRC ¶
func (*MessagesVotesList) CRC() uint32
func (*MessagesVotesList) FlagIndex ¶
func (*MessagesVotesList) FlagIndex() int
type MessagesWebPage ¶
Represents an Instant View webpage.
func (*MessagesWebPage) CRC ¶
func (*MessagesWebPage) CRC() uint32
type MessagesWebPagePreview ¶ added in v1.5.6
type MessagesWebPagePreview struct {
Media MessageMedia
Chats []Chat
Users []User
}
Represents a webpage preview.
func (*MessagesWebPagePreview) CRC ¶ added in v1.5.6
func (*MessagesWebPagePreview) CRC() uint32
type Middleware ¶ added in v1.7.0
type Middleware func(MessageHandler) MessageHandler
type MissingInvitee ¶
type MissingInvitee struct {
PremiumWouldAllowInvite bool `tl:"flag:0,encoded_in_bitflags"`
PremiumRequiredForPm bool `tl:"flag:1,encoded_in_bitflags"`
UserID int64
}
Info about why a specific user could not be invited.
func (*MissingInvitee) CRC ¶
func (*MissingInvitee) CRC() uint32
func (*MissingInvitee) FlagIndex ¶
func (*MissingInvitee) FlagIndex() int
type MonoForumDialog ¶ added in v1.6.0
type MonoForumDialog struct {
UnreadMark bool `tl:"flag:3,encoded_in_bitflags"` // Whether this topic has a manually set (with messages.markDialogUnread) unread mark.
NopaidMessagesException bool `tl:"flag:4,encoded_in_bitflags"` // If set, an admin has exempted this peer from payment to send messages using account.toggleNoPaidMessagesException.
Peer Peer // The peer associated to the topic, AKA the topic ID.
TopMessage int32 // The latest message ID
ReadInboxMaxID int32 // Position up to which all incoming messages are read.
ReadOutboxMaxID int32 // Position up to which all outgoing messages are read.
UnreadCount int32 // Number of unread messages.
UnreadReactionsCount int32 // Number of unread reactions.
Draft DraftMessage `tl:"flag:1"` // A pending message draft.
}
Represents a monoforum topic.
func (*MonoForumDialog) CRC ¶ added in v1.6.0
func (*MonoForumDialog) CRC() uint32
func (*MonoForumDialog) FlagIndex ¶ added in v1.6.0
func (*MonoForumDialog) FlagIndex() int
func (*MonoForumDialog) ImplementsSavedDialog ¶ added in v1.6.0
func (*MonoForumDialog) ImplementsSavedDialog()
type MyBoost ¶
type MyBoost struct {
Slot int32
Peer Peer `tl:"flag:0"`
Date int32
Expires int32
CooldownUntilDate int32 `tl:"flag:1"`
}
Contains information about a single boost slot.
type NewMessage ¶
type NewMessage struct {
Action MessageAction
Channel *Channel
Chat *ChatObj
Client *Client
File *CustomFile
ID int32
Message *MessageObj
OriginalUpdate Message
Peer InputPeer
Sender *UserObj
SenderChat *Channel
}
func PackMessages ¶ added in v1.6.0
func PackMessages(c *Client, messages []Message) []*NewMessage
func (*NewMessage) Animation ¶
func (m *NewMessage) Animation() *DocumentObj
func (*NewMessage) Args ¶
func (m *NewMessage) Args() string
func (*NewMessage) ArgsList ¶ added in v1.6.10
func (m *NewMessage) ArgsList() []string
func (*NewMessage) Ask ¶
func (m *NewMessage) Ask(Text any, Opts ...*SendOptions) (*NewMessage, *NewMessage, error)
Ask starts new conversation with the user returns the sent message and the response message
func (*NewMessage) Audio ¶
func (m *NewMessage) Audio() *DocumentObj
func (*NewMessage) ChannelID ¶ added in v1.5.7
func (m *NewMessage) ChannelID() int64
func (*NewMessage) ChatID ¶
func (m *NewMessage) ChatID() int64
func (*NewMessage) ChatType ¶
func (m *NewMessage) ChatType() string
func (*NewMessage) CheckErr ¶ added in v1.6.9
func (m *NewMessage) CheckErr(obj any, err error) error
returns the error only, of a method
func (*NewMessage) Click ¶
func (m *NewMessage) Click(options ...any) (*MessagesBotCallbackAnswer, error)
Click clicks a button in a message.
If no argument is given, the first button will be clicked.
If an argument is provided, it can be one of the following:
- The text of the button to click.
- The data of the button to click.
- The coordinates of the button to click as a slice of integers [x, y].
func (*NewMessage) Contact ¶
func (m *NewMessage) Contact() *MessageMediaContact
func (*NewMessage) Conv ¶
func (m *NewMessage) Conv(timeout ...int32) (*Conversation, error)
Conv starts a new conversation with the user
func (*NewMessage) Date ¶ added in v1.4.8
func (m *NewMessage) Date() int32
func (*NewMessage) Delete ¶
func (m *NewMessage) Delete() (*MessagesAffectedMessages, error)
Delete deletes the message
func (*NewMessage) Document ¶
func (m *NewMessage) Document() *DocumentObj
func (*NewMessage) Download ¶
func (m *NewMessage) Download(opts ...*DownloadOptions) (string, error)
Download Media to Disk, if path is empty, it will be downloaded to the current directory, returns the path to the downloaded file
func (*NewMessage) Edit ¶
func (m *NewMessage) Edit(Text any, Opts ...*SendOptions) (*NewMessage, error)
func (*NewMessage) Fact ¶
func (m *NewMessage) Fact() ([]*FactCheck, error)
Fact checks the message for facts
func (*NewMessage) ForwardTo ¶
func (m *NewMessage) ForwardTo(PeerID any, Opts ...*ForwardOptions) (*NewMessage, error)
Forward forwards the message to a chat
func (*NewMessage) Game ¶
func (m *NewMessage) Game() *MessageMediaGame
func (*NewMessage) Geo ¶
func (m *NewMessage) Geo() *GeoPointObj
func (*NewMessage) GetChannel ¶ added in v1.5.7
func (m *NewMessage) GetChannel() (*Channel, error)
func (*NewMessage) GetChat ¶
func (m *NewMessage) GetChat() (*ChatObj, error)
func (*NewMessage) GetCommand ¶
func (m *NewMessage) GetCommand() string
GetCommand returns the command from the message. If the message is not a command, it returns an empty string.
func (*NewMessage) GetDiscussionMessages ¶ added in v1.6.9
func (m *NewMessage) GetDiscussionMessages() ([]*NewMessage, error)
func (*NewMessage) GetMediaGroup ¶
func (m *NewMessage) GetMediaGroup() ([]NewMessage, error)
GetMediaGroup returns the media group of the message
func (*NewMessage) GetPeer ¶
func (m *NewMessage) GetPeer() (int64, int64)
GetPeer returns the peer of the message
func (*NewMessage) GetReplyMessage ¶
func (m *NewMessage) GetReplyMessage() (*NewMessage, error)
func (*NewMessage) GetSender ¶
func (m *NewMessage) GetSender() (*UserObj, error)
func (*NewMessage) GetSenderChat ¶
func (m *NewMessage) GetSenderChat() *Channel
func (*NewMessage) Invoice ¶
func (m *NewMessage) Invoice() *MessageMediaInvoice
func (*NewMessage) IsAnonymous ¶ added in v1.7.0
func (m *NewMessage) IsAnonymous() bool
func (*NewMessage) IsChannel ¶
func (m *NewMessage) IsChannel() bool
func (*NewMessage) IsChannelPost ¶ added in v1.7.0
func (m *NewMessage) IsChannelPost() bool
func (*NewMessage) IsCommand ¶
func (m *NewMessage) IsCommand() bool
IsCommand returns true if the message is a command
func (*NewMessage) IsEmpty ¶ added in v1.5.7
func (m *NewMessage) IsEmpty() bool
func (*NewMessage) IsForward ¶
func (m *NewMessage) IsForward() bool
func (*NewMessage) IsGroup ¶
func (m *NewMessage) IsGroup() bool
func (*NewMessage) IsMedia ¶
func (m *NewMessage) IsMedia() bool
IsMedia returns true if message contains media
func (*NewMessage) IsOutgoing ¶ added in v1.7.0
func (m *NewMessage) IsOutgoing() bool
func (*NewMessage) IsPrivate ¶
func (m *NewMessage) IsPrivate() bool
func (*NewMessage) IsReply ¶
func (m *NewMessage) IsReply() bool
func (*NewMessage) IsService ¶ added in v1.7.0
func (m *NewMessage) IsService() bool
func (*NewMessage) Link ¶ added in v1.6.0
func (m *NewMessage) Link() string
Link returns the URL to the message Format: https://t.me/username/msgID for public chats Format: https://t.me/c/channelID/msgID for private chats
func (*NewMessage) MarkRead ¶
func (m *NewMessage) MarkRead() (err error)
func (*NewMessage) Marshal ¶
func (m *NewMessage) Marshal(noindent ...bool) string
func (*NewMessage) Media ¶
func (m *NewMessage) Media() MessageMedia
Media is a media object in a message
func (*NewMessage) MediaType ¶
func (m *NewMessage) MediaType() string
MediaType returns the type of the media in the message.
func (*NewMessage) MessageText ¶
func (m *NewMessage) MessageText() string
func (*NewMessage) Photo ¶
func (m *NewMessage) Photo() *PhotoObj
func (*NewMessage) Pin ¶
func (a *NewMessage) Pin(opts ...*PinOptions) (err error)
func (*NewMessage) Poll ¶
func (m *NewMessage) Poll() *MessageMediaPoll
func (*NewMessage) RawText ¶
func (m *NewMessage) RawText(markdown ...bool) string
func (*NewMessage) Reply ¶
func (m *NewMessage) Reply(Text any, Opts ...*SendOptions) (*NewMessage, error)
Client.SendMessage ReplyID set to messageID
func (*NewMessage) ReplyAlbum ¶
func (m *NewMessage) ReplyAlbum(Album any, Opts ...*MediaOptions) ([]*NewMessage, error)
func (*NewMessage) ReplyID ¶
func (m *NewMessage) ReplyID() int32
func (*NewMessage) ReplyMarkup ¶
func (m *NewMessage) ReplyMarkup() *ReplyMarkup
func (*NewMessage) ReplyMedia ¶
func (m *NewMessage) ReplyMedia(Media any, Opts ...*MediaOptions) (*NewMessage, error)
func (*NewMessage) ReplySenderID ¶
func (m *NewMessage) ReplySenderID() int64
func (*NewMessage) ReplyToMsgID ¶
func (m *NewMessage) ReplyToMsgID() int32
func (*NewMessage) ReplyWithoutError ¶
func (m *NewMessage) ReplyWithoutError(Text any, Opts ...*SendOptions) *NewMessage
ReplyWithoutError calls message.Reply and wraps the error to error channel of the client
func (*NewMessage) Respond ¶
func (m *NewMessage) Respond(Text any, Opts ...*SendOptions) (*NewMessage, error)
func (*NewMessage) RespondAlbum ¶
func (m *NewMessage) RespondAlbum(Album any, Opts ...*MediaOptions) ([]*NewMessage, error)
func (*NewMessage) RespondMedia ¶
func (m *NewMessage) RespondMedia(Media any, Opts ...*MediaOptions) (*NewMessage, error)
func (*NewMessage) SendAction ¶
func (m *NewMessage) SendAction(Action any) (*ActionResult, error)
func (*NewMessage) SendDice ¶
func (m *NewMessage) SendDice(Emoticon string) (*NewMessage, error)
func (*NewMessage) SenderID ¶
func (m *NewMessage) SenderID() int64
func (*NewMessage) Sticker ¶
func (m *NewMessage) Sticker() *DocumentObj
func (*NewMessage) Text ¶
func (m *NewMessage) Text() string
func (*NewMessage) TopicID ¶ added in v1.4.7
func (m *NewMessage) TopicID() (int32, bool)
return the topic id of the message if it is in a topic if it is a reply to a message, return the topic id of the message
func (*NewMessage) Unmarshal ¶
func (m *NewMessage) Unmarshal(data []byte) (*NewMessage, error)
func (*NewMessage) Unpin ¶
func (a *NewMessage) Unpin() (err error)
func (*NewMessage) Venue ¶
func (m *NewMessage) Venue() *MessageMediaVenue
func (*NewMessage) Video ¶
func (m *NewMessage) Video() *DocumentObj
func (*NewMessage) Voice ¶
func (m *NewMessage) Voice() *DocumentObj
func (*NewMessage) WaitClick ¶ added in v1.6.7
func (m *NewMessage) WaitClick(timeout ...int32) (*CallbackQuery, error)
func (*NewMessage) WebPage ¶
func (m *NewMessage) WebPage() *WebPageObj
func (*NewMessage) Wizard ¶ added in v1.6.10
func (m *NewMessage) Wizard(timeout ...int32) (*ConversationWizard, error)
Wizard starts a new conversation wizard with the user
type NotificationSound ¶
type NotificationSoundDefault ¶
type NotificationSoundDefault struct{}
Indicates the default notification sound should be used
func (*NotificationSoundDefault) CRC ¶
func (*NotificationSoundDefault) CRC() uint32
func (*NotificationSoundDefault) ImplementsNotificationSound ¶
func (*NotificationSoundDefault) ImplementsNotificationSound()
type NotificationSoundLocal ¶
type NotificationSoundLocal struct {
Title string // Notification sound title
Data string // Notification sound identifier (arbitrary data used by the client to identify a specific local notification sound)
}
Indicates a specific local notification sound should be used
func (*NotificationSoundLocal) CRC ¶
func (*NotificationSoundLocal) CRC() uint32
func (*NotificationSoundLocal) ImplementsNotificationSound ¶
func (*NotificationSoundLocal) ImplementsNotificationSound()
type NotificationSoundNone ¶
type NotificationSoundNone struct{}
No notification sound should be used
func (*NotificationSoundNone) CRC ¶
func (*NotificationSoundNone) CRC() uint32
func (*NotificationSoundNone) ImplementsNotificationSound ¶
func (*NotificationSoundNone) ImplementsNotificationSound()
type NotificationSoundRingtone ¶
type NotificationSoundRingtone struct {
ID int64 // Document ID of notification sound uploaded using account.uploadRingtone
}
A specific previously uploaded notification sound should be used
func (*NotificationSoundRingtone) CRC ¶
func (*NotificationSoundRingtone) CRC() uint32
func (*NotificationSoundRingtone) ImplementsNotificationSound ¶
func (*NotificationSoundRingtone) ImplementsNotificationSound()
type NotifyBroadcasts ¶
type NotifyBroadcasts struct{}
Channel notification settings
func (*NotifyBroadcasts) CRC ¶
func (*NotifyBroadcasts) CRC() uint32
func (*NotifyBroadcasts) ImplementsNotifyPeer ¶
func (*NotifyBroadcasts) ImplementsNotifyPeer()
type NotifyChats ¶
type NotifyChats struct{}
Notifications generated by all groups.
func (*NotifyChats) CRC ¶
func (*NotifyChats) CRC() uint32
func (*NotifyChats) ImplementsNotifyPeer ¶
func (*NotifyChats) ImplementsNotifyPeer()
type NotifyForumTopic ¶
Notifications generated by a topic in a forum.
func (*NotifyForumTopic) CRC ¶
func (*NotifyForumTopic) CRC() uint32
func (*NotifyForumTopic) ImplementsNotifyPeer ¶
func (*NotifyForumTopic) ImplementsNotifyPeer()
type NotifyPeer ¶
type NotifyPeerObj ¶
type NotifyPeerObj struct {
Peer Peer // user or group
}
Notifications generated by a certain user or group.
func (*NotifyPeerObj) CRC ¶
func (*NotifyPeerObj) CRC() uint32
func (*NotifyPeerObj) ImplementsNotifyPeer ¶
func (*NotifyPeerObj) ImplementsNotifyPeer()
type NotifyUsers ¶
type NotifyUsers struct{}
Notifications generated by all users.
func (*NotifyUsers) CRC ¶
func (*NotifyUsers) CRC() uint32
func (*NotifyUsers) ImplementsNotifyPeer ¶
func (*NotifyUsers) ImplementsNotifyPeer()
type OutboxReadDate ¶
type OutboxReadDate struct {
Date int32
}
Exact read date of a private message we sent to another user.
func (*OutboxReadDate) CRC ¶
func (*OutboxReadDate) CRC() uint32
type Page ¶
type Page struct {
Part bool `tl:"flag:0,encoded_in_bitflags"`
Rtl bool `tl:"flag:1,encoded_in_bitflags"`
V2 bool `tl:"flag:2,encoded_in_bitflags"`
URL string
Blocks []PageBlock
Photos []Photo
Documents []Document
Views int32 `tl:"flag:3"`
}
Instant view page
type PageBlockAnchor ¶
type PageBlockAnchor struct {
Name string // Name of target section
}
Link to section within the page itself (like `<a href="#target">anchor</a>`)
func (*PageBlockAnchor) CRC ¶
func (*PageBlockAnchor) CRC() uint32
func (*PageBlockAnchor) ImplementsPageBlock ¶
func (*PageBlockAnchor) ImplementsPageBlock()
type PageBlockAudio ¶
type PageBlockAudio struct {
AudioID int64 // Audio ID (to be fetched from the container page constructor
Caption *PageCaption // Audio caption
}
Audio
func (*PageBlockAudio) CRC ¶
func (*PageBlockAudio) CRC() uint32
func (*PageBlockAudio) ImplementsPageBlock ¶
func (*PageBlockAudio) ImplementsPageBlock()
type PageBlockAuthorDate ¶
type PageBlockAuthorDate struct {
Author RichText // Author name
PublishedDate int32 // Date of publication
}
Author and date of creation of article
func (*PageBlockAuthorDate) CRC ¶
func (*PageBlockAuthorDate) CRC() uint32
func (*PageBlockAuthorDate) ImplementsPageBlock ¶
func (*PageBlockAuthorDate) ImplementsPageBlock()
type PageBlockBlockquote ¶
Quote (equivalent to the HTML `<blockquote>`)
func (*PageBlockBlockquote) CRC ¶
func (*PageBlockBlockquote) CRC() uint32
func (*PageBlockBlockquote) ImplementsPageBlock ¶
func (*PageBlockBlockquote) ImplementsPageBlock()
type PageBlockChannel ¶
type PageBlockChannel struct {
Channel Chat // The channel/supergroup/chat
}
Reference to a telegram channel
func (*PageBlockChannel) CRC ¶
func (*PageBlockChannel) CRC() uint32
func (*PageBlockChannel) ImplementsPageBlock ¶
func (*PageBlockChannel) ImplementsPageBlock()
type PageBlockCollage ¶
type PageBlockCollage struct {
Items []PageBlock // Media elements
Caption *PageCaption // Caption
}
Collage of media
func (*PageBlockCollage) CRC ¶
func (*PageBlockCollage) CRC() uint32
func (*PageBlockCollage) ImplementsPageBlock ¶
func (*PageBlockCollage) ImplementsPageBlock()
type PageBlockCover ¶
type PageBlockCover struct {
Cover PageBlock // Cover
}
A page cover
func (*PageBlockCover) CRC ¶
func (*PageBlockCover) CRC() uint32
func (*PageBlockCover) ImplementsPageBlock ¶
func (*PageBlockCover) ImplementsPageBlock()
type PageBlockDetails ¶
type PageBlockDetails struct {
Open bool `tl:"flag:0,encoded_in_bitflags"` // Whether the block is open by default
Blocks []PageBlock // Block contents
Title RichText // Always visible heading for the block
}
A collapsible details block
func (*PageBlockDetails) CRC ¶
func (*PageBlockDetails) CRC() uint32
func (*PageBlockDetails) FlagIndex ¶
func (*PageBlockDetails) FlagIndex() int
func (*PageBlockDetails) ImplementsPageBlock ¶
func (*PageBlockDetails) ImplementsPageBlock()
type PageBlockDivider ¶
type PageBlockDivider struct{}
An empty block separating a page
func (*PageBlockDivider) CRC ¶
func (*PageBlockDivider) CRC() uint32
func (*PageBlockDivider) ImplementsPageBlock ¶
func (*PageBlockDivider) ImplementsPageBlock()
type PageBlockEmbed ¶
type PageBlockEmbed struct {
FullWidth bool `tl:"flag:0,encoded_in_bitflags"` // Whether the block should be full width
AllowScrolling bool `tl:"flag:3,encoded_in_bitflags"` // Whether scrolling should be allowed
URL string `tl:"flag:1"` // Web page URL, if available
Html string `tl:"flag:2"` // HTML-markup of the embedded page
PosterPhotoID int64 `tl:"flag:4"` // Poster photo, if available
W int32 `tl:"flag:5"` // Block width, if known
H int32 `tl:"flag:5"` // Block height, if known
Caption *PageCaption // Caption
}
An embedded webpage
func (*PageBlockEmbed) CRC ¶
func (*PageBlockEmbed) CRC() uint32
func (*PageBlockEmbed) FlagIndex ¶
func (*PageBlockEmbed) FlagIndex() int
func (*PageBlockEmbed) ImplementsPageBlock ¶
func (*PageBlockEmbed) ImplementsPageBlock()
type PageBlockEmbedPost ¶
type PageBlockEmbedPost struct {
URL string // Web page URL
WebpageID int64 // ID of generated webpage preview
AuthorPhotoID int64 // ID of the author's photo
Author string // Author name
Date int32 // Creation date
Blocks []PageBlock // Post contents
Caption *PageCaption // Caption
}
An embedded post
func (*PageBlockEmbedPost) CRC ¶
func (*PageBlockEmbedPost) CRC() uint32
func (*PageBlockEmbedPost) ImplementsPageBlock ¶
func (*PageBlockEmbedPost) ImplementsPageBlock()
type PageBlockFooter ¶
type PageBlockFooter struct {
}
Page footer
func (*PageBlockFooter) CRC ¶
func (*PageBlockFooter) CRC() uint32
func (*PageBlockFooter) ImplementsPageBlock ¶
func (*PageBlockFooter) ImplementsPageBlock()
type PageBlockHeader ¶
type PageBlockHeader struct {
Text RichText // Contents
}
Page header
func (*PageBlockHeader) CRC ¶
func (*PageBlockHeader) CRC() uint32
func (*PageBlockHeader) ImplementsPageBlock ¶
func (*PageBlockHeader) ImplementsPageBlock()
type PageBlockKicker ¶
type PageBlockKicker struct {
Text RichText // Contents
}
Kicker
func (*PageBlockKicker) CRC ¶
func (*PageBlockKicker) CRC() uint32
func (*PageBlockKicker) ImplementsPageBlock ¶
func (*PageBlockKicker) ImplementsPageBlock()
type PageBlockList ¶
type PageBlockList struct {
Items []PageListItem // List of blocks in an IV page
}
Unordered list of IV blocks
func (*PageBlockList) CRC ¶
func (*PageBlockList) CRC() uint32
func (*PageBlockList) ImplementsPageBlock ¶
func (*PageBlockList) ImplementsPageBlock()
type PageBlockMap ¶
type PageBlockMap struct {
Geo GeoPoint // Location of the map center
Zoom int32 // Map zoom level; 13-20
W int32 // Map width in pixels before applying scale; 16-102
H int32 // Map height in pixels before applying scale; 16-1024
Caption *PageCaption // Caption
}
A map
func (*PageBlockMap) CRC ¶
func (*PageBlockMap) CRC() uint32
func (*PageBlockMap) ImplementsPageBlock ¶
func (*PageBlockMap) ImplementsPageBlock()
type PageBlockOrderedList ¶
type PageBlockOrderedList struct {
Items []PageListOrderedItem // List items
}
Ordered list of IV blocks
func (*PageBlockOrderedList) CRC ¶
func (*PageBlockOrderedList) CRC() uint32
func (*PageBlockOrderedList) ImplementsPageBlock ¶
func (*PageBlockOrderedList) ImplementsPageBlock()
type PageBlockParagraph ¶
type PageBlockParagraph struct {
Text RichText // Text
}
A paragraph
func (*PageBlockParagraph) CRC ¶
func (*PageBlockParagraph) CRC() uint32
func (*PageBlockParagraph) ImplementsPageBlock ¶
func (*PageBlockParagraph) ImplementsPageBlock()
type PageBlockPhoto ¶
type PageBlockPhoto struct {
PhotoID int64 // Photo ID
Caption *PageCaption // Caption
URL string `tl:"flag:0"` // HTTP URL of page the photo leads to when clicked
WebpageID int64 `tl:"flag:0"` // ID of preview of the page the photo leads to when clicked
}
A photo
func (*PageBlockPhoto) CRC ¶
func (*PageBlockPhoto) CRC() uint32
func (*PageBlockPhoto) FlagIndex ¶
func (*PageBlockPhoto) FlagIndex() int
func (*PageBlockPhoto) ImplementsPageBlock ¶
func (*PageBlockPhoto) ImplementsPageBlock()
type PageBlockPreformatted ¶
type PageBlockPreformatted struct {
Text RichText // Text
Language string // Programming language of preformatted text
}
Preformatted (`<pre>` text)
func (*PageBlockPreformatted) CRC ¶
func (*PageBlockPreformatted) CRC() uint32
func (*PageBlockPreformatted) ImplementsPageBlock ¶
func (*PageBlockPreformatted) ImplementsPageBlock()
type PageBlockPullquote ¶
Pullquote
func (*PageBlockPullquote) CRC ¶
func (*PageBlockPullquote) CRC() uint32
func (*PageBlockPullquote) ImplementsPageBlock ¶
func (*PageBlockPullquote) ImplementsPageBlock()
type PageBlockRelatedArticles ¶
type PageBlockRelatedArticles struct {
Title RichText // Title
Articles []*PageRelatedArticle // Related articles
}
Related articles
func (*PageBlockRelatedArticles) CRC ¶
func (*PageBlockRelatedArticles) CRC() uint32
func (*PageBlockRelatedArticles) ImplementsPageBlock ¶
func (*PageBlockRelatedArticles) ImplementsPageBlock()
type PageBlockSlideshow ¶
type PageBlockSlideshow struct {
Items []PageBlock // Slideshow items
Caption *PageCaption // Caption
}
Slideshow
func (*PageBlockSlideshow) CRC ¶
func (*PageBlockSlideshow) CRC() uint32
func (*PageBlockSlideshow) ImplementsPageBlock ¶
func (*PageBlockSlideshow) ImplementsPageBlock()
type PageBlockSubheader ¶
type PageBlockSubheader struct {
Text RichText // Subheader
}
Subheader
func (*PageBlockSubheader) CRC ¶
func (*PageBlockSubheader) CRC() uint32
func (*PageBlockSubheader) ImplementsPageBlock ¶
func (*PageBlockSubheader) ImplementsPageBlock()
type PageBlockSubtitle ¶
type PageBlockSubtitle struct {
Text RichText // Text
}
Subtitle
func (*PageBlockSubtitle) CRC ¶
func (*PageBlockSubtitle) CRC() uint32
func (*PageBlockSubtitle) ImplementsPageBlock ¶
func (*PageBlockSubtitle) ImplementsPageBlock()
type PageBlockTable ¶
type PageBlockTable struct {
Bordered bool `tl:"flag:0,encoded_in_bitflags"` // Does the table have a visible border?
Striped bool `tl:"flag:1,encoded_in_bitflags"` // Is the table striped?
Title RichText // Title
Rows []*PageTableRow // Table rows
}
Table
func (*PageBlockTable) CRC ¶
func (*PageBlockTable) CRC() uint32
func (*PageBlockTable) FlagIndex ¶
func (*PageBlockTable) FlagIndex() int
func (*PageBlockTable) ImplementsPageBlock ¶
func (*PageBlockTable) ImplementsPageBlock()
type PageBlockTitle ¶
type PageBlockTitle struct {
Text RichText // Title
}
Title
func (*PageBlockTitle) CRC ¶
func (*PageBlockTitle) CRC() uint32
func (*PageBlockTitle) ImplementsPageBlock ¶
func (*PageBlockTitle) ImplementsPageBlock()
type PageBlockUnsupported ¶
type PageBlockUnsupported struct{}
Unsupported IV element
func (*PageBlockUnsupported) CRC ¶
func (*PageBlockUnsupported) CRC() uint32
func (*PageBlockUnsupported) ImplementsPageBlock ¶
func (*PageBlockUnsupported) ImplementsPageBlock()
type PageBlockVideo ¶
type PageBlockVideo struct {
Autoplay bool `tl:"flag:0,encoded_in_bitflags"` // Whether the video is set to autoplay
Loop bool `tl:"flag:1,encoded_in_bitflags"` // Whether the video is set to loop
VideoID int64 // Video ID
Caption *PageCaption // Caption
}
Video
func (*PageBlockVideo) CRC ¶
func (*PageBlockVideo) CRC() uint32
func (*PageBlockVideo) FlagIndex ¶
func (*PageBlockVideo) FlagIndex() int
func (*PageBlockVideo) ImplementsPageBlock ¶
func (*PageBlockVideo) ImplementsPageBlock()
type PageListItem ¶
type PageListItemBlocks ¶
type PageListItemBlocks struct {
Blocks []PageBlock // Blocks
}
List item
func (*PageListItemBlocks) CRC ¶
func (*PageListItemBlocks) CRC() uint32
func (*PageListItemBlocks) ImplementsPageListItem ¶
func (*PageListItemBlocks) ImplementsPageListItem()
type PageListItemText ¶
type PageListItemText struct {
Text RichText // Text
}
List item
func (*PageListItemText) CRC ¶
func (*PageListItemText) CRC() uint32
func (*PageListItemText) ImplementsPageListItem ¶
func (*PageListItemText) ImplementsPageListItem()
type PageListOrderedItem ¶
type PageListOrderedItemBlocks ¶
type PageListOrderedItemBlocks struct {
Num string // Number of element within ordered list
Blocks []PageBlock // Item contents
}
Ordered list of IV blocks
func (*PageListOrderedItemBlocks) CRC ¶
func (*PageListOrderedItemBlocks) CRC() uint32
func (*PageListOrderedItemBlocks) ImplementsPageListOrderedItem ¶
func (*PageListOrderedItemBlocks) ImplementsPageListOrderedItem()
type PageListOrderedItemText ¶
type PageListOrderedItemText struct {
Num string // Number of element within ordered list
Text RichText // Text
}
Ordered list of text items
func (*PageListOrderedItemText) CRC ¶
func (*PageListOrderedItemText) CRC() uint32
func (*PageListOrderedItemText) ImplementsPageListOrderedItem ¶
func (*PageListOrderedItemText) ImplementsPageListOrderedItem()
type PageRelatedArticle ¶
type PageRelatedArticle struct {
URL string
WebpageID int64
Title string `tl:"flag:0"`
Description string `tl:"flag:1"`
PhotoID int64 `tl:"flag:2"`
Author string `tl:"flag:3"`
PublishedDate int32 `tl:"flag:4"`
}
Related article
func (*PageRelatedArticle) CRC ¶
func (*PageRelatedArticle) CRC() uint32
func (*PageRelatedArticle) FlagIndex ¶
func (*PageRelatedArticle) FlagIndex() int
type PageTableCell ¶
type PageTableCell struct {
Header bool `tl:"flag:0,encoded_in_bitflags"`
AlignCenter bool `tl:"flag:3,encoded_in_bitflags"`
AlignRight bool `tl:"flag:4,encoded_in_bitflags"`
ValignMiddle bool `tl:"flag:5,encoded_in_bitflags"`
ValignBottom bool `tl:"flag:6,encoded_in_bitflags"`
Text RichText `tl:"flag:7"`
Colspan int32 `tl:"flag:1"`
Rowspan int32 `tl:"flag:2"`
}
Table cell
func (*PageTableCell) CRC ¶
func (*PageTableCell) CRC() uint32
func (*PageTableCell) FlagIndex ¶
func (*PageTableCell) FlagIndex() int
type PageTableRow ¶
type PageTableRow struct {
Cells []*PageTableCell
}
Table row
func (*PageTableRow) CRC ¶
func (*PageTableRow) CRC() uint32
type PaidReactionPrivacy ¶ added in v1.5.6
type PaidReactionPrivacyAnonymous ¶ added in v1.5.6
type PaidReactionPrivacyAnonymous struct{}
Send paid reactions anonymously.
func (*PaidReactionPrivacyAnonymous) CRC ¶ added in v1.5.6
func (*PaidReactionPrivacyAnonymous) CRC() uint32
func (*PaidReactionPrivacyAnonymous) ImplementsPaidReactionPrivacy ¶ added in v1.5.6
func (*PaidReactionPrivacyAnonymous) ImplementsPaidReactionPrivacy()
type PaidReactionPrivacyDefault ¶ added in v1.5.6
type PaidReactionPrivacyDefault struct{}
Uses the default reaction privacy, set using messages.togglePaidReactionPrivacy.
func (*PaidReactionPrivacyDefault) CRC ¶ added in v1.5.6
func (*PaidReactionPrivacyDefault) CRC() uint32
func (*PaidReactionPrivacyDefault) ImplementsPaidReactionPrivacy ¶ added in v1.5.6
func (*PaidReactionPrivacyDefault) ImplementsPaidReactionPrivacy()
type PaidReactionPrivacyPeer ¶ added in v1.5.6
type PaidReactionPrivacyPeer struct {
Peer InputPeer // The peer to send reactions as.
}
Send paid reactions as the specified peer, fetched using channels.getSendAs.
func (*PaidReactionPrivacyPeer) CRC ¶ added in v1.5.6
func (*PaidReactionPrivacyPeer) CRC() uint32
func (*PaidReactionPrivacyPeer) ImplementsPaidReactionPrivacy ¶ added in v1.5.6
func (*PaidReactionPrivacyPeer) ImplementsPaidReactionPrivacy()
type Participant ¶
type Participant struct {
User *UserObj `json:"user,omitempty"`
Participant ChannelParticipant `json:"participant,omitempty"`
Status string `json:"status,omitempty"`
Rights *ChatAdminRights `json:"rights,omitempty"`
Rank string `json:"rank,omitempty"`
}
type ParticipantHandler ¶
type ParticipantHandler func(m *ParticipantUpdate) error
type ParticipantOptions ¶
type ParticipantOptions struct {
Query string `json:"query,omitempty"`
Filter ChannelParticipantsFilter `json:"filter,omitempty"`
Offset int32 `json:"offset,omitempty"`
Limit int32 `json:"limit,omitempty"`
SleepThresholdMs int32 `json:"sleep_threshold_ms,omitempty"`
}
type ParticipantUpdate ¶
type ParticipantUpdate struct {
Client *Client
OriginalUpdate *UpdateChannelParticipant
Channel *Channel
User *UserObj
Actor *UserObj
Old ChannelParticipant
New ChannelParticipant
Invite ExportedChatInvite
Date int32
}
func (*ParticipantUpdate) ActorID ¶
func (pu *ParticipantUpdate) ActorID() int64
func (*ParticipantUpdate) Ban ¶
func (pu *ParticipantUpdate) Ban() (bool, error)
func (*ParticipantUpdate) ChannelID ¶
func (pu *ParticipantUpdate) ChannelID() int64
func (*ParticipantUpdate) ChatID ¶ added in v1.6.7
func (pu *ParticipantUpdate) ChatID() int64
func (*ParticipantUpdate) Demote ¶
func (pu *ParticipantUpdate) Demote() (bool, error)
func (*ParticipantUpdate) IsAdded ¶
func (pu *ParticipantUpdate) IsAdded() bool
func (*ParticipantUpdate) IsBanned ¶
func (pu *ParticipantUpdate) IsBanned() bool
func (*ParticipantUpdate) IsDemoted ¶
func (pu *ParticipantUpdate) IsDemoted() bool
func (*ParticipantUpdate) IsJoined ¶
func (pu *ParticipantUpdate) IsJoined() bool
func (*ParticipantUpdate) IsKicked ¶
func (pu *ParticipantUpdate) IsKicked() bool
func (*ParticipantUpdate) IsLeft ¶
func (pu *ParticipantUpdate) IsLeft() bool
func (*ParticipantUpdate) IsPromoted ¶
func (pu *ParticipantUpdate) IsPromoted() bool
func (*ParticipantUpdate) Kick ¶
func (pu *ParticipantUpdate) Kick() (bool, error)
func (*ParticipantUpdate) Marshal ¶
func (pu *ParticipantUpdate) Marshal(noindent ...bool) string
func (*ParticipantUpdate) Promote ¶
func (pu *ParticipantUpdate) Promote() (bool, error)
func (*ParticipantUpdate) Unban ¶
func (pu *ParticipantUpdate) Unban() (bool, error)
func (*ParticipantUpdate) UserID ¶
func (pu *ParticipantUpdate) UserID() int64
type Passkey ¶ added in v1.6.10
type PasswordKdfAlgo ¶
type PasswordKdfAlgoSHA256SHA256Pbkdf2Hmacsha512Iter100000SHA256ModPow ¶
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)
G int32 // Base (see SRP 2FA login)
P []byte // 2048-bit modulus (see SRP 2FA login)
}
This key derivation algorithm defines that SRP 2FA login must be used
func (*PasswordKdfAlgoSHA256SHA256Pbkdf2Hmacsha512Iter100000SHA256ModPow) ImplementsPasswordKdfAlgo ¶
func (*PasswordKdfAlgoSHA256SHA256Pbkdf2Hmacsha512Iter100000SHA256ModPow) ImplementsPasswordKdfAlgo()
type PasswordKdfAlgoUnknown ¶
type PasswordKdfAlgoUnknown struct{}
Unknown KDF (most likely, the client is outdated and does not support the specified KDF algorithm)
func (*PasswordKdfAlgoUnknown) CRC ¶
func (*PasswordKdfAlgoUnknown) CRC() uint32
func (*PasswordKdfAlgoUnknown) ImplementsPasswordKdfAlgo ¶
func (*PasswordKdfAlgoUnknown) ImplementsPasswordKdfAlgo()
type PasswordOptions ¶
type PaymentCharge ¶
Payment identifier
func (*PaymentCharge) CRC ¶
func (*PaymentCharge) CRC() uint32
type PaymentFormMethod ¶
Represents an additional payment method
func (*PaymentFormMethod) CRC ¶
func (*PaymentFormMethod) CRC() uint32
type PaymentRequestedInfo ¶
type PaymentRequestedInfo struct {
Name string `tl:"flag:0"`
Phone string `tl:"flag:1"`
Email string `tl:"flag:2"`
ShippingAddress *PostAddress `tl:"flag:3"`
}
Order info provided by the user
func (*PaymentRequestedInfo) CRC ¶
func (*PaymentRequestedInfo) CRC() uint32
func (*PaymentRequestedInfo) FlagIndex ¶
func (*PaymentRequestedInfo) FlagIndex() int
type PaymentSavedCredentialsCard ¶
Saved credit card
func (*PaymentSavedCredentialsCard) CRC ¶
func (*PaymentSavedCredentialsCard) CRC() uint32
type PaymentsApplyGiftCodeParams ¶
type PaymentsApplyGiftCodeParams struct {
Slug string
}
func (*PaymentsApplyGiftCodeParams) CRC ¶
func (*PaymentsApplyGiftCodeParams) CRC() uint32
type PaymentsAssignAppStoreTransactionParams ¶
type PaymentsAssignAppStoreTransactionParams struct {
Receipt []byte
Purpose InputStorePaymentPurpose
}
func (*PaymentsAssignAppStoreTransactionParams) CRC ¶
func (*PaymentsAssignAppStoreTransactionParams) CRC() uint32
type PaymentsAssignPlayMarketTransactionParams ¶
type PaymentsAssignPlayMarketTransactionParams struct {
Receipt *DataJson
Purpose InputStorePaymentPurpose
}
func (*PaymentsAssignPlayMarketTransactionParams) CRC ¶
func (*PaymentsAssignPlayMarketTransactionParams) CRC() uint32
type PaymentsBankCardData ¶
type PaymentsBankCardData struct {
Title string
OpenUrls []*BankCardOpenURL
}
Credit card info, provided by the card's bank(s)
func (*PaymentsBankCardData) CRC ¶
func (*PaymentsBankCardData) CRC() uint32
type PaymentsBotCancelStarsSubscriptionParams ¶ added in v1.4.2
type PaymentsBotCancelStarsSubscriptionParams struct {
Restore bool `tl:"flag:0,encoded_in_bitflags"`
UserID InputUser
ChargeID string
}
func (*PaymentsBotCancelStarsSubscriptionParams) CRC ¶ added in v1.4.2
func (*PaymentsBotCancelStarsSubscriptionParams) CRC() uint32
func (*PaymentsBotCancelStarsSubscriptionParams) FlagIndex ¶ added in v1.4.2
func (*PaymentsBotCancelStarsSubscriptionParams) FlagIndex() int
type PaymentsCanPurchaseStoreParams ¶ added in v1.6.0
type PaymentsCanPurchaseStoreParams struct {
Purpose InputStorePaymentPurpose
}
func (*PaymentsCanPurchaseStoreParams) CRC ¶ added in v1.6.0
func (*PaymentsCanPurchaseStoreParams) CRC() uint32
type PaymentsChangeStarsSubscriptionParams ¶
type PaymentsChangeStarsSubscriptionParams struct {
Peer InputPeer
SubscriptionID string
Canceled bool `tl:"flag:0"`
}
func (*PaymentsChangeStarsSubscriptionParams) CRC ¶
func (*PaymentsChangeStarsSubscriptionParams) CRC() uint32
func (*PaymentsChangeStarsSubscriptionParams) FlagIndex ¶
func (*PaymentsChangeStarsSubscriptionParams) FlagIndex() int
type PaymentsCheckCanSendGiftParams ¶ added in v1.6.3
type PaymentsCheckCanSendGiftParams struct {
GiftID int64
}
func (*PaymentsCheckCanSendGiftParams) CRC ¶ added in v1.6.3
func (*PaymentsCheckCanSendGiftParams) CRC() uint32
type PaymentsCheckCanSendGiftResult ¶ added in v1.6.3
type PaymentsCheckCanSendGiftResultFail ¶ added in v1.6.3
type PaymentsCheckCanSendGiftResultFail struct {
Reason *TextWithEntities // The reason why it can't be sent yet.
}
The specified gift cannot be sent yet for the specified reason.
func (*PaymentsCheckCanSendGiftResultFail) CRC ¶ added in v1.6.3
func (*PaymentsCheckCanSendGiftResultFail) CRC() uint32
func (*PaymentsCheckCanSendGiftResultFail) ImplementsPaymentsCheckCanSendGiftResult ¶ added in v1.6.3
func (*PaymentsCheckCanSendGiftResultFail) ImplementsPaymentsCheckCanSendGiftResult()
type PaymentsCheckCanSendGiftResultOk ¶ added in v1.6.3
type PaymentsCheckCanSendGiftResultOk struct{}
The specified gift can be sent.
func (*PaymentsCheckCanSendGiftResultOk) CRC ¶ added in v1.6.3
func (*PaymentsCheckCanSendGiftResultOk) CRC() uint32
func (*PaymentsCheckCanSendGiftResultOk) ImplementsPaymentsCheckCanSendGiftResult ¶ added in v1.6.3
func (*PaymentsCheckCanSendGiftResultOk) ImplementsPaymentsCheckCanSendGiftResult()
type PaymentsCheckGiftCodeParams ¶
type PaymentsCheckGiftCodeParams struct {
Slug string
}
func (*PaymentsCheckGiftCodeParams) CRC ¶
func (*PaymentsCheckGiftCodeParams) CRC() uint32
type PaymentsCheckedGiftCode ¶
type PaymentsCheckedGiftCode struct {
ViaGiveaway bool `tl:"flag:2,encoded_in_bitflags"`
FromID Peer `tl:"flag:4"`
GiveawayMsgID int32 `tl:"flag:3"`
ToID int64 `tl:"flag:0"`
Date int32
Days int32
UsedDate int32 `tl:"flag:1"`
Chats []Chat
Users []User
}
Contains info about a Telegram Premium giftcode link.
func (*PaymentsCheckedGiftCode) CRC ¶
func (*PaymentsCheckedGiftCode) CRC() uint32
func (*PaymentsCheckedGiftCode) FlagIndex ¶
func (*PaymentsCheckedGiftCode) FlagIndex() int
type PaymentsClearSavedInfoParams ¶
type PaymentsClearSavedInfoParams struct {
Credentials bool `tl:"flag:0,encoded_in_bitflags"`
Info bool `tl:"flag:1,encoded_in_bitflags"`
}
func (*PaymentsClearSavedInfoParams) CRC ¶
func (*PaymentsClearSavedInfoParams) CRC() uint32
func (*PaymentsClearSavedInfoParams) FlagIndex ¶
func (*PaymentsClearSavedInfoParams) FlagIndex() int
type PaymentsConnectStarRefBotParams ¶ added in v1.4.8
func (*PaymentsConnectStarRefBotParams) CRC ¶ added in v1.4.8
func (*PaymentsConnectStarRefBotParams) CRC() uint32
type PaymentsConnectedStarRefBots ¶ added in v1.4.8
type PaymentsConnectedStarRefBots struct {
Count int32
ConnectedBots []*ConnectedBotStarRef
Users []User
}
Active affiliations
func (*PaymentsConnectedStarRefBots) CRC ¶ added in v1.4.8
func (*PaymentsConnectedStarRefBots) CRC() uint32
type PaymentsConvertStarGiftParams ¶
type PaymentsConvertStarGiftParams struct {
Stargift InputSavedStarGift
}
func (*PaymentsConvertStarGiftParams) CRC ¶
func (*PaymentsConvertStarGiftParams) CRC() uint32
type PaymentsCreateStarGiftCollectionParams ¶ added in v1.6.3
type PaymentsCreateStarGiftCollectionParams struct {
Peer InputPeer
Title string
Stargift []InputSavedStarGift
}
func (*PaymentsCreateStarGiftCollectionParams) CRC ¶ added in v1.6.3
func (*PaymentsCreateStarGiftCollectionParams) CRC() uint32
type PaymentsDeleteStarGiftCollectionParams ¶ added in v1.6.3
func (*PaymentsDeleteStarGiftCollectionParams) CRC ¶ added in v1.6.3
func (*PaymentsDeleteStarGiftCollectionParams) CRC() uint32
type PaymentsEditConnectedStarRefBotParams ¶ added in v1.4.8
type PaymentsEditConnectedStarRefBotParams struct {
Revoked bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputPeer
Link string
}
func (*PaymentsEditConnectedStarRefBotParams) CRC ¶ added in v1.4.8
func (*PaymentsEditConnectedStarRefBotParams) CRC() uint32
func (*PaymentsEditConnectedStarRefBotParams) FlagIndex ¶ added in v1.4.8
func (*PaymentsEditConnectedStarRefBotParams) FlagIndex() int
type PaymentsExportInvoiceParams ¶
type PaymentsExportInvoiceParams struct {
InvoiceMedia InputMedia
}
func (*PaymentsExportInvoiceParams) CRC ¶
func (*PaymentsExportInvoiceParams) CRC() uint32
type PaymentsExportedInvoice ¶
type PaymentsExportedInvoice struct {
URL string
}
Exported invoice deep link
func (*PaymentsExportedInvoice) CRC ¶
func (*PaymentsExportedInvoice) CRC() uint32
type PaymentsFulfillStarsSubscriptionParams ¶
func (*PaymentsFulfillStarsSubscriptionParams) CRC ¶
func (*PaymentsFulfillStarsSubscriptionParams) CRC() uint32
type PaymentsGetBankCardDataParams ¶
type PaymentsGetBankCardDataParams struct {
Number string
}
func (*PaymentsGetBankCardDataParams) CRC ¶
func (*PaymentsGetBankCardDataParams) CRC() uint32
type PaymentsGetConnectedStarRefBotParams ¶ added in v1.4.8
func (*PaymentsGetConnectedStarRefBotParams) CRC ¶ added in v1.4.8
func (*PaymentsGetConnectedStarRefBotParams) CRC() uint32
type PaymentsGetConnectedStarRefBotsParams ¶ added in v1.4.8
type PaymentsGetConnectedStarRefBotsParams struct {
Peer InputPeer
OffsetDate int32 `tl:"flag:2"`
OffsetLink string `tl:"flag:2"`
Limit int32
}
func (*PaymentsGetConnectedStarRefBotsParams) CRC ¶ added in v1.4.8
func (*PaymentsGetConnectedStarRefBotsParams) CRC() uint32
func (*PaymentsGetConnectedStarRefBotsParams) FlagIndex ¶ added in v1.4.8
func (*PaymentsGetConnectedStarRefBotsParams) FlagIndex() int
type PaymentsGetGiveawayInfoParams ¶
func (*PaymentsGetGiveawayInfoParams) CRC ¶
func (*PaymentsGetGiveawayInfoParams) CRC() uint32
type PaymentsGetPaymentFormParams ¶
type PaymentsGetPaymentFormParams struct {
Invoice InputInvoice
ThemeParams *DataJson `tl:"flag:0"`
}
func (*PaymentsGetPaymentFormParams) CRC ¶
func (*PaymentsGetPaymentFormParams) CRC() uint32
func (*PaymentsGetPaymentFormParams) FlagIndex ¶
func (*PaymentsGetPaymentFormParams) FlagIndex() int
type PaymentsGetPaymentReceiptParams ¶
func (*PaymentsGetPaymentReceiptParams) CRC ¶
func (*PaymentsGetPaymentReceiptParams) CRC() uint32
type PaymentsGetPremiumGiftCodeOptionsParams ¶
type PaymentsGetPremiumGiftCodeOptionsParams struct {
BoostPeer InputPeer `tl:"flag:0"`
}
func (*PaymentsGetPremiumGiftCodeOptionsParams) CRC ¶
func (*PaymentsGetPremiumGiftCodeOptionsParams) CRC() uint32
func (*PaymentsGetPremiumGiftCodeOptionsParams) FlagIndex ¶
func (*PaymentsGetPremiumGiftCodeOptionsParams) FlagIndex() int
type PaymentsGetResaleStarGiftsParams ¶ added in v1.6.0
type PaymentsGetResaleStarGiftsParams struct {
SortByPrice bool `tl:"flag:1,encoded_in_bitflags"`
SortByNum bool `tl:"flag:2,encoded_in_bitflags"`
AttributesHash int64 `tl:"flag:0"`
GiftID int64
Attributes []StarGiftAttributeID `tl:"flag:3"`
Offset string
Limit int32
}
func (*PaymentsGetResaleStarGiftsParams) CRC ¶ added in v1.6.0
func (*PaymentsGetResaleStarGiftsParams) CRC() uint32
func (*PaymentsGetResaleStarGiftsParams) FlagIndex ¶ added in v1.6.0
func (*PaymentsGetResaleStarGiftsParams) FlagIndex() int
type PaymentsGetSavedInfoParams ¶
type PaymentsGetSavedInfoParams struct{}
func (*PaymentsGetSavedInfoParams) CRC ¶
func (*PaymentsGetSavedInfoParams) CRC() uint32
type PaymentsGetSavedStarGiftParams ¶ added in v1.5.6
type PaymentsGetSavedStarGiftParams struct {
Stargift []InputSavedStarGift
}
func (*PaymentsGetSavedStarGiftParams) CRC ¶ added in v1.5.6
func (*PaymentsGetSavedStarGiftParams) CRC() uint32
type PaymentsGetSavedStarGiftsParams ¶ added in v1.5.6
type PaymentsGetSavedStarGiftsParams struct {
ExcludeUnsaved bool `tl:"flag:0,encoded_in_bitflags"`
ExcludeSaved bool `tl:"flag:1,encoded_in_bitflags"`
ExcludeUnlimited bool `tl:"flag:2,encoded_in_bitflags"`
ExcludeUnique bool `tl:"flag:4,encoded_in_bitflags"`
SortByValue bool `tl:"flag:5,encoded_in_bitflags"`
ExcludeUpgradable bool `tl:"flag:7,encoded_in_bitflags"`
ExcludeUnupgradable bool `tl:"flag:8,encoded_in_bitflags"`
PeerColorAvailable bool `tl:"flag:9,encoded_in_bitflags"`
ExcludeHosted bool `tl:"flag:10,encoded_in_bitflags"`
Peer InputPeer
CollectionID int32 `tl:"flag:6"`
Offset string
Limit int32
}
func (*PaymentsGetSavedStarGiftsParams) CRC ¶ added in v1.5.6
func (*PaymentsGetSavedStarGiftsParams) CRC() uint32
func (*PaymentsGetSavedStarGiftsParams) FlagIndex ¶ added in v1.5.6
func (*PaymentsGetSavedStarGiftsParams) FlagIndex() int
type PaymentsGetStarGiftActiveAuctionsParams ¶ added in v1.6.9
type PaymentsGetStarGiftActiveAuctionsParams struct {
Hash int64
}
func (*PaymentsGetStarGiftActiveAuctionsParams) CRC ¶ added in v1.6.9
func (*PaymentsGetStarGiftActiveAuctionsParams) CRC() uint32
type PaymentsGetStarGiftAuctionAcquiredGiftsParams ¶ added in v1.6.9
type PaymentsGetStarGiftAuctionAcquiredGiftsParams struct {
GiftID int64
}
func (*PaymentsGetStarGiftAuctionAcquiredGiftsParams) CRC ¶ added in v1.6.9
func (*PaymentsGetStarGiftAuctionAcquiredGiftsParams) CRC() uint32
type PaymentsGetStarGiftAuctionStateParams ¶ added in v1.6.9
type PaymentsGetStarGiftAuctionStateParams struct {
Auction InputStarGiftAuction
Version int32
}
func (*PaymentsGetStarGiftAuctionStateParams) CRC ¶ added in v1.6.9
func (*PaymentsGetStarGiftAuctionStateParams) CRC() uint32
type PaymentsGetStarGiftCollectionsParams ¶ added in v1.6.3
func (*PaymentsGetStarGiftCollectionsParams) CRC ¶ added in v1.6.3
func (*PaymentsGetStarGiftCollectionsParams) CRC() uint32
type PaymentsGetStarGiftUpgradeAttributesParams ¶ added in v1.6.10
type PaymentsGetStarGiftUpgradeAttributesParams struct {
GiftID int64
}
func (*PaymentsGetStarGiftUpgradeAttributesParams) CRC ¶ added in v1.6.10
func (*PaymentsGetStarGiftUpgradeAttributesParams) CRC() uint32
type PaymentsGetStarGiftUpgradePreviewParams ¶ added in v1.5.3
type PaymentsGetStarGiftUpgradePreviewParams struct {
GiftID int64
}
func (*PaymentsGetStarGiftUpgradePreviewParams) CRC ¶ added in v1.5.3
func (*PaymentsGetStarGiftUpgradePreviewParams) CRC() uint32
type PaymentsGetStarGiftWithdrawalURLParams ¶ added in v1.5.6
type PaymentsGetStarGiftWithdrawalURLParams struct {
Stargift InputSavedStarGift
Password InputCheckPasswordSRP
}
func (*PaymentsGetStarGiftWithdrawalURLParams) CRC ¶ added in v1.5.6
func (*PaymentsGetStarGiftWithdrawalURLParams) CRC() uint32
type PaymentsGetStarGiftsParams ¶
type PaymentsGetStarGiftsParams struct {
Hash int32
}
func (*PaymentsGetStarGiftsParams) CRC ¶
func (*PaymentsGetStarGiftsParams) CRC() uint32
type PaymentsGetStarsGiftOptionsParams ¶
type PaymentsGetStarsGiftOptionsParams struct {
UserID InputUser `tl:"flag:0"`
}
func (*PaymentsGetStarsGiftOptionsParams) CRC ¶
func (*PaymentsGetStarsGiftOptionsParams) CRC() uint32
func (*PaymentsGetStarsGiftOptionsParams) FlagIndex ¶
func (*PaymentsGetStarsGiftOptionsParams) FlagIndex() int
type PaymentsGetStarsGiveawayOptionsParams ¶
type PaymentsGetStarsGiveawayOptionsParams struct{}
func (*PaymentsGetStarsGiveawayOptionsParams) CRC ¶
func (*PaymentsGetStarsGiveawayOptionsParams) CRC() uint32
type PaymentsGetStarsRevenueAdsAccountURLParams ¶
type PaymentsGetStarsRevenueAdsAccountURLParams struct {
Peer InputPeer
}
func (*PaymentsGetStarsRevenueAdsAccountURLParams) CRC ¶
func (*PaymentsGetStarsRevenueAdsAccountURLParams) CRC() uint32
type PaymentsGetStarsRevenueStatsParams ¶
type PaymentsGetStarsRevenueStatsParams struct {
Dark bool `tl:"flag:0,encoded_in_bitflags"`
Ton bool `tl:"flag:1,encoded_in_bitflags"`
Peer InputPeer
}
func (*PaymentsGetStarsRevenueStatsParams) CRC ¶
func (*PaymentsGetStarsRevenueStatsParams) CRC() uint32
func (*PaymentsGetStarsRevenueStatsParams) FlagIndex ¶
func (*PaymentsGetStarsRevenueStatsParams) FlagIndex() int
type PaymentsGetStarsRevenueWithdrawalURLParams ¶
type PaymentsGetStarsRevenueWithdrawalURLParams struct {
Ton bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputPeer
Amount int64 `tl:"flag:1"`
Password InputCheckPasswordSRP
}
func (*PaymentsGetStarsRevenueWithdrawalURLParams) CRC ¶
func (*PaymentsGetStarsRevenueWithdrawalURLParams) CRC() uint32
func (*PaymentsGetStarsRevenueWithdrawalURLParams) FlagIndex ¶ added in v1.6.1
func (*PaymentsGetStarsRevenueWithdrawalURLParams) FlagIndex() int
type PaymentsGetStarsStatusParams ¶
type PaymentsGetStarsStatusParams struct {
Ton bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputPeer
}
func (*PaymentsGetStarsStatusParams) CRC ¶
func (*PaymentsGetStarsStatusParams) CRC() uint32
func (*PaymentsGetStarsStatusParams) FlagIndex ¶ added in v1.6.1
func (*PaymentsGetStarsStatusParams) FlagIndex() int
type PaymentsGetStarsSubscriptionsParams ¶
type PaymentsGetStarsSubscriptionsParams struct {
MissingBalance bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputPeer
Offset string
}
func (*PaymentsGetStarsSubscriptionsParams) CRC ¶
func (*PaymentsGetStarsSubscriptionsParams) CRC() uint32
func (*PaymentsGetStarsSubscriptionsParams) FlagIndex ¶
func (*PaymentsGetStarsSubscriptionsParams) FlagIndex() int
type PaymentsGetStarsTopupOptionsParams ¶
type PaymentsGetStarsTopupOptionsParams struct{}
func (*PaymentsGetStarsTopupOptionsParams) CRC ¶
func (*PaymentsGetStarsTopupOptionsParams) CRC() uint32
type PaymentsGetStarsTransactionsByIDParams ¶
type PaymentsGetStarsTransactionsByIDParams struct {
Ton bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputPeer
ID []*InputStarsTransaction
}
func (*PaymentsGetStarsTransactionsByIDParams) CRC ¶
func (*PaymentsGetStarsTransactionsByIDParams) CRC() uint32
func (*PaymentsGetStarsTransactionsByIDParams) FlagIndex ¶ added in v1.6.3
func (*PaymentsGetStarsTransactionsByIDParams) FlagIndex() int
type PaymentsGetStarsTransactionsParams ¶
type PaymentsGetStarsTransactionsParams struct {
Inbound bool `tl:"flag:0,encoded_in_bitflags"`
Outbound bool `tl:"flag:1,encoded_in_bitflags"`
Ascending bool `tl:"flag:2,encoded_in_bitflags"`
Ton bool `tl:"flag:4,encoded_in_bitflags"`
SubscriptionID string `tl:"flag:3"`
Peer InputPeer
Offset string
Limit int32
}
func (*PaymentsGetStarsTransactionsParams) CRC ¶
func (*PaymentsGetStarsTransactionsParams) CRC() uint32
func (*PaymentsGetStarsTransactionsParams) FlagIndex ¶
func (*PaymentsGetStarsTransactionsParams) FlagIndex() int
type PaymentsGetSuggestedStarRefBotsParams ¶ added in v1.4.8
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 ¶ added in v1.4.8
func (*PaymentsGetSuggestedStarRefBotsParams) CRC() uint32
func (*PaymentsGetSuggestedStarRefBotsParams) FlagIndex ¶ added in v1.4.8
func (*PaymentsGetSuggestedStarRefBotsParams) FlagIndex() int
type PaymentsGetUniqueStarGiftParams ¶ added in v1.5.6
type PaymentsGetUniqueStarGiftParams struct {
Slug string
}
func (*PaymentsGetUniqueStarGiftParams) CRC ¶ added in v1.5.6
func (*PaymentsGetUniqueStarGiftParams) CRC() uint32
type PaymentsGetUniqueStarGiftValueInfoParams ¶ added in v1.6.3
type PaymentsGetUniqueStarGiftValueInfoParams struct {
Slug string
}
func (*PaymentsGetUniqueStarGiftValueInfoParams) CRC ¶ added in v1.6.3
func (*PaymentsGetUniqueStarGiftValueInfoParams) CRC() uint32
type PaymentsGiveawayInfo ¶
type PaymentsGiveawayInfoObj ¶
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.
StartDate int32 // When was the giveaway started
JoinedTooEarlyDate int32 `tl:"flag:1"` // The current user can't participate in the giveaway, because they were already a member of the channel when the giveaway started, and the `only_new_subscribers` was set when starting the giveaway.
AdminDisallowedChatID int64 `tl:"flag:2"` // If set, the current user can't participate in the giveaway, because they are an administrator in one of the channels (ID specified in this flag) that created the giveaway.
DisallowedCountry string `tl:"flag:4"` // If set, the current user can't participate in this giveaway, because their phone number is from the specified disallowed country (specified as a two-letter ISO 3166-1 alpha-2 country code).
}
Contains info about an ongoing giveaway.
func (*PaymentsGiveawayInfoObj) CRC ¶
func (*PaymentsGiveawayInfoObj) CRC() uint32
func (*PaymentsGiveawayInfoObj) FlagIndex ¶
func (*PaymentsGiveawayInfoObj) FlagIndex() int
func (*PaymentsGiveawayInfoObj) ImplementsPaymentsGiveawayInfo ¶
func (*PaymentsGiveawayInfoObj) ImplementsPaymentsGiveawayInfo()
type PaymentsGiveawayInfoResults ¶
type PaymentsGiveawayInfoResults struct {
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.
}
A giveaway has ended.
func (*PaymentsGiveawayInfoResults) CRC ¶
func (*PaymentsGiveawayInfoResults) CRC() uint32
func (*PaymentsGiveawayInfoResults) FlagIndex ¶
func (*PaymentsGiveawayInfoResults) FlagIndex() int
func (*PaymentsGiveawayInfoResults) ImplementsPaymentsGiveawayInfo ¶
func (*PaymentsGiveawayInfoResults) ImplementsPaymentsGiveawayInfo()
type PaymentsLaunchPrepaidGiveawayParams ¶
type PaymentsLaunchPrepaidGiveawayParams struct {
Peer InputPeer
GiveawayID int64
Purpose InputStorePaymentPurpose
}
func (*PaymentsLaunchPrepaidGiveawayParams) CRC ¶
func (*PaymentsLaunchPrepaidGiveawayParams) CRC() uint32
type PaymentsPaymentForm ¶
type PaymentsPaymentFormObj ¶
type PaymentsPaymentFormObj struct {
CanSaveCredentials bool `tl:"flag:2,encoded_in_bitflags"` // Whether the user can choose to save credentials.
PasswordMissing bool `tl:"flag:3,encoded_in_bitflags"` // Indicates that the user can save payment credentials, but only after setting up a 2FA password (currently the account doesn't have a 2FA password)
FormID int64 // Form ID
BotID int64 // Bot ID
Title string // Form title
Description string // Description
Photo WebDocument `tl:"flag:5"` // Product photo
Invoice *Invoice // Invoice
ProviderID int64 // Payment provider ID.
URL string // Payment form URL
NativeProvider string `tl:"flag:4"` // 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
AdditionalMethods []*PaymentFormMethod `tl:"flag:6"` // Additional payment methods
SavedInfo *PaymentRequestedInfo `tl:"flag:0"` // Saved server-side order information
SavedCredentials []*PaymentSavedCredentialsCard `tl:"flag:1"` // Contains information about saved card credentials
Users []User // Users
}
Payment form
func (*PaymentsPaymentFormObj) CRC ¶
func (*PaymentsPaymentFormObj) CRC() uint32
func (*PaymentsPaymentFormObj) FlagIndex ¶
func (*PaymentsPaymentFormObj) FlagIndex() int
func (*PaymentsPaymentFormObj) ImplementsPaymentsPaymentForm ¶
func (*PaymentsPaymentFormObj) ImplementsPaymentsPaymentForm()
type PaymentsPaymentFormStarGift ¶
Represents a payment form for a gift
func (*PaymentsPaymentFormStarGift) CRC ¶
func (*PaymentsPaymentFormStarGift) CRC() uint32
func (*PaymentsPaymentFormStarGift) ImplementsPaymentsPaymentForm ¶
func (*PaymentsPaymentFormStarGift) ImplementsPaymentsPaymentForm()
type PaymentsPaymentFormStars ¶
type PaymentsPaymentFormStars struct {
FormID int64 // Form ID.
BotID int64 // Bot ID.
Title string // Form title
Description string // Description
Photo WebDocument `tl:"flag:5"` // Product photo
Invoice *Invoice // Invoice
Users []User // Info about users mentioned in the other fields.
}
Represents a payment form, for payments to be using Telegram Stars
func (*PaymentsPaymentFormStars) CRC ¶
func (*PaymentsPaymentFormStars) CRC() uint32
func (*PaymentsPaymentFormStars) FlagIndex ¶
func (*PaymentsPaymentFormStars) FlagIndex() int
func (*PaymentsPaymentFormStars) ImplementsPaymentsPaymentForm ¶
func (*PaymentsPaymentFormStars) ImplementsPaymentsPaymentForm()
type PaymentsPaymentReceipt ¶
type PaymentsPaymentReceiptObj ¶
type PaymentsPaymentReceiptObj struct {
Date int32 // Date of generation
BotID int64 // Bot ID
ProviderID int64 // Provider ID
Title string // Title
Description string // Description
Photo WebDocument `tl:"flag:2"` // Photo
Invoice *Invoice // Invoice
Info *PaymentRequestedInfo `tl:"flag:0"` // Info
Shipping *ShippingOption `tl:"flag:1"` // Selected shipping option
TipAmount int64 `tl:"flag:3"` // Tipped amount
Currency string // Three-letter ISO 4217 currency code
TotalAmount int64 // Total amount 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).
CredentialsTitle string // Payment credential name
Users []User // Users
}
Receipt
func (*PaymentsPaymentReceiptObj) CRC ¶
func (*PaymentsPaymentReceiptObj) CRC() uint32
func (*PaymentsPaymentReceiptObj) FlagIndex ¶
func (*PaymentsPaymentReceiptObj) FlagIndex() int
func (*PaymentsPaymentReceiptObj) ImplementsPaymentsPaymentReceipt ¶
func (*PaymentsPaymentReceiptObj) ImplementsPaymentsPaymentReceipt()
type PaymentsPaymentReceiptStars ¶
type PaymentsPaymentReceiptStars struct {
Date int32 // Date of generation
BotID int64 // Bot ID
Title string // Title
Description string // Description
Photo WebDocument `tl:"flag:2"` // Product photo
Invoice *Invoice // Invoice
Currency string // Currency, always `XTR`.
TotalAmount int64 // Amount of Telegram Stars.
TransactionID string // Transaction ID
Users []User // Info about users mentioned in the other fields.
}
Receipt for payment made using Telegram Stars.
func (*PaymentsPaymentReceiptStars) CRC ¶
func (*PaymentsPaymentReceiptStars) CRC() uint32
func (*PaymentsPaymentReceiptStars) FlagIndex ¶
func (*PaymentsPaymentReceiptStars) FlagIndex() int
func (*PaymentsPaymentReceiptStars) ImplementsPaymentsPaymentReceipt ¶
func (*PaymentsPaymentReceiptStars) ImplementsPaymentsPaymentReceipt()
type PaymentsPaymentResult ¶
type PaymentsPaymentResultObj ¶
type PaymentsPaymentResultObj struct {
Updates Updates // Info about the payment
}
Payment result
func (*PaymentsPaymentResultObj) CRC ¶
func (*PaymentsPaymentResultObj) CRC() uint32
func (*PaymentsPaymentResultObj) ImplementsPaymentsPaymentResult ¶
func (*PaymentsPaymentResultObj) ImplementsPaymentsPaymentResult()
type PaymentsPaymentVerificationNeeded ¶
type PaymentsPaymentVerificationNeeded struct {
URL string // URL for additional payment credentials verification
}
Payment was not successful, additional verification is needed
func (*PaymentsPaymentVerificationNeeded) CRC ¶
func (*PaymentsPaymentVerificationNeeded) CRC() uint32
func (*PaymentsPaymentVerificationNeeded) ImplementsPaymentsPaymentResult ¶
func (*PaymentsPaymentVerificationNeeded) ImplementsPaymentsPaymentResult()
type PaymentsRefundStarsChargeParams ¶
func (*PaymentsRefundStarsChargeParams) CRC ¶
func (*PaymentsRefundStarsChargeParams) CRC() uint32
type PaymentsReorderStarGiftCollectionsParams ¶ added in v1.6.3
func (*PaymentsReorderStarGiftCollectionsParams) CRC ¶ added in v1.6.3
func (*PaymentsReorderStarGiftCollectionsParams) CRC() uint32
type PaymentsResaleStarGifts ¶ added in v1.6.0
type PaymentsResaleStarGifts struct {
Count int32
Gifts []StarGift
NextOffset string `tl:"flag:0"`
Attributes []StarGiftAttribute `tl:"flag:1"`
AttributesHash int64 `tl:"flag:1"`
Chats []Chat
Counters []*StarGiftAttributeCounter `tl:"flag:2"`
Users []User
}
List of gifts currently on resale.
func (*PaymentsResaleStarGifts) CRC ¶ added in v1.6.0
func (*PaymentsResaleStarGifts) CRC() uint32
func (*PaymentsResaleStarGifts) FlagIndex ¶ added in v1.6.0
func (*PaymentsResaleStarGifts) FlagIndex() int
type PaymentsResolveStarGiftOfferParams ¶ added in v1.6.10
type PaymentsResolveStarGiftOfferParams struct {
Decline bool `tl:"flag:0,encoded_in_bitflags"`
OfferMsgID int32
}
func (*PaymentsResolveStarGiftOfferParams) CRC ¶ added in v1.6.10
func (*PaymentsResolveStarGiftOfferParams) CRC() uint32
func (*PaymentsResolveStarGiftOfferParams) FlagIndex ¶ added in v1.6.10
func (*PaymentsResolveStarGiftOfferParams) FlagIndex() int
type PaymentsSaveStarGiftParams ¶
type PaymentsSaveStarGiftParams struct {
Unsave bool `tl:"flag:0,encoded_in_bitflags"`
Stargift InputSavedStarGift
}
func (*PaymentsSaveStarGiftParams) CRC ¶
func (*PaymentsSaveStarGiftParams) CRC() uint32
func (*PaymentsSaveStarGiftParams) FlagIndex ¶
func (*PaymentsSaveStarGiftParams) FlagIndex() int
type PaymentsSavedInfo ¶
type PaymentsSavedInfo struct {
HasSavedCredentials bool `tl:"flag:1,encoded_in_bitflags"`
SavedInfo *PaymentRequestedInfo `tl:"flag:0"`
}
Saved server-side order information
func (*PaymentsSavedInfo) CRC ¶
func (*PaymentsSavedInfo) CRC() uint32
func (*PaymentsSavedInfo) FlagIndex ¶
func (*PaymentsSavedInfo) FlagIndex() int
type PaymentsSavedStarGifts ¶ added in v1.5.6
type PaymentsSavedStarGifts struct {
Count int32
ChatNotificationsEnabled bool `tl:"flag:1"`
Gifts []*SavedStarGift
NextOffset string `tl:"flag:0"`
Chats []Chat
Users []User
}
Represents a list of gifts.
func (*PaymentsSavedStarGifts) CRC ¶ added in v1.5.6
func (*PaymentsSavedStarGifts) CRC() uint32
func (*PaymentsSavedStarGifts) FlagIndex ¶ added in v1.5.6
func (*PaymentsSavedStarGifts) FlagIndex() int
type PaymentsSendPaymentFormParams ¶
type PaymentsSendPaymentFormParams struct {
FormID int64
Invoice InputInvoice
RequestedInfoID string `tl:"flag:0"`
ShippingOptionID string `tl:"flag:1"`
Credentials InputPaymentCredentials
TipAmount int64 `tl:"flag:2"`
}
func (*PaymentsSendPaymentFormParams) CRC ¶
func (*PaymentsSendPaymentFormParams) CRC() uint32
func (*PaymentsSendPaymentFormParams) FlagIndex ¶
func (*PaymentsSendPaymentFormParams) FlagIndex() int
type PaymentsSendStarGiftOfferParams ¶ added in v1.6.10
type PaymentsSendStarGiftOfferParams struct {
Peer InputPeer
Slug string
Price StarsAmount
Duration int32
RandomID int64
AllowPaidStars int64 `tl:"flag:0"`
}
func (*PaymentsSendStarGiftOfferParams) CRC ¶ added in v1.6.10
func (*PaymentsSendStarGiftOfferParams) CRC() uint32
func (*PaymentsSendStarGiftOfferParams) FlagIndex ¶ added in v1.6.10
func (*PaymentsSendStarGiftOfferParams) FlagIndex() int
type PaymentsSendStarsFormParams ¶
type PaymentsSendStarsFormParams struct {
FormID int64
Invoice InputInvoice
}
func (*PaymentsSendStarsFormParams) CRC ¶
func (*PaymentsSendStarsFormParams) CRC() uint32
type PaymentsStarGiftActiveAuctions ¶ added in v1.6.9
type PaymentsStarGiftActiveAuctionsNotModified ¶ added in v1.6.9
type PaymentsStarGiftActiveAuctionsNotModified struct{}
func (*PaymentsStarGiftActiveAuctionsNotModified) CRC ¶ added in v1.6.9
func (*PaymentsStarGiftActiveAuctionsNotModified) CRC() uint32
func (*PaymentsStarGiftActiveAuctionsNotModified) ImplementsPaymentsStarGiftActiveAuctions ¶ added in v1.6.9
func (*PaymentsStarGiftActiveAuctionsNotModified) ImplementsPaymentsStarGiftActiveAuctions()
type PaymentsStarGiftActiveAuctionsObj ¶ added in v1.6.9
type PaymentsStarGiftActiveAuctionsObj struct {
Auctions []*StarGiftActiveAuctionState
Users []User
Chats []Chat
}
func (*PaymentsStarGiftActiveAuctionsObj) CRC ¶ added in v1.6.9
func (*PaymentsStarGiftActiveAuctionsObj) CRC() uint32
func (*PaymentsStarGiftActiveAuctionsObj) ImplementsPaymentsStarGiftActiveAuctions ¶ added in v1.6.9
func (*PaymentsStarGiftActiveAuctionsObj) ImplementsPaymentsStarGiftActiveAuctions()
type PaymentsStarGiftAuctionAcquiredGifts ¶ added in v1.6.9
type PaymentsStarGiftAuctionAcquiredGifts struct {
Gifts []*StarGiftAuctionAcquiredGift
Users []User
Chats []Chat
}
func (*PaymentsStarGiftAuctionAcquiredGifts) CRC ¶ added in v1.6.9
func (*PaymentsStarGiftAuctionAcquiredGifts) CRC() uint32
type PaymentsStarGiftAuctionState ¶ added in v1.6.9
type PaymentsStarGiftAuctionState struct {
Gift StarGift
State StarGiftAuctionState
UserState *StarGiftAuctionUserState
Timeout int32
Users []User
Chats []Chat
}
func (*PaymentsStarGiftAuctionState) CRC ¶ added in v1.6.9
func (*PaymentsStarGiftAuctionState) CRC() uint32
type PaymentsStarGiftCollections ¶ added in v1.6.3
type PaymentsStarGiftCollectionsNotModified ¶ added in v1.6.3
type PaymentsStarGiftCollectionsNotModified struct{}
The list of star gift collections hasn't changed.
func (*PaymentsStarGiftCollectionsNotModified) CRC ¶ added in v1.6.3
func (*PaymentsStarGiftCollectionsNotModified) CRC() uint32
func (*PaymentsStarGiftCollectionsNotModified) ImplementsPaymentsStarGiftCollections ¶ added in v1.6.3
func (*PaymentsStarGiftCollectionsNotModified) ImplementsPaymentsStarGiftCollections()
type PaymentsStarGiftCollectionsObj ¶ added in v1.6.3
type PaymentsStarGiftCollectionsObj struct {
Collections []*StarGiftCollection // Star gift collections.
}
Represents a list of star gift collections.
func (*PaymentsStarGiftCollectionsObj) CRC ¶ added in v1.6.3
func (*PaymentsStarGiftCollectionsObj) CRC() uint32
func (*PaymentsStarGiftCollectionsObj) ImplementsPaymentsStarGiftCollections ¶ added in v1.6.3
func (*PaymentsStarGiftCollectionsObj) ImplementsPaymentsStarGiftCollections()
type PaymentsStarGiftUpgradeAttributes ¶ added in v1.6.10
type PaymentsStarGiftUpgradeAttributes struct {
Attributes []StarGiftAttribute
}
func (*PaymentsStarGiftUpgradeAttributes) CRC ¶ added in v1.6.10
func (*PaymentsStarGiftUpgradeAttributes) CRC() uint32
type PaymentsStarGiftUpgradePreview ¶ added in v1.5.3
type PaymentsStarGiftUpgradePreview struct {
SampleAttributes []StarGiftAttribute
Prices []*StarGiftUpgradePrice
NextPrices []*StarGiftUpgradePrice
}
A preview of the possible attributes (chosen randomly) a gift can receive after upgrading it to a collectible gift
func (*PaymentsStarGiftUpgradePreview) CRC ¶ added in v1.5.3
func (*PaymentsStarGiftUpgradePreview) CRC() uint32
type PaymentsStarGiftWithdrawalURL ¶ added in v1.5.6
type PaymentsStarGiftWithdrawalURL struct {
URL string
}
A URL that can be used to import the exported NFT on Fragment.
func (*PaymentsStarGiftWithdrawalURL) CRC ¶ added in v1.5.6
func (*PaymentsStarGiftWithdrawalURL) CRC() uint32
type PaymentsStarGifts ¶
type PaymentsStarGiftsNotModified ¶
type PaymentsStarGiftsNotModified struct{}
The list of available gifts hasn't changed.
func (*PaymentsStarGiftsNotModified) CRC ¶
func (*PaymentsStarGiftsNotModified) CRC() uint32
func (*PaymentsStarGiftsNotModified) ImplementsPaymentsStarGifts ¶
func (*PaymentsStarGiftsNotModified) ImplementsPaymentsStarGifts()
type PaymentsStarGiftsObj ¶
type PaymentsStarGiftsObj struct {
Hash int32 // Hash used for caching, for more info click here
Gifts []StarGift // List of available gifts.
Chats []Chat // Chats mentioned in the `gifts` field.
Users []User // Users mentioned in the `gifts` field.
}
Available gifts.
func (*PaymentsStarGiftsObj) CRC ¶
func (*PaymentsStarGiftsObj) CRC() uint32
func (*PaymentsStarGiftsObj) ImplementsPaymentsStarGifts ¶
func (*PaymentsStarGiftsObj) ImplementsPaymentsStarGifts()
type PaymentsStarsRevenueAdsAccountURL ¶
type PaymentsStarsRevenueAdsAccountURL struct {
URL string
}
Contains a URL leading to a page where the user will be able to place ads for the channel/bot, paying using Telegram Stars.
func (*PaymentsStarsRevenueAdsAccountURL) CRC ¶
func (*PaymentsStarsRevenueAdsAccountURL) CRC() uint32
type PaymentsStarsRevenueStats ¶
type PaymentsStarsRevenueStats struct {
TopHoursGraph StatsGraph `tl:"flag:0"`
RevenueGraph StatsGraph
Status *StarsRevenueStatus
UsdRate float64
}
Star revenue statistics
func (*PaymentsStarsRevenueStats) CRC ¶
func (*PaymentsStarsRevenueStats) CRC() uint32
func (*PaymentsStarsRevenueStats) FlagIndex ¶ added in v1.6.1
func (*PaymentsStarsRevenueStats) FlagIndex() int
type PaymentsStarsRevenueWithdrawalURL ¶
type PaymentsStarsRevenueWithdrawalURL struct {
URL string
}
Contains the URL to use to withdraw Telegram Star revenue.
func (*PaymentsStarsRevenueWithdrawalURL) CRC ¶
func (*PaymentsStarsRevenueWithdrawalURL) CRC() uint32
type PaymentsStarsStatus ¶
type PaymentsStarsStatus struct {
Balance StarsAmount
Subscriptions []*StarsSubscription `tl:"flag:1"`
SubscriptionsNextOffset string `tl:"flag:2"`
SubscriptionsMissingBalance int64 `tl:"flag:4"`
History []*StarsTransaction `tl:"flag:3"`
NextOffset string `tl:"flag:0"`
Chats []Chat
Users []User
}
Info about the current Telegram Star subscriptions, balance and transaction history.
func (*PaymentsStarsStatus) CRC ¶
func (*PaymentsStarsStatus) CRC() uint32
func (*PaymentsStarsStatus) FlagIndex ¶
func (*PaymentsStarsStatus) FlagIndex() int
type PaymentsSuggestedStarRefBots ¶ added in v1.4.8
type PaymentsSuggestedStarRefBots struct {
Count int32
SuggestedBots []*StarRefProgram
Users []User
NextOffset string `tl:"flag:0"`
}
A list of suggested mini apps with available affiliate programs
func (*PaymentsSuggestedStarRefBots) CRC ¶ added in v1.4.8
func (*PaymentsSuggestedStarRefBots) CRC() uint32
func (*PaymentsSuggestedStarRefBots) FlagIndex ¶ added in v1.4.8
func (*PaymentsSuggestedStarRefBots) FlagIndex() int
type PaymentsToggleChatStarGiftNotificationsParams ¶ added in v1.5.6
type PaymentsToggleChatStarGiftNotificationsParams struct {
Enabled bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputPeer
}
func (*PaymentsToggleChatStarGiftNotificationsParams) CRC ¶ added in v1.5.6
func (*PaymentsToggleChatStarGiftNotificationsParams) CRC() uint32
func (*PaymentsToggleChatStarGiftNotificationsParams) FlagIndex ¶ added in v1.5.6
func (*PaymentsToggleChatStarGiftNotificationsParams) FlagIndex() int
type PaymentsToggleStarGiftsPinnedToTopParams ¶ added in v1.6.0
type PaymentsToggleStarGiftsPinnedToTopParams struct {
Peer InputPeer
Stargift []InputSavedStarGift
}
func (*PaymentsToggleStarGiftsPinnedToTopParams) CRC ¶ added in v1.6.0
func (*PaymentsToggleStarGiftsPinnedToTopParams) CRC() uint32
type PaymentsTransferStarGiftParams ¶ added in v1.5.3
type PaymentsTransferStarGiftParams struct {
Stargift InputSavedStarGift
ToID InputPeer
}
func (*PaymentsTransferStarGiftParams) CRC ¶ added in v1.5.3
func (*PaymentsTransferStarGiftParams) CRC() uint32
type PaymentsUniqueStarGift ¶ added in v1.5.3
Represents a collectible gift.
func (*PaymentsUniqueStarGift) CRC ¶ added in v1.5.3
func (*PaymentsUniqueStarGift) CRC() uint32
type PaymentsUniqueStarGiftValueInfo ¶ added in v1.6.3
type PaymentsUniqueStarGiftValueInfo struct {
LastSaleOnFragment bool `tl:"flag:1,encoded_in_bitflags"`
ValueIsAverage bool `tl:"flag:6,encoded_in_bitflags"`
Currency string
Value int64
InitialSaleDate int32
InitialSaleStars int64
InitialSalePrice int64
LastSaleDate int32 `tl:"flag:0"`
LastSalePrice int64 `tl:"flag:0"`
FloorPrice int64 `tl:"flag:2"`
AveragePrice int64 `tl:"flag:3"`
ListedCount int32 `tl:"flag:4"`
FragmentListedCount int32 `tl:"flag:5"`
FragmentListedURL string `tl:"flag:5"`
}
Information about the value of a collectible gift.
func (*PaymentsUniqueStarGiftValueInfo) CRC ¶ added in v1.6.3
func (*PaymentsUniqueStarGiftValueInfo) CRC() uint32
func (*PaymentsUniqueStarGiftValueInfo) FlagIndex ¶ added in v1.6.3
func (*PaymentsUniqueStarGiftValueInfo) FlagIndex() int
type PaymentsUpdateStarGiftCollectionParams ¶ added in v1.6.3
type PaymentsUpdateStarGiftCollectionParams struct {
Peer InputPeer
CollectionID int32
Title string `tl:"flag:0"`
DeleteStargift []InputSavedStarGift `tl:"flag:1"`
AddStargift []InputSavedStarGift `tl:"flag:2"`
Order []InputSavedStarGift `tl:"flag:3"`
}
func (*PaymentsUpdateStarGiftCollectionParams) CRC ¶ added in v1.6.3
func (*PaymentsUpdateStarGiftCollectionParams) CRC() uint32
func (*PaymentsUpdateStarGiftCollectionParams) FlagIndex ¶ added in v1.6.3
func (*PaymentsUpdateStarGiftCollectionParams) FlagIndex() int
type PaymentsUpdateStarGiftPriceParams ¶ added in v1.6.0
type PaymentsUpdateStarGiftPriceParams struct {
Stargift InputSavedStarGift
ResellAmount StarsAmount
}
func (*PaymentsUpdateStarGiftPriceParams) CRC ¶ added in v1.6.0
func (*PaymentsUpdateStarGiftPriceParams) CRC() uint32
type PaymentsUpgradeStarGiftParams ¶ added in v1.5.3
type PaymentsUpgradeStarGiftParams struct {
KeepOriginalDetails bool `tl:"flag:0,encoded_in_bitflags"`
Stargift InputSavedStarGift
}
func (*PaymentsUpgradeStarGiftParams) CRC ¶ added in v1.5.3
func (*PaymentsUpgradeStarGiftParams) CRC() uint32
func (*PaymentsUpgradeStarGiftParams) FlagIndex ¶ added in v1.5.3
func (*PaymentsUpgradeStarGiftParams) FlagIndex() int
type PaymentsValidateRequestedInfoParams ¶
type PaymentsValidateRequestedInfoParams struct {
Save bool `tl:"flag:0,encoded_in_bitflags"`
Invoice InputInvoice
Info *PaymentRequestedInfo
}
func (*PaymentsValidateRequestedInfoParams) CRC ¶
func (*PaymentsValidateRequestedInfoParams) CRC() uint32
func (*PaymentsValidateRequestedInfoParams) FlagIndex ¶
func (*PaymentsValidateRequestedInfoParams) FlagIndex() int
type PaymentsValidatedRequestedInfo ¶
type PaymentsValidatedRequestedInfo struct {
ID string `tl:"flag:0"`
ShippingOptions []*ShippingOption `tl:"flag:1"`
}
Validated user-provided info
func (*PaymentsValidatedRequestedInfo) CRC ¶
func (*PaymentsValidatedRequestedInfo) CRC() uint32
func (*PaymentsValidatedRequestedInfo) FlagIndex ¶
func (*PaymentsValidatedRequestedInfo) FlagIndex() int
type PeerBlocked ¶
Information about a blocked peer
func (*PeerBlocked) CRC ¶
func (*PeerBlocked) CRC() uint32
type PeerChannel ¶
type PeerChannel struct {
ChannelID int64 // Channel ID
}
Channel/supergroup
func (*PeerChannel) CRC ¶
func (*PeerChannel) CRC() uint32
func (*PeerChannel) ImplementsPeer ¶
func (*PeerChannel) ImplementsPeer()
type PeerChat ¶
type PeerChat struct {
ChatID int64 // Group identifier
}
Group.
func (*PeerChat) ImplementsPeer ¶
func (*PeerChat) ImplementsPeer()
type PeerColorCollectible ¶ added in v1.6.3
type PeerColorCollectible struct {
CollectibleID int64
GiftEmojiID int64
BackgroundEmojiID int64
AccentColor int32
Colors []int32
DarkAccentColor int32 `tl:"flag:0"`
DarkColors []int32 `tl:"flag:1"`
}
func (*PeerColorCollectible) CRC ¶ added in v1.6.3
func (*PeerColorCollectible) CRC() uint32
func (*PeerColorCollectible) FlagIndex ¶ added in v1.6.3
func (*PeerColorCollectible) FlagIndex() int
func (*PeerColorCollectible) ImplementsPeerColor ¶ added in v1.6.3
func (*PeerColorCollectible) ImplementsPeerColor()
type PeerColorObj ¶ added in v1.6.3
type PeerColorObj struct {
Color int32 `tl:"flag:0"` // Color palette ID if not set, the default palette should be used.
BackgroundEmojiID int64 `tl:"flag:1"` // Optional custom emoji ID used to generate the pattern.
}
Represents a color palette.
func (*PeerColorObj) CRC ¶ added in v1.6.3
func (*PeerColorObj) CRC() uint32
func (*PeerColorObj) FlagIndex ¶ added in v1.6.3
func (*PeerColorObj) FlagIndex() int
func (*PeerColorObj) ImplementsPeerColor ¶ added in v1.6.3
func (*PeerColorObj) ImplementsPeerColor()
type PeerLocated ¶
type PeerLocatedObj ¶
type PeerLocatedObj struct {
Peer Peer // Peer
Expires int32 // Validity period of current data
Distance int32 // Distance from the peer in meters
}
Peer geolocated nearby
func (*PeerLocatedObj) CRC ¶
func (*PeerLocatedObj) CRC() uint32
func (*PeerLocatedObj) ImplementsPeerLocated ¶
func (*PeerLocatedObj) ImplementsPeerLocated()
type PeerNotifySettings ¶
type PeerNotifySettings struct {
ShowPreviews bool `tl:"flag:0"`
Silent bool `tl:"flag:1"`
MuteUntil int32 `tl:"flag:2"`
IosSound NotificationSound `tl:"flag:3"`
AndroidSound NotificationSound `tl:"flag:4"`
OtherSound NotificationSound `tl:"flag:5"`
StoriesMuted bool `tl:"flag:6"`
StoriesHideSender bool `tl:"flag:7"`
StoriesIosSound NotificationSound `tl:"flag:8"`
StoriesAndroidSound NotificationSound `tl:"flag:9"`
StoriesOtherSound NotificationSound `tl:"flag:10"`
}
Notification settings.
func (*PeerNotifySettings) CRC ¶
func (*PeerNotifySettings) CRC() uint32
func (*PeerNotifySettings) FlagIndex ¶
func (*PeerNotifySettings) FlagIndex() int
type PeerSelfLocated ¶
type PeerSelfLocated struct {
Expires int32 // Expiry of geolocation info for current peer
}
Current peer
func (*PeerSelfLocated) CRC ¶
func (*PeerSelfLocated) CRC() uint32
func (*PeerSelfLocated) ImplementsPeerLocated ¶
func (*PeerSelfLocated) ImplementsPeerLocated()
type PeerSettings ¶
type PeerSettings struct {
ReportSpam bool `tl:"flag:0,encoded_in_bitflags"`
AddContact bool `tl:"flag:1,encoded_in_bitflags"`
BlockContact bool `tl:"flag:2,encoded_in_bitflags"`
NeedContactsException bool `tl:"flag:4,encoded_in_bitflags"`
ReportGeo bool `tl:"flag:5,encoded_in_bitflags"`
Autoarchived bool `tl:"flag:7,encoded_in_bitflags"`
InviteMembers bool `tl:"flag:8,encoded_in_bitflags"`
RequestChatBroadcast bool `tl:"flag:10,encoded_in_bitflags"`
BusinessBotPaused bool `tl:"flag:11,encoded_in_bitflags"`
BusinessBotCanReply bool `tl:"flag:12,encoded_in_bitflags"`
GeoDistance int32 `tl:"flag:6"`
RequestChatTitle string `tl:"flag:9"`
RequestChatDate int32 `tl:"flag:9"`
BusinessBotID int64 `tl:"flag:13"`
BusinessBotManageURL string `tl:"flag:13"`
ChargePaidMessageStars int64 `tl:"flag:14"`
RegistrationMonth string `tl:"flag:15"`
PhoneCountry string `tl:"flag:16"`
NameChangeDate int32 `tl:"flag:17"`
PhotoChangeDate int32 `tl:"flag:18"`
}
List of actions that are possible when interacting with this user, to be shown as suggested actions in the chat action bar
func (*PeerSettings) CRC ¶
func (*PeerSettings) CRC() uint32
func (*PeerSettings) FlagIndex ¶
func (*PeerSettings) FlagIndex() int
type PeerStories ¶
Stories associated to a peer
func (*PeerStories) CRC ¶
func (*PeerStories) CRC() uint32
func (*PeerStories) FlagIndex ¶
func (*PeerStories) FlagIndex() int
type PeerUser ¶
type PeerUser struct {
UserID int64 // User identifier
}
Chat partner
func (*PeerUser) ImplementsPeer ¶
func (*PeerUser) ImplementsPeer()
type PendingJoinHandler ¶ added in v1.6.3
type PendingJoinHandler func(m *JoinRequestUpdate) error
type PendingSuggestion ¶ added in v1.6.0
type PendingSuggestion struct {
Suggestion string
Title *TextWithEntities
Description *TextWithEntities
URL string
}
Represents a custom pending suggestion.
func (*PendingSuggestion) CRC ¶ added in v1.6.0
func (*PendingSuggestion) CRC() uint32
type PhoneAcceptCallParams ¶
type PhoneAcceptCallParams struct {
Peer *InputPhoneCall
GB []byte
Protocol *PhoneCallProtocol
}
func (*PhoneAcceptCallParams) CRC ¶
func (*PhoneAcceptCallParams) CRC() uint32
type PhoneCallAccepted ¶
type PhoneCallAccepted struct {
Video bool `tl:"flag:6,encoded_in_bitflags"` // Whether this is a video call
ID int64 // ID of accepted phone call
AccessHash int64 // Access hash of phone call
Date int32 // When was the call accepted
AdminID int64 // ID of the call creator
ParticipantID int64 // ID of the other user in the call
GB []byte // B parameter for secure E2E phone call key exchange
Protocol *PhoneCallProtocol // Protocol to use for phone call
}
An accepted phone call
func (*PhoneCallAccepted) CRC ¶
func (*PhoneCallAccepted) CRC() uint32
func (*PhoneCallAccepted) FlagIndex ¶
func (*PhoneCallAccepted) FlagIndex() int
func (*PhoneCallAccepted) ImplementsPhoneCall ¶
func (*PhoneCallAccepted) ImplementsPhoneCall()
type PhoneCallDiscardReason ¶
type PhoneCallDiscardReasonBusy ¶
type PhoneCallDiscardReasonBusy struct{}
The phone call was discarded because the user is busy in another call
func (*PhoneCallDiscardReasonBusy) CRC ¶ added in v1.5.3
func (*PhoneCallDiscardReasonBusy) CRC() uint32
func (*PhoneCallDiscardReasonBusy) ImplementsPhoneCallDiscardReason ¶ added in v1.5.3
func (*PhoneCallDiscardReasonBusy) ImplementsPhoneCallDiscardReason()
type PhoneCallDiscardReasonDisconnect ¶
type PhoneCallDiscardReasonDisconnect struct{}
The phone call was disconnected
func (*PhoneCallDiscardReasonDisconnect) CRC ¶ added in v1.5.3
func (*PhoneCallDiscardReasonDisconnect) CRC() uint32
func (*PhoneCallDiscardReasonDisconnect) ImplementsPhoneCallDiscardReason ¶ added in v1.5.3
func (*PhoneCallDiscardReasonDisconnect) ImplementsPhoneCallDiscardReason()
type PhoneCallDiscardReasonHangup ¶
type PhoneCallDiscardReasonHangup struct{}
The phone call was ended normally
func (*PhoneCallDiscardReasonHangup) CRC ¶ added in v1.5.3
func (*PhoneCallDiscardReasonHangup) CRC() uint32
func (*PhoneCallDiscardReasonHangup) ImplementsPhoneCallDiscardReason ¶ added in v1.5.3
func (*PhoneCallDiscardReasonHangup) ImplementsPhoneCallDiscardReason()
type PhoneCallDiscardReasonMigrateConferenceCall ¶ added in v1.6.0
type PhoneCallDiscardReasonMigrateConferenceCall struct {
Slug string // Conference link slug.
}
This phone call was migrated to a conference call.
func (*PhoneCallDiscardReasonMigrateConferenceCall) CRC ¶ added in v1.6.0
func (*PhoneCallDiscardReasonMigrateConferenceCall) CRC() uint32
func (*PhoneCallDiscardReasonMigrateConferenceCall) ImplementsPhoneCallDiscardReason ¶ added in v1.6.0
func (*PhoneCallDiscardReasonMigrateConferenceCall) ImplementsPhoneCallDiscardReason()
type PhoneCallDiscardReasonMissed ¶
type PhoneCallDiscardReasonMissed struct{}
The phone call was missed
func (*PhoneCallDiscardReasonMissed) CRC ¶ added in v1.5.3
func (*PhoneCallDiscardReasonMissed) CRC() uint32
func (*PhoneCallDiscardReasonMissed) ImplementsPhoneCallDiscardReason ¶ added in v1.5.3
func (*PhoneCallDiscardReasonMissed) ImplementsPhoneCallDiscardReason()
type PhoneCallDiscarded ¶
type PhoneCallDiscarded struct {
NeedRating bool `tl:"flag:2,encoded_in_bitflags"` // Whether the server required the user to rate the call
NeedDebug bool `tl:"flag:3,encoded_in_bitflags"` // Whether the server required the client to send the libtgvoip call debug data
Video bool `tl:"flag:6,encoded_in_bitflags"` // Whether the call was a video call
ID int64 // Call ID
Reason PhoneCallDiscardReason `tl:"flag:0"` // Why was the phone call discarded
Duration int32 `tl:"flag:1"` // Duration of the phone call in seconds
}
Indicates a discarded phone call
func (*PhoneCallDiscarded) CRC ¶
func (*PhoneCallDiscarded) CRC() uint32
func (*PhoneCallDiscarded) FlagIndex ¶
func (*PhoneCallDiscarded) FlagIndex() int
func (*PhoneCallDiscarded) ImplementsPhoneCall ¶
func (*PhoneCallDiscarded) ImplementsPhoneCall()
type PhoneCallEmpty ¶
type PhoneCallEmpty struct {
ID int64 // Call ID
}
Empty constructor
func (*PhoneCallEmpty) CRC ¶
func (*PhoneCallEmpty) CRC() uint32
func (*PhoneCallEmpty) ImplementsPhoneCall ¶
func (*PhoneCallEmpty) ImplementsPhoneCall()
type PhoneCallObj ¶
type PhoneCallObj struct {
P2PAllowed bool `tl:"flag:5,encoded_in_bitflags"` // Whether P2P connection to the other peer is allowed
Video bool `tl:"flag:6,encoded_in_bitflags"` // Whether this is a video call
ConferenceSupported bool `tl:"flag:8,encoded_in_bitflags"` // If set, the other party supports upgrading of the call to a conference call.
ID int64 // Call ID
AccessHash int64 // Access hash
Date int32 // Date of creation of the call
AdminID int64 // User ID of the creator of the call
ParticipantID int64 // User ID of the other participant in the call
GAOrB []byte // Parameter for key exchange
KeyFingerprint int64 // Key fingerprint
Protocol *PhoneCallProtocol // Call protocol info to be passed to libtgvoip
Connections []PhoneConnection // List of endpoints the user can connect to exchange call data
StartDate int32 // When was the call actually started
CustomParameters *DataJson `tl:"flag:7"` // Custom JSON-encoded call parameters to be passed to tgcalls.
}
Phone call
func (*PhoneCallObj) CRC ¶
func (*PhoneCallObj) CRC() uint32
func (*PhoneCallObj) FlagIndex ¶
func (*PhoneCallObj) FlagIndex() int
func (*PhoneCallObj) ImplementsPhoneCall ¶
func (*PhoneCallObj) ImplementsPhoneCall()
type PhoneCallProtocol ¶
type PhoneCallProtocol struct {
UdpP2P bool `tl:"flag:0,encoded_in_bitflags"`
UdpReflector bool `tl:"flag:1,encoded_in_bitflags"`
MinLayer int32
MaxLayer int32
LibraryVersions []string
}
Protocol info for libtgvoip
func (*PhoneCallProtocol) CRC ¶
func (*PhoneCallProtocol) CRC() uint32
func (*PhoneCallProtocol) FlagIndex ¶
func (*PhoneCallProtocol) FlagIndex() int
type PhoneCallRequested ¶
type PhoneCallRequested struct {
Video bool `tl:"flag:6,encoded_in_bitflags"` // Whether this is a video call
ID int64 // Phone call ID
AccessHash int64 // Access hash
Date int32 // When was the phone call created
AdminID int64 // ID of the creator of the phone call
ParticipantID int64 // ID of the other participant of the phone call
GAHash []byte // Parameter for key exchange
Protocol *PhoneCallProtocol // Call protocol info to be passed to libtgvoip
}
Requested phone call
func (*PhoneCallRequested) CRC ¶
func (*PhoneCallRequested) CRC() uint32
func (*PhoneCallRequested) FlagIndex ¶
func (*PhoneCallRequested) FlagIndex() int
func (*PhoneCallRequested) ImplementsPhoneCall ¶
func (*PhoneCallRequested) ImplementsPhoneCall()
type PhoneCallWaiting ¶
type PhoneCallWaiting struct {
Video bool `tl:"flag:6,encoded_in_bitflags"` // Is this a video call
ID int64 // Call ID
AccessHash int64 // Access hash
Date int32 // Date
AdminID int64 // Admin ID
ParticipantID int64 // Participant ID
Protocol *PhoneCallProtocol // Phone call protocol info
ReceiveDate int32 `tl:"flag:0"` // When was the phone call received
}
Incoming phone call
func (*PhoneCallWaiting) CRC ¶
func (*PhoneCallWaiting) CRC() uint32
func (*PhoneCallWaiting) FlagIndex ¶
func (*PhoneCallWaiting) FlagIndex() int
func (*PhoneCallWaiting) ImplementsPhoneCall ¶
func (*PhoneCallWaiting) ImplementsPhoneCall()
type PhoneCheckGroupCallParams ¶
type PhoneCheckGroupCallParams struct {
Call InputGroupCall
Sources []int32
}
func (*PhoneCheckGroupCallParams) CRC ¶
func (*PhoneCheckGroupCallParams) CRC() uint32
type PhoneConfirmCallParams ¶
type PhoneConfirmCallParams struct {
Peer *InputPhoneCall
GA []byte
KeyFingerprint int64
Protocol *PhoneCallProtocol
}
func (*PhoneConfirmCallParams) CRC ¶
func (*PhoneConfirmCallParams) CRC() uint32
type PhoneConnection ¶
type PhoneConnectionObj ¶
type PhoneConnectionObj struct {
Tcp bool `tl:"flag:0,encoded_in_bitflags"` // Whether TCP should be used
ID int64 // Endpoint ID
Ip string // IP address of endpoint
Ipv6 string // IPv6 address of endpoint
Port int32 // Port ID
PeerTag []byte // Our peer tag
}
Identifies an endpoint that can be used to connect to the other user in a phone call
func (*PhoneConnectionObj) CRC ¶
func (*PhoneConnectionObj) CRC() uint32
func (*PhoneConnectionObj) FlagIndex ¶
func (*PhoneConnectionObj) FlagIndex() int
func (*PhoneConnectionObj) ImplementsPhoneConnection ¶
func (*PhoneConnectionObj) ImplementsPhoneConnection()
type PhoneConnectionWebrtc ¶
type PhoneConnectionWebrtc struct {
Turn bool `tl:"flag:0,encoded_in_bitflags"` // Whether this is a TURN endpoint
Stun bool `tl:"flag:1,encoded_in_bitflags"` // Whether this is a STUN endpoint
ID int64 // Endpoint ID
Ip string // IP address
Ipv6 string // IPv6 address
Port int32 // Port
Username string // Username
Password string // Password
}
WebRTC connection parameters
func (*PhoneConnectionWebrtc) CRC ¶
func (*PhoneConnectionWebrtc) CRC() uint32
func (*PhoneConnectionWebrtc) FlagIndex ¶
func (*PhoneConnectionWebrtc) FlagIndex() int
func (*PhoneConnectionWebrtc) ImplementsPhoneConnection ¶
func (*PhoneConnectionWebrtc) ImplementsPhoneConnection()
type PhoneCreateConferenceCallParams ¶ added in v1.5.3
type PhoneCreateConferenceCallParams struct {
Muted bool `tl:"flag:0,encoded_in_bitflags"`
VideoStopped bool `tl:"flag:2,encoded_in_bitflags"`
Join bool `tl:"flag:3,encoded_in_bitflags"`
RandomID int32
PublicKey tl.Int256 `tl:"flag:3"`
Block []byte `tl:"flag:3"`
Params *DataJson `tl:"flag:3"`
}
func (*PhoneCreateConferenceCallParams) CRC ¶ added in v1.5.3
func (*PhoneCreateConferenceCallParams) CRC() uint32
func (*PhoneCreateConferenceCallParams) FlagIndex ¶ added in v1.6.0
func (*PhoneCreateConferenceCallParams) FlagIndex() int
type PhoneCreateGroupCallParams ¶
type PhoneCreateGroupCallParams struct {
RtmpStream bool `tl:"flag:2,encoded_in_bitflags"`
Peer InputPeer
RandomID int32
Title string `tl:"flag:0"`
ScheduleDate int32 `tl:"flag:1"`
}
func (*PhoneCreateGroupCallParams) CRC ¶
func (*PhoneCreateGroupCallParams) CRC() uint32
func (*PhoneCreateGroupCallParams) FlagIndex ¶
func (*PhoneCreateGroupCallParams) FlagIndex() int
type PhoneDeclineConferenceCallInviteParams ¶ added in v1.6.0
type PhoneDeclineConferenceCallInviteParams struct {
MsgID int32
}
func (*PhoneDeclineConferenceCallInviteParams) CRC ¶ added in v1.6.0
func (*PhoneDeclineConferenceCallInviteParams) CRC() uint32
type PhoneDeleteConferenceCallParticipantsParams ¶ added in v1.6.0
type PhoneDeleteConferenceCallParticipantsParams struct {
OnlyLeft bool `tl:"flag:0,encoded_in_bitflags"`
Kick bool `tl:"flag:1,encoded_in_bitflags"`
Call InputGroupCall
Ids []int64
Block []byte
}
func (*PhoneDeleteConferenceCallParticipantsParams) CRC ¶ added in v1.6.0
func (*PhoneDeleteConferenceCallParticipantsParams) CRC() uint32
func (*PhoneDeleteConferenceCallParticipantsParams) FlagIndex ¶ added in v1.6.0
func (*PhoneDeleteConferenceCallParticipantsParams) FlagIndex() int
type PhoneDeleteGroupCallMessagesParams ¶ added in v1.6.9
type PhoneDeleteGroupCallMessagesParams struct {
ReportSpam bool `tl:"flag:0,encoded_in_bitflags"`
Call InputGroupCall
Messages []int32
}
func (*PhoneDeleteGroupCallMessagesParams) CRC ¶ added in v1.6.9
func (*PhoneDeleteGroupCallMessagesParams) CRC() uint32
func (*PhoneDeleteGroupCallMessagesParams) FlagIndex ¶ added in v1.6.9
func (*PhoneDeleteGroupCallMessagesParams) FlagIndex() int
type PhoneDeleteGroupCallParticipantMessagesParams ¶ added in v1.6.9
type PhoneDeleteGroupCallParticipantMessagesParams struct {
ReportSpam bool `tl:"flag:0,encoded_in_bitflags"`
Call InputGroupCall
Participant InputPeer
}
func (*PhoneDeleteGroupCallParticipantMessagesParams) CRC ¶ added in v1.6.9
func (*PhoneDeleteGroupCallParticipantMessagesParams) CRC() uint32
func (*PhoneDeleteGroupCallParticipantMessagesParams) FlagIndex ¶ added in v1.6.9
func (*PhoneDeleteGroupCallParticipantMessagesParams) FlagIndex() int
type PhoneDiscardCallParams ¶
type PhoneDiscardCallParams struct {
Video bool `tl:"flag:0,encoded_in_bitflags"`
Peer *InputPhoneCall
Duration int32
Reason PhoneCallDiscardReason
ConnectionID int64
}
func (*PhoneDiscardCallParams) CRC ¶
func (*PhoneDiscardCallParams) CRC() uint32
func (*PhoneDiscardCallParams) FlagIndex ¶
func (*PhoneDiscardCallParams) FlagIndex() int
type PhoneDiscardGroupCallParams ¶
type PhoneDiscardGroupCallParams struct {
Call InputGroupCall
}
func (*PhoneDiscardGroupCallParams) CRC ¶
func (*PhoneDiscardGroupCallParams) CRC() uint32
type PhoneEditGroupCallParticipantParams ¶
type PhoneEditGroupCallParticipantParams struct {
Call InputGroupCall
Participant InputPeer
Muted bool `tl:"flag:0,explicit"`
Volume int32 `tl:"flag:1,explicit"`
RaiseHand bool `tl:"flag:2,explicit"`
VideoStopped bool `tl:"flag:3,explicit"`
VideoPaused bool `tl:"flag:4,explicit"`
PresentationPaused bool `tl:"flag:5,explicit"`
}
func (*PhoneEditGroupCallParticipantParams) CRC ¶
func (*PhoneEditGroupCallParticipantParams) CRC() uint32
func (*PhoneEditGroupCallParticipantParams) FlagIndex ¶
func (*PhoneEditGroupCallParticipantParams) FlagIndex() int
type PhoneEditGroupCallTitleParams ¶
type PhoneEditGroupCallTitleParams struct {
Call InputGroupCall
Title string
}
func (*PhoneEditGroupCallTitleParams) CRC ¶
func (*PhoneEditGroupCallTitleParams) CRC() uint32
type PhoneExportGroupCallInviteParams ¶
type PhoneExportGroupCallInviteParams struct {
CanSelfUnmute bool `tl:"flag:0,encoded_in_bitflags"`
Call InputGroupCall
}
func (*PhoneExportGroupCallInviteParams) CRC ¶
func (*PhoneExportGroupCallInviteParams) CRC() uint32
func (*PhoneExportGroupCallInviteParams) FlagIndex ¶
func (*PhoneExportGroupCallInviteParams) FlagIndex() int
type PhoneExportedGroupCallInvite ¶
type PhoneExportedGroupCallInvite struct {
Link string
}
An invite to a group call or livestream
func (*PhoneExportedGroupCallInvite) CRC ¶
func (*PhoneExportedGroupCallInvite) CRC() uint32
type PhoneGetCallConfigParams ¶
type PhoneGetCallConfigParams struct{}
func (*PhoneGetCallConfigParams) CRC ¶
func (*PhoneGetCallConfigParams) CRC() uint32
type PhoneGetGroupCallChainBlocksParams ¶ added in v1.6.0
type PhoneGetGroupCallChainBlocksParams struct {
Call InputGroupCall
SubChainID int32
Offset int32
Limit int32
}
func (*PhoneGetGroupCallChainBlocksParams) CRC ¶ added in v1.6.0
func (*PhoneGetGroupCallChainBlocksParams) CRC() uint32
type PhoneGetGroupCallJoinAsParams ¶
type PhoneGetGroupCallJoinAsParams struct {
Peer InputPeer
}
func (*PhoneGetGroupCallJoinAsParams) CRC ¶
func (*PhoneGetGroupCallJoinAsParams) CRC() uint32
type PhoneGetGroupCallParams ¶
type PhoneGetGroupCallParams struct {
Call InputGroupCall
Limit int32
}
func (*PhoneGetGroupCallParams) CRC ¶
func (*PhoneGetGroupCallParams) CRC() uint32
type PhoneGetGroupCallStarsParams ¶ added in v1.6.9
type PhoneGetGroupCallStarsParams struct {
Call InputGroupCall
}
func (*PhoneGetGroupCallStarsParams) CRC ¶ added in v1.6.9
func (*PhoneGetGroupCallStarsParams) CRC() uint32
type PhoneGetGroupCallStreamChannelsParams ¶
type PhoneGetGroupCallStreamChannelsParams struct {
Call InputGroupCall
}
func (*PhoneGetGroupCallStreamChannelsParams) CRC ¶
func (*PhoneGetGroupCallStreamChannelsParams) CRC() uint32
type PhoneGetGroupCallStreamRtmpURLParams ¶
type PhoneGetGroupCallStreamRtmpURLParams struct {
LiveStory bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputPeer
Revoke bool
}
func (*PhoneGetGroupCallStreamRtmpURLParams) CRC ¶
func (*PhoneGetGroupCallStreamRtmpURLParams) CRC() uint32
func (*PhoneGetGroupCallStreamRtmpURLParams) FlagIndex ¶ added in v1.6.9
func (*PhoneGetGroupCallStreamRtmpURLParams) FlagIndex() int
type PhoneGetGroupParticipantsParams ¶
type PhoneGetGroupParticipantsParams struct {
Call InputGroupCall
Ids []InputPeer
Sources []int32
Offset string
Limit int32
}
func (*PhoneGetGroupParticipantsParams) CRC ¶
func (*PhoneGetGroupParticipantsParams) CRC() uint32
type PhoneGroupCall ¶
type PhoneGroupCall struct {
Call GroupCall
Participants []*GroupCallParticipant
ParticipantsNextOffset string
Chats []Chat
Users []User
}
Contains info about a group call, and partial info about its participants.
func (*PhoneGroupCall) CRC ¶
func (*PhoneGroupCall) CRC() uint32
type PhoneGroupCallStars ¶ added in v1.6.7
type PhoneGroupCallStars struct {
TotalStars int64
TopDonors []*GroupCallDonor
Chats []Chat
Users []User
}
func (*PhoneGroupCallStars) CRC ¶ added in v1.6.7
func (*PhoneGroupCallStars) CRC() uint32
type PhoneGroupCallStreamChannels ¶
type PhoneGroupCallStreamChannels struct {
Channels []*GroupCallStreamChannel
}
Info about RTMP streams in a group call or livestream
func (*PhoneGroupCallStreamChannels) CRC ¶
func (*PhoneGroupCallStreamChannels) CRC() uint32
type PhoneGroupCallStreamRtmpURL ¶
RTMP URL and stream key to be used in streaming software
func (*PhoneGroupCallStreamRtmpURL) CRC ¶
func (*PhoneGroupCallStreamRtmpURL) CRC() uint32
type PhoneGroupParticipants ¶
type PhoneGroupParticipants struct {
Count int32
Participants []*GroupCallParticipant
NextOffset string
Chats []Chat
Users []User
Version int32
}
Info about the participants of a group call or livestream
func (*PhoneGroupParticipants) CRC ¶
func (*PhoneGroupParticipants) CRC() uint32
type PhoneInviteConferenceCallParticipantParams ¶ added in v1.6.0
type PhoneInviteConferenceCallParticipantParams struct {
Video bool `tl:"flag:0,encoded_in_bitflags"`
Call InputGroupCall
UserID InputUser
}
func (*PhoneInviteConferenceCallParticipantParams) CRC ¶ added in v1.6.0
func (*PhoneInviteConferenceCallParticipantParams) CRC() uint32
func (*PhoneInviteConferenceCallParticipantParams) FlagIndex ¶ added in v1.6.0
func (*PhoneInviteConferenceCallParticipantParams) FlagIndex() int
type PhoneInviteToGroupCallParams ¶
type PhoneInviteToGroupCallParams struct {
Call InputGroupCall
Users []InputUser
}
func (*PhoneInviteToGroupCallParams) CRC ¶
func (*PhoneInviteToGroupCallParams) CRC() uint32
type PhoneJoinAsPeers ¶
A list of peers that can be used to join a group call, presenting yourself as a specific user/channel.
func (*PhoneJoinAsPeers) CRC ¶
func (*PhoneJoinAsPeers) CRC() uint32
type PhoneJoinGroupCallParams ¶
type PhoneJoinGroupCallParams struct {
Muted bool `tl:"flag:0,encoded_in_bitflags"`
VideoStopped bool `tl:"flag:2,encoded_in_bitflags"`
Call InputGroupCall
JoinAs InputPeer
InviteHash string `tl:"flag:1"`
PublicKey tl.Int256 `tl:"flag:3"`
Block []byte `tl:"flag:3"`
Params *DataJson
}
func (*PhoneJoinGroupCallParams) CRC ¶
func (*PhoneJoinGroupCallParams) CRC() uint32
func (*PhoneJoinGroupCallParams) FlagIndex ¶
func (*PhoneJoinGroupCallParams) FlagIndex() int
type PhoneJoinGroupCallPresentationParams ¶
type PhoneJoinGroupCallPresentationParams struct {
Call InputGroupCall
Params *DataJson
}
func (*PhoneJoinGroupCallPresentationParams) CRC ¶
func (*PhoneJoinGroupCallPresentationParams) CRC() uint32
type PhoneLeaveGroupCallParams ¶
type PhoneLeaveGroupCallParams struct {
Call InputGroupCall
Source int32
}
func (*PhoneLeaveGroupCallParams) CRC ¶
func (*PhoneLeaveGroupCallParams) CRC() uint32
type PhoneLeaveGroupCallPresentationParams ¶
type PhoneLeaveGroupCallPresentationParams struct {
Call InputGroupCall
}
func (*PhoneLeaveGroupCallPresentationParams) CRC ¶
func (*PhoneLeaveGroupCallPresentationParams) CRC() uint32
type PhonePhoneCall ¶
A VoIP phone call
func (*PhonePhoneCall) CRC ¶
func (*PhonePhoneCall) CRC() uint32
type PhoneReceivedCallParams ¶
type PhoneReceivedCallParams struct {
Peer *InputPhoneCall
}
func (*PhoneReceivedCallParams) CRC ¶
func (*PhoneReceivedCallParams) CRC() uint32
type PhoneRequestCallParams ¶
type PhoneRequestCallParams struct {
Video bool `tl:"flag:0,encoded_in_bitflags"`
UserID InputUser
RandomID int32
GAHash []byte
Protocol *PhoneCallProtocol
}
func (*PhoneRequestCallParams) CRC ¶
func (*PhoneRequestCallParams) CRC() uint32
func (*PhoneRequestCallParams) FlagIndex ¶
func (*PhoneRequestCallParams) FlagIndex() int
type PhoneSaveCallDebugParams ¶
type PhoneSaveCallDebugParams struct {
Peer *InputPhoneCall
Debug *DataJson
}
func (*PhoneSaveCallDebugParams) CRC ¶
func (*PhoneSaveCallDebugParams) CRC() uint32
type PhoneSaveCallLogParams ¶
type PhoneSaveCallLogParams struct {
Peer *InputPhoneCall
File InputFile
}
func (*PhoneSaveCallLogParams) CRC ¶
func (*PhoneSaveCallLogParams) CRC() uint32
type PhoneSaveDefaultGroupCallJoinAsParams ¶
func (*PhoneSaveDefaultGroupCallJoinAsParams) CRC ¶
func (*PhoneSaveDefaultGroupCallJoinAsParams) CRC() uint32
type PhoneSaveDefaultSendAsParams ¶ added in v1.6.9
type PhoneSaveDefaultSendAsParams struct {
Call InputGroupCall
SendAs InputPeer
}
func (*PhoneSaveDefaultSendAsParams) CRC ¶ added in v1.6.9
func (*PhoneSaveDefaultSendAsParams) CRC() uint32
type PhoneSendConferenceCallBroadcastParams ¶ added in v1.6.0
type PhoneSendConferenceCallBroadcastParams struct {
Call InputGroupCall
Block []byte
}
func (*PhoneSendConferenceCallBroadcastParams) CRC ¶ added in v1.6.0
func (*PhoneSendConferenceCallBroadcastParams) CRC() uint32
type PhoneSendGroupCallEncryptedMessageParams ¶ added in v1.6.8
type PhoneSendGroupCallEncryptedMessageParams struct {
Call InputGroupCall
EncryptedMessage []byte
}
func (*PhoneSendGroupCallEncryptedMessageParams) CRC ¶ added in v1.6.8
func (*PhoneSendGroupCallEncryptedMessageParams) CRC() uint32
type PhoneSendGroupCallMessageParams ¶ added in v1.6.8
type PhoneSendGroupCallMessageParams struct {
Call InputGroupCall
RandomID int64
Message *TextWithEntities
AllowPaidStars int64 `tl:"flag:0"`
SendAs InputPeer `tl:"flag:1"`
}
func (*PhoneSendGroupCallMessageParams) CRC ¶ added in v1.6.8
func (*PhoneSendGroupCallMessageParams) CRC() uint32
func (*PhoneSendGroupCallMessageParams) FlagIndex ¶ added in v1.6.9
func (*PhoneSendGroupCallMessageParams) FlagIndex() int
type PhoneSendSignalingDataParams ¶
type PhoneSendSignalingDataParams struct {
Peer *InputPhoneCall
Data []byte
}
func (*PhoneSendSignalingDataParams) CRC ¶
func (*PhoneSendSignalingDataParams) CRC() uint32
type PhoneSetCallRatingParams ¶
type PhoneSetCallRatingParams struct {
UserInitiative bool `tl:"flag:0,encoded_in_bitflags"`
Peer *InputPhoneCall
Rating int32
Comment string
}
func (*PhoneSetCallRatingParams) CRC ¶
func (*PhoneSetCallRatingParams) CRC() uint32
func (*PhoneSetCallRatingParams) FlagIndex ¶
func (*PhoneSetCallRatingParams) FlagIndex() int
type PhoneStartScheduledGroupCallParams ¶
type PhoneStartScheduledGroupCallParams struct {
Call InputGroupCall
}
func (*PhoneStartScheduledGroupCallParams) CRC ¶
func (*PhoneStartScheduledGroupCallParams) CRC() uint32
type PhoneToggleGroupCallRecordParams ¶
type PhoneToggleGroupCallRecordParams struct {
Start bool `tl:"flag:0,encoded_in_bitflags,explicit"`
Video bool `tl:"flag:2,encoded_in_bitflags,explicit"`
Call InputGroupCall
Title string `tl:"flag:1"`
VideoPortrait bool `tl:"flag:2"`
}
func (*PhoneToggleGroupCallRecordParams) CRC ¶
func (*PhoneToggleGroupCallRecordParams) CRC() uint32
func (*PhoneToggleGroupCallRecordParams) FlagIndex ¶
func (*PhoneToggleGroupCallRecordParams) FlagIndex() int
type PhoneToggleGroupCallSettingsParams ¶
type PhoneToggleGroupCallSettingsParams struct {
ResetInviteHash bool `tl:"flag:1,encoded_in_bitflags"`
Call InputGroupCall
JoinMuted bool `tl:"flag:0"`
MessagesEnabled bool `tl:"flag:2"`
SendPaidMessagesStars int64 `tl:"flag:3"`
}
func (*PhoneToggleGroupCallSettingsParams) CRC ¶
func (*PhoneToggleGroupCallSettingsParams) CRC() uint32
func (*PhoneToggleGroupCallSettingsParams) FlagIndex ¶
func (*PhoneToggleGroupCallSettingsParams) FlagIndex() int
type PhoneToggleGroupCallStartSubscriptionParams ¶
type PhoneToggleGroupCallStartSubscriptionParams struct {
Call InputGroupCall
Subscribed bool
}
func (*PhoneToggleGroupCallStartSubscriptionParams) CRC ¶
func (*PhoneToggleGroupCallStartSubscriptionParams) CRC() uint32
type PhotoCachedSize ¶
type PhotoCachedSize struct {
Type string // Thumbnail type
W int32 // Image width
H int32 // Image height
Bytes []byte // Binary data, file content
}
Description of an image and its content.
func (*PhotoCachedSize) CRC ¶
func (*PhotoCachedSize) CRC() uint32
func (*PhotoCachedSize) ImplementsPhotoSize ¶
func (*PhotoCachedSize) ImplementsPhotoSize()
type PhotoEmpty ¶
type PhotoEmpty struct {
ID int64 // Photo identifier
}
Empty constructor, non-existent photo
func (*PhotoEmpty) CRC ¶
func (*PhotoEmpty) CRC() uint32
func (*PhotoEmpty) ImplementsPhoto ¶
func (*PhotoEmpty) ImplementsPhoto()
type PhotoObj ¶
type PhotoObj struct {
HasStickers bool `tl:"flag:0,encoded_in_bitflags"` // Whether the photo has mask stickers attached to it
ID int64 // ID
AccessHash int64 // Access hash
FileReference []byte // file reference
Date int32 // Date of upload
Sizes []PhotoSize // Available sizes for download
VideoSizes []VideoSize `tl:"flag:1"` // For animated profiles, the MPEG4 videos
DcID int32 // DC ID to use for download
}
Photo
func (*PhotoObj) ImplementsPhoto ¶
func (*PhotoObj) ImplementsPhoto()
type PhotoPathSize ¶
Messages with animated stickers can have a compressed svg (< 300 bytes) to show the outline of the sticker before fetching the actual lottie animation.
func (*PhotoPathSize) CRC ¶
func (*PhotoPathSize) CRC() uint32
func (*PhotoPathSize) ImplementsPhotoSize ¶
func (*PhotoPathSize) ImplementsPhotoSize()
type PhotoSizeEmpty ¶
type PhotoSizeEmpty struct {
Type string // Thumbnail type
}
Empty constructor. Image with this thumbnail is unavailable.
func (*PhotoSizeEmpty) CRC ¶
func (*PhotoSizeEmpty) CRC() uint32
func (*PhotoSizeEmpty) ImplementsPhotoSize ¶
func (*PhotoSizeEmpty) ImplementsPhotoSize()
type PhotoSizeObj ¶
type PhotoSizeObj struct {
Type string // Thumbnail type
W int32 // Image width
H int32 // Image height
Size int32 // File size
}
Image description.
func (*PhotoSizeObj) CRC ¶
func (*PhotoSizeObj) CRC() uint32
func (*PhotoSizeObj) ImplementsPhotoSize ¶
func (*PhotoSizeObj) ImplementsPhotoSize()
type PhotoSizeProgressive ¶
type PhotoSizeProgressive struct {
Type string // Photosize type
W int32 // Photo width
H int32 // Photo height
Sizes []int32 // Sizes of progressive JPEG file prefixes, which can be used to preliminarily show the image.
}
Progressively encoded photosize
func (*PhotoSizeProgressive) CRC ¶
func (*PhotoSizeProgressive) CRC() uint32
func (*PhotoSizeProgressive) ImplementsPhotoSize ¶
func (*PhotoSizeProgressive) ImplementsPhotoSize()
type PhotoStrippedSize ¶
A low-resolution compressed JPG payload
func (*PhotoStrippedSize) CRC ¶
func (*PhotoStrippedSize) CRC() uint32
func (*PhotoStrippedSize) ImplementsPhotoSize ¶
func (*PhotoStrippedSize) ImplementsPhotoSize()
type PhotosDeletePhotosParams ¶
type PhotosDeletePhotosParams struct {
ID []InputPhoto
}
func (*PhotosDeletePhotosParams) CRC ¶
func (*PhotosDeletePhotosParams) CRC() uint32
type PhotosGetUserPhotosParams ¶
func (*PhotosGetUserPhotosParams) CRC ¶
func (*PhotosGetUserPhotosParams) CRC() uint32
type PhotosOptions ¶
type PhotosPhoto ¶
Photo with auxiliary data.
func (*PhotosPhoto) CRC ¶
func (*PhotosPhoto) CRC() uint32
type PhotosPhotos ¶
type PhotosPhotosObj ¶
type PhotosPhotosObj struct {
Photos []Photo // List of photos
Users []User // List of mentioned users
}
Full list of photos with auxiliary data.
func (*PhotosPhotosObj) CRC ¶
func (*PhotosPhotosObj) CRC() uint32
func (*PhotosPhotosObj) ImplementsPhotosPhotos ¶
func (*PhotosPhotosObj) ImplementsPhotosPhotos()
type PhotosPhotosSlice ¶
type PhotosPhotosSlice struct {
Count int32 // Total number of photos
Photos []Photo // List of photos
Users []User // List of mentioned users
}
Incomplete list of photos with auxiliary data.
func (*PhotosPhotosSlice) CRC ¶
func (*PhotosPhotosSlice) CRC() uint32
func (*PhotosPhotosSlice) ImplementsPhotosPhotos ¶
func (*PhotosPhotosSlice) ImplementsPhotosPhotos()
type PhotosUpdateProfilePhotoParams ¶
type PhotosUpdateProfilePhotoParams struct {
Fallback bool `tl:"flag:0,encoded_in_bitflags"`
Bot InputUser `tl:"flag:1"`
ID InputPhoto
}
func (*PhotosUpdateProfilePhotoParams) CRC ¶
func (*PhotosUpdateProfilePhotoParams) CRC() uint32
func (*PhotosUpdateProfilePhotoParams) FlagIndex ¶
func (*PhotosUpdateProfilePhotoParams) FlagIndex() int
type PhotosUploadContactProfilePhotoParams ¶
type PhotosUploadContactProfilePhotoParams struct {
Suggest bool `tl:"flag:3,encoded_in_bitflags"`
Save bool `tl:"flag:4,encoded_in_bitflags"`
UserID InputUser
File InputFile `tl:"flag:0"`
Video InputFile `tl:"flag:1"`
VideoStartTs float64 `tl:"flag:2"`
VideoEmojiMarkup VideoSize `tl:"flag:5"`
}
func (*PhotosUploadContactProfilePhotoParams) CRC ¶
func (*PhotosUploadContactProfilePhotoParams) CRC() uint32
func (*PhotosUploadContactProfilePhotoParams) FlagIndex ¶
func (*PhotosUploadContactProfilePhotoParams) FlagIndex() int
type PhotosUploadProfilePhotoParams ¶
type PhotosUploadProfilePhotoParams struct {
Fallback bool `tl:"flag:3,encoded_in_bitflags"`
Bot InputUser `tl:"flag:5"`
File InputFile `tl:"flag:0"`
Video InputFile `tl:"flag:1"`
VideoStartTs float64 `tl:"flag:2"`
VideoEmojiMarkup VideoSize `tl:"flag:4"`
}
func (*PhotosUploadProfilePhotoParams) CRC ¶
func (*PhotosUploadProfilePhotoParams) CRC() uint32
func (*PhotosUploadProfilePhotoParams) FlagIndex ¶
func (*PhotosUploadProfilePhotoParams) FlagIndex() int
type PinOptions ¶
type Poll ¶
type Poll struct {
ID int64
Closed bool `tl:"flag:0,encoded_in_bitflags"`
PublicVoters bool `tl:"flag:1,encoded_in_bitflags"`
MultipleChoice bool `tl:"flag:2,encoded_in_bitflags"`
Quiz bool `tl:"flag:3,encoded_in_bitflags"`
Question *TextWithEntities
Answers []*PollAnswer
ClosePeriod int32 `tl:"flag:4"`
CloseDate int32 `tl:"flag:5"`
}
Poll
type PollAnswer ¶
type PollAnswer struct {
Text *TextWithEntities
Option []byte
}
A possible answer of a poll
func (*PollAnswer) CRC ¶
func (*PollAnswer) CRC() uint32
type PollAnswerVoters ¶
type PollAnswerVoters struct {
Chosen bool `tl:"flag:0,encoded_in_bitflags"`
Correct bool `tl:"flag:1,encoded_in_bitflags"`
Option []byte
Voters int32
}
A poll answer, and how users voted on it
func (*PollAnswerVoters) CRC ¶
func (*PollAnswerVoters) CRC() uint32
func (*PollAnswerVoters) FlagIndex ¶
func (*PollAnswerVoters) FlagIndex() int
type PollOptions ¶
type PollOptions struct {
PublicVoters bool // Show who voted for each option publicly
MCQ bool // Allow selecting multiple answers
IsQuiz bool // Quiz mode with correct answer and explanation
ClosePeriod int32 // Auto-close poll after N seconds from creation
CloseDate int32 // Unix timestamp to auto-close the poll
Solution string // Explanation shown after quiz answer (supports formatting)
CorrectAnswers []int // Zero-based indices of correct options (for quiz)
ReplyID int32 // Simple reply to message by ID
TopicID int32 // Forum topic ID to send poll in
NoForwards bool // Restrict forwarding and saving of this poll
ScheduleDate int32 // Unix timestamp to schedule poll delivery
}
type PollResults ¶
type PollResults struct {
Min bool `tl:"flag:0,encoded_in_bitflags"`
Results []*PollAnswerVoters `tl:"flag:1"`
TotalVoters int32 `tl:"flag:2"`
RecentVoters []Peer `tl:"flag:3"`
Solution string `tl:"flag:4"`
SolutionEntities []MessageEntity `tl:"flag:4"`
}
Results of poll
func (*PollResults) CRC ¶
func (*PollResults) CRC() uint32
func (*PollResults) FlagIndex ¶
func (*PollResults) FlagIndex() int
type PopularContact ¶
Popular contact
func (*PopularContact) CRC ¶
func (*PopularContact) CRC() uint32
type PostAddress ¶
type PostAddress struct {
StreetLine1 string
StreetLine2 string
City string
State string
CountryIso2 string
PostCode string
}
Shipping address
func (*PostAddress) CRC ¶
func (*PostAddress) CRC() uint32
type PostInteractionCounters ¶
type PostInteractionCountersMessage ¶
type PostInteractionCountersMessage struct {
MsgID int32 // Message ID
Views int32 // Number of views
Forwards int32 // Number of forwards to public channels
Reactions int32 // Number of reactions
}
Interaction counters for a message.
func (*PostInteractionCountersMessage) CRC ¶
func (*PostInteractionCountersMessage) CRC() uint32
func (*PostInteractionCountersMessage) ImplementsPostInteractionCounters ¶
func (*PostInteractionCountersMessage) ImplementsPostInteractionCounters()
type PostInteractionCountersStory ¶
type PostInteractionCountersStory struct {
StoryID int32 // Story ID
Views int32 // Number of views
Forwards int32 // Number of forwards and reposts to public chats and channels
Reactions int32 // Number of reactions
}
Interaction counters for a story.
func (*PostInteractionCountersStory) CRC ¶
func (*PostInteractionCountersStory) CRC() uint32
func (*PostInteractionCountersStory) ImplementsPostInteractionCounters ¶
func (*PostInteractionCountersStory) ImplementsPostInteractionCounters()
type PremiumApplyBoostParams ¶
func (*PremiumApplyBoostParams) CRC ¶
func (*PremiumApplyBoostParams) CRC() uint32
func (*PremiumApplyBoostParams) FlagIndex ¶
func (*PremiumApplyBoostParams) FlagIndex() int
type PremiumBoostsList ¶
type PremiumBoostsList struct {
Count int32
Boosts []*Boost
NextOffset string `tl:"flag:0"`
Users []User
}
List of boosts that were applied to a peer by multiple users.
func (*PremiumBoostsList) CRC ¶
func (*PremiumBoostsList) CRC() uint32
func (*PremiumBoostsList) FlagIndex ¶
func (*PremiumBoostsList) FlagIndex() int
type PremiumBoostsStatus ¶
type PremiumBoostsStatus struct {
MyBoost bool `tl:"flag:2,encoded_in_bitflags"`
Level int32
CurrentLevelBoosts int32
Boosts int32
GiftBoosts int32 `tl:"flag:4"`
NextLevelBoosts int32 `tl:"flag:0"`
PremiumAudience *StatsPercentValue `tl:"flag:1"`
BoostURL string
PrepaidGiveaways []PrepaidGiveaway `tl:"flag:3"`
MyBoostSlots []int32 `tl:"flag:2"`
}
Contains info about the current boost status of a peer.
func (*PremiumBoostsStatus) CRC ¶
func (*PremiumBoostsStatus) CRC() uint32
func (*PremiumBoostsStatus) FlagIndex ¶
func (*PremiumBoostsStatus) FlagIndex() int
type PremiumGetBoostsListParams ¶
type PremiumGetBoostsListParams struct {
Gifts bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputPeer
Offset string
Limit int32
}
func (*PremiumGetBoostsListParams) CRC ¶
func (*PremiumGetBoostsListParams) CRC() uint32
func (*PremiumGetBoostsListParams) FlagIndex ¶
func (*PremiumGetBoostsListParams) FlagIndex() int
type PremiumGetBoostsStatusParams ¶
type PremiumGetBoostsStatusParams struct {
Peer InputPeer
}
func (*PremiumGetBoostsStatusParams) CRC ¶
func (*PremiumGetBoostsStatusParams) CRC() uint32
type PremiumGetMyBoostsParams ¶
type PremiumGetMyBoostsParams struct{}
func (*PremiumGetMyBoostsParams) CRC ¶
func (*PremiumGetMyBoostsParams) CRC() uint32
type PremiumGetUserBoostsParams ¶
func (*PremiumGetUserBoostsParams) CRC ¶
func (*PremiumGetUserBoostsParams) CRC() uint32
type PremiumGiftCodeOption ¶
type PremiumGiftCodeOption struct {
Users int32
Months int32
StoreProduct string `tl:"flag:0"`
StoreQuantity int32 `tl:"flag:1"`
Currency string
Amount int64
}
Contains info about a giveaway/gift option.
func (*PremiumGiftCodeOption) CRC ¶
func (*PremiumGiftCodeOption) CRC() uint32
func (*PremiumGiftCodeOption) FlagIndex ¶
func (*PremiumGiftCodeOption) FlagIndex() int
type PremiumMyBoosts ¶
A list of peers we are currently boosting, and how many boost slots we have left.
func (*PremiumMyBoosts) CRC ¶
func (*PremiumMyBoosts) CRC() uint32
type PremiumSubscriptionOption ¶
type PremiumSubscriptionOption struct {
Current bool `tl:"flag:1,encoded_in_bitflags"`
CanPurchaseUpgrade bool `tl:"flag:2,encoded_in_bitflags"`
Transaction string `tl:"flag:3"`
Months int32
Currency string
Amount int64
BotURL string
StoreProduct string `tl:"flag:0"`
}
Describes a Telegram Premium subscription option
func (*PremiumSubscriptionOption) CRC ¶
func (*PremiumSubscriptionOption) CRC() uint32
func (*PremiumSubscriptionOption) FlagIndex ¶
func (*PremiumSubscriptionOption) FlagIndex() int
type PrepaidGiveaway ¶
type PrepaidGiveawayObj ¶
type PrepaidGiveawayObj struct {
ID int64 // Prepaid giveaway ID.
Months int32 // Duration in months of each gifted Telegram Premium subscription.
Quantity int32 // Number of given away Telegram Premium subscriptions.
Date int32 // Payment date.
}
Contains info about a prepaid giveaway.
func (*PrepaidGiveawayObj) CRC ¶
func (*PrepaidGiveawayObj) CRC() uint32
func (*PrepaidGiveawayObj) ImplementsPrepaidGiveaway ¶
func (*PrepaidGiveawayObj) ImplementsPrepaidGiveaway()
type PrepaidStarsGiveaway ¶
type PrepaidStarsGiveaway struct {
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
}
Contains info about a prepaid Telegram Star giveaway.
func (*PrepaidStarsGiveaway) CRC ¶
func (*PrepaidStarsGiveaway) CRC() uint32
func (*PrepaidStarsGiveaway) ImplementsPrepaidGiveaway ¶
func (*PrepaidStarsGiveaway) ImplementsPrepaidGiveaway()
type PrivacyKey ¶
type PrivacyKey uint32
const ( PrivacyKeyAbout PrivacyKey = 0xa486b761 PrivacyKeyAddedByPhone PrivacyKey = 0x42ffd42b PrivacyKeyBirthday PrivacyKey = 0x2000a518 PrivacyKeyChatInvite PrivacyKey = 0x500e6dfa PrivacyKeyForwards PrivacyKey = 0x69ec56a3 PrivacyKeyNoPaidMessages PrivacyKey = 0x17d348d2 PrivacyKeyPhoneCall PrivacyKey = 0x3d662b7b PrivacyKeyPhoneNumber PrivacyKey = 0xd19ae46d PrivacyKeyPhoneP2P PrivacyKey = 0x39491cc8 PrivacyKeyProfilePhoto PrivacyKey = 0x96151fed PrivacyKeySavedMusic PrivacyKey = 0xff7a571b PrivacyKeyStarGiftsAutoSave PrivacyKey = 0x2ca4fdf8 PrivacyKeyStatusTimestamp PrivacyKey = 0xbc2eab30 PrivacyKeyVoiceMessages PrivacyKey = 0x697f414 )
func (PrivacyKey) CRC ¶
func (e PrivacyKey) CRC() uint32
func (PrivacyKey) String ¶
func (e PrivacyKey) String() string
type PrivacyRule ¶
type PrivacyValueAllowAll ¶
type PrivacyValueAllowAll struct{}
Allow all users
func (*PrivacyValueAllowAll) CRC ¶
func (*PrivacyValueAllowAll) CRC() uint32
func (*PrivacyValueAllowAll) ImplementsPrivacyRule ¶
func (*PrivacyValueAllowAll) ImplementsPrivacyRule()
type PrivacyValueAllowBots ¶ added in v1.3.21
type PrivacyValueAllowBots struct{}
Allow bots and mini apps
func (*PrivacyValueAllowBots) CRC ¶ added in v1.3.21
func (*PrivacyValueAllowBots) CRC() uint32
func (*PrivacyValueAllowBots) ImplementsPrivacyRule ¶ added in v1.3.21
func (*PrivacyValueAllowBots) ImplementsPrivacyRule()
type PrivacyValueAllowChatParticipants ¶
type PrivacyValueAllowChatParticipants struct {
Chats []int64 // Allowed chat IDs (either a chat or a supergroup ID, verbatim the way it is received in the constructor (i.e. unlike with bot API IDs, here group and supergroup IDs should be treated in the same way)).
}
Allow all participants of certain chats
func (*PrivacyValueAllowChatParticipants) CRC ¶
func (*PrivacyValueAllowChatParticipants) CRC() uint32
func (*PrivacyValueAllowChatParticipants) ImplementsPrivacyRule ¶
func (*PrivacyValueAllowChatParticipants) ImplementsPrivacyRule()
type PrivacyValueAllowCloseFriends ¶
type PrivacyValueAllowCloseFriends struct{}
Allow only close friends
func (*PrivacyValueAllowCloseFriends) CRC ¶
func (*PrivacyValueAllowCloseFriends) CRC() uint32
func (*PrivacyValueAllowCloseFriends) ImplementsPrivacyRule ¶
func (*PrivacyValueAllowCloseFriends) ImplementsPrivacyRule()
type PrivacyValueAllowContacts ¶
type PrivacyValueAllowContacts struct{}
Allow all contacts
func (*PrivacyValueAllowContacts) CRC ¶
func (*PrivacyValueAllowContacts) CRC() uint32
func (*PrivacyValueAllowContacts) ImplementsPrivacyRule ¶
func (*PrivacyValueAllowContacts) ImplementsPrivacyRule()
type PrivacyValueAllowPremium ¶
type PrivacyValueAllowPremium struct{}
Allow only users with a Premium subscription, currently only usable for inputPrivacyKeyChatInvite.
func (*PrivacyValueAllowPremium) CRC ¶
func (*PrivacyValueAllowPremium) CRC() uint32
func (*PrivacyValueAllowPremium) ImplementsPrivacyRule ¶
func (*PrivacyValueAllowPremium) ImplementsPrivacyRule()
type PrivacyValueAllowUsers ¶
type PrivacyValueAllowUsers struct {
Users []int64 // Allowed users
}
Allow only certain users
func (*PrivacyValueAllowUsers) CRC ¶
func (*PrivacyValueAllowUsers) CRC() uint32
func (*PrivacyValueAllowUsers) ImplementsPrivacyRule ¶
func (*PrivacyValueAllowUsers) ImplementsPrivacyRule()
type PrivacyValueDisallowAll ¶
type PrivacyValueDisallowAll struct{}
Disallow all users
func (*PrivacyValueDisallowAll) CRC ¶
func (*PrivacyValueDisallowAll) CRC() uint32
func (*PrivacyValueDisallowAll) ImplementsPrivacyRule ¶
func (*PrivacyValueDisallowAll) ImplementsPrivacyRule()
type PrivacyValueDisallowBots ¶ added in v1.3.21
type PrivacyValueDisallowBots struct{}
Disallow bots and mini apps
func (*PrivacyValueDisallowBots) CRC ¶ added in v1.3.21
func (*PrivacyValueDisallowBots) CRC() uint32
func (*PrivacyValueDisallowBots) ImplementsPrivacyRule ¶ added in v1.3.21
func (*PrivacyValueDisallowBots) ImplementsPrivacyRule()
type PrivacyValueDisallowChatParticipants ¶
type PrivacyValueDisallowChatParticipants struct {
Chats []int64 // Disallowed chats IDs (either a chat or a supergroup ID, verbatim the way it is received in the constructor (i.e. unlike with bot API IDs, here group and supergroup IDs should be treated in the same way)).
}
Disallow only participants of certain chats
func (*PrivacyValueDisallowChatParticipants) CRC ¶
func (*PrivacyValueDisallowChatParticipants) CRC() uint32
func (*PrivacyValueDisallowChatParticipants) ImplementsPrivacyRule ¶
func (*PrivacyValueDisallowChatParticipants) ImplementsPrivacyRule()
type PrivacyValueDisallowContacts ¶
type PrivacyValueDisallowContacts struct{}
Disallow only contacts
func (*PrivacyValueDisallowContacts) CRC ¶
func (*PrivacyValueDisallowContacts) CRC() uint32
func (*PrivacyValueDisallowContacts) ImplementsPrivacyRule ¶
func (*PrivacyValueDisallowContacts) ImplementsPrivacyRule()
type PrivacyValueDisallowUsers ¶
type PrivacyValueDisallowUsers struct {
Users []int64 // Disallowed users
}
Disallow only certain users
func (*PrivacyValueDisallowUsers) CRC ¶
func (*PrivacyValueDisallowUsers) CRC() uint32
func (*PrivacyValueDisallowUsers) ImplementsPrivacyRule ¶
func (*PrivacyValueDisallowUsers) ImplementsPrivacyRule()
type ProfileTab ¶ added in v1.6.3
type ProfileTab uint32
const ( ProfileTabFiles ProfileTab = 0xab339c00 ProfileTabGifs ProfileTab = 0xa2c0f695 ProfileTabGifts ProfileTab = 0x4d4bd46a ProfileTabLinks ProfileTab = 0xd3656499 ProfileTabMedia ProfileTab = 0x72c64955 ProfileTabMusic ProfileTab = 0x9f27d26e ProfileTabPosts ProfileTab = 0xb98cd696 ProfileTabVoice ProfileTab = 0xe477092e )
func (ProfileTab) CRC ¶ added in v1.6.3
func (e ProfileTab) CRC() uint32
func (ProfileTab) String ¶ added in v1.6.3
func (e ProfileTab) String() string
type ProgressInfo ¶ added in v1.6.9
type ProgressInfo struct {
// File name being transferred
FileName string
// Total file size in bytes
TotalSize int64
// Current bytes transferred
Current int64
// Current transfer speed in bytes/second (speed in last interval)
CurrentSpeed float64
// Average transfer speed in bytes/second (overall)
AverageSpeed float64
// Estimated time remaining in seconds
ETA float64
// Time elapsed since start in seconds
Elapsed float64
// Progress percentage (0-100)
Percentage float64
}
ProgressInfo contains all information about upload/download progress
func (*ProgressInfo) AvgSpeedString ¶ added in v1.6.9
func (p *ProgressInfo) AvgSpeedString() string
AvgSpeedString returns average speed as human-readable string
func (*ProgressInfo) ETAString ¶ added in v1.6.9
func (p *ProgressInfo) ETAString() string
ETAString returns ETA as human-readable string
func (*ProgressInfo) ElapsedString ¶ added in v1.6.9
func (p *ProgressInfo) ElapsedString() string
ElapsedString returns elapsed time as human-readable string
func (*ProgressInfo) SpeedString ¶ added in v1.6.9
func (p *ProgressInfo) SpeedString() string
SpeedString returns current speed as human-readable string
type ProgressManager ¶
type ProgressManager struct {
// contains filtered or unexported fields
}
ProgressManager provides progress tracking for uploads and downloads
func NewProgressManager ¶
func NewProgressManager(editInterval int, editFunc ...func(totalSize, currentSize int64)) *ProgressManager
func (*ProgressManager) SetFileName ¶ added in v1.5.6
func (pm *ProgressManager) SetFileName(fileName string)
func (*ProgressManager) SetInlineMessage ¶ added in v1.5.9
func (pm *ProgressManager) SetInlineMessage(client *Client, inline *InputBotInlineMessageID) *ProgressManager
func (*ProgressManager) SetMessage ¶ added in v1.5.9
func (pm *ProgressManager) SetMessage(msg *NewMessage) *ProgressManager
SetMessage sets up progress reporting to edit a telegram message
func (*ProgressManager) SetTotalSize ¶
func (pm *ProgressManager) SetTotalSize(totalSize int64)
func (*ProgressManager) WithCallback ¶ added in v1.6.9
func (pm *ProgressManager) WithCallback(callback func(*ProgressInfo)) *ProgressManager
WithCallback sets the callback function
func (*ProgressManager) WithEdit ¶ added in v1.4.4
func (pm *ProgressManager) WithEdit(editFunc func(totalSize, currentSize int64)) *ProgressManager
WithEdit sets the edit function
type Proxy ¶ added in v1.6.7
type Proxy interface {
GetHost() string
GetPort() int
Type() string
GetUsername() string
GetPassword() string
GetSecret() string
// contains filtered or unexported methods
}
func ProxyFromURL ¶ added in v1.6.7
ProxyFromURL creates a Proxy from a URL string Supported formats:
- socks4://[userid@]host:port
- socks5://[user:pass@]host:port
- http://[user:pass@]host:port
- https://[user:pass@]host:port
- mtproxy://secret@host:port
- tg://proxy?server=host&port=port&secret=secret
- secret@host:port (for mtproxy without scheme)
type PublicForward ¶
type PublicForwardMessage ¶
type PublicForwardMessage struct {
Message Message // Info about the message with the reposted story.
}
Contains info about a forward of a story as a message.
func (*PublicForwardMessage) CRC ¶
func (*PublicForwardMessage) CRC() uint32
func (*PublicForwardMessage) ImplementsPublicForward ¶
func (*PublicForwardMessage) ImplementsPublicForward()
type PublicForwardStory ¶
type PublicForwardStory struct {
Peer Peer // The channel that reposted the story.
Story StoryItem // The reposted story (may be different from the original story).
}
Contains info about a forward of a story as a repost by a public channel.
func (*PublicForwardStory) CRC ¶
func (*PublicForwardStory) CRC() uint32
func (*PublicForwardStory) ImplementsPublicForward ¶
func (*PublicForwardStory) ImplementsPublicForward()
type QrOptions ¶ added in v1.6.9
type QrOptions struct {
IgnoredIDs []int64 // IDs to be excluded from the QR login
PasswordCallback AuthCallback // Callback to get password if 2FA is enabled
OnWrongPassword WrongPasswordCallback // Called when password is incorrect
Timeout int32 // Timeout for the QR login in seconds
MaxRetries int // Max password retry attempts (default: 3)
}
type QrToken ¶
type QrToken struct {
// contains filtered or unexported fields
}
func (*QrToken) ExportAsPng ¶ added in v1.6.9
func (*QrToken) ExportAsSmallString ¶ added in v1.6.9
func (*QrToken) PrintToConsole ¶ added in v1.6.9
func (q *QrToken) PrintToConsole()
type RTMPConfig ¶ added in v1.6.10
type RTMPConfig struct {
Bitrate string // Video bitrate (e.g., "2000k")
AudioBit string // Audio bitrate (e.g., "96k")
FrameRate int // Video frame rate (default: 30)
LoopCount int // Number of times to loop (-1 for infinite)
}
func DefaultRTMPConfig ¶ added in v1.6.10
func DefaultRTMPConfig() *RTMPConfig
type RTMPStream ¶ added in v1.6.10
type RTMPStream struct {
// contains filtered or unexported fields
}
func (*RTMPStream) ClosePipe ¶ added in v1.6.10
func (s *RTMPStream) ClosePipe() error
ClosePipe closes the stdin pipe, signaling EOF to ffmpeg. Call this when you're done feeding data.
func (*RTMPStream) CurrentPosition ¶ added in v1.6.10
func (s *RTMPStream) CurrentPosition() time.Duration
CurrentPosition returns the current playback position
func (*RTMPStream) FeedChunk ¶ added in v1.6.10
func (s *RTMPStream) FeedChunk(data []byte) error
FeedChunk writes a chunk of data to the RTMP stream. Must call StartPipe() first to initialize the stream. Returns error if stream is not playing or write fails.
func (*RTMPStream) FeedReader ¶ added in v1.6.10
func (s *RTMPStream) FeedReader(r io.Reader) error
FeedReader reads from an io.Reader and feeds data to the RTMP stream. This is useful for streaming from HTTP responses, files, etc. Must call StartPipe() first.
func (*RTMPStream) FetchRTMPURL ¶ added in v1.6.10
func (s *RTMPStream) FetchRTMPURL() error
FetchRTMPURL fetches the RTMP URL and stream key from Telegram. NOTE: This can only be called by user accounts, not bot accounts. Bot accounts will receive an error. For bots, use SetURL() and SetKey() manually.
func (*RTMPStream) GetFullURL ¶ added in v1.6.10
func (s *RTMPStream) GetFullURL() string
func (*RTMPStream) GetKey ¶ added in v1.6.10
func (s *RTMPStream) GetKey() string
func (*RTMPStream) GetURL ¶ added in v1.6.10
func (s *RTMPStream) GetURL() string
func (*RTMPStream) IsMuted ¶ added in v1.7.0
func (s *RTMPStream) IsMuted() bool
IsMuted returns whether the audio is currently muted
func (*RTMPStream) LastError ¶ added in v1.6.10
func (s *RTMPStream) LastError() error
LastError returns the last error that occurred during streaming
func (*RTMPStream) Mute ¶ added in v1.7.0
func (s *RTMPStream) Mute() error
Mute mutes the audio stream by restarting FFmpeg with volume=0 filter
func (*RTMPStream) OnEnd ¶ added in v1.7.0
func (s *RTMPStream) OnEnd(fn func(int64))
OnEnd sets a callback function that will be called when the stream ends normally
func (*RTMPStream) OnError ¶ added in v1.6.10
func (s *RTMPStream) OnError(fn func(int64, error))
OnError sets a callback function that will be called when an error occurs
func (*RTMPStream) Pause ¶ added in v1.6.10
func (s *RTMPStream) Pause() error
func (*RTMPStream) Play ¶ added in v1.6.10
func (s *RTMPStream) Play(source any) error
Play starts streaming from a file path (string) or raw bytes ([]byte)
func (*RTMPStream) PlayAudioWithImage ¶ added in v1.7.0
func (s *RTMPStream) PlayAudioWithImage(audioSource any, imageSource string) error
PlayAudioWithImage streams audio with a static image as background.
func (*RTMPStream) RefreshRTMPURL ¶ added in v1.6.10
func (s *RTMPStream) RefreshRTMPURL() error
RefreshRTMPURL fetches a new RTMP URL and stream key (revokes the old one). NOTE: This can only be called by user accounts, not bot accounts.
func (*RTMPStream) Resume ¶ added in v1.6.10
func (s *RTMPStream) Resume() error
func (*RTMPStream) Seek ¶ added in v1.6.10
func (s *RTMPStream) Seek(position time.Duration) error
Seek to a specific position (only works with file input)
func (*RTMPStream) SetAudioBitrate ¶ added in v1.6.10
func (s *RTMPStream) SetAudioBitrate(bitrate string)
func (*RTMPStream) SetBitrate ¶ added in v1.6.10
func (s *RTMPStream) SetBitrate(bitrate string)
func (*RTMPStream) SetFrameRate ¶ added in v1.6.10
func (s *RTMPStream) SetFrameRate(fps int)
func (*RTMPStream) SetFullURL ¶ added in v1.6.10
func (s *RTMPStream) SetFullURL(fullURL string) error
func (*RTMPStream) SetKey ¶ added in v1.6.10
func (s *RTMPStream) SetKey(key string)
func (*RTMPStream) SetLoopCount ¶ added in v1.6.10
func (s *RTMPStream) SetLoopCount(count int)
func (*RTMPStream) SetURL ¶ added in v1.6.10
func (s *RTMPStream) SetURL(url string)
func (*RTMPStream) StartPipe ¶ added in v1.6.10
func (s *RTMPStream) StartPipe() error
StartPipe starts the RTMP stream expecting data to be fed via FeedChunk(). Use this when you want to stream data progressively in chunks.
func (*RTMPStream) State ¶ added in v1.6.10
func (s *RTMPStream) State() StreamState
func (*RTMPStream) Stop ¶ added in v1.6.10
func (s *RTMPStream) Stop() error
func (*RTMPStream) Unmute ¶ added in v1.7.0
func (s *RTMPStream) Unmute() error
Unmute unmutes the audio stream by restarting FFmpeg without volume filter
type RawHandler ¶
type ReactionCount ¶
Reactions
func (*ReactionCount) CRC ¶
func (*ReactionCount) CRC() uint32
func (*ReactionCount) FlagIndex ¶
func (*ReactionCount) FlagIndex() int
type ReactionCustomEmoji ¶
type ReactionCustomEmoji struct {
DocumentID int64 // Custom emoji document ID
}
Custom emoji message reaction
func (*ReactionCustomEmoji) CRC ¶
func (*ReactionCustomEmoji) CRC() uint32
func (*ReactionCustomEmoji) ImplementsReaction ¶
func (*ReactionCustomEmoji) ImplementsReaction()
type ReactionEmoji ¶
type ReactionEmoji struct {
Emoticon string // Emoji
}
Normal emoji message reaction
func (*ReactionEmoji) CRC ¶
func (*ReactionEmoji) CRC() uint32
func (*ReactionEmoji) ImplementsReaction ¶
func (*ReactionEmoji) ImplementsReaction()
type ReactionEmpty ¶
type ReactionEmpty struct{}
No reaction
func (*ReactionEmpty) CRC ¶
func (*ReactionEmpty) CRC() uint32
func (*ReactionEmpty) ImplementsReaction ¶
func (*ReactionEmpty) ImplementsReaction()
type ReactionNotificationsFrom ¶
type ReactionNotificationsFrom uint32
const ( ReactionNotificationsFromAll ReactionNotificationsFrom = 0x4b9e22a0 ReactionNotificationsFromContacts ReactionNotificationsFrom = 0xbac3a61a )
func (ReactionNotificationsFrom) CRC ¶
func (e ReactionNotificationsFrom) CRC() uint32
func (ReactionNotificationsFrom) String ¶
func (e ReactionNotificationsFrom) String() string
type ReactionPaid ¶
type ReactionPaid struct{}
Represents a paid Telegram Star reaction.
func (*ReactionPaid) CRC ¶
func (*ReactionPaid) CRC() uint32
func (*ReactionPaid) ImplementsReaction ¶
func (*ReactionPaid) ImplementsReaction()
type ReactionsNotifySettings ¶
type ReactionsNotifySettings struct {
MessagesNotifyFrom ReactionNotificationsFrom `tl:"flag:0"`
StoriesNotifyFrom ReactionNotificationsFrom `tl:"flag:1"`
Sound NotificationSound
ShowPreviews bool
}
Reaction notification settings
func (*ReactionsNotifySettings) CRC ¶
func (*ReactionsNotifySettings) CRC() uint32
func (*ReactionsNotifySettings) FlagIndex ¶
func (*ReactionsNotifySettings) FlagIndex() int
type ReadParticipantDate ¶
Contains info about when a certain participant has read a message
func (*ReadParticipantDate) CRC ¶
func (*ReadParticipantDate) CRC() uint32
type ReceivedNotifyMessage ¶
Message ID, for which PUSH-notifications were cancelled.
func (*ReceivedNotifyMessage) CRC ¶
func (*ReceivedNotifyMessage) CRC() uint32
type RecentMeURL ¶
type RecentMeURLChat ¶
Recent t.me link to a chat
func (*RecentMeURLChat) CRC ¶
func (*RecentMeURLChat) CRC() uint32
func (*RecentMeURLChat) ImplementsRecentMeURL ¶
func (*RecentMeURLChat) ImplementsRecentMeURL()
type RecentMeURLChatInvite ¶
type RecentMeURLChatInvite struct {
URL string // t.me URL
ChatInvite ChatInvite // Chat invitation
}
Recent t.me invite link to a chat
func (*RecentMeURLChatInvite) CRC ¶
func (*RecentMeURLChatInvite) CRC() uint32
func (*RecentMeURLChatInvite) ImplementsRecentMeURL ¶
func (*RecentMeURLChatInvite) ImplementsRecentMeURL()
type RecentMeURLStickerSet ¶
type RecentMeURLStickerSet struct {
URL string // t.me URL
Set StickerSetCovered // Stickerset
}
Recent t.me stickerset installation URL
func (*RecentMeURLStickerSet) CRC ¶
func (*RecentMeURLStickerSet) CRC() uint32
func (*RecentMeURLStickerSet) ImplementsRecentMeURL ¶
func (*RecentMeURLStickerSet) ImplementsRecentMeURL()
type RecentMeURLUnknown ¶
type RecentMeURLUnknown struct {
URL string // URL
}
Unknown t.me url
func (*RecentMeURLUnknown) CRC ¶
func (*RecentMeURLUnknown) CRC() uint32
func (*RecentMeURLUnknown) ImplementsRecentMeURL ¶
func (*RecentMeURLUnknown) ImplementsRecentMeURL()
type RecentMeURLUser ¶
Recent t.me link to a user
func (*RecentMeURLUser) CRC ¶
func (*RecentMeURLUser) CRC() uint32
func (*RecentMeURLUser) ImplementsRecentMeURL ¶
func (*RecentMeURLUser) ImplementsRecentMeURL()
type RecentStory ¶ added in v1.6.7
func (*RecentStory) CRC ¶ added in v1.6.7
func (*RecentStory) CRC() uint32
func (*RecentStory) FlagIndex ¶ added in v1.6.7
func (*RecentStory) FlagIndex() int
type ReplyInlineMarkup ¶
type ReplyInlineMarkup struct {
Rows []*KeyboardButtonRow // Bot or inline keyboard rows
}
Bot or inline keyboard
func InlineData ¶ added in v1.6.10
func InlineData(pairs ...string) *ReplyInlineMarkup
func InlineDataGrid ¶ added in v1.6.10
func InlineDataGrid(perRow int, pairs ...string) *ReplyInlineMarkup
func InlineURL ¶ added in v1.6.10
func InlineURL(pairs ...string) *ReplyInlineMarkup
func InlineURLGrid ¶ added in v1.6.10
func InlineURLGrid(perRow int, pairs ...string) *ReplyInlineMarkup
func (*ReplyInlineMarkup) CRC ¶
func (*ReplyInlineMarkup) CRC() uint32
func (*ReplyInlineMarkup) ImplementsReplyMarkup ¶
func (*ReplyInlineMarkup) ImplementsReplyMarkup()
type ReplyKeyboardForceReply ¶
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.
Placeholder string `tl:"flag:3"` // The placeholder to be shown in the input field when the keyboard is active; 1-64 characters.
}
Force the user to send a reply
func (*ReplyKeyboardForceReply) CRC ¶
func (*ReplyKeyboardForceReply) CRC() uint32
func (*ReplyKeyboardForceReply) FlagIndex ¶
func (*ReplyKeyboardForceReply) FlagIndex() int
func (*ReplyKeyboardForceReply) ImplementsReplyMarkup ¶
func (*ReplyKeyboardForceReply) ImplementsReplyMarkup()
type ReplyKeyboardHide ¶
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. 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
}
Hide sent bot keyboard
func (*ReplyKeyboardHide) CRC ¶
func (*ReplyKeyboardHide) CRC() uint32
func (*ReplyKeyboardHide) FlagIndex ¶
func (*ReplyKeyboardHide) FlagIndex() int
func (*ReplyKeyboardHide) ImplementsReplyMarkup ¶
func (*ReplyKeyboardHide) ImplementsReplyMarkup()
type ReplyKeyboardMarkup ¶
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. 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
Placeholder string `tl:"flag:3"` // The placeholder to be shown in the input field when the keyboard is active; 1-64 characters.
}
Bot keyboard
func (*ReplyKeyboardMarkup) CRC ¶
func (*ReplyKeyboardMarkup) CRC() uint32
func (*ReplyKeyboardMarkup) FlagIndex ¶
func (*ReplyKeyboardMarkup) FlagIndex() int
func (*ReplyKeyboardMarkup) ImplementsReplyMarkup ¶
func (*ReplyKeyboardMarkup) ImplementsReplyMarkup()
type ReplyMarkup ¶
type ReportReason ¶
type ReportReason uint32
const ( InputReportReasonChildAbuse ReportReason = 0xadf44ee3 InputReportReasonCopyright ReportReason = 0x9b89f93a InputReportReasonFake ReportReason = 0xf5ddd6e7 InputReportReasonGeoIrrelevant ReportReason = 0xdbd4feed InputReportReasonIllegalDrugs ReportReason = 0xa8eb2be InputReportReasonOther ReportReason = 0xc1e4a2b1 InputReportReasonPersonalDetails ReportReason = 0x9ec7863d InputReportReasonPornography ReportReason = 0x2e59d922 InputReportReasonSpam ReportReason = 0x58dbcab8 InputReportReasonViolence ReportReason = 0x1e22c78d )
func (ReportReason) CRC ¶
func (e ReportReason) CRC() uint32
func (ReportReason) String ¶
func (e ReportReason) String() string
type ReportResult ¶
type ReportResultAddComment ¶
type ReportResultAddComment struct {
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`
}
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`.
func (*ReportResultAddComment) CRC ¶
func (*ReportResultAddComment) CRC() uint32
func (*ReportResultAddComment) FlagIndex ¶
func (*ReportResultAddComment) FlagIndex() int
func (*ReportResultAddComment) ImplementsReportResult ¶
func (*ReportResultAddComment) ImplementsReportResult()
type ReportResultChooseOption ¶
type ReportResultChooseOption struct {
Title string // Title of the option popup
Options []*MessageReportOption // Available options, rendered as menu entries.
}
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`.
func (*ReportResultChooseOption) CRC ¶
func (*ReportResultChooseOption) CRC() uint32
func (*ReportResultChooseOption) ImplementsReportResult ¶
func (*ReportResultChooseOption) ImplementsReportResult()
type ReportResultReported ¶
type ReportResultReported struct{}
The report was sent successfully, no further actions are required.
func (*ReportResultReported) CRC ¶
func (*ReportResultReported) CRC() uint32
func (*ReportResultReported) ImplementsReportResult ¶
func (*ReportResultReported) ImplementsReportResult()
type RequestPeerOptions ¶ added in v1.5.9
type RequestPeerType ¶
type RequestPeerTypeBroadcast ¶
type RequestPeerTypeBroadcast struct {
Creator bool `tl:"flag:0,encoded_in_bitflags"` // Whether to allow only choosing channels that were created by the current user.
HasUsername bool `tl:"flag:3"` // 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 channels where the current user is an admin with at least the specified admin rights.
BotAdminRights *ChatAdminRights `tl:"flag:2"` // If specified, allows only choosing channels where the bot is an admin with at least the specified admin rights.
}
Choose a channel
func (*RequestPeerTypeBroadcast) CRC ¶
func (*RequestPeerTypeBroadcast) CRC() uint32
func (*RequestPeerTypeBroadcast) FlagIndex ¶
func (*RequestPeerTypeBroadcast) FlagIndex() int
func (*RequestPeerTypeBroadcast) ImplementsRequestPeerType ¶
func (*RequestPeerTypeBroadcast) ImplementsRequestPeerType()
type RequestPeerTypeChat ¶
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.
BotParticipant bool `tl:"flag:5,encoded_in_bitflags"` // Whether to allow only choosing chats or supergroups where the bot is a participant.
HasUsername bool `tl:"flag:3"` // 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.
}
Choose a chat or supergroup
func (*RequestPeerTypeChat) CRC ¶
func (*RequestPeerTypeChat) CRC() uint32
func (*RequestPeerTypeChat) FlagIndex ¶
func (*RequestPeerTypeChat) FlagIndex() int
func (*RequestPeerTypeChat) ImplementsRequestPeerType ¶
func (*RequestPeerTypeChat) ImplementsRequestPeerType()
type RequestPeerTypeUser ¶
type RequestPeerTypeUser struct {
Bot bool `tl:"flag:0"` // Whether to allow choosing only bots.
Premium bool `tl:"flag:1"` // Whether to allow choosing only Premium users.
}
Choose a user.
func (*RequestPeerTypeUser) CRC ¶
func (*RequestPeerTypeUser) CRC() uint32
func (*RequestPeerTypeUser) FlagIndex ¶
func (*RequestPeerTypeUser) FlagIndex() int
func (*RequestPeerTypeUser) ImplementsRequestPeerType ¶
func (*RequestPeerTypeUser) ImplementsRequestPeerType()
type RequestedPeer ¶
type RequestedPeerChannel ¶
type RequestedPeerChannel struct {
ChannelID int64 // Channel/supergroup ID.
Title string `tl:"flag:0"` // Channel/supergroup title.
Username string `tl:"flag:1"` // Channel/supergroup username.
Photo Photo `tl:"flag:2"` // Channel/supergroup photo.
}
Info about a channel/supergroup, shared by a user with the currently logged in bot using messages.sendBotRequestedPeer.
func (*RequestedPeerChannel) CRC ¶
func (*RequestedPeerChannel) CRC() uint32
func (*RequestedPeerChannel) FlagIndex ¶
func (*RequestedPeerChannel) FlagIndex() int
func (*RequestedPeerChannel) ImplementsRequestedPeer ¶
func (*RequestedPeerChannel) ImplementsRequestedPeer()
type RequestedPeerChat ¶
type RequestedPeerChat struct {
ChatID int64 // Chat ID.
Title string `tl:"flag:0"` // Chat title.
Photo Photo `tl:"flag:2"` // Chat photo.
}
Info about a chat, shared by a user with the currently logged in bot using messages.sendBotRequestedPeer.
func (*RequestedPeerChat) CRC ¶
func (*RequestedPeerChat) CRC() uint32
func (*RequestedPeerChat) FlagIndex ¶
func (*RequestedPeerChat) FlagIndex() int
func (*RequestedPeerChat) ImplementsRequestedPeer ¶
func (*RequestedPeerChat) ImplementsRequestedPeer()
type RequestedPeerUser ¶
type RequestedPeerUser struct {
UserID int64 // User ID.
FirstName string `tl:"flag:0"` // First name.
LastName string `tl:"flag:0"` // Last name.
Username string `tl:"flag:1"` // Username.
Photo Photo `tl:"flag:2"` // Profile photo.
}
Info about a user, shared by a user with the currently logged in bot using messages.sendBotRequestedPeer.
func (*RequestedPeerUser) CRC ¶
func (*RequestedPeerUser) CRC() uint32
func (*RequestedPeerUser) FlagIndex ¶
func (*RequestedPeerUser) FlagIndex() int
func (*RequestedPeerUser) ImplementsRequestedPeer ¶
func (*RequestedPeerUser) ImplementsRequestedPeer()
type RequirementToContact ¶ added in v1.5.9
type RequirementToContactEmpty ¶ added in v1.5.9
type RequirementToContactEmpty struct{}
This user can be freely contacted.
func (*RequirementToContactEmpty) CRC ¶ added in v1.5.9
func (*RequirementToContactEmpty) CRC() uint32
func (*RequirementToContactEmpty) ImplementsRequirementToContact ¶ added in v1.5.9
func (*RequirementToContactEmpty) ImplementsRequirementToContact()
type RequirementToContactPaidMessages ¶ added in v1.5.9
type RequirementToContactPaidMessages struct {
StarsAmount int64 // The required amount of Telegram Stars.
}
This user requires us to pay the specified amount of Telegram Stars to send them a message
func (*RequirementToContactPaidMessages) CRC ¶ added in v1.5.9
func (*RequirementToContactPaidMessages) CRC() uint32
func (*RequirementToContactPaidMessages) ImplementsRequirementToContact ¶ added in v1.5.9
func (*RequirementToContactPaidMessages) ImplementsRequirementToContact()
type RequirementToContactPremium ¶ added in v1.5.9
type RequirementToContactPremium struct{}
This user requires us to buy a Premium subscription in order to contact them.
func (*RequirementToContactPremium) CRC ¶ added in v1.5.9
func (*RequirementToContactPremium) CRC() uint32
func (*RequirementToContactPremium) ImplementsRequirementToContact ¶ added in v1.5.9
func (*RequirementToContactPremium) ImplementsRequirementToContact()
type RestrictionReason ¶
Restriction reason.
func (*RestrictionReason) CRC ¶
func (*RestrictionReason) CRC() uint32
type SavedDialog ¶
type SavedDialogObj ¶ added in v1.6.0
type SavedDialogObj struct {
Pinned bool `tl:"flag:2,encoded_in_bitflags"` // Is the dialog pinned
Peer Peer // The dialog
TopMessage int32 // The latest message ID
}
Represents a saved dialog.
func (*SavedDialogObj) CRC ¶ added in v1.6.0
func (*SavedDialogObj) CRC() uint32
func (*SavedDialogObj) FlagIndex ¶ added in v1.6.0
func (*SavedDialogObj) FlagIndex() int
func (*SavedDialogObj) ImplementsSavedDialog ¶ added in v1.6.0
func (*SavedDialogObj) ImplementsSavedDialog()
type SavedPhoneContact ¶
Saved contact
func (*SavedPhoneContact) CRC ¶
func (*SavedPhoneContact) CRC() uint32
type SavedReactionTag ¶
Info about a saved message reaction tag.
func (*SavedReactionTag) CRC ¶
func (*SavedReactionTag) CRC() uint32
func (*SavedReactionTag) FlagIndex ¶
func (*SavedReactionTag) FlagIndex() int
type SavedStarGift ¶ added in v1.5.6
type SavedStarGift struct {
NameHidden bool `tl:"flag:0,encoded_in_bitflags"`
Unsaved bool `tl:"flag:5,encoded_in_bitflags"`
Refunded bool `tl:"flag:9,encoded_in_bitflags"`
CanUpgrade bool `tl:"flag:10,encoded_in_bitflags"`
PinnedToTop bool `tl:"flag:12,encoded_in_bitflags"`
UpgradeSeparate bool `tl:"flag:17,encoded_in_bitflags"`
FromID Peer `tl:"flag:1"`
Date int32
Gift StarGift
Message *TextWithEntities `tl:"flag:2"`
MsgID int32 `tl:"flag:3"`
SavedID int64 `tl:"flag:11"`
ConvertStars int64 `tl:"flag:4"`
UpgradeStars int64 `tl:"flag:6"`
CanExportAt int32 `tl:"flag:7"`
TransferStars int64 `tl:"flag:8"`
CanTransferAt int32 `tl:"flag:13"`
CanResellAt int32 `tl:"flag:14"`
CollectionID []int32 `tl:"flag:15"`
PrepaidUpgradeHash string `tl:"flag:16"`
DropOriginalDetailsStars int64 `tl:"flag:18"`
GiftNum int32 `tl:"flag:19"`
}
Represents a gift owned by a peer.
func (*SavedStarGift) CRC ¶ added in v1.5.6
func (*SavedStarGift) CRC() uint32
func (*SavedStarGift) FlagIndex ¶ added in v1.5.6
func (*SavedStarGift) FlagIndex() int
type ScrapeConfig ¶
type SearchOption ¶
type SearchOption struct {
IDs any // IDs of the messages to get (bots can use)
Query string // query to search for
FromUser any // ID of the user to search from
AddOffset int32 // Sequential number of the first message to be returned
Offset int32 // offset of the message to search from
Limit int32 // limit of the messages to get
Filter MessagesFilter // filter to use
TopMsgID int32 // ID of the top message
MaxID int32 // maximum ID of the message
MinID int32 // minimum ID of the message
MaxDate int32 // maximum date of the message
MinDate int32 // minimum date of the message
SleepThresholdMs int32 // sleep threshold in milliseconds (in-between chunked operations)
Context context.Context // context for cancellation and timeouts
}
type SearchPostsFlood ¶ added in v1.6.3
type SearchPostsFlood struct {
QueryIsFree bool `tl:"flag:0,encoded_in_bitflags"`
TotalDaily int32
Remains int32
WaitTill int32 `tl:"flag:1"`
StarsAmount int64
}
Indicates if the specified global post search requires payment.
func (*SearchPostsFlood) CRC ¶ added in v1.6.3
func (*SearchPostsFlood) CRC() uint32
func (*SearchPostsFlood) FlagIndex ¶ added in v1.6.3
func (*SearchPostsFlood) FlagIndex() int
type SearchResultPosition ¶
Information about a message in a specific position
func (*SearchResultPosition) CRC ¶
func (*SearchResultPosition) CRC() uint32
type SearchResultsCalendarPeriod ¶
Information about found messages sent on a specific day, used to split the `messages` in messages.searchResultsCalendar constructors by days.
func (*SearchResultsCalendarPeriod) CRC ¶
func (*SearchResultsCalendarPeriod) CRC() uint32
type SecretFileOptions ¶ added in v1.7.0
type SecretFileOptions struct {
Caption string // File caption
TTL int32 // Time-to-live in seconds
MimeType string // File MIME type
Thumb []byte // Thumbnail data
ThumbW int32 // Thumbnail width
ThumbH int32 // Thumbnail height
Attributes []e2e.DocumentAttribute // File attributes
Key []byte // Optional: custom encryption key (32 bytes)
IV []byte // Optional: custom encryption IV (32 bytes)
PartSize int // Upload chunk size (default: 512KB)
}
SecretFileOptions options for sending encrypted files in secret chats
type SecureCredentialsEncrypted ¶
Encrypted credentials required to decrypt telegram passport data.
func (*SecureCredentialsEncrypted) CRC ¶
func (*SecureCredentialsEncrypted) CRC() uint32
type SecureData ¶
Secure passport data, for more info see the passport docs
func (*SecureData) CRC ¶
func (*SecureData) CRC() uint32
type SecureFile ¶
type SecureFileEmpty ¶
type SecureFileEmpty struct{}
Empty constructor
func (*SecureFileEmpty) CRC ¶
func (*SecureFileEmpty) CRC() uint32
func (*SecureFileEmpty) ImplementsSecureFile ¶
func (*SecureFileEmpty) ImplementsSecureFile()
type SecureFileObj ¶
type SecureFileObj struct {
ID int64 // ID
AccessHash int64 // Access hash
Size int64 // File size
DcID int32 // DC ID
Date int32 // Date of upload
FileHash []byte // File hash
Secret []byte // Secret
}
Secure passport file, for more info see the passport docs
func (*SecureFileObj) CRC ¶
func (*SecureFileObj) CRC() uint32
func (*SecureFileObj) ImplementsSecureFile ¶
func (*SecureFileObj) ImplementsSecureFile()
type SecurePasswordKdfAlgo ¶
type SecurePasswordKdfAlgoPbkdf2Hmacsha512Iter100000 ¶
type SecurePasswordKdfAlgoPbkdf2Hmacsha512Iter100000 struct {
Salt []byte // Salt
}
PBKDF2 with SHA512 and 100000 iterations KDF algo
func (*SecurePasswordKdfAlgoPbkdf2Hmacsha512Iter100000) CRC ¶
func (*SecurePasswordKdfAlgoPbkdf2Hmacsha512Iter100000) CRC() uint32
func (*SecurePasswordKdfAlgoPbkdf2Hmacsha512Iter100000) ImplementsSecurePasswordKdfAlgo ¶
func (*SecurePasswordKdfAlgoPbkdf2Hmacsha512Iter100000) ImplementsSecurePasswordKdfAlgo()
type SecurePasswordKdfAlgoSHA512 ¶
type SecurePasswordKdfAlgoSHA512 struct {
Salt []byte // Salt
}
SHA512 KDF algo
func (*SecurePasswordKdfAlgoSHA512) CRC ¶
func (*SecurePasswordKdfAlgoSHA512) CRC() uint32
func (*SecurePasswordKdfAlgoSHA512) ImplementsSecurePasswordKdfAlgo ¶
func (*SecurePasswordKdfAlgoSHA512) ImplementsSecurePasswordKdfAlgo()
type SecurePasswordKdfAlgoUnknown ¶
type SecurePasswordKdfAlgoUnknown struct{}
Unknown KDF algo (most likely the client has to be updated)
func (*SecurePasswordKdfAlgoUnknown) CRC ¶
func (*SecurePasswordKdfAlgoUnknown) CRC() uint32
func (*SecurePasswordKdfAlgoUnknown) ImplementsSecurePasswordKdfAlgo ¶
func (*SecurePasswordKdfAlgoUnknown) ImplementsSecurePasswordKdfAlgo()
type SecurePlainData ¶
type SecurePlainEmail ¶
type SecurePlainEmail struct {
Email string // Email address
}
Email address to use in telegram passport: it must be verified, first.
func (*SecurePlainEmail) CRC ¶
func (*SecurePlainEmail) CRC() uint32
func (*SecurePlainEmail) ImplementsSecurePlainData ¶
func (*SecurePlainEmail) ImplementsSecurePlainData()
type SecurePlainPhone ¶
type SecurePlainPhone struct {
Phone string // Phone number
}
Phone number to use in telegram passport: it must be verified, first.
func (*SecurePlainPhone) CRC ¶
func (*SecurePlainPhone) CRC() uint32
func (*SecurePlainPhone) ImplementsSecurePlainData ¶
func (*SecurePlainPhone) ImplementsSecurePlainData()
type SecureRequiredType ¶
type SecureRequiredTypeObj ¶
type SecureRequiredTypeObj struct {
NativeNames bool `tl:"flag:0,encoded_in_bitflags"` // Native names
SelfieRequired bool `tl:"flag:1,encoded_in_bitflags"` // Is a selfie required
TranslationRequired bool `tl:"flag:2,encoded_in_bitflags"` // Is a translation required
Type SecureValueType // Secure value type
}
Required type
func (*SecureRequiredTypeObj) CRC ¶
func (*SecureRequiredTypeObj) CRC() uint32
func (*SecureRequiredTypeObj) FlagIndex ¶
func (*SecureRequiredTypeObj) FlagIndex() int
func (*SecureRequiredTypeObj) ImplementsSecureRequiredType ¶
func (*SecureRequiredTypeObj) ImplementsSecureRequiredType()
type SecureRequiredTypeOneOf ¶
type SecureRequiredTypeOneOf struct {
Types []SecureRequiredType // Secure required value types
}
One of
func (*SecureRequiredTypeOneOf) CRC ¶
func (*SecureRequiredTypeOneOf) CRC() uint32
func (*SecureRequiredTypeOneOf) ImplementsSecureRequiredType ¶
func (*SecureRequiredTypeOneOf) ImplementsSecureRequiredType()
type SecureSecretSettings ¶
type SecureSecretSettings struct {
SecureAlgo SecurePasswordKdfAlgo
SecureSecret []byte
SecureSecretID int64
}
Secure settings
func (*SecureSecretSettings) CRC ¶
func (*SecureSecretSettings) CRC() uint32
type SecureValue ¶
type SecureValue struct {
Type SecureValueType
Data *SecureData `tl:"flag:0"`
FrontSide SecureFile `tl:"flag:1"`
ReverseSide SecureFile `tl:"flag:2"`
Selfie SecureFile `tl:"flag:3"`
Translation []SecureFile `tl:"flag:6"`
Files []SecureFile `tl:"flag:4"`
PlainData SecurePlainData `tl:"flag:5"`
Hash []byte
}
Secure value
func (*SecureValue) CRC ¶
func (*SecureValue) CRC() uint32
func (*SecureValue) FlagIndex ¶
func (*SecureValue) FlagIndex() int
type SecureValueError ¶
type SecureValueErrorData ¶
type SecureValueErrorData struct {
Type SecureValueType // The section of the user's Telegram Passport which has the error, one of secureValueTypePersonalDetails, secureValueTypePassport, secureValueTypeDriverLicense, secureValueTypeIdentityCard, secureValueTypeInternalPassport, secureValueTypeAddress
DataHash []byte // Data hash
Field string // Name of the data field which has the error
Text string // Error message
}
Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes.
func (*SecureValueErrorData) CRC ¶
func (*SecureValueErrorData) CRC() uint32
func (*SecureValueErrorData) ImplementsSecureValueError ¶
func (*SecureValueErrorData) ImplementsSecureValueError()
type SecureValueErrorFile ¶
type SecureValueErrorFile struct {
Type SecureValueType // One of secureValueTypeUtilityBill, secureValueTypeBankStatement, secureValueTypeRentalAgreement, secureValueTypePassportRegistration, secureValueTypeTemporaryRegistration
FileHash []byte // File hash
Text string // Error message
}
Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.
func (*SecureValueErrorFile) CRC ¶
func (*SecureValueErrorFile) CRC() uint32
func (*SecureValueErrorFile) ImplementsSecureValueError ¶
func (*SecureValueErrorFile) ImplementsSecureValueError()
type SecureValueErrorFiles ¶
type SecureValueErrorFiles struct {
Type SecureValueType // One of secureValueTypeUtilityBill, secureValueTypeBankStatement, secureValueTypeRentalAgreement, secureValueTypePassportRegistration, secureValueTypeTemporaryRegistration
FileHash [][]byte // File hash
Text string // Error message
}
Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes.
func (*SecureValueErrorFiles) CRC ¶
func (*SecureValueErrorFiles) CRC() uint32
func (*SecureValueErrorFiles) ImplementsSecureValueError ¶
func (*SecureValueErrorFiles) ImplementsSecureValueError()
type SecureValueErrorFrontSide ¶
type SecureValueErrorFrontSide struct {
Type SecureValueType // One of secureValueTypePassport, secureValueTypeDriverLicense, secureValueTypeIdentityCard, secureValueTypeInternalPassport
FileHash []byte // File hash
Text string // Error message
}
Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.
func (*SecureValueErrorFrontSide) CRC ¶
func (*SecureValueErrorFrontSide) CRC() uint32
func (*SecureValueErrorFrontSide) ImplementsSecureValueError ¶
func (*SecureValueErrorFrontSide) ImplementsSecureValueError()
type SecureValueErrorObj ¶
type SecureValueErrorObj struct {
Type SecureValueType // Type of element which has the issue
Hash []byte // Hash
Text string // Error message
}
Secure value error
func (*SecureValueErrorObj) CRC ¶
func (*SecureValueErrorObj) CRC() uint32
func (*SecureValueErrorObj) ImplementsSecureValueError ¶
func (*SecureValueErrorObj) ImplementsSecureValueError()
type SecureValueErrorReverseSide ¶
type SecureValueErrorReverseSide struct {
Type SecureValueType // One of secureValueTypeDriverLicense, secureValueTypeIdentityCard
FileHash []byte // File hash
Text string // Error message
}
Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes.
func (*SecureValueErrorReverseSide) CRC ¶
func (*SecureValueErrorReverseSide) CRC() uint32
func (*SecureValueErrorReverseSide) ImplementsSecureValueError ¶
func (*SecureValueErrorReverseSide) ImplementsSecureValueError()
type SecureValueErrorSelfie ¶
type SecureValueErrorSelfie struct {
Type SecureValueType // One of secureValueTypePassport, secureValueTypeDriverLicense, secureValueTypeIdentityCard, secureValueTypeInternalPassport
FileHash []byte // File hash
Text string // Error message
}
Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes.
func (*SecureValueErrorSelfie) CRC ¶
func (*SecureValueErrorSelfie) CRC() uint32
func (*SecureValueErrorSelfie) ImplementsSecureValueError ¶
func (*SecureValueErrorSelfie) ImplementsSecureValueError()
type SecureValueErrorTranslationFile ¶
type SecureValueErrorTranslationFile struct {
Type SecureValueType // One of secureValueTypePersonalDetails, secureValueTypePassport, secureValueTypeDriverLicense, secureValueTypeIdentityCard, secureValueTypeInternalPassport, secureValueTypeUtilityBill, secureValueTypeBankStatement, secureValueTypeRentalAgreement, secureValueTypePassportRegistration, secureValueTypeTemporaryRegistration
FileHash []byte // File hash
Text string // Error message
}
Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.
func (*SecureValueErrorTranslationFile) CRC ¶
func (*SecureValueErrorTranslationFile) CRC() uint32
func (*SecureValueErrorTranslationFile) ImplementsSecureValueError ¶
func (*SecureValueErrorTranslationFile) ImplementsSecureValueError()
type SecureValueErrorTranslationFiles ¶
type SecureValueErrorTranslationFiles struct {
Type SecureValueType // One of secureValueTypePersonalDetails, secureValueTypePassport, secureValueTypeDriverLicense, secureValueTypeIdentityCard, secureValueTypeInternalPassport, secureValueTypeUtilityBill, secureValueTypeBankStatement, secureValueTypeRentalAgreement, secureValueTypePassportRegistration, secureValueTypeTemporaryRegistration
FileHash [][]byte // Hash
Text string // Error message
}
Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation changes.
func (*SecureValueErrorTranslationFiles) CRC ¶
func (*SecureValueErrorTranslationFiles) CRC() uint32
func (*SecureValueErrorTranslationFiles) ImplementsSecureValueError ¶
func (*SecureValueErrorTranslationFiles) ImplementsSecureValueError()
type SecureValueHash ¶
type SecureValueHash struct {
Type SecureValueType
Hash []byte
}
Secure value hash
func (*SecureValueHash) CRC ¶
func (*SecureValueHash) CRC() uint32
type SecureValueType ¶
type SecureValueType uint32
const ( SecureValueTypeAddress SecureValueType = 0xcbe31e26 SecureValueTypeBankStatement SecureValueType = 0x89137c0d SecureValueTypeDriverLicense SecureValueType = 0x6e425c4 SecureValueTypeEmail SecureValueType = 0x8e3ca7ee SecureValueTypeIdentityCard SecureValueType = 0xa0d0744b SecureValueTypeInternalPassport SecureValueType = 0x99a48f23 SecureValueTypePassport SecureValueType = 0x3dac6a00 SecureValueTypePassportRegistration SecureValueType = 0x99e3806a SecureValueTypePersonalDetails SecureValueType = 0x9d2a81e3 SecureValueTypePhone SecureValueType = 0xb320aadb SecureValueTypeRentalAgreement SecureValueType = 0x8b883488 SecureValueTypeTemporaryRegistration SecureValueType = 0xea02ec33 SecureValueTypeUtilityBill SecureValueType = 0xfc36954e )
func (SecureValueType) CRC ¶
func (e SecureValueType) CRC() uint32
func (SecureValueType) String ¶
func (e SecureValueType) String() string
type SendAsPeer ¶
Indicates a peer that can be used to send messages
func (*SendAsPeer) CRC ¶
func (*SendAsPeer) CRC() uint32
func (*SendAsPeer) FlagIndex ¶
func (*SendAsPeer) FlagIndex() int
type SendMessageAction ¶
type SendMessageCancelAction ¶
type SendMessageCancelAction struct{}
Invalidate all previous action updates. E.g. when user deletes entered text or aborts a video upload.
func (*SendMessageCancelAction) CRC ¶
func (*SendMessageCancelAction) CRC() uint32
func (*SendMessageCancelAction) ImplementsSendMessageAction ¶
func (*SendMessageCancelAction) ImplementsSendMessageAction()
type SendMessageChooseContactAction ¶
type SendMessageChooseContactAction struct{}
User is selecting a contact to share.
func (*SendMessageChooseContactAction) CRC ¶
func (*SendMessageChooseContactAction) CRC() uint32
func (*SendMessageChooseContactAction) ImplementsSendMessageAction ¶
func (*SendMessageChooseContactAction) ImplementsSendMessageAction()
type SendMessageChooseStickerAction ¶
type SendMessageChooseStickerAction struct{}
User is choosing a sticker
func (*SendMessageChooseStickerAction) CRC ¶
func (*SendMessageChooseStickerAction) CRC() uint32
func (*SendMessageChooseStickerAction) ImplementsSendMessageAction ¶
func (*SendMessageChooseStickerAction) ImplementsSendMessageAction()
type SendMessageEmojiInteraction ¶
type SendMessageEmojiInteraction struct {
Emoticon string // Emoji
MsgID int32 // Message ID of the animated emoji that was clicked
Interaction *DataJson // A JSON object with interaction info, click here for more info
}
User has clicked on an animated emoji triggering a reaction, click here for more info.
func (*SendMessageEmojiInteraction) CRC ¶
func (*SendMessageEmojiInteraction) CRC() uint32
func (*SendMessageEmojiInteraction) ImplementsSendMessageAction ¶
func (*SendMessageEmojiInteraction) ImplementsSendMessageAction()
type SendMessageEmojiInteractionSeen ¶
type SendMessageEmojiInteractionSeen struct {
Emoticon string // Emoji
}
User is watching an animated emoji reaction triggered by another user, click here for more info.
func (*SendMessageEmojiInteractionSeen) CRC ¶
func (*SendMessageEmojiInteractionSeen) CRC() uint32
func (*SendMessageEmojiInteractionSeen) ImplementsSendMessageAction ¶
func (*SendMessageEmojiInteractionSeen) ImplementsSendMessageAction()
type SendMessageGamePlayAction ¶
type SendMessageGamePlayAction struct{}
User is playing a game
func (*SendMessageGamePlayAction) CRC ¶
func (*SendMessageGamePlayAction) CRC() uint32
func (*SendMessageGamePlayAction) ImplementsSendMessageAction ¶
func (*SendMessageGamePlayAction) ImplementsSendMessageAction()
type SendMessageGeoLocationAction ¶
type SendMessageGeoLocationAction struct{}
User is selecting a location to share.
func (*SendMessageGeoLocationAction) CRC ¶
func (*SendMessageGeoLocationAction) CRC() uint32
func (*SendMessageGeoLocationAction) ImplementsSendMessageAction ¶
func (*SendMessageGeoLocationAction) ImplementsSendMessageAction()
type SendMessageHistoryImportAction ¶
type SendMessageHistoryImportAction struct {
Progress int32 // Progress percentage
}
Chat history is being imported
func (*SendMessageHistoryImportAction) CRC ¶
func (*SendMessageHistoryImportAction) CRC() uint32
func (*SendMessageHistoryImportAction) ImplementsSendMessageAction ¶
func (*SendMessageHistoryImportAction) ImplementsSendMessageAction()
type SendMessageRecordAudioAction ¶
type SendMessageRecordAudioAction struct{}
User is recording a voice message.
func (*SendMessageRecordAudioAction) CRC ¶
func (*SendMessageRecordAudioAction) CRC() uint32
func (*SendMessageRecordAudioAction) ImplementsSendMessageAction ¶
func (*SendMessageRecordAudioAction) ImplementsSendMessageAction()
type SendMessageRecordRoundAction ¶
type SendMessageRecordRoundAction struct{}
User is recording a round video to share
func (*SendMessageRecordRoundAction) CRC ¶
func (*SendMessageRecordRoundAction) CRC() uint32
func (*SendMessageRecordRoundAction) ImplementsSendMessageAction ¶
func (*SendMessageRecordRoundAction) ImplementsSendMessageAction()
type SendMessageRecordVideoAction ¶
type SendMessageRecordVideoAction struct{}
User is recording a video.
func (*SendMessageRecordVideoAction) CRC ¶
func (*SendMessageRecordVideoAction) CRC() uint32
func (*SendMessageRecordVideoAction) ImplementsSendMessageAction ¶
func (*SendMessageRecordVideoAction) ImplementsSendMessageAction()
type SendMessageTextDraftAction ¶ added in v1.6.3
type SendMessageTextDraftAction struct {
RandomID int64
Text *TextWithEntities
}
func (*SendMessageTextDraftAction) CRC ¶ added in v1.6.3
func (*SendMessageTextDraftAction) CRC() uint32
func (*SendMessageTextDraftAction) ImplementsSendMessageAction ¶ added in v1.6.3
func (*SendMessageTextDraftAction) ImplementsSendMessageAction()
type SendMessageTypingAction ¶
type SendMessageTypingAction struct{}
User is typing.
func (*SendMessageTypingAction) CRC ¶
func (*SendMessageTypingAction) CRC() uint32
func (*SendMessageTypingAction) ImplementsSendMessageAction ¶
func (*SendMessageTypingAction) ImplementsSendMessageAction()
type SendMessageUploadAudioAction ¶
type SendMessageUploadAudioAction struct {
Progress int32 // Progress percentage
}
User is uploading a voice message.
func (*SendMessageUploadAudioAction) CRC ¶
func (*SendMessageUploadAudioAction) CRC() uint32
func (*SendMessageUploadAudioAction) ImplementsSendMessageAction ¶
func (*SendMessageUploadAudioAction) ImplementsSendMessageAction()
type SendMessageUploadDocumentAction ¶
type SendMessageUploadDocumentAction struct {
Progress int32 // Progress percentage
}
User is uploading a file.
func (*SendMessageUploadDocumentAction) CRC ¶
func (*SendMessageUploadDocumentAction) CRC() uint32
func (*SendMessageUploadDocumentAction) ImplementsSendMessageAction ¶
func (*SendMessageUploadDocumentAction) ImplementsSendMessageAction()
type SendMessageUploadPhotoAction ¶
type SendMessageUploadPhotoAction struct {
Progress int32 // Progress percentage
}
User is uploading a photo.
func (*SendMessageUploadPhotoAction) CRC ¶
func (*SendMessageUploadPhotoAction) CRC() uint32
func (*SendMessageUploadPhotoAction) ImplementsSendMessageAction ¶
func (*SendMessageUploadPhotoAction) ImplementsSendMessageAction()
type SendMessageUploadRoundAction ¶
type SendMessageUploadRoundAction struct {
Progress int32 // Progress percentage
}
User is uploading a round video
func (*SendMessageUploadRoundAction) CRC ¶
func (*SendMessageUploadRoundAction) CRC() uint32
func (*SendMessageUploadRoundAction) ImplementsSendMessageAction ¶
func (*SendMessageUploadRoundAction) ImplementsSendMessageAction()
type SendMessageUploadVideoAction ¶
type SendMessageUploadVideoAction struct {
Progress int32 // Progress percentage
}
User is uploading a video.
func (*SendMessageUploadVideoAction) CRC ¶
func (*SendMessageUploadVideoAction) CRC() uint32
func (*SendMessageUploadVideoAction) ImplementsSendMessageAction ¶
func (*SendMessageUploadVideoAction) ImplementsSendMessageAction()
type SendOptions ¶
type SendOptions struct {
Attributes []DocumentAttribute // Document attributes like filename, dimensions, duration
MimeType string // MIME type override (e.g., "video/mp4", "audio/mpeg")
Caption any // Media caption: string, []string for albums, or *NewMessage
ClearDraft bool // Clear saved draft in this chat after sending
Entities []MessageEntity // Pre-parsed formatting entities (overrides ParseMode)
FileName string // Custom filename for the uploaded file
ForceDocument bool // Send media as document instead of embedded preview
InvertMedia bool // Display media below caption instead of above
LinkPreview bool // Generate link preview for URLs in message
Media any // Media to attach: InputMedia, MessageMedia, or InputFile
NoForwards bool // Restrict forwarding and saving of this message
ParseMode string // Text parsing mode: "markdown", "html", or empty for plain
ReplyTo *InputReplyToMessage // Full reply configuration with quote support
ReplyID int32 // Simple reply to message by ID
TopicID int32 // Forum topic ID to send message in
ReplyMarkup ReplyMarkup // Inline keyboard or reply keyboard markup
UpdateStickerOrder bool // Move used sticker to top of recent stickers
ScheduleDate int32 // Unix timestamp to schedule message delivery
ScheduleRepeatPeriod int32 // Repeat interval in seconds for scheduled message
SendAs any // Send as channel or linked chat (peer ID or username)
Silent bool // Send without notification sound
Thumb any // Custom thumbnail: file path, bytes, or InputFile
TTL int32 // Self-destruct timer in seconds (for secret media)
Spoiler bool // Hide media behind spoiler overlay
Upload *UploadOptions // Upload configuration (threads, progress, chunk size)
Effect int64 // Message effect animation ID
Timeouts int32 // Response timeout for conversation Ask() calls
AllowPaidStars int64 // Stars amount for paid content access
PaidFloodSkip bool // Skip flood wait using paid priority
SuggestedPost *SuggestedPost // Channel post suggestion configuration
QuickReplyShortcut *InputQuickReplyShortcut // Quick reply shortcut binding
}
type Session ¶
type Session struct {
Key []byte `json:"key,omitempty"` // AUTH_KEY
Hash []byte `json:"hash,omitempty"` // AUTH_KEY_HASH (SHA1 of AUTH_KEY)
Salt int64 `json:"salt,omitempty"` // SERVER_SALT
Hostname string `json:"hostname,omitempty"` // HOSTNAME (IP address of the DC)
AppID int32 `json:"app_id,omitempty"` // APP_ID
}
type ShippingOption ¶
type ShippingOption struct {
ID string
Title string
Prices []*LabeledPrice
}
Shipping option
func (*ShippingOption) CRC ¶
func (*ShippingOption) CRC() uint32
type SimpleLogger ¶ added in v1.6.7
type SmsjobsEligibleToJoin ¶
SMS jobs eligibility
func (*SmsjobsEligibleToJoin) CRC ¶
func (*SmsjobsEligibleToJoin) CRC() uint32
type SmsjobsFinishJobParams ¶
func (*SmsjobsFinishJobParams) CRC ¶
func (*SmsjobsFinishJobParams) CRC() uint32
func (*SmsjobsFinishJobParams) FlagIndex ¶
func (*SmsjobsFinishJobParams) FlagIndex() int
type SmsjobsGetSmsJobParams ¶
type SmsjobsGetSmsJobParams struct {
JobID string
}
func (*SmsjobsGetSmsJobParams) CRC ¶
func (*SmsjobsGetSmsJobParams) CRC() uint32
type SmsjobsGetStatusParams ¶
type SmsjobsGetStatusParams struct{}
func (*SmsjobsGetStatusParams) CRC ¶
func (*SmsjobsGetStatusParams) CRC() uint32
type SmsjobsIsEligibleToJoinParams ¶
type SmsjobsIsEligibleToJoinParams struct{}
func (*SmsjobsIsEligibleToJoinParams) CRC ¶
func (*SmsjobsIsEligibleToJoinParams) CRC() uint32
type SmsjobsJoinParams ¶
type SmsjobsJoinParams struct{}
func (*SmsjobsJoinParams) CRC ¶
func (*SmsjobsJoinParams) CRC() uint32
type SmsjobsLeaveParams ¶
type SmsjobsLeaveParams struct{}
func (*SmsjobsLeaveParams) CRC ¶
func (*SmsjobsLeaveParams) CRC() uint32
type SmsjobsStatus ¶
type SmsjobsStatus struct {
AllowInternational bool `tl:"flag:0,encoded_in_bitflags"`
RecentSent int32
RecentSince int32
RecentRemains int32
TotalSent int32
TotalSince int32
LastGiftSlug string `tl:"flag:1"`
TermsURL string
}
Status
func (*SmsjobsStatus) CRC ¶
func (*SmsjobsStatus) CRC() uint32
func (*SmsjobsStatus) FlagIndex ¶
func (*SmsjobsStatus) FlagIndex() int
type SmsjobsUpdateSettingsParams ¶
type SmsjobsUpdateSettingsParams struct {
AllowInternational bool `tl:"flag:0,encoded_in_bitflags"`
}
func (*SmsjobsUpdateSettingsParams) CRC ¶
func (*SmsjobsUpdateSettingsParams) CRC() uint32
func (*SmsjobsUpdateSettingsParams) FlagIndex ¶
func (*SmsjobsUpdateSettingsParams) FlagIndex() int
type Socks4Proxy ¶ added in v1.6.7
func (*Socks4Proxy) GetPassword ¶ added in v1.6.7
func (s *Socks4Proxy) GetPassword() string
func (*Socks4Proxy) GetSecret ¶ added in v1.6.7
func (s *Socks4Proxy) GetSecret() string
func (*Socks4Proxy) GetUsername ¶ added in v1.6.7
func (s *Socks4Proxy) GetUsername() string
func (*Socks4Proxy) Type ¶ added in v1.6.7
func (s *Socks4Proxy) Type() string
type Socks5Proxy ¶ added in v1.6.7
func (*Socks5Proxy) GetPassword ¶ added in v1.6.7
func (s *Socks5Proxy) GetPassword() string
func (*Socks5Proxy) GetSecret ¶ added in v1.6.7
func (s *Socks5Proxy) GetSecret() string
func (*Socks5Proxy) GetUsername ¶ added in v1.6.7
func (s *Socks5Proxy) GetUsername() string
func (*Socks5Proxy) Type ¶ added in v1.6.7
func (s *Socks5Proxy) Type() string
type Source ¶
type Source struct {
Source any
// contains filtered or unexported fields
}
func (*Source) GetSizeAndName ¶
type SpeakingInGroupCallAction ¶
type SpeakingInGroupCallAction struct{}
User is currently speaking in the group call
func (*SpeakingInGroupCallAction) CRC ¶
func (*SpeakingInGroupCallAction) CRC() uint32
func (*SpeakingInGroupCallAction) ImplementsSendMessageAction ¶
func (*SpeakingInGroupCallAction) ImplementsSendMessageAction()
type SponsoredMessage ¶
type SponsoredMessage struct {
Recommended bool `tl:"flag:5,encoded_in_bitflags"`
CanReport bool `tl:"flag:12,encoded_in_bitflags"`
RandomID []byte
URL string
Title string
Message string
Entities []MessageEntity `tl:"flag:1"`
Photo Photo `tl:"flag:6"`
Media MessageMedia `tl:"flag:14"`
Color PeerColor `tl:"flag:13"`
ButtonText string
SponsorInfo string `tl:"flag:7"`
AdditionalInfo string `tl:"flag:8"`
MinDisplayDuration int32 `tl:"flag:15"`
MaxDisplayDuration int32 `tl:"flag:15"`
}
A sponsored message.
func (*SponsoredMessage) CRC ¶
func (*SponsoredMessage) CRC() uint32
func (*SponsoredMessage) FlagIndex ¶
func (*SponsoredMessage) FlagIndex() int
type SponsoredMessageReportOption ¶
A report option for a sponsored message.
func (*SponsoredMessageReportOption) CRC ¶
func (*SponsoredMessageReportOption) CRC() uint32
type SponsoredPeer ¶ added in v1.6.0
type SponsoredPeer struct {
RandomID []byte
Peer Peer
SponsorInfo string `tl:"flag:0"`
AdditionalInfo string `tl:"flag:1"`
}
A sponsored peer.
func (*SponsoredPeer) CRC ¶ added in v1.6.0
func (*SponsoredPeer) CRC() uint32
func (*SponsoredPeer) FlagIndex ¶ added in v1.6.0
func (*SponsoredPeer) FlagIndex() int
type StarGiftActiveAuctionState ¶ added in v1.6.7
type StarGiftActiveAuctionState struct {
Gift StarGift
State StarGiftAuctionState
UserState *StarGiftAuctionUserState
}
func (*StarGiftActiveAuctionState) CRC ¶ added in v1.6.7
func (*StarGiftActiveAuctionState) CRC() uint32
type StarGiftAttribute ¶ added in v1.5.3
type StarGiftAttributeBackdrop ¶ added in v1.5.3
type StarGiftAttributeBackdrop struct {
Name string // Name of the backdrop
BackdropID int32 // Unique ID of the backdrop
CenterColor int32 // Color of the center of the backdrop in RGB24 format.
EdgeColor int32 // Color of the edges of the backdrop in RGB24 format.
PatternColor int32 // Color of the starGiftAttributePattern applied on the backdrop in RGB24 format.
TextColor int32 // Color of the text on the backdrop in RGB24 format.
RarityPermille int32 // The number of upgraded gifts that receive this backdrop for each 1000 gifts upgraded.
}
The backdrop of a collectible gift.
func (*StarGiftAttributeBackdrop) CRC ¶ added in v1.5.3
func (*StarGiftAttributeBackdrop) CRC() uint32
func (*StarGiftAttributeBackdrop) ImplementsStarGiftAttribute ¶ added in v1.5.3
func (*StarGiftAttributeBackdrop) ImplementsStarGiftAttribute()
type StarGiftAttributeCounter ¶ added in v1.6.0
type StarGiftAttributeCounter struct {
Attribute StarGiftAttributeID
Count int32
}
Indicates the total number of gifts that have the specified attribute.
func (*StarGiftAttributeCounter) CRC ¶ added in v1.6.0
func (*StarGiftAttributeCounter) CRC() uint32
type StarGiftAttributeID ¶ added in v1.6.0
type StarGiftAttributeIDBackdrop ¶ added in v1.6.0
type StarGiftAttributeIDBackdrop struct {
BackdropID int32 // Unique ID of the backdrop.
}
The ID of a backdrop of a collectible gift.
func (*StarGiftAttributeIDBackdrop) CRC ¶ added in v1.6.0
func (*StarGiftAttributeIDBackdrop) CRC() uint32
func (*StarGiftAttributeIDBackdrop) ImplementsStarGiftAttributeID ¶ added in v1.6.0
func (*StarGiftAttributeIDBackdrop) ImplementsStarGiftAttributeID()
type StarGiftAttributeIDModel ¶ added in v1.6.0
type StarGiftAttributeIDModel struct {
DocumentID int64 // The sticker representing the upgraded gift
}
The ID of a model of a collectible gift.
func (*StarGiftAttributeIDModel) CRC ¶ added in v1.6.0
func (*StarGiftAttributeIDModel) CRC() uint32
func (*StarGiftAttributeIDModel) ImplementsStarGiftAttributeID ¶ added in v1.6.0
func (*StarGiftAttributeIDModel) ImplementsStarGiftAttributeID()
type StarGiftAttributeIDPattern ¶ added in v1.6.0
type StarGiftAttributeIDPattern struct {
DocumentID int64 // The sticker representing the symbol
}
The ID of a pattern of a collectible gift.
func (*StarGiftAttributeIDPattern) CRC ¶ added in v1.6.0
func (*StarGiftAttributeIDPattern) CRC() uint32
func (*StarGiftAttributeIDPattern) ImplementsStarGiftAttributeID ¶ added in v1.6.0
func (*StarGiftAttributeIDPattern) ImplementsStarGiftAttributeID()
type StarGiftAttributeModel ¶ added in v1.5.3
type StarGiftAttributeModel struct {
Name string // Name of the model
Document Document // The sticker representing the upgraded gift
RarityPermille int32 // The number of upgraded gifts that receive this backdrop for each 1000 gifts upgraded.
}
The model of a collectible gift.
func (*StarGiftAttributeModel) CRC ¶ added in v1.5.3
func (*StarGiftAttributeModel) CRC() uint32
func (*StarGiftAttributeModel) ImplementsStarGiftAttribute ¶ added in v1.5.3
func (*StarGiftAttributeModel) ImplementsStarGiftAttribute()
type StarGiftAttributeOriginalDetails ¶ added in v1.5.3
type StarGiftAttributeOriginalDetails struct {
SenderID Peer `tl:"flag:0"` // Original sender of the gift, absent if the gift was private.
RecipientID Peer // Original receiver of the gift.
Date int32 // When was the gift sent.
Message *TextWithEntities `tl:"flag:1"` // Original message attached to the gift, if present.
}
Info about the sender, receiver and message attached to the original gift, before it was upgraded to a collectible gift.
func (*StarGiftAttributeOriginalDetails) CRC ¶ added in v1.5.3
func (*StarGiftAttributeOriginalDetails) CRC() uint32
func (*StarGiftAttributeOriginalDetails) FlagIndex ¶ added in v1.5.3
func (*StarGiftAttributeOriginalDetails) FlagIndex() int
func (*StarGiftAttributeOriginalDetails) ImplementsStarGiftAttribute ¶ added in v1.5.3
func (*StarGiftAttributeOriginalDetails) ImplementsStarGiftAttribute()
type StarGiftAttributePattern ¶ added in v1.5.3
type StarGiftAttributePattern struct {
Name string // Name of the symbol
Document Document // The symbol
RarityPermille int32 // The number of upgraded gifts that receive this backdrop for each 1000 gifts upgraded.
}
A sticker applied on the backdrop of a collectible gift using a repeating pattern.
func (*StarGiftAttributePattern) CRC ¶ added in v1.5.3
func (*StarGiftAttributePattern) CRC() uint32
func (*StarGiftAttributePattern) ImplementsStarGiftAttribute ¶ added in v1.5.3
func (*StarGiftAttributePattern) ImplementsStarGiftAttribute()
type StarGiftAuctionAcquiredGift ¶ added in v1.6.7
type StarGiftAuctionAcquiredGift struct {
NameHidden bool `tl:"flag:0,encoded_in_bitflags"`
Peer Peer
Date int32
BidAmount int64
Round int32
Pos int32
Message *TextWithEntities `tl:"flag:1"`
GiftNum int32 `tl:"flag:2"`
}
func (*StarGiftAuctionAcquiredGift) CRC ¶ added in v1.6.7
func (*StarGiftAuctionAcquiredGift) CRC() uint32
func (*StarGiftAuctionAcquiredGift) FlagIndex ¶ added in v1.6.7
func (*StarGiftAuctionAcquiredGift) FlagIndex() int
type StarGiftAuctionRound ¶ added in v1.6.10
type StarGiftAuctionRoundExtendable ¶ added in v1.6.10
type StarGiftAuctionRoundExtendable struct {
Num int32
Duration int32
ExtendTop int32
ExtendWindow int32
}
func (*StarGiftAuctionRoundExtendable) CRC ¶ added in v1.6.10
func (*StarGiftAuctionRoundExtendable) CRC() uint32
func (*StarGiftAuctionRoundExtendable) ImplementsStarGiftAuctionRound ¶ added in v1.6.10
func (*StarGiftAuctionRoundExtendable) ImplementsStarGiftAuctionRound()
type StarGiftAuctionRoundObj ¶ added in v1.6.10
func (*StarGiftAuctionRoundObj) CRC ¶ added in v1.6.10
func (*StarGiftAuctionRoundObj) CRC() uint32
func (*StarGiftAuctionRoundObj) ImplementsStarGiftAuctionRound ¶ added in v1.6.10
func (*StarGiftAuctionRoundObj) ImplementsStarGiftAuctionRound()
type StarGiftAuctionState ¶ added in v1.6.7
type StarGiftAuctionStateFinished ¶ added in v1.6.7
type StarGiftAuctionStateFinished struct {
StartDate int32
EndDate int32
AveragePrice int64
ListedCount int32 `tl:"flag:0"`
FragmentListedCount int32 `tl:"flag:1"`
FragmentListedURL string `tl:"flag:1"`
}
func (*StarGiftAuctionStateFinished) CRC ¶ added in v1.6.7
func (*StarGiftAuctionStateFinished) CRC() uint32
func (*StarGiftAuctionStateFinished) FlagIndex ¶ added in v1.6.10
func (*StarGiftAuctionStateFinished) FlagIndex() int
func (*StarGiftAuctionStateFinished) ImplementsStarGiftAuctionState ¶ added in v1.6.7
func (*StarGiftAuctionStateFinished) ImplementsStarGiftAuctionState()
type StarGiftAuctionStateNotModified ¶ added in v1.6.7
type StarGiftAuctionStateNotModified struct{}
func (*StarGiftAuctionStateNotModified) CRC ¶ added in v1.6.7
func (*StarGiftAuctionStateNotModified) CRC() uint32
func (*StarGiftAuctionStateNotModified) ImplementsStarGiftAuctionState ¶ added in v1.6.7
func (*StarGiftAuctionStateNotModified) ImplementsStarGiftAuctionState()
type StarGiftAuctionStateObj ¶ added in v1.6.7
type StarGiftAuctionStateObj struct {
Version int32
StartDate int32
EndDate int32
MinBidAmount int64
BidLevels []*AuctionBidLevel
TopBidders []int64
NextRoundAt int32
LastGiftNum int32
GiftsLeft int32
CurrentRound int32
TotalRounds int32
Rounds []StarGiftAuctionRound
}
func (*StarGiftAuctionStateObj) CRC ¶ added in v1.6.7
func (*StarGiftAuctionStateObj) CRC() uint32
func (*StarGiftAuctionStateObj) ImplementsStarGiftAuctionState ¶ added in v1.6.7
func (*StarGiftAuctionStateObj) ImplementsStarGiftAuctionState()
type StarGiftAuctionUserState ¶ added in v1.6.7
type StarGiftAuctionUserState struct {
Returned bool `tl:"flag:1,encoded_in_bitflags"`
BidAmount int64 `tl:"flag:0"`
BidDate int32 `tl:"flag:0"`
MinBidAmount int64 `tl:"flag:0"`
BidPeer Peer `tl:"flag:0"`
AcquiredCount int32
}
func (*StarGiftAuctionUserState) CRC ¶ added in v1.6.7
func (*StarGiftAuctionUserState) CRC() uint32
func (*StarGiftAuctionUserState) FlagIndex ¶ added in v1.6.7
func (*StarGiftAuctionUserState) FlagIndex() int
type StarGiftBackground ¶ added in v1.6.10
func (*StarGiftBackground) CRC ¶ added in v1.6.10
func (*StarGiftBackground) CRC() uint32
type StarGiftCollection ¶ added in v1.6.1
type StarGiftCollection struct {
CollectionID int32
Title string
Icon Document `tl:"flag:0"`
GiftsCount int32
Hash int64
}
Represents a star gift collection.
func (*StarGiftCollection) CRC ¶ added in v1.6.1
func (*StarGiftCollection) CRC() uint32
func (*StarGiftCollection) FlagIndex ¶ added in v1.6.1
func (*StarGiftCollection) FlagIndex() int
type StarGiftObj ¶ added in v1.5.3
type StarGiftObj struct {
Limited bool `tl:"flag:0,encoded_in_bitflags"`
SoldOut bool `tl:"flag:1,encoded_in_bitflags"`
Birthday bool `tl:"flag:2,encoded_in_bitflags"`
RequirePremium bool `tl:"flag:7,encoded_in_bitflags"`
LimitedPerUser bool `tl:"flag:8,encoded_in_bitflags"`
PeerColorAvailable bool `tl:"flag:10,encoded_in_bitflags"`
Auction bool `tl:"flag:11,encoded_in_bitflags"`
ID int64
Sticker Document
Stars int64
AvailabilityRemains int32 `tl:"flag:0"`
AvailabilityTotal int32 `tl:"flag:0"`
AvailabilityResale int64 `tl:"flag:4"`
ConvertStars int64
FirstSaleDate int32 `tl:"flag:1"`
LastSaleDate int32 `tl:"flag:1"`
UpgradeStars int64 `tl:"flag:3"`
ResellMinStars int64 `tl:"flag:4"`
Title string `tl:"flag:5"`
ReleasedBy Peer `tl:"flag:6"`
PerUserTotal int32 `tl:"flag:8"`
PerUserRemains int32 `tl:"flag:8"`
LockedUntilDate int32 `tl:"flag:9"`
AuctionSlug string `tl:"flag:11"`
GiftsPerRound int32 `tl:"flag:11"`
AuctionStartDate int32 `tl:"flag:11"`
UpgradeVariants int32 `tl:"flag:12"`
Background *StarGiftBackground `tl:"flag:13"`
}
Represents a star gift
func (*StarGiftObj) CRC ¶ added in v1.5.3
func (*StarGiftObj) CRC() uint32
func (*StarGiftObj) FlagIndex ¶ added in v1.5.3
func (*StarGiftObj) FlagIndex() int
func (*StarGiftObj) ImplementsStarGift ¶ added in v1.5.3
func (*StarGiftObj) ImplementsStarGift()
type StarGiftUnique ¶ added in v1.5.3
type StarGiftUnique struct {
RequirePremium bool `tl:"flag:6,encoded_in_bitflags"`
ResaleTonOnly bool `tl:"flag:7,encoded_in_bitflags"`
ThemeAvailable bool `tl:"flag:9,encoded_in_bitflags"`
ID int64
GiftID int64
Title string
Slug string
Num int32
OwnerID Peer `tl:"flag:0"`
OwnerName string `tl:"flag:1"`
OwnerAddress string `tl:"flag:2"`
Attributes []StarGiftAttribute
AvailabilityIssued int32
AvailabilityTotal int32
GiftAddress string `tl:"flag:3"`
ResellAmount []StarsAmount `tl:"flag:4"`
ReleasedBy Peer `tl:"flag:5"`
ValueAmount int64 `tl:"flag:8"`
ValueCurrency string `tl:"flag:8"`
ValueUsdAmount int64 `tl:"flag:8"`
ThemePeer Peer `tl:"flag:10"`
PeerColor PeerColor `tl:"flag:11"`
HostID Peer `tl:"flag:12"`
OfferMinStars int32 `tl:"flag:13"`
}
Represents a collectible star gift
func (*StarGiftUnique) CRC ¶ added in v1.5.3
func (*StarGiftUnique) CRC() uint32
func (*StarGiftUnique) FlagIndex ¶ added in v1.5.3
func (*StarGiftUnique) FlagIndex() int
func (*StarGiftUnique) ImplementsStarGift ¶ added in v1.5.3
func (*StarGiftUnique) ImplementsStarGift()
type StarGiftUpgradePrice ¶ added in v1.6.3
func (*StarGiftUpgradePrice) CRC ¶ added in v1.6.3
func (*StarGiftUpgradePrice) CRC() uint32
type StarRefProgram ¶ added in v1.4.4
type StarRefProgram struct {
BotID int64
CommissionPermille int32
DurationMonths int32 `tl:"flag:0"`
EndDate int32 `tl:"flag:1"`
DailyRevenuePerUser StarsAmount `tl:"flag:2"`
}
Indo about an affiliate program offered by a bot
func (*StarRefProgram) CRC ¶ added in v1.4.4
func (*StarRefProgram) CRC() uint32
func (*StarRefProgram) FlagIndex ¶ added in v1.4.4
func (*StarRefProgram) FlagIndex() int
type StarsAmount ¶ added in v1.4.4
type StarsAmountObj ¶ added in v1.6.1
type StarsAmountObj struct {
Amount int64 // The integer amount of Telegram Stars.
Nanos int32 // The decimal amount of Telegram Stars, expressed as nanostars (i.e. 1 nanostar is equal to `1/1'000'000'000`th (one billionth) of a Telegram Star). This field may also be negative (the allowed range is -999999999 to 999999999).
}
Describes a real (i.e. possibly decimal) amount of Telegram Stars.
func (*StarsAmountObj) CRC ¶ added in v1.6.1
func (*StarsAmountObj) CRC() uint32
func (*StarsAmountObj) ImplementsStarsAmount ¶ added in v1.6.1
func (*StarsAmountObj) ImplementsStarsAmount()
type StarsGiftOption ¶
type StarsGiftOption struct {
Extended bool `tl:"flag:1,encoded_in_bitflags"`
Stars int64
StoreProduct string `tl:"flag:0"`
Currency string
Amount int64
}
Telegram Stars gift option.
func (*StarsGiftOption) CRC ¶
func (*StarsGiftOption) CRC() uint32
func (*StarsGiftOption) FlagIndex ¶
func (*StarsGiftOption) FlagIndex() int
type StarsGiveawayOption ¶
type StarsGiveawayOption struct {
Extended bool `tl:"flag:0,encoded_in_bitflags"`
Default bool `tl:"flag:1,encoded_in_bitflags"`
Stars int64
YearlyBoosts int32
StoreProduct string `tl:"flag:2"`
Currency string
Amount int64
Winners []*StarsGiveawayWinnersOption
}
Contains info about a Telegram Star giveaway option.
func (*StarsGiveawayOption) CRC ¶
func (*StarsGiveawayOption) CRC() uint32
func (*StarsGiveawayOption) FlagIndex ¶
func (*StarsGiveawayOption) FlagIndex() int
type StarsGiveawayWinnersOption ¶
type StarsGiveawayWinnersOption struct {
Default bool `tl:"flag:0,encoded_in_bitflags"`
Users int32
PerUserStars int64
}
Allowed options for the number of giveaway winners.
func (*StarsGiveawayWinnersOption) CRC ¶
func (*StarsGiveawayWinnersOption) CRC() uint32
func (*StarsGiveawayWinnersOption) FlagIndex ¶
func (*StarsGiveawayWinnersOption) FlagIndex() int
type StarsRating ¶ added in v1.6.3
type StarsRating struct {
Level int32
CurrentLevelStars int64
Stars int64
NextLevelStars int64 `tl:"flag:0"`
}
Represents the profile's star rating
func (*StarsRating) CRC ¶ added in v1.6.3
func (*StarsRating) CRC() uint32
func (*StarsRating) FlagIndex ¶ added in v1.6.3
func (*StarsRating) FlagIndex() int
type StarsRevenueStatus ¶
type StarsRevenueStatus struct {
WithdrawalEnabled bool `tl:"flag:0,encoded_in_bitflags"`
CurrentBalance StarsAmount
AvailableBalance StarsAmount
OverallRevenue StarsAmount
NextWithdrawalAt int32 `tl:"flag:1"`
}
Describes Telegram Star revenue balances.
func (*StarsRevenueStatus) CRC ¶
func (*StarsRevenueStatus) CRC() uint32
func (*StarsRevenueStatus) FlagIndex ¶
func (*StarsRevenueStatus) FlagIndex() int
type StarsSubscription ¶
type StarsSubscription struct {
Canceled bool `tl:"flag:0,encoded_in_bitflags"`
CanRefulfill bool `tl:"flag:1,encoded_in_bitflags"`
MissingBalance bool `tl:"flag:2,encoded_in_bitflags"`
BotCanceled bool `tl:"flag:7,encoded_in_bitflags"`
ID string
Peer Peer
UntilDate int32
Pricing *StarsSubscriptionPricing
ChatInviteHash string `tl:"flag:3"`
Title string `tl:"flag:4"`
Photo WebDocument `tl:"flag:5"`
InvoiceSlug string `tl:"flag:6"`
}
Represents a Telegram Star subscription.
func (*StarsSubscription) CRC ¶
func (*StarsSubscription) CRC() uint32
func (*StarsSubscription) FlagIndex ¶
func (*StarsSubscription) FlagIndex() int
type StarsSubscriptionPricing ¶
Pricing of a Telegram Star subscription.
func (*StarsSubscriptionPricing) CRC ¶
func (*StarsSubscriptionPricing) CRC() uint32
type StarsTonAmount ¶ added in v1.6.1
type StarsTonAmount struct {
Amount int64 // The amount in nanotons.
}
Describes an amount of toncoin in nanotons (i.e. `1/1_000_000_000` of a toncoin).
func (*StarsTonAmount) CRC ¶ added in v1.6.1
func (*StarsTonAmount) CRC() uint32
func (*StarsTonAmount) ImplementsStarsAmount ¶ added in v1.6.1
func (*StarsTonAmount) ImplementsStarsAmount()
type StarsTopupOption ¶
type StarsTopupOption struct {
Extended bool `tl:"flag:1,encoded_in_bitflags"`
Stars int64
StoreProduct string `tl:"flag:0"`
Currency string
Amount int64
}
Telegram Stars topup option.
func (*StarsTopupOption) CRC ¶
func (*StarsTopupOption) CRC() uint32
func (*StarsTopupOption) FlagIndex ¶
func (*StarsTopupOption) FlagIndex() int
type StarsTransaction ¶
type StarsTransaction struct {
Refund bool `tl:"flag:3,encoded_in_bitflags"`
Pending bool `tl:"flag:4,encoded_in_bitflags"`
Failed bool `tl:"flag:6,encoded_in_bitflags"`
Gift bool `tl:"flag:10,encoded_in_bitflags"`
Reaction bool `tl:"flag:11,encoded_in_bitflags"`
StargiftUpgrade bool `tl:"flag:18,encoded_in_bitflags"`
BusinessTransfer bool `tl:"flag:21,encoded_in_bitflags"`
StargiftResale bool `tl:"flag:22,encoded_in_bitflags"`
PostsSearch bool `tl:"flag:24,encoded_in_bitflags"`
StargiftPrepaidUpgrade bool `tl:"flag:25,encoded_in_bitflags"`
StargiftDropOriginalDetails bool `tl:"flag:26,encoded_in_bitflags"`
PhonegroupMessage bool `tl:"flag:27,encoded_in_bitflags"`
StargiftAuctionBid bool `tl:"flag:28,encoded_in_bitflags"`
Offer bool `tl:"flag:29,encoded_in_bitflags"`
ID string
Amount StarsAmount
Date int32
Peer StarsTransactionPeer
Title string `tl:"flag:0"`
Description string `tl:"flag:1"`
Photo WebDocument `tl:"flag:2"`
TransactionDate int32 `tl:"flag:5"`
TransactionURL string `tl:"flag:5"`
BotPayload []byte `tl:"flag:7"`
MsgID int32 `tl:"flag:8"`
ExtendedMedia []MessageMedia `tl:"flag:9"`
SubscriptionPeriod int32 `tl:"flag:12"`
GiveawayPostID int32 `tl:"flag:13"`
Stargift StarGift `tl:"flag:14"`
FloodskipNumber int32 `tl:"flag:15"`
StarrefCommissionPermille int32 `tl:"flag:16"`
StarrefPeer Peer `tl:"flag:17"`
StarrefAmount StarsAmount `tl:"flag:17"`
PaidMessages int32 `tl:"flag:19"`
PremiumGiftMonths int32 `tl:"flag:20"`
AdsProceedsFromDate int32 `tl:"flag:23"`
AdsProceedsToDate int32 `tl:"flag:23"`
}
Represents a Telegram Stars or TON transaction.
func (*StarsTransaction) CRC ¶
func (*StarsTransaction) CRC() uint32
func (*StarsTransaction) FlagIndex ¶
func (*StarsTransaction) FlagIndex() int
type StarsTransactionPeer ¶
type StarsTransactionPeerAPI ¶
type StarsTransactionPeerAPI struct{}
Describes a Telegram Star transaction used to pay for paid API usage, such as paid bot broadcasts.
func (*StarsTransactionPeerAPI) CRC ¶
func (*StarsTransactionPeerAPI) CRC() uint32
func (*StarsTransactionPeerAPI) ImplementsStarsTransactionPeer ¶
func (*StarsTransactionPeerAPI) ImplementsStarsTransactionPeer()
type StarsTransactionPeerAds ¶
type StarsTransactionPeerAds struct{}
Describes a Telegram Star transaction used to pay for Telegram ads as specified here.
func (*StarsTransactionPeerAds) CRC ¶
func (*StarsTransactionPeerAds) CRC() uint32
func (*StarsTransactionPeerAds) ImplementsStarsTransactionPeer ¶
func (*StarsTransactionPeerAds) ImplementsStarsTransactionPeer()
type StarsTransactionPeerAppStore ¶
type StarsTransactionPeerAppStore struct{}
Describes a Telegram Star transaction with the App Store, used when purchasing Telegram Stars through the App Store.
func (*StarsTransactionPeerAppStore) CRC ¶
func (*StarsTransactionPeerAppStore) CRC() uint32
func (*StarsTransactionPeerAppStore) ImplementsStarsTransactionPeer ¶
func (*StarsTransactionPeerAppStore) ImplementsStarsTransactionPeer()
type StarsTransactionPeerFragment ¶
type StarsTransactionPeerFragment struct{}
Describes a Telegram Star transaction with Fragment, used when purchasing Telegram Stars through Fragment.
func (*StarsTransactionPeerFragment) CRC ¶
func (*StarsTransactionPeerFragment) CRC() uint32
func (*StarsTransactionPeerFragment) ImplementsStarsTransactionPeer ¶
func (*StarsTransactionPeerFragment) ImplementsStarsTransactionPeer()
type StarsTransactionPeerObj ¶
type StarsTransactionPeerObj struct {
Peer Peer // The peer.
}
Describes a Telegram Star transaction with another peer.
func (*StarsTransactionPeerObj) CRC ¶
func (*StarsTransactionPeerObj) CRC() uint32
func (*StarsTransactionPeerObj) ImplementsStarsTransactionPeer ¶
func (*StarsTransactionPeerObj) ImplementsStarsTransactionPeer()
type StarsTransactionPeerPlayMarket ¶
type StarsTransactionPeerPlayMarket struct{}
Describes a Telegram Star transaction with the Play Store, used when purchasing Telegram Stars through the Play Store.
func (*StarsTransactionPeerPlayMarket) CRC ¶
func (*StarsTransactionPeerPlayMarket) CRC() uint32
func (*StarsTransactionPeerPlayMarket) ImplementsStarsTransactionPeer ¶
func (*StarsTransactionPeerPlayMarket) ImplementsStarsTransactionPeer()
type StarsTransactionPeerPremiumBot ¶
type StarsTransactionPeerPremiumBot struct{}
Describes a Telegram Star transaction made using @PremiumBot (i.e. using the inputInvoiceStars flow described here ).
func (*StarsTransactionPeerPremiumBot) CRC ¶
func (*StarsTransactionPeerPremiumBot) CRC() uint32
func (*StarsTransactionPeerPremiumBot) ImplementsStarsTransactionPeer ¶
func (*StarsTransactionPeerPremiumBot) ImplementsStarsTransactionPeer()
type StarsTransactionPeerUnsupported ¶
type StarsTransactionPeerUnsupported struct{}
Describes a Telegram Star transaction that cannot be described using the current layer.
func (*StarsTransactionPeerUnsupported) CRC ¶
func (*StarsTransactionPeerUnsupported) CRC() uint32
func (*StarsTransactionPeerUnsupported) ImplementsStarsTransactionPeer ¶
func (*StarsTransactionPeerUnsupported) ImplementsStarsTransactionPeer()
type StatsAbsValueAndPrev ¶
Statistics value couple; initial and final value for period of time currently in consideration
func (*StatsAbsValueAndPrev) CRC ¶
func (*StatsAbsValueAndPrev) CRC() uint32
type StatsBroadcastStats ¶
type StatsBroadcastStats struct {
Period *StatsDateRangeDays
Followers *StatsAbsValueAndPrev
ViewsPerPost *StatsAbsValueAndPrev
ReactionsPerPost *StatsAbsValueAndPrev
ViewsPerStory *StatsAbsValueAndPrev
ReactionsPerStory *StatsAbsValueAndPrev
EnabledNotifications *StatsPercentValue
GrowthGraph StatsGraph
FollowersGraph StatsGraph
MuteGraph StatsGraph
TopHoursGraph StatsGraph
InteractionsGraph StatsGraph
IvInteractionsGraph StatsGraph
ViewsBySourceGraph StatsGraph
NewFollowersBySourceGraph StatsGraph
LanguagesGraph StatsGraph
ReactionsByEmotionGraph StatsGraph
StoryInteractionsGraph StatsGraph
StoryReactionsByEmotionGraph StatsGraph
RecentPostsInteractions []PostInteractionCounters
}
Channel statistics.
func (*StatsBroadcastStats) CRC ¶
func (*StatsBroadcastStats) CRC() uint32
type StatsDateRangeDays ¶
Channel statistics date range
func (*StatsDateRangeDays) CRC ¶
func (*StatsDateRangeDays) CRC() uint32
type StatsGetBroadcastStatsParams ¶
type StatsGetBroadcastStatsParams struct {
Dark bool `tl:"flag:0,encoded_in_bitflags"`
Channel InputChannel
}
func (*StatsGetBroadcastStatsParams) CRC ¶
func (*StatsGetBroadcastStatsParams) CRC() uint32
func (*StatsGetBroadcastStatsParams) FlagIndex ¶
func (*StatsGetBroadcastStatsParams) FlagIndex() int
type StatsGetMegagroupStatsParams ¶
type StatsGetMegagroupStatsParams struct {
Dark bool `tl:"flag:0,encoded_in_bitflags"`
Channel InputChannel
}
func (*StatsGetMegagroupStatsParams) CRC ¶
func (*StatsGetMegagroupStatsParams) CRC() uint32
func (*StatsGetMegagroupStatsParams) FlagIndex ¶
func (*StatsGetMegagroupStatsParams) FlagIndex() int
type StatsGetMessagePublicForwardsParams ¶
type StatsGetMessagePublicForwardsParams struct {
Channel InputChannel
MsgID int32
Offset string
Limit int32
}
func (*StatsGetMessagePublicForwardsParams) CRC ¶
func (*StatsGetMessagePublicForwardsParams) CRC() uint32
type StatsGetMessageStatsParams ¶
type StatsGetMessageStatsParams struct {
Dark bool `tl:"flag:0,encoded_in_bitflags"`
Channel InputChannel
MsgID int32
}
func (*StatsGetMessageStatsParams) CRC ¶
func (*StatsGetMessageStatsParams) CRC() uint32
func (*StatsGetMessageStatsParams) FlagIndex ¶
func (*StatsGetMessageStatsParams) FlagIndex() int
type StatsGetStoryPublicForwardsParams ¶
func (*StatsGetStoryPublicForwardsParams) CRC ¶
func (*StatsGetStoryPublicForwardsParams) CRC() uint32
type StatsGetStoryStatsParams ¶
type StatsGetStoryStatsParams struct {
Dark bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputPeer
ID int32
}
func (*StatsGetStoryStatsParams) CRC ¶
func (*StatsGetStoryStatsParams) CRC() uint32
func (*StatsGetStoryStatsParams) FlagIndex ¶
func (*StatsGetStoryStatsParams) FlagIndex() int
type StatsGraph ¶
type StatsGraphAsync ¶
type StatsGraphAsync struct {
Token string // Token to use for fetching the async graph
}
This channel statistics graph must be generated asynchronously using stats.loadAsyncGraph to reduce server load
func (*StatsGraphAsync) CRC ¶
func (*StatsGraphAsync) CRC() uint32
func (*StatsGraphAsync) ImplementsStatsGraph ¶
func (*StatsGraphAsync) ImplementsStatsGraph()
type StatsGraphError ¶
type StatsGraphError struct {
Error string // The error
}
An error occurred while generating the statistics graph
func (*StatsGraphError) CRC ¶
func (*StatsGraphError) CRC() uint32
func (*StatsGraphError) ImplementsStatsGraph ¶
func (*StatsGraphError) ImplementsStatsGraph()
type StatsGraphObj ¶
type StatsGraphObj struct {
Json *DataJson // Statistics data
ZoomToken string `tl:"flag:0"` // Zoom token
}
Channel statistics graph
func (*StatsGraphObj) CRC ¶
func (*StatsGraphObj) CRC() uint32
func (*StatsGraphObj) FlagIndex ¶
func (*StatsGraphObj) FlagIndex() int
func (*StatsGraphObj) ImplementsStatsGraph ¶
func (*StatsGraphObj) ImplementsStatsGraph()
type StatsGroupTopAdmin ¶
Information about an active admin in a supergroup
func (*StatsGroupTopAdmin) CRC ¶
func (*StatsGroupTopAdmin) CRC() uint32
type StatsGroupTopInviter ¶
Information about an active supergroup inviter
func (*StatsGroupTopInviter) CRC ¶
func (*StatsGroupTopInviter) CRC() uint32
type StatsGroupTopPoster ¶
Information about an active user in a supergroup
func (*StatsGroupTopPoster) CRC ¶
func (*StatsGroupTopPoster) CRC() uint32
type StatsLoadAsyncGraphParams ¶
func (*StatsLoadAsyncGraphParams) CRC ¶
func (*StatsLoadAsyncGraphParams) CRC() uint32
func (*StatsLoadAsyncGraphParams) FlagIndex ¶
func (*StatsLoadAsyncGraphParams) FlagIndex() int
type StatsMegagroupStats ¶
type StatsMegagroupStats struct {
Period *StatsDateRangeDays
Members *StatsAbsValueAndPrev
Messages *StatsAbsValueAndPrev
Viewers *StatsAbsValueAndPrev
Posters *StatsAbsValueAndPrev
GrowthGraph StatsGraph
MembersGraph StatsGraph
NewMembersBySourceGraph StatsGraph
LanguagesGraph StatsGraph
MessagesGraph StatsGraph
ActionsGraph StatsGraph
TopHoursGraph StatsGraph
WeekdaysGraph StatsGraph
TopPosters []*StatsGroupTopPoster
TopAdmins []*StatsGroupTopAdmin
TopInviters []*StatsGroupTopInviter
Users []User
}
Supergroup statistics
func (*StatsMegagroupStats) CRC ¶
func (*StatsMegagroupStats) CRC() uint32
type StatsMessageStats ¶
type StatsMessageStats struct {
ViewsGraph StatsGraph
ReactionsByEmotionGraph StatsGraph
}
Message statistics
func (*StatsMessageStats) CRC ¶
func (*StatsMessageStats) CRC() uint32
type StatsPercentValue ¶
Channel statistics percentage. Compute the percentage simply by doing `part * total / 100`
func (*StatsPercentValue) CRC ¶
func (*StatsPercentValue) CRC() uint32
type StatsPublicForwards ¶
type StatsPublicForwards struct {
Count int32
Forwards []PublicForward
NextOffset string `tl:"flag:0"`
Chats []Chat
Users []User
}
Contains info about the forwards of a story as a message to public chats and reposts by public channels.
func (*StatsPublicForwards) CRC ¶
func (*StatsPublicForwards) CRC() uint32
func (*StatsPublicForwards) FlagIndex ¶
func (*StatsPublicForwards) FlagIndex() int
type StatsStoryStats ¶
type StatsStoryStats struct {
ViewsGraph StatsGraph
ReactionsByEmotionGraph StatsGraph
}
Contains statistics about a story.
func (*StatsStoryStats) CRC ¶
func (*StatsStoryStats) CRC() uint32
type StickerKeyword ¶
Keywords for a certain sticker
func (*StickerKeyword) CRC ¶
func (*StickerKeyword) CRC() uint32
type StickerPack ¶
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.
func (*StickerPack) CRC ¶
func (*StickerPack) CRC() uint32
type StickerSet ¶
type StickerSet struct {
Archived bool `tl:"flag:1,encoded_in_bitflags"`
Official bool `tl:"flag:2,encoded_in_bitflags"`
Masks bool `tl:"flag:3,encoded_in_bitflags"`
Emojis bool `tl:"flag:7,encoded_in_bitflags"`
TextColor bool `tl:"flag:9,encoded_in_bitflags"`
ChannelEmojiStatus bool `tl:"flag:10,encoded_in_bitflags"`
Creator bool `tl:"flag:11,encoded_in_bitflags"`
InstalledDate int32 `tl:"flag:0"`
ID int64
AccessHash int64
Title string
ShortName string
Thumbs []PhotoSize `tl:"flag:4"`
ThumbDcID int32 `tl:"flag:4"`
ThumbVersion int32 `tl:"flag:4"`
ThumbDocumentID int64 `tl:"flag:8"`
Count int32
Hash int32
}
Represents a stickerset (stickerpack)
func (*StickerSet) CRC ¶
func (*StickerSet) CRC() uint32
func (*StickerSet) FlagIndex ¶
func (*StickerSet) FlagIndex() int
type StickerSetCovered ¶
type StickerSetCoveredObj ¶
type StickerSetCoveredObj struct {
Set *StickerSet // Stickerset
Cover Document // Preview
}
Stickerset with a single sticker as preview
func (*StickerSetCoveredObj) CRC ¶
func (*StickerSetCoveredObj) CRC() uint32
func (*StickerSetCoveredObj) ImplementsStickerSetCovered ¶
func (*StickerSetCoveredObj) ImplementsStickerSetCovered()
type StickerSetFullCovered ¶
type StickerSetFullCovered struct {
Set *StickerSet // Stickerset
Packs []*StickerPack // Emoji information about every sticker in the stickerset
Keywords []*StickerKeyword // Keywords for some or every sticker in the stickerset.
Documents []Document // Stickers
}
Stickerset preview with all stickers of the stickerset included. Currently used only for custom emoji stickersets, to avoid a further call to messages.getStickerSet.
func (*StickerSetFullCovered) CRC ¶
func (*StickerSetFullCovered) CRC() uint32
func (*StickerSetFullCovered) ImplementsStickerSetCovered ¶
func (*StickerSetFullCovered) ImplementsStickerSetCovered()
type StickerSetMultiCovered ¶
type StickerSetMultiCovered struct {
Set *StickerSet // Stickerset
Covers []Document // Preview stickers
}
Stickerset, with multiple stickers as preview
func (*StickerSetMultiCovered) CRC ¶
func (*StickerSetMultiCovered) CRC() uint32
func (*StickerSetMultiCovered) ImplementsStickerSetCovered ¶
func (*StickerSetMultiCovered) ImplementsStickerSetCovered()
type StickerSetNoCovered ¶
type StickerSetNoCovered struct {
Set *StickerSet // Stickerset information.
}
Just the stickerset information, with no previews.
func (*StickerSetNoCovered) CRC ¶
func (*StickerSetNoCovered) CRC() uint32
func (*StickerSetNoCovered) ImplementsStickerSetCovered ¶
func (*StickerSetNoCovered) ImplementsStickerSetCovered()
type StickersAddStickerToSetParams ¶
type StickersAddStickerToSetParams struct {
Stickerset InputStickerSet
Sticker *InputStickerSetItem
}
func (*StickersAddStickerToSetParams) CRC ¶
func (*StickersAddStickerToSetParams) CRC() uint32
type StickersChangeStickerParams ¶
type StickersChangeStickerParams struct {
Sticker InputDocument
Emoji string `tl:"flag:0"`
MaskCoords *MaskCoords `tl:"flag:1"`
Keywords string `tl:"flag:2"`
}
func (*StickersChangeStickerParams) CRC ¶
func (*StickersChangeStickerParams) CRC() uint32
func (*StickersChangeStickerParams) FlagIndex ¶
func (*StickersChangeStickerParams) FlagIndex() int
type StickersChangeStickerPositionParams ¶
type StickersChangeStickerPositionParams struct {
Sticker InputDocument
Position int32
}
func (*StickersChangeStickerPositionParams) CRC ¶
func (*StickersChangeStickerPositionParams) CRC() uint32
type StickersCheckShortNameParams ¶
type StickersCheckShortNameParams struct {
ShortName string
}
func (*StickersCheckShortNameParams) CRC ¶
func (*StickersCheckShortNameParams) CRC() uint32
type StickersCreateStickerSetParams ¶
type StickersCreateStickerSetParams struct {
Masks bool `tl:"flag:0,encoded_in_bitflags"`
Emojis bool `tl:"flag:5,encoded_in_bitflags"`
TextColor bool `tl:"flag:6,encoded_in_bitflags"`
UserID InputUser
Title string
ShortName string
Thumb InputDocument `tl:"flag:2"`
Stickers []*InputStickerSetItem
Software string `tl:"flag:3"`
}
func (*StickersCreateStickerSetParams) CRC ¶
func (*StickersCreateStickerSetParams) CRC() uint32
func (*StickersCreateStickerSetParams) FlagIndex ¶
func (*StickersCreateStickerSetParams) FlagIndex() int
type StickersDeleteStickerSetParams ¶
type StickersDeleteStickerSetParams struct {
Stickerset InputStickerSet
}
func (*StickersDeleteStickerSetParams) CRC ¶
func (*StickersDeleteStickerSetParams) CRC() uint32
type StickersRemoveStickerFromSetParams ¶
type StickersRemoveStickerFromSetParams struct {
Sticker InputDocument
}
func (*StickersRemoveStickerFromSetParams) CRC ¶
func (*StickersRemoveStickerFromSetParams) CRC() uint32
type StickersRenameStickerSetParams ¶
type StickersRenameStickerSetParams struct {
Stickerset InputStickerSet
Title string
}
func (*StickersRenameStickerSetParams) CRC ¶
func (*StickersRenameStickerSetParams) CRC() uint32
type StickersReplaceStickerParams ¶
type StickersReplaceStickerParams struct {
Sticker InputDocument
NewSticker *InputStickerSetItem
}
func (*StickersReplaceStickerParams) CRC ¶
func (*StickersReplaceStickerParams) CRC() uint32
type StickersSetStickerSetThumbParams ¶
type StickersSetStickerSetThumbParams struct {
Stickerset InputStickerSet
Thumb InputDocument `tl:"flag:0"`
ThumbDocumentID int64 `tl:"flag:1"`
}
func (*StickersSetStickerSetThumbParams) CRC ¶
func (*StickersSetStickerSetThumbParams) CRC() uint32
func (*StickersSetStickerSetThumbParams) FlagIndex ¶
func (*StickersSetStickerSetThumbParams) FlagIndex() int
type StickersSuggestShortNameParams ¶
type StickersSuggestShortNameParams struct {
Title string
}
func (*StickersSuggestShortNameParams) CRC ¶
func (*StickersSuggestShortNameParams) CRC() uint32
type StickersSuggestedShortName ¶
type StickersSuggestedShortName struct {
ShortName string
}
A suggested short name for a stickerpack
func (*StickersSuggestedShortName) CRC ¶
func (*StickersSuggestedShortName) CRC() uint32
type StorageFileType ¶
type StorageFileType uint32
const ( StorageFileGif StorageFileType = 0xcae1aadf StorageFileJpeg StorageFileType = 0x7efe0e StorageFileMov StorageFileType = 0x4b09ebbc StorageFileMp3 StorageFileType = 0x528a0677 StorageFileMp4 StorageFileType = 0xb3cea0e4 StorageFilePartial StorageFileType = 0x40bc6f52 StorageFilePdf StorageFileType = 0xae1e508d StorageFilePng StorageFileType = 0xa4f63c0 StorageFileUnknown StorageFileType = 0xaa963b05 StorageFileWebp StorageFileType = 0x1081464c )
func (StorageFileType) CRC ¶
func (e StorageFileType) CRC() uint32
func (StorageFileType) String ¶
func (e StorageFileType) String() string
type StoriesActivateStealthModeParams ¶
type StoriesActivateStealthModeParams struct {
Past bool `tl:"flag:0,encoded_in_bitflags"`
Future bool `tl:"flag:1,encoded_in_bitflags"`
}
func (*StoriesActivateStealthModeParams) CRC ¶
func (*StoriesActivateStealthModeParams) CRC() uint32
func (*StoriesActivateStealthModeParams) FlagIndex ¶
func (*StoriesActivateStealthModeParams) FlagIndex() int
type StoriesAlbums ¶ added in v1.6.3
type StoriesAlbumsNotModified ¶ added in v1.6.3
type StoriesAlbumsNotModified struct{}
The story album list hasn't changed.
func (*StoriesAlbumsNotModified) CRC ¶ added in v1.6.3
func (*StoriesAlbumsNotModified) CRC() uint32
func (*StoriesAlbumsNotModified) ImplementsStoriesAlbums ¶ added in v1.6.3
func (*StoriesAlbumsNotModified) ImplementsStoriesAlbums()
type StoriesAlbumsObj ¶ added in v1.6.3
type StoriesAlbumsObj struct {
Hash int64 // Hash to pass to stories.getAlbums to avoid returning any results if they haven't changed.
Albums []*StoryAlbum // The albums.
}
Story albums.
func (*StoriesAlbumsObj) CRC ¶ added in v1.6.3
func (*StoriesAlbumsObj) CRC() uint32
func (*StoriesAlbumsObj) ImplementsStoriesAlbums ¶ added in v1.6.3
func (*StoriesAlbumsObj) ImplementsStoriesAlbums()
type StoriesAllStories ¶
type StoriesAllStoriesNotModified ¶
type StoriesAllStoriesNotModified struct {
State string // State to use to ask for updates
StealthMode *StoriesStealthMode // Current stealth mode information
}
The list of active (or active and hidden) stories has not changed.
func (*StoriesAllStoriesNotModified) CRC ¶
func (*StoriesAllStoriesNotModified) CRC() uint32
func (*StoriesAllStoriesNotModified) ImplementsStoriesAllStories ¶
func (*StoriesAllStoriesNotModified) ImplementsStoriesAllStories()
type StoriesAllStoriesObj ¶
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
State string // State to use for pagination
PeerStories []*PeerStories // Stories
Chats []Chat // Mentioned chats
Users []User // Mentioned users
StealthMode *StoriesStealthMode // Current stealth mode information
}
Full list of active (or active and hidden) stories.
func (*StoriesAllStoriesObj) CRC ¶
func (*StoriesAllStoriesObj) CRC() uint32
func (*StoriesAllStoriesObj) FlagIndex ¶
func (*StoriesAllStoriesObj) FlagIndex() int
func (*StoriesAllStoriesObj) ImplementsStoriesAllStories ¶
func (*StoriesAllStoriesObj) ImplementsStoriesAllStories()
type StoriesCanSendStoryCount ¶ added in v1.6.0
type StoriesCanSendStoryCount struct {
CountRemains int32
}
Contains the number of available active story slots (equal to the value of the `story_expiring_limit_*` client configuration parameter minus the number of currently active stories).
func (*StoriesCanSendStoryCount) CRC ¶ added in v1.6.0
func (*StoriesCanSendStoryCount) CRC() uint32
type StoriesCanSendStoryParams ¶
type StoriesCanSendStoryParams struct {
Peer InputPeer
}
func (*StoriesCanSendStoryParams) CRC ¶
func (*StoriesCanSendStoryParams) CRC() uint32
type StoriesCreateAlbumParams ¶ added in v1.6.3
func (*StoriesCreateAlbumParams) CRC ¶ added in v1.6.3
func (*StoriesCreateAlbumParams) CRC() uint32
type StoriesDeleteAlbumParams ¶ added in v1.6.3
func (*StoriesDeleteAlbumParams) CRC ¶ added in v1.6.3
func (*StoriesDeleteAlbumParams) CRC() uint32
type StoriesDeleteStoriesParams ¶
func (*StoriesDeleteStoriesParams) CRC ¶
func (*StoriesDeleteStoriesParams) CRC() uint32
type StoriesEditStoryParams ¶
type StoriesEditStoryParams struct {
Peer InputPeer
ID int32
Media InputMedia `tl:"flag:0"`
MediaAreas []MediaArea `tl:"flag:3"`
Caption string `tl:"flag:1"`
Entities []MessageEntity `tl:"flag:1"`
PrivacyRules []InputPrivacyRule `tl:"flag:2"`
}
func (*StoriesEditStoryParams) CRC ¶
func (*StoriesEditStoryParams) CRC() uint32
func (*StoriesEditStoryParams) FlagIndex ¶
func (*StoriesEditStoryParams) FlagIndex() int
type StoriesExportStoryLinkParams ¶
func (*StoriesExportStoryLinkParams) CRC ¶
func (*StoriesExportStoryLinkParams) CRC() uint32
type StoriesFoundStories ¶
type StoriesFoundStories struct {
Count int32
Stories []*FoundStory
NextOffset string `tl:"flag:0"`
Chats []Chat
Users []User
}
Stories found using global story search.
func (*StoriesFoundStories) CRC ¶
func (*StoriesFoundStories) CRC() uint32
func (*StoriesFoundStories) FlagIndex ¶
func (*StoriesFoundStories) FlagIndex() int
type StoriesGetAlbumStoriesParams ¶ added in v1.6.3
func (*StoriesGetAlbumStoriesParams) CRC ¶ added in v1.6.3
func (*StoriesGetAlbumStoriesParams) CRC() uint32
type StoriesGetAlbumsParams ¶ added in v1.6.3
func (*StoriesGetAlbumsParams) CRC ¶ added in v1.6.3
func (*StoriesGetAlbumsParams) CRC() uint32
type StoriesGetAllReadPeerStoriesParams ¶
type StoriesGetAllReadPeerStoriesParams struct{}
func (*StoriesGetAllReadPeerStoriesParams) CRC ¶
func (*StoriesGetAllReadPeerStoriesParams) CRC() uint32
type StoriesGetAllStoriesParams ¶
type StoriesGetAllStoriesParams struct {
Next bool `tl:"flag:1,encoded_in_bitflags"`
Hidden bool `tl:"flag:2,encoded_in_bitflags"`
State string `tl:"flag:0"`
}
func (*StoriesGetAllStoriesParams) CRC ¶
func (*StoriesGetAllStoriesParams) CRC() uint32
func (*StoriesGetAllStoriesParams) FlagIndex ¶
func (*StoriesGetAllStoriesParams) FlagIndex() int
type StoriesGetChatsToSendParams ¶
type StoriesGetChatsToSendParams struct{}
func (*StoriesGetChatsToSendParams) CRC ¶
func (*StoriesGetChatsToSendParams) CRC() uint32
type StoriesGetPeerMaxIDsParams ¶
type StoriesGetPeerMaxIDsParams struct {
ID []InputPeer
}
func (*StoriesGetPeerMaxIDsParams) CRC ¶
func (*StoriesGetPeerMaxIDsParams) CRC() uint32
type StoriesGetPeerStoriesParams ¶
type StoriesGetPeerStoriesParams struct {
Peer InputPeer
}
func (*StoriesGetPeerStoriesParams) CRC ¶
func (*StoriesGetPeerStoriesParams) CRC() uint32
type StoriesGetPinnedStoriesParams ¶
func (*StoriesGetPinnedStoriesParams) CRC ¶
func (*StoriesGetPinnedStoriesParams) CRC() uint32
type StoriesGetStoriesArchiveParams ¶
func (*StoriesGetStoriesArchiveParams) CRC ¶
func (*StoriesGetStoriesArchiveParams) CRC() uint32
type StoriesGetStoriesByIDParams ¶
func (*StoriesGetStoriesByIDParams) CRC ¶
func (*StoriesGetStoriesByIDParams) CRC() uint32
type StoriesGetStoriesViewsParams ¶
func (*StoriesGetStoriesViewsParams) CRC ¶
func (*StoriesGetStoriesViewsParams) CRC() uint32
type StoriesGetStoryReactionsListParams ¶
type StoriesGetStoryReactionsListParams struct {
ForwardsFirst bool `tl:"flag:2,encoded_in_bitflags"`
Peer InputPeer
ID int32
Reaction Reaction `tl:"flag:0"`
Offset string `tl:"flag:1"`
Limit int32
}
func (*StoriesGetStoryReactionsListParams) CRC ¶
func (*StoriesGetStoryReactionsListParams) CRC() uint32
func (*StoriesGetStoryReactionsListParams) FlagIndex ¶
func (*StoriesGetStoryReactionsListParams) FlagIndex() int
type StoriesGetStoryViewsListParams ¶
type StoriesGetStoryViewsListParams struct {
JustContacts bool `tl:"flag:0,encoded_in_bitflags"`
ReactionsFirst bool `tl:"flag:2,encoded_in_bitflags"`
ForwardsFirst bool `tl:"flag:3,encoded_in_bitflags"`
Peer InputPeer
Q string `tl:"flag:1"`
ID int32
Offset string
Limit int32
}
func (*StoriesGetStoryViewsListParams) CRC ¶
func (*StoriesGetStoryViewsListParams) CRC() uint32
func (*StoriesGetStoryViewsListParams) FlagIndex ¶
func (*StoriesGetStoryViewsListParams) FlagIndex() int
type StoriesIncrementStoryViewsParams ¶
func (*StoriesIncrementStoryViewsParams) CRC ¶
func (*StoriesIncrementStoryViewsParams) CRC() uint32
type StoriesPeerStories ¶
type StoriesPeerStories struct {
Stories *PeerStories
Chats []Chat
Users []User
}
Active story list of a specific peer.
func (*StoriesPeerStories) CRC ¶
func (*StoriesPeerStories) CRC() uint32
type StoriesReadStoriesParams ¶
func (*StoriesReadStoriesParams) CRC ¶
func (*StoriesReadStoriesParams) CRC() uint32
type StoriesReorderAlbumsParams ¶ added in v1.6.3
func (*StoriesReorderAlbumsParams) CRC ¶ added in v1.6.3
func (*StoriesReorderAlbumsParams) CRC() uint32
type StoriesReportParams ¶
func (*StoriesReportParams) CRC ¶
func (*StoriesReportParams) CRC() uint32
type StoriesSearchPostsParams ¶
type StoriesSearchPostsParams struct {
Hashtag string `tl:"flag:0"`
Area MediaArea `tl:"flag:1"`
Peer InputPeer `tl:"flag:2"`
Offset string
Limit int32
}
func (*StoriesSearchPostsParams) CRC ¶
func (*StoriesSearchPostsParams) CRC() uint32
func (*StoriesSearchPostsParams) FlagIndex ¶
func (*StoriesSearchPostsParams) FlagIndex() int
type StoriesSendReactionParams ¶
type StoriesSendReactionParams struct {
AddToRecent bool `tl:"flag:0,encoded_in_bitflags"`
Peer InputPeer
StoryID int32
Reaction Reaction
}
func (*StoriesSendReactionParams) CRC ¶
func (*StoriesSendReactionParams) CRC() uint32
func (*StoriesSendReactionParams) FlagIndex ¶
func (*StoriesSendReactionParams) FlagIndex() int
type StoriesSendStoryParams ¶
type StoriesSendStoryParams struct {
Pinned bool `tl:"flag:2,encoded_in_bitflags"`
Noforwards bool `tl:"flag:4,encoded_in_bitflags"`
FwdModified bool `tl:"flag:7,encoded_in_bitflags"`
Peer InputPeer
Media InputMedia
MediaAreas []MediaArea `tl:"flag:5"`
Caption string `tl:"flag:0"`
Entities []MessageEntity `tl:"flag:1"`
PrivacyRules []InputPrivacyRule
RandomID int64
Period int32 `tl:"flag:3"`
FwdFromID InputPeer `tl:"flag:6"`
FwdFromStory int32 `tl:"flag:6"`
Albums []int32 `tl:"flag:8"`
}
func (*StoriesSendStoryParams) CRC ¶
func (*StoriesSendStoryParams) CRC() uint32
func (*StoriesSendStoryParams) FlagIndex ¶
func (*StoriesSendStoryParams) FlagIndex() int
type StoriesStartLiveParams ¶ added in v1.6.9
type StoriesStartLiveParams struct {
Pinned bool `tl:"flag:2,encoded_in_bitflags"`
Noforwards bool `tl:"flag:4,encoded_in_bitflags"`
RtmpStream bool `tl:"flag:5,encoded_in_bitflags"`
Peer InputPeer
Caption string `tl:"flag:0"`
Entities []MessageEntity `tl:"flag:1"`
PrivacyRules []InputPrivacyRule
RandomID int64
MessagesEnabled bool `tl:"flag:6"`
SendPaidMessagesStars int64 `tl:"flag:7"`
}
func (*StoriesStartLiveParams) CRC ¶ added in v1.6.9
func (*StoriesStartLiveParams) CRC() uint32
func (*StoriesStartLiveParams) FlagIndex ¶ added in v1.6.9
func (*StoriesStartLiveParams) FlagIndex() int
type StoriesStealthMode ¶
type StoriesStealthMode struct {
ActiveUntilDate int32 `tl:"flag:0"`
CooldownUntilDate int32 `tl:"flag:1"`
}
Information about the current stealth mode session.
func (*StoriesStealthMode) CRC ¶
func (*StoriesStealthMode) CRC() uint32
func (*StoriesStealthMode) FlagIndex ¶
func (*StoriesStealthMode) FlagIndex() int
type StoriesStories ¶
type StoriesStories struct {
Count int32
Stories []StoryItem
PinnedToTop []int32 `tl:"flag:0"`
Chats []Chat
Users []User
}
List of stories
func (*StoriesStories) CRC ¶
func (*StoriesStories) CRC() uint32
func (*StoriesStories) FlagIndex ¶
func (*StoriesStories) FlagIndex() int
type StoriesStoryReactionsList ¶
type StoriesStoryReactionsList struct {
Count int32
Reactions []StoryReaction
Chats []Chat
Users []User
NextOffset string `tl:"flag:0"`
}
List of peers that reacted to or intercated with a specific story
func (*StoriesStoryReactionsList) CRC ¶
func (*StoriesStoryReactionsList) CRC() uint32
func (*StoriesStoryReactionsList) FlagIndex ¶
func (*StoriesStoryReactionsList) FlagIndex() int
type StoriesStoryViews ¶
type StoriesStoryViews struct {
Views []*StoryViews
Users []User
}
Reaction and view counters for a list of stories
func (*StoriesStoryViews) CRC ¶
func (*StoriesStoryViews) CRC() uint32
type StoriesStoryViewsList ¶
type StoriesStoryViewsList struct {
Count int32
ViewsCount int32
ForwardsCount int32
ReactionsCount int32
Views []StoryView
Chats []Chat
Users []User
NextOffset string `tl:"flag:0"`
}
Reaction and view counters for a story
func (*StoriesStoryViewsList) CRC ¶
func (*StoriesStoryViewsList) CRC() uint32
func (*StoriesStoryViewsList) FlagIndex ¶
func (*StoriesStoryViewsList) FlagIndex() int
type StoriesToggleAllStoriesHiddenParams ¶
type StoriesToggleAllStoriesHiddenParams struct {
Hidden bool
}
func (*StoriesToggleAllStoriesHiddenParams) CRC ¶
func (*StoriesToggleAllStoriesHiddenParams) CRC() uint32
type StoriesTogglePeerStoriesHiddenParams ¶
func (*StoriesTogglePeerStoriesHiddenParams) CRC ¶
func (*StoriesTogglePeerStoriesHiddenParams) CRC() uint32
type StoriesTogglePinnedParams ¶
func (*StoriesTogglePinnedParams) CRC ¶
func (*StoriesTogglePinnedParams) CRC() uint32
type StoriesTogglePinnedToTopParams ¶
func (*StoriesTogglePinnedToTopParams) CRC ¶
func (*StoriesTogglePinnedToTopParams) CRC() uint32
type StoriesUpdateAlbumParams ¶ added in v1.6.3
type StoriesUpdateAlbumParams struct {
Peer InputPeer
AlbumID int32
Title string `tl:"flag:0"`
DeleteStories []int32 `tl:"flag:1"`
AddStories []int32 `tl:"flag:2"`
Order []int32 `tl:"flag:3"`
}
func (*StoriesUpdateAlbumParams) CRC ¶ added in v1.6.3
func (*StoriesUpdateAlbumParams) CRC() uint32
func (*StoriesUpdateAlbumParams) FlagIndex ¶ added in v1.6.3
func (*StoriesUpdateAlbumParams) FlagIndex() int
type StoryAlbum ¶ added in v1.6.3
type StoryAlbum struct {
AlbumID int32
Title string
IconPhoto Photo `tl:"flag:0"`
IconVideo Document `tl:"flag:1"`
}
Represents a story album.
func (*StoryAlbum) CRC ¶ added in v1.6.3
func (*StoryAlbum) CRC() uint32
func (*StoryAlbum) FlagIndex ¶ added in v1.6.3
func (*StoryAlbum) FlagIndex() int
type StoryFwdHeader ¶
type StoryFwdHeader struct {
Modified bool `tl:"flag:3,encoded_in_bitflags"`
From Peer `tl:"flag:0"`
FromName string `tl:"flag:1"`
StoryID int32 `tl:"flag:2"`
}
Contains info about the original poster of a reposted story.
func (*StoryFwdHeader) CRC ¶
func (*StoryFwdHeader) CRC() uint32
func (*StoryFwdHeader) FlagIndex ¶
func (*StoryFwdHeader) FlagIndex() int
type StoryItemDeleted ¶
type StoryItemDeleted struct {
ID int32 // Story ID
}
Represents a previously active story, that was deleted
func (*StoryItemDeleted) CRC ¶
func (*StoryItemDeleted) CRC() uint32
func (*StoryItemDeleted) ImplementsStoryItem ¶
func (*StoryItemDeleted) ImplementsStoryItem()
type StoryItemObj ¶
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
CloseFriends bool `tl:"flag:8,encoded_in_bitflags"` // Whether this story can only be viewed by our close friends
Min bool `tl:"flag:9,encoded_in_bitflags"` // Full information about this story was omitted for space and performance reasons; use stories.getStoriesByID to fetch full info about this story when and if needed.
Noforwards bool `tl:"flag:10,encoded_in_bitflags"` // Whether this story 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).
Edited bool `tl:"flag:11,encoded_in_bitflags"` // Indicates whether the story was edited.
Contacts bool `tl:"flag:12,encoded_in_bitflags"` // Whether this story can only be viewed by our contacts
SelectedContacts bool `tl:"flag:13,encoded_in_bitflags"` // Whether this story can only be viewed by a select list of our contacts
Out bool `tl:"flag:16,encoded_in_bitflags"` // indicates whether we sent this story.
ID int32 // ID of the story.
Date int32 // When was the story posted.
FromID Peer `tl:"flag:18"` // Sender of the story.
FwdFrom *StoryFwdHeader `tl:"flag:17"` // For reposted stories, contains info about the original story.
ExpireDate int32 // When does the story expire.
Caption string `tl:"flag:0"` // Story caption.
Entities []MessageEntity `tl:"flag:1"` // Message entities for styled text
Media MessageMedia // Story media.
MediaAreas []MediaArea `tl:"flag:14"` // List of media areas
Privacy []PrivacyRule `tl:"flag:2"` // Privacy rules indicating who can and can't view this story
Views *StoryViews `tl:"flag:3"` // View date and reaction information
SentReaction Reaction `tl:"flag:15"` // The reaction we sent.
Albums []int32 `tl:"flag:19"` // Albums this story is part of.
}
Represents a story.
func (*StoryItemObj) CRC ¶
func (*StoryItemObj) CRC() uint32
func (*StoryItemObj) FlagIndex ¶
func (*StoryItemObj) FlagIndex() int
func (*StoryItemObj) ImplementsStoryItem ¶
func (*StoryItemObj) ImplementsStoryItem()
type StoryItemSkipped ¶
type StoryItemSkipped struct {
CloseFriends bool `tl:"flag:8,encoded_in_bitflags"`
Live bool `tl:"flag:9,encoded_in_bitflags"`
ID int32
Date int32
ExpireDate int32
}
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.
func (*StoryItemSkipped) CRC ¶
func (*StoryItemSkipped) CRC() uint32
func (*StoryItemSkipped) FlagIndex ¶
func (*StoryItemSkipped) FlagIndex() int
func (*StoryItemSkipped) ImplementsStoryItem ¶
func (*StoryItemSkipped) ImplementsStoryItem()
type StoryReaction ¶
type StoryReactionObj ¶
type StoryReactionObj struct {
PeerID Peer // The peer
Date int32 // Reaction date
Reaction Reaction // The reaction
}
How a certain peer reacted to a story
func (*StoryReactionObj) CRC ¶
func (*StoryReactionObj) CRC() uint32
func (*StoryReactionObj) ImplementsStoryReaction ¶
func (*StoryReactionObj) ImplementsStoryReaction()
type StoryReactionPublicForward ¶
type StoryReactionPublicForward struct {
Message Message // The message with the forwarded story.
}
A certain peer has forwarded the story as a message to a public chat or channel.
func (*StoryReactionPublicForward) CRC ¶
func (*StoryReactionPublicForward) CRC() uint32
func (*StoryReactionPublicForward) ImplementsStoryReaction ¶
func (*StoryReactionPublicForward) ImplementsStoryReaction()
type StoryReactionPublicRepost ¶
type StoryReactionPublicRepost struct {
PeerID Peer // The peer that reposted the story.
Story StoryItem // The reposted story.
}
A certain peer has reposted the story.
func (*StoryReactionPublicRepost) CRC ¶
func (*StoryReactionPublicRepost) CRC() uint32
func (*StoryReactionPublicRepost) ImplementsStoryReaction ¶
func (*StoryReactionPublicRepost) ImplementsStoryReaction()
type StoryViewObj ¶
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.
UserID int64 // The user that viewed the story
Date int32 // When did the user view the story
Reaction Reaction `tl:"flag:2"` // If present, contains the reaction that the user left on the story
}
Story view date and reaction information
func (*StoryViewObj) CRC ¶
func (*StoryViewObj) CRC() uint32
func (*StoryViewObj) FlagIndex ¶
func (*StoryViewObj) FlagIndex() int
func (*StoryViewObj) ImplementsStoryView ¶
func (*StoryViewObj) ImplementsStoryView()
type StoryViewPublicForward ¶
type StoryViewPublicForward 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.
Message Message // The message with the forwarded story.
}
A certain peer has forwarded the story as a message to a public chat or channel.
func (*StoryViewPublicForward) CRC ¶
func (*StoryViewPublicForward) CRC() uint32
func (*StoryViewPublicForward) FlagIndex ¶
func (*StoryViewPublicForward) FlagIndex() int
func (*StoryViewPublicForward) ImplementsStoryView ¶
func (*StoryViewPublicForward) ImplementsStoryView()
type StoryViewPublicRepost ¶
type StoryViewPublicRepost 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.
PeerID Peer // The peer that reposted the story.
Story StoryItem // The reposted story.
}
A certain peer has reposted the story.
func (*StoryViewPublicRepost) CRC ¶
func (*StoryViewPublicRepost) CRC() uint32
func (*StoryViewPublicRepost) FlagIndex ¶
func (*StoryViewPublicRepost) FlagIndex() int
func (*StoryViewPublicRepost) ImplementsStoryView ¶
func (*StoryViewPublicRepost) ImplementsStoryView()
type StoryViews ¶
type StoryViews struct {
HasViewers bool `tl:"flag:1,encoded_in_bitflags"`
ViewsCount int32
ForwardsCount int32 `tl:"flag:2"`
Reactions []*ReactionCount `tl:"flag:3"`
ReactionsCount int32 `tl:"flag:4"`
RecentViewers []int64 `tl:"flag:0"`
}
Aggregated view and reaction information of a story.
func (*StoryViews) CRC ¶
func (*StoryViews) CRC() uint32
func (*StoryViews) FlagIndex ¶
func (*StoryViews) FlagIndex() int
type StreamState ¶ added in v1.6.10
type StreamState int
const ( StreamStateIdle StreamState = iota StreamStatePlaying StreamStatePaused StreamStateStopped )
func (StreamState) String ¶ added in v1.6.10
func (s StreamState) String() string
type SuggestedPost ¶ added in v1.6.1
type SuggestedPost struct {
Accepted bool `tl:"flag:1,encoded_in_bitflags"`
Rejected bool `tl:"flag:2,encoded_in_bitflags"`
Price StarsAmount `tl:"flag:3"`
ScheduleDate int32 `tl:"flag:0"`
}
Contains info about a suggested post.
func (*SuggestedPost) CRC ¶ added in v1.6.1
func (*SuggestedPost) CRC() uint32
func (*SuggestedPost) FlagIndex ¶ added in v1.6.1
func (*SuggestedPost) FlagIndex() int
type TLDialog ¶ added in v1.6.3
func (*TLDialog) GetInputPeer ¶ added in v1.6.3
type Tag ¶
type Tag struct {
Type string
Length int32
Offset int32
Attrs map[string]string
// contains filtered or unexported fields
}
length in UTF-16 code units
func ParseEntitiesToTags ¶ added in v1.5.6
func ParseEntitiesToTags(entities []MessageEntity) []Tag
type TextAnchor ¶
Text linking to another section of the page
func (*TextAnchor) CRC ¶
func (*TextAnchor) CRC() uint32
func (*TextAnchor) ImplementsRichText ¶
func (*TextAnchor) ImplementsRichText()
type TextBold ¶
type TextBold struct {
Text RichText // Text
}
Bold text
func (*TextBold) ImplementsRichText ¶
func (*TextBold) ImplementsRichText()
type TextConcat ¶
type TextConcat struct {
Texts []RichText // Concatenated rich texts
}
Concatenation of rich texts
func (*TextConcat) CRC ¶
func (*TextConcat) CRC() uint32
func (*TextConcat) ImplementsRichText ¶
func (*TextConcat) ImplementsRichText()
type TextEmail ¶
Rich text email link
func (*TextEmail) ImplementsRichText ¶
func (*TextEmail) ImplementsRichText()
type TextEmpty ¶
type TextEmpty struct{}
Empty rich text element
func (*TextEmpty) ImplementsRichText ¶
func (*TextEmpty) ImplementsRichText()
type TextFixed ¶
type TextFixed struct {
Text RichText // Text
}
`fixed-width` rich text
func (*TextFixed) ImplementsRichText ¶
func (*TextFixed) ImplementsRichText()
type TextImage ¶
Inline image
func (*TextImage) ImplementsRichText ¶
func (*TextImage) ImplementsRichText()
type TextItalic ¶
type TextItalic struct {
Text RichText // Text
}
<em>Italic</em> text
func (*TextItalic) CRC ¶
func (*TextItalic) CRC() uint32
func (*TextItalic) ImplementsRichText ¶
func (*TextItalic) ImplementsRichText()
type TextMarked ¶
type TextMarked struct {
Text RichText // Text
}
Highlighted text
func (*TextMarked) CRC ¶
func (*TextMarked) CRC() uint32
func (*TextMarked) ImplementsRichText ¶
func (*TextMarked) ImplementsRichText()
type TextPhone ¶
Rich text linked to a phone number
func (*TextPhone) ImplementsRichText ¶
func (*TextPhone) ImplementsRichText()
type TextPlain ¶
type TextPlain struct {
Text string // Text
}
Plain text
func (*TextPlain) ImplementsRichText ¶
func (*TextPlain) ImplementsRichText()
type TextStrike ¶
type TextStrike struct {
Text RichText // Text
}
<del>Strikethrough</del> text
func (*TextStrike) CRC ¶
func (*TextStrike) CRC() uint32
func (*TextStrike) ImplementsRichText ¶
func (*TextStrike) ImplementsRichText()
type TextSubscript ¶
type TextSubscript struct {
Text RichText // Text
}
Subscript text
func (*TextSubscript) CRC ¶
func (*TextSubscript) CRC() uint32
func (*TextSubscript) ImplementsRichText ¶
func (*TextSubscript) ImplementsRichText()
type TextSuperscript ¶
type TextSuperscript struct {
Text RichText // Text
}
Superscript text
func (*TextSuperscript) CRC ¶
func (*TextSuperscript) CRC() uint32
func (*TextSuperscript) ImplementsRichText ¶
func (*TextSuperscript) ImplementsRichText()
type TextURL ¶
type TextURL struct {
Text RichText // Text of link
URL string // Webpage HTTP URL
WebpageID int64 // If a preview was already generated for the page, the page ID
}
Link
func (*TextURL) ImplementsRichText ¶
func (*TextURL) ImplementsRichText()
type TextUnderline ¶
type TextUnderline struct {
Text RichText // Text
}
Underlined text
func (*TextUnderline) CRC ¶
func (*TextUnderline) CRC() uint32
func (*TextUnderline) ImplementsRichText ¶
func (*TextUnderline) ImplementsRichText()
type TextWithEntities ¶
type TextWithEntities struct {
Text string
Entities []MessageEntity
}
Styled text with message entities
func (*TextWithEntities) CRC ¶
func (*TextWithEntities) CRC() uint32
type Theme ¶
type Theme struct {
Creator bool `tl:"flag:0,encoded_in_bitflags"`
Default bool `tl:"flag:1,encoded_in_bitflags"`
ForChat bool `tl:"flag:5,encoded_in_bitflags"`
ID int64
AccessHash int64
Slug string
Title string
Document Document `tl:"flag:2"`
Settings []*ThemeSettings `tl:"flag:3"`
Emoticon string `tl:"flag:6"`
InstallsCount int32 `tl:"flag:4"`
}
Theme
type ThemeSettings ¶
type ThemeSettings struct {
MessageColorsAnimated bool `tl:"flag:2,encoded_in_bitflags"`
BaseTheme BaseTheme
AccentColor int32
OutboxAccentColor int32 `tl:"flag:3"`
MessageColors []int32 `tl:"flag:0"`
Wallpaper WallPaper `tl:"flag:1"`
}
Theme settings
func (*ThemeSettings) CRC ¶
func (*ThemeSettings) CRC() uint32
func (*ThemeSettings) FlagIndex ¶
func (*ThemeSettings) FlagIndex() int
type TitleOptions ¶
type TodoCompletion ¶ added in v1.6.1
A completed todo list item.
func (*TodoCompletion) CRC ¶ added in v1.6.1
func (*TodoCompletion) CRC() uint32
type TodoItem ¶ added in v1.6.1
type TodoItem struct {
ID int32
Title *TextWithEntities
}
An item of a todo list.
type TodoList ¶ added in v1.6.1
type TodoList struct {
OthersCanAppend bool `tl:"flag:0,encoded_in_bitflags"`
OthersCanComplete bool `tl:"flag:1,encoded_in_bitflags"`
Title *TextWithEntities
List []*TodoItem
}
Represents a todo list.
type TopPeerCategory ¶
type TopPeerCategory uint32
const ( TopPeerCategoryBotsApp TopPeerCategory = 0xfd9e7bec TopPeerCategoryBotsInline TopPeerCategory = 0x148677e2 TopPeerCategoryBotsPm TopPeerCategory = 0xab661b5b TopPeerCategoryChannels TopPeerCategory = 0x161d9628 TopPeerCategoryCorrespondents TopPeerCategory = 0x637b7ed TopPeerCategoryForwardChats TopPeerCategory = 0xfbeec0f0 TopPeerCategoryForwardUsers TopPeerCategory = 0xa8406ca9 TopPeerCategoryGroups TopPeerCategory = 0xbd17a14a TopPeerCategoryPhoneCalls TopPeerCategory = 0x1e76a78c )
func (TopPeerCategory) CRC ¶
func (e TopPeerCategory) CRC() uint32
func (TopPeerCategory) String ¶
func (e TopPeerCategory) String() string
type TopPeerCategoryPeers ¶
type TopPeerCategoryPeers struct {
Category TopPeerCategory
Count int32
Peers []*TopPeer
}
Top peer category
func (*TopPeerCategoryPeers) CRC ¶
func (*TopPeerCategoryPeers) CRC() uint32
type URLAuthResult ¶
type URLAuthResultAccepted ¶
type URLAuthResultAccepted struct {
URL string // The URL name of the website on which the user has logged in.
}
Details about an accepted authorization request, for more info click here
func (*URLAuthResultAccepted) CRC ¶
func (*URLAuthResultAccepted) CRC() uint32
func (*URLAuthResultAccepted) ImplementsURLAuthResult ¶
func (*URLAuthResultAccepted) ImplementsURLAuthResult()
type URLAuthResultDefault ¶
type URLAuthResultDefault struct{}
Details about an accepted authorization request, for more info click here
func (*URLAuthResultDefault) CRC ¶
func (*URLAuthResultDefault) CRC() uint32
func (*URLAuthResultDefault) ImplementsURLAuthResult ¶
func (*URLAuthResultDefault) ImplementsURLAuthResult()
type URLAuthResultRequest ¶
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.
Domain string // The domain name of the website on which the user will log in.
}
Details about the authorization request, for more info click here
func (*URLAuthResultRequest) CRC ¶
func (*URLAuthResultRequest) CRC() uint32
func (*URLAuthResultRequest) FlagIndex ¶
func (*URLAuthResultRequest) FlagIndex() int
func (*URLAuthResultRequest) ImplementsURLAuthResult ¶
func (*URLAuthResultRequest) ImplementsURLAuthResult()
type UpdateAttachMenuBots ¶
type UpdateAttachMenuBots struct{}
The list of installed attachment menu entries has changed, use messages.getAttachMenuBots to fetch the updated list.
func (*UpdateAttachMenuBots) CRC ¶
func (*UpdateAttachMenuBots) CRC() uint32
func (*UpdateAttachMenuBots) ImplementsUpdate ¶
func (*UpdateAttachMenuBots) ImplementsUpdate()
type UpdateAutoSaveSettings ¶
type UpdateAutoSaveSettings struct{}
Media autosave settings have changed and must be refetched using account.getAutoSaveSettings.
func (*UpdateAutoSaveSettings) CRC ¶
func (*UpdateAutoSaveSettings) CRC() uint32
func (*UpdateAutoSaveSettings) ImplementsUpdate ¶
func (*UpdateAutoSaveSettings) ImplementsUpdate()
type UpdateBotBusinessConnect ¶
type UpdateBotBusinessConnect struct {
Connection *BotBusinessConnection // Business connection settings
Qts int32 // New qts value, see updates for more info.
}
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.
func (*UpdateBotBusinessConnect) CRC ¶
func (*UpdateBotBusinessConnect) CRC() uint32
func (*UpdateBotBusinessConnect) ImplementsUpdate ¶
func (*UpdateBotBusinessConnect) ImplementsUpdate()
type UpdateBotCallbackQuery ¶
type UpdateBotCallbackQuery struct {
QueryID int64 // Query ID
UserID int64 // ID of the user that pressed the button
Peer Peer // Chat where the inline keyboard was sent
MsgID int32 // Message ID
ChatInstance int64 // Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
Data []byte `tl:"flag:0"` // Callback data
GameShortName string `tl:"flag:1"` // Short name of a Game to be returned, serves as the unique identifier for the game
}
A callback button was pressed, and the button data was sent to the bot that created the button
func (*UpdateBotCallbackQuery) CRC ¶
func (*UpdateBotCallbackQuery) CRC() uint32
func (*UpdateBotCallbackQuery) FlagIndex ¶
func (*UpdateBotCallbackQuery) FlagIndex() int
func (*UpdateBotCallbackQuery) ImplementsUpdate ¶
func (*UpdateBotCallbackQuery) ImplementsUpdate()
type UpdateBotChatBoost ¶
type UpdateBotChatBoost struct {
Peer Peer // Channel
Boost *Boost // New boost information
Qts int32 // QTS event sequence identifier
}
A channel/supergroup boost has changed (bots only)
func (*UpdateBotChatBoost) CRC ¶
func (*UpdateBotChatBoost) CRC() uint32
func (*UpdateBotChatBoost) ImplementsUpdate ¶
func (*UpdateBotChatBoost) ImplementsUpdate()
type UpdateBotChatInviteRequester ¶
type UpdateBotChatInviteRequester struct {
Peer Peer // The chat or channel in question
Date int32 // When was the join request made
UserID int64 // The user ID that is asking to join the chat or channel
About string // Bio of the user
Invite ExportedChatInvite // Chat invite link that was used by the user to send the join request
Qts int32 // QTS event sequence identifier
}
Someone has requested to join a chat or channel (bots only, users will receive an updatePendingJoinRequests, instead)
func (*UpdateBotChatInviteRequester) CRC ¶
func (*UpdateBotChatInviteRequester) CRC() uint32
func (*UpdateBotChatInviteRequester) ImplementsUpdate ¶
func (*UpdateBotChatInviteRequester) ImplementsUpdate()
type UpdateBotCommands ¶
type UpdateBotCommands struct {
Peer Peer // The affected chat
BotID int64 // ID of the bot that changed its command set
Commands []*BotCommand // New bot commands
}
The command set of a certain bot in a certain chat has changed.
func (*UpdateBotCommands) CRC ¶
func (*UpdateBotCommands) CRC() uint32
func (*UpdateBotCommands) ImplementsUpdate ¶
func (*UpdateBotCommands) ImplementsUpdate()
type UpdateBotDeleteBusinessMessage ¶
type UpdateBotDeleteBusinessMessage struct {
ConnectionID string // Business connection ID.
Peer Peer // Peer where the messages were deleted.
Messages []int32 // IDs of the messages that were deleted.
Qts int32 // New qts value, see updates for more info.
}
A message was deleted in a connected business chat.
func (*UpdateBotDeleteBusinessMessage) CRC ¶
func (*UpdateBotDeleteBusinessMessage) CRC() uint32
func (*UpdateBotDeleteBusinessMessage) ImplementsUpdate ¶
func (*UpdateBotDeleteBusinessMessage) ImplementsUpdate()
type UpdateBotEditBusinessMessage ¶
type UpdateBotEditBusinessMessage struct {
ConnectionID string // Business connection ID
Message Message // New message.
ReplyToMessage Message `tl:"flag:0"` // The message that `message` is replying to.
Qts int32 // New qts value, see updates for more info.
}
A message was edited in a connected business chat.
func (*UpdateBotEditBusinessMessage) CRC ¶
func (*UpdateBotEditBusinessMessage) CRC() uint32
func (*UpdateBotEditBusinessMessage) FlagIndex ¶
func (*UpdateBotEditBusinessMessage) FlagIndex() int
func (*UpdateBotEditBusinessMessage) ImplementsUpdate ¶
func (*UpdateBotEditBusinessMessage) ImplementsUpdate()
type UpdateBotInlineQuery ¶
type UpdateBotInlineQuery struct {
QueryID int64 // Query ID
UserID int64 // User that sent the query
Query string // Text of query
Geo GeoPoint `tl:"flag:0"` // Attached geolocation
PeerType InlineQueryPeerType `tl:"flag:1"` // Type of the chat from which the inline query was sent.
Offset string // Offset to navigate through results
}
An incoming inline query
func (*UpdateBotInlineQuery) CRC ¶
func (*UpdateBotInlineQuery) CRC() uint32
func (*UpdateBotInlineQuery) FlagIndex ¶
func (*UpdateBotInlineQuery) FlagIndex() int
func (*UpdateBotInlineQuery) ImplementsUpdate ¶
func (*UpdateBotInlineQuery) ImplementsUpdate()
type UpdateBotInlineSend ¶
type UpdateBotInlineSend struct {
UserID int64 // The user that chose the result
Query string // The query that was used to obtain the result
Geo GeoPoint `tl:"flag:0"` // Optional. Sender location, only for bots that require user location
ID string // The unique identifier for the result that was chosen
MsgID InputBotInlineMessageID `tl:"flag:1"` // Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.
}
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.
func (*UpdateBotInlineSend) CRC ¶
func (*UpdateBotInlineSend) CRC() uint32
func (*UpdateBotInlineSend) FlagIndex ¶
func (*UpdateBotInlineSend) FlagIndex() int
func (*UpdateBotInlineSend) ImplementsUpdate ¶
func (*UpdateBotInlineSend) ImplementsUpdate()
type UpdateBotMenuButton ¶
type UpdateBotMenuButton struct {
BotID int64 // Bot ID
Button BotMenuButton // New menu button
}
The menu button behavior for the specified bot has changed
func (*UpdateBotMenuButton) CRC ¶
func (*UpdateBotMenuButton) CRC() uint32
func (*UpdateBotMenuButton) ImplementsUpdate ¶
func (*UpdateBotMenuButton) ImplementsUpdate()
type UpdateBotMessageReaction ¶
type UpdateBotMessageReaction struct {
Peer Peer // Peer of the reacted-to message.
MsgID int32 // ID of the reacted-to message.
Date int32 // Date of the change.
Actor Peer // The user that (un)reacted to the message.
OldReactions []Reaction // Old reactions
NewReactions []Reaction // New reactions
Qts int32 // QTS event sequence identifier
}
Bots only: a user has changed their reactions on a message with public reactions.
func (*UpdateBotMessageReaction) CRC ¶
func (*UpdateBotMessageReaction) CRC() uint32
func (*UpdateBotMessageReaction) ImplementsUpdate ¶
func (*UpdateBotMessageReaction) ImplementsUpdate()
type UpdateBotMessageReactions ¶
type UpdateBotMessageReactions struct {
Peer Peer // Peer of the reacted-to message.
MsgID int32 // ID of the reacted-to message.
Date int32 // Date of the change.
Reactions []*ReactionCount // New reaction counters.
Qts int32 // QTS event sequence identifier
}
Bots only: the number of reactions on a message with anonymous reactions has changed.
func (*UpdateBotMessageReactions) CRC ¶
func (*UpdateBotMessageReactions) CRC() uint32
func (*UpdateBotMessageReactions) ImplementsUpdate ¶
func (*UpdateBotMessageReactions) ImplementsUpdate()
type UpdateBotNewBusinessMessage ¶
type UpdateBotNewBusinessMessage struct {
ConnectionID string // Connection ID.
Message Message // New message.
ReplyToMessage Message `tl:"flag:0"` // The message that `message` is replying to.
Qts int32 // New qts value, see updates for more info.
}
A message was received via a connected business chat.
func (*UpdateBotNewBusinessMessage) CRC ¶
func (*UpdateBotNewBusinessMessage) CRC() uint32
func (*UpdateBotNewBusinessMessage) FlagIndex ¶
func (*UpdateBotNewBusinessMessage) FlagIndex() int
func (*UpdateBotNewBusinessMessage) ImplementsUpdate ¶
func (*UpdateBotNewBusinessMessage) ImplementsUpdate()
type UpdateBotPrecheckoutQuery ¶
type UpdateBotPrecheckoutQuery struct {
QueryID int64 // Unique query identifier
UserID int64 // User who sent the query
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
Currency string // Three-letter ISO 4217 currency code, or `XTR` for Telegram Stars.
TotalAmount int64 // Total amount 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).
}
This object contains information about an incoming pre-checkout query.
func (*UpdateBotPrecheckoutQuery) CRC ¶
func (*UpdateBotPrecheckoutQuery) CRC() uint32
func (*UpdateBotPrecheckoutQuery) FlagIndex ¶
func (*UpdateBotPrecheckoutQuery) FlagIndex() int
func (*UpdateBotPrecheckoutQuery) ImplementsUpdate ¶
func (*UpdateBotPrecheckoutQuery) ImplementsUpdate()
type UpdateBotPurchasedPaidMedia ¶
type UpdateBotPurchasedPaidMedia struct {
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.
}
Bots only: a user has purchased a paid media.
func (*UpdateBotPurchasedPaidMedia) CRC ¶
func (*UpdateBotPurchasedPaidMedia) CRC() uint32
func (*UpdateBotPurchasedPaidMedia) ImplementsUpdate ¶
func (*UpdateBotPurchasedPaidMedia) ImplementsUpdate()
type UpdateBotShippingQuery ¶
type UpdateBotShippingQuery struct {
QueryID int64 // Unique query identifier
UserID int64 // User who sent the query
Payload []byte // Bot specified invoice payload
ShippingAddress *PostAddress // User specified shipping address
}
This object contains information about an incoming shipping query.
func (*UpdateBotShippingQuery) CRC ¶
func (*UpdateBotShippingQuery) CRC() uint32
func (*UpdateBotShippingQuery) ImplementsUpdate ¶
func (*UpdateBotShippingQuery) ImplementsUpdate()
type UpdateBotStopped ¶
type UpdateBotStopped struct {
UserID int64 // The user ID
Date int32 // When did this action occur
Stopped bool // Whether the bot was stopped or started
Qts int32 // New qts value, see updates for more info.
}
A bot was stopped or re-started.
func (*UpdateBotStopped) CRC ¶
func (*UpdateBotStopped) CRC() uint32
func (*UpdateBotStopped) ImplementsUpdate ¶
func (*UpdateBotStopped) ImplementsUpdate()
type UpdateBotWebhookJson ¶
type UpdateBotWebhookJson struct {
Data *DataJson // The event
}
A new incoming event; for bots only
func (*UpdateBotWebhookJson) CRC ¶
func (*UpdateBotWebhookJson) CRC() uint32
func (*UpdateBotWebhookJson) ImplementsUpdate ¶
func (*UpdateBotWebhookJson) ImplementsUpdate()
type UpdateBotWebhookJsonQuery ¶
type UpdateBotWebhookJsonQuery struct {
QueryID int64 // Query identifier
Data *DataJson // Query data
Timeout int32 // Query timeout
}
A new incoming query; for bots only
func (*UpdateBotWebhookJsonQuery) CRC ¶
func (*UpdateBotWebhookJsonQuery) CRC() uint32
func (*UpdateBotWebhookJsonQuery) ImplementsUpdate ¶
func (*UpdateBotWebhookJsonQuery) ImplementsUpdate()
type UpdateBusinessBotCallbackQuery ¶
type UpdateBusinessBotCallbackQuery struct {
QueryID int64 // Query ID
UserID int64 // ID of the user that pressed the button
ConnectionID string // Business connection ID
Message Message // Message that contains the keyboard (also contains info about the chat where the message was sent).
ReplyToMessage Message `tl:"flag:2"` // The message that `message` is replying to.
ChatInstance int64 // Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
Data []byte `tl:"flag:0"` // Callback data
}
A callback button sent via a business connection was pressed, and the button data was sent to the bot that created the button.
func (*UpdateBusinessBotCallbackQuery) CRC ¶
func (*UpdateBusinessBotCallbackQuery) CRC() uint32
func (*UpdateBusinessBotCallbackQuery) FlagIndex ¶
func (*UpdateBusinessBotCallbackQuery) FlagIndex() int
func (*UpdateBusinessBotCallbackQuery) ImplementsUpdate ¶
func (*UpdateBusinessBotCallbackQuery) ImplementsUpdate()
type UpdateChannel ¶
type UpdateChannel struct {
ChannelID int64 // Channel ID
}
Channel/supergroup (channel and/or channelFull) information was updated.
func (*UpdateChannel) CRC ¶
func (*UpdateChannel) CRC() uint32
func (*UpdateChannel) ImplementsUpdate ¶
func (*UpdateChannel) ImplementsUpdate()
type UpdateChannelAvailableMessages ¶
type UpdateChannelAvailableMessages struct {
ChannelID int64 // Channel/supergroup ID
AvailableMinID int32 // Identifier of a maximum unavailable message in a channel due to hidden history.
}
The history of a channel/supergroup was hidden.
func (*UpdateChannelAvailableMessages) CRC ¶
func (*UpdateChannelAvailableMessages) CRC() uint32
func (*UpdateChannelAvailableMessages) ImplementsUpdate ¶
func (*UpdateChannelAvailableMessages) ImplementsUpdate()
type UpdateChannelMessageForwards ¶
type UpdateChannelMessageForwards struct {
ChannelID int64 // Channel ID
ID int32 // ID of the message
Forwards int32 // New forward counter
}
The forward counter of a message in a channel has changed
func (*UpdateChannelMessageForwards) CRC ¶
func (*UpdateChannelMessageForwards) CRC() uint32
func (*UpdateChannelMessageForwards) ImplementsUpdate ¶
func (*UpdateChannelMessageForwards) ImplementsUpdate()
type UpdateChannelMessageViews ¶
type UpdateChannelMessageViews struct {
ChannelID int64 // Channel ID
ID int32 // ID of the message
Views int32 // New view counter
}
The view counter of a message in a channel has changed
func (*UpdateChannelMessageViews) CRC ¶
func (*UpdateChannelMessageViews) CRC() uint32
func (*UpdateChannelMessageViews) ImplementsUpdate ¶
func (*UpdateChannelMessageViews) ImplementsUpdate()
type UpdateChannelParticipant ¶
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
Date int32 // Date of the event
ActorID int64 // User that triggered the change (inviter, admin that kicked the user, or the even the user_id itself)
UserID int64 // User that was affected by the change
PrevParticipant ChannelParticipant `tl:"flag:0"` // Previous participant status
NewParticipant ChannelParticipant `tl:"flag:1"` // New participant status
Invite ExportedChatInvite `tl:"flag:2"` // Chat invite used to join the channel/supergroup
Qts int32 // New qts value, see updates for more info.
}
A participant has left, joined, was banned or admined in a channel or supergroup.
func (*UpdateChannelParticipant) CRC ¶
func (*UpdateChannelParticipant) CRC() uint32
func (*UpdateChannelParticipant) FlagIndex ¶
func (*UpdateChannelParticipant) FlagIndex() int
func (*UpdateChannelParticipant) ImplementsUpdate ¶
func (*UpdateChannelParticipant) ImplementsUpdate()
type UpdateChannelReadMessagesContents ¶
type UpdateChannelReadMessagesContents struct {
ChannelID int64 // Channel/supergroup ID
TopMsgID int32 `tl:"flag:0"` // Forum topic ID.
SavedPeerID Peer `tl:"flag:1"` // If set, the messages were read within the specified monoforum topic.
Messages []int32 // IDs of messages that were read
}
The specified channel/supergroup messages were read (emitted specifically for messages like voice messages or video, only once the media is watched and marked as read using channels.readMessageContents)
func (*UpdateChannelReadMessagesContents) CRC ¶
func (*UpdateChannelReadMessagesContents) CRC() uint32
func (*UpdateChannelReadMessagesContents) FlagIndex ¶
func (*UpdateChannelReadMessagesContents) FlagIndex() int
func (*UpdateChannelReadMessagesContents) ImplementsUpdate ¶
func (*UpdateChannelReadMessagesContents) ImplementsUpdate()
type UpdateChannelTooLong ¶
type UpdateChannelTooLong struct {
ChannelID int64 // The channel
Pts int32 `tl:"flag:0"` // The PTS.
}
There are new updates in the specified channel, the client must fetch them. If the difference is too long or if the channel isn't currently in the states, start fetching from the specified pts.
func (*UpdateChannelTooLong) CRC ¶
func (*UpdateChannelTooLong) CRC() uint32
func (*UpdateChannelTooLong) FlagIndex ¶
func (*UpdateChannelTooLong) FlagIndex() int
func (*UpdateChannelTooLong) ImplementsUpdate ¶
func (*UpdateChannelTooLong) ImplementsUpdate()
type UpdateChannelUserTyping ¶
type UpdateChannelUserTyping struct {
ChannelID int64 // Channel ID
TopMsgID int32 `tl:"flag:0"` // Thread ID
FromID Peer // The peer that is typing
Action SendMessageAction // Whether the user is typing, sending a media or doing something else
}
A user is typing in a supergroup, channel or message thread
func (*UpdateChannelUserTyping) CRC ¶
func (*UpdateChannelUserTyping) CRC() uint32
func (*UpdateChannelUserTyping) FlagIndex ¶
func (*UpdateChannelUserTyping) FlagIndex() int
func (*UpdateChannelUserTyping) ImplementsUpdate ¶
func (*UpdateChannelUserTyping) ImplementsUpdate()
type UpdateChannelViewForumAsMessages ¶
type UpdateChannelViewForumAsMessages struct {
ChannelID int64 // The forum ID
Enabled bool // The new value of the toggle.
}
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 method; invoking this method will update the value of the `view_forum_as_messages` flag of channelFull or dialog and emit an updateChannelViewForumAsMessages.
func (*UpdateChannelViewForumAsMessages) CRC ¶
func (*UpdateChannelViewForumAsMessages) CRC() uint32
func (*UpdateChannelViewForumAsMessages) ImplementsUpdate ¶
func (*UpdateChannelViewForumAsMessages) ImplementsUpdate()
type UpdateChannelWebPage ¶
type UpdateChannelWebPage struct {
ChannelID int64 // Channel/supergroup ID
Webpage WebPage // Generated webpage preview
Pts int32 // Event count after generation
PtsCount int32 // Number of events that were generated
}
A webpage preview of a link in a channel/supergroup message was generated
func (*UpdateChannelWebPage) CRC ¶
func (*UpdateChannelWebPage) CRC() uint32
func (*UpdateChannelWebPage) ImplementsUpdate ¶
func (*UpdateChannelWebPage) ImplementsUpdate()
type UpdateChat ¶
type UpdateChat struct {
ChatID int64 // Chat ID
}
Chat (chat and/or chatFull) information was updated.
func (*UpdateChat) CRC ¶
func (*UpdateChat) CRC() uint32
func (*UpdateChat) ImplementsUpdate ¶
func (*UpdateChat) ImplementsUpdate()
type UpdateChatDefaultBannedRights ¶
type UpdateChatDefaultBannedRights struct {
Peer Peer // The chat
DefaultBannedRights *ChatBannedRights // New default banned rights
Version int32 // Version
}
Default banned rights in a normal chat were updated
func (*UpdateChatDefaultBannedRights) CRC ¶
func (*UpdateChatDefaultBannedRights) CRC() uint32
func (*UpdateChatDefaultBannedRights) ImplementsUpdate ¶
func (*UpdateChatDefaultBannedRights) ImplementsUpdate()
type UpdateChatParticipant ¶
type UpdateChatParticipant struct {
ChatID int64 // Chat ID
Date int32 // When did this event occur
ActorID int64 // User that triggered the change (inviter, admin that kicked the user, or the even the user_id itself)
UserID int64 // User that was affected by the change
PrevParticipant ChatParticipant `tl:"flag:0"` // Previous participant info (empty if this participant just joined)
NewParticipant ChatParticipant `tl:"flag:1"` // New participant info (empty if this participant just left)
Invite ExportedChatInvite `tl:"flag:2"` // The invite that was used to join the group
Qts int32 // New qts value, see updates for more info.
}
A user has joined or left a specific chat
func (*UpdateChatParticipant) CRC ¶
func (*UpdateChatParticipant) CRC() uint32
func (*UpdateChatParticipant) FlagIndex ¶
func (*UpdateChatParticipant) FlagIndex() int
func (*UpdateChatParticipant) ImplementsUpdate ¶
func (*UpdateChatParticipant) ImplementsUpdate()
type UpdateChatParticipantAdd ¶
type UpdateChatParticipantAdd struct {
ChatID int64 // Group ID
UserID int64 // ID of the new member
InviterID int64 // ID of the user, who added member to the group
Date int32 // When was the participant added
Version int32 // Chat version number
}
New group member.
func (*UpdateChatParticipantAdd) CRC ¶
func (*UpdateChatParticipantAdd) CRC() uint32
func (*UpdateChatParticipantAdd) ImplementsUpdate ¶
func (*UpdateChatParticipantAdd) ImplementsUpdate()
type UpdateChatParticipantAdmin ¶
type UpdateChatParticipantAdmin struct {
ChatID int64 // Chat ID
UserID int64 // ID of the (de)admined user
IsAdmin bool // Whether the user was rendered admin
Version int32 // Used in basic groups to reorder updates and make sure that all of them was received.
}
Admin permissions of a user in a basic group were changed
func (*UpdateChatParticipantAdmin) CRC ¶
func (*UpdateChatParticipantAdmin) CRC() uint32
func (*UpdateChatParticipantAdmin) ImplementsUpdate ¶
func (*UpdateChatParticipantAdmin) ImplementsUpdate()
type UpdateChatParticipantDelete ¶
type UpdateChatParticipantDelete struct {
ChatID int64 // Group ID
UserID int64 // ID of the user
Version int32 // Used in basic groups to reorder updates and make sure that all of them was received.
}
A member has left the group.
func (*UpdateChatParticipantDelete) CRC ¶
func (*UpdateChatParticipantDelete) CRC() uint32
func (*UpdateChatParticipantDelete) ImplementsUpdate ¶
func (*UpdateChatParticipantDelete) ImplementsUpdate()
type UpdateChatParticipants ¶
type UpdateChatParticipants struct {
Participants ChatParticipants // Updated chat participants
}
Composition of chat participants changed.
func (*UpdateChatParticipants) CRC ¶
func (*UpdateChatParticipants) CRC() uint32
func (*UpdateChatParticipants) ImplementsUpdate ¶
func (*UpdateChatParticipants) ImplementsUpdate()
type UpdateChatUserTyping ¶
type UpdateChatUserTyping struct {
ChatID int64 // Group id
FromID Peer // Peer that started typing (can be the chat itself, in case of anonymous admins).
Action SendMessageAction // Type of action
}
The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing
func (*UpdateChatUserTyping) CRC ¶
func (*UpdateChatUserTyping) CRC() uint32
func (*UpdateChatUserTyping) ImplementsUpdate ¶
func (*UpdateChatUserTyping) ImplementsUpdate()
type UpdateConfig ¶
type UpdateConfig struct{}
The server-side configuration has changed; the client should re-fetch the config using help.getConfig and help.getAppConfig.
func (*UpdateConfig) CRC ¶
func (*UpdateConfig) CRC() uint32
func (*UpdateConfig) ImplementsUpdate ¶
func (*UpdateConfig) ImplementsUpdate()
type UpdateContactsReset ¶
type UpdateContactsReset struct{}
All contacts were deleted
func (*UpdateContactsReset) CRC ¶
func (*UpdateContactsReset) CRC() uint32
func (*UpdateContactsReset) ImplementsUpdate ¶
func (*UpdateContactsReset) ImplementsUpdate()
type UpdateDcOptions ¶
type UpdateDcOptions struct {
DcOptions []*DcOption // New connection options
}
Changes in the data center configuration options.
func (*UpdateDcOptions) CRC ¶
func (*UpdateDcOptions) CRC() uint32
func (*UpdateDcOptions) ImplementsUpdate ¶
func (*UpdateDcOptions) ImplementsUpdate()
type UpdateDeleteChannelMessages ¶
type UpdateDeleteChannelMessages struct {
ChannelID int64 // Channel ID
Messages []int32 // IDs of messages that were deleted
Pts int32 // Event count after generation
PtsCount int32 // Number of events that were generated
}
Some messages in a supergroup/channel were deleted
func (*UpdateDeleteChannelMessages) CRC ¶
func (*UpdateDeleteChannelMessages) CRC() uint32
func (*UpdateDeleteChannelMessages) ImplementsUpdate ¶
func (*UpdateDeleteChannelMessages) ImplementsUpdate()
type UpdateDeleteGroupCallMessages ¶ added in v1.6.7
type UpdateDeleteGroupCallMessages struct {
Call InputGroupCall
Messages []int32
}
func (*UpdateDeleteGroupCallMessages) CRC ¶ added in v1.6.7
func (*UpdateDeleteGroupCallMessages) CRC() uint32
func (*UpdateDeleteGroupCallMessages) ImplementsUpdate ¶ added in v1.6.7
func (*UpdateDeleteGroupCallMessages) ImplementsUpdate()
type UpdateDeleteMessages ¶
type UpdateDeleteMessages struct {
Messages []int32 // List of identifiers of deleted messages
Pts int32 // New quality of actions in a message box
PtsCount int32 // Number of generated events
}
Messages were deleted.
func (*UpdateDeleteMessages) CRC ¶
func (*UpdateDeleteMessages) CRC() uint32
func (*UpdateDeleteMessages) ImplementsUpdate ¶
func (*UpdateDeleteMessages) ImplementsUpdate()
type UpdateDeleteQuickReply ¶
type UpdateDeleteQuickReply struct {
ShortcutID int32 // ID of the quick reply shortcut that was deleted.
}
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.
func (*UpdateDeleteQuickReply) CRC ¶
func (*UpdateDeleteQuickReply) CRC() uint32
func (*UpdateDeleteQuickReply) ImplementsUpdate ¶
func (*UpdateDeleteQuickReply) ImplementsUpdate()
type UpdateDeleteQuickReplyMessages ¶
type UpdateDeleteQuickReplyMessages struct {
ShortcutID int32 // Quick reply shortcut ID.
Messages []int32 // IDs of the deleted messages.
}
One or more messages in a quick reply shortcut were deleted.
func (*UpdateDeleteQuickReplyMessages) CRC ¶
func (*UpdateDeleteQuickReplyMessages) CRC() uint32
func (*UpdateDeleteQuickReplyMessages) ImplementsUpdate ¶
func (*UpdateDeleteQuickReplyMessages) ImplementsUpdate()
type UpdateDeleteScheduledMessages ¶
type UpdateDeleteScheduledMessages struct {
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.
}
Some scheduled messages were deleted (or sent) from the schedule queue of a chat
func (*UpdateDeleteScheduledMessages) CRC ¶
func (*UpdateDeleteScheduledMessages) CRC() uint32
func (*UpdateDeleteScheduledMessages) FlagIndex ¶
func (*UpdateDeleteScheduledMessages) FlagIndex() int
func (*UpdateDeleteScheduledMessages) ImplementsUpdate ¶
func (*UpdateDeleteScheduledMessages) ImplementsUpdate()
type UpdateDialogFilter ¶
type UpdateDialogFilter struct {
ID int32 // Folder ID
Filter DialogFilter `tl:"flag:0"` // Folder info
}
A new folder was added
func (*UpdateDialogFilter) CRC ¶
func (*UpdateDialogFilter) CRC() uint32
func (*UpdateDialogFilter) FlagIndex ¶
func (*UpdateDialogFilter) FlagIndex() int
func (*UpdateDialogFilter) ImplementsUpdate ¶
func (*UpdateDialogFilter) ImplementsUpdate()
type UpdateDialogFilterOrder ¶
type UpdateDialogFilterOrder struct {
Order []int32 // Ordered folder IDs
}
New folder order
func (*UpdateDialogFilterOrder) CRC ¶
func (*UpdateDialogFilterOrder) CRC() uint32
func (*UpdateDialogFilterOrder) ImplementsUpdate ¶
func (*UpdateDialogFilterOrder) ImplementsUpdate()
type UpdateDialogFilters ¶
type UpdateDialogFilters struct{}
Clients should update folder info
func (*UpdateDialogFilters) CRC ¶
func (*UpdateDialogFilters) CRC() uint32
func (*UpdateDialogFilters) ImplementsUpdate ¶
func (*UpdateDialogFilters) ImplementsUpdate()
type UpdateDialogPinned ¶
type UpdateDialogPinned struct {
Pinned bool `tl:"flag:0,encoded_in_bitflags"` // Whether the dialog was pinned
FolderID int32 `tl:"flag:1"` // Peer folder ID, for more info click here
Peer DialogPeer // The dialog
}
A dialog was pinned/unpinned
func (*UpdateDialogPinned) CRC ¶
func (*UpdateDialogPinned) CRC() uint32
func (*UpdateDialogPinned) FlagIndex ¶
func (*UpdateDialogPinned) FlagIndex() int
func (*UpdateDialogPinned) ImplementsUpdate ¶
func (*UpdateDialogPinned) ImplementsUpdate()
type UpdateDialogUnreadMark ¶
type UpdateDialogUnreadMark struct {
Unread bool `tl:"flag:0,encoded_in_bitflags"` // Was the chat marked or unmarked as read
Peer DialogPeer // The dialog
SavedPeerID Peer `tl:"flag:1"` // If set, the mark is related to the specified monoforum topic ID.
}
The manual unread mark of a chat was changed
func (*UpdateDialogUnreadMark) CRC ¶
func (*UpdateDialogUnreadMark) CRC() uint32
func (*UpdateDialogUnreadMark) FlagIndex ¶
func (*UpdateDialogUnreadMark) FlagIndex() int
func (*UpdateDialogUnreadMark) ImplementsUpdate ¶
func (*UpdateDialogUnreadMark) ImplementsUpdate()
type UpdateDispatcher ¶
func (*UpdateDispatcher) GetChannelPts ¶ added in v1.6.7
func (d *UpdateDispatcher) GetChannelPts(channelID int64) int32
func (*UpdateDispatcher) GetDate ¶ added in v1.6.7
func (d *UpdateDispatcher) GetDate() int32
func (*UpdateDispatcher) GetPts ¶ added in v1.6.0
func (d *UpdateDispatcher) GetPts() int32
func (*UpdateDispatcher) GetQts ¶ added in v1.6.7
func (d *UpdateDispatcher) GetQts() int32
func (*UpdateDispatcher) GetSeq ¶ added in v1.6.7
func (d *UpdateDispatcher) GetSeq() int32
func (*UpdateDispatcher) SetChannelPts ¶ added in v1.6.7
func (d *UpdateDispatcher) SetChannelPts(channelID int64, pts int32)
func (*UpdateDispatcher) SetDate ¶ added in v1.6.7
func (d *UpdateDispatcher) SetDate(date int32)
func (*UpdateDispatcher) SetPts ¶ added in v1.6.0
func (d *UpdateDispatcher) SetPts(pts int32)
func (*UpdateDispatcher) SetQts ¶ added in v1.6.7
func (d *UpdateDispatcher) SetQts(qts int32)
func (*UpdateDispatcher) SetSeq ¶ added in v1.6.7
func (d *UpdateDispatcher) SetSeq(seq int32)
func (*UpdateDispatcher) TryMarkUpdateProcessed ¶ added in v1.6.10
func (d *UpdateDispatcher) TryMarkUpdateProcessed(updateID int64) bool
TryMarkUpdateProcessed atomically checks if an update was processed and marks it if not. Returns true if this call marked it (first processor), false if already processed.
func (*UpdateDispatcher) UpdateLastUpdateTime ¶ added in v1.6.7
func (u *UpdateDispatcher) UpdateLastUpdateTime()
type UpdateDraftMessage ¶
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
SavedPeerID Peer `tl:"flag:1"` // If set, the draft is related to the specified monoforum topic ID.
Draft DraftMessage // The draft
}
Notifies a change of a message draft.
func (*UpdateDraftMessage) CRC ¶
func (*UpdateDraftMessage) CRC() uint32
func (*UpdateDraftMessage) FlagIndex ¶
func (*UpdateDraftMessage) FlagIndex() int
func (*UpdateDraftMessage) ImplementsUpdate ¶
func (*UpdateDraftMessage) ImplementsUpdate()
type UpdateEditChannelMessage ¶
type UpdateEditChannelMessage struct {
Message Message // The new message
Pts int32 // Event count after generation
PtsCount int32 // Number of events that were generated
}
A message was edited in a channel/supergroup
func (*UpdateEditChannelMessage) CRC ¶
func (*UpdateEditChannelMessage) CRC() uint32
func (*UpdateEditChannelMessage) ImplementsUpdate ¶
func (*UpdateEditChannelMessage) ImplementsUpdate()
type UpdateEditMessage ¶
type UpdateEditMessage struct {
Message Message // The new edited message
Pts int32 // PTS
PtsCount int32 // PTS count
}
A message was edited
func (*UpdateEditMessage) CRC ¶
func (*UpdateEditMessage) CRC() uint32
func (*UpdateEditMessage) ImplementsUpdate ¶
func (*UpdateEditMessage) ImplementsUpdate()
type UpdateEncryptedChatTyping ¶
type UpdateEncryptedChatTyping struct {
ChatID int32 // Chat ID
}
Interlocutor is typing a message in an encrypted chat. Update period is 6 second. If upon this time there is no repeated update, it shall be considered that the interlocutor stopped typing.
func (*UpdateEncryptedChatTyping) CRC ¶
func (*UpdateEncryptedChatTyping) CRC() uint32
func (*UpdateEncryptedChatTyping) ImplementsUpdate ¶
func (*UpdateEncryptedChatTyping) ImplementsUpdate()
type UpdateEncryptedMessagesRead ¶
type UpdateEncryptedMessagesRead struct {
ChatID int32 // Chat ID
MaxDate int32 // Maximum value of data for read messages
Date int32 // Time when messages were read
}
Communication history in an encrypted chat was marked as read.
func (*UpdateEncryptedMessagesRead) CRC ¶
func (*UpdateEncryptedMessagesRead) CRC() uint32
func (*UpdateEncryptedMessagesRead) ImplementsUpdate ¶
func (*UpdateEncryptedMessagesRead) ImplementsUpdate()
type UpdateEncryption ¶
type UpdateEncryption struct {
Chat EncryptedChat // Encrypted chat
Date int32 // Date of change
}
Change of state in an encrypted chat.
func (*UpdateEncryption) CRC ¶
func (*UpdateEncryption) CRC() uint32
func (*UpdateEncryption) ImplementsUpdate ¶
func (*UpdateEncryption) ImplementsUpdate()
type UpdateFavedStickers ¶
type UpdateFavedStickers struct{}
The list of favorited stickers was changed, the client should call messages.getFavedStickers to refetch the new list
func (*UpdateFavedStickers) CRC ¶
func (*UpdateFavedStickers) CRC() uint32
func (*UpdateFavedStickers) ImplementsUpdate ¶
func (*UpdateFavedStickers) ImplementsUpdate()
type UpdateFolderPeers ¶
type UpdateFolderPeers struct {
FolderPeers []*FolderPeer // New peer list
Pts int32 // Event count after generation
PtsCount int32 // Number of events that were generated
}
The peer list of a peer folder was updated
func (*UpdateFolderPeers) CRC ¶
func (*UpdateFolderPeers) CRC() uint32
func (*UpdateFolderPeers) ImplementsUpdate ¶
func (*UpdateFolderPeers) ImplementsUpdate()
type UpdateGeoLiveViewed ¶
type UpdateGeoLiveViewed struct {
Peer Peer // The user that viewed the live geoposition
MsgID int32 // Message ID of geoposition message
}
Live geoposition message was viewed
func (*UpdateGeoLiveViewed) CRC ¶
func (*UpdateGeoLiveViewed) CRC() uint32
func (*UpdateGeoLiveViewed) ImplementsUpdate ¶
func (*UpdateGeoLiveViewed) ImplementsUpdate()
type UpdateGroupCall ¶
type UpdateGroupCall struct {
LiveStory bool `tl:"flag:2,encoded_in_bitflags"`
Peer Peer `tl:"flag:1"`
Call GroupCall
}
A new groupcall was started
func (*UpdateGroupCall) CRC ¶
func (*UpdateGroupCall) CRC() uint32
func (*UpdateGroupCall) FlagIndex ¶ added in v1.5.3
func (*UpdateGroupCall) FlagIndex() int
func (*UpdateGroupCall) ImplementsUpdate ¶
func (*UpdateGroupCall) ImplementsUpdate()
type UpdateGroupCallChainBlocks ¶ added in v1.6.0
type UpdateGroupCallChainBlocks struct {
Call InputGroupCall // The conference call.
SubChainID int32 // Subchain ID.
Blocks [][]byte // Blocks.
NextOffset int32 // Offset of the next block.
}
Contains updates to the blockchain of a conference call
func (*UpdateGroupCallChainBlocks) CRC ¶ added in v1.6.0
func (*UpdateGroupCallChainBlocks) CRC() uint32
func (*UpdateGroupCallChainBlocks) ImplementsUpdate ¶ added in v1.6.0
func (*UpdateGroupCallChainBlocks) ImplementsUpdate()
type UpdateGroupCallConnection ¶
type UpdateGroupCallConnection struct {
Presentation bool `tl:"flag:0,encoded_in_bitflags"` // Are these parameters related to the screen capture session currently in progress?
Params *DataJson // WebRTC parameters
}
New WebRTC parameters
func (*UpdateGroupCallConnection) CRC ¶
func (*UpdateGroupCallConnection) CRC() uint32
func (*UpdateGroupCallConnection) FlagIndex ¶
func (*UpdateGroupCallConnection) FlagIndex() int
func (*UpdateGroupCallConnection) ImplementsUpdate ¶
func (*UpdateGroupCallConnection) ImplementsUpdate()
type UpdateGroupCallEncryptedMessage ¶ added in v1.6.3
type UpdateGroupCallEncryptedMessage struct {
Call InputGroupCall
FromID Peer
EncryptedMessage []byte
}
func (*UpdateGroupCallEncryptedMessage) CRC ¶ added in v1.6.3
func (*UpdateGroupCallEncryptedMessage) CRC() uint32
func (*UpdateGroupCallEncryptedMessage) ImplementsUpdate ¶ added in v1.6.3
func (*UpdateGroupCallEncryptedMessage) ImplementsUpdate()
type UpdateGroupCallMessage ¶ added in v1.6.3
type UpdateGroupCallMessage struct {
Call InputGroupCall
Message *GroupCallMessage
}
func (*UpdateGroupCallMessage) CRC ¶ added in v1.6.3
func (*UpdateGroupCallMessage) CRC() uint32
func (*UpdateGroupCallMessage) ImplementsUpdate ¶ added in v1.6.3
func (*UpdateGroupCallMessage) ImplementsUpdate()
type UpdateGroupCallParticipants ¶
type UpdateGroupCallParticipants struct {
Call InputGroupCall // Group call
Participants []*GroupCallParticipant // New participant list
Version int32 // Version
}
The participant list of a certain group call has changed
func (*UpdateGroupCallParticipants) CRC ¶
func (*UpdateGroupCallParticipants) CRC() uint32
func (*UpdateGroupCallParticipants) ImplementsUpdate ¶
func (*UpdateGroupCallParticipants) ImplementsUpdate()
type UpdateInlineBotCallbackQuery ¶
type UpdateInlineBotCallbackQuery struct {
QueryID int64 // Query ID
UserID int64 // ID of the user that pressed the button
MsgID InputBotInlineMessageID // ID of the inline message with the button
ChatInstance int64 // Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
Data []byte `tl:"flag:0"` // Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.
GameShortName string `tl:"flag:1"` // Short name of a Game to be returned, serves as the unique identifier for the game
}
This notification is received by bots when a button is pressed
func (*UpdateInlineBotCallbackQuery) CRC ¶
func (*UpdateInlineBotCallbackQuery) CRC() uint32
func (*UpdateInlineBotCallbackQuery) FlagIndex ¶
func (*UpdateInlineBotCallbackQuery) FlagIndex() int
func (*UpdateInlineBotCallbackQuery) ImplementsUpdate ¶
func (*UpdateInlineBotCallbackQuery) ImplementsUpdate()
type UpdateLangPack ¶
type UpdateLangPack struct {
Difference *LangPackDifference // Changed strings
}
Language pack updated
func (*UpdateLangPack) CRC ¶
func (*UpdateLangPack) CRC() uint32
func (*UpdateLangPack) ImplementsUpdate ¶
func (*UpdateLangPack) ImplementsUpdate()
type UpdateLangPackTooLong ¶
type UpdateLangPackTooLong struct {
LangCode string // Language code
}
A language pack has changed, the client should manually fetch the changed strings using langpack.getDifference
func (*UpdateLangPackTooLong) CRC ¶
func (*UpdateLangPackTooLong) CRC() uint32
func (*UpdateLangPackTooLong) ImplementsUpdate ¶
func (*UpdateLangPackTooLong) ImplementsUpdate()
type UpdateLoginToken ¶
type UpdateLoginToken struct{}
A login token (for login via QR code) was accepted.
func (*UpdateLoginToken) CRC ¶
func (*UpdateLoginToken) CRC() uint32
func (*UpdateLoginToken) ImplementsUpdate ¶
func (*UpdateLoginToken) ImplementsUpdate()
type UpdateMessageExtendedMedia ¶
type UpdateMessageExtendedMedia struct {
Peer Peer // Peer where the paid media was posted
MsgID int32 // ID of the message containing the paid media
ExtendedMedia []MessageExtendedMedia // Revealed media, contains only messageExtendedMedia constructors.
}
You bought a paid media : this update contains the revealed media.
func (*UpdateMessageExtendedMedia) CRC ¶
func (*UpdateMessageExtendedMedia) CRC() uint32
func (*UpdateMessageExtendedMedia) ImplementsUpdate ¶
func (*UpdateMessageExtendedMedia) ImplementsUpdate()
type UpdateMessageID ¶
type UpdateMessageID struct {
ID int32 // id identifier of a respective Message
RandomID int64 // Previously transferred client random_id identifier
}
Sent message with random_id client identifier was assigned an identifier.
func (*UpdateMessageID) CRC ¶
func (*UpdateMessageID) CRC() uint32
func (*UpdateMessageID) ImplementsUpdate ¶
func (*UpdateMessageID) ImplementsUpdate()
type UpdateMessagePoll ¶
type UpdateMessagePoll struct {
PollID int64 // Poll ID
Poll *Poll `tl:"flag:0"` // If the server knows the client hasn't cached this poll yet, the poll itself
Results *PollResults // New poll results
}
The results of a poll have changed
func (*UpdateMessagePoll) CRC ¶
func (*UpdateMessagePoll) CRC() uint32
func (*UpdateMessagePoll) FlagIndex ¶
func (*UpdateMessagePoll) FlagIndex() int
func (*UpdateMessagePoll) ImplementsUpdate ¶
func (*UpdateMessagePoll) ImplementsUpdate()
type UpdateMessagePollVote ¶
type UpdateMessagePollVote struct {
PollID int64 // Poll ID
Peer Peer // The peer that voted in the poll
Options [][]byte // Chosen option(s)
Qts int32 // New qts value, see updates for more info.
}
A specific peer has voted in a poll
func (*UpdateMessagePollVote) CRC ¶
func (*UpdateMessagePollVote) CRC() uint32
func (*UpdateMessagePollVote) ImplementsUpdate ¶
func (*UpdateMessagePollVote) ImplementsUpdate()
type UpdateMessageReactions ¶
type UpdateMessageReactions struct {
Peer Peer // Peer
MsgID int32 // Message ID
TopMsgID int32 `tl:"flag:0"` // Forum topic ID
SavedPeerID Peer `tl:"flag:1"` // If set, the reactions are in the specified monoforum topic.
Reactions *MessageReactions // Reactions
}
New message reactions are available
func (*UpdateMessageReactions) CRC ¶
func (*UpdateMessageReactions) CRC() uint32
func (*UpdateMessageReactions) FlagIndex ¶
func (*UpdateMessageReactions) FlagIndex() int
func (*UpdateMessageReactions) ImplementsUpdate ¶
func (*UpdateMessageReactions) ImplementsUpdate()
type UpdateMonoForumNoPaidException ¶ added in v1.6.1
type UpdateMonoForumNoPaidException struct {
Exception bool `tl:"flag:0,encoded_in_bitflags"` // If set, an admin has exempted this peer, otherwise the peer was unexempted.
ChannelID int64 // The monoforum ID.
SavedPeerID Peer // The peer/topic ID.
}
An admin has (un)exempted this monoforum topic from payment to send messages using account.toggleNoPaidMessagesException.
func (*UpdateMonoForumNoPaidException) CRC ¶ added in v1.6.1
func (*UpdateMonoForumNoPaidException) CRC() uint32
func (*UpdateMonoForumNoPaidException) FlagIndex ¶ added in v1.6.1
func (*UpdateMonoForumNoPaidException) FlagIndex() int
func (*UpdateMonoForumNoPaidException) ImplementsUpdate ¶ added in v1.6.1
func (*UpdateMonoForumNoPaidException) ImplementsUpdate()
type UpdateMoveStickerSetToTop ¶
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
Stickerset int64 // Stickerset ID
}
A stickerset was just moved to top
func (*UpdateMoveStickerSetToTop) CRC ¶
func (*UpdateMoveStickerSetToTop) CRC() uint32
func (*UpdateMoveStickerSetToTop) FlagIndex ¶
func (*UpdateMoveStickerSetToTop) FlagIndex() int
func (*UpdateMoveStickerSetToTop) ImplementsUpdate ¶
func (*UpdateMoveStickerSetToTop) ImplementsUpdate()
type UpdateNewAuthorization ¶
type UpdateNewAuthorization struct {
Unconfirmed bool `tl:"flag:0,encoded_in_bitflags"` // Whether the session is unconfirmed
Hash int64 // Hash used for caching, for more info click here
Date int32 `tl:"flag:0"` // Authorization date
Device string `tl:"flag:0"` // Name of device, for example <em>Android</em>
Location string `tl:"flag:0"` // Location, for example <em>USA, NY (IP=1.2.3.4)</em>
}
A new session logged into the current user's account through an unknown device.
func (*UpdateNewAuthorization) CRC ¶
func (*UpdateNewAuthorization) CRC() uint32
func (*UpdateNewAuthorization) FlagIndex ¶
func (*UpdateNewAuthorization) FlagIndex() int
func (*UpdateNewAuthorization) ImplementsUpdate ¶
func (*UpdateNewAuthorization) ImplementsUpdate()
type UpdateNewChannelMessage ¶
type UpdateNewChannelMessage struct {
Message Message // New message
Pts int32 // Event count after generation
PtsCount int32 // Number of events that were generated
}
A new message was sent in a channel/supergroup
func (*UpdateNewChannelMessage) CRC ¶
func (*UpdateNewChannelMessage) CRC() uint32
func (*UpdateNewChannelMessage) ImplementsUpdate ¶
func (*UpdateNewChannelMessage) ImplementsUpdate()
type UpdateNewEncryptedMessage ¶
type UpdateNewEncryptedMessage struct {
Message EncryptedMessage // Message
Qts int32 // New qts value, see updates for more info.
}
New encrypted message.
func (*UpdateNewEncryptedMessage) CRC ¶
func (*UpdateNewEncryptedMessage) CRC() uint32
func (*UpdateNewEncryptedMessage) ImplementsUpdate ¶
func (*UpdateNewEncryptedMessage) ImplementsUpdate()
type UpdateNewMessage ¶
type UpdateNewMessage struct {
Message Message // Message
Pts int32 // New quantity of actions in a message box
PtsCount int32 // Number of generated events
}
New message in a private chat or in a basic group.
func (*UpdateNewMessage) CRC ¶
func (*UpdateNewMessage) CRC() uint32
func (*UpdateNewMessage) ImplementsUpdate ¶
func (*UpdateNewMessage) ImplementsUpdate()
type UpdateNewQuickReply ¶
type UpdateNewQuickReply struct {
QuickReply *QuickReply // Quick reply shortcut.
}
A new quick reply shortcut was created.
func (*UpdateNewQuickReply) CRC ¶
func (*UpdateNewQuickReply) CRC() uint32
func (*UpdateNewQuickReply) ImplementsUpdate ¶
func (*UpdateNewQuickReply) ImplementsUpdate()
type UpdateNewScheduledMessage ¶
type UpdateNewScheduledMessage struct {
Message Message // Message
}
A message was added to the schedule queue of a chat
func (*UpdateNewScheduledMessage) CRC ¶
func (*UpdateNewScheduledMessage) CRC() uint32
func (*UpdateNewScheduledMessage) ImplementsUpdate ¶
func (*UpdateNewScheduledMessage) ImplementsUpdate()
type UpdateNewStickerSet ¶
type UpdateNewStickerSet struct {
Stickerset MessagesStickerSet // The installed stickerset
}
A new stickerset was installed
func (*UpdateNewStickerSet) CRC ¶
func (*UpdateNewStickerSet) CRC() uint32
func (*UpdateNewStickerSet) ImplementsUpdate ¶
func (*UpdateNewStickerSet) ImplementsUpdate()
type UpdateNewStoryReaction ¶
type UpdateNewStoryReaction struct {
StoryID int32 // Story ID.
Peer Peer // The peer where the story was posted.
Reaction Reaction // The reaction.
}
Represents a new reaction to a story.
func (*UpdateNewStoryReaction) CRC ¶
func (*UpdateNewStoryReaction) CRC() uint32
func (*UpdateNewStoryReaction) ImplementsUpdate ¶
func (*UpdateNewStoryReaction) ImplementsUpdate()
type UpdateNotifySettings ¶
type UpdateNotifySettings struct {
Peer NotifyPeer // Notification source
NotifySettings *PeerNotifySettings // New notification settings
}
Changes in notification settings.
func (*UpdateNotifySettings) CRC ¶
func (*UpdateNotifySettings) CRC() uint32
func (*UpdateNotifySettings) ImplementsUpdate ¶
func (*UpdateNotifySettings) ImplementsUpdate()
type UpdatePaidReactionPrivacy ¶
type UpdatePaidReactionPrivacy struct {
Private PaidReactionPrivacy // Paid reaction privacy settings.
}
Contains the current default paid reaction privacy
func (*UpdatePaidReactionPrivacy) CRC ¶
func (*UpdatePaidReactionPrivacy) CRC() uint32
func (*UpdatePaidReactionPrivacy) ImplementsUpdate ¶
func (*UpdatePaidReactionPrivacy) ImplementsUpdate()
type UpdatePeerBlocked ¶
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
PeerID Peer // The (un)blocked peer
}
We blocked a peer
func (*UpdatePeerBlocked) CRC ¶
func (*UpdatePeerBlocked) CRC() uint32
func (*UpdatePeerBlocked) FlagIndex ¶
func (*UpdatePeerBlocked) FlagIndex() int
func (*UpdatePeerBlocked) ImplementsUpdate ¶
func (*UpdatePeerBlocked) ImplementsUpdate()
type UpdatePeerHistoryTtl ¶
type UpdatePeerHistoryTtl struct {
Peer Peer // The chat
TtlPeriod int32 `tl:"flag:0"` // The new Time-To-Live
}
The Time-To-Live for messages sent by the current user in a specific chat has changed
func (*UpdatePeerHistoryTtl) CRC ¶
func (*UpdatePeerHistoryTtl) CRC() uint32
func (*UpdatePeerHistoryTtl) FlagIndex ¶
func (*UpdatePeerHistoryTtl) FlagIndex() int
func (*UpdatePeerHistoryTtl) ImplementsUpdate ¶
func (*UpdatePeerHistoryTtl) ImplementsUpdate()
type UpdatePeerLocated ¶
type UpdatePeerLocated struct {
Peers []PeerLocated // Geolocated peer list update
}
List of peers near you was updated
func (*UpdatePeerLocated) CRC ¶
func (*UpdatePeerLocated) CRC() uint32
func (*UpdatePeerLocated) ImplementsUpdate ¶
func (*UpdatePeerLocated) ImplementsUpdate()
type UpdatePeerSettings ¶
type UpdatePeerSettings struct {
Peer Peer // The peer
Settings *PeerSettings // Associated peer settings
}
Settings of a certain peer have changed
func (*UpdatePeerSettings) CRC ¶
func (*UpdatePeerSettings) CRC() uint32
func (*UpdatePeerSettings) ImplementsUpdate ¶
func (*UpdatePeerSettings) ImplementsUpdate()
type UpdatePeerWallpaper ¶
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.
Wallpaper WallPaper `tl:"flag:0"` // The new wallpaper, if none the wallpaper was removed and the default wallpaper should be used.
}
The wallpaper of a given peer has changed.
func (*UpdatePeerWallpaper) CRC ¶
func (*UpdatePeerWallpaper) CRC() uint32
func (*UpdatePeerWallpaper) FlagIndex ¶
func (*UpdatePeerWallpaper) FlagIndex() int
func (*UpdatePeerWallpaper) ImplementsUpdate ¶
func (*UpdatePeerWallpaper) ImplementsUpdate()
type UpdatePendingJoinRequests ¶
type UpdatePendingJoinRequests struct {
Peer Peer // Chat or channel
RequestsPending int32 // Number of pending join requests for the chat or channel
RecentRequesters []int64 // IDs of users that have recently requested to join
}
Someone has requested to join a chat or channel
func (*UpdatePendingJoinRequests) CRC ¶
func (*UpdatePendingJoinRequests) CRC() uint32
func (*UpdatePendingJoinRequests) ImplementsUpdate ¶
func (*UpdatePendingJoinRequests) ImplementsUpdate()
type UpdatePhoneCall ¶
type UpdatePhoneCall struct {
PhoneCall PhoneCall // Phone call
}
An incoming phone call
func (*UpdatePhoneCall) CRC ¶
func (*UpdatePhoneCall) CRC() uint32
func (*UpdatePhoneCall) ImplementsUpdate ¶
func (*UpdatePhoneCall) ImplementsUpdate()
type UpdatePhoneCallSignalingData ¶
type UpdatePhoneCallSignalingData struct {
PhoneCallID int64 // Phone call ID
Data []byte // Signaling payload
}
Incoming phone call signaling payload
func (*UpdatePhoneCallSignalingData) CRC ¶
func (*UpdatePhoneCallSignalingData) CRC() uint32
func (*UpdatePhoneCallSignalingData) ImplementsUpdate ¶
func (*UpdatePhoneCallSignalingData) ImplementsUpdate()
type UpdatePinnedChannelMessages ¶
type UpdatePinnedChannelMessages struct {
Pinned bool `tl:"flag:0,encoded_in_bitflags"` // Whether the messages were pinned or unpinned
ChannelID int64 // Channel ID
Messages []int32 // Messages
Pts int32 // Event count after generation
PtsCount int32 // Number of events that were generated
}
Messages were pinned/unpinned in a channel/supergroup
func (*UpdatePinnedChannelMessages) CRC ¶
func (*UpdatePinnedChannelMessages) CRC() uint32
func (*UpdatePinnedChannelMessages) FlagIndex ¶
func (*UpdatePinnedChannelMessages) FlagIndex() int
func (*UpdatePinnedChannelMessages) ImplementsUpdate ¶
func (*UpdatePinnedChannelMessages) ImplementsUpdate()
type UpdatePinnedDialogs ¶
type UpdatePinnedDialogs struct {
FolderID int32 `tl:"flag:1"` // Peer folder ID, for more info click here
Order []DialogPeer `tl:"flag:0"` // New order of pinned dialogs
}
Pinned dialogs were updated
func (*UpdatePinnedDialogs) CRC ¶
func (*UpdatePinnedDialogs) CRC() uint32
func (*UpdatePinnedDialogs) FlagIndex ¶
func (*UpdatePinnedDialogs) FlagIndex() int
func (*UpdatePinnedDialogs) ImplementsUpdate ¶
func (*UpdatePinnedDialogs) ImplementsUpdate()
type UpdatePinnedForumTopic ¶ added in v1.6.3
type UpdatePinnedForumTopic struct {
Pinned bool `tl:"flag:0,encoded_in_bitflags"`
Peer Peer
TopicID int32
}
func (*UpdatePinnedForumTopic) CRC ¶ added in v1.6.3
func (*UpdatePinnedForumTopic) CRC() uint32
func (*UpdatePinnedForumTopic) FlagIndex ¶ added in v1.6.3
func (*UpdatePinnedForumTopic) FlagIndex() int
func (*UpdatePinnedForumTopic) ImplementsUpdate ¶ added in v1.6.3
func (*UpdatePinnedForumTopic) ImplementsUpdate()
type UpdatePinnedForumTopics ¶ added in v1.6.3
func (*UpdatePinnedForumTopics) CRC ¶ added in v1.6.3
func (*UpdatePinnedForumTopics) CRC() uint32
func (*UpdatePinnedForumTopics) FlagIndex ¶ added in v1.6.3
func (*UpdatePinnedForumTopics) FlagIndex() int
func (*UpdatePinnedForumTopics) ImplementsUpdate ¶ added in v1.6.3
func (*UpdatePinnedForumTopics) ImplementsUpdate()
type UpdatePinnedMessages ¶
type UpdatePinnedMessages struct {
Pinned bool `tl:"flag:0,encoded_in_bitflags"` // Whether the messages were pinned or unpinned
Peer Peer // Peer
Messages []int32 // Message IDs
Pts int32 // Event count after generation
PtsCount int32 // Number of events that were generated
}
Some messages were pinned in a chat
func (*UpdatePinnedMessages) CRC ¶
func (*UpdatePinnedMessages) CRC() uint32
func (*UpdatePinnedMessages) FlagIndex ¶
func (*UpdatePinnedMessages) FlagIndex() int
func (*UpdatePinnedMessages) ImplementsUpdate ¶
func (*UpdatePinnedMessages) ImplementsUpdate()
type UpdatePinnedSavedDialogs ¶
type UpdatePinnedSavedDialogs struct {
Order []DialogPeer `tl:"flag:0"` // New order of pinned saved dialogs
}
Pinned saved dialogs were updated
func (*UpdatePinnedSavedDialogs) CRC ¶
func (*UpdatePinnedSavedDialogs) CRC() uint32
func (*UpdatePinnedSavedDialogs) FlagIndex ¶
func (*UpdatePinnedSavedDialogs) FlagIndex() int
func (*UpdatePinnedSavedDialogs) ImplementsUpdate ¶
func (*UpdatePinnedSavedDialogs) ImplementsUpdate()
type UpdatePrivacy ¶
type UpdatePrivacy struct {
Key PrivacyKey // Peers to which the privacy rules apply
Rules []PrivacyRule // New privacy rules
}
Privacy rules were changed
func (*UpdatePrivacy) CRC ¶
func (*UpdatePrivacy) CRC() uint32
func (*UpdatePrivacy) ImplementsUpdate ¶
func (*UpdatePrivacy) ImplementsUpdate()
type UpdatePtsChanged ¶
type UpdatePtsChanged struct{}
Common message box sequence PTS has changed, state has to be refetched using updates.getState
func (*UpdatePtsChanged) CRC ¶
func (*UpdatePtsChanged) CRC() uint32
func (*UpdatePtsChanged) ImplementsUpdate ¶
func (*UpdatePtsChanged) ImplementsUpdate()
type UpdateQuickReplies ¶
type UpdateQuickReplies struct {
QuickReplies []*QuickReply // New quick reply shortcut order and information.
}
Info about or the order of quick reply shortcuts was changed.
func (*UpdateQuickReplies) CRC ¶
func (*UpdateQuickReplies) CRC() uint32
func (*UpdateQuickReplies) ImplementsUpdate ¶
func (*UpdateQuickReplies) ImplementsUpdate()
type UpdateQuickReplyMessage ¶
type UpdateQuickReplyMessage struct {
Message Message // The message that was added (the message.`quick_reply_shortcut_id` field will contain the shortcut ID).
}
A new message was added to a quick reply shortcut.
func (*UpdateQuickReplyMessage) CRC ¶
func (*UpdateQuickReplyMessage) CRC() uint32
func (*UpdateQuickReplyMessage) ImplementsUpdate ¶
func (*UpdateQuickReplyMessage) ImplementsUpdate()
type UpdateReadChannelDiscussionInbox ¶
type UpdateReadChannelDiscussionInbox struct {
ChannelID int64 // Discussion group ID
TopMsgID int32 // ID of the group message that started the thread (message in linked discussion group)
ReadMaxID int32 // Message ID of latest read incoming message for this thread
BroadcastID int64 `tl:"flag:0"` // If set, contains the ID of the channel that contains the post that started the comment thread in the discussion group (`channel_id`)
BroadcastPost int32 `tl:"flag:0"` // If set, contains the ID of the channel post that started the comment thread
}
Incoming comments in a discussion thread were marked as read
func (*UpdateReadChannelDiscussionInbox) CRC ¶
func (*UpdateReadChannelDiscussionInbox) CRC() uint32
func (*UpdateReadChannelDiscussionInbox) FlagIndex ¶
func (*UpdateReadChannelDiscussionInbox) FlagIndex() int
func (*UpdateReadChannelDiscussionInbox) ImplementsUpdate ¶
func (*UpdateReadChannelDiscussionInbox) ImplementsUpdate()
type UpdateReadChannelDiscussionOutbox ¶
type UpdateReadChannelDiscussionOutbox struct {
ChannelID int64 // Supergroup ID
TopMsgID int32 // ID of the group message that started the thread
ReadMaxID int32 // Message ID of latest read outgoing message for this thread
}
Outgoing comments in a discussion thread were marked as read
func (*UpdateReadChannelDiscussionOutbox) CRC ¶
func (*UpdateReadChannelDiscussionOutbox) CRC() uint32
func (*UpdateReadChannelDiscussionOutbox) ImplementsUpdate ¶
func (*UpdateReadChannelDiscussionOutbox) ImplementsUpdate()
type UpdateReadChannelInbox ¶
type UpdateReadChannelInbox struct {
FolderID int32 `tl:"flag:0"` // Peer folder ID, for more info click here
ChannelID int64 // Channel/supergroup ID
MaxID int32 // Position up to which all incoming messages are read.
StillUnreadCount int32 // Count of messages weren't read yet
Pts int32 // Event count after generation
}
Incoming messages in a channel/supergroup were read
func (*UpdateReadChannelInbox) CRC ¶
func (*UpdateReadChannelInbox) CRC() uint32
func (*UpdateReadChannelInbox) FlagIndex ¶
func (*UpdateReadChannelInbox) FlagIndex() int
func (*UpdateReadChannelInbox) ImplementsUpdate ¶
func (*UpdateReadChannelInbox) ImplementsUpdate()
type UpdateReadChannelOutbox ¶
type UpdateReadChannelOutbox struct {
ChannelID int64 // Channel/supergroup ID
MaxID int32 // Position up to which all outgoing messages are read.
}
Outgoing messages in a channel/supergroup were read
func (*UpdateReadChannelOutbox) CRC ¶
func (*UpdateReadChannelOutbox) CRC() uint32
func (*UpdateReadChannelOutbox) ImplementsUpdate ¶
func (*UpdateReadChannelOutbox) ImplementsUpdate()
type UpdateReadFeaturedEmojiStickers ¶
type UpdateReadFeaturedEmojiStickers struct{}
Some featured custom emoji stickers were marked as read
func (*UpdateReadFeaturedEmojiStickers) CRC ¶
func (*UpdateReadFeaturedEmojiStickers) CRC() uint32
func (*UpdateReadFeaturedEmojiStickers) ImplementsUpdate ¶
func (*UpdateReadFeaturedEmojiStickers) ImplementsUpdate()
type UpdateReadFeaturedStickers ¶
type UpdateReadFeaturedStickers struct{}
Some featured stickers were marked as read
func (*UpdateReadFeaturedStickers) CRC ¶
func (*UpdateReadFeaturedStickers) CRC() uint32
func (*UpdateReadFeaturedStickers) ImplementsUpdate ¶
func (*UpdateReadFeaturedStickers) ImplementsUpdate()
type UpdateReadHistoryInbox ¶
type UpdateReadHistoryInbox struct {
FolderID int32 `tl:"flag:0"`
Peer Peer
TopMsgID int32 `tl:"flag:1"`
MaxID int32
StillUnreadCount int32
Pts int32
PtsCount int32
}
Incoming messages were read
func (*UpdateReadHistoryInbox) CRC ¶
func (*UpdateReadHistoryInbox) CRC() uint32
func (*UpdateReadHistoryInbox) FlagIndex ¶
func (*UpdateReadHistoryInbox) FlagIndex() int
func (*UpdateReadHistoryInbox) ImplementsUpdate ¶
func (*UpdateReadHistoryInbox) ImplementsUpdate()
type UpdateReadHistoryOutbox ¶
type UpdateReadHistoryOutbox struct {
Peer Peer // Peer
MaxID int32 // Maximum ID of read outgoing messages
Pts int32 // Event count after generation
PtsCount int32 // Number of events that were generated
}
Outgoing messages were read
func (*UpdateReadHistoryOutbox) CRC ¶
func (*UpdateReadHistoryOutbox) CRC() uint32
func (*UpdateReadHistoryOutbox) ImplementsUpdate ¶
func (*UpdateReadHistoryOutbox) ImplementsUpdate()
type UpdateReadMessagesContents ¶
type UpdateReadMessagesContents struct {
Messages []int32 // IDs of read messages
Pts int32 // Event count after generation
PtsCount int32 // Number of events that were generated
Date int32 `tl:"flag:0"` // When was the last message in `messages` marked as read.
}
Contents of messages in the common message box were read (emitted specifically for messages like voice messages or video, only once the media is watched and marked as read using messages.readMessageContents).
func (*UpdateReadMessagesContents) CRC ¶
func (*UpdateReadMessagesContents) CRC() uint32
func (*UpdateReadMessagesContents) FlagIndex ¶
func (*UpdateReadMessagesContents) FlagIndex() int
func (*UpdateReadMessagesContents) ImplementsUpdate ¶
func (*UpdateReadMessagesContents) ImplementsUpdate()
type UpdateReadMonoForumInbox ¶ added in v1.6.0
type UpdateReadMonoForumInbox struct {
ChannelID int64 // ID of the monoforum.
SavedPeerID Peer // Topic ID.
ReadMaxID int32 // Position up to which all incoming messages are read.
}
Incoming messages in a monoforum topic were read
func (*UpdateReadMonoForumInbox) CRC ¶ added in v1.6.0
func (*UpdateReadMonoForumInbox) CRC() uint32
func (*UpdateReadMonoForumInbox) ImplementsUpdate ¶ added in v1.6.0
func (*UpdateReadMonoForumInbox) ImplementsUpdate()
type UpdateReadMonoForumOutbox ¶ added in v1.6.0
type UpdateReadMonoForumOutbox struct {
ChannelID int64 // ID of the monoforum.
SavedPeerID Peer // Topic ID.
ReadMaxID int32 // Position up to which all outgoing messages are read.
}
Outgoing messages in a monoforum were read.
func (*UpdateReadMonoForumOutbox) CRC ¶ added in v1.6.0
func (*UpdateReadMonoForumOutbox) CRC() uint32
func (*UpdateReadMonoForumOutbox) ImplementsUpdate ¶ added in v1.6.0
func (*UpdateReadMonoForumOutbox) ImplementsUpdate()
type UpdateReadStories ¶
type UpdateReadStories struct {
Peer Peer // The peer
MaxID int32 // ID of the last story that was marked as read
}
Stories of a specific peer were marked as read.
func (*UpdateReadStories) CRC ¶
func (*UpdateReadStories) CRC() uint32
func (*UpdateReadStories) ImplementsUpdate ¶
func (*UpdateReadStories) ImplementsUpdate()
type UpdateRecentEmojiStatuses ¶
type UpdateRecentEmojiStatuses struct{}
The list of recent emoji statuses has changed
func (*UpdateRecentEmojiStatuses) CRC ¶
func (*UpdateRecentEmojiStatuses) CRC() uint32
func (*UpdateRecentEmojiStatuses) ImplementsUpdate ¶
func (*UpdateRecentEmojiStatuses) ImplementsUpdate()
type UpdateRecentReactions ¶
type UpdateRecentReactions struct{}
The list of recent message reactions has changed
func (*UpdateRecentReactions) CRC ¶
func (*UpdateRecentReactions) CRC() uint32
func (*UpdateRecentReactions) ImplementsUpdate ¶
func (*UpdateRecentReactions) ImplementsUpdate()
type UpdateRecentStickers ¶
type UpdateRecentStickers struct{}
The recent sticker list was updated
func (*UpdateRecentStickers) CRC ¶
func (*UpdateRecentStickers) CRC() uint32
func (*UpdateRecentStickers) ImplementsUpdate ¶
func (*UpdateRecentStickers) ImplementsUpdate()
type UpdateSavedDialogPinned ¶
type UpdateSavedDialogPinned struct {
Pinned bool `tl:"flag:0,encoded_in_bitflags"` // Whether the dialog was pinned
Peer DialogPeer // The dialog
}
A saved message dialog was pinned/unpinned
func (*UpdateSavedDialogPinned) CRC ¶
func (*UpdateSavedDialogPinned) CRC() uint32
func (*UpdateSavedDialogPinned) FlagIndex ¶
func (*UpdateSavedDialogPinned) FlagIndex() int
func (*UpdateSavedDialogPinned) ImplementsUpdate ¶
func (*UpdateSavedDialogPinned) ImplementsUpdate()
type UpdateSavedGifs ¶
type UpdateSavedGifs struct{}
The saved gif list has changed, the client should refetch it using messages.getSavedGifs
func (*UpdateSavedGifs) CRC ¶
func (*UpdateSavedGifs) CRC() uint32
func (*UpdateSavedGifs) ImplementsUpdate ¶
func (*UpdateSavedGifs) ImplementsUpdate()
type UpdateSavedReactionTags ¶
type UpdateSavedReactionTags struct{}
The list of reaction tag names assigned by the user has changed and should be refetched using messages.getSavedReactionTags.
func (*UpdateSavedReactionTags) CRC ¶
func (*UpdateSavedReactionTags) CRC() uint32
func (*UpdateSavedReactionTags) ImplementsUpdate ¶
func (*UpdateSavedReactionTags) ImplementsUpdate()
type UpdateSavedRingtones ¶
type UpdateSavedRingtones struct{}
The list of saved notification sounds has changed, use account.getSavedRingtones to fetch the new list.
func (*UpdateSavedRingtones) CRC ¶
func (*UpdateSavedRingtones) CRC() uint32
func (*UpdateSavedRingtones) ImplementsUpdate ¶
func (*UpdateSavedRingtones) ImplementsUpdate()
type UpdateSentPhoneCode ¶ added in v1.6.0
type UpdateSentPhoneCode struct {
SentCode AuthSentCode // Info about the sent code.
}
A paid login SMS code was successfully sent.
func (*UpdateSentPhoneCode) CRC ¶ added in v1.6.0
func (*UpdateSentPhoneCode) CRC() uint32
func (*UpdateSentPhoneCode) ImplementsUpdate ¶ added in v1.6.0
func (*UpdateSentPhoneCode) ImplementsUpdate()
type UpdateSentStoryReaction ¶
type UpdateSentStoryReaction struct {
Peer Peer // The peer that sent the story
StoryID int32 // ID of the story we reacted to
Reaction Reaction // The reaction that was sent
}
Indicates we reacted to a story.
func (*UpdateSentStoryReaction) CRC ¶
func (*UpdateSentStoryReaction) CRC() uint32
func (*UpdateSentStoryReaction) ImplementsUpdate ¶
func (*UpdateSentStoryReaction) ImplementsUpdate()
type UpdateServiceNotification ¶
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).
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
Media MessageMedia // Media content (optional)
Entities []MessageEntity // Message entities for styled text
}
A service message for the user.
func (*UpdateServiceNotification) CRC ¶
func (*UpdateServiceNotification) CRC() uint32
func (*UpdateServiceNotification) FlagIndex ¶
func (*UpdateServiceNotification) FlagIndex() int
func (*UpdateServiceNotification) ImplementsUpdate ¶
func (*UpdateServiceNotification) ImplementsUpdate()
type UpdateShort ¶
Shortened constructor containing info on one update not requiring auxiliary data
func (*UpdateShort) CRC ¶
func (*UpdateShort) CRC() uint32
func (*UpdateShort) ImplementsUpdates ¶
func (*UpdateShort) ImplementsUpdates()
type UpdateShortChatMessage ¶
type UpdateShortChatMessage struct {
Out bool `tl:"flag:1,encoded_in_bitflags"` // Whether the message is outgoing
Mentioned bool `tl:"flag:4,encoded_in_bitflags"` // Whether we were mentioned in this message
MediaUnread bool `tl:"flag:5,encoded_in_bitflags"` // Whether the message contains some unread mentions
Silent bool `tl:"flag:13,encoded_in_bitflags"` // If true, the message is a silent message, no notifications should be triggered
ID int32 // ID of the message
FromID int64 // ID of the sender of the message
ChatID int64 // ID of the chat where the message was sent
Message string // Message
Pts int32 // PTS
PtsCount int32 // PTS count
Date int32 // date
FwdFrom *MessageFwdHeader `tl:"flag:2"` // Info about a forwarded message
ViaBotID int64 `tl:"flag:11"` // Info about the inline bot used to generate this message
ReplyTo MessageReplyHeader `tl:"flag:3"` // Reply (thread) information
Entities []MessageEntity `tl:"flag:7"` // Entities for styled text
TtlPeriod int32 `tl:"flag:25"` // Time To Live of the message, once updateShortChatMessage.date+updateShortChatMessage.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.
}
Shortened constructor containing info on one new incoming text message from a chat
func (*UpdateShortChatMessage) CRC ¶
func (*UpdateShortChatMessage) CRC() uint32
func (*UpdateShortChatMessage) FlagIndex ¶
func (*UpdateShortChatMessage) FlagIndex() int
func (*UpdateShortChatMessage) ImplementsUpdates ¶
func (*UpdateShortChatMessage) ImplementsUpdates()
type UpdateShortMessage ¶
type UpdateShortMessage struct {
Out bool `tl:"flag:1,encoded_in_bitflags"` // Whether the message is outgoing
Mentioned bool `tl:"flag:4,encoded_in_bitflags"` // Whether we were mentioned in the message
MediaUnread bool `tl:"flag:5,encoded_in_bitflags"` // Whether there are some unread mentions in this message
Silent bool `tl:"flag:13,encoded_in_bitflags"` // If true, the message is a silent message, no notifications should be triggered
ID int32 // The message ID
UserID int64 // The ID of the sender (if `outgoing` will be the ID of the destination) of the message
Message string // The message
Pts int32 // PTS
PtsCount int32 // PTS count
Date int32 // date
FwdFrom *MessageFwdHeader `tl:"flag:2"` // Info about a forwarded message
ViaBotID int64 `tl:"flag:11"` // Info about the inline bot used to generate this message
ReplyTo MessageReplyHeader `tl:"flag:3"` // Reply and thread information
Entities []MessageEntity `tl:"flag:7"` // Entities for styled text
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.
}
Info about a message sent to (received from) another user
func (*UpdateShortMessage) CRC ¶
func (*UpdateShortMessage) CRC() uint32
func (*UpdateShortMessage) FlagIndex ¶
func (*UpdateShortMessage) FlagIndex() int
func (*UpdateShortMessage) ImplementsUpdates ¶
func (*UpdateShortMessage) ImplementsUpdates()
type UpdateShortSentMessage ¶
type UpdateShortSentMessage struct {
Out bool `tl:"flag:1,encoded_in_bitflags"` // Whether the message is outgoing
ID int32 // ID of the sent message
Pts int32 // PTS
PtsCount int32 // PTS count
Date int32 // date
Media MessageMedia `tl:"flag:9"` // Attached media
Entities []MessageEntity `tl:"flag:7"` // Entities for styled text
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.
}
Shortened constructor containing info on one outgoing message to a contact (the destination chat has to be extracted from the method call that returned this object).
func (*UpdateShortSentMessage) CRC ¶
func (*UpdateShortSentMessage) CRC() uint32
func (*UpdateShortSentMessage) FlagIndex ¶
func (*UpdateShortSentMessage) FlagIndex() int
func (*UpdateShortSentMessage) ImplementsUpdates ¶
func (*UpdateShortSentMessage) ImplementsUpdates()
type UpdateSmsJob ¶
type UpdateSmsJob struct {
JobID string // SMS job ID
}
A new SMS job was received
func (*UpdateSmsJob) CRC ¶
func (*UpdateSmsJob) CRC() uint32
func (*UpdateSmsJob) ImplementsUpdate ¶
func (*UpdateSmsJob) ImplementsUpdate()
type UpdateStarGiftAuctionState ¶ added in v1.6.7
type UpdateStarGiftAuctionState struct {
GiftID int64
State StarGiftAuctionState
}
func (*UpdateStarGiftAuctionState) CRC ¶ added in v1.6.7
func (*UpdateStarGiftAuctionState) CRC() uint32
func (*UpdateStarGiftAuctionState) ImplementsUpdate ¶ added in v1.6.7
func (*UpdateStarGiftAuctionState) ImplementsUpdate()
type UpdateStarGiftAuctionUserState ¶ added in v1.6.7
type UpdateStarGiftAuctionUserState struct {
GiftID int64
UserState *StarGiftAuctionUserState
}
func (*UpdateStarGiftAuctionUserState) CRC ¶ added in v1.6.7
func (*UpdateStarGiftAuctionUserState) CRC() uint32
func (*UpdateStarGiftAuctionUserState) ImplementsUpdate ¶ added in v1.6.7
func (*UpdateStarGiftAuctionUserState) ImplementsUpdate()
type UpdateStarsBalance ¶
type UpdateStarsBalance struct {
Balance StarsAmount // New balance.
}
The current account's Telegram Stars balance has changed.
func (*UpdateStarsBalance) CRC ¶
func (*UpdateStarsBalance) CRC() uint32
func (*UpdateStarsBalance) ImplementsUpdate ¶
func (*UpdateStarsBalance) ImplementsUpdate()
type UpdateStarsRevenueStatus ¶
type UpdateStarsRevenueStatus struct {
Peer Peer // Channel/bot
Status *StarsRevenueStatus // New Telegram Star balance.
}
The Telegram Star balance of a channel/bot we own has changed.
func (*UpdateStarsRevenueStatus) CRC ¶
func (*UpdateStarsRevenueStatus) CRC() uint32
func (*UpdateStarsRevenueStatus) ImplementsUpdate ¶
func (*UpdateStarsRevenueStatus) ImplementsUpdate()
type UpdateState ¶ added in v1.6.10
UpdateState represents the current update state
type UpdateStickerSets ¶
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
}
Installed stickersets have changed, the client should refetch them as described in the docs.
func (*UpdateStickerSets) CRC ¶
func (*UpdateStickerSets) CRC() uint32
func (*UpdateStickerSets) FlagIndex ¶
func (*UpdateStickerSets) FlagIndex() int
func (*UpdateStickerSets) ImplementsUpdate ¶
func (*UpdateStickerSets) ImplementsUpdate()
type UpdateStickerSetsOrder ¶
type UpdateStickerSetsOrder struct {
Masks bool `tl:"flag:0,encoded_in_bitflags"` // Whether the updated stickers are mask stickers
Emojis bool `tl:"flag:1,encoded_in_bitflags"` // Whether the updated stickers are custom emoji stickers
Order []int64 // New sticker order by sticker ID
}
The order of stickersets was changed
func (*UpdateStickerSetsOrder) CRC ¶
func (*UpdateStickerSetsOrder) CRC() uint32
func (*UpdateStickerSetsOrder) FlagIndex ¶
func (*UpdateStickerSetsOrder) FlagIndex() int
func (*UpdateStickerSetsOrder) ImplementsUpdate ¶
func (*UpdateStickerSetsOrder) ImplementsUpdate()
type UpdateStoriesStealthMode ¶
type UpdateStoriesStealthMode struct {
StealthMode *StoriesStealthMode // Information about the current stealth mode session.
}
Indicates that stories stealth mode was activated.
func (*UpdateStoriesStealthMode) CRC ¶
func (*UpdateStoriesStealthMode) CRC() uint32
func (*UpdateStoriesStealthMode) ImplementsUpdate ¶
func (*UpdateStoriesStealthMode) ImplementsUpdate()
type UpdateStory ¶
type UpdateStory struct {
Peer Peer // ID of the poster.
Story StoryItem // The story that was posted.
}
A new story was posted.
func (*UpdateStory) CRC ¶
func (*UpdateStory) CRC() uint32
func (*UpdateStory) ImplementsUpdate ¶
func (*UpdateStory) ImplementsUpdate()
type UpdateStoryID ¶
type UpdateStoryID struct {
ID int32 // The `id` that was attributed to the story.
RandomID int64 // The `random_id` that was passed to stories.sendStory.
}
A story was successfully uploaded.
func (*UpdateStoryID) CRC ¶
func (*UpdateStoryID) CRC() uint32
func (*UpdateStoryID) ImplementsUpdate ¶
func (*UpdateStoryID) ImplementsUpdate()
type UpdateTheme ¶
type UpdateTheme struct {
Theme *Theme // Theme
}
A cloud theme was updated
func (*UpdateTheme) CRC ¶
func (*UpdateTheme) CRC() uint32
func (*UpdateTheme) ImplementsUpdate ¶
func (*UpdateTheme) ImplementsUpdate()
type UpdateTranscribedAudio ¶
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
MsgID int32 // Transcribed message ID
TranscriptionID int64 // Transcription ID
Text string // Transcribed text
}
A pending voice message transcription initiated with messages.transcribeAudio was updated.
func (*UpdateTranscribedAudio) CRC ¶
func (*UpdateTranscribedAudio) CRC() uint32
func (*UpdateTranscribedAudio) FlagIndex ¶
func (*UpdateTranscribedAudio) FlagIndex() int
func (*UpdateTranscribedAudio) ImplementsUpdate ¶
func (*UpdateTranscribedAudio) ImplementsUpdate()
type UpdateUser ¶
type UpdateUser struct {
UserID int64 // User ID
}
User (user and/or userFull) information was updated.
func (*UpdateUser) CRC ¶
func (*UpdateUser) CRC() uint32
func (*UpdateUser) ImplementsUpdate ¶
func (*UpdateUser) ImplementsUpdate()
type UpdateUserEmojiStatus ¶
type UpdateUserEmojiStatus struct {
UserID int64 // User ID
EmojiStatus EmojiStatus // New emoji status
}
The emoji status of a certain user has changed
func (*UpdateUserEmojiStatus) CRC ¶
func (*UpdateUserEmojiStatus) CRC() uint32
func (*UpdateUserEmojiStatus) ImplementsUpdate ¶
func (*UpdateUserEmojiStatus) ImplementsUpdate()
type UpdateUserName ¶
type UpdateUserName struct {
UserID int64 // User identifier
FirstName string // New first name. Corresponds to the new value of real_first_name field of the userFull constructor.
LastName string // New last name. Corresponds to the new value of real_last_name field of the userFull constructor.
Usernames []*Username // Usernames.
}
Changes the user's first name, last name and username.
func (*UpdateUserName) CRC ¶
func (*UpdateUserName) CRC() uint32
func (*UpdateUserName) ImplementsUpdate ¶
func (*UpdateUserName) ImplementsUpdate()
type UpdateUserPhone ¶
A user's phone number was changed
func (*UpdateUserPhone) CRC ¶
func (*UpdateUserPhone) CRC() uint32
func (*UpdateUserPhone) ImplementsUpdate ¶
func (*UpdateUserPhone) ImplementsUpdate()
type UpdateUserStatus ¶
type UpdateUserStatus struct {
UserID int64 // User identifier
Status UserStatus // New status
}
Contact status update.
func (*UpdateUserStatus) CRC ¶
func (*UpdateUserStatus) CRC() uint32
func (*UpdateUserStatus) ImplementsUpdate ¶
func (*UpdateUserStatus) ImplementsUpdate()
type UpdateUserTyping ¶
type UpdateUserTyping struct {
UserID int64
TopMsgID int32 `tl:"flag:0"`
Action SendMessageAction
}
The user is preparing a message; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing
func (*UpdateUserTyping) CRC ¶
func (*UpdateUserTyping) CRC() uint32
func (*UpdateUserTyping) FlagIndex ¶ added in v1.6.3
func (*UpdateUserTyping) FlagIndex() int
func (*UpdateUserTyping) ImplementsUpdate ¶
func (*UpdateUserTyping) ImplementsUpdate()
type UpdateWebPage ¶
type UpdateWebPage struct {
Webpage WebPage // Webpage preview
Pts int32 // Event count after generation
PtsCount int32 // Number of events that were generated
}
An instant view webpage preview was generated
func (*UpdateWebPage) CRC ¶
func (*UpdateWebPage) CRC() uint32
func (*UpdateWebPage) ImplementsUpdate ¶
func (*UpdateWebPage) ImplementsUpdate()
type UpdateWebViewResultSent ¶
type UpdateWebViewResultSent struct {
QueryID int64 // Web app interaction ID
}
Indicates to a bot that a webview was closed and an inline message was sent on behalf of the user using messages.sendWebViewResultMessage
func (*UpdateWebViewResultSent) CRC ¶
func (*UpdateWebViewResultSent) CRC() uint32
func (*UpdateWebViewResultSent) ImplementsUpdate ¶
func (*UpdateWebViewResultSent) ImplementsUpdate()
type UpdatesChannelDifferenceEmpty ¶
type UpdatesChannelDifferenceEmpty struct {
Final bool `tl:"flag:0,encoded_in_bitflags"` // Whether there are more updates that must be fetched (always false)
Pts int32 // The latest PTS
Timeout int32 `tl:"flag:1"` // Clients are supposed to refetch the channel difference after timeout seconds have elapsed, if the user is currently viewing the chat
}
There are no new updates
func (*UpdatesChannelDifferenceEmpty) CRC ¶
func (*UpdatesChannelDifferenceEmpty) CRC() uint32
func (*UpdatesChannelDifferenceEmpty) FlagIndex ¶
func (*UpdatesChannelDifferenceEmpty) FlagIndex() int
func (*UpdatesChannelDifferenceEmpty) ImplementsUpdatesChannelDifference ¶
func (*UpdatesChannelDifferenceEmpty) ImplementsUpdatesChannelDifference()
type UpdatesChannelDifferenceObj ¶
type UpdatesChannelDifferenceObj struct {
Final bool `tl:"flag:0,encoded_in_bitflags"` // Whether there are more updates to be fetched using getDifference, starting from the provided `pts`
Pts int32 // The PTS from which to start getting updates the next time
Timeout int32 `tl:"flag:1"` // Clients are supposed to refetch the channel difference after timeout seconds have elapsed, if the user is currently viewing the chat
NewMessages []Message // New messages
OtherUpdates []Update // Other updates
Chats []Chat // Chats
Users []User // Users
}
The new updates
func (*UpdatesChannelDifferenceObj) CRC ¶
func (*UpdatesChannelDifferenceObj) CRC() uint32
func (*UpdatesChannelDifferenceObj) FlagIndex ¶
func (*UpdatesChannelDifferenceObj) FlagIndex() int
func (*UpdatesChannelDifferenceObj) ImplementsUpdatesChannelDifference ¶
func (*UpdatesChannelDifferenceObj) ImplementsUpdatesChannelDifference()
type UpdatesChannelDifferenceTooLong ¶
type UpdatesChannelDifferenceTooLong struct {
Final bool `tl:"flag:0,encoded_in_bitflags"` // Whether there are more updates that must be fetched (always false)
Timeout int32 `tl:"flag:1"` // Clients are supposed to refetch the channel difference after timeout seconds have elapsed
Dialog Dialog // Dialog containing the latest PTS that can be used to reset the channel state
Messages []Message // The latest messages
Chats []Chat // Chats from messages
Users []User // Users from messages
}
The provided `pts + limit < remote pts`. Simply, there are too many updates to be fetched (more than `limit`), the client has to resolve the update gap in one of the following ways (assuming the existence of a persistent database to locally store messages):
func (*UpdatesChannelDifferenceTooLong) CRC ¶
func (*UpdatesChannelDifferenceTooLong) CRC() uint32
func (*UpdatesChannelDifferenceTooLong) FlagIndex ¶
func (*UpdatesChannelDifferenceTooLong) FlagIndex() int
func (*UpdatesChannelDifferenceTooLong) ImplementsUpdatesChannelDifference ¶
func (*UpdatesChannelDifferenceTooLong) ImplementsUpdatesChannelDifference()
type UpdatesCombined ¶
type UpdatesCombined struct {
Updates []Update // List of updates
Users []User // List of users mentioned in updates
Chats []Chat // List of chats mentioned in updates
Date int32 // Current date
SeqStart int32 // Value seq for the earliest update in a group
Seq int32 // Value seq for the latest update in a group
}
Constructor for a group of updates.
func (*UpdatesCombined) CRC ¶
func (*UpdatesCombined) CRC() uint32
func (*UpdatesCombined) ImplementsUpdates ¶
func (*UpdatesCombined) ImplementsUpdates()
type UpdatesDifference ¶
type UpdatesDifferenceEmpty ¶
type UpdatesDifferenceEmpty struct {
Date int32 // Current date
Seq int32 // Number of sent updates
}
No events.
func (*UpdatesDifferenceEmpty) CRC ¶
func (*UpdatesDifferenceEmpty) CRC() uint32
func (*UpdatesDifferenceEmpty) ImplementsUpdatesDifference ¶
func (*UpdatesDifferenceEmpty) ImplementsUpdatesDifference()
type UpdatesDifferenceObj ¶
type UpdatesDifferenceObj struct {
NewMessages []Message // List of new messages
NewEncryptedMessages []EncryptedMessage // List of new encrypted secret chat messages
OtherUpdates []Update // List of updates
Chats []Chat // List of chats mentioned in events
Users []User // List of users mentioned in events
State *UpdatesState // Current state
}
Full list of occurred events.
func (*UpdatesDifferenceObj) CRC ¶
func (*UpdatesDifferenceObj) CRC() uint32
func (*UpdatesDifferenceObj) ImplementsUpdatesDifference ¶
func (*UpdatesDifferenceObj) ImplementsUpdatesDifference()
type UpdatesDifferenceSlice ¶
type UpdatesDifferenceSlice struct {
NewMessages []Message // List of new messages
NewEncryptedMessages []EncryptedMessage // New messages from the encrypted event sequence
OtherUpdates []Update // List of updates
Chats []Chat // List of chats mentioned in events
Users []User // List of users mentioned in events
IntermediateState *UpdatesState // Intermediary state
}
Incomplete list of occurred events.
func (*UpdatesDifferenceSlice) CRC ¶
func (*UpdatesDifferenceSlice) CRC() uint32
func (*UpdatesDifferenceSlice) ImplementsUpdatesDifference ¶
func (*UpdatesDifferenceSlice) ImplementsUpdatesDifference()
type UpdatesDifferenceTooLong ¶
type UpdatesDifferenceTooLong struct {
Pts int32 // The new state to use.
}
The difference is too long, and the specified state must be used to refetch updates.
func (*UpdatesDifferenceTooLong) CRC ¶
func (*UpdatesDifferenceTooLong) CRC() uint32
func (*UpdatesDifferenceTooLong) ImplementsUpdatesDifference ¶
func (*UpdatesDifferenceTooLong) ImplementsUpdatesDifference()
type UpdatesGetChannelDifferenceParams ¶
type UpdatesGetChannelDifferenceParams struct {
Force bool `tl:"flag:0,encoded_in_bitflags"`
Channel InputChannel
Filter ChannelMessagesFilter
Pts int32
Limit int32
}
func (*UpdatesGetChannelDifferenceParams) CRC ¶
func (*UpdatesGetChannelDifferenceParams) CRC() uint32
func (*UpdatesGetChannelDifferenceParams) FlagIndex ¶
func (*UpdatesGetChannelDifferenceParams) FlagIndex() int
type UpdatesGetDifferenceParams ¶
type UpdatesGetDifferenceParams struct {
Pts int32
PtsLimit int32 `tl:"flag:1"`
PtsTotalLimit int32 `tl:"flag:0"`
Date int32
Qts int32
QtsLimit int32 `tl:"flag:2"`
}
func (*UpdatesGetDifferenceParams) CRC ¶
func (*UpdatesGetDifferenceParams) CRC() uint32
func (*UpdatesGetDifferenceParams) FlagIndex ¶
func (*UpdatesGetDifferenceParams) FlagIndex() int
type UpdatesGetStateParams ¶
type UpdatesGetStateParams struct{}
func (*UpdatesGetStateParams) CRC ¶
func (*UpdatesGetStateParams) CRC() uint32
type UpdatesObj ¶
type UpdatesObj struct {
Updates []Update // List of updates
Users []User // List of users mentioned in updates
Chats []Chat // List of chats mentioned in updates
Date int32 // Current date
Seq int32 // Total number of sent updates
}
Full constructor of updates
func (*UpdatesObj) CRC ¶
func (*UpdatesObj) CRC() uint32
func (*UpdatesObj) ImplementsUpdates ¶
func (*UpdatesObj) ImplementsUpdates()
type UpdatesTooLong ¶
type UpdatesTooLong struct{}
Too many updates, it is necessary to execute updates.getDifference.
func (*UpdatesTooLong) CRC ¶
func (*UpdatesTooLong) CRC() uint32
func (*UpdatesTooLong) ImplementsUpdates ¶
func (*UpdatesTooLong) ImplementsUpdates()
type UploadCdnFile ¶
type UploadCdnFileObj ¶
type UploadCdnFileObj struct {
Bytes []byte // The data
}
Represent a chunk of a CDN file.
func (*UploadCdnFileObj) CRC ¶
func (*UploadCdnFileObj) CRC() uint32
func (*UploadCdnFileObj) ImplementsUploadCdnFile ¶
func (*UploadCdnFileObj) ImplementsUploadCdnFile()
type UploadCdnFileReuploadNeeded ¶
type UploadCdnFileReuploadNeeded struct {
RequestToken []byte // Request token (see CDN)
}
The file was cleared from the temporary RAM cache of the CDN and has to be re-uploaded.
func (*UploadCdnFileReuploadNeeded) CRC ¶
func (*UploadCdnFileReuploadNeeded) CRC() uint32
func (*UploadCdnFileReuploadNeeded) ImplementsUploadCdnFile ¶
func (*UploadCdnFileReuploadNeeded) ImplementsUploadCdnFile()
type UploadFile ¶
type UploadFileCdnRedirect ¶
type UploadFileCdnRedirect struct {
DcID int32 // CDN DC ID
FileToken []byte // File token (see CDN files)
EncryptionKey []byte // Encryption key (see CDN files)
EncryptionIv []byte // Encryption IV (see CDN files)
FileHashes []*FileHash // File hashes (see CDN files)
}
The file must be downloaded from a CDN DC.
func (*UploadFileCdnRedirect) CRC ¶
func (*UploadFileCdnRedirect) CRC() uint32
func (*UploadFileCdnRedirect) ImplementsUploadFile ¶
func (*UploadFileCdnRedirect) ImplementsUploadFile()
type UploadFileObj ¶
type UploadFileObj struct {
Type StorageFileType // File type
Mtime int32 // Modification time
Bytes []byte // Binary data, file content
}
File content.
func (*UploadFileObj) CRC ¶
func (*UploadFileObj) CRC() uint32
func (*UploadFileObj) ImplementsUploadFile ¶
func (*UploadFileObj) ImplementsUploadFile()
type UploadGetCdnFileHashesParams ¶
func (*UploadGetCdnFileHashesParams) CRC ¶
func (*UploadGetCdnFileHashesParams) CRC() uint32
type UploadGetCdnFileParams ¶
func (*UploadGetCdnFileParams) CRC ¶
func (*UploadGetCdnFileParams) CRC() uint32
type UploadGetFileHashesParams ¶
type UploadGetFileHashesParams struct {
Location InputFileLocation
Offset int64
}
func (*UploadGetFileHashesParams) CRC ¶
func (*UploadGetFileHashesParams) CRC() uint32
type UploadGetFileParams ¶
type UploadGetFileParams struct {
Precise bool `tl:"flag:0,encoded_in_bitflags"`
CdnSupported bool `tl:"flag:1,encoded_in_bitflags"`
Location InputFileLocation
Offset int64
Limit int32
}
func (*UploadGetFileParams) CRC ¶
func (*UploadGetFileParams) CRC() uint32
func (*UploadGetFileParams) FlagIndex ¶
func (*UploadGetFileParams) FlagIndex() int
type UploadGetWebFileParams ¶
type UploadGetWebFileParams struct {
Location InputWebFileLocation
Offset int32
Limit int32
}
func (*UploadGetWebFileParams) CRC ¶
func (*UploadGetWebFileParams) CRC() uint32
type UploadOptions ¶
type UploadOptions struct {
Threads int // Number of concurrent upload workers
ChunkSize int32 // Size of each upload chunk in bytes
FileName string // Custom filename for the upload
ProgressCallback func(*ProgressInfo) // Callback for upload progress updates
ProgressManager *ProgressManager // Progress manager (legacy support)
ProgressInterval int // Progress callback interval in seconds (default: 5)
Delay int // Delay between chunks in milliseconds
Ctx context.Context // Context for cancellation
}
type UploadReuploadCdnFileParams ¶
func (*UploadReuploadCdnFileParams) CRC ¶
func (*UploadReuploadCdnFileParams) CRC() uint32
type UploadSaveBigFilePartParams ¶
type UploadSaveBigFilePartParams struct {
FileID int64
FilePart int32
FileTotalParts int32
Bytes []byte
}
func (*UploadSaveBigFilePartParams) CRC ¶
func (*UploadSaveBigFilePartParams) CRC() uint32
type UploadSaveFilePartParams ¶
func (*UploadSaveFilePartParams) CRC ¶
func (*UploadSaveFilePartParams) CRC() uint32
type UploadWebFile ¶
type UploadWebFile struct {
Size int32
MimeType string
FileType StorageFileType
Mtime int32
Bytes []byte
}
Represents a chunk of an HTTP webfile downloaded through telegram's secure MTProto servers
func (*UploadWebFile) CRC ¶
func (*UploadWebFile) CRC() uint32
type UserEmpty ¶
type UserEmpty struct {
ID int64 // User identifier or `0`
}
Empty constructor, non-existent user.
func (*UserEmpty) ImplementsUser ¶
func (*UserEmpty) ImplementsUser()
type UserFull ¶
type UserFull struct {
Blocked bool `tl:"flag:0,encoded_in_bitflags"`
PhoneCallsAvailable bool `tl:"flag:4,encoded_in_bitflags"`
PhoneCallsPrivate bool `tl:"flag:5,encoded_in_bitflags"`
CanPinMessage bool `tl:"flag:7,encoded_in_bitflags"`
HasScheduled bool `tl:"flag:12,encoded_in_bitflags"`
VideoCallsAvailable bool `tl:"flag:13,encoded_in_bitflags"`
VoiceMessagesForbidden bool `tl:"flag:20,encoded_in_bitflags"`
TranslationsDisabled bool `tl:"flag:23,encoded_in_bitflags"`
StoriesPinnedAvailable bool `tl:"flag:26,encoded_in_bitflags"`
BlockedMyStoriesFrom bool `tl:"flag:27,encoded_in_bitflags"`
WallpaperOverridden bool `tl:"flag:28,encoded_in_bitflags"`
ContactRequirePremium bool `tl:"flag:29,encoded_in_bitflags"`
ReadDatesPrivate bool `tl:"flag:30,encoded_in_bitflags"`
SponsoredEnabled bool `tl:"flag2:7,encoded_in_bitflags"`
CanViewRevenue bool `tl:"flag2:9,encoded_in_bitflags"`
BotCanManageEmojiStatus bool `tl:"flag2:10,encoded_in_bitflags"`
DisplayGiftsButton bool `tl:"flag2:16,encoded_in_bitflags"`
ID int64
About string `tl:"flag:1"`
Settings *PeerSettings
PersonalPhoto Photo `tl:"flag:21"`
ProfilePhoto Photo `tl:"flag:2"`
FallbackPhoto Photo `tl:"flag:22"`
NotifySettings *PeerNotifySettings
BotInfo *BotInfo `tl:"flag:3"`
PinnedMsgID int32 `tl:"flag:6"`
CommonChatsCount int32
FolderID int32 `tl:"flag:11"`
TtlPeriod int32 `tl:"flag:14"`
Theme ChatTheme `tl:"flag:15"`
PrivateForwardName string `tl:"flag:16"`
BotGroupAdminRights *ChatAdminRights `tl:"flag:17"`
BotBroadcastAdminRights *ChatAdminRights `tl:"flag:18"`
Wallpaper WallPaper `tl:"flag:24"`
Stories *PeerStories `tl:"flag:25"`
BusinessWorkHours *BusinessWorkHours `tl:"flag2:0"`
BusinessLocation *BusinessLocation `tl:"flag2:1"`
BusinessGreetingMessage *BusinessGreetingMessage `tl:"flag2:2"`
BusinessAwayMessage *BusinessAwayMessage `tl:"flag2:3"`
BusinessIntro *BusinessIntro `tl:"flag2:4"`
Birthday *Birthday `tl:"flag2:5"`
PersonalChannelID int64 `tl:"flag2:6"`
PersonalChannelMessage int32 `tl:"flag2:6"`
StargiftsCount int32 `tl:"flag2:8"`
StarrefProgram *StarRefProgram `tl:"flag2:11"`
BotVerification *BotVerification `tl:"flag2:12"`
SendPaidMessagesStars int64 `tl:"flag2:14"`
DisallowedGifts *DisallowedGiftsSettings `tl:"flag2:15"`
StarsRating *StarsRating `tl:"flag2:17"`
StarsMyPendingRating *StarsRating `tl:"flag2:18"`
StarsMyPendingRatingDate int32 `tl:"flag2:18"`
MainTab ProfileTab `tl:"flag2:20"`
SavedMusic Document `tl:"flag2:21"`
Note *TextWithEntities `tl:"flag2:22"`
}
Extended user info
type UserObj ¶
type UserObj struct {
Self bool `tl:"flag:10,encoded_in_bitflags"`
Contact bool `tl:"flag:11,encoded_in_bitflags"`
MutualContact bool `tl:"flag:12,encoded_in_bitflags"`
Deleted bool `tl:"flag:13,encoded_in_bitflags"`
Bot bool `tl:"flag:14,encoded_in_bitflags"`
BotChatHistory bool `tl:"flag:15,encoded_in_bitflags"`
BotNochats bool `tl:"flag:16,encoded_in_bitflags"`
Verified bool `tl:"flag:17,encoded_in_bitflags"`
Restricted bool `tl:"flag:18,encoded_in_bitflags"`
Min bool `tl:"flag:20,encoded_in_bitflags"`
BotInlineGeo bool `tl:"flag:21,encoded_in_bitflags"`
Support bool `tl:"flag:23,encoded_in_bitflags"`
Scam bool `tl:"flag:24,encoded_in_bitflags"`
ApplyMinPhoto bool `tl:"flag:25,encoded_in_bitflags"`
Fake bool `tl:"flag:26,encoded_in_bitflags"`
BotAttachMenu bool `tl:"flag:27,encoded_in_bitflags"`
Premium bool `tl:"flag:28,encoded_in_bitflags"`
AttachMenuEnabled bool `tl:"flag:29,encoded_in_bitflags"`
BotCanEdit bool `tl:"flag2:1,encoded_in_bitflags"`
CloseFriend bool `tl:"flag2:2,encoded_in_bitflags"`
StoriesHidden bool `tl:"flag2:3,encoded_in_bitflags"`
ContactRequirePremium bool `tl:"flag2:10,encoded_in_bitflags"`
BotBusiness bool `tl:"flag2:11,encoded_in_bitflags"`
BotHasMainApp bool `tl:"flag2:13,encoded_in_bitflags"`
BotForumView bool `tl:"flag2:16,encoded_in_bitflags"`
ID int64
AccessHash int64 `tl:"flag:0"`
FirstName string `tl:"flag:1"`
LastName string `tl:"flag:2"`
Username string `tl:"flag:3"`
Phone string `tl:"flag:4"`
Photo UserProfilePhoto `tl:"flag:5"`
Status UserStatus `tl:"flag:6"`
BotInfoVersion int32 `tl:"flag:14"`
RestrictionReason []*RestrictionReason `tl:"flag:18"`
BotInlinePlaceholder string `tl:"flag:19"`
LangCode string `tl:"flag:22"`
EmojiStatus EmojiStatus `tl:"flag:30"`
Usernames []*Username `tl:"flag2:0"`
StoriesMaxID *RecentStory `tl:"flag2:5"`
Color PeerColor `tl:"flag2:8"`
ProfileColor PeerColor `tl:"flag2:9"`
BotActiveUsers int32 `tl:"flag2:12"`
BotVerificationIcon int64 `tl:"flag2:14"`
SendPaidMessagesStars int64 `tl:"flag2:15"`
}
Indicates info about a certain user.
func (*UserObj) ImplementsUser ¶
func (*UserObj) ImplementsUser()
type UserPhoto ¶
type UserPhoto struct {
Photo Photo
}
func (*UserPhoto) InputLocation ¶
func (p *UserPhoto) InputLocation() (*InputPhotoFileLocation, error)
type UserProfilePhoto ¶
type UserProfilePhotoEmpty ¶
type UserProfilePhotoEmpty struct{}
Profile photo has not been set, or was hidden.
func (*UserProfilePhotoEmpty) CRC ¶
func (*UserProfilePhotoEmpty) CRC() uint32
func (*UserProfilePhotoEmpty) ImplementsUserProfilePhoto ¶
func (*UserProfilePhotoEmpty) ImplementsUserProfilePhoto()
type UserProfilePhotoObj ¶
type UserProfilePhotoObj struct {
HasVideo bool `tl:"flag:0,encoded_in_bitflags"` // Whether an animated profile picture is available for this user
Personal bool `tl:"flag:2,encoded_in_bitflags"` // Whether this profile photo is only visible to us (i.e. it was set using photos.uploadContactProfilePhoto).
PhotoID int64 // Identifier of the respective photo
StrippedThumb []byte `tl:"flag:1"` // Stripped thumbnail
DcID int32 // DC ID where the photo is stored
}
User profile photo.
func (*UserProfilePhotoObj) CRC ¶
func (*UserProfilePhotoObj) CRC() uint32
func (*UserProfilePhotoObj) FlagIndex ¶
func (*UserProfilePhotoObj) FlagIndex() int
func (*UserProfilePhotoObj) ImplementsUserProfilePhoto ¶
func (*UserProfilePhotoObj) ImplementsUserProfilePhoto()
type UserStatus ¶
type UserStatusEmpty ¶
type UserStatusEmpty struct{}
User status has not been set yet.
func (*UserStatusEmpty) CRC ¶
func (*UserStatusEmpty) CRC() uint32
func (*UserStatusEmpty) ImplementsUserStatus ¶
func (*UserStatusEmpty) ImplementsUserStatus()
type UserStatusLastMonth ¶
type UserStatusLastMonth struct {
ByMe bool `tl:"flag:0,encoded_in_bitflags"` // If set, the exact user status of this user is actually available to us, but to view it we must first purchase a Premium subscription, or allow this user to see <em>our</em> exact last online status.
}
Online status: last seen last month
func (*UserStatusLastMonth) CRC ¶
func (*UserStatusLastMonth) CRC() uint32
func (*UserStatusLastMonth) FlagIndex ¶
func (*UserStatusLastMonth) FlagIndex() int
func (*UserStatusLastMonth) ImplementsUserStatus ¶
func (*UserStatusLastMonth) ImplementsUserStatus()
type UserStatusLastWeek ¶
type UserStatusLastWeek struct {
ByMe bool `tl:"flag:0,encoded_in_bitflags"` // If set, the exact user status of this user is actually available to us, but to view it we must first purchase a Premium subscription, or allow this user to see <em>our</em> exact last online status.
}
Online status: last seen last week
func (*UserStatusLastWeek) CRC ¶
func (*UserStatusLastWeek) CRC() uint32
func (*UserStatusLastWeek) FlagIndex ¶
func (*UserStatusLastWeek) FlagIndex() int
func (*UserStatusLastWeek) ImplementsUserStatus ¶
func (*UserStatusLastWeek) ImplementsUserStatus()
type UserStatusOffline ¶
type UserStatusOffline struct {
WasOnline int32 // Time the user was last seen online
}
The user's offline status.
func (*UserStatusOffline) CRC ¶
func (*UserStatusOffline) CRC() uint32
func (*UserStatusOffline) ImplementsUserStatus ¶
func (*UserStatusOffline) ImplementsUserStatus()
type UserStatusOnline ¶
type UserStatusOnline struct {
Expires int32 // Time to expiration of the current online status
}
Online status of the user.
func (*UserStatusOnline) CRC ¶
func (*UserStatusOnline) CRC() uint32
func (*UserStatusOnline) ImplementsUserStatus ¶
func (*UserStatusOnline) ImplementsUserStatus()
type UserStatusRecently ¶
type UserStatusRecently struct {
ByMe bool `tl:"flag:0,encoded_in_bitflags"` // If set, the exact user status of this user is actually available to us, but to view it we must first purchase a Premium subscription, or allow this user to see <em>our</em> exact last online status.
}
Online status: last seen recently
func (*UserStatusRecently) CRC ¶
func (*UserStatusRecently) CRC() uint32
func (*UserStatusRecently) FlagIndex ¶
func (*UserStatusRecently) FlagIndex() int
func (*UserStatusRecently) ImplementsUserStatus ¶
func (*UserStatusRecently) ImplementsUserStatus()
type Username ¶
type Username struct {
Editable bool `tl:"flag:0,encoded_in_bitflags"`
Active bool `tl:"flag:1,encoded_in_bitflags"`
Username string
}
Contains information about a username.
type UsersGetFullUserParams ¶
type UsersGetFullUserParams struct {
ID InputUser
}
func (*UsersGetFullUserParams) CRC ¶
func (*UsersGetFullUserParams) CRC() uint32
type UsersGetRequirementsToContactParams ¶ added in v1.6.0
type UsersGetRequirementsToContactParams struct {
ID []InputUser
}
func (*UsersGetRequirementsToContactParams) CRC ¶ added in v1.6.0
func (*UsersGetRequirementsToContactParams) CRC() uint32
type UsersGetSavedMusicByIDParams ¶ added in v1.6.3
type UsersGetSavedMusicByIDParams struct {
ID InputUser
Documents []InputDocument
}
func (*UsersGetSavedMusicByIDParams) CRC ¶ added in v1.6.3
func (*UsersGetSavedMusicByIDParams) CRC() uint32
type UsersGetSavedMusicParams ¶ added in v1.6.3
func (*UsersGetSavedMusicParams) CRC ¶ added in v1.6.3
func (*UsersGetSavedMusicParams) CRC() uint32
type UsersGetUsersParams ¶
type UsersGetUsersParams struct {
ID []InputUser
}
func (*UsersGetUsersParams) CRC ¶
func (*UsersGetUsersParams) CRC() uint32
type UsersSavedMusic ¶ added in v1.6.3
type UsersSavedMusicNotModified ¶ added in v1.6.3
type UsersSavedMusicNotModified struct {
Count int32 // Total number of songs on the user's profile.
}
This subset of the songs currently pinned on a user's profile hasn't changed
func (*UsersSavedMusicNotModified) CRC ¶ added in v1.6.3
func (*UsersSavedMusicNotModified) CRC() uint32
func (*UsersSavedMusicNotModified) ImplementsUsersSavedMusic ¶ added in v1.6.3
func (*UsersSavedMusicNotModified) ImplementsUsersSavedMusic()
type UsersSavedMusicObj ¶ added in v1.6.3
type UsersSavedMusicObj struct {
Count int32 // Total number of songs (can be bigger than `documents` depending on the passed `limit`, and the default maximum `limit` in which case pagination is required).
Documents []Document // Songs.
}
List of songs currently pinned on a user's profile
func (*UsersSavedMusicObj) CRC ¶ added in v1.6.3
func (*UsersSavedMusicObj) CRC() uint32
func (*UsersSavedMusicObj) ImplementsUsersSavedMusic ¶ added in v1.6.3
func (*UsersSavedMusicObj) ImplementsUsersSavedMusic()
type UsersSetSecureValueErrorsParams ¶
type UsersSetSecureValueErrorsParams struct {
ID InputUser
Errors []SecureValueError
}
func (*UsersSetSecureValueErrorsParams) CRC ¶
func (*UsersSetSecureValueErrorsParams) CRC() uint32
type UsersSuggestBirthdayParams ¶ added in v1.6.3
func (*UsersSuggestBirthdayParams) CRC ¶ added in v1.6.3
func (*UsersSuggestBirthdayParams) CRC() uint32
type UsersUserFull ¶
Full user information
func (*UsersUserFull) CRC ¶
func (*UsersUserFull) CRC() uint32
type UsersUsers ¶ added in v1.5.3
type UsersUsersObj ¶ added in v1.5.3
type UsersUsersObj struct {
Users []User // Users
}
Describes a list of users (or bots).
func (*UsersUsersObj) CRC ¶ added in v1.5.3
func (*UsersUsersObj) CRC() uint32
func (*UsersUsersObj) ImplementsUsersUsers ¶ added in v1.5.3
func (*UsersUsersObj) ImplementsUsersUsers()
type UsersUsersSlice ¶ added in v1.5.3
type UsersUsersSlice struct {
Count int32 // Total number of users (bigger than the users specified in `users`)
Users []User // Subset of users.
}
Describes a partial list of users.
func (*UsersUsersSlice) CRC ¶ added in v1.5.3
func (*UsersUsersSlice) CRC() uint32
func (*UsersUsersSlice) ImplementsUsersUsers ¶ added in v1.5.3
func (*UsersUsersSlice) ImplementsUsersUsers()
type VideoSizeEmojiMarkup ¶
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.
}
An animated profile picture based on a custom emoji sticker.
func (*VideoSizeEmojiMarkup) CRC ¶
func (*VideoSizeEmojiMarkup) CRC() uint32
func (*VideoSizeEmojiMarkup) ImplementsVideoSize ¶
func (*VideoSizeEmojiMarkup) ImplementsVideoSize()
type VideoSizeObj ¶
type VideoSizeObj struct {
Type string // `u` for animated profile pictures, and `v` for trimmed and downscaled video previews
W int32 // Video width
H int32 // Video height
Size int32 // File size
VideoStartTs float64 `tl:"flag:0"` // Timestamp that should be shown as static preview to the user (seconds)
}
An animated profile picture in MPEG4 format
func (*VideoSizeObj) CRC ¶
func (*VideoSizeObj) CRC() uint32
func (*VideoSizeObj) FlagIndex ¶
func (*VideoSizeObj) FlagIndex() int
func (*VideoSizeObj) ImplementsVideoSize ¶
func (*VideoSizeObj) ImplementsVideoSize()
type VideoSizeStickerMarkup ¶
type VideoSizeStickerMarkup struct {
Stickerset InputStickerSet // Stickerset
StickerID int64 // Sticker ID
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.
}
An animated profile picture based on a sticker.
func (*VideoSizeStickerMarkup) CRC ¶
func (*VideoSizeStickerMarkup) CRC() uint32
func (*VideoSizeStickerMarkup) ImplementsVideoSize ¶
func (*VideoSizeStickerMarkup) ImplementsVideoSize()
type WallPaperNoFile ¶
type WallPaperNoFile struct {
ID int64 // Wallpaper ID
Default bool `tl:"flag:1,encoded_in_bitflags"` // Whether this is the default wallpaper
Dark bool `tl:"flag:4,encoded_in_bitflags"` // Whether this wallpaper should be used in dark mode.
Settings *WallPaperSettings `tl:"flag:2"` // Info on how to generate the wallpaper.
}
Represents a wallpaper only based on colors/gradients.
func (*WallPaperNoFile) CRC ¶
func (*WallPaperNoFile) CRC() uint32
func (*WallPaperNoFile) FlagIndex ¶
func (*WallPaperNoFile) FlagIndex() int
func (*WallPaperNoFile) ImplementsWallPaper ¶
func (*WallPaperNoFile) ImplementsWallPaper()
type WallPaperObj ¶
type WallPaperObj struct {
ID int64 // Identifier
Creator bool `tl:"flag:0,encoded_in_bitflags"` // Whether we created this wallpaper
Default bool `tl:"flag:1,encoded_in_bitflags"` // Whether this is the default wallpaper
Pattern bool `tl:"flag:3,encoded_in_bitflags"` // Whether this is a pattern wallpaper
Dark bool `tl:"flag:4,encoded_in_bitflags"` // Whether this wallpaper should be used in dark mode.
AccessHash int64 // Access hash
Slug string // Unique wallpaper ID, used when generating wallpaper links or importing wallpaper links.
Document Document // The actual wallpaper
Settings *WallPaperSettings `tl:"flag:2"` // Info on how to generate the wallpaper, according to these instructions.
}
Represents a wallpaper based on an image.
func (*WallPaperObj) CRC ¶
func (*WallPaperObj) CRC() uint32
func (*WallPaperObj) FlagIndex ¶
func (*WallPaperObj) FlagIndex() int
func (*WallPaperObj) ImplementsWallPaper ¶
func (*WallPaperObj) ImplementsWallPaper()
type WallPaperSettings ¶
type WallPaperSettings struct {
Blur bool `tl:"flag:1,encoded_in_bitflags"`
Motion bool `tl:"flag:2,encoded_in_bitflags"`
BackgroundColor int32 `tl:"flag:0"`
SecondBackgroundColor int32 `tl:"flag:4"`
ThirdBackgroundColor int32 `tl:"flag:5"`
FourthBackgroundColor int32 `tl:"flag:6"`
Intensity int32 `tl:"flag:3"`
Rotation int32 `tl:"flag:4"`
Emoticon string `tl:"flag:7"`
}
Wallpaper rendering information.
func (*WallPaperSettings) CRC ¶
func (*WallPaperSettings) CRC() uint32
func (*WallPaperSettings) FlagIndex ¶
func (*WallPaperSettings) FlagIndex() int
type WebAuthorization ¶
type WebAuthorization struct {
Hash int64
BotID int64
Domain string
Browser string
Platform string
DateCreated int32
DateActive int32
Ip string
Region string
}
Represents a bot logged in using the Telegram login widget
func (*WebAuthorization) CRC ¶
func (*WebAuthorization) CRC() uint32
type WebDocument ¶
type WebDocumentNoProxy ¶
type WebDocumentNoProxy struct {
URL string // Document URL
Size int32 // File size
MimeType string // MIME type
Attributes []DocumentAttribute // Attributes for media types
}
Remote document that can be downloaded without proxying through telegram
func (*WebDocumentNoProxy) CRC ¶
func (*WebDocumentNoProxy) CRC() uint32
func (*WebDocumentNoProxy) ImplementsWebDocument ¶
func (*WebDocumentNoProxy) ImplementsWebDocument()
type WebDocumentObj ¶
type WebDocumentObj struct {
URL string // Document URL
AccessHash int64 // Access hash
Size int32 // File size
MimeType string // MIME type
Attributes []DocumentAttribute // Attributes for media types
}
Remote document
func (*WebDocumentObj) CRC ¶
func (*WebDocumentObj) CRC() uint32
func (*WebDocumentObj) ImplementsWebDocument ¶
func (*WebDocumentObj) ImplementsWebDocument()
type WebPageAttribute ¶
type WebPageAttributeStarGiftAuction ¶ added in v1.6.7
func (*WebPageAttributeStarGiftAuction) CRC ¶ added in v1.6.7
func (*WebPageAttributeStarGiftAuction) CRC() uint32
func (*WebPageAttributeStarGiftAuction) ImplementsWebPageAttribute ¶ added in v1.6.7
func (*WebPageAttributeStarGiftAuction) ImplementsWebPageAttribute()
type WebPageAttributeStarGiftCollection ¶ added in v1.6.3
type WebPageAttributeStarGiftCollection struct {
Icons []Document // Gifts in the collection.
}
Contains info about a gift collection for a webPage preview of a gift collection (the webPage will have a `type` of `telegram_collection`).
func (*WebPageAttributeStarGiftCollection) CRC ¶ added in v1.6.3
func (*WebPageAttributeStarGiftCollection) CRC() uint32
func (*WebPageAttributeStarGiftCollection) ImplementsWebPageAttribute ¶ added in v1.6.3
func (*WebPageAttributeStarGiftCollection) ImplementsWebPageAttribute()
type WebPageAttributeStickerSet ¶
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.
Stickers []Document // A subset of the stickerset in the stickerset.
}
Contains info about a stickerset, for a webPage preview of a stickerset deep link (the webPage will have a `type` of `telegram_stickerset`).
func (*WebPageAttributeStickerSet) CRC ¶
func (*WebPageAttributeStickerSet) CRC() uint32
func (*WebPageAttributeStickerSet) FlagIndex ¶
func (*WebPageAttributeStickerSet) FlagIndex() int
func (*WebPageAttributeStickerSet) ImplementsWebPageAttribute ¶
func (*WebPageAttributeStickerSet) ImplementsWebPageAttribute()
type WebPageAttributeStory ¶
type WebPageAttributeStory struct {
Peer Peer // Peer that posted the story
ID int32 // Story ID
Story StoryItem `tl:"flag:0"` // May contain the story, if not the story should be fetched when and if needed using stories.getStoriesByID with the above `id` and `peer`.
}
Webpage preview of a Telegram story
func (*WebPageAttributeStory) CRC ¶
func (*WebPageAttributeStory) CRC() uint32
func (*WebPageAttributeStory) FlagIndex ¶
func (*WebPageAttributeStory) FlagIndex() int
func (*WebPageAttributeStory) ImplementsWebPageAttribute ¶
func (*WebPageAttributeStory) ImplementsWebPageAttribute()
type WebPageAttributeTheme ¶
type WebPageAttributeTheme struct {
Documents []Document `tl:"flag:0"` // Theme files
Settings *ThemeSettings `tl:"flag:1"` // Theme settings
}
Page theme
func (*WebPageAttributeTheme) CRC ¶
func (*WebPageAttributeTheme) CRC() uint32
func (*WebPageAttributeTheme) FlagIndex ¶
func (*WebPageAttributeTheme) FlagIndex() int
func (*WebPageAttributeTheme) ImplementsWebPageAttribute ¶
func (*WebPageAttributeTheme) ImplementsWebPageAttribute()
type WebPageAttributeUniqueStarGift ¶ added in v1.5.3
type WebPageAttributeUniqueStarGift struct {
Gift StarGift // The starGiftUnique constructor.
}
Contains info about collectible gift for a webPage preview of a collectible gift (the webPage will have a `type` of `telegram_nft`).
func (*WebPageAttributeUniqueStarGift) CRC ¶ added in v1.5.3
func (*WebPageAttributeUniqueStarGift) CRC() uint32
func (*WebPageAttributeUniqueStarGift) ImplementsWebPageAttribute ¶ added in v1.5.3
func (*WebPageAttributeUniqueStarGift) ImplementsWebPageAttribute()
type WebPageEmpty ¶
No preview is available for the webpage
func (*WebPageEmpty) CRC ¶
func (*WebPageEmpty) CRC() uint32
func (*WebPageEmpty) FlagIndex ¶
func (*WebPageEmpty) FlagIndex() int
func (*WebPageEmpty) ImplementsWebPage ¶
func (*WebPageEmpty) ImplementsWebPage()
type WebPageNotModified ¶
type WebPageNotModified struct {
CachedPageViews int32 `tl:"flag:0"` // Page view count
}
The preview of the webpage hasn't changed
func (*WebPageNotModified) CRC ¶
func (*WebPageNotModified) CRC() uint32
func (*WebPageNotModified) FlagIndex ¶
func (*WebPageNotModified) FlagIndex() int
func (*WebPageNotModified) ImplementsWebPage ¶
func (*WebPageNotModified) ImplementsWebPage()
type WebPageObj ¶
type WebPageObj struct {
HasLargeMedia bool `tl:"flag:13,encoded_in_bitflags"` // Whether the size of the media in the preview can be changed.
VideoCoverPhoto bool `tl:"flag:14,encoded_in_bitflags"` // Represents a custom video cover.
ID int64 // Preview ID
URL string // URL of previewed webpage
DisplayURL string // Webpage URL to be displayed to the user
Hash int32 // Hash used for caching, for more info click here
Type string `tl:"flag:0"` // Type of the web page. One of the following: <!-- start type --> - `app` - `article` - `document` - `gif` - `photo` - `profile` - `telegram_album` - `telegram_background` - `telegram_bot` - `telegram_botapp` - `telegram_call` - `telegram_channel` - `telegram_channel_boost` - `telegram_channel_direct` - `telegram_channel_request` - `telegram_chat` - `telegram_chat_request` - `telegram_chatlist` - `telegram_collection` - `telegram_community` - `telegram_giftcode` - `telegram_group_boost` - `telegram_livestream` - `telegram_megagroup` - `telegram_megagroup_request` - `telegram_message` - `telegram_nft` - `telegram_stickerset` - `telegram_story` - `telegram_story_album` - `telegram_theme` - `telegram_user` - `telegram_videochat` - `telegram_voicechat` - `video` <!-- end type -->
SiteName string `tl:"flag:1"` // Short name of the site (e.g., Google Docs, App Store)
Title string `tl:"flag:2"` // Title of the content
Description string `tl:"flag:3"` // Content description
Photo Photo `tl:"flag:4"` // Image representing the content
EmbedURL string `tl:"flag:5"` // URL to show in the embedded preview
EmbedType string `tl:"flag:5"` // MIME type of the embedded preview, (e.g., text/html or video/mp4)
EmbedWidth int32 `tl:"flag:6"` // Width of the embedded preview
EmbedHeight int32 `tl:"flag:6"` // Height of the embedded preview
Duration int32 `tl:"flag:7"` // Duration of the content, in seconds
Author string `tl:"flag:8"` // Author of the content
Document Document `tl:"flag:9"` // Preview of the content as a media file
CachedPage *Page `tl:"flag:10"` // Page contents in instant view format
Attributes []WebPageAttribute `tl:"flag:12"` // Webpage attributes
}
Webpage preview
func (*WebPageObj) CRC ¶
func (*WebPageObj) CRC() uint32
func (*WebPageObj) FlagIndex ¶
func (*WebPageObj) FlagIndex() int
func (*WebPageObj) ImplementsWebPage ¶
func (*WebPageObj) ImplementsWebPage()
type WebPagePending ¶
type WebPagePending struct {
ID int64 // ID of preview
URL string `tl:"flag:0"` // URL of the webpage
Date int32 // When was the processing started
}
A preview of the webpage is currently being generated
func (*WebPagePending) CRC ¶
func (*WebPagePending) CRC() uint32
func (*WebPagePending) FlagIndex ¶
func (*WebPagePending) FlagIndex() int
func (*WebPagePending) ImplementsWebPage ¶
func (*WebPagePending) ImplementsWebPage()
type WebViewMessageSent ¶
type WebViewMessageSent struct {
MsgID InputBotInlineMessageID `tl:"flag:0"`
}
Info about a sent inline webview message
func (*WebViewMessageSent) CRC ¶
func (*WebViewMessageSent) CRC() uint32
func (*WebViewMessageSent) FlagIndex ¶
func (*WebViewMessageSent) FlagIndex() int
type WebViewResultURL ¶
type WebViewResultURL struct {
Fullsize bool `tl:"flag:1,encoded_in_bitflags"`
Fullscreen bool `tl:"flag:2,encoded_in_bitflags"`
QueryID int64 `tl:"flag:0"`
URL string
}
Contains the webview URL with appropriate theme and user info parameters added
func (*WebViewResultURL) CRC ¶
func (*WebViewResultURL) CRC() uint32
func (*WebViewResultURL) FlagIndex ¶
func (*WebViewResultURL) FlagIndex() int
type WorkerPool ¶ added in v1.4.0
func NewWorkerPool ¶ added in v1.4.0
func NewWorkerPool(size int) *WorkerPool
func (*WorkerPool) AddWorker ¶ added in v1.4.0
func (wp *WorkerPool) AddWorker(s *ExSender)
func (*WorkerPool) Close ¶ added in v1.6.10
func (wp *WorkerPool) Close()
func (*WorkerPool) FreeWorker ¶ added in v1.4.0
func (wp *WorkerPool) FreeWorker(s *ExSender)
func (*WorkerPool) Next ¶ added in v1.4.0
func (wp *WorkerPool) Next() *ExSender
func (*WorkerPool) NextWithContext ¶ added in v1.6.10
func (wp *WorkerPool) NextWithContext(ctx context.Context) *ExSender
type WrongPasswordCallback ¶ added in v1.6.9
WrongPasswordCallback is called when an incorrect password is entered. It receives the attempt number and max retries, and returns whether to continue trying.
Source Files
¶
- auth.go
- bots.go
- buttons.go
- cache.go
- callbackquery.go
- channels.go
- client.go
- const.go
- conversation.go
- enums_gen.go
- formatting.go
- helpers.go
- init_gen.go
- inlinequery.go
- interfaces_gen.go
- logging.go
- media.go
- messages.go
- methods_gen.go
- methods_special.go
- newmessage.go
- participant.go
- secret_chats.go
- tgcalls.go
- types_gen.go
- updates.go
- users.go
- utils.go